Download Sourcing Cost File
GET/api/amazon/unified/recovery/sourcing-cost-export
Downloads a CSV of per-unit sourcing costs for the integration's FBA seller SKUs, ready to upload to Seller Central's "Manage Your Sourcing Cost" page. Amazon values lost or damaged FBA units at your sourcing cost, so an accurate file makes Amazon's automatic reimbursements pay the right amount.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
The response is a file download (Content-Type: text/csv; charset=UTF-8, Content-Disposition: attachment; filename="amazon-sourcing-cost-{integrationInstanceId}-{YYYY-MM-DD}.csv"), not JSON.
Columns: sku (FBA seller SKU), cost (landed cost per unit, 2 decimals), currency (the integration's primary currency). One row per FBA seller SKU mapped to a SKU.io product. The cost is the product's weighted-average cost of units on hand; when that is zero it falls back to the oldest open cost layer, then the supplier price, then the product's unit cost. SKUs with no resolvable cost are left out of the file.
Response headers:
X-Export-Row-Count— number of SKU rows written to the file.X-Export-Skipped-Count— number of SKUs left out because no cost could be resolved.X-Export-Currency— currency code used in the file.
Side effect: records the export time, returned as last_sourcing_cost_export_at by Get Recovery Settings.
Errors: 422 when integration_instance_id is missing or not an integer; 404 when it is not an Amazon integration instance.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.