createFulfillment( )


Creates an order fulfillment.

The createFulfillment() function returns a Promise that resolves when the fulfillment is created.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage eCommerce - all permissions
Manage Stores - all permissions
Manage Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function createFulfillment(
  orderId: string,
  fulfillment: Fulfillment,
): Promise<CreateFulfillmentResponse>;
Method Parameters
orderIdstringRequired

Order ID.


fulfillmentFulfillmentRequired

Fulfillment info.

Returns
Return Type:Promise<CreateFulfillmentResponse>
JavaScript
import { orderFulfillments } from "@wix/ecom"; async function createFulfillment(orderId, fulfillment) { const response = await orderFulfillments.createFulfillment( orderId, fulfillment, ); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?