Skip to content

Create voucher

POST
/shops/{id}/vouchers
curl --request POST \
--url https://example.com/shops/example/vouchers \
--header 'Content-Type: application/json' \
--data '{ "batch_id": "example", "code": "example", "link": "example" }'
id
required
string
Media type application/json
object
batch_id
required
string
code
required
string
link
Any of:
Any of:
string
Example generated
{
"batch_id": "example",
"code": "example",
"link": "example"
}
Media type application/json
object
id
required
string
batch_id
required
Any of:
string
code
required
Any of:
string
link
required
Any of:
string
created_at
required
string
updated_at
required
string
plucked_at
required
Any of:
string
Example generated
{
"id": "example",
"batch_id": "example",
"code": "example",
"link": "example",
"created_at": "example",
"updated_at": "example",
"plucked_at": "example"
}