Skip to main content
POST
/
codes
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Discount codes and campaign details

codes
string[]
required

Array of unique discount codes

Example:
["CODE1", "CODE2", "CODE3"]
discount_group_id
string

The ID of the discount group to add codes to

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Codes created successfully

codes
string[]

Array of created discount codes

Example:
["CODE1", "CODE2", "CODE3"]
user_description
string
creator_drives
integer
creator_commission_cents
integer
I