Skip to content

List promotion codes

The promotion_codes.list operation: GET /api/v1/promotion_codes in the REST API and the promotion_codes_list tool in the MCP server.

GET/api/v1/promotion_codes

Lists the brand's promotion codes in the request's mode, newest first. Filter by couponId, by active, or by code to look a code up the way customers type it (case doesn't matter; at most one result).

Paginate with limit (1–100, default 10) and starting_after (the next_cursor of the previous page).

At a glance

  • REST: GET /api/v1/promotion_codes
  • MCP tool: promotion_codes_list
  • Operation ID: promotion_codes.list
  • Scope: Brand
  • Permission: catalog:read
  • Risk tier: read
  • Dry run: Not supported
  • Idempotency: Not needed (read only)
  • Modes: Test and live
  • Pagination: limit (at most 100) and starting_after
  • Authentication: API key with the catalog:read scope
  • Since: M5

Request

Query parameters

FieldTypeRequiredDescription
couponIdcpn_… IDNoOnly the codes of this coupon.
codestringNoFind the promotion code customers type as this text (case doesn't matter).
activestringNoOnly active (true) or archived (false) codes.
limitinteger (1 to 100)No
starting_afterpromo_… IDNo

Response

200 OK with a JSON object, a page of the list (newest first):

FieldTypeDescription
object"list"
dataarray of object
data[].idpromo_… ID
data[].object"promotion_code"
data[].brandIdbrd_… ID
data[].livemodeboolean
data[].couponIdcpn_… ID
data[].codestringAs entered; customers may type it in any case.
data[].restrictionsobject
data[].restrictions.firstTimeOnlyboolean
data[].restrictions.minimumAmountmoney or null
data[].restrictions.customerIdstring or null
data[].restrictions.expiresAtdate-time or null
data[].restrictions.maxRedemptionsinteger or null
data[].timesRedeemedinteger
data[].activeboolean
data[].metadataobject
data[].createdAtdate-time
data[].updatedAtdate-time
has_moreboolean
next_cursorpromo_… ID or null

Examples

Look up a code as a customer typed it

HTTP
GET /api/v1/promotion_codes?code=launch50
Authorization: Bearer or_test_…

Response (200):

JSON
{
  "object": "list",
  "data": [
    {
      "id": "promo_01m4tx5nj8emwbyf7y9vcf47z2",
      "object": "promotion_code",
      "brandId": "brd_01m4tx5nj8emwbyf7y9vcf47x4",
      "livemode": false,
      "couponId": "cpn_01m4tx5nj8emwbyf7y9vcf47z0",
      "code": "LAUNCH50",
      "restrictions": {
        "firstTimeOnly": true,
        "minimumAmount": null,
        "customerId": null,
        "expiresAt": null,
        "maxRedemptions": 200
      },
      "timesRedeemed": 0,
      "active": true,
      "metadata": {},
      "createdAt": "2026-10-13T12:00:00.000Z",
      "updatedAt": "2026-10-13T12:00:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

A coupon's codes

HTTP
GET /api/v1/promotion_codes?couponId=cpn_01m4tx5nj8emwbyf7y9vcf47z0
Authorization: Bearer or_test_…

Response (200):

JSON
{
  "object": "list",
  "data": [
    {
      "id": "promo_01m4tx5nj8emwbyf7y9vcf47z2",
      "object": "promotion_code",
      "brandId": "brd_01m4tx5nj8emwbyf7y9vcf47x4",
      "livemode": false,
      "couponId": "cpn_01m4tx5nj8emwbyf7y9vcf47z0",
      "code": "LAUNCH50",
      "restrictions": {
        "firstTimeOnly": true,
        "minimumAmount": null,
        "customerId": null,
        "expiresAt": null,
        "maxRedemptions": 200
      },
      "timesRedeemed": 0,
      "active": true,
      "metadata": {},
      "createdAt": "2026-10-13T12:00:00.000Z",
      "updatedAt": "2026-10-13T12:00:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Errors

CodeHTTP statusWhenWhat to do
validation_failed400A filter or pagination value is malformed.Fix the fields listed in details.issues and send the request again.
permission_denied403You can't see this brand's catalog.Ask an organization owner or admin for a role or scope that allows this action.

It can also return these common errors: api_version_unsupported, authentication_required, api_key_invalid, scope_required, resource_not_found, dry_run_not_supported, rate_limited, internal_error.