---
title: "Crear nota de crédito independiente"
method: POST
path: "/api/v1/credit-notes"
tags: ["API"]
---

# Crear nota de crédito independiente

`POST /api/v1/credit-notes`

Crea una nota de crédito independiente, asociada a un comprobante externo o a un período asociado explícitamente soportado. No usar para devoluciones de ventas internas: en ese caso usá /api/v1/sales/{sale_id}/returns.

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `customer_id` string, uuid, required
  - `voucher_type` 3 | 8 | 13 | 53 | 95 | 100 | 203 | 208 | 213, required — AFIP credit-note voucher type.
  - `point_of_sale_id` string, uuid, required
  - `register_id` string, uuid
  - `operator_id` string, uuid
  - `issue_date` string, date, required
  - `cbtes_asoc` object, nullable
    - `tipo` integer
    - `punto_venta` integer
    - `numero` integer
  - `associated_period` object — Associated service period. For fiscal credit notes, this can be used instead of cbtes_asoc.
    - `desde` string, date
    - `hasta` string, date
  - `currency` 'PES' | 'DOL'
  - `cost_centers` object
    - `cost_center_1_id` string, uuid
    - `cost_center_2_id` string, uuid
    - `cost_center_3_id` string, uuid
  - `items` object[], required
    - `id` string
    - `product_id` string, uuid
    - `product_name` string
    - `product_sku` string
    - `product_type` 'product' | 'combo' | 'kit' | 'service' | 'null', nullable
    - `name` string, required
    - `quantity` number, required
    - `unit_price` integer, required
    - `tax_rate_id` integer, required
    - `is_exempt` boolean
    - `discount_percentage` number
    - `account_id` string, uuid
    - `account_name` string
    - `warehouse_id` string, uuid
    - `cost_center_1_id` string, uuid, nullable
    - `cost_center_2_id` string, uuid, nullable
    - `cost_center_3_id` string, uuid, nullable
  - `restock_inventory` boolean
  - `warehouse_id` string, uuid
  - `notes` string

## Response `200`

Nota de crédito creada exitosamente

- ApiSharedObject44d57fbeb2
  - `request_id` string
  - `data` ApiSharedObject2f89490657
    - `credit_note` ApiSharedObject2d5ef0a199
      - `object` 'credit_note'
      - `sale_id` string, uuid
      - `total` integer, nullable
      - `invoice_status` string, nullable
      - `invoice_number` integer, nullable
      - `formatted_invoice_number` string, nullable
      - `voucher_type` string, nullable
  - `warnings` unknown[]
    - unknown

## Other responses

- `400` — Solicitud inválida
- `401` — API key faltante o inválida
- `403` — Scopes insuficientes
- `404` — Pedido no encontrado
- `409` — Conflicto de idempotencia o de negocio
- `429` — Límite de solicitudes excedido para la organización
- `500` — Error interno del servidor

---

[API](https://skmtc.net/lapyme/apis/la-pyme-api.md) · [All operations](https://skmtc.net/lapyme/apis/la-pyme-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lapyme/la-pyme-api/versions/414f57f28498/schema)
