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