Add fulfillments to sales order line items through API
This topic explains about adding fulfillments to sales order line items and generate invoices using the API.
Use the Create fulfillments operation to add fulfillments for the sales order line item and generate invoices for the fulfillments. Keep the following points in mind when you run the "Create fulfillments" operation:U
Determine the following fields and other required custom fields for the fulfillment:
fulfillmentDatequantity
Use the
stateandbillTargetDatefields to determine the fulfillments that are to be invoiced on the specified date. For a fulfillment to be invoiced, its state must beSentToBilling. When a bill run is created, it will pick up fulfillments to be invoiced based on thebillTargetDatefield.Use the
processingOptionsnested field to indicate whether an invoice should be generated.
The following API request creates two fulfillments for the sales order line item and also runs billing at the same time.
|
Request |
|
|
Request Body |
|