v1

latestOpenAPI 3.1.02026-07-24120106.5 KB

Create A QR Payment Method Token

Creates a new qr payment method and returns an auto-generated token.

post/paymentmethodtokens/qrpayment

Request body

accountHolderNamestring required

The name of the account holder.

countryCodestring required

The 2-letter country code of the country.

qrTypestring required

The type of QR Payment to be created. For example, PROMPTPAY

termAndConditionAgreedstring required

Specify if the account holder has accepted Ezypay's Terms and Conditions. Supported values are true or false.

customerIdstring

Specify the optional customerId to directly associate the payment method token with a particular customer.

Response

200

typestring
paymentMethodTokenstring

Example response

{
  "type": "CARD",
  "qrPayment": {
    "merchantId": "John Smith",
    "accountHolderName": "22",
    "qrType": "01",
    "countryCode": "VISA",
    "customerId": "1111"
  },
  "paymentMethodToken": "9b1045ac-e85e-4840-8871-4c96005d01ab"
}