List packages and promotions
GET
/api/v1/catalog/promotionsPackages and available add-ons.
Required scope listings:read
Responses
200 Packages and available add-ons.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
packages | object[] | No | — |
singlePromotions | object[] | 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/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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.