Paycose Docs
E2ECreate Customers
POST/customers

E2E 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

NameValueDescription
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

NameTypeValue
namestringE2E Destination Merchant Co., Ltd.
emailstringdestination@e2e.test
phonestring+6620009999
business_namestring<string>
addressobject{…}
shippingobject{…}
tax_idsarray[1]
preferred_localesarray[1]
labelsarray[1]
capabilitiesobject{…}
metadataobject{…}
{
  "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

NameValue
Content-Typeapplication/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

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}
500500 Internal Server Error

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page