DocumentationRecipesAPI ReferenceChangelog
Documentation

Account Binding

POST/snap/v{version}/registration-account-binding

Use this API to store card information

Structure

A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see:


Request Parameters

partnerReferenceNo String Required

Unique invoice number to identify the order on the merchant side, which is assigned by the merchant.


action String Required

Possible values: StoreCard


merchantId String Required

Unique merchant ID that is registered with 2C2P


phoneNo String Required

Phone number of Customer


additionalData Object Required

Show Child Parameters

userId String Required

Full name of customer

email String Required

Customer's email address


additionalInfo Object Required

Show Child Parameters

key Object Required

Encrypted Key

cardNo String Required

Encrypted Card Number

expiryMonth String Required

Encrypted Card Expiry Month

expiryYear String Required

Encrypted Card Expiry Year



Response Parameters

responseCode String Required

Response code.

Possible values are listed in the response codes table on this page.


responseMessage String Required

Response message that explains the response code.


accountToken String

Customer Token of the saved card details


additionalInfo Object

Show Child Parameters

explanation String

Note: This field is returned when additionalInfo is returned.

accountNo String

Masked Card Number

First 6 and last 4 numbers

accountTokenExpiryTime String

Date format: yyyy-mm-ddThh:mm:ss+hh:mm

Sample: 2033-05-31T00:00:00+07:00