Use the Create fulfillments operation
Use the Create fulfillments operation to add fulfillments and generate invoices for sales order line items.
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:
-
Determine the following fields and other required custom fields for the fulfillment:
-
fulfillmentDate -
quantity
-
-
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 the 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 |
|