List Promo Codes
Lists promo codes for an account with cursor pagination, filters, and sorting.
Query parameters
Account whose promo codes are listed (biz_ tag).
Promo-code status. expired groups inactive and archived codes.
Only promo codes scoped to these product IDs.
[ "prod_xxxxxxxxxxxxxx" ]
Only promo codes scoped to these plan IDs.
[ "plan_xxxxxxxxxxxxxx" ]
Only promo codes created before this ISO 8601 timestamp.
Only promo codes created after this ISO 8601 timestamp.
Sort field.
Sort direction.
Number of results to return from the start of the range.
Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.
Number of results to return from the end of the range.
Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.
Response
promo codes listed
Example response
{
"data": [
{
"amount_off": 0.1,
"code": "welcome",
"created_at": "2026-01-01T12:00:00.000Z",
"currency": "usd",
"duration": "repeating",
"expires_at": "2026-01-01T12:00:00.000Z",
"id": "promo_xxxxxxxxxxxxxx",
"metadata": {},
"new_users_only": true,
"one_per_customer": true,
"product": {
"id": "prod_xxxxxxxxxxxxxx",
"title": "Ceramic Coating Package"
},
"promo_duration_months": 1,
"promo_type": "percentage",
"status": "active",
"stock": 25,
"updated_at": "2026-01-01T12:00:00.000Z",
"uses": 1
}
],
"page_info": {
"start_cursor": "WyJjdXJzb3IiLDFd"
}
}Changes
Changed in 2 of the 74 revisions of this API.101222
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
added the new required
queryrequest parameteraccount_idnew-required-request-parameter
- ▲
the
queryrequest parameterstatuswas restricted to a list of enum valuesrequest-parameter-became-enum
- ▲
for the
queryrequest parameterfirst, default value20was addedrequest-parameter-default-value-added
- ▲
added
subschema #2to the//response propertyoneOflist for the response statusresponse-property-one-of-added
- ▲
the
//response's property format changed fromdate-timeto no format for statusresponse-property-type-changed
- ▲
the
//response's property type changed from no type tostringfor statusresponse-property-type-changed
- ▲
the
//response's property format changed fromdate-timeto no format for statusresponse-property-type-changed
- ▲
the
//response's property type changed fromobjectnullto no type for statusresponse-property-type-changed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ●
for the
queryrequest parameterfirst, the max was set to100.00request-parameter-max-set
- ●
for the
queryrequest parameterlast, the max was set to100.00request-parameter-max-set
- ●
deleted the
queryrequest parametercompany_idrequest-parameter-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ●
added the new
foreverenum value to the//response property for the response statusresponse-property-enum-value-added
- ●
added the new
onceenum value to the//response property for the response statusresponse-property-enum-value-added
- ●
added the new
repeatingenum value to the//response property for the response statusresponse-property-enum-value-added
- ○
api operation id
listPromoCoderemoved and replaced withlistPromoCodesapi-operation-id-removed
- ○
the security scope
access_pass:basic:readwas removed from the endpoint's security schemebearerAuthapi-security-scope-removed
- ○
api tag
Promo Codesaddedapi-tag-added
- ○
api tag
Promo codesremovedapi-tag-removed
- ○
added the new optional
headerrequest parameterApi-Version-Dateto all path's operationsnew-optional-request-default-parameter-to-existing-path
- ○
added the new optional
queryrequest parameterdirectionnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterordernew-optional-request-parameter
- ○
added the new enum value
activeto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
archivedto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
expiredto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
inactiveto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
for the
queryrequest parameterstatus, the type was generalized from no type tostringrequest-parameter-type-generalized
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed the non-success response with the status
response-non-success-status-removed
- ○
removed
subschema #2from the//response propertyoneOflist for the response statusresponse-property-one-of-removed
- ○
added the required property
//to the response with the statusresponse-required-property-added
- ○
added the required property
//to the response with the statusresponse-required-property-added
This revision also has 16 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
Of the 74 revisions, 1 has no diff computed.