Update Wallet Balance
PATCH /public/v1/wallets/balance
Request Body
| Name | Type | Required | Rule | Description |
|---|---|---|---|---|
| user_id | string | Mandatory | length 8 | the unique ID of client |
| currency | string | Mandatory | the currency of the CRM | |
| amount | number | Mandatory | the amount of request | |
| order_id | string | Mandatory | length 16 | the unique ID of request |
Expected HTTP status code
- 200
Response
| Name | Type | Description |
|---|
Error
| Code | Type | Description |
|---|---|---|
400 | account_not_found | Cannot find user from user_id |
400 | insufficient_funds | insufficient Wallet's balance |