Skip to content

Create Order From Simulation By Order No ​

API Information ​

  • Request Path: /market/order/programming/createFromSimulationByOrderNo
  • Request Method: POST
  • Content-Type: application/json

Request Headers ​

ParameterTypeRequiredDescription
AuthorizationStringYesUser authentication token
Content-TypeStringYesMust be set to application/json

Request Body Structure ​

FieldTypeRequiredDescriptionConstraints
resultIdLongYesSimulation result record idFrom simulation results API content[].id
orderNoStringYesExisting order number to updateMust be an order waiting for simulation selection
outputFolderIdLongNoOutput folder iddata_file.id; null means no folder binding
ossOutputIdLongNoExisting OSS output configuration idIf provided together with ossOutput, ossOutputId takes precedence
ossOutputObjectNoNew OSS output configuration payloadUsed when ossOutputId is not provided

ossOutput Object ​

FieldTypeRequiredDescription
nameStringNoConfiguration name
storageTypeStringNoStorage type
endPointStringNoObject storage endpoint
akStringNoAccess key
skStringNoSecret key
accessPathStringNoBase access path
accessRelativePathStringNoRelative path appended to accessPath

Request Body Example ​

json
{
  "resultId": 1001,
  "orderNo": "4e16b0f8-f4de-4b6f-8b67-f4b2d2d1f5c9",
  "outputFolderId": 20,
  "ossOutputId": 5
}

Response Body Structure ​

CommonResponse Object ​

FieldTypeDescription
codeIntegerResponse status code
messageStringResponse message
dataOrderCreateRespResponse data

OrderCreateResp Object ​

FieldTypeDescription
orderNoStringUpdated order number

Response Examples ​

Success Response ​

json
{
  "code": 200,
  "message": "success",
  "data": {
    "orderNo": "ORDER_202604090001"
  }
}

Failure Response ​

json
{
  "code": 400,
  "message": "Invalid parameters",
  "data": null
}

Error Code Description ​

Error CodeDescription
200Success
400Request parameter error
401Unauthorized
500Server internal error

Usage Instructions ​

  1. This API is used to update an existing order using a simulation result.
  2. User authentication is required.
  3. Provide resultId and target orderNo.
  4. The order must be in simulation selection status before update.

Notes ​

  • This API updates an existing order and does not create a new order number.