Notify trade order submission resultSignature required

POST /undefined

After trade orders are submitted, Worldfirst will call this API to notify the B2C Partners of the trade order submission result.

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

requestId String  REQUIRED

The unique ID assigned by the Partner to identify a trade order submission request.

More information:

  • This field is an API idempotency field.The Partner can use it to do the idempotent check.
  • Maximum length: 64 characters

tradeOrderResults Array <TradeOrderResult>  REQUIRED

Indicates the list of the trade order results.

Show child parameters

Response parameters

result Result  REQUIRED

Indicates whether this API is called successfully.

Show child parameters
API Explorer

Request

Request Body

Response

Response Body

Result/Error codes

CodeValueMessageFurther action
SUCCESSSSuccess
UNKNOWN_EXCEPTIONUThe API call failed, which is caused by unknown reasons.

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

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.

tradeOrderResult.errorCode

CodeValueMessageFurther action
TRADE_ORDER_SUBMITTEDFtrade order has been submitted before.

Check and verify whether the trade order has been submitted. If so stop submitting it again. 

RISK_REJECTFThe trade order is rejected for risk control reasons.

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

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. 

@2024 WorldFirst