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[]nullable
Directives. Available directives are : ["resetOnUpdate"]
Responses
- 201
- 400
- 403
- 500
Bulk cost prices created
- application/json
- Schema
- Example (from schema)
Schema
created integernullablerequired
Number of created items
updated integernullablerequired
Number of updated items
total integernullablerequired
Total number of created and updated items
{
"created": 60,
"updated": 40,
"total": 100
}
Bad request
Forbidden
Unknown create bulk cost prices error
Loading...