Deletes an existing order fulfillment.
The deleteFulfillment()
function returns a Promise that resolves when the fulfillment is deleted.
You can only call this method when authenticated as a Wix app or Wix user identity.
function deleteFulfillment(
identifiers: DeleteFulfillmentIdentifiers,
): Promise<DeleteFulfillmentResponse>;
Order and fulfillment IDs.
import { orderFulfillments } from "@wix/ecom";
async function deleteFulfillment(identifiers) {
const response = await orderFulfillments.deleteFulfillment(identifiers);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.