Payment Service API v5.8

One endpoint, every flow

Our main payment API. Create payment links, take MOTO payments, capture card details over the phone, run recurring billing and more. One endpoint, many scenarios, all driven by the transaction flag.

API reference menu

Endpoint

POST https://accounts.paytia.com/api/payment_service

Every flow on this API hits the same URL. You switch behaviour by sending a different transaction_flag and the fields that flow needs.

Flows

Each page below has the full field list, example values, and a live try-it explorer you can run against your own sandbox key.

Shared conventions

A few things hold true across every flow, so you don't have to re-learn them per endpoint:

  • Amounts are decimal strings with two decimal places. 10.00, not 10 or 1000.
  • Currency and country codes are ISO 3-letter / 2-letter (GBP, GB).
  • Webhook URLs should be HTTPS. We retry on failure — your endpoint should be idempotent.
  • Reference fields like reference_number are passed through to the underlying payment gateway. Some gateways require uniqueness.
  • Error responses use the HTTP code plus a plain-text reason. Full table at API error codes.

Ready to build with Paytia?

The docs are open. Keys are gated — drop us a line and we'll issue sandbox credentials so you can try every flow against a real endpoint.