Create a budget accountSignature required
Call this API to set up a budget account.
Structure
A message consists of a header and body. For details, see the following sections.
Request header
Request parameters
requestId String REQUIRED
The unique ID for creating the budget account.
More information:
- Maximum length: 32 characters
budgetAccountName String
The budget account name.
When unspecified, this parameter is named by a default sequence number, for example,
Budget Account 2
.
More information:
- Maximum length: 50 characters
Response parameters
result Result REQUIRED
Indicates the result of the API call.
requestId String REQUIRED
The unique ID of creating the budget account.
More information:
- Maximum length: 32 characters
validationStatus String REQUIRED
The validation result of whether a budget account can be created. Valid value:
ALLOW
: idicates that the creation of budget account is allowed.
openStatus String REQUIRED
The status of the budget account creation. Valid values:
-
SUCCESS
: A budget account is created successfully. -
FAIL
: A budget account has failed to be created.
budgetAccountId String REQUIRED
The budget account ID.
Request
Response
Result processing logic
After calling the API, a response is returned. The possible responses for result.resultStatus are:
result.resultCode
Code | Value | Message | Further action |
---|---|---|---|
SUCCESS | S | Success | |
UNKNOWN_EXCEPTION | U | API failed due to unknown reason. | The service might be down, retry later. If the issue persists, contact our Technical Support Team. |
SYSTEM_ERROR | F | System error. | Do not retry, and contact our Technical Support Team for more details. |
INVALID_SIGNATURE | F | The signature is invalid. | Make sure the request is properly signed with a valid signature. |
REPEAT_REQUEST | F | Repeated request | Change the requestId and retry. |
ACCESS_TOKEN_EXPIRED | F | The access token expired. | Refresh token to get a new access token or contact out Technical Support Team to address it. |
AUTHORIZATION_NOT_EXIST | F | The authorization does not exist. | Make sure that the input is correct. If the issue persists, contact our Technical Support Team to verify the authorization status. |
INSUFFICIENT_DEPOSIT_AMOUNT | F | The deposit amount is insufficient to create a budget account. | Make sure that the budget account has adequate deposit and then retry. |
USER_NOT_EXIST | F | The user does not exist. | Retry with the correct user information. |
CONTRACT_CHECK_FAIL | F | The contract check has failed. | Contact our Technical Support Team to check the status of your API contract. Make sure it is still valid and try again. |
BUDGET_ACCOUNT_NUMBER_OVER_LIMIT | F | The number of budget accounts exceeds the limit. | You cannot create more than 3 budget accounts. If you need more, contact the WorldFirst client manager. |