Create bulk cost prices
POST/v2/bulk-cost-prices/bulk
Create bulk cost prices
Request
- application/json
Body
required
An object containing bulk cost price create inputs and directives
bulkCostPrices string[]required
An array of bulk cost price create inputs. Please provide one of ["priceId","productId","source"] in each one
directives string[]
Directives. Available directives are : ["resetOnUpdate"]
Responses
- 201
- 400
- 403
- 500
Bulk cost prices created
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
Primary identifier
createdAt date-timerequired
Creation date
lastModifiedAt date-timerequired
Last modified date
validFrom date-time
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
validTo date-time
End date of the bulk pricing offer. Must be a valid ISO 8601 date string
{
"id": 1234,
"createdAt": "2022-01-01T00:00:00.000Z",
"lastModifiedAt": "2022-01-02T00:00:00.000Z",
"validFrom": "2022-01-01T00:00:00.000Z",
"validTo": "2022-01-31T00:00:00.000Z"
}
Bad request
Forbidden
Unknown create bulk cost prices error
Loading...