Skip to content
Stella ConnectDocs
Commerce

Updates product costs

PUT{baseUrl}/v1.0/commerce/product-costs/{CompanyLocationKey}

Updates product costs for multiple products in a single batch request.

Authx-api-key

Field
Type
Required
CompanyLocationKeystringYes

application/json
Field
Type
Required
costnumberNo
costUnitOfMeasurestringYes
supplierProductIds[]string[]Yes

Status
When
200

Success

400

Bad Request

401

Unauthorized

422
500

An unexpected error occurred on the server.

Field
Type
Required
Description
dataobject | nullNo
data.successbooleanNo

Whether the operation succeeded

data.messagestringNo

Human-readable description of the result or failure reason

errors[]object[] | nullNo

One or more errors describing why the request failed. Absent (null) on success.

errors[].descriptionstring | nullNo

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[].errorIdstring | nullNo

Machine-readable, stable error identifier. Consumers should branch on this value rather than on Description. See ConnectErrorIds for the catalog.

pagingobject | nullNo

Paging metadata for list endpoints. Absent on single-item responses.

paging.limitintegerNo
paging.startintegerNo
paging.totalintegerNo

Example 200 response
{
  "data": {
    "success": true,
    "message": "string"
  },
  "errors": [
    {
      "description": "string",
      "errorId": "string"
    }
  ],
  "paging": {
    "limit": 0,
    "start": 0,
    "total": 0
  }
}