Skip to main content

Product or Variant Deletion

The product or variant deletion flow allows you to remove an entire product or a single variant. In both cases, you must provide the sku of the variant to delete or, alternatively, the sku of any variant belonging to the product, so that it can be correctly identified.

If the product is not found, the operation still returns a Success result, in order to avoid errors in case the same message is sent multiple times.

Nota

If the product has only one variant, deleting that variant will automatically result in the deletion of the entire product.

Payload

Deleting the Entire Product

To delete a product (including all of its variants), use the following payload:

{
"sku": "BGSM001C210",
"deleteParent": true
}

Deleting Only the Specified Variant

To delete only the indicated variant:

{
"sku": "BGSM001C210",
"deleteParent": false
}

Deletion Flow Configuration

In addition to the basic data flow configuration, add the following settings under Settings Override:

FieldValueNotes
Base Urlhttps://adapt.flowlyze.comURL of the adapters
Resource Path/api/adp/shopify/egress/delete-product-to-shopifyPath of the adapter for the deletion flow
Headers :: x-api-key**********API key used to validate endpoint interaction
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/URL of the Shopify store to connect to
Headers :: x-shopify-access-tokenshpat_ALPHANUMERICOSecret of the custom app created for integration
Headers :: x-shopify-client-idYOUR_CLIENT_IDClient ID of the integration app
Headers :: x-shopify-client-secretYOUR_CLIENT_SECRETClient Secret of the integration app