订单支付 | 大装置帮助中心
跳到主要内容

订单支付

订单支付

Path Parameters
    order_id string required

    订单号

Request Body required
    order_id string required

    订单号

    payment_channel enum required

    Possible values: [PC_UNSPECIFIED, PC_BALANCE, PC_CREDIT, PC_FROZENACCOUNT, PC_REMIT_OFFLINE, PC_ALIPAY, PC_UNIONPAY, PC_REMIT_ONLINE, PC_CONTRACT, PC_WECHAT]

    支付方式

    resource_pack_id string

    资源包ID

    ba_vouchers object[]

    选择的代金券列表

  • Array [
  • billing_account_id string

    计费账户ID

    selected_vouchers object[]

    用户选择的代金券列表

  • Array [
  • id string

    代金券编号

    deduction_amount object

    价格

    currency_code string

    货币代码, 参考ISO 4217

    units int64

    价格整数部分

    nanos int32

    价格小数部分

  • ]
  • ]
Responses

OK


Schema
    order_id string required

    订单号

POST /v1/orders/:order_id:pay

Authorization

name: bearerAuthtype: httpscheme: bearer

Request

Base URL
https://finance.sensecoreapi.cn/boss/subscription
Bearer Token
order_id — path required
Body required
{
"order_id": "string",
"payment_channel": "PC_UNSPECIFIED",
"resource_pack_id": "string",
"ba_vouchers": [
{
"billing_account_id": "string",
"selected_vouchers": [
{
"id": "string",
"deduction_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
}
}
]
}
]
}
curl / cURL
curl -L -X POST 'https://finance.sensecoreapi.cn/boss/subscription/v1/orders/undefined:pay' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"order_id": "string",
"payment_channel": "PC_UNSPECIFIED",
"resource_pack_id": "string",
"ba_vouchers": [
{
"billing_account_id": "string",
"selected_vouchers": [
{
"id": "string",
"deduction_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
}
}
]
}
]
}'