Skip to main content
GET
/
codes
cURL
curl --request GET \
  --url https://buyer.launchpoint.nyc/api/2025-11/codes \
  --header 'Authorization: Bearer <token>'
{
  "codes": [
    {
      "code": "CODE1",
      "total_uses": 5,
      "earnings_cents": 2500,
      "user_description": "<string>",
      "last_updated": "2023-11-07T05:31:56Z"
    }
  ],
  "total_earnings_cents": 15000
}

Authorizations

Authorization
string
header
required

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

Query Parameters

codes
string

Comma-separated list of discount codes to retrieve (optional)

discount_group_id
string

The ID of the discount group to retrieve codes for (optional)

Response

Code usage and earnings response

codes
object[]

Usage data for requested codes

total_earnings_cents
integer

Total earnings across all codes in cents

Example:

15000

I