The Public Cancellation API lets you add self-service order cancellation anywhere—post-purchase emails, support pages, chatbots, or custom forms. No app embed required.
Why use the Cancellation API
Cancellation Anywhere
Add cancel buttons to emails, FAQ pages, chatbot flows, or any custom interface outside your store.
No App Embed Needed
Works independently of the Revize customer portal. Just call the API endpoint.
Your Rules Apply
The API respects your cancellation time windows and eligibility rules automatically.
Simple Integration
One endpoint, simple request format. Easy to integrate with any system or platform.
API endpoint
shop-domain-slug— Your Shopify store’s domain without.myshopify.com(e.g.,my-storefrommy-store.myshopify.com)
Request format
| Field | Type | Required | Description |
|---|---|---|---|
order_number | string | Yes | The order number including the # symbol |
email | string | Yes | Customer’s email address used for the order |
Response codes
The API returns astatus field indicating the result:
| Status | Description |
|---|---|
SUCCESS | Order cancelled successfully |
ORDER_NOT_FOUND | Order doesn’t exist or email doesn’t match |
NOT_CANCELLABLE | Order cannot be cancelled (policy restrictions) |
ORDER_FULFILLED | Order already fulfilled, cannot cancel |
NOT_EDITABLE | Order is locked for editing |
CANCEL_DISABLED | Cancellation feature not enabled for this store |
APP_INACTIVE | Revize app is not active |
SHOP_NOT_FOUND | Shop not found in system |
DOMAIN_MISSING | Shop domain slug missing from request |
FAILED | General operation failure |
Example integration
Here’s a JavaScript example for calling the API:Shopify theme section
Add a cancellation form to any page in your Shopify theme. This ready-to-use section handles all API calls and displays appropriate messages.Complete Shopify Section Code
Complete Shopify Section Code
order-cancellation-form.liquid
Common use cases
- Support Pages
- Post-Purchase Emails
- Chatbots
Self-service cancellation on FAQ/Help pagesAdd the cancellation form to your support or FAQ pages so customers can cancel orders without contacting support.
- Reduces support tickets
- 24/7 availability
- Instant processing
Setup requirements
The Public Cancellation API is an advanced feature that requires enablement by our team.1
Contact us to enable
Reach out to our team to enable the Public Cancellation API for your store.
2
Configure refund settings
Set your refund method in Payments & Refunds—original payment method or store credit.
3
Get your integration details
We’ll provide your shop domain slug and any custom configuration needed for your use case.
4
Test with draft orders
Create test orders to verify the API works correctly before going live.
This feature is available on Pro plans. Contact us for pricing and setup assistance.
Frequently asked questions
Does the API respect my cancellation rules?
Does the API respect my cancellation rules?
Yes. The API automatically applies your edit window settings, order restrictions, and refund policies. Orders outside the edit window or with blocking tags cannot be cancelled via API.
How are refunds processed?
How are refunds processed?
Refunds are processed according to your Revize payment settings—either to the original payment method or as store credit, exactly like cancellations through the customer portal.
Can I use this for third-party integrations?
Can I use this for third-party integrations?
Absolutely. The API is designed for external integrations—chatbots, email service providers, custom apps, or any system that can make HTTP requests.
Is authentication required?
Is authentication required?
The API uses order number + email verification for security. No API keys are required, making integration simple while ensuring only order owners can cancel.
The Public Cancellation API extends self-service cancellation beyond the Revize portal. Use it to meet customers wherever they are—emails, support pages, or chatbots.
Related features
- Cancel Order — standard self-service cancellation through the portal
- Order Edit Restrictions — control which orders can be cancelled
- Payments & Refunds — configure refund processing

