ShoppingateShoppingateDevelopers
shoppinggate.app ↗
Documentation
  • What is a Mini App
  • Why Mini Apps
  • API integration
  • SDK
  • Webview
  • Mini App architecture
  • Getting started
  • Choosing your path
  • Introduction
    • Introduction
    • Sign up & login
    • Dashboard & analytics
    • Mini-Programs
    • Submit & publish a version
    • App Binding
    • Privacy Settings
    • Allowed URL
    • Users & roles
    • Introduction
    • Become a Mini-App vendor
    • API keys
    • My Mini-Apps
    • Orders
    • Webhook
    • Deep-link config
    • Introduction
    • Install & log in
    • Create a project
    • The workspace
    • Preview & upload
  • Introduction
  • Configuration
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Introduction
  • Configuration
  • SDK
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Web app and shell calls
  • Look and feel
  • Overview
    • Verify user
    • Create order
    • Get order
    • Update order status
    • Charge an order
    • Send a notification
  • Subscriptions
    • Create a subscription
    • List subscriptions
    • Get a subscription
    • Update a subscription
    • Reschedule next charge
    • Change plan (upgrade)
    • Cancel a subscription
  • Webhooks
Introduction

API integration

The most common way to connect two businesses: the two backends exchange data through an API, and one side builds the screens for the other's service.

Saloni's story

Saloni's first idea is the familiar one. Saloni opens an API for its services, prices and reservations. Shoppingate's team builds a spa section inside the Shoppingate app that calls this API.

The launch goes well. Then Saloni wants to add a "choose your therapist" step before booking. Saloni adds it to its API in a day — and waits. Shoppingate's team has to design the new screen, build it, test it, and ship it in the next Shoppingate app release. Then the app stores review the release, and users have to update the app.

Meanwhile, three other partners are waiting for their own changes from the same Shoppingate team.

How it works

Each business keeps its own system. They agree on an API — a set of requests one backend can send to the other — and exchange data through it. The screens the user sees are built by the side that owns the app; here, Shoppingate.

SHOPPINGATE APPSaloni's screensbuilt and kept bythe Shoppingate teamEvery other partner'sscreens, built bythe Shoppingate team tooShoppingate backendSaloni's backendservices, reservationsAPISaloni's teamowns the data,not the screens✕✕
API integration: the two backends exchange data, and the Shoppingate team builds and keeps Saloni's screens inside the Shoppingate app.

Benefits and limits

What works
  • ✓Each business keeps its own system and its own data.
  • ✓The screens feel like the rest of the app, because the app's own team builds them.
  • ✓Server-to-server calls are well understood and easy to secure.
  • ✓A clear contract between the two sides: the API.
What it costs
  • ✕The host builds and keeps the screens of every partner. This doesn't grow: more partners means more work for the same team.
  • ✕Every new feature needs work from both teams, and coordination between them.
  • ✕Every change waits for an app release, an app store review, and users updating the app.
  • ✕You don't control how your service looks or works for your own customers.
  • ✕Your business rules — opening hours, therapists, what can be booked together — have to be rebuilt on the other side, and kept in step.

How a Mini App solves it

A Mini App moves the screens to the business that owns the service. Saloni builds its own screens as a Mini App, inside the Shoppingate app. The API doesn't disappear — it stays only where it belongs, between the two backends.

SHOPPINGATE APPSaloni Mini Appscreens built andupdated by SaloniSigned-in user · Paymentgiven by the appSaloni's backendservices, reservationsSaloni's own callsShoppingate backendAPI · webhooks✓
With a Mini App: Saloni builds its own screens, and the API stays only where it belongs — between the two backends.
The problem
With a Mini App
The host builds every partner's screens
Each business builds its own Mini App. Shoppingate builds nothing per partner.
Every feature needs both teams
Saloni adds the therapist step itself, in its own Mini App.
Every change waits for an app release
Saloni uploads a new version. After review it is live — no app release, no app update.
You don't control your own experience
Your screens, your flow, your brand — inside the Shoppingate app.
Business rules rebuilt on the other side
Your rules stay in your Mini App and your backend, in one place.

What stays as an API is the small part both sides truly share: confirming who the user is, and creating and updating orders, with webhooks telling your backend when an order changes. See Backend integration.

Saloni's story

With a Mini App, Saloni's therapist step goes live after one upload and one review. Shoppingate's team doesn't write a line of it.

NextSDKSaloni's second try: put its code inside the Shoppingate app.→