Receive the patient scan pay order status
Hosted by the HIP/HIU, not by ABDM. ABDM calls this endpoint at the callback URL registered for your bridge, so the path below is relative to that URL.
This is callback API for the order_status API. This API needs to implement by HIP to receive the request for payment status.
Header
Authorisation will be provided by the gateway session API after the successful verification of client ID and Secret [ Example: Bearer ]
REQUEST-ID unique UUID[ Example: 18235d89-cb13-479d-ad71-7a57d5f669a8 ]
TIMESTAMP actual time of the requested was initiated[ Example: 2022-10-06T10:10:00.587Z ]
X-HIP-ID [ Example: HIP ID ]
Request Body
queryStatus which contains the orderNumber and requestId[ Example: { orderNumber: 39413413 abhaAddress: requestId: 059fcb69-8ad8-4789-a049-62db16c7b5a0 } ] The access token from POST /api/hiecm/gateway/v3/sessions, sent with a Unique UUID for track the end to end request transaction Actual time of the request was initiated, ISO 8601 represents date and time by starting with the year, followed by the month, the day, the hour, the minutes, seconds and milliseconds. Identifier of the health information provider to which the request was intended OK Bad Request. The request could not be processed because it was malformed or failed validation - a missing mandatory field, a value in the wrong format, or a header that did not match the body. The error code and message, if any occurred. ABDM-1006 - Bad Request, invalid request Body. May be returned either bare or with a trailing ": " separator; match on the code itself and tolerate the separator. Short description of the failure. Unauthorized. The request carried no valid credentials, or the access token has expired. Obtain a fresh token from the session API and retry. 900901 - Invalid Credentials. May be returned either bare or with a trailing ": " separator; match on the code itself and tolerate the separator. Short description of the failure. Detailed description of the failure. Forbidden. The caller is authenticated but is not permitted to perform this operation on this resource. Internal Server Error The error code and message, if any occurred. ABDM-2500 - Unknown error occurred. May be returned either bare or with a trailing ": " separator; match on the code itself and tolerate the separator. Service Unavailable ABDM-2500 - Service Unavailable. May be returned either bare or with a trailing ": " separator; match on the code itself and tolerate the separator.Authorizations
Authorizationbearer tokenRequiredBearer prefix.Headers
REQUEST-IDstringRequiredTIMESTAMPstringRequiredX-HIP-IDstringRequiredResponses
200400errorobjecterror.codestringRequirederror.messagestringRequired401codestringmessagestringdescriptionstring403500errorobjecterror.codestringRequirederror.messagestringRequired503codestringRequiredmessagestringRequired
Where this fits
Answer this callback by calling This is an API is called by HIP to check the status of reports..