Skip to main content

Bank accounts

You can now register CoDi bank accounts through the API and choose which account receives each CoDi payment.

New endpoints​

  • Register Bank Account: registers a CLABE under your API key. The account starts as pending and becomes active once Pey completes the registration with Banxico.

  • Get Bank Account: retrieves a registered bank account and its codiStatus. The object and its status values are described in the new Bank Account type.

  • A new Bank Account Updated webhook is sent when a bank account registered through the API becomes active.

Changes​

  • Create QR and Create Push Notification accept an optional bankAccountId. When present, the payment is received in that bank account. When omitted, it goes to the CoDi payment account linked to your API key.
  • The Push Notification and QR webhooks include a bankAccountId field with the account that received the payment when one was sent in the request.
  • Get Bank Account Transactions now documents the externalMetadata object and only lists CoDi transactions.