Skip to main content

Remove items from Shopify orders

This flow allows you to update a Shopify order by removing or reducing the quantity of one or more line items.

Removal is only allowed for quantities not yet fulfilled, i.e. those quantities that have not yet been shipped.

Available fields

  • orderName
    Type: String
    Shopify order identifier (e.g. #1001)

  • lineItems
    Type: Array<Object>
    List of items to update/remove from the order, each object must contain:

    • sku
      Type: String
      Item SKU present in the order

    • qty
      Type: Int
      Absolute desired quantity for that item in the order, not the quantity to subtract.

      • Cannot be greater than current quantity.
      • Cannot be less than already fulfilled quantity.
      • If qty = current quantity → no modification.
      • If qty = fulfilled quantity → only non-fulfilled units are removed.

Structure

Below is a complete example of input structure for removing items from the order

{
"orderName": "#1001",
"lineItems": [
{
"sku": "ABC00123-1",
"qty": 2
},
{
"sku": "ABC00123-2",
"qty": 3
},
{
"sku": "ABC00123-3",
"qty": 0
}
]
}

Flow configurations

FieldValoreNote
Base Urlhttps://adapt.flowlyze.comadapter URL
Resource Path/api/adp/shopify/egress/remove-items-from-orderadapter path for removing line items from order flow
Headers :: x-api-key**********API key for endpoint interaction verification
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/Shopify shop URL to connect to
Headers :: x-shopify-access-tokenshpat_CODICEALFANUMERICOsecret of the custom app created for integration