Commerce
Updates product costs
PUT{baseUrl}/v2.0/commerce/product-costs/{CompanyLocationKey}
Updates product costs for multiple products in a single batch request.
Auth
x-api-keyField | Type | Required |
|---|---|---|
| CompanyLocationKey | uuid | Yes |
application/jsonField | Type | Required | Description |
|---|---|---|---|
| productCosts[] | object[] | Yes | |
| productCosts[]. | number | No | |
| productCosts[]. | enum | No | "lb" |
| productCosts[]. | string | No |
Status | When |
|---|---|
| 200 | Success |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | If any SupplierProductId is not found |
| 500 | An unexpected error occurred on the server. |
Field | Type | Required | Description |
|---|---|---|---|
| data | string | No | The response payload. Typed callers should prefer Data. |
| errors[] | object[] | null | No | One or more errors describing why the request failed. Absent ( |
| errors[]. | string | null | No | Human-readable explanation of the error. Intended for display to end users or logs. Wording is not stable and should not be branched on. |
| errors[]. | string | null | No | Machine-readable, stable error identifier. Consumers should branch on this value
rather than on Description. See |
| paging | object | null | No | Paging metadata for list endpoints. Absent on single-item responses. |
| paging. | integer | No | |
| paging. | integer | No | |
| paging. | integer | No |
Example 200 response
{
"data": null,
"errors": [
{
"description": "string",
"errorId": "string"
}
],
"paging": {
"limit": 0,
"start": 0,
"total": 0
}
}