Skip to content

Redirect Payment

Redirect Payment

When sending a request over to Liquido, you should specify the payment_method_flow as REDIRECT

HTTP Request

POST /v1/payments/charges/card

Request Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer {{access_token}}",
  "x-api-key": "{{api_key}}"
}

create a credit card redirect payment

Request Body
{
  "idempotencyKey": "1ec983fa-1a37-679b-809b-067861d87ab9",
  "amount": 100,
  "currency": "MXN",
  "country": "MX",
  "paymentMethod": "CREDIT_CARD",
  "paymentFlow": "REDIRECT",
  "payer": {
    "name": "username",
    "email": "username@liquido.com",
    "phone": "5512345678",
    "billingAddress": {
      "zipCode": "03400",
      "state": "CDMX",
      "city": "Álamos",
      "street": "Simón Bolívar",
      "number": "12121"
    }
  },
  "orderInfo": {
    "orderId": "test-order-id",
    "shippingInfo": {
      "name": "shipping test name",
      "phone": "shipping phone",
      "email": "thiago@example.com",
      "address": {
        "street": "street name",
        "number": "building number",
        "complement": "unit, apt, etc.",
        "district": "district, neighborhood, etc.",
        "city": "city name",
        "state": "state, state code",
        "zipCode": "zip code, postal code",
        "country": "MX"
      }
    }
  },
  "riskData": {
    "ipAddress":"192.0.0.130",
    "customProperties": {
      "merchantId":"1527558812935028000",
      "merchantName":"LIQUIDO PTE. LTD."
    }
  },
  "description": "this is a test pay",
  "callbackUrl": "https://api.client.com/callback/"
}

Response

Content-Type: application/json
{
  "transferStatusCode": 200,
  "paymentFlow": "REDIRECT",
  "idempotencyKey": "1ec983fa-1a37-679b-809b-067861d87ab9",
  "referenceId": "1ec983fa-1a37-679b-809b-067861d87ab9",
  "paymentMethod": "CREDIT_CARD",
  "amount": 100,
  "currency": "MXN",
  "country": "MX",
  "finalAmount": 100,
  "finalCurrency": "MXN",
  "createTime": "2022-03-01 17:53:18 GMT-08:00",
  "finalStatusTime": "2022-03-01 17:53:18 GMT-08:00",
  "payer": {
    "name": "username",
    "email": "username@liquido.com",
    "phone": "5512345678",
    "billingAddress": {
      "zipCode": "03400",
      "state": "CDMX",
      "city": "Álamos",
      "street": "Simón Bolívar",
      "number": "12121"
    }
  },
  "transferStatus": "IN_PROGRESS",
  "description": "this is a test pay",
  "callbackUrl": "https://api.client.com/callback/",
  "redirectUrl": "https://www.redirect.liquido.com?uid=cb2d0f2b-c28d-4201-a7c8-8d87be57bdf5"
}

Request Headers Parameters

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

Request Body Parameters

Parameter Required Type Description
idempotencyKey String Unique key to ensure idempotent requests. given by the merchant in their 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
paymentMethod String payment method, enum value as CREDIT_CARD
paymentFlow String payment flow, enum value as REDIRECT
payer JSON payer info
capture Boolean set to false to create an authorization
installments Integer number of installments
orderInfo JSON order info
riskData JSON risk control info, if PSP, please add sub-merchant here, example as "customProperties":{"merchantId":"1527558812935028000","merchantName":"LIQUIDO PTE. LTD."}
description String description of payment
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
transferStatus String Transfer status, SETTLED, IN_PROGRESS, AUTHORIZED, FAILED
transferStatusCode int Transfer status code, 200 transaction SETTLED, IN_PROGRESS or AUTHORIZED, other FAILED
referenceId String Unique key to payment ticket, generated by Liquido.
idempotencyKey String Unique key to ensure idempotent requests. given by the merchant in their system
amount Long The transfer amount
country String country code
currency String The currency code 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.
paymentMethod String payment method, enum value as CREDIT_CARD, PIX_STATIC_QR
payer JSON payer info
transferDetails JSON transaction details info
description String description of payment
callbackUrl String URL where Liquido will send notifications associated to changes to this payment. will receive a post request.
createdTime String Payment ticket created time
finalStatusTime String Transfer final status update time, final status include SETTLED, FAILED
paymentFlow String REDIRECT
redirectUrl String The URL where you must redirect your customer to complete the payment.
Back to top