Skip to main content
You can integrate in any language using HTTPS and JSON; these SDKs are optional. These are downloadable preview source clients, not published npm or PyPI packages. Their two methods wrap the documented supplier access and validation endpoints. They do not read your ERP, run a scheduler, ingest records or publish a feed. Check release status first. Both clients are packaged in one downloadable JSON source bundle. It contains each filename, complete source text and SHA-256 digest. Download and inspect it before adding a client to your application:
Save the selected files[].content as its matching files[].path (middleman.ts or middleman.py). No code runs when you download the bundle. Verify the digest after extraction if you automate this step. Keep MIDDLEMAN_SUPPLIER_API_KEY in your environment. Never paste its value into an agent prompt.
The downloadable example intentionally contains fixed historical timestamps. Use it to understand the shape or test expiry rejection. For a real validation, read the source again and produce truthful observation/expiry values; do not just change old sample timestamps and call it live data.

Client behavior

  • The default origin is https://middlemantechnologies.com.
  • A development override permits loopback HTTP; other origins require HTTPS. Only use an override for a Middleman environment you trust.
  • Requests time out after 15 seconds. HTTP redirects are rejected so a key cannot be forwarded to a different destination.
  • validate() returns field errors for 422 so your agent can repair a mapping. Other non-2xx responses raise an error containing a status and safe error code.
  • There are no automatic retries. Honor Retry-After on 429, use bounded backoff for transient failures and never report success after a timeout.

Acceptance cases

Test exact prices such as "0.003725", zero versus unknown stock, different sale units, quantity breaks, capacity time windows, expired observations, duplicate IDs, withdrawals, revoked keys and source outages. A production adapter also needs pagination, source throttling, durable checkpoints and reconciliation tests beyond these starter clients.
Last modified on September 7, 2026