curl -L \
--request POST \
--url '/{companyId}/vouchers' \
--header 'x-w3block-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"code": "text",
"amount": 1,
"limitPerUser": 1,
"userId": "text",
"whitelistId": "text",
"tokenCollections": [
{
"tokenCollectionId": "123e4567-e89b-12d3-a456-426614174000",
"tokenEditionIds": [
[]
]
}
],
"startDate": "2022-07-20T23:59:59.000Z",
"endDate": "2022-07-20T23:59:59.000Z"
}'