API reference

Production access is closed · 37 operations

List packages and promotions

GET/api/v1/catalog/promotions

Packages and available add-ons.

Required scope listings:read

Jump to the example

Responses

200 Packages and available add-ons.
application/json
Schema object
NameTypeRequiredDescription
packagesobject[]No—
singlePromotionsobject[]No—
JSON Schema
{
  "type": "object",
  "properties": {
    "packages": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "systemKey",
          "name",
          "priceCents"
        ],
        "properties": {
          "systemKey": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "priceCents": {
            "type": "integer"
          },
          "durationDays": {
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "type": "string"
          }
        }
      }
    },
    "singlePromotions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "systemKey",
          "name",
          "priceCents"
        ],
        "properties": {
          "systemKey": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "priceCents": {
            "type": "integer"
          },
          "durationDays": {
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "type": "string"
          }
        }
      }
    }
  }
}
Other API errors Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
401 A valid API key is required.
403 The scope is missing or the production request does not use HTTPS.
429 Rate limit exceeded. Check Retry-After.
503 Access is closed or the service is temporarily unavailable. Check code.

Handle errors and rate limits ↗