You are not logged in.
UpdateSubCustomerBudget
This API is used to set or adjust a customer's budget.
Click here to learn about how to query the budget of a customer.
This API can be invoked only by the partner account AK/SK or token.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
X-Auth-Token | string | header | Yes | Call with partner token |
Name | Type | Mandatory | Description |
---|---|---|---|
customer_id | string | Yes | Customer account ID. You can call the API in Querying Customers to obtain the customer ID. |
budget_amount | double | Yes | Target amount, which can be accurate to two decimal places. Unit: USD |
cancel_partner_frozen | string | No | Whether to unfreeze the account when setting the customer budget. 0: No1: Yes The default value is 0. |
indirect_partner_id | string | No | Reseller ID. For details about how to obtain the ID, see Querying the List of Huawei Cloud Resellers. This parameter is mandatory to query the list of customers of a Huawei Cloud reseller. |
budget_type | string | No | Budget type. MONTHLY: Monthly budgets PACKAGE: One-time budgets. The default value is MONTHLY. |
Parameter Name: The default value is returned.
CBC.0100:Parameter error. CBC.99005024:This API cannot be invoked because the association type of the customer is incorrect.
"POST https://bss-intl.myhuaweicloud.com/v2/partners/sub-customers/budget"
{
"customer_id": "053a48736500d5f40ffec01689b88480",
"budget_amount": 100,
"cancel_partner_frozen": 0,
"indirect_partner_id": "0b5e9b********0c0f0fc00874a9e000"
}