Skip to main content
POST
/
profitability
/
directCosts
Update Unit COGS
curl --request POST \
  --url https://mm-api.merchantspring.io/profitability/directCosts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "channelId": "<string>",
  "merchantId": "<string>",
  "fromDate": "1609459200",
  "directCosts": [
    {
      "sellerSku": "<string>",
      "cogs": 123,
      "cogsCurrency": "<string>",
      "shippingCost": 123,
      "shippingCostCurrency": "<string>"
    }
  ]
}
'
{
  "jobId": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Input required to update Unit COGS

Input data for request to update the Unit COGS

channelId
string
required
merchantId
string
required
fromDate
number
required

Unix epoch time (seconds) representing the effective from date

Example:

"1609459200"

directCosts
object[]
required

Response

Successful operation

Response for request to update the Unit COGS

jobId
string