# Loopy Loyalty API Documentation

This is the complete API documentation for connecting to the Loopy Loyalty API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Loopy Loyalty connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/loopyLoyalty/actions/{actionSlug}/run
```

## Loopy Loyalty actions

- PUT `add-stamps-by-card-id` Add Stamps By Card ID
- PUT `add-stamps-by-unique-card-data-field` Add Stamps By Unique Card Data Field
- GET `campaign-exists-by-name` Campaign Exists By Name
- POST `create-campaign` Create Campaign
- POST `create-image-asset` Create Image Asset
- POST `create-location` Create Location
- POST `create-subscription` Create Subscription
- POST `create-subuser` Create Subuser
- DELETE `delete-campaign` Delete Campaign
- DELETE `delete-card-by-id` Delete Card By ID
- DELETE `delete-location` Delete Location
- DELETE `delete-subscription` Delete Subscription
- DELETE `delete-subuser` Delete Subuser
- POST `enrol-customer` Enrol Customer
- POST `export-campaign` Export Campaign
- GET `get-campaign-by-id` Get Campaign By ID
- GET `get-campaign-by-name` Get Campaign By Name
- GET `get-campaign-public` Get Campaign Public
- GET `get-card-by-id` Get Card By ID
- GET `get-card-by-unique-id` Get Card By Unique ID
- GET `get-location` Get Location
- GET `get-stamp-image-by-id` Get Stamp Image By ID
- GET `get-strip-image-by-image-configuration` Get Strip Image By Image Configuration
- GET `get-subuser` Get Subuser
- GET `list-beacons` List Beacons
- GET `list-campaigns` List Campaigns
- GET `list-cards` List Cards
- GET `list-events-for-campaign` List Events For Campaign
- GET `list-locations` List Locations
- GET `list-stamp-images` List Stamp Images
- GET `list-subusers` List Subusers
- PUT `push-latest-campaign-changes` Push Latest Campaign Changes
- PUT `re-sync-card` Re-Sync Card
- PUT `redeem-rewards-by-card-id` Redeem Rewards By Card ID
- PUT `redeem-rewards-by-unique-card-data-field` Redeem Rewards By Unique Card Data Field
- PUT `send-message-to-all-cards` Send Message To All Cards
- PUT `send-message-to-an-individual-card` Send Message To An Individual Card
- PUT `update-campaign` Update Campaign
- PUT `update-location` Update Location
- PUT `update-subuser` Update Subuser
