Deprecated.
This function will continue to work until September 4, 2024, but a newer version is available at
wix-ecom-backend.OrderFulfillments.createFulfillment()
.
We recommend you migrate to the new Wix eCommerce APIs as soon as possible.
If this function is already in your code, it will continue to work.
To stay compatible with future changes, migrate to
wix-ecom-backend.OrderFulfillments.createFulfillment()
.
To migrate to the new function:
Add the new import statement:
Look for any code that uses wixStoresBackend.createFulfillment()
,
and replace it with orderFulfillments.createFulfillment()
.
Update your code to work with the new createFulfillment()
response properties.
Test your changes to make sure your code behaves as expected.
Creates a new fulfillment in an order.
The createFulfillment()
function returns a Promise that is resolved
to an object with the fulfillmentId
and the updated Order
when the fulfillment is created.
ID of the order to create the fulfillment in.
Fulfillment information.