https://server.hypermid.io
The same host serves sandbox and production. Which one you are in is decided by
your key, not the URL. See Environments.
Authentication at a glance
Full detail in Authentication.
The Payments SDK is the easiest way to create and read sessions, but the same
merchant-facing operations are also available in this API reference. Send your
secret key only as
Authorization: Bearer sk_… from your server. Payer-facing
routes and publishable-key routes that are not live are intentionally omitted.Response envelope
Errors always carry the same shape, on every route:code, which is stable, rather than on error, whose wording
may change. Quote traceId in any support request — it is how we find your
exact call. See Error codes.
Successes come in two shapes, and which one you get depends on the route.
Reference and status routes wrap their result in { traceId, code, error, data }
— the result is in data. The POST /quote route returns its executable quote
body directly, with no wrapper, so your frontend can submit
transactionRequest as-is.
One unwrap helper tolerates both:
@hypermid/sdk.
Amounts
Every amount is a decimal string in the token’s smallest unit. Never a JSON number: an 18-decimal amount exceeds the IEEE-754 safe integer range, and the failure mode is silent truncation of the low digits rather than a parse error.parseFloat will appear to work right up until it does
not.