Skip to content

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"
  
}
}

Playground​

Authorization

Samples​

상호명: 스텔라아이티 주식회사
대표자: 홍윤석
주소: 서울특별시 금천구 디지털로9길 32, 비동 504-2호 (가산동, 갑을그레이트밸리)
사업자등록번호: 832-86-02374
전화번호: 1533-7848
이메일주소: contact@stella-it.com
통판업신고번호: 2024-서울금천-1834