---
title: "Upload Payment Attachment"
method: POST
path: "/api/v3/payments/{payment_id}/attachment"
tags: ["Payments - Cashflow"]
---

# Upload Payment Attachment

`POST /api/v3/payments/{payment_id}/attachment`

## Path parameters

- `payment_id` integer, required

## Response `200`

Successful Response

- PaymentOut
  - `id` integer, required
  - `fecha_emision` string, date, nullable, required — Fecha de emisión
  - `total` string, required
  - `estado` 'active' | 'partial_applied' | 'fully_applied' | 'voided', required
  - `tipo_pago` 'INGRESO' | 'EGRESO'
  - `condicion_pago_id` integer, nullable
  - `metodo_pago_id` integer, nullable
  - `moneda_id` integer, nullable, required
  - `tipo_cambio` string, nullable
  - `referencia` string, nullable
  - `observaciones` string, nullable
  - `serie` string, nullable
  - `numero` integer, nullable
  - `persona_id` integer, nullable
  - `persona` object, nullable
  - `cliente` object, nullable
  - `proveedor` object, nullable
  - `documento_relacionado` string, nullable
  - `adjunto` PaymentAttachmentOutOutput
    - `nombre` string, required
    - `url` string, required
    - `ruta` string, nullable
    - `tamano` integer, nullable
    - `content_type` string, nullable
    - `extension` string, nullable
  - `estado_constancia` 'por_confirmar' | 'confirmado' | 'rechazado' | 'anulado'
  - `items` PaymentItemOut[]
    - `id` integer, required
    - `payment_id` integer, required
    - `orden_compra_id` integer, nullable
    - `compra_id` integer, nullable
    - `venta_id` integer, nullable
    - `orden_id` integer, nullable
    - `payable_id` integer, nullable
    - `payable_type` string, nullable
    - `tipo` 'manual' | 'purchase_order_transfer' | 'purchase_transfer' | 'document_transfer', required
    - `total_a_pagar` string, required
    - `total_pagado` string, required
    - `estado` 'active' | 'partial_applied' | 'fully_applied' | 'voided', required
    - `nota` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/factpro/apis/note-service-api.md) · [All operations](https://skmtc.net/factpro/apis/note-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/factpro/note-service-api/revisions/d88e14b2de42/schema)
