Food API
Online ordering for restaurants and kitchens
Authentication
All requests use the base URL https://food.ladill.com/api/v1/food-api
and a Bearer API key. Create a token with the Food scope in account.ladill.com → Developers.
Authorization: Bearer your_key
List menu items
/items
List your menu items with their modifier groups (extras, sizes, and so on).
Parameters
category_id
|
integer optional | Only items in this category. |
curl -X GET https://food.ladill.com/api/v1/food-api/items \
-H "Authorization: Bearer your_key"
{
"data": [
{
"id": 21,
"name": "Jollof with chicken",
"description": "Smoky party jollof.",
"price_minor": 4500,
"image_url": "https://…/jollof.jpg",
"available": true,
"modifier_groups": [
{
"id": 5,
"name": "Extras",
"min_select": 0,
"max_select": 2,
"modifiers": [
{ "id": 31, "name": "Extra chicken", "price_delta_minor": 1500, "available": true }
]
}
],
"category_id": 2,
"station_id": null
}
]
}
Create a menu item
/items
Add an item to your menu. Prices are in minor units (pesewas): 4500 = GHS 45.00.
Parameters
name
|
string required | Item name (max 160 chars). |
price_minor
|
integer required | Price in minor units. |
description
|
string optional | Item description (max 1000 chars). |
category_id
|
integer optional | Menu category the item belongs to. |
station_id
|
integer optional | Kitchen station that prepares it. |
available
|
boolean optional | Whether the item can be ordered right now. |
sort
|
integer optional | Position within the menu. |
modifier_group_ids
|
integer[] optional | Modifier groups to attach to the item. |
curl -X POST https://food.ladill.com/api/v1/food-api/items \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Jollof with chicken",
"price_minor": 4500,
"category_id": 2
}'
{
"data": {
"id": 21,
"name": "Jollof with chicken",
"description": null,
"price_minor": 4500,
"image_url": null,
"available": true,
"modifier_groups": []
}
}
Fetch a menu item
/items/{id}
Retrieve a single menu item by its id.
curl -X GET https://food.ladill.com/api/v1/food-api/items/{id} \
-H "Authorization: Bearer your_key"
{
"data": {
"id": 21,
"name": "Jollof with chicken",
"price_minor": 4500,
"available": true,
"modifier_groups": [],
"category_id": 2,
"station_id": null
}
}
Update a menu item
/items/{id}
Change any of the fields accepted when creating an item — for example, set available to false to mark it sold out.
Parameters
available
|
boolean optional | Whether the item can be ordered right now. |
price_minor
|
integer optional | Price in minor units. |
…
|
mixed optional | Any other field from Create a menu item. |
curl -X PATCH https://food.ladill.com/api/v1/food-api/items/{id} \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"available": false
}'
{
"data": {
"id": 21,
"name": "Jollof with chicken",
"available": false
}
}
Delete a menu item
/items/{id}
Remove an item from your menu.
curl -X DELETE https://food.ladill.com/api/v1/food-api/items/{id} \
-H "Authorization: Bearer your_key"
{
"data": { "deleted": true }
}
List menu categories
/categories
List your menu categories in display order.
curl -X GET https://food.ladill.com/api/v1/food-api/categories \
-H "Authorization: Bearer your_key"
{
"data": [
{ "id": 2, "name": "Mains", "sort": 1, "active": true }
]
}
Create a menu category
/categories
Add a menu category.
Parameters
name
|
string required | Category name (max 160 chars). |
sort
|
integer optional | Position within the menu. |
active
|
boolean optional | Whether the category is shown. |
curl -X POST https://food.ladill.com/api/v1/food-api/categories \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Mains"
}'
{
"data": { "id": 2, "name": "Mains" }
}
Update a menu category
/categories/{id}
Rename, reorder, or hide a category.
Parameters
name
|
string optional | Category name. |
sort
|
integer optional | Position within the menu. |
active
|
boolean optional | Whether the category is shown. |
curl -X PATCH https://food.ladill.com/api/v1/food-api/categories/{id} \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"active": false
}'
{
"data": { "id": 2, "name": "Mains", "active": false }
}
Delete a menu category
/categories/{id}
Remove a menu category.
curl -X DELETE https://food.ladill.com/api/v1/food-api/categories/{id} \
-H "Authorization: Bearer your_key"
{
"data": { "deleted": true }
}
Place an order
/orders
Place an order. By default it is held for online payment and the response carries a Ladill Pay payment object: send the customer to payment.checkout_url before payment.expires_at, and the order is confirmed and sent to the kitchen once paid. With pay set to later (if you allow it in settings) payment is null. Limited to 120 requests a minute.
Parameters
items
|
object[] required | 1–60 lines, each with item_id, and optional quantity (1–50), modifier_ids, and notes. |
type
|
string optional | dine_in, pickup, or delivery. |
table_code
|
string optional | Code of the table for a dine-in order (or send table_id). |
table_id
|
integer optional | Id of the table for a dine-in order. |
customer_name
|
string optional | Customer name. |
customer_email
|
string optional | Customer email. |
customer_phone
|
string optional | Customer phone. |
delivery_address
|
string optional | Where to deliver (max 500 chars). |
notes
|
string optional | Note for the kitchen (max 500 chars). |
pay
|
string optional | online (default) or later. |
return_url
|
string optional | Where to return the customer after payment. |
metadata
|
object optional | Up to 10 string values of your own, echoed on the order. |
curl -X POST https://food.ladill.com/api/v1/food-api/orders \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"type": "pickup",
"items": [
{ "item_id": 21, "quantity": 2, "modifier_ids": [31], "notes": "No pepper" }
],
"customer_name": "Esi Owusu",
"customer_phone": "0241234567"
}'
{
"data": {
"reference": "FD-9C3XK7",
"status": "held",
"type": "pickup",
"source": "api",
"table": null,
"customer": { "name": "Esi Owusu", "email": null, "phone": "0241234567" },
"lines": [
{ "name": "Jollof with chicken", "quantity": 2, "unit_price_minor": 6000, "line_total_minor": 12000, "modifiers": ["Extra chicken"], "notes": "No pepper" }
],
"subtotal_minor": 12000,
"tax_minor": 0,
"delivery_fee_minor": 0,
"total_minor": 12000,
"paid_minor": 0,
"currency": "GHS",
"payment_status": "pending",
"payment": {
"reference": "LP-8F2A31C9",
"checkout_url": "https://pay.ladill.com/…",
"amount_minor": 12000,
"currency": "GHS",
"expires_at": "2026-11-13T12:15:00+00:00"
}
}
}
List orders
/orders
List orders, newest first. Results are paginated.
Parameters
status
|
string optional | held, confirmed, ready, completed, cancelled, or expired. |
type
|
string optional | dine_in, pickup, or delivery. |
per_page
|
integer optional | Page size, up to 100 (default 25). |
page
|
integer optional | Page number. |
curl -X GET https://food.ladill.com/api/v1/food-api/orders \
-H "Authorization: Bearer your_key"
{
"data": [
{
"reference": "FD-9C3XK7",
"status": "confirmed",
"type": "pickup",
"total_minor": 12000,
"currency": "GHS",
"payment_status": "paid"
}
],
"meta": { "total": 1, "page": 1 }
}
Fetch an order
/orders/{reference}
Retrieve an order by its reference. An order awaiting payment is re-checked against Ladill Pay first, so this is safe to poll after the customer returns.
curl -X GET https://food.ladill.com/api/v1/food-api/orders/{reference} \
-H "Authorization: Bearer your_key"
{
"data": {
"reference": "FD-9C3XK7",
"status": "confirmed",
"type": "pickup",
"total_minor": 12000,
"paid_minor": 12000,
"currency": "GHS",
"payment_status": "paid",
"payment_reference": "LP-8F2A31C9",
"paid_at": "2026-11-13T12:04:38+00:00"
}
}
Confirm an order
/orders/{reference}/confirm
Accept a held or expired order yourself and send it to the kitchen — for example when the customer paid another way. Returns 409 if the order is already confirmed or closed.
curl -X POST https://food.ladill.com/api/v1/food-api/orders/{reference}/confirm \
-H "Authorization: Bearer your_key"
{
"data": {
"reference": "FD-9C3XK7",
"status": "confirmed"
}
}
Mark an order ready
/orders/{reference}/ready
Mark every kitchen ticket on a confirmed order as ready. Returns 409 if the order is not in the kitchen.
curl -X POST https://food.ladill.com/api/v1/food-api/orders/{reference}/ready \
-H "Authorization: Bearer your_key"
{
"data": {
"reference": "FD-9C3XK7",
"status": "ready"
}
}
Complete an order
/orders/{reference}/complete
Close an order once it has been served, collected, or delivered.
curl -X POST https://food.ladill.com/api/v1/food-api/orders/{reference}/complete \
-H "Authorization: Bearer your_key"
{
"data": {
"reference": "FD-9C3XK7",
"status": "completed"
}
}
Cancel an order
/orders/{reference}/cancel
Cancel an order.
Parameters
reason
|
string optional | Why the order was cancelled. |
curl -X POST https://food.ladill.com/api/v1/food-api/orders/{reference}/cancel \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"reason": "Kitchen closed"
}'
{
"data": {
"reference": "FD-9C3XK7",
"status": "cancelled"
}
}
List tables
/tables
List your tables with the code and QR link customers scan to order from their seat.
curl -X GET https://food.ladill.com/api/v1/food-api/tables \
-H "Authorization: Bearer your_key"
{
"data": [
{ "id": 7, "label": "Table 4", "seats": 4, "status": "free", "code": "t4x9k2", "qr_url": "https://ladl.link/…" }
]
}
Create a table
/tables
Add a table and get its ordering code and QR link.
Parameters
label
|
string required | Table name (max 40 chars). |
seats
|
integer optional | Number of seats, 1–100 (default 2). |
curl -X POST https://food.ladill.com/api/v1/food-api/tables \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"label": "Table 4",
"seats": 4
}'
{
"data": { "id": 7, "label": "Table 4", "code": "t4x9k2", "qr_url": "https://ladl.link/…" }
}
Fetch restaurant settings
/settings
Read your restaurant settings: which order types you accept, fees, tax, and your webhook URL.
curl -X GET https://food.ladill.com/api/v1/food-api/settings \
-H "Authorization: Bearer your_key"
{
"data": {
"business_name": "Esi's Kitchen",
"tagline": "Home-style Ghanaian food",
"brand_color": "#ea580c",
"accepting_orders": true,
"enable_dine_in": true,
"enable_pickup": true,
"enable_delivery": false,
"allow_pay_later": false,
"delivery_fee_minor": 0,
"min_order_minor": 0,
"tax_bp": 0,
"webhook_url": null
}
}
Update restaurant settings
/settings
Change your settings — for example, set accepting_orders to false to pause ordering. Send only the fields you want to change.
Parameters
business_name
|
string optional | Restaurant display name (max 160 chars). |
tagline
|
string optional | Short line shown under the name (max 200 chars). |
brand_color
|
string optional | Hex colour, e.g. #ea580c. |
accepting_orders
|
boolean optional | Whether new orders are accepted. |
enable_dine_in
|
boolean optional | Accept dine-in orders. |
enable_pickup
|
boolean optional | Accept pickup orders. |
enable_delivery
|
boolean optional | Accept delivery orders. |
allow_pay_later
|
boolean optional | Let customers order now and pay later. |
delivery_fee_minor
|
integer optional | Delivery fee in minor units. |
min_order_minor
|
integer optional | Minimum order value in minor units. |
tax_bp
|
integer optional | Tax rate in basis points, 0–5000 (250 = 2.5%). |
webhook_url
|
string optional | URL that receives order webhooks. |
curl -X PATCH https://food.ladill.com/api/v1/food-api/settings \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{
"accepting_orders": false
}'
{
"data": {
"business_name": "Esi's Kitchen",
"accepting_orders": false
}
}
Order webhooks
Set your webhook URL in food.ladill.com → Developers (or with Update restaurant settings). Ladill POSTs order.created, order.confirmed, order.ready, order.completed, order.cancelled, and order.expired events to your URL, named in the X-Ladill-Event header. Verify each one with HMAC-SHA512 of the raw request body using your webhook secret, compared against the X-Ladill-Signature header.
Browser API
For ordering pages that call Ladill straight from the browser, use your publishable key (fdpk_…) instead of a token: GET /api/public/food/{key}/menu, GET /tables/{code} to resolve a scanned table, POST /orders to order, and GET /orders/{reference} to poll it. No Authorization header is needed.
Errors
Errors use standard HTTP status codes with a JSON error message.
401 |
Missing, invalid, or revoked API token. |
403 |
The token does not have the scope this API needs. |
404 |
No such record on your account. |
409 |
The request conflicts with the current state (for example, the slot was just taken). |
422 |
Validation failed (missing or invalid parameters). |
429 |
Rate limit exceeded — slow down and retry. |
502 |
Ladill Pay could not start the payment — safe to retry. |