Skip to content

Cancel a Payment

Cancel payments with the supported listed paymentMethod and transferStatus.

Country paymentMethod transferStatus
Colombia CARD AUTHORIZED

HTTP Request

POST /v1/payments/charges/cancel/{{idempotencyKey}}

Request Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer {{access_token}}",
    "x-api-key": "{{api_key}}"
}
Content-Type: application/json
{
    "transferStatusCode": 200,
    "idempotencyKey": "2583995e-b2e8-49d3-b2d6-ce2e98744e8b",
    "referenceId": "2583995e-b2e8-49d3-b2d6-ce2e98744e8b",
    "paymentFlow": "DIRECT",
    "paymentMethod": "CARD",
    "amount": 50000,
    "currency": "COP",
    "finalAmount": 50000,
    "finalCurrency": "COP",
    "country": "CO",
    "createTime": "2023-10-20 07:16:23 UTC",
    "scheduledTime": "2023-10-20 07:16:24 UTC",
    "finalStatusTime": "2023-10-20 07:17:14 UTC",
    "payer": {
        "name": "username",
        "email": "username@liquido.com",
        "billingAddress": {
            "street": "Simón Bolívar",
            "number": "12121",
            "city": "Álamos",
            "state": "CDMX",
            "zipCode": "03400"
        }
    },
    "transferStatus": "CANCELLED",
    "description": "this is a test pay",
    "callbackUrl": "https://api.client.com/callback/",
    "subMerchantId": "UUID"
}

HTTP Headers Details

Key Value
Authorization "Bearer" + " " + {{access_token}}
x-api-key {{api_key}}

PATH and Query Parameters

Parameter Type Description
idempotencyKey String The idempotency key of the payment which need to cancel

Response Body Details

Parameter Type Description
transferStatusCode Integer Transfer status code, 200 if CANCELLED.
idempotencyKey String Unique key of payment record.
referenceId String Unique key of payment record which cancelled. current scene referenceId is equal idempotencyKey
paymentMethod String Payment method. CARD.
amount Long The payment amount. The minimum settlement granularity of the current currency, such as 100=1COP
currency String The currency of the transferred fund
finalAmount Long The final amount that is used for creating the charge order. EX: for charge orders with FX conversion, this field represents the converted amount from the original requested amount.
finalCurrency String The currency code of the finalAmount.
country String Country code
createTime String Payment ticket created time.
scheduledTime String Transfer ticket scheduled time
finalStatusTime String Transfer final status update time.
payer JSON Payer info
transferStatus String Transfer status, should be CANCELLED if success.
description String description of payment
callbackUrl String URL where Liquido will send notifications associated to changes to this payment. will receive a post request.
subMerchantId String The sub merchant ID.
transferErrorMsg String Transfer error message if failed.

Object Parameters

Payer
Parameter Type Description
name String Full name.
email String email.
phone String Mobile Phone number.
document JSON Wallet holder identity proof.
billingAddress JSON Billing address info.
Document
Parameter Type Description
documentId String document number.
type String document type.
BillingAddress
Parameter Type Description
zipCode String zip code.
state String state.
city String city name.
district String district name.
street String street name.
number String street number.
complement String complement info.
country String country code.

Transfer Status

Parameter Description
IN_PROGRESS The transaction of this method has started, but no transactions have been processed yet.
SETTLED The funds of the transaction of this payment have been transferred to the store.
EXPIRED The transaction of this payment has been expired.
CANCELLED The transaction of this payment has been cancelled.
FAILED There was an error while processing the transaction of this payment. This status is followed by a message with more details about the error.
Back to top