curl --location -g --request POST '{{BASE_URL}}/admin/price-lists//prices/batch' \
--header 'Content-Type: application/json' \
--data-raw '{
"delete": [
"string"
],
"create": [
{
"currency_code": "string",
"amount": 0,
"variant_id": "string",
"min_quantity": 0,
"max_quantity": 0,
"rules": {
"region_id": 123
}
}
],
"update": [
{
"id": "string",
"currency_code": "string",
"amount": 0,
"variant_id": "string",
"min_quantity": 0,
"max_quantity": 0,
"rules": {
"region_id": 123
}
}
]
}'
{
"created": [
{
"id": "string",
"title": "string",
"currency_code": "usd",
"amount": 0,
"raw_amount": {},
"min_quantity": 0,
"max_quantity": 0,
"price_set_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"updated": [
{
"id": "string",
"title": "string",
"currency_code": "usd",
"amount": 0,
"raw_amount": {},
"min_quantity": 0,
"max_quantity": 0,
"price_set_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"deleted": {
"object": "price",
"deleted": true,
"ids": [
"string"
]
}
}