5. Refund Request

API to request the refund for the paid transactions.

API Endpoints

Production Base URL /api/GenToken/Refund

Sample Request & Response

{
    "merchantCode":"xxxxx",
    "authKey":"xxxxxxxxx",
    "ReferenceID":"(15 digit number passing during the payment creation)",
    "hash":"ComputedHash(To be calculated as described below)",
    "Amount":1,
    "Description":"optional",
    "RequestedBy":"optional"
}

Hash Creation

Use the below string format to generate an hash value using Hashing Key.

Amount + AuthenticationKey + MerchantCode + ReferenceID

Response Parameters

Parameters
Data Type
Description

errorCode

Integer

0 is success 1 is failed and 2 is initiated for manual refund

errorMessage

String

result -> IsRefunded

Integer

1 is refunded | 2 is under process | 0 is rejected

Merchant will receive an email from Og regarding the updates (under process, cancelled and refunded) of refund.

Sample Code to post data

Last updated

Was this helpful?