WorldFirst DocsWorldFirst Docs

Query bill listSignature required

POST /amsin/api/v1/business/worldcard/queryBillList

Call this API to query the transaction records of the WorldCard.

Structure

A message consists of a header and body. For details, see the following sections.

Request header

Field

Required

Sample

Description

Client-Id

Yes

Client-Id: *****

For more information about these request header fields, see Request header.

Signature

Yes

Signature: algorithm=RSA256, keyVersion=2, signature=*****

Content-Type

Yes

Content-Type: application/json; charset=UTF-8

Request-Time

Yes

Request-Time: 2019-04-04T12:08:56+08:00

Connected-CustomerId

Conditional

Connected-CustomerId: *****

Attention

Required when a partner manages a customer's account.

Access-Token

Conditional

Access-Token: ******

Attention

Required for OAuth authorization.

Request parameters

startTime DateTime  REQUIRED

The starting time of the queried transaction records.

The time interval between startTime and endTime cannot be more than 100 days.

More information:

  • Value range: 0 to 99 (inclusive).
  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".

endTime DateTime  REQUIRED

The ending time of the queried transaction records.

The time interval between startTime and endTime cannot be more than 100 days.

More information:

  • Value range: 0 to 99 (inclusive).
  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".

pageNumber Integer  REQUIRED

The current page index. The first page index is 1.

pageSize Integer  REQUIRED

The number of items on each page.

Value range: 1 to 100 (inclusive).

Recommended value is 10.

billStatusList List<String>  

The list of transaction status.

Valid values are:

  • WAITING_CLEARANCE
  • SUCCESS
  • FAILED
  • REFUNDED
  • CANCELLED
  • PARTIAL_CANCEL
  • PARTIAL_REFUND
  • WAITING_DEDUCT

cardNo String  

The full card number or its last four digits.

merchantName String  

The merchant name.

orderNo String  

The order number.

budgetAccountIdList Array<String>  

List of the budget account ID.

Response parameters

result Result  REQUIRED

The result of the API call.

Show child parameters

billList Array<BillInfo>  REQUIRED

The list of transaction information.

This field is returned only when the value of result.resultStatus is S.

Show child parameters

currentPageNumber Integer  REQUIRED

The currency page index number.

This field is returned only when the value of result.resultStatus is S.

totalCount Integer  REQUIRED

The total number of items in the query result.

This field is returned only when the value of result.resultStatus is S.

totalPageNumber Integer  REQUIRED

The total number of pages.

This field is returned only when the value of result.resultStatus is S.

API Explorer

Request

URL
Request Body

Response

Response Body

Result processing logic

After calling the API, a response is returned. Possible values for result.resultStatus are:

Result status

Description

S

Indicates that the API call succeeded.

F

Indicates that the API call failed. For additional information on the failure, refer to result.resultCode.

U

Indicates that the API call result is unknown. If this status is returned, the Partner may make a query. The querying strategy is as follows:

  • Maximum 7 queries are allowed. 
  • Intervals between queries: 5 min, 10 min, 20 min, 40 min, 80 min, 160 min, and 320 min.

If no queries succeed, contact our Technical Support Team.

billFailReason.errorCode

errorCode

errorDesc

WORLD_CARD_BALANCE_NOT_ENOUGH

Insufficient account balance.

WORLD_CARD_OVER_LIMIT

Insufficient daily/monthly limit.

WORLD_CARD_AVS_RESULT

AVS verification failed.

WORLD_CARD_ASSERT_ERROR

The card has expired.

WORLD_CARD_SECURITY_REJECT

Risk control rejection.

WORLD_CARD_INVALID_MERCHANT

Invalid merchant.

UN_KNOWN_EXCEPTION

Unknow reason.

WORLD_CARD_INVALID_AMOUNT

Invalid payment amount.

WORLD_CARD_INVALID_CARD_NUMBER

Invaild card number.

WORLD_CARD_EXPIRED_CARD

Card expired.

WORLD_CARD_INCORRECT_PIN

Incorrect PIN.

WORLD_CARD_INVALID_TRANSACTION

Abnormal transaction.

WORLD_CARD_EXCEED_WITHDRAW_AMOUNT_LIMIT

Withdrawal amount limit exceeded.

WORLD_CARD_EXCEED_WITHDRAW_FREQUENCY_LIMIT

Withdrawal frequency limit exceeded.

WORLD_CARD_VERIFICATION_FAILED

Verification failed.

WORLD_CARD_EXCEED_PIN_ALLOW_NUMBER

Exceeded allowed PIN attempts.

WORLD_CARD_AUTHENTICATION_REQUIRED

Authentication required.

WORLD_CARD_CVV2_FAILURE

CVV2 verification failed.

WORLD_CARD_INVALID_CARD

Invalid card.

BALANCE_ACCOUNT_NOT_AVAILABLE

Account status abnormal.

SYSTEM_ERROR

System error.

result.resultCode

CodeValueMessageFurther action
SUCCESSSSuccess

None

SYSTEM_ERRORFSystem error.

Do not retry, and contact our Technical Support Team for more details.

PARAM_ILLEGALFIllegal parameters exist. For example, a non-numeric input, or an invalid date.

Check and verify whether the request fields, including the header fields and body fields, are correct and valid. For details on the fields of each API, see the specific API Structure section.

UNKNOWN_EXCEPTIONUAPI failed due to unknown reason.

The service might be down, retry later. If the issue persists, contact our Technical Support Team.

CONTRACT_NOT_EXISTFThe contract check has failed

Ensure the Partner has already signed a contract and the input is correct.

ACCESS_TOKEN_EXPIREDFThe access token expired.

Refresh the token to get a new access token or contact our Technical Support Team to address it.

AUTHORIZATION_NOT_EXISTFThe authorization does not exist.

Make sure that the input is correct. If the issue persists, contact our Technical Support Team to verify the authorization status.