AcceptSalesOrderItems()
This method is called when a items are required to be accepted by the order source. Typically the action of accepting orders & order items is initiated by the user through a manual action.
Syntax
module.exports = async function AcceptSalesOrderItems(request) { // Your code here}
import { AcceptSalesOrderItemsRequest, AcceptSalesOrderItemsResponse } from "@shipengine/connect-order-source-api";export const AcceptSalesOrderItems = async ( request: AcceptSalesOrderItemsRequest): Promise<AcceptSalesOrderItemsResponse> => { // Your code here}
AcceptSalesOrderItemsRequest
Name | Type | Nullable? | Description |
---|---|---|---|
auth | The authorization information necessary to fulfill this request. | ||
notifications | The notifications for accepting sales order items. | ||
sales_order_status_mapping | seller specified mappings for custom statuses coming from the 3rd parties api and the SalesOrderStatus they should map to. | ||
transaction_id | string | A randomly generated transaction ID, used to correlate the request and response |
AcceptSalesOrderItemsResponse
A response for the accept action that was performed on any number of sales order items
Name | Type | Nullable? | Description |
---|---|---|---|
results | The results for each notification in the request.notifications[] |