Skip to content

List Orders

The List Orders endpoint allows you to retrieve a list of orders based on specific filters such as status, establishment, and date range. By default, it returns today's pending orders from all establishments.

Endpoint

GET https://your-org-uuid.canteenweb.com/api/v1/admin/orders

Query Parameters

ParameterTypeRequiredDescription
statusstringNoFilter orders by status: pending, completed, canceled, or archived. Defaults to pending.
establishmentstring (UUID)NoFilter by establishment UUID. Defaults to all establishments.
start_datestring (YYYY-MM-DD)NoFilter orders with pickup_at on or after this date. Defaults to today.
end_datestring (YYYY-MM-DD)NoFilter orders with pickup_at on or before this date. Defaults to today.
payment_method_typestringNoFilter orders by payment method type: cash, card (Debit/Credit), credit (Canteen Credit)

Example Requests

1. List Today's Pending Orders (Default)

bash
curl -X GET "https://your-org-uuid.canteenweb.com/api/v1/admin/orders" \
  -H "Authorization: Bearer your-access-token"

2. List Completed Orders for a Specific Establishment

bash
curl -X GET "https://your-org-uuid.canteenweb.com/api/v1/admin/orders?status=completed&establishment=9e11ee05-32a4-4898-8735-5a7f88003409" \
  -H "Authorization: Bearer your-access-token"

3. List Orders in a Date Range

bash
curl -X GET "https://your-org-uuid.canteenweb.com/api/v1/admin/orders?start_date=2025-02-01&end_date=2025-02-12" \
  -H "Authorization: Bearer your-access-token"

4. List Orders by Payment Method Type

bash
curl -X GET "https://your-org-uuid.canteenweb.com/api/v1/admin/orders?payment_method_type=cash" \
  -H "Authorization: Bearer your-access-token"

Response Structure

The API returns an array of order objects, each containing order details, customer information, establishment details, and order items.

Example Response:

json
[
  {
    "uuid": "9e31eadd-b0ad-4ec4-866f-8b3418028922",
    "currency": "ARS",
    "reference": "SO-34BE51LA2T",
    "subtotal": {
      "amount": "7006",
      "currency": "ARS",
      "formatted": "$ 70,06"
    },
    "total": {
      "amount": "7006",
      "currency": "ARS",
      "formatted": "$ 70,06"
    },
    "pickup_at": "12/02/25",
    "canceled_at": null,
    "completed_at": null,
    "notes": null,
    "created_at": "2025-02-12T14:58:29.000000Z",
    "updated_at": "2025-02-12T14:58:29.000000Z",
    "can_be_cancelled": false,
    "status": {
      "label": "Pendiente",
      "value": "pending"
    },
    "payment_method_type": {
      "label": "Efectivo",
      "value": "cash"
    },
    "customer": {
      "uuid": "9e11ee05-37b3-42db-b2b1-9fa2d6e017bc",
      "full_name": "Consumidor Final",
      "class": null,
      "parent" : {
        "uuid": "3d11ee05-37b3-42db-b2b1-9fa2d6e017be",
        "full_name": "Consumidor Final (Padre)",
        "email": "[email protected]",
        "phone": "+5491123456789",
        "credit": {
          "amount": "10000",
          "currency": "ARS",
          "formatted": "$ 100,00"
        }
      }
    },
    "establishment": {
      "uuid": "9e11ee05-32a4-4898-8735-5a7f88003409",
      "name": "Sede 1"
    },
    "items": [
      {
        "uuid": "9e31eadd-b3ee-47b6-a332-1d5318ba9bb0",
        "sku": "PEACHCOBBLER",
        "name": "Peach Cobbler",
        "description": null,
        "price": {
          "amount": "7006",
          "currency": "ARS",
          "formatted": "$ 70,06"
        },
        "quantity": 1,
        "total": {
          "amount": "7006",
          "currency": "ARS",
          "formatted": "$ 70,06"
        },
        "image": "",
        "notes": null,
        "fulfilled_quantity": 0,
        "fulfillment_status": "unfulfilled",
        "is_menu": false,
        "status": {
          "label": "Pendiente",
          "value": "pending"
        },
        "created_at": "2025-02-12T14:58:29.000000Z"
      }
    ]
  }
]

Response Fields

Order Fields

FieldTypeDescription
uuidstringUnique identifier of the order.
currencystringCurrency of the order.
referencestringOrder reference code.
subtotalobjectOrder subtotal details (amount, currency, formatted value).
totalobjectOrder total details (amount, currency, formatted value).
pickup_atstringThe scheduled pickup date of the order (YYYY-MM-DD).
canceled_atstring/nullTimestamp when the order was canceled, or null if not canceled.
completed_atstring/nullTimestamp when the order was completed, or null if not completed.
notesstring/nullAny notes added to the order.
can_be_cancelledbooleanWhether the order can still be canceled.
payment_method_typeobjectPayment method used for the order (contains label and value).
statusobjectThe status of the Order (contains label and value).
created_atstringThe date the order was created (YYYY-MM-DDTHH:MM:SS.ssssssZ / ISO 8601 format).
updated_atstringThe date the order was updated (YYYY-MM-DDTHH:MM:SS.ssssssZ / ISO 8601 format)

Customer Fields

FieldTypeDescription
uuidstringUnique identifier of the customer.
full_namestringFull name of the customer.
classstring/nullCustomer's class (if applicable).
parentobject/nullParent customer details (if applicable).
parent.uuidstringUnique identifier of the parent.
parent.full_namestringFull name of the parent.
parent.emailstring/nullParent customer's email address.
parent.phonestring/nullParent customer's phone number.
parent.creditobjectParent customer's credit details (amount, currency, formatted value).

Establishment Fields

FieldTypeDescription
uuidstringUnique identifier of the establishment.
namestringName of the establishment.

Order Item Fields

FieldTypeDescription
uuidstringUnique identifier of the order item.
skustringSKU (Stock Keeping Unit) of the item.
namestringName of the item.
descriptionstring/nullDescription of the item.
priceobjectPrice details (amount, currency, formatted value).
quantityintegerQuantity of this item in the order.
totalobjectTotal price of this item (amount, currency, formatted value).
imagestringURL of the item image (if available).
notesstring/nullAdditional notes for this item.
fulfilled_quantityintegerNumber of items fulfilled.
fulfillment_statusstringStatus of item fulfillment.
is_menubooleanWhether this item is from the menu.
statusobjectThe status of the Order (contains label and value).
created_atstringTimestamp when the item was added to the order.

Notes

  • Orders are always filtered using the pickup_at field as the reference date.
  • If no filters are provided, only today's pending orders from all establishments are returned by default.
  • Use status, establishment, and date filters to refine your search.

This is a private API. All rights reserved.