Deducts credits from a sub-account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubYikeUserCredit |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| YikeUserId |
string |
Yes |
The user ID of the sub-account. |
id |
| Credit |
integer |
Yes |
The amount of credit to deduct. The value must be greater than 0 and cannot exceed the credit balance of the sub-account. |
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
****63E8B7C7-4812-46AD-0FA56029AC86**** |
| Result |
boolean |
Indicates whether the operation succeeded.
|
true |
| ErrorCode |
string |
The error code returned if the operation fails. A possible value is:
|
NOT_ENOUGH_ALLOCATE_CREDIT_QUOTA |
Examples
Success response
JSON format
{
"RequestId": "****63E8B7C7-4812-46AD-0FA56029AC86****",
"Result": true,
"ErrorCode": "NOT_ENOUGH_ALLOCATE_CREDIT_QUOTA"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.