Payment
Refund Transaction
Initiates a full or partial refund against a captured transaction.
- refundType=F for a full refund (omit totalAmount).
- refundType=P for a partial refund (totalAmount required).
post/gl/v1/payments/{gid}/refund
Request
- Base URLhttps://api.payglocal.in
- AuthAPI key in header x-gl-token-external
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
gidstring required
PayGlocal gid of the original transaction.
Request body
Example request
{
"refundType": "P",
"paymentData": {
"totalAmount": "25.00",
"txnCurrency": "INR"
}
}Response
Refund accepted.
Example response
{
"gid": "gl_9c2645ed09edb22e",
"status": "SUCCESS",
"timestamp": "10/01/2026 15:00:00"
}Changes
No recorded changes to this operation across all 1 revision of this API.