Bank Account
POST
/onetime/bank_accountsCreate One-Time
OneTimeCreateBankAccountDTO — hosted submit; customer bound server-side by the session. Auto-added to mirror the backend route. Body/params are placeholders derived from the handler DTO.
Request
Example
curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/onetime/bank_accounts/' \
-H 'X-Onetime-Session: {{x-onetime-session}}' \
-H 'X-Test-Mode: {{x_test_mode}}' \
-d '{
"account_holder_name": "Somchai Jaidee",
"phone_number": "<string>",
"primary_identify_id": "<string>",
"extra_fields": {},
"target": "THB",
"provider": "",
"type": "<string>",
"metadata": {}
}'Headers
| Name | Value | Description |
|---|---|---|
| X-Onetime-Session | {{x-onetime-session}} | |
| 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 |
|---|---|---|
| account_holder_name | string | Somchai Jaidee |
| phone_number | string | <string> |
| primary_identify_id | string | <string> |
| extra_fields | object | {…} |
| target | string | THB |
| provider | string | |
| type | string | <string> |
| metadata | object | {…} |
{
"account_holder_name": "Somchai Jaidee",
"phone_number": "<string>",
"primary_identify_id": "<string>",
"extra_fields": {},
"target": "THB",
"provider": "",
"type": "<string>",
"metadata": {}
}Responses
200200 OK
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"id": "<string>",
"object": "<string>",
"resource": "<string>",
"created_at": "<RFC3339 timestamp>",
"errors": [
{
"code": "<string>",
"message": "<string>"
}
],
"next_action": [
{
"type": "<string>",
"title": "<string>",
"description": "<string>",
"i18n_key": "<string>",
"url": "<string>",
"client_secret": "<string>",
"payment_method": "<string>",
"qr_data": "<string>"
}
]
}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>"
}500500 Internal Server Error
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}