> 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/integrate-the-d1-api/d1-api-summary.md).

# D1 API summary

This section provides a summary of the APIs used in the **Click to Pay** service.

The APIs are essentially grouped into:

* **Mandatory**: must be implemented by the issuer for a proper integration in D1 and compliance with the schemes.
* **Conditional**: to be implemented according to the integration model chosen by the issuer.
* **Optional**: to be implemented according to the issuer business needs.&#x20;

## Required APIs

| API                                                                                                                                                                                                                                                                                                                   | Inbound/Outbound    | Description                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ------------------------------------------------------------------------------------- |
| [Get authorization token](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/oauth2-api.md)                                                                                                                                                                                                        | Issuer -> Thales D1 | Get an OAuth 2.0 access token to call the D1 backend.                                 |
| [Create card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#post-v2-issuers-issuerid-cards) or [Register card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#put-v2-issuers-issuerid-cards-cardid)                                            | Issuer -> Thales D1 | Create or register a card in the D1 backend.                                          |
| [Renew card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#post-v2-issuers-issuerid-cards-cardid-operations-renew) and [Replace card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#post-v2-issuers-issuerid-cards-cardid-operations-replace) | Issuer -> Thales D1 | Renew a card. Replace card.                                                           |
| [Delete card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#post-v2-issuers-issuerid-cards-cardid-operations-delete)                                                                                                                                                              | Issuer -> Thales D1 | Delete a card from D1 backend.                                                        |
| [Register consumer](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/consumer-api.md#put-issuers-issuerid-consumers-consumerid)                                                                                                                                                                  | Issuer -> Thales D1 | Register a consumer in D1.                                                            |
| [Delete consumer](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/consumer-api.md#post-issuers-issuerid-consumers-consumerid-operations-delete)                                                                                                                                                 | Issuer -> Thales D1 | Delete a consumer in D1.                                                              |
| [Click to Pay enrol](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/click-to-pay-api.md#post-issuers-issuerid-cards-cardid-operations-clicktopayenrolment)                                                                                                                                     | Issuer -> Thales D1 | To enrol card and consumer in Click to Pay directory of the scheme.                   |
| [Click to Pay get consumer profiles](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/click-to-pay-api.md#get-issuers-issuerid-consumers-consumerid-clicktopayprofiles)                                                                                                                          | Issuer -> Thales D1 | Retrieve a Click to Pay profile for a given consumer from the Click to Pay directory. |
| [Click to Pay update card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/click-to-pay-api.md#post-issuers-issuerid-cards-cardid-operations-clicktopayupdate)                                                                                                                                  | Issuer -> Thales D1 | Update a card in the Click to Pay directory of the scheme.                            |
| [Click to Pay update consumer](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/click-to-pay-api.md#post-issuers-issuerid-consumers-consumerid-operations-clicktopayupdate)                                                                                                                      | Issuer -> Thales D1 | Update the consumer details in the Click to Pay directory of the scheme.              |
| [Click to Pay opt-out card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/click-to-pay-api.md#post-issuers-issuerid-cards-cardid-operations-clicktopayoptout)                                                                                                                                 | Issuer -> Thales D1 | Opt-out a card from the Click to Pay directory of the scheme.                         |
| [Click to Pay opt-out consumer](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/click-to-pay-api.md#post-issuers-issuerid-consumers-consumerid-operations-clicktopayoptout)                                                                                                                     | Issuer -> Thales D1 | Opt-out a consumer and his cards from the Click to Pay directory of the scheme.       |

## Conditional APIs

| API                                                                                                                                                                                                                                                                                                                     | Inbound/Outbound    | Description                                                                                                                                                                                                                                                                                              |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Suspend card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#post-v2-issuers-issuerid-cards-cardid-operations-suspend) and [Resume card](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#post-v2-issuers-issuerid-cards-cardid-operations-resume) | Issuer -> Thales D1 | Suspend a card. Resume card.                                                                                                                                                                                                                                                                             |
| [Update consumer information](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/consumer-api.md#post-issuers-issuerid-consumers-consumerid-operations-update)                                                                                                                                       | Issuer -> Thales D1 | It is conditional to the storage of the consumer information in D1. If the data is stored in D1, issuer must update it.                                                                                                                                                                                  |
| [Get consumer information](/click-to-pay/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/consumer-api.md#get-banking-d1-v1-issuers-issuerid-consumers-consumerid)                                                                                                                                            | Issuer <- Thales D1 | <p>It is conditional to the storage of the consumer information in D1. If the data is stored in D1, this API is not triggered.</p><p>It is conditional to the auto enrolment feature in case not all the details are provided in the input. D1 tries to get the missing details from issuer backend.</p> |
| [Get authorization token](/click-to-pay/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/oauth2-api.md)                                                                                                                                                                                                       | Issuer <- Thales D1 | Get an OAuth 2.0 access token to call the issuer backend. It is mandatory if Thales D1 calls the issuer backend.                                                                                                                                                                                         |
| [Notify consumer operations](/click-to-pay/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/consumer-api.md#post-notifications-d1-v2-issuers-issuerid-consumers)                                                                                                                                              | Issuer <- Thales D1 | If the issuer wants to be notified for consumer operations.                                                                                                                                                                                                                                              |
| [Notify card operations](/click-to-pay/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/card-api.md#post-notifications-d1-v2-issuers-issuerid-cards)                                                                                                                                                          | Issuer <- Thales D1 | If the issuer wants to be notified for card operations.                                                                                                                                                                                                                                                  |

## Optional APIs

| API                                                                                                                                                                                                                                                 | Inbound/Outbound    | Description                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ------------------------------------------------------------------------- |
| [Get card list](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/consumer-api.md#get-issuers-issuerid-consumers-consumerid-cards)                                                                                              | Issuer -> Thales D1 | If the issuer wants to retrieve the list of cards linked to the consumer. |
| [Get card operation ](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#get-v1-issuers-issuerid-cards-cardid-operations-operationid)                                                                                | Issuer -> Thales D1 | If the issuer needs to retrieve a specific card operation ID.             |
| [Get all card operation](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#get-v1-issuers-issuerid-cards-cardid-operations)                                                                                         | Issuer -> Thales D1 | If the issuer needs to retrieve all the operations for a given card.      |
| [Get consumer operation](/click-to-pay/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/consumer-api.md#get-issuers-issuerid-consumers-consumerid-operations-operationid)                                                                    | Issuer -> Thales D1 | If the issuer needs to retrieve a specific consumer operation ID.         |
| [Get all consumer operations](https://app.gitbook.com/o/fwy1mtbRONGA2YDKDBr0/s/uKGiYHoxBTUoHkwRFlXH/~/edit/~/changes/253/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/consumer-api#get-issuers-issuerid-consumers-consumerid-operations) | Issuer -> Thales D1 | If the issuer needs to retrieve all the operations for a given consumer.  |


---

# 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:

```
GET https://docs.payments.thalescloud.io/click-to-pay/integrate-the-d1-api/d1-api-summary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
