API Docs
YMS API
Order Controller
POST Create Order

POST Create Order

Introduction

Create a new order in the YMS system. This API allows you to submit order information including customer, carrier, equipment details, item lines, appointment data, and dynamic field values. The order will be registered and assigned a unique identifier upon successful creation.

API Request

POST /order/create

Body Request Paremeters

{
  "orderId": "string",
  "customerId": "string",
  "poNo": "string",
  "referenceNo": "string",
  "retailer": "string",
  "shipFrom": "string",
  "shipTo": "string",
  "totalPalletQty": 0,
  "totalCartonQty": 0,
  "itemInfos": [
    {
      "itemId": "string",
      "itemName": "string",
      "itemQty": "string",
      "palletQty": "string",
      "itemSpecDesc": "string",
      "itemSpecName": "string",
      "uomId": "string",
      "qty": "string"
    }
  ],
  "dynamicFieldValues": [
    {
      "entityId": "string",
      "entityType": "RECEIPT",
      "fieldCode": "string",
      "shortValue": "string",
      "longValue": "string",
      "value": "string"
    }
  ]
}

Request Parameters

NameLocationTypeRequiredDescription
X-Tenant-IDheaderstringNonone
X-Yard-IDheaderstringNonone
Item-Time-ZoneheaderstringNonone
AuthorizationheaderstringNonone
bodybodyOrderCreateCmd (opens in a new tab)Nonone

Response Example

200 Response

{
  "code": 0,
  "msg": "",
  "success": false,
  "data": {
    "id": 0,
    "orderId": "",
    "orderStatus": "",
    "customerId": "",
    "poNo": "",
    "referenceNo": "",
    "retailer": "",
    "shipFrom": "",
    "shipTo": "",
    "totalPalletQty": 0,
    "totalCartonQty": 0,
    "itemInfos": [
      {
        "itemId": "",
        "itemName": "",
        "itemQty": "",
        "palletQty": "",
        "itemSpecDesc": "",
        "itemSpecName": "",
        "uomId": "",
        "qty": ""
      }
    ],
    "customerName": "",
    "carrierName": "",
    "shipToAddress": {
      "id": "",
      "name": "",
      "country": "",
      "state": "",
      "city": "",
      "zipCode": "",
      "fax": "",
      "address1": "",
      "address2": "",
      "contact": "",
      "phone": "",
      "extension": "",
      "email": "",
      "orgId": "",
      "orgName": "",
      "referenceNo": "",
      "batchCode": "",
      "storeNo": "",
      "shorthand": "",
      "toHome": false,
      "tags": [
        ""
      ],
      "latitude": "",
      "longitude": "",
      "crmAddressId": ""
    },
    "shipFromAddress": {
      "id": "",
      "name": "",
      "country": "",
      "state": "",
      "city": "",
      "zipCode": "",
      "fax": "",
      "address1": "",
      "address2": "",
      "contact": "",
      "phone": "",
      "extension": "",
      "email": "",
      "orgId": "",
      "orgName": "",
      "referenceNo": "",
      "batchCode": "",
      "storeNo": "",
      "shorthand": "",
      "toHome": false,
      "tags": [
        ""
      ],
      "latitude": "",
      "longitude": "",
      "crmAddressId": ""
    },
    "appointmentTime": "",
    "dynamicFieldValues": [
      {
        "entityId": "",
        "entityType": "",
        "fieldCode": "",
        "value": "",
        "fieldName": "",
        "longValue": "",
        "shortValue": ""
      }
    ],
    "proNos": [
      ""
    ],
    "invoicePros": [
      ""
    ],
    "doNos": [
      ""
    ],
    "tripNo": "",
    "shippedTime": ""
  }
}

Response

Status CodeDefinitionDescriptionData Model
200OK (opens in a new tab)noneROrderView (opens in a new tab)