Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Mercaline2024/Ecomdrop-ia-connector-2/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Ecomdrop integration enables automated order processing through intelligent workflows. When orders are created in your Shopify store, they are automatically sent to Ecomdrop for processing, and your orders are updated with tags based on the processing status.Getting Your API Key
To connect your store with Ecomdrop, you’ll need an API access token from your Ecomdrop account.Access Ecomdrop Panel
Log in to your Ecomdrop account at panel.ecomdrop.app
Generate Access Token
Create a new API access token or copy your existing token. This will be your
X-ACCESS-TOKEN.Configuring the Integration
Open App Configuration
In your Shopify admin, navigate to Apps > Ecomdrop IA Connector > Configuration
Select Flows
Choose which Ecomdrop flows to trigger for:
- New orders (
ORDERS_CREATEwebhook) - Abandoned checkouts (
CHECKOUTS_CREATEwebhook)
Available Flows
The app fetches your available flows from Ecomdrop and displays them for selection:Response Format
Triggering Workflows
Automatic Triggering
When configured, the app automatically triggers your selected Ecomdrop flows when:- New Order Created - Shopify sends
ORDERS_CREATEwebhook - Checkout Abandoned - Shopify sends
CHECKOUTS_CREATEwebhook
Manual Triggering via API
You can also trigger flows programmatically:Callback System
How It Works
Ecomdrop processes orders asynchronously to avoid timeouts. When processing completes, Ecomdrop calls back to update your order:Callback Endpoint
Expected Payload
Ecomdrop should send this payload when processing completes:Callback Parameters
Your Ecomdrop API key for authentication
Order identifier in format
#1001 (this is what Ecomdrop receives)Alternative: GraphQL order ID like
gid://shopify/Order/123Store domain (e.g.,
yourstore.myshopify.com). Optional if API key identifies the shop.Single tag to add to the order
Multiple tags as array
["tag1", "tag2"] or comma-separated stringProcessing status:
success, completed, pending, error, or failed. Automatically mapped to tags.Status Tag Mapping
When using thestatus field, tags are automatically assigned:
| Status | Tag Added |
|---|---|
success | ecomdrop-processed |
completed | ecomdrop-completed |
pending | ecomdrop-pending |
error | ecomdrop-error |
failed | ecomdrop-error |
Response Format
Testing the Callback
Using cURL
Using Postman
Authentication & Security
The callback endpoint validates:- API Key Match - The provided API key must exist in the database
- Shop Verification - API key must belong to the correct shop
- Session Active - Shopify app must be installed on the shop
The endpoint returns HTTP 200 even for errors to prevent Shopify from retrying failed webhooks. Check the response body for actual status.
Error Handling
Common Errors
Invalid API key (401)
Invalid API key (401)
Cause: The API key doesn’t match any configured shop
Solution: Verify the API key in your app configuration matches what Ecomdrop is sending
Solution: Verify the API key in your app configuration matches what Ecomdrop is sending
Order not found (404)
Order not found (404)
Cause: The order name doesn’t exist in the shop
Solution: Ensure the
Solution: Ensure the
orderName format is correct (e.g., #1001)No active session (404)
No active session (404)
Cause: App is not installed on the shop
Solution: Reinstall the app on the Shopify store
Solution: Reinstall the app on the Shopify store
Protected data error (403)
Protected data error (403)
Cause: App not approved for protected customer data access
Solution: This will work after app publication and Shopify approval
Solution: This will work after app publication and Shopify approval
Rate Limiting
The app implements a 1-minute cache for flow listings to prevent rate limiting:Flows are automatically refreshed when you navigate to the configuration page after the cache expires.
Best Practices
- Use Callbacks - Always configure callback URLs to handle async processing
- Monitor Tags - Set up Shopify Flow rules to act on Ecomdrop tags
- Test Thoroughly - Use the test endpoints before going live
- Handle Errors - Monitor for
ecomdrop-errortags and investigate - Secure API Keys - Rotate API keys periodically for security
Code Reference
Integration code location in source:- API Client:
app/lib/ecomdrop.api.server.ts:31 - Callback Handler:
app/routes/api.ecomdrop.callback.tsx:22 - Webhook Handler:
app/routes/webhooks.orders.create.tsx:7
Support
If you encounter issues:- Check server logs for detailed error messages
- Verify API key is correctly configured in both systems
- Ensure callback URL is accessible from Ecomdrop servers
- Test with the manual callback endpoints first