Use your existing stack
Choose a maintained client supported by your environment. Verify generated clients against the published schema and sample errors; generator support varies. No language-specific package is required. Do not embed a supplier key in public browser code or in a shared workbook cell.
The wire contract
Once the preview endpoints are released:- Call
GET /api/v1/supplier/mewith the company key. Confirm the expected company identity, scopes, schema version andcapabilities.validate. - Map a small approved source sample to the record schema.
- Send the JSON batch to
POST /api/v1/supplier/validatewithContent-Type: application/jsonand the same authorization header. - Interpret a valid result as validation only:
persisted: false,admitted: false.
Rules every client must preserve
- At most 50 records per preview validation request, within 256 KiB of encoded JSON. This is not a bulk ingestion limit or endpoint.
- Identifiers and exact decimal prices remain strings; do not round them through floating-point conversions.
- Follow schema-required fields, units, null handling and timestamp rules. Never alter stale timestamps to pass validation.
- Parse HTTP status and JSON content. A redirect, HTML login page or
404does not prove receipt. - On
422, correct field errors. Resolve401/403access failures before retrying. HonorRetry-Afteron429; use bounded backoff for transient errors and timeouts. - Keep local validation separate from recurring delivery. Future write APIs need their documented idempotency and receipt behavior; an arbitrary header does not create those guarantees.