younifyd
Menu

fulfillmentServiceDelete

Deletes a fulfillment service.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the fulfillmentServiceDelete action (under Fulfillment).
  3. Fill in the fields below, then reference the result from later steps as {{fulfillmentservicedelete.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation FulfillmentServiceDelete($id: ID!, $destinationLocationId: ID, $inventoryAction: FulfillmentServiceDeleteInventoryAction) {
  fulfillmentServiceDelete(
    id: $id
    destinationLocationId: $destinationLocationId
    inventoryAction: $inventoryAction
  ) {
    deletedId
    userErrors {
      field
      message
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the fulfillment service to delete.

destinationLocationIdstring

The ID of an active merchant managed location where inventory and commitments will be relocated after the fulfillment service is deleted. Inventory will only be transferred if the [`TRANSFER`](https://shopify.dev/api/admin-graphql/latest/enums/FulfillmentServiceDeleteInventoryAction#value-transfer) inventory action has been chosen.

inventoryActionstring

The action to take with the location after the fulfillment service is deleted.

One ofDELETEKEEPTRANSFER

json
{
  "id": "string",
  "destinationLocationId": "string",
  "inventoryAction": "DELETE"
}

Response

Read the result with {{fulfillmentservicedelete.response.data.data.fulfillmentServiceDelete}}. If the API returns errors, the step fails and they are at {{fulfillmentservicedelete.response.data.errors}}.

deletedIdstring
userErrorsarray<object>
fieldobject
messageobject

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

fulfillmentServiceDelete — Shopify — Documentation