Pobierz pakiety i promocje
GET
/api/v1/catalog/promotionsPakiety i dostępne dodatki.
Wymagany zakres listings:read
Odpowiedzi
200 Pakiety i dostępne dodatki.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
packages | object[] | Nie | — |
singlePromotions | object[] | Nie | — |
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"
}
}
}
}
}
}Pozostałe błędy API Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Brak prawidłowego klucza API.403 Brak zakresu wymaganego przez operację lub żądanie bez HTTPS na produkcji.429 Przekroczono limit zapytań. Sprawdź Retry-After.503 Dostęp jest zamknięty lub usługa jest chwilowo niedostępna. Sprawdź code.