订单支付
接口描述
POST /v1/orders/{order_id}:pay
订单支付
请求头(Request Header)
请求参数(Request Parameters)
| 名称 | 位置 | 类型 | 必须 | 描述 |
|---|---|---|---|---|
| order_id | path | string | true | 订单号 |
请求体(Request Body)
| 名称 | 位置 | 类型 | 必须 | 描述 |
|---|---|---|---|---|
| body | body | PayOrderRequest | true | none |
请求示例(Request Example)
curl --request POST \
--url https://finance.sensecoreapi.dev/boss/subscription/v1/orders/string:pay \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data '{"order_id":"string","payment_channel":"PC_UNSPECIFIED","resource_pack_id":"string"}'
响应参数(Response Parameters)
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | PayOrderResponse |
响应示例(Response Example)
200 Response
{
"order_id": "string",
"interactive": true
}
数据结构(Schemas)
PayOrderRequest
| 名称 | 类型 | 必须 | 限制 | 描述 |
|---|---|---|---|---|
| order_id | string | true | none | 订单号 |
| payment_channel | string(enum) | true | none | 支付方式 |
| resource_pack_id | string | false | none | 资源包ID |
payment_channel Enumerated Values
| 枚举值 |
|---|
| PC_UNSPECIFIED |
| PC_BALANCE |
| PC_CREDIT |
| PC_FROZENACCOUNT |
| PC_REMIT_OFFLINE |
| PC_ALIPAY |
| PC_UNIONPAY |
| PC_REMIT_ONLINE |
| PC_CONTRACT |
| PC_WECHAT |
PayOrderResponse
| 名称 | 类型 | 必须 | 限制 | 描述 |
|---|---|---|---|---|
| order_id | string | true | none | 订单号 |
| interactive | boolean | false | read-only | 支付方式 |