fetchNonce

POST /v1/payments/fetchNonce

Use this API to collect card information when you do not have PCI qualifications.

Structure

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

Note: Set the data type of each field (except array) as String. This means that you must use double quotation marks (" ") to enclose the field value. Examples:

  • If the data type of a field is Integer and its value is 20, set it as "20". 
  • If the data type of a field is Boolean and its value is true, set it as "true". 

Request parameters

card Card  

The card information.
Show child parameters

Response parameters

result Result  REQUIRED

The result of the API call.

Show child parameters

cardToken String  REQUIRED

The token of the card. The value of this parameter is used by paymentMethodId in the pay (One-time Payments) API when initiating payments.

More information:

  • Maximum length: 255 characters
API Explorer

Request

URL
Request Body

Response

Response Body

Result/Error codes

CodeValueMessageFurther action
SUCCESSSSuccess

No further action is needed.

PROCESS_FAILFThe called API is failed.

Do not retry. Human intervention is usually needed. It is recommended that you contact Antom Technical Support to troubleshoot the issue.