Skip to main content
PATCH
Update Product Cost

Authorizations

Authorization
string
header
required

Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.

Path Parameters

productId
string<uuid>
required

OmniCommerce simple-product or variant UUID.

Body

application/json
costPrice
number | null
required
Required range: x >= 0
costPriceCurrency
string
Pattern: ^[A-Za-z]{3}$
costPriceFxRate
number
costPriceFxTo
string
Pattern: ^[A-Za-z]{3}$
costPriceFxAsOf
string

Response

Catalog cost updated.