cURL
curl --request POST \ --url https://buyer.launchpoint.nyc/api/2025-11/codes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "codes": [ "CODE1", "CODE2", "CODE3" ], "discount_group_id": "123e4567-e89b-12d3-a456-426614174000" } '
{ "codes": [ "CODE1", "CODE2", "CODE3" ], "user_description": "<string>", "creator_drives": 123, "creator_commission_cents": 123 }
Adds new discount codes for a campaign
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Discount codes and campaign details
Array of unique discount codes
["CODE1", "CODE2", "CODE3"]
The ID of the discount group to add codes to
"123e4567-e89b-12d3-a456-426614174000"
Codes created successfully
Array of created discount codes