Skip to main content

Order Cancellation

This flow allows you to cancel a specific order, indicating:

  • whether the order should be refunded (the refund, if made, occurs on the original payment method);
  • whether the customer should be notified;
  • the cancellation reason.
Note

Stock restocking is not performed in case of cancellation.

Structure

{
"orderName": "#1082",
"shouldBeRefunded": true,
"notifyCustomer": true,
"reason": "Product not available"
}

Destination configuration

Configure a Shopify destination and associate it with the flow.

FieldValueNotes
Destination TypeShopify
OperationOrder cancellationPOST /egress/order-cancellation
GraphQL endpoint URLhttps://SHOPIFYURL.myshopify.com/Shopify Admin GraphQL endpoint URL
Admin API access tokenshpat_CODICEALFANUMERICOOr Client ID (API key) + Client secret — see Authentication
Client ID (API key)YOUR_CLIENT_ID
Client secretYOUR_CLIENT_SECRET

Deprecated — previous configuration (HTTP Adapter)

Deprecated

Configuration via HTTP Adapter with Base Url, Resource Path, and x-api-key header in Settings Override is deprecated. Use the Shopify destination configuration described above.

In addition to the basic data flow configuration, the following Settings Override settings were required:

FieldValueNotes
Base Urlhttps://adapter.flowlyze.ioAdapter URL
Resource Path/api/adp/shopify/egress/order-cancellationAdapter path for order cancellation 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