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.
| Field | Value | Notes |
|---|---|---|
Destination Type | Shopify | |
Operation | Order cancellation | POST /egress/order-cancellation |
GraphQL endpoint URL | https://SHOPIFYURL.myshopify.com/ | Shopify Admin GraphQL endpoint URL |
Admin API access token | shpat_CODICEALFANUMERICO | Or Client ID (API key) + Client secret — see Authentication |
Client ID (API key) | YOUR_CLIENT_ID | |
Client secret | YOUR_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:
| Field | Value | Notes |
|---|---|---|
Base Url | https://adapter.flowlyze.io | Adapter URL |
Resource Path | /api/adp/shopify/egress/order-cancellation | Adapter path for order cancellation flow |
Headers :: x-api-key | ********** | API key for endpoint interaction verification |
Headers :: x-shopify-graphql-url | https://SHOPIFYURL.myshopify.com/ | Shopify shop URL to connect to |
Headers :: x-shopify-access-token | shpat_CODICEALFANUMERICO | Secret of the custom app created for integration |