Changes that can affect your integration
POST /debts/{id}/cancel: if the debt is paid or goes into debit right before the cancellation, it is no longer cancelled. It returns422 BUSINESS_RULE_VIOLATION(before,200with the debt inPAID, or inCANCELLEDif it was going into debit), and409 RESOURCE_CONFLICTif it is a recurring debt that was left paid and active: retry to cancel it. It is the same rulePOST /debts/cancelalready applied. See Debts.
What’s new
include=activeAdhesionsCountinGET /payment-methods: each method carriesactiveAdhesionsCount, the number of active adhesions with that method. They are the ones that get cancelled if you delete it; with more than 10, the deletion is rejected with422and the count still shows the total. See Active adhesions of each method.- No changes for your current integration: without the parameter, the response is the same as always.
New
- CoDi in the payment methods filter:
CODIinpaymentMethodsof the web SDK (@npmtapi/embed1.12.0) and the Android and iOS SDKs (0.3.0), andcodiin the channel’spayment.methods@1. If you validate these values against a closed list, add them. See Payment methods SDK and App ↔ SDK channel. - CoDi events on web:
codiPhoneFilledandcodiPaymentSubmittedintapipay.on(onCodiPhoneFilledandonCodiPaymentSubmittedin React), and theTAPIPAY_CODI_PHONE_FILLEDandTAPIPAY_CODI_PAYMENT_SUBMITTEDmessages if you listen to thepostMessageevents. See Payment methods SDK and postMessage events. - CoDi events in the native SDKs:
CodiPhoneFilled/.codiPhoneFilled(the user entered a valid phone number, last 4 digits only) andCodiPaymentSubmitted/.codiPaymentSubmitted(Tapipay sent the payment request to the user’s bank; it is not the settlement). On iOS, if yourswitch eventhas no@unknown default, add it. See Mobile SDK. - Android and iOS need
0.3.0: an earlier version rejectsCODIandcodi. On web the current checkout is enough;@npmtapi/embed1.12.0adds the TypeScript types.
What’s new
- Orders page: how an order is created depending on the payment method, the order payment methods (
BANK_ACCOUNT,CODIandDIRECT_PAYMENT), which notices you receive and its statuses. sourcefield: the order creation and payment webhooks and the payment method registered one carrysource: "TAPIPAY".paymentMethodalways present in order creation: if there is no payment method, it arrives empty ({}) instead of not coming. It can carrydetailswith additional data of the method.additionalDatanever arrives asnull, and it is added to the payment method registered webhook (empty for now).
source and additionalData.What’s new
- Contacts return
paymentUrl: the URL of the payment portal with the contact’s debts, so you can share it with the debtor as soon as you create the contact. It comes inPOST /contactsandGET /contacts/{id}, and can benullif the portal integration fails. The list (GET /contacts) andPATCH /contacts/{id}do not return it. It is a new field, so your current integration does not change. See Payment portal link.
What’s new
POST /v2/debts/orders/async: creates a payment order without waiting for it to exist. It responds200with yourexternalOrderIdand the result reaches you through the order creation webhook. It also acceptscurrencyandwebhookMetadata, which comes back inadditionalDataof the order’s webhooks. See Payment orders.
What’s new
- App ↔ SDK channel: two-way communication between your app and the open checkout, in the web SDK and in the Android and iOS SDKs. The checkout announces in a handshake (
hello) the capabilities enabled for your organization and answers every piece of data you send withackor with an error with a code. See App ↔ SDK channel. - v1 capabilities:
domiciliation.prefill@1(CLABE and account holder prefill, also with the checkout open) andpayment.methods@1(limit payment methods) are enabled per organization, on request.payment.submitted@1(arrives withstatus: "pending") andpayment.cancelled@1(the user closed the checkout without paying, native SDKs only) are on by default. - Web SDK
@npmtapi/embed1.10.0: addstapipay.channel. For the web channel to open, declare with Tapipay the exact origins of the pages that embed the widget. See Channel with the checkout. - Android SDK
la.tapipay.ui:button:0.2.0and iOS SDK0.2.0: addTapipay.presentWithChannel()(Android) andTapipay.channel(iOS). On iOS, if you pinned the Up to Next Minor Version rule from0.1.0, raise it to0.2.0to get this version. See Mobile apps SDK. - No changes for your current integration: the channel is optional. Without a channel (older SDK or an organization without the capability) everything works as before, with the usual events and the
domiciliationPrefillandpaymentMethodsopening options. On Android, the channel does not open in WebViews withoutWEB_MESSAGE_LISTENERsupport.
What’s new
ORDER_CREATION_SUCCESSandORDER_CREATION_FAILEDwebhooks: notify you every time an order is created or its creation fails, with the reason increationErrorwhen it fails. They share the endpoint and security with the payment order events and the payment method registered event. See Order creation.
What’s new
POST /debts/cancel: cancels up to 50 debts in one request, with the same rule asPOST /debts/{id}/cancel. It returns200if every debt was cancelled,207if some were,422if none was, and500if none could be confirmed because of a failure on our side. Retrying the same batch is safe. See Update and cancel.
What’s new
POST /payment-linksacceptspaymentMethods(optional): it limits the methods the payer sees on the link’s portal to the ones you asked for and that your organization has enabled. If you do not send it, every enabled method is still offered, so your current integration does not change. See Filter payment methods.- The link always returns
paymentMethods: the filter, ornullif the link has none. It comes in the creation, reads, the list, thePATCH, and the cancellation. PATCH /payment-links/{id}acceptspaymentMethodsandsuccessUrl, in addition todescription,expiresAt, andmetadata.nullin either one clears it; inpaymentMethods, it removes the filter. See Update without invalidating the URL.- Two new values in the payment methods enum:
DIRECT_DEBITandBBVA_PAY_BY_BANK. It is the samepaymentMethodsenum used by links and subscriptions. If you validate these values against a closed list, add them. See Payment methods.
What’s new
GET /payment-methods: lists the payment methods a user registered. Each method carries itsexternalPaymentMethodId(the identifierPOST /v2/debts/orders/asyncaccepts), whether it is the default one, and a summary of the account inbankAccount: account type (BANK_ACCOUNTfor a CLABE orDEBIT_CARDfor a debit card), bank code and name, and last four digits, so the user can tell their methods apart. See Query a user’s payment methods.DELETE /payment-methods/{externalPaymentMethodId}: deletes one of the user’s methods and cancels the adhesions that used it. If it was the default one, the most recent of the remaining methods becomes the default. See Delete a payment method.
What’s new
PAYMENT_METHOD_REGISTEREDwebhook: notifies you when a user registers their bank account, with theexternalPaymentMethodIdyou need to charge it. It reaches the same URL as the payment order events. See Payment method registered.
This version adds the per-product adhesion endpoints, recurring debts, and fixed or open amounts, and adjusts debt cancellation. Review the changes that can affect your integration first.
Changes that can affect your integration
POST /debts/{id}/cancel: cancelling a debt that is already cancelled now returns200with the debt inCANCELLED(it used to return422 BUSINESS_RULE_VIOLATION). If your code used that422to detect a double cancellation, adjust it. See Debts.POST /debts/{id}/cancel: if the cancellation was requested but the debt is still active, it returns409 RESOURCE_CONFLICTinstead of200. See Debts.POST /v2/debts: the creation response includes the newrecurringfield (falseby default). If you validate the response against a closed list of fields, add it. See Debts.AUTO_DEBIT_FAILEDwebhook: includes the newattemptNumberfield with the charge attempt number. If you validate the payload against a closed list of fields, add it. See Failed bank debit.- Every debt response (
POST /v2/debts,GET /debts,GET /debts/{id},PATCH /debts/{id}, andPOST /debts/{id}/cancel) includes the newamountTypefield (CLOSEDorOPEN). If you validate the response against a closed list of fields, add it. See Fixed or open amount.
What’s new
- Fixed or open amount:
POST /v2/debtsaccepts the optionalamountTypefield (CLOSEDby default, orOPENso the debtor chooses the amount). It takes precedence overallowPartialPayments, and in anOPENdebtamountPaidis the sum of the payments received. See Fixed or open amount. - Per-product adhesion:
POST /adhesionssubscribes a user to a product (or reactivates the adhesion) andPOST /adhesions/cancelcancels it. There are new error codes:NO_ACTIVE_PAYMENT_METHODandCOMPANY_WITHOUT_PRODUCT_MODALITY(422). See Direct debit and Error handling. - Recurring debts:
POST /v2/debtsaccepts the optionalrecurringfield (boolean, defaultfalse). A recurring debt keeps being offered to the debtor after a payment, and each payment is added to the same debt. See Recurring debts. - Cancelling recurring
PAIDdebts: a recurring debt inPAIDcan be cancelled withPOST /debts/{id}/cancel.PAIDdebts that are not recurring still return422 BUSINESS_RULE_VIOLATION. amountPaidon recurring debts: it is the larger of the amount settled according to the status and the sum of the payments received, so it can exceedamount.
Direct debit is no longer triggered when you create a debt. It is now managed per product, with
POST /adhesions and POST /adhesions/cancel. If your integration reads the POST /v2/debts response to find out whether automatic collection was enabled, this change affects you.Changes that may affect your integration
POST /v2/debtsno longer returnsautopay,autopayReasonorautopayInstrument. Creating a debt no longer evaluates or requests direct debit, so those three fields have nothing to report. If your code reads them, stop before this release:autopaybecomesundefined, and a check likeif (!debt.autopay)starts returningtrueevery time.autopayReasonis gone along with all of its values, includingNO_PRODUCT. If you validate it against a closed list, you can drop that validation.GET /debtsandGET /debts/{id}are unchanged: they still returnautopay, which is a flag on the debt itself and never meant “there is an active direct debit agreement”.
What to do instead
Creating a debt and enrolling in direct debit are now two separate things:- You create the debt with
POST /v2/debts, same as before. - You subscribe the user to the product with
POST /adhesionsand unsubscribe them withPOST /adhesions/cancel. See Subscribe and unsubscribe a product.
paymentUrl, same as before.This version makes input validation stricter and fixes several responses so they match what is documented. Review the list of changes that can affect your integration first.
Changes that can affect your integration
These are changes where a request that used to pass (or returned5xx) now returns 4xx, or where a response value your code might be reading changes.- Strict booleans in
POST /v2/debtsandPOST/PATCH /subscriptions:allowOverduePayment,allowPartialPayments,autopay, andenforcePaymentOrderonly accepttrue/false."true",1, etc. return400withdetails[].descriptionmust be a string (400). See API conventions. additionalDatainPOST /v2/debts,POST /payment-links, andPOST/PATCH /subscriptions: it must be a flat object and cannot use reserved keys (description,paymentMethods,productName, etc.). Otherwise,400. See API conventions.POST /payment-links: anexternalClientIdthat does not match a contact returns422 BUSINESS_RULE_VIOLATION(the link used to be created anyway). See Payment links.POST/PATCH /payment-links:expiresAtmust be an RFC 3339 date-time (2026-12-31 23:59or a date alone return400). In thePATCH,expiresAt: nullreturns400(it used to be500; links always expire),metadatanullor not an object returns400, and an emptydescriptionreturns400. See Payment links.PATCH /subscriptions/{id}: validates types, thepaymentMethodsenum, and the exclusion betweenautopay: trueandpaymentMethods(400). ACANCELLEDorENDEDsubscription returns422(it used to be200). See Subscriptions.POST /subscriptions:intervalUnitis case-sensitive (MONTHreturns400) and, if the scheduling is invalid, neither the product nor the inline contact is created. See Subscriptions.PATCH /contacts/{id}:phones: []returns400(it used to be200with no effect). See Contacts.GET /contacts:identifierandexternalClientIdwith different values return400. See Contacts.GET /products: anactivevalue other thantrue/falsereturns400(it used to be read asfalse). See Products.GET /payment-links:createdAtFrom/createdAtTowith an invalid format return400(they used to be compared as text). See Payment links.GET /subscriptions:externalClientIdnow filters (it used to be ignored and returned subscriptions of other contacts). Empty or blank returns400. See Subscriptions.GET /debts/{id},PATCH /debts/{id},POST /debts/{id}/cancel: a canceled debt can be read (200,status: CANCELLED); canceling it again or sending aPATCHreturns422(it used to be404). See Debts.POST /v2/debts: new valueautopayReason: "NO_PRODUCT". If you validateautopayReasonagainst a closed list, add it. See Direct debit.- Dates in contacts, debts, and link payments:
date-timevalues are returned in UTC with milliseconds andZ(2026-09-24T21:09:41.835Z). They used to come without a zone, with+00:00, or with microseconds. See API conventions. PATCH /debts/{id}:dueDatein the response becomesYYYY-MM-DD(it used to be a date-time). See Debts.POST /payment-linkswithout a debtor:paymentUrlbecomes the short URL (it no longer contains theidentifierValue) and can benullif its generation fails. Treat it as an opaque URL. See Payment links.- Payment links, every response:
expiresAtis always returned in UTC with milliseconds andZ(2026-12-31T23:59:59.000Z), even if it was sent with an offset (-06:00). Older links stored with a date alone (2026-12-01) come out as the start of that UTC day (2026-12-01T00:00:00.000Z). See Payment links. - Payment links without an external key, all responses:
externalPaymentLinkIdisnullwhen the link was created withoutexternalPaymentLinkIdor anIdempotency-Keyheader (it used to return aplk_<uuid>value equal to thepaymentLinkId). See Payment links. GET /debtsandGET /payment-links/{id}/payments:createdAtToas a date alone now includes that day (it used to filter up to its start). If you sent the next day to compensate, you now get one extra day.createdAtFromlater thancreatedAtToreturns400with the messagecreatedAtFrom must be earlier than or equal to createdAtTo.See Debts.
Fixes
PATCH /debts/{id}andPATCH /subscriptions/{id}: thePATCHno longer resetsallowPartialPaymentstofalse, andamountPaidcomes out correctly (notnull). See Debts.GET /debts/{id}andGET /debts:descriptionappears in reads. See Debts.POST /v2/debtsandPOST /subscriptions:contact.contactIdcomes with thecon_prefix also when the contact is created inline. See Direct debit.GET /contacts:identifierfilters, andcontactCodeaccepts thecon_prefix. See Contacts.- Contacts: contacts without an email created inline return
email: null(it used to be the text"null"), also when reading existing ones. See Contacts. GET /payment-links?externalPaymentLinkId=: no longer returns500. See Payment links.POST /payment-links: a repeatedexternalPaymentLinkIdreturns409without creating the debt. A link with a debtor no longer fails with500if the portal configuration does not respond. See Payment links.PATCH /payment-links/{id}:expiresAtalso updates the due date of the link’s debt. If that debt was already cancelled, only the link is updated (thePATCHused to fail). See Payment links.- Payment link response: always carries
externalPaymentLinkId,expiresAt,successUrl,metadata,identifierValue,contact, andproduct, withnullwhen there is no value. See Payment links. POST /products: returns what was stored (timestamps,externalProductId,active) instead of echoing the request. See Products.PATCH /products/{id}:active: falsedeactivates the product; renaming to a name already in use, including one used by an inactive product, returns409(it used to be500); invalid types return400(they used to be500). See Products.POST /subscriptions:paymentUrlis no longernull, andscheduling.billingDayis inferred fromstartDate(formonthandyear). See Subscriptions.GET /debtsandGET /payment-links/{id}/payments:createdAtFrom/createdAtToaccept an RFC 3339 date-time in addition to a date. The same date in both returns that day’s debts (it used to be400), and a futurecreatedAtFromwithoutcreatedAtToreturns an empty page (it used to be400). See Debts.PATCHof contacts, products, payment links, subscriptions, and debts:companyCodein the body is taken as context and is no longer rejected as a non-editable field. See API conventions.POST /v2/debts(batch): each error indetails[]carriesfield. See Direct debit.PATCH /debts/{id}: impossible dates (2026-02-30) return400. See Debts.POST /v2/debts,POST /payment-links, and subscriptions:additionalDatasent as an object is stored on the debt (it used to be lost in debts and links). See API conventions.PATCH /subscriptions/{id}: if updating one of the subscription’s debts fails, the response is207witherror.code: PARTIAL_UPDATE(it used to be500 INTERNAL_ERROR). The subscription is updated. See Subscriptions.paymentUrlin debts, subscriptions and payment links: if your company has no private links configuration,paymentUrlis no longernull: it returns your company’s portal URL. Still treat it as an opaque URL. See Debts.

