latestOpenAPI 3.0.32026-08-215925112.0 MB

36be0dca14e7

api
vouchers

Create a Voucher

post/api/vouchers

Request body

codestring nullable

The code used to redeem the voucher

amountnumber float required

The amount of the voucher in seller's currency. eg. 50.0 -> 50 EUR

validUntilstring date-time nullable

The date until the voucher can be redeemed.

Response

Created

codestring required

Code used to redeem the voucher

amountnumber float required

The amount of the voucher in seller's currency. eg. 50.0 -> 50 EUR

validUntilstring date-time

The date until this voucher can be redeemed.

sellerIdstring

The ID of the seller of the voucher

transactionIdstring

The ID of the transaction if the voucher was a result of a transaction

productIdstring

The ID of the product if the voucher was a result of a product

refundIdstring

The ID of the refund if the voucher was a result of a refund

customerIdstring

The ID of the customer if the voucher was created for a specific customer

origin'default' | 'shop' | 'import' | 'upgrade' | 'refund'

The origin of the voucher

createdAtstring date-time required

An ISO Timestamp indicating when the voucher was created.

updatedAtstring date-time required

An ISO Timestamp indicating when the voucher was last updated.