E2ECreate Balances
POST
/balancesSGD balance (destination)
Request body: CreateBalanceRequest
Responses: 200, 400, 403, 404
Generated from the code contract; no hand-written description yet.
Request
Example
curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/balances/' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-H 'X-Test-Mode: {{x_test_mode}}' \
-d '{
"customer_id": "{{e2e_customer_destination}}",
"currency": "SGD",
"name": "E2E destination — SGD",
"description": "Settlement balance used as transfer_data.balance_id by the Razer DeathAdder SGD invoice."
}'Headers
| Name | Value | Description |
|---|---|---|
| X-Session-Token | {{session_token}} | |
| X-Country | {{country}} | |
| X-Test-Mode | {{x_test_mode}} | true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request. |
Body
| Name | Type | Value |
|---|---|---|
| customer_id | string | {{e2e_customer_destination}} |
| currency | string | SGD |
| name | string | E2E destination — SGD |
| description | string | Settlement balance used as transfer_data.balance_id by the R… |
{
"customer_id": "{{e2e_customer_destination}}",
"currency": "SGD",
"name": "E2E destination — SGD",
"description": "Settlement balance used as transfer_data.balance_id by the Razer DeathAdder SGD invoice."
}Responses
400400 Bad Request
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}403403 Forbidden
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}404404 Not Found
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}