---
title: "Crear Payment Intents PAC pendientes"
method: POST
path: "/payment_intent/pac"
tags: ["Payment Intents"]
---

# Crear Payment Intents PAC pendientes

`POST /payment_intent/pac`

## Request

- Base URL: `https://api.trytoku.com`
- URL: `https://api.trytoku.com/payment_intent/pac`
- Auth: API key in header `x-api-key`

Encola la creación de los cobros PAC pendientes de un Account, una tarea por institución.

Se usa para lanzar la corrida de cobro por débito automático de una cuenta. La creación es asíncrona: la respuesta confirma que las tareas quedaron encoladas, no que los cobros existan.

Responde HTTP 409 si la cuenta ya tiene un archivo de rendición en preparación.

## Headers

- `x-account-key` string

## Request body

- CreatePacPaymentIntentRequest: Subclass of BaseModel that handles encryption/decryption of ids to translate external ids to internal ids and vice versa. _models defines which db entity corresponds to each key in the way "key": "db model"
  - `accountId` integer, required: Account for which you will try to pay their invoices via pac
  - `excludedInvoices` integer[]: The ids of all invoices that should NOT be processed
  - `includedInvoices` integer[]: The ids of all invoices that should be processeed
  - `is_manual_execution` boolean: If the execution is manual
  - `organizationId` integer, required: Organization for which you will try to pay their invoices via pac

## Response `204`

Successful Response

## Other responses

- `401`: Faltan las credenciales o son inválidas.
- `403`: No tienes acceso a este recurso.
- `404`: El recurso solicitado no existe.
- `409`: La cuenta ya tiene un archivo de rendición en preparación.
- `422`: El cuerpo de la petición no pasó la validación.
- `429`: Se superó el límite de peticiones permitidas.

## Changes

- **2026-11-03** `a6ef070075b1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trytoku/apis/toku-api/changes/payment_intent/pac/post.md)

---

[API](https://skmtc.dev/trytoku/apis/toku-api.md) - [All operations](https://skmtc.dev/trytoku/apis/toku-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trytoku/apis/toku-api/revisions/a6ef070075b1?raw)
