Skip to content

OXXO

HTTP Request

POST /v1/payments/charges/oxxo

Request Headers
{
    "Content-Type": "application/json",
    "Authorization": "Bearer {{access_token}}",
    "x-api-key": "{{api_key}}"
}
Request Body
{
    "idempotencyKey": "e565e381-d9eb-6cc4-4da9-b65506b73eed",
    "amount": 100,
    "currency": "MXN",
    "country": "MX",
    "paymentMethod": "OXXO",
    "paymentFlow": "DIRECT",
    "payer": {
        "name": "username",
        "email": "username@liquido.com",
        "billingAddress": {  
            "zipCode": "zip code, postal code",
            "state": "state, state code",
            "city": "city name",
            "street": "street name",
            "number": "building number"
        }
    },
    "orderInfo": {  
        "orderId": "test-order-id",  
        "shippingInfo": { 
            "name": "shipping test name",   
            "email": "thiago@example.com",
            "document": {
                "documentId": "HRGRJN82050602H900",
                "type": "INE"
            },
            "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.168.0.1"
    },
    "description": "test payment",
    "callbackUrl": ""
}
Content-Type: application/json
{
    "transferStatusCode": 200,
    "idempotencyKey": "e565e381-d9eb-6cc4-4da9-b65506b73eed",
    "referenceId": "e565e381-d9eb-6cc4-4da9-b65506b73eed",
    "paymentFlow": "DIRECT",
    "paymentMethod": "OXXO",
    "amount": 100,
    "currency": "MXN",
    "finalAmount": 100,
    "finalCurrency": "MXN",
    "country": "MX",
    "createTime": "2023-06-05 23:26:51 GMT-07:00",
    "scheduledTime": "2023-06-05 23:26:52 GMT-07:00",
    "finalStatusTime": "2023-06-05 23:26:52 GMT-07:00",
    "payer": {
        "name": "username",
        "email": "username@liquido.com",
        "billingAddress": {
            "street": "street name",
            "number": "building number",
            "city": "city name",
            "state": "state, state code",
            "zipCode": "zip code, postal code"
        }
    },
    "transferStatus": "IN_PROGRESS",
    "description": "test payment",
    "callbackUrl": "",
    "transferDetails": {
        "oxxo": {
            "expiresAt": 1687150740,
            "referenceNumber": "871004272433202306180000001007"
        }
    }
}

Notification / Callback

Content-Type: application/json
{
    "eventType":"CHARGE_SUCCEEDED",
    "data":{
        "chargeDetails":{
            "transferStatusCode": 200,
            "idempotencyKey": "e565e381-d9eb-6cc4-4da9-b65506b73eed",
            "referenceId": "e565e381-d9eb-6cc4-4da9-b65506b73eed",
            "paymentFlow": "DIRECT",
            "paymentMethod": "OXXO",
            "amount": 100,
            "currency": "MXN",
            "finalAmount": 100,
            "finalCurrency": "MXN",
            "country": "MX",
            "createTime": "2023-06-05 23:26:51 GMT-07:00",
            "scheduledTime": "2023-06-05 23:26:52 GMT-07:00",
            "finalStatusTime": "2023-06-05 23:26:52 GMT-07:00",
            "payer": {
                "name": "username",
                "email": "username@liquido.com",
                "billingAddress": {
                    "street": "street name",
                    "number": "building number",
                    "city": "city name",
                    "state": "state, state code",
                    "zipCode": "zip code, postal code"
                }
            },
            "transferStatus": "SETTLED",
            "description": "test payment",
            "callbackUrl": "",
            "transferDetails": {
                "oxxo": {
                    "expiresAt": 1687150740,
                    "referenceNumber": "871004272433202306180000001007"
                }
            }
        }
    }
}

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=1MXN
country String country code
currency String The currency code of the transferred fund
paymentMethod String payment method, enum value as OXXO
paymentFlow String payment flow, enum value as DIRECT or REDIRECT
payer JSON payer info
orderInfo JSON order info
riskData JSON risk control 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.
Payer Object Parameters
Parameter Required Type Description
name String fullname(Input specification: Only a combination of uppercase and lowercase letters, numbers and spaces is allowed. Spanish and Portuguese letters, and other special characters are not allowed).
email String email.
document JSON document info
phone String Mobile phone number. Should include “+52” as a prefix.
billingAddress JSON Billing address info.

Document Object Parameters

Parameter Required Type Description
documentId String document number.
type String document type, enum value as INE、IFE or MEXICO_PASSPORT_ID
BillingAddress Object Parameters
Parameter Required Type Description
zipCode String zip code.
state String state.
city String city name.
street String street name.
number String street number.
OrderInfo Object Parameters
Parameter Required Type Description
orderId String order identity number
shippingInfo JSON shipping info
ShippingInfo Object Parameters
Parameter Required Type Description
name String shipping name
phone String Mobile phone number. Should include “+52” as a prefix.
email String email address
address JSON the same as billingAddress
RiskData Object Parameters
Parameter Required Type Description
ipAddress String Payer's IP address

Response Body Parameters

Parameter Type Description
transferStatus String Transfer status, SETTLED, IN_PROGRESS, FAILED
transferStatusCode Integer Transfer status code, 200 transaction SETTLED or IN_PROGRESS, other FAILED
transferErrorMsg String Transfer error message if 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 BANK_TRANSFER, PAY_CASH
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.
createTime String Payment ticket created time
scheduledTime String Payment ticket scheduled time
finalStatusTime String Transfer final status update time, final status include SETTLED, FAILED
TransferDetails Object Parameters
Parameter Type Description
oxxo JSON The oxxo payment details
Oxxo Object Parameters
Parameter Type Description
referenceNumber String The reference number to use for payment, it is better to convert to a barcode
expiresAt Long The timestamp of payment expiration

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.

Notification Event Type

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