Dummy payer APIs
Provider: make the dummy payer act on a request
Makes the sandbox dummy payer, participant 1000003538@hcx, approve, reject or query a pre-authorisation or claim you have submitted, by correlation ID.
Business purpose
The sandbox hosts a payer that answers back, and this hook decides what it answers. It closes the loop on the first message a new integration sends. Whichever answer comes back proves the token works, the participant record is live, the exchange can reach the provider's address, the dummy payer could open the message, and the provider could read its reply.
When to use
Use it in the sandbox only. It makes the dummy payer approve, reject or query a pre-authorisation or claim you sent it.
Preconditions
- You sent a pre-authorisation or claim to the dummy payer and hold its correlation ID.
- Your callback address is registered and answers
202within 30 seconds. - A valid ABDM session token.
Postconditions
The decision arrives on your callback, for example /v1/preauth/on_submit, on the same correlation ID. A Query first sends you a communication request, which you answer on /v1/communication/on_request.
Common mistakes
- Passing the correlation ID of a request not sent to the dummy payer.
- Waiting for a decision after a
Querywithout answering the communication request. - Reading the rejection of an empty test bundle as a failure. It is the expected answer.
Best practices
- Test all three outcomes of each flow, not only approval.
- Make the callback handler idempotent, since the exchange retries a missed receipt.
- Keep this hook out of production code paths. It exists only in the sandbox.
Related scenario
A new provider integration sends the empty bundle from its smoke test to the dummy payer on /v1/preauth/submit and gets 202. It posts this hook with action Approve, method Preauth and that request's correlation ID. A ProtocolResponse refusing the empty bundle lands on its /v1/preauth/on_submit, the handler answers 202, and the base framework is proven end to end.
Specification
Chapter Building and sending a JWE of the NHCX integration specification. Every NHCX call carries the access token from the session call in a header named Example The answer arrives on your callback for the request's family, Authorizations
bearer_authapiKeyRequiredbearer_auth, as the word Bearer, a space and the token. NHCX reads bearer_auth, not Authorization.Bearer <access token>Body
actionstringmethodstringcorrelationIdstringResponses
200/v1/preauth/on_submit for a pre-authorisation, as a sealed ClaimResponse or as a ProtocolResponse carrying a refusal, on the correlation ID you sent.