transferSignature required

POST /aps/api/business/transfer/transfer

Use the transfer API to initiate a transfer. A Partner can use this API to process the Customer's transfer requests.

The transfer process is asynchronous. WorldFirst responds to the Partner that the transfer request is being processed, rather than the final result of the transfer.

To query the transfer result, the Partner can utilize the inquiryTransfer API.

WorldFirst sends the notification about the transfer result with the notifyTransferResult API.

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

transferRequestId String  REQUIRED

The unique ID assigned by the Partner to identify a transfer request.

More information:

  • This field is an API idempotency field.

transferFromDetail transferFromDetail  REQUIRED

The transfer amount submitted by the payer.

Show child parameters

transferToDetail transferToDetail  REQUIRED

The transfer details for the beneficiary, such as the transfer amount collected by the beneficiary.

Show child parameters

transferFactor TransferFactor  REQUIRED

Indicates different scenarios for the transfer, such as transfer to a WorldFirst Account or a WorldFirst Virtual Account.

Show child parameters

transferOrderAddition transferOrderAddition  REQUIRED

Show child parameters

Response parameters

result Result  REQUIRED

Indicates whether this API is called successfully.

Show child parameters

transferId String  REQUIRED

The unique ID assigned by WorldFirst to identify the status of the transfer.

More information:

  • This field is an API idempotency field.

transferFactor TransferFactor  REQUIRED

Indicates different scenarios for the transfer, such as transfer to a WorldFirst Account or a WorldFirst Virtual Account.

Show child parameters
API Explorer

Request

URL
Request Body

Response

Response Body

Result processing logic

After calling the API, a response is returned. The possible responses for result.resultStatus are:

  • S: This indicates the API call succeeded. This result status indicates that WorldFirst accepts the transfer request and is processing the transfer.
    • For the result of the transfer, wait for result notification or call the inquiryTransfer API.
    • If the Partner receives no notifications from the notifyTransferResult API in 20 minutes, use the inquiryTransfer API to query the transfer result.
  • F: This indicates the API call failed. For more information on why the call failed, see result.resultCode.
  • U: This indicates the API call result is unknown. Query the result of the transfer with the inquiryTransfer API. The best practice is to make inquiries with inquiryTransfer 3 seconds after initiating a transfer.

More information

Possible values and use cases for transferOrderAddition.transferToAddition.bopCode:

  • 112030: E-commerce trade (default value). transferToRegion must be CN.
  • 228050: Service commission.transferToRegion must be CN.
  • 10101: Advance payment against imports.transferToRegion must be KR.
  • 318134: Goods export. transferToRegion must be TH.
  • 700001: Partner settlement. transferToRegion cannot be CN, KR, or TH.
  • 700002: Commission service trade. transferToRegion cannot be CN, KR, or TH.
  • 318231: Goods exports/imports. transferToRegion must be TH.
  • 1011: Goods exports/imports. transferToRegion must be ID.
  • 0210000009: Goods exports/imports. transferToRegion must be PH.
  • 06000: Goods exports/imports. transferToRegion must be MY.

Samples for PaymentMethodMetaData

The content of the paymentMethodMetaData parameter varies depending on the value oftransferFundType.

For remitting to a WorldFirst virtual account

When transferFundType is GLOBAL_WORLDFIRST_VA, alter the paymentMethodMetaData string according to the following sample code:

Sample Code

To construct paymentMethodMetaData, convert the JSON code to a string:

Sample Code

For remitting to a WorldFirst account

When transferFundType is GLOBAL_WORLDFIRST, alter the paymentMethodMetaData string according to the following sample code:

Sample Code

To construct paymentMethodMetaData, convert the JSON code to a string:

Sample Code

System-realted result codes

CodeValueMessageFurther action
SUCCESSSSuccess
PROCESS_FAILFA general business failure occurred. Do not retry.

Human intervention is usually needed. It is recommended that you contact WorldFirst Technical Support to resolve the issue.

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_EXCEPTIONUThe API call is failed, which is caused by unknown reasons.

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

REQUEST_TRAFFIC_EXCEED_LIMITUCall the interface again to resolve the issue. If not resolved, contact Alipay Technical Support.

Call the interface again to resolve the issue. If not resolved, contact Alipay Technical Support.

INVALID_APIFThe called API is invalid or not active.

Check whether the correct API is being called.

INVALID_CLIENTFThe client is invalid.

The Client ID does not exist or is invalid.

INVALID_SIGNATUREFThe signature is invalid.

Make sure the request is properly signed with a valid signature. For more details, refer to the following chapter:

METHOD_NOT_SUPPORTEDFThe server does not implement the requested HTTP method.

Ensure the HTTP method is POST.

Business-related result codes

CodeValueMessageFurther action
TRANSFER_IN_PROCESSUThe transfer is being processed.

Query the transfer result with the inquiryTransfer API.

FX_RATE_INVALIDFThe foreign exchange rate is invalid.

Retry with the correct currency exchange rate.

CARD_INFO_NOT_MATCHFThe card information does not match.

Retry with the correct card information.

USER_NOT_EXISTFThe user does not exist.

Retry with the correct user information.

USER_ACCOUNT_ABNORMALFThe user account status is abnormal.

Retry with a different user. If the issue persists, contact WorldFirst Technical Support for more details.

AMOUNT_EXCEED_LIMITFThe amount exceeds the limit.

Make sure the amount submitted is correct and retry.

RISK_REJECTFThe transfer is rejected for risk control reasons.

Prompt the user that the request is rejected because the risk control failed.

UN_SUPPORT_BUSINESSFUnsupported business.

Invalid parameters are used e.g. currency is incorrect. Retry with the correct information.

BALANCE_NOT_ENOUGHFBalance is not enough.

Make sure the balance is sufficient and retry.

@2024 WorldFirst