Learn about Refunds through PayGlocal
Refund Service from PayGlocal is used to initiate a refund request to the processor for an already successful transaction. A transaction can be refunded by using its GID which is to be passed as a path variable.
PayGlocal supports both full and partial refund requests using the same API using the refundType flag in the request body. The request bodies of the two refunds are different and is discussed below.
Full Refund Request Body
{
  "merchantTxnId": "23AEE8CB6B62EE2AF06",
  "refundType": "F"
}
Partial Refund Request Body
{
  "merchantTxnId": "23AEE8CB6B62EE2AF06",
  "paymentData": {
    "totalAmount" : "10" 
  },
  "refundType": "P"
}