Commet
  • Precios
Iniciar SesiónRegistrarse
Create promo code POSTGet promo code GETList promo codes GETUpdate promo code PUT
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

List promo codes

List promo codes with cursor-based pagination.

Get promo code GET

Retrieve a promo code by its public ID.

Update promo code PUT

Update a promo code's redemption limits, expiration, active status, or plan restrictions.

GET
/promo-codes

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

limit?integer
cursor?string

Response Body

application/json

application/json

curl -X GET "https://commet.co/api/v1/promo-codes"

List promo codes with cursor-based pagination.

Max 100, default 25

{
  "success": true,
  "data": [
    {
      "object": "promo_code",
      "livemode": true,
      "id": "string",
      "code": "string",
      "discountType": "percentage",
      "discountValue": 0,
      "durationCycles": 0,









{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}
"maxRedemptions": 0,
"expiresAt": "2019-08-24T14:15:22Z",
"active": true,
"redemptionCount": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
],
"hasMore": true,
"nextCursor": "string"
}