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

NameTypeNullable?Description
auth

Auth

The authorization information necessary to fulfill this request.

notifications

AcceptSalesOrderItemsNotification[]

The notifications for accepting sales order items.

sales_order_status_mapping

SalesOrderStatusMapping[]

seller specified mappings for custom statuses coming from the 3rd parties api and the SalesOrderStatus they should map to.

transaction_idstring

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

NameTypeNullable?Description
results

AcceptSalesOrderItemsResult[]

The results for each notification in the request.notifications[]