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.
Links
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.
- get
/v1/account/suppliers/{supplier_id}/connection - put
/v1/account/suppliers/{supplier_id}/connection - DEL
/v1/account/suppliers/{supplier_id}/connection - post
/v1/account/suppliers/{supplier_id}/connection/check - get
/v1/account/suppliers/{supplier_id}/invoices - get
/v1/account/suppliers/{supplier_id}/orders - get
/v1/account/suppliers/{supplier_id}/stock - get
/v1/orders - post
/v1/orders - get
/v1/orders/{id}
Webhooks
Signed event deliveries to your endpoints, for stock changes and account changes.
Usage
The account’s own usage against its plan.