---
title: "BEEPEC Orders API: connect your system to BEEPEC"
description: "Developer guide to the BEEPEC Orders API: authenticate with an API key, send editing orders from your own software, track their status, read and reply to order messages, collect delivery links automatically and keep your invoices in step."
url: "https://beepec.com/portalkb/beepec-orders-api-connect-your-system-to-beepec/"
updated: "2026-10-29"
category: "API & Integrations"
---

# BEEPEC Orders API: connect your system to BEEPEC

The BEEPEC Orders API is a REST API that lets your own software (a booking system, a CRM, a photography business platform or an in-house tool) work with BEEPEC directly, without anyone placing orders by hand:

- **Place orders**: one request per property, with the address, the services you need, a link to your files and notes for the editor.
- **Track them**: check an order's status at any time, or sync every order that changed since your last check.
- **Read and reply to messages**: read the conversation on an order, including any questions from our team, and reply from your own system.
- **Collect deliveries**: pick up the delivery link as soon as the edited files are ready.
- **Keep invoices in step**: see what's due, overdue or paid, with a payment link for each unpaid invoice.

Orders placed through the API are the same as orders placed in the [BEEPEC client portal](https://portal.beepec.com/). They appear under **My Orders**, your team receives the usual emails, and they are billed on your account's normal terms.

## 1. Before you start

1. **Have a BEEPEC client account.** If you don't have one yet, [create an account](https://portal.beepec.com/) first.
2. **Request an API key.** Email **contact@beepec.com** from your account's email address and ask for API access. We issue one key per integration.
3. **Store the key securely.** The key looks like `bpk_live_…` and is shown to you only once. We keep only a fingerprint of it, so we can't show it again. If it's lost or exposed, ask us to revoke it and issue a new one.

> **Keep the key on your server.** Anyone holding the key can place orders on your account. Store it as a secret or environment variable in your backend. Never put it in web-page code, a browser extension, a mobile app or a public code repository.

## 2. Base URL and authentication

All endpoints live under this base URL:

```
https://drckjnvybgqeaegvljlf.supabase.co/functions/v1/client-api/v1
```

Send your key on every request as a bearer token:

```
Authorization: Bearer bpk_live_your_key_here
```

**Check your setup** by requesting your account details:

```
curl https://drckjnvybgqeaegvljlf.supabase.co/functions/v1/client-api/v1/account \
  -H "Authorization: Bearer $BEEPEC_API_KEY"
```

```
{
  "name": "Your Company",
  "currency": "USD",
  "billing_cadence": "weekly",
  "can_order": true,
  "credit": { "status": "ok", "outstanding": 0, "limit": 1000 },
  "balance": { "amount_usd": 250.00, "auto_pay": true }
}
```

`can_order` is `false` while unpaid invoices have reached your account's credit limit. Pay them in the portal and ordering resumes.

`balance` is your prepaid balance in USD, and `auto_pay` says whether new invoices are paid from it automatically (see "Paying automatically from your balance" in section 6).

### Conventions

- HTTPS only. Requests and responses are JSON in UTF-8.
- Times are ISO-8601 in UTC, for example `2026-10-18T02:04:28Z`.
- The API is versioned in the path (`/v1`). Within version 1 we may add new fields to responses, but we never remove or rename existing ones, so ignore fields you don't use.

## 3. Endpoints

| Method | Path | What it does |
| --- | --- | --- |
| GET | `/v1/account` | Your account name, currency, billing terms, credit status and prepaid balance |
| GET | `/v1/services` | The services you can order, with your price per unit and usual turnaround |
| POST | `/v1/orders` | Place an order |
| GET | `/v1/orders/{order_number}` | One order, with its status, delivery and invoice |
| GET | `/v1/orders/{order_number}/messages` | The conversation on one order |
| POST | `/v1/orders/{order_number}/messages` | Reply on an order's conversation |
| GET | `/v1/orders` | Your orders, most recent first, with filters for syncing |
| GET | `/v1/invoices` | Your invoices, newest first, filtered by status |
| GET | `/v1/invoices/{number}` | One invoice, with its lines, totals and payment link |

## 4. Services

| `service` code | What it covers | Quantity counts |
| --- | --- | --- |
| `photo_editing` | Single/HDR editing, pano stitching and editing | photos |
| `photo_retouching` | Object removal, room clean-up, season conversion, lawn replacement | photos |
| `floor_plan` | 2D black/white, 2D full color, 2D texture, 3D full color | plans |
| `virtual_staging` | Virtual staging, renovation | rooms |
| `video_editing` | Custom video, virtual timelapse, reels | videos |
| `virtual_twilight` | Twilight conversion, warm sky, lit windows | exteriors |

For retouching, our QC team reviews the photos and sets the exact level (basic to extreme) before invoicing, so you don't need to choose one. `GET /v1/services` returns this list with your account's starting price per unit (`unit_price_usd`) and the usual turnaround in hours (`turnaround_hours`).

## 5. Placing an order

`POST /v1/orders`

```
curl -X POST https://drckjnvybgqeaegvljlf.supabase.co/functions/v1/client-api/v1/orders \
  -H "Authorization: Bearer $BEEPEC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "external_ref": "shoot-1042",
    "name": "123 Example Street, Springfield",
    "services": [
      { "service": "photo_editing", "quantity": 25 },
      { "service": "virtual_twilight", "quantity": 1 }
    ],
    "input_links": [
      { "url": "https://www.dropbox.com/scl/fo/example?dl=0", "label": "RAW files" }
    ],
    "instructions": "Please remove the realtor sign from the front lawn."
  }'
```

| Field | Required | Rules |
| --- | --- | --- |
| `name` | yes | The property address or job name, up to 200 characters. |
| `services` | yes | 1–10 entries, each service at most once. `quantity` is a whole number from 1 to 1000. |
| `input_links` | yes | 1–10 links to your files. Each `url` must start with `https://` (Dropbox, Google Drive, WeTransfer and other file-sharing links work). Make sure anyone with the link can view the files. `label` is optional, up to 100 characters. |
| `instructions` | no | Plain text for the editor, up to 5,000 characters. Line breaks are kept; HTML is shown as text. |
| `external_ref` | recommended | Your own ID for this job (for example your shoot or booking ID), up to 100 printable characters. See "Safe retries" below. |

**Response:** `201 Created`

```
{
  "order": {
    "order_number": "JOB-12345",
    "external_ref": "shoot-1042",
    "name": "123 Example Street, Springfield",
    "status": "submitted",
    "services": [
      { "service": "photo_editing", "name": "Single/HDR", "quantity": 25 },
      { "service": "virtual_twilight", "name": "Virtual Twilight", "quantity": 1 }
    ],
    "created_at": "2026-10-18T02:04:28Z",
    "deadline": "2026-10-18T14:04:28Z",
    "delivered_at": null,
    "delivery": null,
    "invoice": null,
    "last_message_at": null,
    "last_message_from": null,
    "portal_url": "https://portal.beepec.com/app/all-jobs?job=JOB-12345"
  }
}
```

Save `order_number`. It's how you look the order up later, and it's the number to quote when you contact us.

### Safe retries

Always send `external_ref`. If a request times out or you're not sure it arrived, send **exactly the same request again**:

- If we already have the order, you get `200 OK` with the existing order. Nothing is created twice.
- If you reuse an `external_ref` with **different** details, you get `409 external_ref_conflict`. Use a new reference for a new job.

Without `external_ref`, an identical order sent again within one minute is refused with `409 duplicate_order`, to protect you from double submissions.

## 6. Tracking an order

`GET /v1/orders/{order_number}` returns `{ "order": … }` in the same shape as above.

| `status` | Meaning |
| --- | --- |
| `submitted` | Received, waiting to start |
| `processing` | Being edited or checked by our QC team |
| `revision_requested` | A revision is in progress |
| `on_hold` | Paused; we'll contact you |
| `completed` | Delivered |
| `cancelled` | Cancelled |

When the order is delivered, `delivery` is filled in:

```
"delivery": {
  "available": true,
  "payment_required": false,
  "links": [{ "label": "Edited photos", "url": "https://www.dropbox.com/…" }]
}
```

- If the files were uploaded to the portal instead of shared as a link, download them from `portal_url`.
- If your account pays before downloading, `available` is `false` and `links` is empty until the invoice is paid.
- `invoice` shows the invoice `number`, `status` (`pending`, `paid` or `overdue`, meaning unpaid past its due date) and `amount_usd` once the order has its own invoice. Weekly and monthly invoices cover many orders, so `invoice` stays `null` for those; find them with `GET /v1/invoices` (section 9).
- `last_message_at` is the time of the newest message on the order's conversation, and `last_message_from` says who sent it (`client` or `beepec`). Both are `null` until there is a message. When `last_message_at` changes, read the conversation (section 7).

### Paying automatically from your balance

If your account pays before downloading, you can prepay a balance in the portal (**Settings → Payment Methods → Add Funds**) and turn on **Pay invoices automatically from my balance** on the same page. Each new invoice is then paid from your balance as soon as it's issued, so a finished order comes back with `delivery.available: true`, its `links` and `invoice.status: "paid"`, with no step on your side.

If your balance doesn't cover an invoice, nothing is taken: the invoice stays `pending`, the delivery stays locked, and we email you the amount to add. Adding funds pays waiting invoices automatically, oldest first. `GET /v1/account` shows your balance and whether automatic payment is on.

## 7. An order's messages

The conversation on an order is the same one you see in the portal. Messages you send through the API appear there as yours, and messages typed in the portal (by you or by our team) come back through the API, so both always show the complete conversation.

### Reading

`GET /v1/orders/{order_number}/messages` returns the order's conversation, oldest first, including questions from our team. Internal notes are never included.

| Query parameter | Example | Meaning |
| --- | --- | --- |
| `since` | `2026-10-23T08:00:00Z` | Only messages sent after this time. Pass the `created_at` of the last message you saw. |

```
{
  "order_number": "JOB-12345",
  "messages": [
    {
      "id": "a8ef1c01-fa6b-41ea-abc6-66da7bfc3db1",
      "from": "beepec",
      "type": "message",
      "text": "Hi,\n\nShould the twilight use the front or the back exterior?",
      "attachment_count": 0,
      "created_at": "2026-10-23T08:12:40Z"
    }
  ],
  "has_more": false
}
```

- `from` is `client` (anyone on your account, in the portal or through the API) or `beepec` (our team).
- `type` is `delivery` for the message we send with a finished order, otherwise `message`.
- `text` is plain text. Paragraphs are kept, and links are written as `label (url)`.
- `attachment_count` is how many files came with the message. Open the order at `portal_url` to see them.
- At most 200 messages come back per call. When `has_more` is `true`, call again with `since` set to the last `created_at` you received.

We also email you when a new message arrives, as before.

### Replying

`POST /v1/orders/{order_number}/messages`

```
curl -X POST https://drckjnvybgqeaegvljlf.supabase.co/functions/v1/client-api/v1/orders/JOB-12345/messages \
  -H "Authorization: Bearer $BEEPEC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Please use the front exterior for the twilight.", "external_ref": "reply-5521" }'
```

| Field | Required | Rules |
| --- | --- | --- |
| `text` | yes | Plain text, up to 5,000 characters. Line breaks are kept; HTML is shown as text. |
| `external_ref` | recommended | Your own ID for this reply, up to 100 printable characters. Makes retries safe, as for orders. |

**Response:** `201 Created`

```
{
  "order_number": "JOB-12345",
  "message": {
    "id": "952eea2e-b0e8-42e7-856c-b9e0845d72cb",
    "from": "client",
    "type": "message",
    "text": "Please use the front exterior for the twilight.",
    "attachment_count": 0,
    "created_at": "2026-10-23T10:07:18Z"
  }
}
```

The reply appears on the order in the portal straight away, under your account's name, and our team gets the usual new-message alert, exactly as if you had typed it in the portal.

- Sending the same `external_ref` again returns `200 OK` with the same message; nothing is posted twice. Reusing it with different text returns `409 external_ref_conflict`.
- Without `external_ref`, the same text on the same order within one minute is refused with `409 duplicate_message`.
- Each key can send up to 200 messages a day.
- Attachments can't be sent through the API yet. Share a link in the text, or attach files on the order in the portal.

## 8. Listing and syncing orders

`GET /v1/orders` returns your orders, most recent first, including orders placed in the portal.

| Query parameter | Example | Meaning |
| --- | --- | --- |
| `status` | `completed` | Only orders with this status |
| `external_ref` | `shoot-1042` | Find an order by your own ID |
| `updated_since` | `2026-10-18T00:00:00Z` | Only orders that changed at or after this time: status, services, delivery (including a payment unlocking it or a link changing) or invoice |
| `limit` | `100` | Page size, 1–100 (default 20) |
| `offset` | `100` | Skip this many orders, for paging |

```
{ "orders": [ … ], "page": { "limit": 20, "offset": 0, "has_more": true } }
```

**Recommended sync pattern.** The API doesn't push notifications, so check for changes on a schedule:

1. Every 15–30 minutes, call `GET /v1/orders?updated_since=<time of your last successful sync>&limit=100`.
2. Page with `offset` while `has_more` is `true`.
3. For each order with `status: "completed"`, save `delivery.links` against your record (match it by `external_ref` or `order_number`).
4. Store the time at which this sync started, and use it as `updated_since` next time.

**New messages.** A new message doesn't count as a change for `updated_since`. To catch our questions, also list your recent orders without `updated_since` (for example `GET /v1/orders?limit=100`), and read the messages of any order whose `last_message_at` is newer than the one you stored.

We also email delivery links to your account as usual, so your team is informed even if you don't sync.

## 9. Invoices

`GET /v1/invoices` lists your account's invoices, newest first. They're the same invoices you see under **Invoices** in the portal, for every login on your account, including weekly and monthly invoices that cover many orders.

| Query parameter | Example | Meaning |
| --- | --- | --- |
| `status` | `overdue` | `pending` (unpaid, not yet due), `overdue` (unpaid past its due date) or `paid`. Leave it out for all three. |
| `limit` | `100` | Page size, 1–100 (default 20) |
| `offset` | `100` | Skip this many invoices, for paging |

```
curl "https://drckjnvybgqeaegvljlf.supabase.co/functions/v1/client-api/v1/invoices?status=overdue" \
  -H "Authorization: Bearer $BEEPEC_API_KEY"
```

```
{
  "invoices": [
    {
      "number": "INV-12345",
      "status": "pending",
      "currency": "USD",
      "total": 418.75,
      "amount_usd": 418.75,
      "lines": [
        { "description": "Weekly Invoice (19.Oct - 25.Oct.2026)", "quantity": 1, "unit_price": 418.75, "amount": 418.75 }
      ],
      "subtotal": 418.75,
      "discount": null,
      "tax": null,
      "order_number": null,
      "issued_at": "2026-10-26T05:47:54Z",
      "due_date": "2026-11-02T05:40:21Z",
      "paid_at": null,
      "pay_url": "https://portal.beepec.com/share/invoices/…?key=…",
      "portal_url": "https://portal.beepec.com/app/invoices/…"
    }
  ],
  "page": { "limit": 20, "offset": 0, "has_more": false }
}
```

`GET /v1/invoices/{number}`, for example `GET /v1/invoices/INV-12345`, returns one invoice as `{ "invoice": … }` in the same shape.

- `currency` is the currency you pay the invoice in. `total`, each line's `unit_price` and `amount`, `subtotal`, `discount` and `tax` are all in that currency, matching the invoice in the portal. `amount_usd` is what paying from your balance takes, since the balance is always in USD.
- `subtotal` is the total of the lines before any `discount` (`{ "amount": …, "code": … }`, where `code` is the coupon used, if any). `discount` and `tax` are `null` when there are none.
- `order_number` is set when the invoice bills a single order. It's `null` for weekly and monthly invoices.
- `pay_url` opens a page where the invoice can be paid without logging in. It's the same page as the link in our invoice emails, so share it only with people who should pay. It's `null` once the invoice is paid, and `paid_at` then says when.
- `portal_url` opens the invoice in the portal, after logging in.
- If we cancel an invoice, it no longer appears, and looking it up by number returns `404 invoice_not_found`.

**Keeping your records in step.** From time to time (once a day is plenty), list `?status=pending` and `?status=overdue`, and look up by number any invoice that has dropped out of both: it has been paid or cancelled.

## 10. Errors

Every error has the same shape:

```
{
  "error": {
    "code": "validation_failed",
    "message": "services[0].service: unknown_service",
    "details": { "services[0].service": "unknown_service" }
  }
}
```

| HTTP | `code` | What to do |
| --- | --- | --- |
| 400 | `invalid_json` | The body isn't valid JSON. |
| 401 | `missing_api_key`, `invalid_api_key` | Check the `Authorization` header and your key. |
| 402 | `credit_limit_reached` | Unpaid invoices have reached your account's limit. Pay them in the portal, then retry. |
| 403 | `account_inactive` | Contact us. |
| 404 | `order_not_found`, `invoice_not_found`, `not_found` | Check the order or invoice number, or the path. |
| 405 | `method_not_allowed` | Wrong HTTP method for this path. |
| 409 | `duplicate_order`, `duplicate_message`, `external_ref_conflict` | See "Safe retries" and "Replying". |
| 409 | `no_portal_user` | Your account has no portal login to send messages as. Contact us. |
| 422 | `validation_failed` | Fix the fields listed in `details` (for example a bad `since` or `updated_since` date, or an unknown `status`). Don't retry the same request unchanged. |
| 429 | `order_limit_reached`, `message_limit_reached` | Your key's daily limit was reached (50 orders by default, 200 messages). Contact us if you need more. |
| 500, 503 | `internal_error`, `service_unavailable` | Temporary. Wait a little and retry with the same `external_ref`. |

**Retry only** network errors, timeouts and `5xx` responses, with an increasing pause between attempts (for example 2, 4, then 8 seconds), and always with the same `external_ref`. Don't retry `4xx` responses without fixing the cause first.

## 11. Code examples

### JavaScript (Node.js 18 or later, server-side)

```
// Keep the key in an environment variable on your server, never in browser code.
const BASE = "https://drckjnvybgqeaegvljlf.supabase.co/functions/v1/client-api/v1";

export async function placeBeepecOrder(job) {
  const res = await fetch(`${BASE}/orders`, {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.BEEPEC_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      external_ref: job.id,                 // your own ID: makes retries safe
      name: job.address,
      services: job.services,               // e.g. [{ service: "photo_editing", quantity: 25 }]
      input_links: [{ url: job.filesUrl, label: "RAW files" }],
      instructions: job.notes ?? "",
    }),
  });
  const body = await res.json();
  if (!res.ok) {
    // body.error.code says why. Timeouts and 5xx are safe to retry with the same external_ref.
    throw new Error(`BEEPEC ${res.status} ${body.error?.code}: ${body.error?.message}`);
  }
  return body.order.order_number;           // e.g. "JOB-12345"
}
```

### Python (requests)

```
import os
import requests

BASE = "https://drckjnvybgqeaegvljlf.supabase.co/functions/v1/client-api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['BEEPEC_API_KEY']}"}

def orders_changed_since(since_iso):
    """Every order that changed since the last sync, across all pages."""
    orders, offset = [], 0
    while True:
        r = requests.get(f"{BASE}/orders", headers=HEADERS, timeout=30,
                         params={"updated_since": since_iso, "limit": 100, "offset": offset})
        r.raise_for_status()
        page = r.json()
        orders.extend(page["orders"])
        if not page["page"]["has_more"]:
            return orders
        offset += 100

for order in orders_changed_since("2026-10-18T00:00:00Z"):
    if order["status"] == "completed" and order["delivery"] and order["delivery"]["available"]:
        print(order["order_number"], order["external_ref"], [l["url"] for l in order["delivery"]["links"]])
```

### Python: read and reply to messages

```
def new_messages(order_number, since_iso=None):
    """Messages on one order sent after since_iso (all of them when None)."""
    params = {"since": since_iso} if since_iso else {}
    r = requests.get(f"{BASE}/orders/{order_number}/messages", headers=HEADERS,
                     params=params, timeout=30)
    r.raise_for_status()
    return r.json()["messages"]

def reply(order_number, text, ref):
    """Post a reply; sending the same ref again never posts it twice."""
    r = requests.post(f"{BASE}/orders/{order_number}/messages", headers=HEADERS,
                      json={"text": text, "external_ref": ref}, timeout=30)
    r.raise_for_status()
    return r.json()["message"]

for m in new_messages("JOB-12345", "2026-10-23T00:00:00Z"):
    if m["from"] == "beepec":
        print(m["created_at"], m["text"])

reply("JOB-12345", "Please use the front exterior for the twilight.", "reply-5521")
```

### Python: unpaid invoices

```
def unpaid_invoices():
    """Every invoice still to pay, overdue first."""
    unpaid = []
    for status in ("overdue", "pending"):
        offset = 0
        while True:
            r = requests.get(f"{BASE}/invoices", headers=HEADERS, timeout=30,
                             params={"status": status, "limit": 100, "offset": offset})
            r.raise_for_status()
            page = r.json()
            unpaid.extend(page["invoices"])
            if not page["page"]["has_more"]:
                break
            offset += 100
    return unpaid

for inv in unpaid_invoices():
    print(inv["number"], inv["status"], inv["currency"], inv["total"], inv["due_date"], inv["pay_url"])
```

### Low-code platforms

Automation tools and app builders (for example Zapier, Make, n8n or an app builder's backend functions) can use the API through their HTTP request step. Put the key in the platform's secret or credential store, call the API from a server-side step, and never from a page that runs in the browser.

## 12. Security checklist

- Keep the API key server-side, in a secret store or environment variable.
- Use one key per integration, so a key can be revoked without affecting anything else.
- Never log the full key. Log the `order_number` and `error.code` instead.
- Treat an invoice's `pay_url` like the invoice email: anyone with the link can see and pay that invoice.
- If a key may have been exposed, email us straight away and we'll revoke it and issue a new one.

## Help

Email **contact@beepec.com** with your `order_number`, or the `error.code` and `message` you received, and we'll help you.
