Skip to content

Notification

When customer complete payment, liquido will send notification to merchant if the callbackUrl of payment link is not null. If merchant send refund request after payment completed, liquido will send notification to merchant after refund completed.

HTTP Request

POST {callbackUrl}

Headers
{
    "Liquido-Signature": "algorithm=HmacSHA256,timestamp={{timestamp_in_seconds}},signature={{signature}}"
}
Body Content-Type: application/json
{
    "eventType": "CHARGE_SUCCEEDED",
    "data":  {
        "linkId": "egGFE9mdsSa6DM5YwNGY5w",
        "orderId": "2022-12-15T14:07:00-01",
        "amount": 9999,
        "currency": "BRL",
        "country": "BR",
        "paymentStatus": "SETTLED",
        "redirectUrl": "https://your-domain/redirect",
        "callbackUrl": "https://your-domain/callback/",
        "finalPaymentMethod": "CREDIT_CARD",
        "finalStatusTimestamp": 1671098127,
        "finalStatusTime": "2022-12-15 17:55:27",
        "refundAmount": null,
        "refundStatus": "INITIAL_STATUS",
        "refundTime": null,
        "refundTimestamp": 0,
        "name": "buyer name",
        "email": "liquido-test@gmail.com",
        "phone": "+5511999999999",
        "documentId": "51364124025",
        "description": null,
        "allowPaymentMethods": [
            "PIX",
            "BOLETO",
            "BANK_TRANSFER_BR",
            "CREDIT_CARD"
        ],
        "billingAddress": {
            "zipCode": "04849333",
            "state": "SP",
            "city": "sao paulo",
            "district": "Jardim Gaivotas",
            "street": "Rua 9 de setembro",
            "number": "15",
            "country": "BR",
            "complement": "casa"
        },
        "shippingAddress": {
          "name": "name",
          "countryCode": "BR",
          "province": "province/state",
          "city": "city",
          "postalCode": "04849334",
          "line1": "Address Info",
          "line2": "Address Info"
        },
        "refunded": false,
        "expiredTime": "2023-10-18 09:21:06",
        "createTime": "2023-10-11 09:21:06",
        "updateTime": "2023-10-11 09:21:06",
        "needCollectAddress": true,
        "metadata": {
                "key1": "value1",
                "key2": "value2"
        }
    }
}

Notification Event Type

CHARGE_SUCCEEDED,
CHARGE_FAILED,
CHARGE_CHARGED_BACK,
CHARGE_REFUND_SUCCEEDED,
CHARGE_REFUND_FAILED;

Signature

All notification/callback to the merchant should be signed using the HMAC-SHA256 algorithm, and the contents of the signature included in the "Liquido-Signature" header. This header should have the signature timestamp in seconds and the hash function used, such as below:

algorithm=HmacSHA256,timestamp={{timestamp_in_seconds}},signature={{signature}}

for more details click here.

Data Object Parameters

Parameter Type Description
linkId String Unique payment link id in liquido.
orderId String Unique order id in merchant system.
amount Long The transfer amount, The minimum settlement granularity of the current currency, such as 100=1BRL
country String Country code
currency String The currency code of the transferred fund
allowPaymentMethods List Declare which payment methods are included in the payment link. Supported Payment Methods see here
paymentStatus String Payment status, enum value as: INITIAL_STATUS, IN_PROGRESS, SETTLED.
finalPaymentMethod String The payment method for user to complete payment.
finalStatusTime String The datetime for user to complete payment. date format: "yyyy-MM-dd HH:mm:ss", timezone: UTC
finalStatusTimestamp Long The timestamp for user to complete payment.
refundTime String The datetime of complete refund. it is null when "refunded" is false. date format: "yyyy-MM-dd HH:mm:ss", timezone: UTC
refundTimestamp Long The timestamp of complete refund. it is 0 when "refunded" is false.
refunded Boolean If true,meaning the payment has been refunded.
refundAmount Long The refund amount, The minimum settlement granularity of the current currency, such as 100=1BRL
refundStatus String The refund status, enum value as: INITIAL_STATUS, IN_PROGRESS, SETTLED, FAILED.
name String Customer's name
email String Customer's email
phone String Mobile phone number, must start with country calling codes, such as "+55".
documentId String Resident ID number, such as CPF/CNPJ in Brazil. Does not contain separator characters.
billingAddress Address Object Billing address info.
shippingAddress JSON Shipping address info.
callbackUrl String When the payment link status changed. liquido will send a post http request to the callback url.
redirectUrl String When the payment completed. payment link will redirect to redirectUrl if it is not null.
description String Description of payment
needCollectAddress Boolean True or false.
expiredTime String The expiration time of the payment link.
createTime String The creation time of the payment link.
updateTime String The update time of the payment link.
metadata JSON Merchant reserved field

BillingAddress Object Parameters

Parameter Type Description
zipCode String zip code. such as CEP in Brazil
state String state. should be abbreviation, such as SP in Brazil
city String city name.
district String district name.
street String street name.
number String street number.
complement String complement info.
country String country code.

ShippingAddress Object Parameters

Parameter Type Description
name String Shipping name.
countryCode String Country code.
province String Province.
city String City.
postalCode String Postal code.
line1 String Address details.
line2 String Address details.
Back to top