Skip to content

Refund

This service allows you to create refunds of an existing payment.

The following payment methods, a bank transfer will be made to the customer, Additional bank account information required

Payment method
CREDIT_CARD
NEQUI
PSE
PAY_CASH

HTTP Request

POST /v1/payments/charges/refund

Request Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer {{access_token}}",
    "x-api-key": "{{api_key}}"
}
Request Body
{
    "idempotencyKey": "2022030214000007-1",
    "referenceId": "2022030214000007",
    "amount": 300,
    "currency": "COP",
    "country": "CO",
    "description": "refund test",
    "additionalInfo": {
        "bankTransferAccountInfo": {
            "bankCode": "332",
            "beneficiaryName": "antonio silva",
            "bankAccountNumber": "286435",
            "bankAccountType": "CHECKING",
            "bankBranchId": "0001",
            "ispb": "13140088",
            "document": {
                "documentId": "42243309114",
                "type": "CC"
            }
        }
    },
    "callbackUrl": "https://api.client.com/callback/"
}
Response
{
    "transferStatusCode": 200,
    "transferErrorMsg": null,
    "idempotencyKey": "2022030214000007-1",
    "referenceId": "2022030214000007",
    "paymentMethod": "CREDIT_CARD",
    "amount": 300,
    "currency": "COP",
    "country": "CO",
    "createTime": "2022-03-01 21:18:56 GMT-08:00",
    "scheduledTime": "2022-03-01 21:18:56 GMT-08:00",
    "finalStatusTime": "2022-03-01 21:18:57 GMT-08:00",
    "payer": {
        "name": "username",
        "email": "username@liquido.com",
        "document" : "88778878",
        "phone": "+57 3123456789",
        "billingAddress": {  
            "zipCode": "111111",
            "state": "Cundinamarca",
            "city": "Bogotá",
            "street": "Apartamento 502, Torre I",
            "number": "Calle 34 # 56 - 78"
        }
    },
    "transferStatus": "SETTLED",
    "description": "refund test",
    "callbackUrl": "https://api.client.comcallback/"
}

Notification / Callback

Notification / Callback
    {
        "eventType": "CHARGE_REFUND_SUCCEEDED",
        "data": {
            "chargeDetails" : {
                "amount" : 300,
                "callbackUrl" : "https://api.client.com/callback/",
                "country" : "CO",
                "createTime" : "2022-03-01 15:10:35 GMT+08:00",
                "currency" : "COP",
                "description" : "refund test",
                "finalStatusTime" : "2022-03-01 15:10:37 GMT+08:00",
                "idempotencyKey" : "2022030114000005-1",
                "payer" : {
                    "email" : "username@liquido.com",
                    "name" : "username"
                },
                "paymentMethod" : "CREDIT_CARD",
                "referenceId" : "2022030214000007",
                "scheduledTime" : "2022-03-01 15:10:35 GMT+08:00",
                "transferStatus" : "SETTLED",
                "transferStatusCode" : 200
            }
        }
    }
HTTP Headers Parameters
Key Value
Authorization "bearer" + " " + {{access_token}}
x-api-key {{api_key}}
Request Body Parameters
Parameter Required Type Description
idempotencyKey String idempotencyKey of refund transation, generate by merchant.
referenceId String idempotencyKey of payment which need to refund.
amount Long The refund amount. The minimum settlement granularity of the current currency, such as 100=1COP
country String country code
currency String The currency code of the transferred fund
description String description of refund transation
additionalInfo JSON Additional refund information
callbackUrl String URL where Liquido will send notifications associated to changes to this payment. will receive a post request.
Response Body Parameters
Parameter Type Description
idempotencyKey String idempotencyKey of refund record, generate by merchant.
referenceId String idempotencyKey of the payment which need to refund.
paymentMethod String payment method
amount Long The refund amount
country String country code
currency String The currency code of the refund
description String reason for refund
callbackUrl String URL where Liquido will send notifications associated to changes to this refund.
createTime String refund ticket created time
scheduledTime String refund ticket scheduled time
finalStatusTime String refund final status update time, final status include SETTLED, FAILED
transferStatus String refund status, SETTLED, IN_PROGRESS, FAILED
transferStatusCode Integer refund status code, 200 transaction SETTLED or IN_PROGRESS, other FAILED
transferErrorMsg String refund error message if failed

Object Parameters

AdditionalInfo
Parameter Required Type Description
bankTransferAccountInfo JSON Bank transfer account information
BankTransferAccountInfo
Parameter Required Type Description
bankCode String The bankcode of the bank, 4 digits
beneficiaryName String The beneficiary name
bankAccountNumber String The beneficiary bank account number
bankAccountType String The beneficiary bank account type, CHECKING, SAVINGS
bankBranchId String The beneficiary bank branch Id
bankName String The beneficiary bank name
ispb String The ISPB of the bank, used in the same way as the shorter bank code
document JSON Document info
Document
Parameter Required Type Description
documentId String document number.
type String document type, enum value as CC, CE, NIT or TI

Notification Event Type

CHARGE_SUCCEEDED,
CHARGE_FAILED,
CHARGE_CHARGED_BACK,
CHARGE_REFUND_SUCCEEDED,
CHARGE_REFUND_FAILED;
Back to top