Pay for instance creation or manual extension using credits
POST
/v2/orders/{orderId}/payments/credits
Debits the entire server-calculated order price from the order author's wallet exactly once. No fallback payment or automatic top-up. CREDIT_TOPUP and orders where external payment has started are rejected. Extension is committed with the debit; creation runs after payment. Repeated requests return the existing order and result without a second debit or creation.
Authorizations
bearerAuth
OAuth access token or an API key on operations declaring x-api-key-scopes. Example header - Authorization Bearer sk_<64 lowercase hex characters>.
Type
HTTP (bearer)
or
basicAuth
Type
HTTP (basic)
Responses
Paid order and available result instance; check serviceStatus for processing or failure
application/json
JSON "order": { "id": "string", "name": "string", "price": 0, "createdAt": "2024-01-01T00:00:00Z", "paidAt": "2024-01-01T00:00:00Z", "paymentMethod": "MANUAL", "paymentStatus": "PENDING", "serviceStatus": "PENDING", "resultInstanceId": "string" }, "instance": { "id": "string", "name": "string", "nodeId": "string", "planId": "string", "imageId": "string", "createdAt": "2024-01-01T00:00:00Z", "isSettingUp": true, "autoExtend": true, "expiresAt": "2024-01-01T00:00:00Z" }
{
}