> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hoppyapps.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 📲 How to Show Bookings in a Mobile App or Another Website (Partner API)

Building a mobile app, a custom website or a kiosk that needs to show your services and take bookings? Hoppy Appointments has a **Partner API** that lets a developer or agency do exactly that, using a key you generate. 📲

This guide is for store owners. It explains how to turn the API on, create a key and hand it to your developer. The technical details are in the API documentation your developer will use.

---

# **🧭 What the Partner API Can Do**

With your permission, an external app can:

* List your active services  
* Check available dates and time slots  
* Create regular, multiday and bundle bookings  
* Add customers to a waitlist  
* Read booking status

💡 Paid bookings still go through Shopify checkout. The external app never collects money, and a booking is only confirmed once Shopify reports the order as paid.

---

# **⚠️ Before You Begin**

Make sure you have:

* The **Hoppy Appointments** app installed  
* A developer or agency who will build the connection  
* At least one active service

---

# **🛠️ Step 1 — Open Developer APIs**

1. Open the **Hoppy Appointments** app  
2. Click **Settings**  
3. Click **Developer APIs**

You will see a **Partner API** card and an **API keys** card.

---

# **🛠️ Step 2 — Enable the Partner API**

Tick **Enable Partner API**, then click **Save** in the save bar. When it is disabled, every API key stops working immediately. Your keys are kept, so you can switch it back on later.

---

# **🛠️ Step 3 — Copy the Base URL**

Under **How your developer connects**, you will see the **Base URL**. Click the copy icon (**Copy base URL**) and send it to your developer. Always copy it from this page rather than typing it in.

The card also gives a **View API documentation** button that opens the full reference for your developer.

---

# **🛠️ Step 4 — Generate an API Key**

1. In the **API keys** card, click **Generate API key**  
2. Enter a **Key name** so you remember who uses it, such as the agency or app name  
3. Click **Generate key**  
4. Copy the key from the **Your new API key** window and click **Done**

⚠️ **The key is shown only once.** Store it somewhere safe and share it with your developer through a secure channel. If you lose it, revoke it and generate a new one.

---

# **🔑 Step 5 — Manage Your Keys**

The **API keys** table lists each key's **Name**, **Key**, **Created** date, **Last used** date and **Status** (**Active** or **Revoked**).

To remove access:

1. Click **Revoke** on the key  
2. Confirm in the **Revoke API key** window by clicking **Revoke key**

Revoking blocks every app using that key immediately and cannot be undone.

---

# **📋 What Your Developer Needs to Know**

Share these points with your developer:

* Every request must send the key as an **Authorization: Bearer** header  
* Keys only see your own store's data  
* Time zones should be sent as standard IANA names, for example `America/New_York`  
* If two customers choose the last slot at the same moment, the second one gets a conflict message and should pick another time  
* There are no outbound webhooks, so the app should check booking status again after checkout  
* Requests are rate limited, and the app should back off when asked to retry later  
* Do not put the key inside a mobile app or browser code where users could read it. Call the API from the developer's own server instead

---

# **✅ Expected Result**

* The Partner API is enabled  
* Your developer has the base URL and a named key  
* The key shows **Active** in your table and its **Last used** date updates once the app connects

---

# **⚠️ Important Notes**

* **Treat the key like a password.** Anyone with it can create and read bookings on your store.  
* **Create one key per partner.** Naming them makes it easy to revoke one without affecting others.  
* **Disabling the API stops all keys.** Use this as a quick safety switch.  
* **Testing is safest on a development store.** Ask your developer to test there first.  
* **Bookings from the API appear like any other booking.** You can manage them in **Bookings**.

---

# **🐞 Troubleshooting**

## **My developer gets an "Unauthorized" error**

Check that **Enable Partner API** is ticked, the key is **Active**, and the key is sent as a Bearer token. All authentication problems return the same error on purpose.

## **I lost my API key**

Revoke it and generate a new one. Keys cannot be shown again.

## **A booking was created but is not confirmed**

Paid bookings stay as **Abandoned** until Shopify confirms payment. Check that the customer completed checkout.

---

# **🎉 Final Result**

✅ Your developer can show your services in any app or site  
✅ Customers can book through your custom experience  
✅ You stay in control with named keys that you can revoke at any time