DocumentationRecipesAPI ReferenceChangelog
Documentation

Initialization

👍

HTTPS POST / Server-to-Server

Requests and Responses are encrypted using JWT

  • Algorithm : HMAC SHA-256 using Merchant’s Secret Key.

Refer JWT Token Guide on how to prepare requests and process responses.

https://sandbox-pgw.2c2p.com/payment/4.3/Initialization
https://pgw.2c2p.com/payment/4.3/Initialization
📘

API Parameter

Initialization Response Parameters

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.

{
  "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"
}

Run test with Swagger Editor