订单支付
订单支付
Path Parameters
order_id string required
订单号
application/json
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[]
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
order_id string required
订单号
{
"order_id": "string",
"interactive": true
}
Default error response
application/json
Schema
Example (from schema)
Schema
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v1/orders/:order_id:pay
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
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
}
}
]
}
]
}'
python / requests
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
}
}
]
}
]
}'
go / native
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
}
}
]
}
]
}'
nodejs / axios
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
}
}
]
}
]
}'
ruby / Net::HTTP
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
}
}
]
}
]
}'
csharp / RestSharp
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
}
}
]
}
]
}'
php / 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
}
}
]
}
]
}'
java / OkHttp
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
}
}
]
}
]
}'
powershell / RestMethod
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
}
}
]
}
]
}'