Vouchers
Voucher types
There are 2 voucher types:
- Pricetype (
24001
) - Payment (
24003
)
You can find more information about vouchers here.
This API endpoint can only be used to create a new voucher definition. If you want to start selling a voucher, a voucher product should be created. Every time such a product is sold, a new vouchercode will be generated. To see an example of creating a voucher product, see here.
Operations
- Get a list of vouchers GET /api/1/{accountname}/settings/vouchers
- Get a single voucher GET /api/1/{accountname}/settings/vouchers/{id}
- Create a new voucher POST /api/1/{accountname}/settings/vouchers
- Modify an existing voucher PUT /api/1/{accountname}/settings/vouchers/{id}
- Remove a voucher DELETE /api/1/{accountname}/settings/vouchers/{id}
- Fetch translatable fields GET /api/1/{accountname}/settings/vouchers/{id}/translate
- Update translations PUT /api/1/{accountname}/settings/vouchers/{id}/translate
- Create voucher codes POST /api/1/{accountname}/settings/vouchers/{id}/codes
- Deactivate voucher codes POST /api/1/{accountname}/settings/vouchers/{id}/deactivatecodes