GET
/
v1
/
promotion-codes
/
:id
curl -X GET 'https://api.tolt.com/v1/promotion-codes/prc_dK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>'
{
  "success": true,
  "data": {
    "id": "prc_dK9bzRGn46BhVgNFHD6fDgXW",
    "code": "SUMMER2024",
    "type": "percentage",
    "value": 20,
    "partner_id": "part_s7mbzRGn46BhVgNFHD6fDgXW",
    "created_at": "2025-01-15T14:30:00.000Z",
    "updated_at": "2025-01-15T14:30:00.000Z",
    "program_id": "prg_YRsbPDAKhWfdqJbFACheh",
    "organization_id": "org_JE3mfYNL9ci7sFaJazAv2"
  }
}

Base URL https://api.tolt.com


Query Parameters

expand
array - optional

Specify which related objects to include in the response. Valid values are ‘partner’ and ‘program’. Use expand[]=partner or expand[]=program to include the related objects.

Response

success
boolean

Whether the request was successful

data
object
curl -X GET 'https://api.tolt.com/v1/promotion-codes/prc_dK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>'
{
  "success": true,
  "data": {
    "id": "prc_dK9bzRGn46BhVgNFHD6fDgXW",
    "code": "SUMMER2024",
    "type": "percentage",
    "value": 20,
    "partner_id": "part_s7mbzRGn46BhVgNFHD6fDgXW",
    "created_at": "2025-01-15T14:30:00.000Z",
    "updated_at": "2025-01-15T14:30:00.000Z",
    "program_id": "prg_YRsbPDAKhWfdqJbFACheh",
    "organization_id": "org_JE3mfYNL9ci7sFaJazAv2"
  }
}