Creates an order fulfillment.
The createFulfillment()
function returns a Promise that resolves when the fulfillment is created.
You can only call this method when authenticated as a Wix app or Wix user identity.
function createFulfillment(
orderId: string,
fulfillment: Fulfillment,
): Promise<CreateFulfillmentResponse>;
Order ID.
Fulfillment info.
import { orderFulfillments } from "@wix/ecom";
async function createFulfillment(orderId, fulfillment) {
const response = await orderFulfillments.createFulfillment(
orderId,
fulfillment,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.