One order object, one gate model, one audit trail.
The platform API exposes the same objects the portals use. Buyer endpoints authenticate with a session; operator endpoints require an explicit bearer token and are default-deny.
Authentication
Buyer and supplier calls use the Logto session cookie issued at /api/auth/signin. Operator calls use Authorization: Bearer <MADES_PLATFORM_OPS_TOKEN> and are additionally restricted to an explicit user allow-list. Missing or invalid credentials return 401; valid credentials with an invalid payload return 422.
Endpoints
Only routes that exist in production are listed. There is no public write API for partners yet.
Idempotency
Write endpoints accept an Idempotency-Key header. A repeated key returns the original result instead of creating a second record; concurrent duplicate requests are serialised by an atomic lease.