Request

Creates and submits 0 or more outgoing Orders to Suppliers, one for each unique Product.DefaultSupplierID on this Order.

Security
OAuth2(Required scopes: FullAccessOrderAdmin)
Path
directionstring(OrderDirection)required

Direction of the order, from the current user's perspective.

Enum:"Incoming""Outgoing""All"
orderIDstringrequired

ID of the order.

curl -i -X POST \
  'https://api.ordercloud.io/v1/orders/{direction}/{orderID}/forward' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Creates and submits 0 or more outgoing Orders to Suppliers, one for each unique Product.DefaultSupplierID on this Order.

Bodyapplication/json
OutgoingOrdersArray of objects(Order)

The outgoing orders created, one for each unique Product.DefaultSupplierID on the original order.

Example:
[ { "ID": "", "FromUser": { … }, "FromCompanyID": "", "ToCompanyID": "", "FromUserID": "", "BillingAddressID": "", "BillingAddress": { … }, "ShippingAddressID": "", "Comments": "", "LineItemCount": 0, "Status": "Unsubmitted", "DateCreated": "2018-01-01T00:00:00-06:00", "DateSubmitted": "2018-01-01T00:00:00-06:00", "DateApproved": "2018-01-01T00:00:00-06:00", "DateDeclined": "2018-01-01T00:00:00-06:00", "DateCanceled": "2018-01-01T00:00:00-06:00", "DateCompleted": "2018-01-01T00:00:00-06:00", "LastUpdated": "2018-01-01T00:00:00-06:00", "Subtotal": 0, "ShippingCost": 0, "TaxCost": 0, "Gratuity": 0, "Fees": 0, "BaseDiscount": 0, "PromotionDiscount": 0, "Currency": "", "Total": 0, "IsSubmitted": false, "SubscriptionID": "", "xp": {} } ]
RemainingLineItemIDsArray of strings

IDs of line items not added to an outgoing order, most likely because Product.DefaultSupplierID is not set.

Example:
[ "" ]
Response
{ "OutgoingOrders": [ { … } ], "RemainingLineItemIDs": [ "" ] }