> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/click-to-pay/es/implement-click-to-pay-issuers/opt-out-cards-from-click-to-pay/opt-out-by-d1-api.md).

# Darse de baja mediante la API de D1

## Resumen

Esta página explica cómo el backend del emisor puede dar de baja una tarjeta de Click to Pay llamando a la API D1 [Baja de Click to Pay](/click-to-pay/es/integrate-the-d1-api/d1-api-summary.md).

Use este flujo de backend cuando:

* Desea eliminar una tarjeta de Click to Pay sin ninguna acción del usuario final en la aplicación del emisor (por ejemplo, por cierre de tarjeta, fraude o motivos regulatorios).
* Orquesta las operaciones de baja desde el backend del emisor o la interfaz de atención al cliente.

Cuando la operación de baja se completa correctamente:

* La tarjeta se elimina del directorio de Click to Pay.
* La red de pagos elimina la tarjeta digital asociada.
* La tarjeta ya no aparece como un método de pago disponible durante el proceso de pago de Click to Pay.

La baja es definitiva. Si es necesario, puede volver a inscribir la tarjeta llamando a la API [Inscripción en Click to Pay](/click-to-pay/es/integrate-the-d1-api/d1-api-summary.md).

{% hint style="info" %}
**Baja de consumidor de Click to Pay**

Los flujos siguientes también se aplican a la baja del consumidor, con las siguientes excepciones:

* La API dedicada utiliza `consumerId` en lugar de `cardId`.
* La notificación enviada al final de la operación es **Notificar a Operaciones de Consumidor** en lugar de **Notificar a Operaciones de Tarjeta**.
  {% endhint %}

## Experiencia de usuario

<figure><img src="https://3391342470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuKGiYHoxBTUoHkwRFlXH%2Fuploads%2Fq9kkDJiXMKMo662EB58c%2FUX%20-%20Opt%20out%20C2P.svg?alt=media&amp;token=7449859c-521f-4e03-9966-0f545252f18c" alt=""><figcaption><p>Dar de baja una tarjeta de Click to Pay desde el backend del emisor.</p></figcaption></figure>

## Flujo

El siguiente diagrama muestra el flujo general de baja desde el backend:

<figure><img src="https://3391342470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuKGiYHoxBTUoHkwRFlXH%2Fuploads%2Fbvsj2AFd2VKObdqEHr96%2FFlow%20-%20%20Opt%20out%20by%20D1%20API.svg?alt=media&amp;token=4d329b6b-dffd-40d0-95f8-a07efb9ffaaf" alt=""><figcaption><p>Flujo de baja de Click to Pay desde el backend.</p></figcaption></figure>

### Diagrama de secuencia

El diagrama de secuencia siguiente ilustra la baja por `cardId` flujo iniciado desde el backend del emisor:

<figure><img src="https://3391342470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuKGiYHoxBTUoHkwRFlXH%2Fuploads%2FGNFj5aX1NeX4cOdOyIqc%2FSequence%20Diagram%20-%20Opt%20out%20by%20D1%20API%20-%20cardID.svg?alt=media&amp;token=c4dfe869-12ec-46a5-8b4c-b4dddac57e9a" alt=""><figcaption><p>Diagrama de secuencia para la baja de Click to Pay desde el backend.</p></figcaption></figure>

El diagrama de secuencia siguiente ilustra la baja por `consumerId` flujo iniciado desde el backend del emisor:

<figure><img src="https://3391342470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuKGiYHoxBTUoHkwRFlXH%2Fuploads%2FEsJNNlhqkLfKiCN5c8sB%2FSequence%20Diagram%20-%20Opt%20out%20by%20D1%20API%20-%20consumerId.svg?alt=media&amp;token=aeb00d60-1c1c-4bc8-abd6-1b8f1143a6ed" alt=""><figcaption><p>Diagrama de secuencia para la baja del consumidor de Click to Pay desde el backend.</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/click-to-pay/es/implement-click-to-pay-issuers/opt-out-cards-from-click-to-pay/opt-out-by-d1-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
