Skip to content
Sections

API reference

Every endpoint, built from the API’s own OpenAPI 3.1 description. Base URL https://suppliers.presslane.ai; every call but the OAuth ones needs Authorization: Bearer <token>.

OAuth2

Every call carries a Bearer token. Get one from POST /oauth/token with your client ID and secret; it lasts 15 minutes, so cache it and ask again when it is about to run out.

Catalogue

The supplier directory and its products and variants: every colour and size, with the supplier’s codes, barcodes and list prices.

Availability

Stock for the variants you sell: one answer per variant across every supplier location, and a changes feed to keep a local copy current.

Accounts

For partners: switch tenants on and off, issue their credentials and send them to billing.

Tie your own variants to supplier variants, so availability can be asked for by your references.

Ordering

Place orders with suppliers that take them through their API, using the tenant’s own login there, and read the supplier’s order history, invoices and live stock.

Webhooks

Signed event deliveries to your endpoints, for stock changes and account changes.

Usage

The account’s own usage against its plan.