Refund Transaction
note
You can use testPartnerId
as your partnerId and testPrivateKey
as your API Key for
testing purposes.
warning
Never share your API Keys with anyone. Anyone with the API Key will be able to create transactions on your behalf. It should reside solely on your servers.
- Request
- Response
POST https://web.bharatx.tech/api/refund
Headers:Content-Type: application/jsonX-Signature: Base-64 encoded SHA256 hash of request body + request URL without https:// and domain name (For example, in http://example.org/api/example1/?a=b, you should consider only /api/example1/?a=b) + privateApiKey.X-Partner-Id: partnerId
Body:{ "transactionId": "txnId01" // same transaction ID as used in initiate call}
Headers:-
Status = 200: Successfully initiated refund
Body:{ "message": string}
Status = 400: Bad RequestStatus = 401: Failed to authorize youStatus = 5xx: Unknown failure
Body:{ "message": string}