Credit

This API can be used to issue credit to a card.

POST https://<Platform-host>/api/payment/credit

Request Body

Name
Type
Description

id*

string

The Transaction/Payment UUID of the original transaction to which the credit should be applied

data.transaction_amount*

string

Amount to be returned. Should be less or equal to available transaction amount

data.card_token

string

Card token generated by Platform secure field API

data.description

string

Transaction description. Character limit is 255

data.metadata

string

Add any additional metadata by passing a json object

data.gateway_id

string

Gateway ID (optional, if multigateway mode enabled)

Field Name
Type
Description
Required?

id

string

Platform payment ID for the sale request

Required

transaction_id

string

Unique transaction ID

Required

gateway_id

string

ID of the gateway through which the transaction is processed.

Optional

merchant_id

string

Merchant ID

Required

description

string

Transaction description provided in the request

Optional

return_response

object

Refer to Credit Card Sale (SaleResponse)

Required

metadata

object

Return all the metadata sent in the request

Optional

Sample Request / Response

Example Request

{
    "id": "9a0df7ef-b77f-4525-97e1-f41a98ad7f75",
    "data": {
        "transaction_amount": "110.00",
        "card_token": "card_sandbox_xxxx",
        "description": "Payment for the services",
        "metadata": {
            "customer_id": "123",
            "email" : "[email protected]"
        }
    }
}

Webhook event: PAYMENT_REFUNDED

Webhook Payload Example

Last updated