NEW FEATURE

Developers

prodesk24 API

Connect your website, reports or app to a business's products, stock, customers, sales and invoices.

Your own website or app

Show live prices and stock, take orders that reduce stock by themselves.

Reports

Pull sales, invoices and expenses into Excel, Google Sheets or Power BI.

Webhooks

Get told within a minute when a sale is made, an invoice is paid or stock runs low.

Google Sheets reports

Sales by day and by product, money owed, expenses and low stock in five tabs, refreshed every morning. No coding: paste it into Extensions, Apps Script.

Uses a read-only key. Setup steps are at the top of the file.

Sample partner app

"Stock and sales on your phone" in one PHP file: connects a business with the Connect flow, then shows today's sales, low stock and the latest sales.

Run it with php -S localhost:8000 prodesk24-sample-app.php.

Get started

  1. The API comes with the Professional, Business and Enterprise plans, at no extra cost.
  2. The business owner opens Settings, then API keys and creates a key: read only, read and add, or a website key (products and stock only, safe to put in web pages). A key can be limited to one store.
  3. Copy the key when it is shown; it is shown once. Send it with every call:
curl https://prodesk24.com/api/v1/products?per_page=5 \
  -H "Authorization: Bearer pd24_live_..."

Each key only ever sees its own business. Revoke a key in Settings and it stops working at once.

Endpoints

Base address https://prodesk24.com/api/v1. JSON in and out.

Business and setup

GET /me Any key Business, plan, limits and what this key may do
GET /stores Any key Stores (branches)
GET /warehouses Read key Warehouses (store rooms) for stock
GET /categories Any key Product categories

Products and stock

GET /products Any key Products: search, category_id, updated_since, store_id
GET /products/{id} Any key One product
POST /products Read and add key Add a product
PATCH /products/{id} Read and add key Change name, SKU, prices, category, status, image
GET /stock Any key Quantity per product: store_id, low_only=1
POST /stock/adjustments Read and add key Stock in or out with a reason

Customers, sales and invoices

GET /customers Read key Customers: search, phone
POST /customers Read and add key Add a customer (same phone updates, never duplicates)
PATCH /customers/{id} Read and add key Change a customer
GET /sales Read key Sales: from, to, store_id, include=items
POST /orders Read and add key A paid order: stock goes down, payment recorded
GET /invoices Read key Invoices: status, customer_id, from, to
POST /invoices Read and add key Create an invoice
POST /invoices/{id}/payments Read and add key Record a full or part payment

Hotel (businesses with the hotel module)

GET /hotel/room-types Any key Room types with the rate per night
GET /hotel/availability Any key Free rooms for check_in and check_out, by room type (website keys see counts only)
GET /hotel/rooms Read key Rooms and their status
GET /hotel/reservations Read key Bookings: status, from, to, date, search
POST /hotel/reservations Read and add key Book a stay by room type or room ids, for a new or known guest
POST /hotel/reservations/{id}/cancel Read and add key Cancel a booking that is not checked in yet

Kitchen (restaurants, lounges, hotels)

GET /kitchen/menu Any key Dishes and drinks that go to the kitchen screen
GET /kitchen/orders Read key Today's kitchen orders and their status (date, status, include=items)
GET /kitchen/orders/{id} Read key One kitchen order with its items

School (businesses with the school module)

GET /school/classes Read key Classes with fee and number of students
GET /school/terms Read key Terms
GET /school/students Read key Students: class_id, status, search, parent_contact
GET /school/students/{id} Read key One student with fees owed and recent payments
GET /school/fees/outstanding Read key Students who owe fees, and the total
GET /school/fee-payments Read key Fee payments: student_id, class_id, term_id, from, to
POST /school/fee-payments Read and add key Record a fee payment (for example mobile money from a parents' app)
GET /school/attendance Read key Attendance for a date and class
POST /school/attendance Read and add key Mark a student present, absent, late or excused

Savings, loans and susu

GET /members Read key Members: phone, search
GET /members/{id} Read key One member with savings accounts, loans and susu cards
GET /savings/accounts Read key Savings accounts: member_id
GET /savings/accounts/{id} Read key One account with recent transactions
POST /savings/accounts/{id}/deposits Read and add key Record a deposit
GET /loans Read key Loans: member_id, status
GET /loans/{id} Read key One loan with its schedule and next amount due
POST /loans/{id}/repayments Read and add key Record a repayment
GET /susu/cards Read key Susu cards: status, collector_id, search
GET /susu/cards/{id} Read key One card with its last collections
GET /susu/collectors Read key Collectors
POST /susu/collections Read and add key Record a collection (collector app or mobile money)

Clinic (front desk only, never clinical records)

GET /clinic/services Any key Bookable services with prices
GET /clinic/clinicians Any key Doctors and physiotherapists (names only)
GET /clinic/patients Read key Patients: phone, search (contact details only)
GET /clinic/patients/{id} Read key One patient with upcoming appointments and balance due
POST /clinic/patients Read and add key Register a patient (same phone returns the patient on file)
GET /clinic/appointments Read key Appointments: from, to, clinician_id, status
POST /clinic/appointments Read and add key Book an appointment for a known or new patient
POST /clinic/appointments/{id}/cancel Read and add key Cancel a scheduled appointment
GET /clinic/visits Read key Visits as bills: total, paid, balance

Fuel station (read only)

GET /fuel/products Any key Fuel types and pump prices
GET /fuel/stock Read key Stock per station and product
GET /fuel/pump-sales Read key Pump readings and sales: from, to, store_id, with totals
GET /fuel/purchases Read key Fuel bought from suppliers

Deliveries and waybills

GET /deliveries Read key Deliveries: status, from, to, rider_id, store_id
GET /deliveries/{id} Read key One delivery with items and status history
POST /deliveries Read and add key Book a delivery (for example at checkout on your website)
POST /deliveries/{id}/status Read and add key Move it on: in_transit, delivered, returned, cancelled
GET /deliveries/track Any key Tracking page: number and the customer's phone
GET /deliveries/riders Read key Riders
GET /waybills Read key Waybills: status, from, to
GET /waybills/{id} Read key One waybill with its items

Travel and recruitment

GET /registrations Read key Registrations: status, country, search, from, to
POST /registrations Read and add key A registration from your website form (saved as pending)
GET /travel/leads Read key Travel enquiries: status
POST /travel/leads Read and add key A travel enquiry from your website
GET /recruitment/jobs Any key Open jobs (careers page)
POST /recruitment/applications Read and add key A job application from your careers page
GET /recruitment/applications Read key Applications: job_id, stage

Production (read only)

GET /manufacturing/raw-materials Read key Raw materials with stock, reserved and available
GET /manufacturing/production-orders Read key Production orders: status, from, to
GET /apparel/orders Read key Apparel orders with cutting, stitching, packing and delivery progress
GET /apparel/materials Read key Materials with stock and low flag
GET /block-factory/stock Read key Blocks and raw materials in stock, with low flags
GET /block-factory/production Read key Production runs: from, to, block_type
GET /block-factory/sales Read key Block sales with balances

Print shop, barbershop, cleaning and waste

GET /print-shop/jobs Read key Print jobs: status, phone, from, to
POST /print-shop/jobs Read and add key A job request from your website (the shop quotes the price)
GET /barbershop/services Any key Price list
GET /barbershop/sales Read key Sales with services, barber and tip
GET /cleaning/jobs Read key Cleaning jobs: status, phone, from, to
POST /cleaning/jobs Read and add key A booking request from your website (the agency confirms the price)
GET /waste/clients Read key Clients: status, phone
GET /waste/lifts Read key Pickups: status, client_id, from, to

Reports and webhooks

GET /expenses Read key Expenses: from, to, category
GET /reports/sales-summary Read key Totals by group=day, store or product
GET /webhooks Read and add key Your webhooks
POST /webhooks Read and add key Add a webhook
DELETE /webhooks/{id} Read and add key Remove a webhook
GET /webhooks/{id}/deliveries Read and add key What was sent and what failed

Lists take page and per_page (up to 100) and answer {"data": [...], "meta": {"page", "per_page", "total", "currency"}}. Money is a string with 2 decimals. Dates are YYYY-MM-DD.

Example: take an order from your website

curl -X POST https://prodesk24.com/api/v1/orders \
  -H "Authorization: Bearer pd24_live_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: web-order-1001" \
  -d '{
    "store_id": 3,
    "payment_method": "mobile_money",
    "external_ref": "WEB-1001",
    "customer": {"name": "Kofi Boateng", "phone": "0200333444"},
    "items": [{"product_id": 1542, "quantity": 2}]
  }'
  • The sale appears in the business's POS transactions. Stock goes down and the payment is recorded.
  • Restaurants: add "order_type": "delivery" (or takeaway, dine_in) and notes; kitchen dishes go straight to the kitchen screen.
  • If any item does not have enough stock, nothing is saved and you get 409 stock_not_enough.
  • Send an Idempotency-Key on every POST: if your connection drops and you send again, you get the first answer back instead of a second order.

Webhooks

Add a webhook in Settings, then API keys, or with POST /webhooks. Events: sale.created, invoice.created, invoice.paid, stock.low, customer.created, and for hotels and kitchens reservation.created, guest.checked_in, guest.checked_out, kitchen_order.ready; for schools fee.paid, student.absent; for savings, loans and susu deposit.received, loan.repayment_received, susu.collection_recorded; for clinics appointment.booked, visit.completed; for deliveries delivery.status_changed; for travel and recruitment registration.created, travel_lead.created, application.received; and print_job.done, cleaning_job.done, waste_lift.completed, block_production.recorded. Each event is posted as JSON within about a minute; failed deliveries are retried after 1, 5, 30, 120 and 720 minutes.

{
  "id": "evt_3f2a...",
  "event": "sale.created",
  "created_at": "2026-11-19T10:15:02+00:00",
  "business_id": 42,
  "data": { ...the same as GET /sales/{id}... }
}

Check the X-ProDesk24-Signature header (t=<time>,v1=<signature>) with the webhook's secret before trusting a message:

// PHP
[$t, $v1] = [null, null];
foreach (explode(',', $_SERVER['HTTP_X_PRODESK24_SIGNATURE'] ?? '') as $part) {
    [$k, $v] = array_pad(explode('=', $part, 2), 2, '');
    if ($k === 't') $t = $v;
    if ($k === 'v1') $v1 = $v;
}
$body = file_get_contents('php://input');
$ok = $t && abs(time() - (int) $t) < 300
    && hash_equals(hash_hmac('sha256', $t . '.' . $body, $secret), (string) $v1);

Answer with any 2xx status to confirm. Answer quickly and do slow work afterwards.

Apps for many businesses (Connect)

Building one app for many ProDesk24 businesses? Don't ask owners to copy keys. Sign in to the partner portal, open API apps and register your app to get a client id and secret.

  1. Send the owner to /connect?client_id=…&redirect_uri=…&scope=read|read_write|catalogue&state=…
  2. They sign in, see your app's name and what it may do, and tap Connect.
  3. We send them back to your return address with ?code=…&state=… (or error=access_denied).
  4. Within 10 minutes, swap the code for that business's key from your server:
curl -X POST https://prodesk24.com/api/v1/oauth/token \
  -H "Content-Type: application/json" \
  -d '{"client_id": "pd24app_...", "client_secret": "pd24sec_...",
       "code": "pd24code_...", "redirect_uri": "https://yourapp.com/callback"}'

{"api_key": "pd24_live_...", "token_type": "Bearer", "scope": "read_write",
 "store_id": null, "business": {"id": 42, "name": "Ama's Provisions"}}

Each code works once. Connecting again replaces the old key. The owner can disconnect your app in Settings, then API keys; removing the app in the partner portal disconnects every business.

Limits

PlanPer minutePer day
Professional6010,000
Business12050,000
Enterprise300200,000

Per key. Over the limit you get 429 with a Retry-After header.

Errors

{"error": {"code": "invalid_field",
  "message": "quantity must be a whole number above 0.",
  "field": "items.0.quantity"}}

401 key missing or revoked · 403 plan or key not allowed · 404 not found in this business · 409 conflict · 422 a field is wrong · 429 too many calls.

Need help connecting?

Our team can help you or your developer connect a website, a report or an app.