Integrate with Abay CRM
Abay CRM keeps one profile per customer, however many systems that customer buys through. Your platform sends the CRM its customers and the orders they place. The CRM matches each customer across platforms and keeps their order history and totals in one place. When anything changes, it notifies your systems.
Anything that can make an HTTPS request can integrate: an online store, a point-of-sale till, a marketplace, a mobile app or an ERP.
Three ways to connect#
| Pattern | Direction | Use it when |
|---|---|---|
| Push API | Your platform → CRM | You can run code when an order or customer changes (recommended). |
| Pull sync | CRM → your platform | You would rather expose a read-only feed and let the CRM poll it every few minutes. |
| Webhooks | CRM → your platform | You want to hear about changes made in the CRM or by other platforms. |
Most integrations push changes as they happen and subscribe to webhooks. Pull sync is useful as a safety net, or when changing the platform's code is hard.
Key ideas#
- Tenant. Each company using the CRM is a separate tenant. An API key belongs to exactly one tenant, and you never send a tenant id.
- Platform. Every API key is created for a platform: a short name such as
shopify,pos-mainormobile-app. Everything sent with that key is tagged with it. Order and customer ids only need to be unique within your platform, so two platforms can both have an order1001. - External id. Your platform's own id for an order or customer. Send it with every push and the CRM updates the same record each time, never a duplicate.
- Snapshots, not diffs. Always send the whole order or customer as it is now. The CRM keeps the newest version and ignores older ones that arrive late.
- One customer, many platforms. The CRM matches people in this order: your platform's customer id, then phone number, then email. Someone who buys online and then in your shop shows up as one customer, with both orders.
Quick start#
1. Get an API key. Ask a CRM administrator to open Settings → Integrations → API keys and create a key for your platform. They choose the platform name and what the key may do. They give you the key, which starts with am_, and an optional signing secret. Both are shown only once.
2. Check the key:
curl https://api.abbaycrm.com/v1/integrations/me \
-H "x-api-key: am_your_key"
{ "platform": "shopify", "scopes": ["customers.write", "orders.write", "customers.read", "orders.read"], "keyId": "clx…" }
3. Send your first order:
curl -X POST https://api.abbaycrm.com/v1/integrations/orders \
-H "x-api-key: am_your_key" \
-H "content-type: application/json" \
-d '{
"externalId": "1001",
"customer": { "externalId": "C-42", "fullName": "Selam Bekele", "phone": "+251911234567", "email": "selam@example.com" },
"items": [{ "productExternalId": "SKU-7", "name": "Desk lamp", "qty": 1, "unitPrice": 2400 }],
"total": 2400,
"currency": "ETB",
"paymentStatus": "paid",
"placedAt": "2026-10-06T09:30:00Z",
"updatedAt": "2026-10-06T09:31:00Z"
}'
{ "status": "processed", "eventId": "clx…", "orderId": "clx…", "customerId": "clx…", "leadId": null, "created": true, "stale": false }
The order and its customer now appear in the CRM. Send the same request again and you get the same ids back, with nothing duplicated.
Base URL#
https://api.abbaycrm.com/v1
All endpoints are under /v1. Request and response bodies are JSON (UTF-8), timestamps are ISO 8601 with a time zone (2026-10-06T09:30:00Z or 2026-10-06T12:30:00+03:00), and amounts are numbers in major units (2400.50, not cents).
Integration checklist#
- One API key per platform and environment (staging and production keys are separate).
- Push every order on create and on every status change, with the full snapshot and
updatedAt. - Push customer profiles when they sign up or change their details.
- Import the customers and orders you already have (Migrating existing data).
- Retry on
429and5xxwith backoff; never retry a422unchanged (Errors and limits). - Verify the signature on every webhook you receive, and ignore events your own platform caused (Webhooks).
- Keep keys and secrets on your server, never in a browser or mobile app.
Next steps#
- Authentication: API keys, scopes and signed requests
- Customers: pushing profiles, matching rules and lookups
- Orders: the order snapshot, statuses and reading orders back
- Migrating existing data: load your history in batches while live orders keep flowing
- API reference: every endpoint, plus the OpenAPI file for code generators