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
bulkCostPricesstring[]required
An array of bulk cost price create inputs. Please provide one of ["priceId","productId","source"] in each one
Example:
[{"priceId":"018fe8a7-2cb9-7d15-b439-e838cb07841e","value":5.11,"quantityFrom":7,"validFrom":"2024-06-05T07:36:59+0000","validTo":"2025-06-05T07:36:59+0000"},{"productId":5,"value":6.25,"quantityFrom":16,"validFrom":"2024-06-05T07:36:59+0000","validTo":"2025-06-05T07:36:59+0000"},{"source":{"id":"1","name":"Source 1"},"value":7.13,"quantityFrom":22,"validFrom":"2024-06-05T07:36:59+0000","validTo":"2025-06-05T07:36:59+0000"}]
directivesstring[]
Directives. Available directives are : ["resetOnUpdate"]
Example:
[{"operation":"resetOnUpdate","fields":["name","description"]}]
Responses
- 201
- 400
- 403
- 500
Bulk cost prices created
- application/json
- Schema
- Example (from schema)
Schema
idstringrequired
Primary identifier
Example:
1234
createdAtdate-timerequired
Creation date
Example:
2022-01-01T00:00:00.000Z
lastModifiedAtdate-timerequired
Last modified date
Example:
2022-01-02T00:00:00.000Z
validFromdate-time
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string
Example:
2022-01-01T00:00:00.000Z
validTodate-time
End date of the bulk pricing offer. Must be a valid ISO 8601 date string
Example:
2022-01-31T00:00:00.000Z
{
"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