curl --request POST \
--url https://{workspace}.neetocal.com/api/external/v1/discount_codes \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '{
"code": "OFF50",
"value": 50,
"kind": "percentage",
"redeems_limit": 10,
"redeems_limit_by_email": 5,
"expires_at": "12-05-2025",
"days_valid_after_first_use_per_client": 7,
"allowed_emails": [
"eve@bigbinary.com",
"charlie@bigbinary.com"
],
"meeting_ids": [
"ktr8qu3",
"xzfpwqg",
"csesbjq",
"c64h5yx"
]
}'
{
"message": "Discount code creation successful",
"discount_code": {
"id": "d6ccef53-f369-4b54-a818-6e93e2a0455c",
"code": "OFF_60",
"value": 60,
"kind": "fixed",
"redeems_limit": 100,
"redeems_limit_by_email": 10,
"expires_at": "2025-08-12T00:00:00.000Z",
"days_valid_after_first_use_per_client": 28,
"meetings": [
[
"0b947f19-94a3-409b-ae3b-36d79a1b4969",
"Meeting with consultation team"
]
]
}
}
This API allows to create a discount code.
curl --request POST \
--url https://{workspace}.neetocal.com/api/external/v1/discount_codes \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '{
"code": "OFF50",
"value": 50,
"kind": "percentage",
"redeems_limit": 10,
"redeems_limit_by_email": 5,
"expires_at": "12-05-2025",
"days_valid_after_first_use_per_client": 7,
"allowed_emails": [
"eve@bigbinary.com",
"charlie@bigbinary.com"
],
"meeting_ids": [
"ktr8qu3",
"xzfpwqg",
"csesbjq",
"c64h5yx"
]
}'
{
"message": "Discount code creation successful",
"discount_code": {
"id": "d6ccef53-f369-4b54-a818-6e93e2a0455c",
"code": "OFF_60",
"value": 60,
"kind": "fixed",
"redeems_limit": 100,
"redeems_limit_by_email": 10,
"expires_at": "2025-08-12T00:00:00.000Z",
"days_valid_after_first_use_per_client": 28,
"meetings": [
[
"0b947f19-94a3-409b-ae3b-36d79a1b4969",
"Meeting with consultation team"
]
]
}
}
{your-workspace}
with your workspace’s subdomain. Bearer token for API access.
OK - Request succeeded
The response is of type object
.