Search.../

onFulfillmentDeleted( )

Deprecated. This event will continue to work until September 4, 2024, but a newer version is available at wix-ecom-backend.Events.onFulfillmentsUpdated().

We recommend you migrate to the new Wix eCommerce APIs as soon as possible.

Description

An event that fires when an order fulfillment is deleted.

The onFulfillmentDeleted() event handler runs when the deleteFulfillment() function is called.

Note: Backend events don't work when previewing your site.

Syntax

function onFulfillmentDeleted(event: FulfillmentDeletedEvent): void

onFulfillmentDeleted Parameters

NAME
TYPE
DESCRIPTION
event
FulfillmentDeletedEvent

Information about a fulfillment that was deleted.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

An event when a fulfillment is deleted

Copy Code
1// Place this code in the events.js file
2// of your site's Backend section.
3
4export function wixStores_onFulfillmentDeleted(event) {
5 let orderId = event.orderId;
6 let fulfillmentId = event.fulfillmentId;
7}
8
9/* Full event object:
10 *
11 * {
12 * "orderId": "2c6ce6e5-8b40-4d2c-882a-edeb30fb3ec2",
13 * "fulfillmentId": "4afd9175-b3c5-41b9-b3cc-e65b7544e84b",
14 * "fulfillmentStatus": "NOT_FULFILLED"
15 * }
16 *
17 */