Skip to main content

QR payments, straight to your account, no fees

Create a CoDi charge with QR codes or push notifications, share it with your customer, and receive a webhook the moment the payment lands.

You send

POST https://api.pey.mx/codi/qr
Authorization: Bearer <api-key>

{
  "amount": 150,
  "concept": "Pedido #12345",
  "expiration": 600,
  "numRef": "12345"
}

You receive, once the customer pays

POST https://your-server.example/webhooks
webhook-signature: v1,…

{
  "amount": 150,
  "apiKeyId": "01M3QMMR6X9CBVDY1SF3G8QBJW",
  "codiQrId": "01HXYZQR1234567890ABCDEFGH",
  "concept": "Pedido #12345",
  "datePaid": 1790724818,
  "numRef": "12345",
  "transactionId": "01HXYZTXN1234567890RSTUVWX",
  "type": "codi.qr.payment_received"
}

We work with

CMRGrupo PresidenteOffice DepotSEDECO, Gobierno de la Ciudad de MéxicoEl Micky

Built around the bank account you already have

Use any bank account

Link the bank account you already operate with and CoDi® payments settle directly into it, without opening any account or wallet with pey. Our technology is agnostic to your financial institution.

Add a payment account

API at no cost

For now, the API has no cost. No setup fee, no monthly plan and no charge per request. Create an API key in the portal, link your payment account and start generating CoDi® QR codes and push notifications.

Create your first QR

Two ways to get paid

Both run on the same API key and report back through the same webhook endpoint. Pick the one that fits your checkout, or use both.

Set up in three steps

  1. 1
    Create an API key

    Sign up on the portal, add a payment account and create a key.

  2. 2
    Test in production

    Test with real banks using small amounts such as $0.01 MXN, and use our testing bank account while yours activates.

  3. 3
    Listen for webhooks

    Point an endpoint at pey and verify each delivery with Standard Webhooks.

Test in production

Build and test directly against production using small amounts such as $0.01 MXN. You test with real banks and see the exact flow your customers will go through.

EnvironmentAPIPortal
Productionapi.pey.mxportal.mipey.mx
TestComing soon