Skip to main content

Designing the integration

This section covers the decisions taken before the first line of integration code β€” the ones that are cheap to make on a whiteboard and expensive to change once a POS rollout has started.

None of it is endpoint documentation. Nothing here tells you which field to send. It answers a different set of questions: who calls whom, how a flow is specified before somebody builds it, and what happens when a call does not come back. Teams that skip this section usually rediscover it during the first incident in production.

What this section covers​

PageThe question it answersRead it when
Integration modelDoes each system call Loyal Guru directly, or through a mediation layer? How do flows split across real-time, batch and event channels?First. Everything else depends on this answer.
Flow mapping templateFor each flow: what triggers it, which channel carries it, what happens when it fails, and who owns it?While specifying the integration, one pass per flow.
Anti-patternsWhich designs cause incidents in real projects, and what they cost?As a review pass, once the design is drafted.
ReliabilityWhat does the integration do when Loyal Guru does not answer in time, or answers twice?Cross-cutting reference β€” alongside every flow you specify, and again before go-live.

The order that works​

Start with the integration model. Whether your POS, e-commerce and ERP each hold their own Loyal Guru credentials and logic, or whether a mediation layer owns that contract, determines how much work every later change costs. Changing it after the POS rollout means touching every store.

Then specify each flow. The flow mapping template is one page per flow: trigger, channel, payload, failure behaviour, owner. Completing it is how a design review finds the gaps β€” a flow nobody owns, or one with no defined behaviour when Loyal Guru is unreachable, is visible in the template long before it is visible in production.

Then review against the anti-patterns. Eight designs that recur across projects, each with what it costs and what to do instead. Read them as a checklist against your own draft.

Reliability is cross-cutting​

Reliability is not a fourth step. It is the technical reference the other three lean on: the ambiguous timeout β€” the request that may or may not have been persisted β€” plus idempotency, the difference between a business rejection and a technical failure, degraded mode, retries and compensation.

Read it alongside the flow mapping template rather than after it. The failure-handling fields of every flow are answered from that page, and idempotency keys have to be part of the design from the first version β€” not bolted on once the first timeout shows up in production. It also outlives the design phase: it is the page to go back to during build, during testing, and during the first incident.

Who this is for​

The reader here is whoever owns the integration architecture: an integration lead, a solution architect, or the senior developer who will end up making these calls whether or not anybody assigned them.

If you are looking for the calls themselves, this is not the section β€” go to the connection you are implementing: Data, Loyalty Management & Promotional Engine, Embedded Loyalty or Webhooks.

What this section does not cover​

Looking forGo to
Request and response schemas, headers, status codesAPI Reference
The project sequence β€” phases, dependencies, exit criteriaIntegration checklist
A first working callQuickstart
The end-to-end checkout flowCheckout integration