{
"status": "ok"
}{
"name": "Unauthorized",
"message": "Your request was made with invalid credentials.",
"code": 0,
"status": 401,
"type": "unauthorized_http_exception"
}{
"name": "Insufficient Funds",
"message": "Insufficient funds",
"code": 0,
"status": 402,
"type": "insufficient_funds_exception",
"required_balance": 100,
"current_balance": 50
}{
"name": "Purchase not found",
"code": 0,
"message": "Object not found: {ID}",
"status": 404,
"type": "purchase_not_found_exception"
}{
"name": "Method Not Allowed",
"message": "Action is unavailable for this order",
"code": 0,
"status": 405,
"type": "action_unavailable"
}{
"name": "Purchase Done",
"message": "Order already completed",
"code": 0,
"status": 409,
"type": "purchase_done"
}{
"name": "Bad Request",
"errors": {
"tarif.id": [
"Tarif not found"
]
},
"code": 0,
"status": 422,
"type": "validate_exception"
}{
"name": "Action failed",
"message": "Action not performed",
"code": 0,
"status": 500,
"type": "action_failed"
}Prolong purchase
{
"status": "ok"
}{
"name": "Unauthorized",
"message": "Your request was made with invalid credentials.",
"code": 0,
"status": 401,
"type": "unauthorized_http_exception"
}{
"name": "Insufficient Funds",
"message": "Insufficient funds",
"code": 0,
"status": 402,
"type": "insufficient_funds_exception",
"required_balance": 100,
"current_balance": 50
}{
"name": "Purchase not found",
"code": 0,
"message": "Object not found: {ID}",
"status": 404,
"type": "purchase_not_found_exception"
}{
"name": "Method Not Allowed",
"message": "Action is unavailable for this order",
"code": 0,
"status": 405,
"type": "action_unavailable"
}{
"name": "Purchase Done",
"message": "Order already completed",
"code": 0,
"status": 409,
"type": "purchase_done"
}{
"name": "Bad Request",
"errors": {
"tarif.id": [
"Tarif not found"
]
},
"code": 0,
"status": 422,
"type": "validate_exception"
}{
"name": "Action failed",
"message": "Action not performed",
"code": 0,
"status": 500,
"type": "action_failed"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The language of the response
en, ru Path Parameters
The ID of the order
Body
- Option 1
- Option 2
Provide hours (preferred) or the deprecated count. Limits depend on the original tariff: hourly — 24 hours (1 day), daily — 168 hours (7 days), weekly — 672 hours (4 weeks), monthly — 1440 hours (30 days).
Exact extension duration in hours. The per-order maximum depends on the original tariff and can be lower than the global maximum shown here.
1 <= x <= 144024
Deprecated compatibility field. Number of original tariff units: hours for an hourly tariff, days for a daily tariff, weeks for a weekly tariff, and 30-day months for a monthly tariff. Maximum count: hourly — 24, daily — 7, weekly — 4, monthly — 2. Use hours for new integrations.
1 <= x <= 241
Response
Action Success
The status of the action
"ok"