REST API
The Zenith Payments Merchant API is the server-to-server integration surface for merchants who need backend control over payments and the operations around them, not only checkout. This section covers the Merchant API (v2). For the full endpoint, schema, and example reference, see the API reference.
When to use the REST API
Use the REST API when your integration is primarily backend-driven. You can use it to:
- create and retrieve payments
- create refund requests and check refund status
- manage preauthorisations
- create or update customers (customer entities registered with Zenith Payments)
- work with tokenised payment instruments, tokenisation and proxies
- create sessions
- send batch payments and request-to-pay flows
- run reconciliation, operational checks and diagnostics
If your main goal is to launch a hosted payment experience from your website or app, start with Hosted Payment. A typical integration uses both: the REST API for backend operations and Hosted Payment for the browser checkout. If you want a hosted payment link with minimal integration effort, use Payment Links.
Confirm with a GET
Create or request the action, store your own identifier against it, then confirm what happened with a GET. This works for payments, refunds, preauths and customers.
Log enough to trace a payment
Your backend should be able to answer what you tried to do, what happened, what state the payment or customer is in now, and whether it is safe to retry. That usually means logging, mapping your identifiers to ours, and a way to query or audit past actions.