Setup
To use the OrderFulfillments API, install the @wix/ecom
package using npm or Yarn:
1npm install @wix/ecom
or
1yarn add @wix/ecom
Then import { orderFulfillments }
from @wix/ecom
:
1import { orderFulfillments } from '@wix/ecom'
Creates multiple fulfillments for one or more orders.
The bulkCreateFulfillments()
function returns a Promise that resolves when the fulfillments are created.
Permission Scopes
For app development, you must have one of the following permission scopes:function bulkCreateFulfillments(ordersWithFulfillments: Array<BulkCreateOrderWithFulfillments>): Promise<BulkCreateFulfillmentResponse>
List of order IDs and their associated fulfillments' info.
Creates an order fulfillment.
The createFulfillment()
function returns a Promise that resolves when the fulfillment is created.
Permission Scopes
For app development, you must have one of the following permission scopes:function createFulfillment(orderId: string, fulfillment: Fulfillment): Promise<CreateFulfillmentResponse>
Order ID.
Fulfillment info.
Deletes an existing order fulfillment.
The deleteFulfillment()
function returns a Promise that resolves when the fulfillment is deleted.
Permission Scopes
For app development, you must have one of the following permission scopes:function deleteFulfillment(identifiers: DeleteFulfillmentIdentifiers): Promise<DeleteFulfillmentResponse>
Order and fulfillment IDs.
Retrieves fulfillments associated with multiple specified orders.
The listFulfillmentsForMultipleOrders()
function returns a Promise that resolves when the fulfillments are retrieved.
Permission Scopes
For app development, you must have one of the following permission scopes:function listFulfillmentsForMultipleOrders(orderIds: Array<string>): Promise<ListFulfillmentsForMultipleOrdersResponse>
List of order IDs for which to retrieve fulfillments.
Retrieves fulfillments associated with a specified order.
The listFulfillmentsForSingleOrder()
function returns a Promise that resolves when the fulfillments are retrieved.
Permission Scopes
For app development, you must have one of the following permission scopes:function listFulfillmentsForSingleOrder(orderId: string): Promise<ListFulfillmentsForSingleOrderResponse>
Order ID for which to retrieve fulfillments.
Updates a fulfillment's properties.
To update a field's value, include the new value in the fulfillment
field in the body params.
To remove a field's value, pass null
.
The updateFulfillment()
function returns a Promise that resolves when the fulfillment is updated.
Note: Updating line item IDs or fulfilled quantities is not allowed. To update line item IDs or quantities, delete the fulfillment and create it again.
Permission Scopes
For app development, you must have one of the following permission scopes:function updateFulfillment(identifiers: UpdateFulfillmentIdentifiers, options: UpdateFulfillmentOptions): Promise<OrderWithFulfillments>
Order and fulfillment IDs to be updated.
Available options to use when updating a fulfillment.