Skip to main content

CoDi QR Payment Received

This webhook is triggered when a payment is received on a CoDi QR created via the API.

Payload​

{
"amount": "number",
"apiKeyId": "string",
"bankAccountId": "string",
"codiQrId": "string",
"concept": "string",
"datePaid": "number",
"metadata": "object",
"numRef": "string",
"transactionId": "string",
"type": "codi.qr.payment_received"
}

Fields​

FieldTypeDescription
amountnumberThe amount received in MXN (Mexican Pesos)
apiKeyIdstringThe API key ID associated with this webhook
bankAccountIdstringPey identifier (ULID) of the bank account that received the payment. Only present when bankAccountId was sent when creating the QR. See Get Bank Account
codiQrIdstringThe CoDi QR identifier (IDC) assigned by Banxico
conceptstringThe concept shown to the payer
datePaidnumberUnix timestamp in seconds of when the payment was completed
metadataobjectAdditional information about the transaction. See Metadata Response
numRefstringThe reference number assigned to Banxico
transactionIdstringUnique identifier (ULID) for the transaction
typestringThe event type (codi.qr.payment_received)

Example​

{
"amount": 150,
"apiKeyId": "01M3QMMR6X9CBVDY1SF3G8QWNW",
"bankAccountId": "01JBAVWE4NS5TGXHWGMX3KH23Q",
"codiQrId": "35a13c183a",
"concept": "(dev) Order 345",
"datePaid": 1790724818,
"metadata": {
"clabe": "000000000000000000",
"bankCode": 40012,
"accountType": 40,
"description": "(dev) Order 345",
"trackingKey": "0192191042",
"externalMetadata": {
"orderId": "12345",
"customerEmail": "customer@example.com"
}
},
"numRef": "34567",
"transactionId": "01M3QR8H0RH0XBCKYYD242YXNV",
"type": "codi.qr.payment_received"
}