5. Refund Request

API to request the refund for the paid transactions.

API Endpoints

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 a 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

errorMessagee

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