WorldFirst DocsWorldFirst Docs

Apply for a loanSignature required

POST /amsin/alipay/business/loan/applyLoan

Call this API to apply for a loan.

Note: Make sure you have sufficient information before you call this API.

  • Call the applyCreditGrant API to get the value of the creditGrantNo parameter.
  • Call the queryCreditGrant API to get the value of the creditGrantAmount parameter.
  • Call the consultLoan API to get the value of the numOfPeriod and interestRate parameters.

Structure

Messages consist of a header and body. The following sections are focused on the body structure. For the header structure, see:

Request parameters

requestId String  REQUIRED

The unique ID assigned by WorldFirst to identify a loan request.

More information:

  • This field is an API idempotency field.

creditGrantNo String  REQUIRED

The unique number assigned by WorldFirst to identify each credit grant.

productCode String  REQUIRED

The product code. Valid value: AMAZON_VC_FACTORING_LOAN

loanAmount Amount  REQUIRED

The loan amount.

Show child parameters

repayMode String  REQUIRED

The repayment method.

Valid value: REPAY_OUTRIGHT: Repay all at once, including both the principal and the interests.

interestRate Rate  REQUIRED

The loan interest rate.

Show child parameters

numOfPeriod Integer  REQUIRED

The total number of loan periods.

Response parameters

result Result  REQUIRED

The result of the API call.

Show child parameters

loanOrderNo String  REQUIRED

The unique number assigned by WorldFirst to identify a loan order.

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 query succeed, contact our Technical Support Team.

System-related result codes

CodeValueMessageFurther action
SUCCESSSSuccess
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.

PROCESS_FAILFA 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_EXCEPTIONUAPI failed due to unknown reason.

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

REQUEST_TRAFFIC_EXCEED_LIMITUThe request traffic exceeds the limit.

Call the interface again to resolve the issue. If the issue persists, contact our Technical Support Team.

OAUTH_FAILFOAuth process failed.

Contact our Technical Support Team for detailed reasons.

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.

METHOD_NOT_SUPPORTEDFThe server does not implement the requested HTTP method.

Ensure the HTTP method is POST.

Business-related result codes

CodeValueMessageFurther action
UNRELATED_US_SUB_ACCOUNT_ERRORFThe US sub account is not associated.

Associate the US sub-account and try again.

LOAN_USER_NOT_MATCHFThe credit grant number is not matched with the current user.

Make sure the credit order and user match and try again.

ACCESS_CODE_LOSE_EXCEPTIONFThe access code does not exist.

Contact WorldFirst technical support.

REAL_TIME_COLLECTION_NOT_ENABLED_ERRORFReal time collection is not enabled.

Contact WorldFirst technical support.

CREDIT_ORDER_ALREADY_LOANFThe credit grant order has been used.

Change the creditGrantNo and try again. If the issue persists, contact WorldFirst Technical Support.

REPAY_MODE_NOT_SUPPORTEDFThe repay mode is not supported.

Retry with the correct repay mode.

LOAN_TERM_NOT_SUPPORTEDFThe loan periods is not supported.

Retry with the correct loan periods.

LOAN_AMOUNT_ILLEGALFThe loan amount is not supported.

Retry with the correct loan amount.

LOAN_AMOUNT_NOT_MATCHFThe loan amount does not match.

Make sure the loan amount is consistent with the credit grant amount and try again.