Query statement detailSignature required
Call this API to query the detailed information of a statement.
Structure
A message consists of a header and body. For details, see the following sections.
Request header
Request parameters
accountingBizNo String REQUIRED
The unique ID used to identify a change in WorldFirst balance. This ID relates to a specific transaction.
To obtain this value, call the inquiryStatementList API.
Response parameters
result Result REQUIRED
Indicates whether the API call is successful.
responseId String REQUIRED
The unique ID that is assigned by WorldFirst to identify a response.
This field is returned only when the value of result.resultStatus is S
.
More information:
- Maximum length: 32 characters
transactionId String REQUIRED
The unique ID assigned by WorldFirst to identify a transaction. A transaction ID might have multiple related balance change IDs.
This field is returned only when the value of result.resultStatus is S
.
This field is required when the value of transactionType is one of the following values:
TRANSFER
TRANSFER_REFUND
WITHDRAWAL
WITHDRAWAL_REFUND
CONVERSION
CONVERSION_DEAL
CHARGE
CHARGE_REFUND
DEDUCTION
FUND_COLLECTION
More information:
- Maximum length: 64 characters
extTransactionId String
The unique ID assigned by the Partner to identify a transaction.
This field is returned only when the value of result.resultStatus is S
.
More information:
- Maximum length: 256 characters
transactionStatus String REQUIRED
The status of the balance change.
Valid values are:
INIT
: The order has been initiated.PROCESSING
: The order is being processed.PENDING
: The order is pending.SUCCESS
: The order has been processed successfully.FAIL
: The order processing failed.REFUNDED
: The order has been refunded.
This field is returned only when the value of result.resultStatus is S
.
transactionTime DateTime REQUIRED
The time when the WorldFirst balance change occurs.
This field is returned only when the value of result.resultStatus is S
.
More information:
- The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".
transactionType String REQUIRED
The type of the balance change.
For example: TRANSFER
, COLLECTION
, etc. For the full list, refer to transactionType.
This field is returned only when the value of result.resultStatus is S
.
transactionAmount Amount REQUIRED
The amount of the balance change.
This field is returned only when the value of result.resultStatus is S
.
originalTransactionAmount Amount REQUIRED
The transaction amount originally submitted.
This field is returned only when the value of result.resultStatus is S
.
feeAmount Amount REQUIRED
The amount of the service fee.
This field is returned only when the value of result.resultStatus is S
.
This field is conditionally optional when the value of transactionType is one of the following:
TRANSFER
TRANSFER_REFUND
WITHDRAWAL
WITHDRAWAL_REFUND
CONVERSION
CONVERSION_DEAL
CHARGE
CHARGE_REFUND
DEDUCTION
FUND_COLLECTION
netAmount Amount REQUIRED
The net amount received after deducting the fees handled by WorldFirst during the transaction.
Formula: netAmount=originalTransactionAmount-feeAmount
This field is returned only when the value of result.resultStatus is S
.
This field is required when transactionType is one of the following:
TRANSFER
CHARGE
PAYMENT
CASH_BACK
receiveAmount Amount REQUIRED
The final amount received after currency conversion.
Formula: receiveAmount=netAmount*foreignExchangeQuote.quotePrice
This field is returned only when the value of result.resultStatus is S
.
This field is required when transactionType is one of the following:
TRANSFER
CHARGE
PAYMENT
CASH_BACK
accountBalance Amount REQUIRED
The account balance in real time after the transaction.
This field is returned only when the value of result.resultStatus is S
.
fundMoveDetail FundMoveDetail REQUIRED
The fund flow details, such as the payer and beneficiary information.
This field is returned only when the value of result.resultStatus is S
.
foreignExchangeQuote Quote
Information about quotes for transfer.
This field is returned only when the value of result.resultStatus is S
.
This field is optional when the value of transactionType is one of the following:
TRANSFER
WITHDRAWAL
CONVERSION
CONVERSION_DEAL
CHARGE
refundForeignExchangeQuote Quote CONDITIONAL
Information about quotes for transfer refunds.
This field is optional when the value of transactionType is one of the following:
TRANSFER_REFUND
WITHDRAWAL_REFUND
CHARGE_REFUND
balanceType String
Indicates different balance types.
Customers can use different types of balances to manage their funds separately to meet specific business needs and achieve better risk control.
Valid values are:
NORMAL_BALANCE
: indicates the e-commerce balance.SAME_NAME_TOP_UP_BALANCE
: indicates the same-name funds.
This field is returned only when the value of result.resultStatus is S
.
When unspecified, this parameter defaults to
NORMAL_BALANCE
.
accountingBizNo String REQUIRED
The unique ID used to identify a change in WorldFirst balance. This ID is also related to a specific transaction.
This field is returned only when the value of result.resultStatus is S
.
failReason Result CONDITIONAL
The failure reason.
This field is returned only when the value of result.resultStatus is S
.
This parameter is returned when transactionStatus is
FAIL
.
combinedTransactionList RelatedStatement REQUIRED
The information of the related transactions. This parameter may return multiple balance changes that share the same transaction ID or multiple transactions that have different transaction IDs.
This field is returned only when the value of result.resultStatus is S
.
operatorInfo OperatorInfo CONDITIONAL
Information of the person who initiates the transactions.
This parameter is only returned when the transaction is initiated on the WF portal.
goodsName String
The goods name.
goodsAmount Amount
The goods amount.
platformFeeAmount Amount
The fee charged by the third-party platform.
Request
Response
Result processing logic
After calling the API, a response is returned. The possible responses for result.resultStatus are:
Result status | Description |
| This indicates the API call succeeded. |
| This indicates the API call failed. For more information on why the call failed, see result.resultCode. |
| This indicates the API call result is unknown. The partner can make a query when the returned status is
If none of the queries are successful, contact WorldFirst Technical Support. |
result.resultCode
Code | Value | Message | Further action |
---|---|---|---|
SUCCESS | S | Success | |
PARAM_ILLEGAL | F | Illegal 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. |
PROCESS_FAIL | F | A general business failure occurred. Do not retry. | Human intervention is usually needed. It is recommended that you contact our Technical Support Team to resolve the issue. |
UNKNOWN_EXCEPTION | U | API failed due to unknown reason. | The service might be down, retry later. If the issue persists, contact our Technical Support Team. |
REQUEST_TRAFFIC_EXCEED_LIMIT | U | The request traffic exceeds the limit. | Call the interface again to resolve the issue. If the issue persists, contact our Technical Support Team. |
OAUTH_FAIL | F | OAuth process failed. | Contact our Technical Support Team for detailed reasons. |
INVALID_API | F | The called API is invalid or not active. | Check whether the correct API is being called. |
INVALID_CLIENT | F | The client is invalid. | The Client ID does not exist or is invalid. |
INVALID_SIGNATURE | F | The signature is invalid. | Make sure the request is properly signed with a valid signature. |
METHOD_NOT_SUPPORTED | F | The server does not implement the requested HTTP method. | Ensure the HTTP method is |
USER_NOT_EXIST | F | The user does not exist. | Retry with the correct user information. |
SYSTEM_ERROR | F | System error. | Do not retry, and contact our Technical Support Team for more details. |
SERVICE_NOT_ALLOWED | F | Service not allowed | Retry with the correct information. If the issue persists, contact our Technical Support Team. |
CURRENCY_NOT_SUPPORT | F | The currency is not supported. | Make sure the currency input is correct and try again. |
CONTRACT_CHECK_FAIL | F | The contract check has failed. | Check the contract status before retrying. |
AUTHORIZATION_NOT_EXIST | F | The 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. |
ACCESS_TOKEN_EXPIRED | F | The access token expired. | Refresh token to get a new access token or contact out Technical Support Team. |
failReason.resultCode
Code | Value | Message | Further action |
---|---|---|---|
CURRENCY_NOT_SUPPORT | F | The currency is not supported. | Make sure the currency is correct and retry. |
CARD_INFO_NOT_MATCH | F | The card information does not match. | Retry with the correct card information. |
ORDER_IS_REVERSED | F | The order is reversed. | Retry with another transfer order. |
ORDER_IS_CLOSED | F | The order is closed. | Retry with another transfer order. |
AMOUNT_EXCEED_LIMIT | F | The amount exceeds the limit. | Make sure the amount submitted is correct and retry. |
RISK_REJECT | F | The transfer is rejected for risk control reasons. | Prompt the user that the request is rejected because the risk control failed. |
BALANCE_NOT_ENOUGH | F | Balance is not enough. | Make sure the balance is sufficient and retry. |