# API · Get batch detail

> Get batch detail: POST /api/v1/collect/get/massive/detail.

- kind: api-operation
- status: stable
- api_version: v1
- last_verified: 2026-10-20
- url: https://tilopay.com/en/developers/api/cobros-tarjetas-guardadas/get-massive-detail

```http
POST /api/v1/collect/get/massive/detail
```

## What it does [#que-hace]

Get batch detail.

## Authentication [#autenticacion]

Host: `https://app.tilopay.com`. Requires the API bearer token in `Authorization: Bearer <token>` and the integration key in the body (`key`).

[Get the API token](/en/developers/api/autenticacion/token-api).

## Parameters [#parametros]

<Param id="get-massive-detail-parametro-key" name="key" type="string" required>
Integration key.
</Param>

<Param id="get-massive-detail-parametro-code" name="code" type="string" required>
The code returned in the batch list.
</Param>

## Request example [#ejemplo-request]

`<api_key>` is the placeholder for your integration key.

```json
{
  "key": "<api_key>",
  "code": "UnBSdXN0bnZSc0owVXdvU1haVisxZz09"
}
```

## Response [#respuesta]

`responseText` contains the rejection reason: `Daily amount exceeded` means the affiliate exceeded their daily maximum amount. The `Programmed` status indicates a scheduled charge that has not been processed yet.

<Param id="get-massive-detail-respuesta-status" name="status" type="unknown">
`status`.
</Param>

<Param id="get-massive-detail-respuesta-errors" name="errors" type="unknown">
`errors`.
</Param>

<Param id="get-massive-detail-respuesta-payments" name="payments" type="array">
`payments`.
</Param>

```json
{
  "status": 200,
  "errors": "",
  "payments": [
    {
      "id": 12,
      "collect_id": 2,
      "currency": "CRC",
      "amount": "100.00",
      "reference": "0",
      "auth": "",
      "date_programmed": "",
      "reason": "Cobro mensualidad",
      "responseText": "Daily amount exceeded",
      "status": "processed",
      "approved_payment": "0"
    },
    {
      "id": 20,
      "collect_id": 2,
      "currency": "CRC",
      "amount": "100.00",
      "reference": "0",
      "auth": "123456",
      "date_programmed": "",
      "reason": "Cobro mensualidad",
      "responseText": "Approved",
      "status": "processed",
      "approved_payment": "0"
    },
    {
      "id": 9,
      "collect_id": 2,
      "currency": "CRC",
      "amount": "100.00",
      "reference": "",
      "auth": "",
      "date_programmed": "2024-05-19",
      "reason": "Cobro mensualidad",
      "responseText": "",
      "status": "Programmed",
      "approved_payment": "0"
    }
  ]
}
```

```schema
{
  "type": "object",
  "properties": {
    "status": {
      "type": "integer"
    },
    "errors": {
      "type": "string"
    },
    "payments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "collect_id": {
            "type": "integer"
          },
          "currency": {
            "type": "string"
          },
          "amount": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "auth": {
            "type": "string"
          },
          "date_programmed": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "responseText": {
            "type": "string",
            "description": "Rejection reason; Daily amount exceeded means the affiliate daily maximum was exceeded."
          },
          "status": {
            "type": "string",
            "enum": [
              "processed",
              "Programmed"
            ]
          },
          "approved_payment": {
            "type": "string"
          }
        }
      }
    }
  }
}
```
