Initialization

👍

HTTPS POST / Server-to-Server

Sandbox endpoint : sandbox-pgw.2c2p.com/payment/4.1/Initialization
Run test with Swagger Editor

To go live, refer to: Live endpoint guide

The Initialization API allows merchants to retrieve details on available languages.

 

Initialization Request


This API does not require any request data.

 

Initialization Response


The sample code below demonstrates the structure of the API response.
For API specifications, refer to: Initialization Response Parameters

{
  "initialization": {
    "locale": [
      {
        "code": "en",
        "name": "English",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/en.png"
      },
      {
        "code": "th",
        "name": "ไทย",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/th.png"
      },
      {
        "code": "my",
        "name": "မြန်မာ",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/my.png"
      },
      {
        "code": "id",
        "name": "Indonesia",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/id.png"
      },
      {
        "code": "ja",
        "name": "日本語",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/ja.png"
      },
      {
        "code": "zh-cn",
        "name": "中文(简体)",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/zh-cn.png"
      },
      {
        "code": "zh-tw",
        "name": "中文(繁體)",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/zh-tw.png"
      },
      {
        "code": "vi",
        "name": "Tiếng Việt",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/vi.png"
      },
      {
        "code": "ko",
        "name": "한국어",
        "iconUrl": "https://d27uu9vmlo4gwh.cloudfront.net/images/v4/images/icon/ko.png"
      }
    ]
  },
  "respCode": "0000",
  "respDesc": "Success"
}