Payment Method Form Query

Introduction

Onramp credit card payment and All of Offramp payment require payment method form.

Check payment method detail at Notion.

API Description

Request Method: GET

Request Path: /open/api/v4/merchant/payment/requiredField

Request Parameters

Header Parameters:

ParameterRequiredTypeDescription
appidYstringThe unique identifier of the application
timestampYstringCurrent UTC 13-digit timestamp, valid within 5 minutes
signYstringSignature, the signature method can be referenced here

Url Parameters:

ParameterRequiredTypeDescription
payWayCodeYstringPayment method code(check the table below)
fiatYstring3-letter fiat code(ISO 4217), e.g.: USD
sideYstringBUY/SELL

Pay Way Code

Payment MethodpayWayCode
Visa/ Master Card10001
OtherPlease check Payment Methods

Response Parameters

Examples

Card

{
	"success": true,
	"returnCode": "0000",
	"returnMsg": "SUCCESS",
	"extend": "",
	"data": {
		"fields": [
			{
				"regex": "^[a-zA-Z]{1,128}$",
				"fieldName": "firstName",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^[a-zA-Z]{1,128}$",
				"fieldName": "lastName",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^\\d{13,19}$",
				"fieldName": "cardNumber",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^\\d{4}$",
				"fieldName": "cardExpireYear",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^\\d{2}$",
				"fieldName": "cardExpireMonth",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^\\d{3,4}$",
				"fieldName": "cardCvv",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^[a-zA-Z]{2}$",
				"fieldName": "country",
				"fieldType": "select",
				"formElement": "text",
				"dataSourceKey": "countryList"
			},
			{
				"regex": "^[a-zA-Z\\s]{1,128}$",
				"fieldName": "city",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^\\d{4,10}$",
				"fieldName": "postcode",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^[\\w\\s,-]{1,256}$",
				"fieldName": "address",
				"fieldType": "string",
				"formElement": "text",
				"dataSourceKey": null
			},
			{
				"regex": "^[a-zA-Z]{1,128}$",
				"fieldName": "state",
				"fieldType": "String",
				"formElement": "text",
				"dataSourceKey": "stateList"
			}
		],
		"dataSource": {...}
	}
}

Account

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": {
        "fields": [ // Fields for submitting card or account form
            {
                "fieldName": "accountNo",
                "fieldType": "string",
                "regex": "^\\d{9,16}$",
                "formElement": "input"
            },
            {
                "fieldName": "country",
                "fieldType": "string",
                "regex": "",
                "formElement": "select",
                "dataSourceKey": "countryList"
            },
            {
                "fieldName": "accountType",
                "fieldType": "string",
                "regex": "",
                "formElement": "select",
                "dataSourceKey": "accountTypeList"
            },
            {
                "fieldName": "bankId",
                "fieldType": "string",
                "regex": "",
                "formElement": "select",
                "dataSourceKey": "bankList"
            },
            {
                "fieldName": "bankName",
                "fieldType": "string",
                "regex": "",
                "formElement": "select",
                "dataSourceKey": "bankList"
            }
        ],
        "dataSource": { // Data sources for some form fields
            "bankList": [
                {
                    "locationId": "4172",
                    "bankId": "4172",
                    "bankName": "DBS Bank Ltd, HK Branch",
                    "bankBranch": "Hong Kong DBS Bank Ltd, HK Branch",
                    "address": "Hong Kong DBS Bank Ltd, HK Branch",
                    "city": "Hong Kong",
                    "currency": "HKD",
                    "countryCode": "HK",
                    "country": "HK",
                    "transactionType": "B2C",
                    "channelCode": "57"
                },
                {
                    "locationId": "4173",
                    "bankId": "4173",
                    "bankName": "The Shizuoka Bank, Ltd.",
                    "bankBranch": "Hong Kong The Shizuoka Bank, Ltd.",
                    "address": "Hong Kong The Shizuoka Bank, Ltd.",
                    "city": "Hong Kong",
                    "currency": "HKD",
                    "countryCode": "HK",
                    "country": "HK",
                    "transactionType": "B2C",
                    "channelCode": "57"
                },
                {
                    "locationId": "4174",
                    "bankId": "4174",
                    "bankName": "The Hachijuni Bank Ltd",
                    "bankBranch": "Hong Kong The Hachijuni Bank Ltd",
                    "address": "Hong Kong The Hachijuni Bank Ltd",
                    "city": "Hong Kong",
                    "currency": "HKD",
                    "countryCode": "HK",
                    "country": "HK",
                    "transactionType": "B2C",
                    "channelCode": "57"
                }
            ],
            "accountTypeList": [
                {
                    "fieldName": "accountType",
                    "value": "SAVINGS",
                    "desc": "savings"
                },
                {
                    "fieldName": "accountType",
                    "value": "CHECKING",
                    "desc": "checking"
                },
                {
                    "fieldName": "accountType",
                    "value": "DEPOSIT",
                    "desc": "deposit"
                }
            ],
            "countryList": [
                {
                    "desc": "United States of America",
                    "value": "US",
                    "fieldName": "country"
                },
                {
                    "desc": "Angola",
                    "value": "AO",
                    "fieldName": "country"
                },
                {
                    "desc": "Aruba",
                    "value": "AW",
                    "fieldName": "country"
                }
            ]
        }
    }
}

Notes:
When multiple fields have the same "formElement": "select" and the dataSourceKey is the same, it means that multiple fields use the same dropdown list for values.