@jamm-pay/node-sdk
v0.13.0
Published
Jamm SDK
Readme
Quickstart
Visit our docs for more information.
API version
Every request to the Jamm API carries a Jamm-API-Version header. It defaults to
the dated API version this SDK was built against, exposed as API_VERSION. To stay
on the version you integrated against, set apiVersion in config.init; a version newer than
API_VERSION is rejected, so upgrade the SDK to use one. Unset or empty means API_VERSION.
jamm.config.init({
clientId: "your-client-id",
clientSecret: "your-client-secret",
environment: "prod",
apiVersion: "2026-08-26",
});The API rejects a version it no longer serves; the error lists the versions it does. Responses to a pinned older version follow that version's shape, so fields added since come back empty in this SDK's types.
Every versioned response echoes what served it in two headers:
Jamm-API-Version is the version, and Jamm-API-Version-Source is how it was
chosen: header (the version this SDK sent), pin (your account's pinned
version), default (no header, and no pin we could read), or forced (Jamm
temporarily served its newest shape, which no dated version describes, so
Jamm-API-Version is omitted). A request rejected before a version is chosen
carries neither.
OAuth2 token requests are excluded: they go to the identity service, which is not versioned.
