PaymonetraDocs

OpenAPI

Every route on this site, as one file your tools can read. Generated from the same contract these pages are, so it is never ahead of them or behind them.

#Download

openapi.json covers 64 operations across 60 paths, in OpenAPI 3.1.0. Version 1.0.0+cdc1a586.56cc6201.6153eb2d, which moves when the contract moves and not when the site rebuilds, so a diff of two copies shows you API changes and nothing else.

Terminal
curl -O https://docs.paymonetra.com/openapi.json

#Import it

Postman: Import, then Link, and paste https://docs.paymonetra.com/openapi.json. Insomnia and Bruno take the same URL. Set your key once as the collection’s bearer token and every request in it is authenticated.

#Generate a client

openapi-generator
npx @openapitools/openapi-generator-cli generate \
  -i https://docs.paymonetra.com/openapi.json \
  -g php \
  -o ./paymonetra

#What it carries

Every path, method, path and query parameter, authentication mode and tag, with the contract’s own prose as each operation’s description and its own payloads as examples. Request and response schemas are inferred from those examples, so they describe the shape we have shown rather than a validator we run: a field that is null in an example carries no type, and an optional field missing from an example is missing from the schema. Treat it as an accurate map and not as a contract of record. These pages are that.

Under webhooks it also describes what we send you: card.transaction.approved, card.transaction.declined, card.transaction.refunded, card.authorization.request, bill.successful, bill.failed. Each lists the signature header and the payload.

5 write routes carry no body in the spec

Most of these take nothing, which is what the documentation says, so an empty post is correct. Where it is not, it is because the contract shows one payload without saying whether it is what you send or what comes back, and a shape pointing the wrong way is worse in a spec than a gap: tooling never questions it. Nothing was invented either way. Read the page for each before you call it.

  • POST /checkout/{reference}/details
  • POST /cards/{card_ref}/freeze
  • POST /cards/{card_ref}/unfreeze
  • POST /cards/{card_ref}/terminate
  • POST /cards/{card_ref}/details_link

#Test mode

There is one server. Test mode is the key you send, not a different host, so the same import works for both: swap sk_test_ for sk_live_ in your tool’s bearer token. See test mode.