v1

latestOpenAPI 3.0.2EULA2026-07-143221521.2 MB
Vouchers

Create a batch of vouchers.

Batch process helps to add multiple vouchers in one request. ⚠️ Adjust batch sizes based on processing times. We recommended use maximum amount of 1000 records and adjust the batch size based on processing time. ⚠️ Endpoint is available only in Enterprise interface.

post/vouchers/batch

Headers

Accept-Languagestring

The unique ID of the language code by ISO 639-1.

Request body

error_processing1 | 2

The parameter describes the batch method behavior in case of error occurs. Possible values are: 1 - It returns the first error found and rollback all previous changes (this is also the default behavior if the parameter is not set) / 2 - It creates all valid records and creates an error report from failed attempts.

Example request

{
  "vouchers": [
    {
      "reward_id": "83cfee22eabfbbb15a14815e30",
      "customer_id": "81ceb8582e2d8dbb7e71b7273b",
      "store_id": "86e05affc7a7abefcd513ab400",
      "code": "w7TU7KfeE",
      "value": 3.49,
      "applied_date": "2013-07-24 21:33:13",
      "note": "Contact before use"
    }
  ]
}

Response

No Content