curl -X POST 'https://api.tolt.com/v1/promotion-codes' \ -H 'Authorization: Bearer <API_KEY>' \ -H 'Content-Type: application/json' \ -d '{ "code": "SUMMER2024", "type": "percentage", "value": 20, "partner_id": "part_s7mbzRGn46BhVgNFHD6fDgXW" }'
{ "success": true, "data": [ { "id": "prc_dK9bzRGn46BhVgNFHD6fDgXW", "active": true, "entity_type": null, "code": "SUMMER2024", "value": 20, "type": "percentage", "program_id": "prg_YRsbPDAKhWfdqJbFACheh", "group_id": null, "organization_id": "org_JE3mfYNL9ci7sFaJazAv2", "partner_id": "part_s7mbzRGn46BhVgNFHD6fDgXW", "created_at": "2025-01-15T14:30:00.000Z", "updated_at": "2025-01-15T14:30:00.000Z" } ] }
This endpoint creates a promotion code.
Documentation IndexFetch the complete documentation index at: https://docs.tolt.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.tolt.com/llms.txt
Use this file to discover all available pages before exploring further.
https://api.tolt.com
Hide properties
prc_