Bearer token with
marketing:write scopeThe voucher ID
Request body
All fields are optional. Only provided fields will be updated.Voucher status:
pending, active, depleted, expired, cancelled, suspendedCustomer ID (or null to unassign)
ISO 8601 expiry datetime (or null to remove)
Whether voucher can be used by different customers
Custom metadata (or null to remove)
Response
Returns the updated voucher object.Request
Response
Errors
| Status | Error | Description |
|---|---|---|
| 400 | No fields to update | Request body is empty |
| 404 | Voucher not found | No voucher exists with the given ID |