Overview
Connect your webshop to Diller loyalty from scratch: a customer signing up or logging in on your site becomes a member in Diller, and their orders, coupons and points flow back.
Written for a backend developer. Every request is shown in full, with real field names and real response shapes.
Do you need a custom integration?
Section titled “Do you need a custom integration?”If your shop runs on one of these platforms, there is a ready-made plugin and you can skip almost everything here:
| Platform | Use instead |
|---|---|
| WooCommerce / WordPress | Diller WooCommerce plugin |
| Shopify | Diller Shopify app |
| Magento | Diller Magento module |
| Shopware | Diller Shopware integration |
| BigCommerce | Diller BigCommerce integration |
| NopCommerce | Talk to your Diller contact |
Read on if you are building a custom or headless storefront, or you need behaviour the plugin does not cover.
The mental model
Section titled “The mental model”There are three levels. Everything you call is scoped to a store.
Three things follow from this that trip people up:
- A member belongs to one store. The same person shopping at two Diller stores is two independent members. There is no global customer.
- A department is not only a physical place. It is any origin you want
to report on —
Oslo,Warehouse, orWeb. Most webshops create one department for online orders. - One set of credentials reaches one store. Read its id once from
GET /api/v2.0/storesand use it in every path; any other store id is refused with403. A chain with five stores means five credential pairs. See Authentication.
Vocabulary
Section titled “Vocabulary”| Term | What it means |
|---|---|
| Member | A customer enrolled in a store’s loyalty programme |
| Department | The location or channel an action originated from |
| Segment | A custom profile question the store defines (interests, size, …) |
| Coupon | A discount the member holds; identified by a code |
| Stamp card | Collect n stamps, get a reward |
| Points | Earned on transactions, spendable on point-based coupons |
| Transaction | One completed order, with line items |
If you see the word follower in older material, it means member.
What a complete integration does
Section titled “What a complete integration does”Six things. Each has a chapter.
| Step | Chapter |
|---|---|
| 1 | Authentication |
| 2 | Core concepts |
| 3 | Signup and login — the important one |
| 4–5 | Checkout and coupons |
| 5–6 | Transactions |
Start with the Quickstart to get a member created in about fifteen minutes, then come back and read properly.
