Creates multiple fulfillments for one or more orders.
The bulkCreateFulfillments()
function returns a Promise that resolves when the fulfillments are created.
You can only call this method when authenticated as a Wix app or Wix user identity.
function bulkCreateFulfillments(
ordersWithFulfillments: Array<BulkCreateOrderWithFulfillments>,
): Promise<BulkCreateFulfillmentResponse>;
List of order IDs and their associated fulfillments' info.
import { orderFulfillments } from "@wix/ecom";
async function bulkCreateFulfillments(ordersWithFulfillments) {
const response = await orderFulfillments.bulkCreateFulfillments(
ordersWithFulfillments,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.