Poq.SDK.Node

Home > @poq/sdk-sfcc > IOrdersClient > postOrders

IOrdersClient.postOrders() method

Submits an order based on a prepared basket. Note: If the basket has been submitted using Order Center (considered by its client id) the channel type will be set to “Call Center. In case another channel type was set by a script before submitting the basket, the channel type will be reset to “Call Center” and a warning will be logged. The only considered value from the request body is basket_id.

Signature:

postOrders(body: Basket, options?: RequestOptions): Promise<PoqResponse<Order>>;

Parameters

Parameter Type Description
body Basket  
options RequestOptions (Optional) Override http request option.

Returns:

Promise<PoqResponse<Order>>