WorkflowSub2ApiOrderPaymentResponse
0data objectrequired
order objectrequired
The order is visible to the user; the Sub2API user, subscription, and key association IDs are only saved in the background.
Groups associated with subscription package orders; this field is not returned for account balance recharge orders.
Possible values: [subscription, balance_recharge]
Possible values: >= 1
Possible values: [CNY]
Possible values: [pending, processing, completed, failed]
catalog objectrequired
The account-level shared balance of the current Sub2API user, which does not belong to any individual group.
Possible values: >= 0
groups object[]required
The configuration opened by the administrator is sorted by the current user provider preference; if the preference is not configured, the order is ascending by group ID.
Possible values: [standard, subscription]
Indicates whether the group key is still retained in the background; the deactivation key is still true, and the key content or ID is not returned.
Indicates whether the grouping key is currently active; false if not configured or deactivated.
balanceUsage object
Today's actual deduction by Asia/Shanghai time zone.
Possible values: >= 0
Actual deductions for the past 30 natural days, including today.
Possible values: >= 0
The cumulative actual deduction amount of the current user in the balance charging group.
Possible values: >= 0
subscription object
Sub2API the current total daily quota; null means unlimited.
Possible values: >= 0
Sub2API Total current weekly quota; null indicates unlimited.
Possible values: >= 0
Sub2API Total current monthly quota; null indicates unlimited.
Possible values: >= 0
The time of this response to the combined balance, balance group usage, subscription and quota; Sub2API details may come from the short-term in-process cache.
{
"errCode": 0,
"errMessage": "string",
"data": {
"order": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"userId": "string",
"groupId": 0,
"groupName": "string",
"kind": "subscription",
"amountCents": 0,
"currency": "CNY",
"status": "pending",
"paidAt": "2024-07-29T15:51:28.071Z",
"fulfilledAt": "2024-07-29T15:51:28.071Z",
"failureMessage": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z"
},
"catalog": {
"balance": 0,
"groups": [
{
"groupId": 0,
"name": "string",
"description": "string",
"platform": "string",
"subscriptionType": "standard",
"status": "string",
"priceCents": 0,
"hasApiKey": true,
"apiKeyEnabled": true,
"paidAt": "2024-07-29T15:51:28.071Z",
"balanceUsage": {
"todayUsd": 0,
"last30DaysUsd": 0,
"totalUsd": 0
},
"subscription": {
"status": "string",
"startsAt": "2024-07-29T15:51:28.071Z",
"expiresAt": "2024-07-29T15:51:28.071Z",
"dailyLimitUsd": 0,
"dailyUsageUsd": 0,
"dailyRemainingUsd": 0,
"weeklyLimitUsd": 0,
"weeklyUsageUsd": 0,
"weeklyRemainingUsd": 0,
"monthlyLimitUsd": 0,
"monthlyUsageUsd": 0,
"monthlyRemainingUsd": 0
}
}
],
"fetchedAt": "2024-07-29T15:51:28.071Z"
}
}
}