Skip to main content
PUT
/
codes
cURL
curl --request PUT \
  --url https://buyer.launchpoint.nyc/api/2025-11/codes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code_usage": {
    "CODE1": 5,
    "CODE2": 10,
    "CODE3": 3
  }
}'
{
  "updated_codes": 123,
  "success": true
}

Authorizations

Authorization
string
header
required

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

Body

Code usage data - either as a map or CSV format

code_usage
object

Map of discount code to total uses

Example:
{ "CODE1": 5, "CODE2": 10, "CODE3": 3 }

Response

Code usage updated successfully

updated_codes
integer

Number of codes successfully updated

success
boolean
I