For the complete documentation index, see llms.txt. This page is also available as Markdown.

5. Refund Request

API to request the refund for the paid transactions.

API Endpoints

Production Base URL /api/GenToken/Refund
Sandbox 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"
}
{
    "errorCode": 0 is Success 1 is Failed,
    "errorMessgae": "Message",
    "Result":
    {
    "IsRefunded":"1 is refunded | 2 is under process | 0 is rejected"
    }
}

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