User Preference

👍

HTTPS POST / Server-to-Server

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

Go live when you are ready, Live endpoint is provided.

User Preference API is for merchant to get the preference information.

User Preference Request


Below are the guidelines that how to prepare a user preference request and send to 2c2p

  1. Below sample request data show the request structure. Refer User Preference Request Parameter for API Specification.
{
    "paymentToken": "kSAops9Zwhos8hSTSeLTUcCrwcnrndJUZanGJy3fBEsXCiYmynwxHvK5h7XPBadJqD0nG7v65t5N2jPVrnwX2jL4nu+KKSegjUjERKCyWPg=",
    "clientID": "E380BEC2BFD727A4B6845133519F3AD7",
    "locale": "en"
}

 

User Preference Response


Below sample response data show the data structure. Refer User Preference Response Parameter for API Specification.

{
  "paymentToken": "kSAops9Zwhos8hSTSeLTUcCrwcnrndJUZanGJy3fBEsXCiYmynwxHvK5h7XPBadJqD0nG7v65t5N2jPVrnwX2jL4nu+KKSegjUjERKCyWPg=",
  "user": {
    "preference": {
      "name": null,
      "email": null,
      "mobileNo": null,
      "mobileNoPrefix": "60",
      "locale": "",
      "currencyCode": "MYR",
      "countryCode": "MY"
    },
    "paymentChannels": []
  },
  "respCode": "0000",
  "respDesc": "Success"
}