Skip to content

Update voucher batch

PATCH
/shops/{id}/vouchers/batches/{batch_id}
curl --request PATCH \
--url https://example.com/shops/example/vouchers/batches/example \
--header 'Content-Type: application/json' \
--data '{ "conditions": "example", "type": "amount", "value": "NaN", "unit": "example", "expires_at": "example", "voucher_pool_id": "example" }'
id
required
string
batch_id
required
string
Media type application/json
object
conditions
Any of:
Any of:
string
type
Any of:
Any of:
string
Allowed values: amount gift percentage
value
Any of:
Any of:
Any of:
number
unit
Any of:
Any of:
string
expires_at
Any of:
Any of:
string
voucher_pool_id
Any of:
Any of:
string
Media type application/json
object
id
required
string
voucher_pool_id
required
Any of:
string
type
required
Any of:
string
value
required
Any of:
Any of:
number
unit
required
Any of:
string
conditions
required
Any of:
string
created_at
required
string
updated_at
required
string
expires_at
required
Any of:
string
deleted_at
required
Any of:
string
Example
{
"value": "NaN"
}