Skip to content

Requests

Canteen's Admin API follows RESTful principles, allowing interaction through standard HTTP methods. Ensure that all requests are properly structured and include the necessary headers.

Base URL

All API requests should be sent to:

https://<your-org-uuid>.canteenweb.com/api/v1/admin

Replace <your-org-uuid> with your actual organization UUID, which is assigned upon authentication.

HTTP Methods

Canteen’s API supports the following HTTP methods:

MethodDescription
GETRetrieve data from the API.
POSTSend data to create a new resource.
PUTUpdate an existing resource.
PATCHPartially update a resource.
DELETERemove a resource.

Request Format

  • All requests must be sent as JSON.
  • Include the appropriate headers in each request.

Required Headers

HeaderDescriptionExample Value
AuthorizationBearer token for authenticationBearer your-access-token
Content-TypeDefines the request formatapplication/json

Example Request

Fetching orders

bash
curl https://your-org-uuid.canteenweb.com/api/v1/admin/orders \
  -H "Authorization: Bearer your-access-token" \
  -H "Content-Type: application/json"

Make sure to replace your-org-uuid with the actual organization UUID.

This is a private API. All rights reserved.