CreateOrder

  • Updated

To extend this pipeline, create a pipe that implements IPipe<CreateOrderParameter, CreateOrderResult>.

Order

Pipe

Description

100

CreateInitialRequest

Creates a new order request to submit to the APlus ERP.

200

AddHeaderInfoToRequest

Adds header info (such as PO number, order type, order id, credit card info) to the order request created in the CreateInitialRequest pipe.

Also adds an order object to the result.CreateOrderRequest.Orders collection in the first position (index of 0). If you intend the modify the order before submission to the ERP, you can grab it from that collection.

300

AddBillToToRequest

Adds billto info to the order header in the order request.

400

AddShipToToRequest

Adds shipto info to the order header in the order request.

500

AddLineItemInfosToRequest

Adds order line info to the order request. This includes product data (such as product number, quantity ordered), order notes (for each product and the order as a whole), and shipping & handling data.

The order notes are fetched using the GetOrderNotes pipeline.

600

CallApiService

Submits the order request (the object in result.CreateOrderRequest) to the APlus ERP using the integration connection configured for the Order Submit job.

700

GetErpOrderNumberFromResponse

Grabs the order number created by the ERP and returned in the ERP response and saves it to result.ErpOrderNumber.

800

GetTaxAmountFromResponse

Grabs the tax amount calculated by the ERP and returned in the ERP response and saves it to result.TaxAmount.