Orders

A practice's orders, with amounts and order numbers per supplier.

Swyp splits each order per supplier, so raw.carts has one cart per supplier. Each supplier invoices separately: match an invoice against a cart, not the whole order.

vendorReferences holds the order number on the supplier's invoice. It's only set on orders Swyp placed automatically since 30 October 2026, when the supplier showed a number. Otherwise, match on supplier, date and amount. Several numbers mean the supplier split the order.

Amounts are what the supplier showed at checkout. The invoice can differ, for example if a price changed or an item was unavailable.

List orders

GET
/orders

The orders the practice placed through Swyp, newest first, including cancelled ones. The response is paginated: while nextCursor is not null, request the next page with cursor. To stay in sync, pass updatedSince with the time your previous sync started: you then get only new and changed orders, such as a cancellation.

Authorization

apiKey
headerAuthorizationBearer <swyp_...>

The practice's API key.

Query Parameters

limit?integer

Orders per page.

Range1 <= value <= 100
Default50
cursor?string

The previous page's nextCursor, unchanged. Leave it out for the first page. Pass the same updatedSince on every page.

updatedSince?string

Only orders created or changed at or after this time. ISO 8601 with a time zone.

Formatdate-time

Header Parameters

X-Practice-Id?string

Required when the key covers several practices.

Formatuuid

Response Body

A page of orders.

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page. null on the last page.

Example Request
curl -X GET 'https://api.swyp.be/orders?updatedSince=2026-10-28T00%3A00%3A00Z'
Example Response
{  "data": [    {      "id": "8d1f3a52-7c4e-4b19-a0d6-2e5f9b7c1a34",      "status": "PLACED",      "origin": "SWYP",      "practiceId": "3f2b8c1e-5a47-4d0b-9e6f-1c2d3e4f5a6b",      "createdAt": "2026-10-28T09:14:22.511Z",      "updatedAt": "2026-10-28T11:02:47.090Z",      "shippingAddress": {        "street1": "Kortrijkstraat 12",        "street2": null,        "city": "Kuurne",        "state": "West-Vlaanderen",        "zip": "8520",        "country": "BE"      },      "billingAddress": {        "street1": "Kortrijkstraat 12",        "street2": null,        "city": "Kuurne",        "state": "West-Vlaanderen",        "zip": "8520",        "country": "BE"      },      "raw": {        "carts": [          {            "vendor": "HENRYSCHEIN",            "products": 1,            "subtotal": 130.4,            "shipping": 0,            "tax": 27.38,            "total": 157.78,            "vendorReferences": [              {                "reference": "HSIBE_4471023",                "source": "placement"              }            ],            "items": [              {                "id": "c1a7e2f0-0b3d-4f5e-8a9c-6d7e8f9a0b1c",                "quantity": 4,                "unitPrice": 32.6,                "subtotal": 130.4,                "product": {                  "sku": "9008577",                  "productId": "5e6f7a8b-1c2d-4e3f-9a0b-1c2d3e4f5a6b",                  "product": {                    "id": "5e6f7a8b-1c2d-4e3f-9a0b-1c2d3e4f5a6b",                    "name": "Nitrile gloves, size M, 100 pcs",                    "sku": "NIT-M-100"                  }                }              }            ]          }        ]      }    }  ],  "nextCursor": null}

Was this page helpful?

Last updated on