Antom, leading provider of tailored payment solutions

notifyCardBill

  This API is used to notify the merchant or partner about the card bill.

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

assetId String  REQUIRED

The unique identifier of a card.

More information:

  • Maximum length: 32 characters

maskedCardNo String  REQUIRED

The masked card number.

More information:

  • Maximum length: 16 characters

orderNo String  REQUIRED

The unique identifier for a  purchase/payment by issued card.

Notes:

  • An order contains all card authorizations (bills) that belong to the same payment.
  • One order may contain multiple bills (e.g., initial authorization, incremental authorization).
  • This field is generated by the system when the first card authorization for a checkout is created.
  • The field cannot be empty and is an alphanumeric combination.

More information:

  • Maximum length: 32 characters

billNo String  REQUIRED

The unique identifier for a single card authorization within an order.

Notes:

  • Each card authorization creates exactly one bill. Multiple bills can belong to the same order.
  • This field is generated by the system when a card authorization is processed.
  • The field cannot be empty and is an alphanumeric combination.

More information:

  • Maximum length: 32 characters

cardNickName String  

The card nickname defined by the cardholder, which can help cardholders manage multiple cards more conveniently.

More information:

  • Maximum length: 64 characters

transactionTime Datetime  REQUIRED

The creation time of the transaction order.

More information:

  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".

merchantName String  

The merchant name.

More information:

  • Maximum length: 64 characters

tradeAmount Amount  REQUIRED

The transaction amount of an order.

Show child parameters

inAmount Amount  

The amount that flows into the card account after the order is placed, such as refunds.

Show child parameters

outAmount Amount  

The amount that flows out of the card account after the order is placed.

Show child parameters

exchangeRate String  

The exchange rate.

Formula: exchangeRate=outAmount/tradeAmount

When the outAmount.currency and tradeAmount.currency are the same, the value of this parameter, if returned, is always 1.

billType String  REQUIRED

Transaction type. The current default value is CARD_PAYMENT.

More information:

  • Maximum length: 32 characters

tradeCountry String  

Represents the two-letter ISO-3166 code of the country/region where the transaction occurred.

More information:

  • Maximum length: 2 characters

billStatus String  REQUIRED

The transaction status. Valid values are:

  • ​WAITING_CLEARANCE​: Pending settlement.
  • ​SUCCESS​: Successful.
  • ​FAILED​: Failed.
  • ​REFUNDED​: Refunded.
  • ​CANCELLED​: Authorization canceled.
  • ​PARTIAL_CANCEL​: Partial authorization canceled.
  • ​PARTIAL_REFUND​: Partially refunded.
  • ​WAITING_DEDUCT​: Pending deduction.

More information:

  • Maximum length: 32 characters

billFailReason FailReason  

Transaction failure reason.

Show child parameters

lastUpdate String  REQUIRED

Last updated time.

More information:

  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".

metadata Map<String, String>  

Customer metadata in key-value format. The format range is as follows:

  • Key maximum length: 32
  • Value maximum length: 128
  • Maximum number of keys: 30
  • JSON string maximum length: 3096

More information:

  • Maximum length: 3096 characters

Response parameters

result Result  REQUIRED

The result of the API call.

Show child parameters
API Explorer

Request

Request Body

Response

Response Body


billFailReason.errorCode

CodeValueMessage
CARD_BALANCE_NOT_ENOUGHFInsufficient account balance.
CARD_OVER_LIMITFInsufficient daily/monthly limit.
CARD_AVS_RESULTFAVS verification failed.
CARD_ASSERT_ERRORFThe card has expired.
CARD_SECURITY_REJECTFRisk control rejection.
CARD_INVALID_MERCHANTFInvalid merchant.
UNKNOWN_EXCEPTIONFUnknown reason.
CARD_INVALID_AMOUNTFInvalid payment amount.
CARD_INVALID_CARD_NUMBERFInvalid card number.
CARD_EXPIRED_CARDFCard expired.
CARD_INCORRECT_PINFIncorrect PIN.
CARD_INVALID_TRANSACTIONFAbnormal transaction.
CARD_EXCEED_WITHDRAW_AMOUNT_LIMITFWithdrawal amount limit exceeded.
CARD_EXCEED_WITHDRAW_FREQUENCY_LIMITFWithdrawal frequency limit exceeded.
CARD_VERIFICATION_FAILEDFVerification failed.
CARD_EXCEED_PIN_ALLOW_NUMBERFExceeded allowed PIN attempts.
CARD_AUTHENTICATION_REQUIREDFAuthentication required.
CARD_CVV2_FAILUREFCVV2 verification failed.
CARD_INVALID_CARDFInvalid card.
BALANCE_ACCOUNT_NOT_AVAILABLEFAccount status abnormal.
SYSTEM_ERRORFSystem error.