Saltar al contenido
Krezkadev
POST/customers

Crear un cliente

Se valida el documento como en el panel y nunca se duplica: si ya existe, 409 duplicate_customer con su id. Un proveedor con ese documento pasa a ser también cliente.

Cuerpo de la solicitud

document_typeenumrequerido

dniruccepassport

document_numberstringrequerido
namestringrequerido
emailstring
phonestring
addressstring

Respuestas

  • 201Cliente creado
  • 400Error 400
  • 401Error 401
  • 403Error 403
  • 409Error 409
POST /customers
curl -X POST https://api.krezka.com/api/v1/erp/customers \
  -H "Authorization: Bearer $FALCONEXT_API_KEY" \
  -H "Idempotency-Key: <Idempotency-Key>" \
  -H "Content-Type: application/json" \
  -d '{
    "document_type": "dni",
    "document_number": "string",
    "name": "string",
    "email": "string",
    "phone": "string",
    "address": "string"
  }'
Respuesta · 201
JSON
{
  "object": "customer",
  "id": 0,
  "document_type": "dni",
  "document_number": "string",
  "name": "string",
  "email": "string",
  "phone": "string",
  "address": "string"
}
Pruébalo
API de Krezka (ERP)2026-10-22

Se guarda solo en tu navegador (localStorage). Nunca se incluye en el código copiable.

POSThttps://api.krezka.com/api/v1/erp/customers
curl -X POST https://api.krezka.com/api/v1/erp/customers \
  -H "Authorization: Bearer $FALCONEXT_API_KEY"
Respuesta

Envía una solicitud para ver la respuesta