> 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/central-issuance/es/implementar-la-emision-centralizada/seguimiento-de-pedidos-de-tarjetas/seguimiento-de-la-produccion.md).

# Seguimiento de la producción

Los datos de seguimiento de producción se devuelven en `detalles` para el `PRODUCE` operación.

### Estados de emisión de tarjetas físicas

<figure><img src="https://3468344159-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWhgSoXgpjZJxLx4cDHB1%2Fuploads%2FDU12vculygtoo8DdX3nw%2FConcept%20-%20Track%20a%20physical%20card.svg?alt=media&amp;token=00db4d79-56ae-419a-af7f-7a6d7cb66bae" alt=""><figcaption><p>Diagrama de transición de estados para la emisión de tarjetas físicas.</p></figcaption></figure>

| Código de estado      | Canales de distribución                                  | Descripción                                                                                            |
| --------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| `CARD_PROD_REQUESTED` | <ul><li>THALES</li><li>CENTRAL</li><li>INSTANT</li></ul> | Se ha solicitado la personalización de la tarjeta a través de las API de D1.                           |
| `DATA_PREPARED`       | <ul><li>THALES</li><li>CENTRAL</li></ul>                 | Los datos se han procesado correctamente.                                                              |
| `DATA_EXCEPTION`      | <ul><li>THALES</li><li>CENTRAL</li><li>INSTANT</li></ul> | Se produjo un error durante el procesamiento de datos.                                                 |
| `CARD_PROD_READY`     | <ul><li>THALES</li><li>INSTANT</li></ul>                 | Los datos se han enviado al centro de personalización y la tarjeta está lista para su personalización. |
| `CARD_PROD_ONGOING`   | <ul><li>THALES</li></ul>                                 | La personalización de la tarjeta está en curso.                                                        |
| `CARD_PROD_DONE`      | <ul><li>THALES</li><li>CENTRAL</li><li>INSTANT</li></ul> | La tarjeta ha sido personalizada y está lista para ser preparada para el envío.                        |
| `CARD_SHIPPED`        | <ul><li>THALES</li></ul>                                 | La tarjeta ha sido entregada al transportista.                                                         |
| `CARD_PROD_EXCEPTION` | <ul><li>INSTANT</li></ul>                                | La personalización de la tarjeta encontró un problema.                                                 |
| `CARD_PROD_CANCELED`  | <ul><li>THALES</li></ul>                                 | La personalización de la tarjeta fue cancelada por el emisor.                                          |

{% hint style="info" %}
Trate lo desconocido `details.status` valores como compatibles con versiones futuras.
{% endhint %}

### `detalles` campos

| Campo             | Descripción                                                                                                                                                                                                                                              | Presencia   |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| `motivo`          | Proporciona detalles adicionales para excepciones de procesamiento de datos o de producción.                                                                                                                                                             | Condicional |
| `consumerId`      | Obsoleto. No lo use. Use su identificador interno de usuario final.                                                                                                                                                                                      | Obsoleto    |
| `dueDate`         | Fecha estimada de envío, calculada cuando D1 procesa el pedido.                                                                                                                                                                                          | Condicional |
| `productionSite`  | Centro de personalización que gestiona la personalización de la tarjeta.                                                                                                                                                                                 | Condicional |
| `shipment`        | Detalles de seguimiento del envío, cuando estén disponibles. Consulte [Seguimiento del envío](https://docs.payments.thalescloud.io/central-issuance/es/implementar-la-emision-centralizada/seguimiento-de-pedidos-de-tarjetas/seguimiento-del-envio.md). | Condicional |
| `inputFileName`   | Nombre del archivo que contiene solicitudes de emisión de tarjetas.                                                                                                                                                                                      | Condicional |
| `issuerRequestId` | Identificador de correlación de su archivo de entrada.                                                                                                                                                                                                   | Condicional |

### Ejemplos

#### Tarjeta solicitada

```json
{
  "operations": [
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "PENDING",
      "startTime": "2025-01-17T06:28:02.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "CARD_PROD_REQUESTED"
      }
    }
  ]
}
```

#### Procesamiento de datos completado y exitoso

```json
{
  "operations": [
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "PENDING",
      "startTime": "2025-01-17T06:28:02.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "DATA_PREPARED",
        "dueDate": "2025-01-21",
        "productionSite": "Gemenos"
      }
    }
  ]
}
```

#### Procesamiento de datos con error, la tarjeta es rechazada

```json
{
  "operations": [
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "FAILED",
      "startTime": "2025-01-17T06:28:02.492Z",
      "endTime": "2025-01-21T09:28:12.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "DATA_EXCEPTION"
      },
      "errorCode": "FIELD_INVALID_FORMAT",
      "error": "pan"
    }
  ]
}
```

#### Tarjeta enviada — primera notificación

```json
{
  "operations": [
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "SUCCESSFUL",
      "startTime": "2025-01-17T06:28:02.492Z",
      "endTime": "2025-01-21T09:28:12.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "CARD_SHIPPED",
        "dueDate": "2025-01-21",
        "productionSite": "Gemenos",
        "shipment": {
          "estimatedDeliveryDate": "2025-01-21T17:32:28Z"
        }
      }
    }
  ]
}
```

#### Tarjeta enviada — notificación posterior

```json
{
  "operations": [
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "SUCCESSFUL",
      "startTime": "2025-01-17T06:28:02.492Z",
      "endTime": "2025-01-21T09:28:12.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "CARD_SHIPPED",
        "dueDate": "2025-01-21",
        "productionSite": "Gemenos",
        "shipment": {
          "carrier": "fedex",
          "trackingNumber": "1234567890",
          "status": "IN_TRANSIT",
          "message": "En tránsito",
          "trackingUrl": "https://www.fedex.com/track?trk=1234567890",
          "estimatedDeliveryDate": "2026-05-24T00:00:00Z",
          "lastUpdatedAt": "2026-05-22T13:55:00Z",
          "lastCheckpoint": {
            "checkpointTime": "2026-05-22T13:55:00Z",
            "city": "París",
            "countryName": "Francia",
            "message": "Llegó a la instalación"
          }
        }
      }
    }
  ]
}
```

#### Notificación masiva

```jsonl
{
  "operations": [
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "PENDING",
      "startTime": "2025-01-17T06:28:02.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "CARD_PROD_REQUESTED"
      }
    },
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "PENDING",
      "startTime": "2025-01-17T06:28:02.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "DATA_PREPARED",
        "dueDate": "2025-01-21",
        "productionSite": "Gemenos"
      }
    },
    {
      "operationId": "01c5a05e-e197-11ec-8fea-0242ac120002",
      "operation": "PRODUCE",
      "status": "FAILED",
      "startTime": "2025-01-17T06:28:02.492Z",
      "endTime": "2025-01-21T09:28:12.492Z",
      "cardId": "271b-6e47-8ec3-7f3f",
      "details": {
        "status": "DATA_EXCEPTION"
      },
      "errorCode": "FIELD_INVALID_FORMAT",
      "error": "pan"
    }        
  ]
}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.payments.thalescloud.io/central-issuance/es/implementar-la-emision-centralizada/seguimiento-de-pedidos-de-tarjetas/seguimiento-de-la-produccion.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
