GET /health
Service health
Scope: —
Responses / errors
{
"200": {
"description": "Healthy"
}
}Bearer API keyBase path /api/partner/v1Rate limit 429 / Retry-After/healthService health
Scope: —
{
"200": {
"description": "Healthy"
}
}/openapi.yamlOpenAPI 3.1 document
Scope: —
{
"200": {
"description": "Specification"
}
}/meCurrent partner and safe key data
Scope: partner:read
{
"200": {
"description": "Partner"
},
"401": {
"description": "Invalid key"
},
"403": {
"description": "Forbidden"
}
}/balanceBalance in minor units
Scope: balance:read
{
"200": {
"description": "Balance"
}
}/tariffsActive tariffs
Scope: tariffs:read
{
"200": {
"description": "Tariffs"
}
}/tariffs/{code}Active tariff
Scope: tariffs:read
[
{
"name": "code",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]{
"200": {
"description": "Tariff"
},
"404": {
"description": "Not found"
}
}/ordersList owned orders
Scope: orders:read
{
"200": {
"description": "Orders"
}
}/ordersAtomically purchase a pending subscription gift
Scope: orders:write
[
{
"$ref": "#/components/parameters/RequestId"
},
{
"$ref": "#/components/parameters/Idempotency"
}
]{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Purchase"
}
}
}
}{
"201": {
"description": "Completed order and delivery"
},
"409": {
"description": "Idempotency conflict"
},
"422": {
"description": "Business validation"
}
}Destructive Try it отключён. Purchase и renewal выполняются только сервер-сервер.
/orders/{orderId}Read owned order
Scope: orders:read
[
{
"name": "orderId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]{
"200": {
"description": "Order"
},
"404": {
"description": "Not found"
}
}/subscriptions/{subscriptionId}Read owned delivery/subscription
Scope: subscriptions:read
[
{
"name": "subscriptionId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]{
"200": {
"description": "Subscription"
},
"404": {
"description": "Not found"
}
}/subscriptions/{subscriptionId}/renewRenew an activated owned subscription with reserve/compensation
Scope: subscriptions:renew
[
{
"name": "subscriptionId",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"$ref": "#/components/parameters/Idempotency"
}
]{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"tariffCode"
],
"properties": {
"tariffCode": {
"type": "string"
},
"externalOrderId": {
"type": "string"
}
}
}
}
}
}{
"200": {
"description": "Renewed"
},
"409": {
"description": "Not active or idempotency conflict"
},
"503": {
"description": "Provider unavailable and balance released"
}
}Destructive Try it отключён. Purchase и renewal выполняются только сервер-сервер.