Use Case For Fulfilling Your Sales Order
To start the sales order fulfillment process, create a fulfillment from your sales order. You can create a fulfillment by sending a POST request with the ID of the sales order you want to fulfill.
POST {{REST_SERVICE}}/record/v1/salesorder/{{SALES_ORDER_ID}}/!transform/itemfulfillment
The following code sample contains two orderLine groupings:
-
In the first grouping, you partially fulfill an order by specifying a
quantity
of less than the full order ("quantity": 1). -
In the second grouping, you leave the order unfulfilled by setting the
itemreceive
parameter to false ("itemreceive": false).
{
"item": {
"items": [
{
"orderLine": 1,
"location": 6,
"quantity": 1
},
{
"orderLine": 4,
"location": 6,
"itemreceive": false
}
]
}
}
Like the provided code sample, your sales order may not have sequential order lines. For example, "orderLine": 4
follows "orderLine": 1
in the code sample.
To check the correct orderLine
number for an item, use a GET call to retrieve the sales order item information through REST as show here:
GET {{REST_SERVICES}}/record/v1/salesOrder/{{ID}}/item
Related Topics
- Sales Order Use Cases
- Use Case For Creating Your Sales Order
- Use Case For Applying a Promotion to Your Sales Order
- Use Case For Retrieving Your Sales Order
- Use Case For Updating Your Sales Order
- Use Case For Approving Your Sales Order
- Use Case For Creating Invoices or Cash Sales from Your Sales Order
- Use Case For Creating a Progress Sales Order
- Use Case For Deleting a Sales Order