E2ECreate Customers
POST
/customersE2E Destination Merchant Co., Ltd. (TH, business)
Phase-5 destination customer. All Phase-3 Quote/Invoice/Subscription requests route funds INTO this customer via transfer_data.destination. payout=true so it can also receive payouts.
Request
Example
curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/customers/' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-H 'X-Test-Mode: {{x_test_mode}}' \
-d '{
"name": "E2E Destination Merchant Co., Ltd.",
"email": "destination@e2e.test",
"phone": "+6620009999",
"business_name": "<string>",
"address": {
"city": "Bangkok",
"country": "TH",
"line1": "1 E2E Test Tower",
"line2": "Floor 42",
"postal_code": "10110",
"state": "Bangkok"
},
"shipping": {
"name": "<string>",
"phone": "<string>",
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
}
},
"tax_ids": [
{
"type": "th_vat",
"value": "0105560099999",
"country": "TH"
}
],
"preferred_locales": [
"<string>"
],
"labels": [
"<string>"
],
"capabilities": {
"charge": true,
"transfer": true,
"payout": true
},
"metadata": {
"persona": "E2E destination merchant — used as transfer_data.destination for all Phase-3 transactional flows"
}
}'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 |
|---|---|---|
| name | string | E2E Destination Merchant Co., Ltd. |
| string | destination@e2e.test | |
| phone | string | +6620009999 |
| business_name | string | <string> |
| address | object | {…} |
| shipping | object | {…} |
| tax_ids | array | [1] |
| preferred_locales | array | [1] |
| labels | array | [1] |
| capabilities | object | {…} |
| metadata | object | {…} |
{
"name": "E2E Destination Merchant Co., Ltd.",
"email": "destination@e2e.test",
"phone": "+6620009999",
"business_name": "<string>",
"address": {
"city": "Bangkok",
"country": "TH",
"line1": "1 E2E Test Tower",
"line2": "Floor 42",
"postal_code": "10110",
"state": "Bangkok"
},
"shipping": {
"name": "<string>",
"phone": "<string>",
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
}
},
"tax_ids": [
{
"type": "th_vat",
"value": "0105560099999",
"country": "TH"
}
],
"preferred_locales": [
"<string>"
],
"labels": [
"<string>"
],
"capabilities": {
"charge": true,
"transfer": true,
"payout": true
},
"metadata": {
"persona": "E2E destination merchant — used as transfer_data.destination for all Phase-3 transactional flows"
}
}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>"
}