HSRCPAY Documentation

API Reference

HSRC Pay REST API versions and navigation.

This section covers HTTP endpoint schemas, parameters, and example responses. For conceptual guides (lifecycle, 3DS, routing, dashboard), use Documentation.

How to read this section

  • Hand-written pages: this index and the v1 index.
  • Generated pages: files such as v1/createPayment.mdx and v1/confirmPayment.mdx are produced from OpenAPI (apps/homepage/openapi/v1.json); do not edit them directly. Regenerate with scripts/generate-docs.ts when the schema changes.

Getting started

  1. Choose the v1 group.
  2. Open the relevant operation page.
  3. Try it with sandbox credentials.

Important operation notes

TopicDetail
ConfirmPOST /v1/payments/:id/confirm body: payment_method, routing_strategy, payer_identity
Confirm responsedata.payment + data.confirmResult (paymentNextAction for 3DS)
Create paymentInitial status CREATED
Payment list/detailinclude_charges, include_events, include_routing_plans, include_customer query flags
Charge detailinclude_attempt_details (aligned with dashboard)

On this page