Skip to main content
POST
Refund Order
This API can trigger a refund for any order of any payment gateway.

Request Body

Responses

200 OK

400 Bad Request

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
key
string
required

Merchant api key, provided in paytring dashbord

id
string
required

Order id provided by paytring.

hash
string
default:null
required

to be calculated by hash logic.

Response

200

status
boolean
default:true
Example:

true

message
string
Example:

"Refund has been initiated"

id
string
Example:

"xxxxxx-xxxx"