Refund Transaction
#
Using BharatX DashboardYou can refund any transaction done via BharatX using our dashboard here. You can find the shopify order number from shopify dashboard.
#
Using APInote
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/shopify/refund-transaction
Headers:Content-Type: application/jsonAuthorization: <Basic Auth using partnerId:privateApiKey>
Body:{ "shopifyOrderNumber": 1002 // The order number visible to user / visible in shopify dashboard}
Headers:-
Status = 200: Successfully initiated refund
Body:{ "message": string}
Status = 400: Bad RequestStatus = 401: Failed to authorize youStatus = 5xx: Unknown failure
Body:{ "message": string}
shopifyOrderNumber
: this is the order number from the dashboard. It is also availbale asorder.order_number
in Shopify Order resource.