Inbound Orders

Inbound Orders are the ones with goods that will be added to your stock, they can be regular Inbound Orders (Operation 2) or Stock Adjustment Orders (Operation 7).

Orders can be created through our Orders endpoint, the request should look something like this:

[
  {
    "relationalOrderCode": "4657812",
    "relationalLogisticOperationId": "171", 
    "subOperation": "FOOD", 
    "relationalEntityId": "5413", 
    "operation": 2, 
    "typing": "2022-03-28T19:46:59.376Z",
    "whoTyped": "John Doe",
    "orderItems": [
      {
        "relatedProductId": "5487",
        "quantity": 10,
        "itemNumber": 1,
      }
    ]
  }
]

These are the mandatory fields to create an Order, you can see all fields below.

All Fields

NameDescriptionReq.Default value
relationalOrderCodeDocument Id in origin system.Yes
relationalLogisticOperationIdLogistics Operation Id in origin system.Yes
operation2 for regular Inbound Orders and 7 for LeftOvers.Yes
subOperationOrder's suboperation, can be any value, e.g. Purchase, Transfer.Yes
reasonSubOperationReason for suboperation, can be any value.No
relationalEntityIdCustomer or Logistics Operation Id in origin system depending if it's a LeftOvers Order or not.Yes
typingCreation date in origin system.Yes
whoTypedWho created the Order, can be any value.Yes
orderOriginOrder's Origin, can be any value.NoCan be configured in WMS
relationalCarrierCodeCarrier Id in origin systemNo
orderObservationNotes on Order, can be any value.No
relationalTitleCodeInvoice Id in origin system.No
invoiceNumberInvoice Number (Brazil Only).No
invoiceSeriesInvoice Series (Brazil Only).No
orderItemsOrder Items, see here.Yes

Order Items

NameDescriptionReq.Default value
relatedProductIdProduct Id in origin system.Yes
quantityProduct Quantity.Yes
itemNumberItem number in inbound document.Yes
itemNoteNotes on Item within the inbound document.No
minimumValidityMinimum validity in days.No
variableQuantityVariable quantity.No
standardMeasureDefault measure.No
itemInventoryNoteNotes on Item to check during the inbound.No
orderItemVolumeLotsExpected batch during inbound, see here.No

Batch volumes

NameDescriptionReq.Default
originLotLot to sort.Yes
quantityLot quantity.Yes
validityOriginLot expiration date.Yes
manufacturingDateManufacturing date.No
itemLotNoteLot notes, can be any value.No
relatedOriginClassificationLot Classification Id in origin system.No
variableQuantityProduct variable quantity.No

For more information about the required properties please refer to our API Reference here .