> For the complete documentation index, see [llms.txt](https://docs.qentaz.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qentaz.com/documentation/planes-y-suscripciones/consultar-plan.md).

# Consultar Plan

Permite consultar la información de un plan existente a partir de su identificador visible. La respuesta incluye la configuración general del plan, sus condiciones de cobro y los campos definidos para la vinculación.

## Endpoint

<mark style="color:blue;">`GET`</mark> `{{base_url}}/plan/{plan_id}`

## **Headers**

| Name                                                   | Value            |
| ------------------------------------------------------ | ---------------- |
| `Content-Type`*<mark style="color:red;">**\***</mark>* | application/json |
| `x-auth-token`*<mark style="color:red;">**\***</mark>* | {token}          |
| `child-id`                                             | {business\_id}   |

{% hint style="info" %}
El child-id es opcional y se usa para las cuentas administradas para conocer más puedes ingresa a este [enlace](/documentation/cobros/terminos-de-relevancia.md#cuentas-administradas).
{% endhint %}

## **Parámetros**

<table data-header-hidden="false" data-header-sticky><thead><tr><th>Campo</th><th width="120.39453125">Tipo</th><th width="119.5">Obligatorio</th><th>Descripción</th></tr></thead><tbody><tr><td><code>plan_id</code></td><td>String</td><td>Sí</td><td>Identificador visible del plan que se desea consultar.<br><br><em><mark style="color:blue;"><code>Ejemplo: A1A2A3A4</code></mark></em></td></tr></tbody></table>

***

## **Response**

{% tabs %}
{% tab title="200" icon="octagon-check" %}

```json
{
  "plan_id": "A1A2A3A4",
  "name": "Plan Premium",
  "status": "active",
  "plan_url": "https://pay.trazo.co/s/abc123",
  "return_url": "https://comercio.com/pagos/resultado",
  "plan_details": {
    "currency": "COP",
    "amount": 150000,
    "description": "Cobro {{charge_number}} - {{month}}",
    "frequency": "monthly",
    "billing_day": 5,
    "total_charges": 6,
    "initial_charge": true,
    "trial_days": 7,
    "expires_at": "2026-09-12",
    "retry": {
      "max_attempts": 3,
      "interval_days": 2,
      "final_status": "OVERDUE"
    }
  },
  "form_fields": {
    "field_one": {
      "type": "list",
      "label": "Tipo de servicio",
      "is_visible": true,
      "is_required": true,
      "options": ["Básico", "Premium"],
      "default_value": "Premium"
    },
    "field_two": {
      "type": "text",
      "label": "Documento de identidad",
      "is_visible": true,
      "is_required": true,
      "default_value": ""
    }
  },
  "created_at": "2026-07-28T15:30:00Z"
}
```

{% endtab %}

{% tab title="400" icon="octagon-xmark" %}

```json
{
  "error": {
    "type": "bad_request",
    "message": "The request contains invalid or incomplete data.",
    "details": [
      {
        "field": "payment_policy.total_charges",
        "message": "total_charges must be between 1 and 12."
      }
    ]
  }
}
```

{% endtab %}

{% tab title="401" icon="hexagon-exclamation" %}

```json
{
  "error": {
    "type": "unauthorized",
    "message": "Authentication failed."
  }
}
```

{% endtab %}
{% endtabs %}

***

## Ejemplo

{% tabs %}
{% tab title="cURL" %}

```bash
curl --request GET \
  --url https://{{base_url}}/plan/A1A2A3A4 \
  -H "x-auth-token: YOUR_SECRET_TOKEN"
```

{% endtab %}
{% endtabs %}
