---
title: "Crear cliente"
method: POST
path: "/api/v1/customers"
tags: ["API"]
---

# Crear cliente

`POST /api/v1/customers`

Crea un cliente para ventas, cuentas corrientes, etiquetas y reportes.

## Headers

- `Idempotency-Key` string, required
- `X-Request-Id` string

## Request body

- ApiCustomerMutationRequest
  - `name` string, required
  - `company_name` string, nullable
  - `description` string, nullable
  - `email` string, email, nullable
  - `phone` string, nullable
  - `tax_id` string, nullable
  - `tax_id_type` 'CUIL/CUIT' | 'DNI'
  - `tax_category` 'registered_vat_taxpayer' | 'final_consumer' | 'monotributo_taxpayer' | 'vat_exempt' | 'vat_not_applicable'
  - `country` string, nullable
  - `province` string, nullable
  - `city` string, nullable
  - `address` string, nullable
  - `apartment` string, nullable
  - `postal_code` string, nullable
  - `delivery_carrier` string, nullable
  - `delivery_address` string, nullable
  - `assigned_salesperson_id` string, uuid, nullable
  - `default_price_list_id` string, uuid, nullable
  - `payment_term_id` 'days_7' | 'days_15' | 'days_30' | 'days_45' | 'days_60' | 'days_90' | 'days_30_60' | 'days_30_60_90'
  - `payment_term_days` integer, nullable — Cantidad de días hasta el vencimiento. Usá 0 para Contado. Se prefiere sobre paymentTermId.
  - `is_active` boolean

## Response `200`

Cliente creado exitosamente

- ApiCustomerCreateResponse
  - `request_id` string, required
  - `data` object, required
    - `customer` ApiSharedObjectc446846cea, required
      - `object` 'customer', required
      - `id` string, uuid, required
      - `name` string, required
      - `company_name` string, nullable, required
      - `description` string, nullable, required
      - `email` string, nullable, required
      - `phone` string, nullable, required
      - `address` string, nullable, required
      - `apartment` string, nullable, required
      - `city` string, nullable, required
      - `delivery_carrier` string, nullable, required
      - `delivery_address` string, nullable, required
      - `tax_id` string, nullable, required
      - `tax_id_type` string, nullable, required
      - `tax_category` string, nullable, required
      - `contact_type` string, nullable, required
      - `default_price_list_id` string, uuid, nullable, required
      - `payment_term_id` string, nullable, required
      - `payment_term_days` integer, nullable, required — Cantidad de días hasta el vencimiento. Usá 0 para Contado. Se prefiere sobre paymentTermId.
      - `province_id` string, nullable, required
      - `is_active` boolean, nullable, required
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
      - `country` string, nullable, required
      - `postal_code` string, nullable, required
      - `assigned_salesperson_id` string, uuid, nullable, required
      - `default_ganancias_regimen` string, nullable, required
      - `assigned_salesperson` ApiSharedObjectb0fb960111, required
        - `id` string, uuid, required
        - `full_name` string, nullable, required
      - `default_price_list` ApiSharedObject8aeeceaf0f, required
        - `id` string, uuid, required
        - `name` string, required
      - `sales_overview` ApiSharedObject01ba6d4b36, required
        - `pending_balance` number, required
        - `sales_count` integer, required
        - `total_sales` number, required
        - `recent_sales` ApiSharedObject56326f33c2[], required
          - `id` string, uuid, required
          - `voucher_type` string, required
          - `invoice_status` string, required
          - `invoice_date` string, required
          - `currency` string, nullable, required
          - `total` number, required
          - `formatted_invoice_number` string, nullable, required
          - `original_sale_id` string, nullable, required
          - `created_at` string, date-time, required
    - `idempotent_replay` boolean, required
  - `warnings` unknown[], required
    - unknown

## Other responses

- `400` — Solicitud inválida
- `401` — API key faltante o inválida
- `403` — Scopes insuficientes
- `404` — Recurso relacionado inexistente
- `409` — Conflicto de negocio o idempotencia
- `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)
