Skip to main content
POST
La Pyme SDK

Authorizations

Authorization
string
header
required

Incluí tu API key en el header Authorization con el prefijo Bearer.

Headers

Idempotency-Key
string
required

Clave única para evitar duplicados al reintentar la misma creación de cliente.

Required string length: 1 - 255
X-Request-Id
string

ID opcional de la solicitud para trazabilidad. Si se omite, el servidor genera uno.

Required string length: 1 - 255

Body

application/json
name
string
required
Required string length: 1 - 200
default_account_id
string<uuid> | null

Setting or clearing this field also requires treasury:write. Omit it to preserve the default.

code
string

Código visible del contacto; se genera si se omite

Required string length: 1 - 80
company_name
string | null
Maximum string length: 70
description
string | null
Maximum string length: 500
email
string<email> | null
Maximum string length: 100
phone
string | null
Maximum string length: 30
tax_id
string | null

Documento sin guiones, o "0" cuando tax_id_type es "Otro"

Maximum string length: 32
tax_id_type
enum<string> | null

"Otro" requiere tax_id="0" y categoría efectiva Consumidor Final

Available options:
CUIL/CUIT,
DNI,
Otro
tax_category
enum<string> | null

foreign_customer requiere country, arca_destination_country y foreign_tax_id o arca_country_tax_id. Su identidad reemplaza tax_id, tax_id_type y province; en actualizaciones se conservan los campos omitidos, pero cambiar arca_destination_country requiere enviar también el nuevo country.

Available options:
registered_vat_taxpayer,
final_consumer,
monotributo_taxpayer,
vat_exempt,
vat_not_applicable,
foreign_customer
arca_destination_country
integer | null
Required range: 1 <= x <= 999
foreign_tax_id
string | null
Maximum string length: 50
arca_country_tax_id
string | null
Pattern: ^\d{11}$
metafields
object[]
country
string | null

Nombre del país. Obligatorio al crear un foreign_customer y al cambiar arca_destination_country; las actualizaciones sin cambio de destino conservan el nombre omitido.

Maximum string length: 50
province
string | null
Maximum string length: 2
city
string | null
Maximum string length: 255
address
string | null
Maximum string length: 70
apartment
string | null
Maximum string length: 10
postal_code
string | null
Maximum string length: 8
delivery_carrier
string | null
Maximum string length: 255
delivery_address
string | null
Maximum string length: 2000
assigned_salesperson_id
string<uuid> | null
default_price_list_id
string<uuid> | null
default_discount_percentage
number | null

Porcentaje de 0 a 100 con hasta dos decimales; null elimina el valor. Cambiarlo requiere el permiso para administrar descuentos de clientes; reenviar el valor actual está permitido. No se aplica automáticamente a ventas, pedidos ni presupuestos.

Required range: 0 <= x <= 100
default_price_list_is_base
boolean

true selects explicit Base pricing and clears default_price_list_id. Omit both pricing fields on partial updates to preserve the preference. false restores legacy surface defaults when no named list is set.

payment_term_id
enum<string> | null
Available options:
days_7,
days_15,
days_30,
days_45,
days_60,
days_90,
days_30_60,
days_30_60_90
payment_term_days
integer | null

Cantidad de días hasta el vencimiento. Usá 0 para Contado. Se prefiere sobre paymentTermId.

Required range: 0 <= x <= 365
is_active
boolean

Response

Cliente creado exitosamente

request_id
string
required
data
object
required
warnings
any[]
required