GuideLab API

Get dispatched orders

Returns orders with a dispatched shipment and every consignment associated with each order. Shipment state is independent from the canonical order lifecycle.

GET
/orders/shipped

Returns orders with a dispatched shipment and every consignment associated with each order. Shipment state is independent from the canonical order lifecycle.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Query Parameters

page?integer
Range0 < value
Default1
limit?integer
Range0 < value <= 50
Default20
search?string

Response Body

application/json

curl -X GET "https://example.com/orders/shipped"
{  "data": [    {      "id": "string",      "orderNumber": "string",      "status": "draft",      "type": "digital",      "dueDate": "string",      "doctorName": "string",      "patient": {        "id": "string",        "firstName": "string",        "lastName": "string"      },      "clinic": {        "id": "string",        "name": "string"      },      "clinicLocation": {        "id": "string",        "name": "string"      },      "items": {        "count": 0,        "productNames": [          "string"        ]      },      "shipments": [        {          "id": "string",          "shipmentNumber": 1,          "status": "draft",          "shippingMethod": "carrier",          "labels": [            {              "id": "string",              "packageId": "string",              "packageNumber": 1,              "carrier": "string",              "trackingNumber": "string",              "trackingUrl": "http://example.com"            }          ],          "driverName": "string",          "driverPhone": "string",          "shippedAt": "string",          "deliveredAt": "string",          "address": "string",          "city": "string",          "postcode": "string",          "country": "string",          "contactName": "string",          "contactPhone": "string",          "signedBy": "string"        }      ]    }  ],  "pagination": {    "page": 1,    "limit": 1,    "total": 0,    "totalPages": 0  }}
Empty
Empty