Skip to main content
POST
/
api
/
v1
/
customers
Crear nuevo cliente
curl --request POST \
  --url https://api.lapyme.com.ar/api/v1/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "[email protected]",
  "phone": "<string>",
  "taxId": "<string>",
  "taxIdType": "CUIL/CUIT",
  "taxCategory": "Responsable Inscripto",
  "personType": "FISICA",
  "country": "<string>",
  "province": "<string>",
  "city": "<string>",
  "address": "<string>",
  "apartment": "<string>",
  "postalCode": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "email": "[email protected]",
    "phone": "<string>",
    "taxId": "<string>",
    "taxIdType": "<string>",
    "taxCategory": "<string>",
    "address": "<string>",
    "apartment": "<string>",
    "city": "<string>",
    "province": "<string>",
    "isActive": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Razón social o nombre del cliente

Required string length: 1 - 70
email
string<email> | null

Email del cliente

Maximum string length: 100
phone
string | null

Teléfono del cliente

Maximum string length: 13
taxId
string | null

Número de documento (CUIT/CUIL/DNI sin guiones)

Required string length: 7 - 11
taxIdType
enum<string> | null

Tipo de documento

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

Categoría fiscal

Available options:
Responsable Inscripto,
Consumidor Final,
Monotributista,
Exento,
IVA no alcanzado
personType
enum<string> | null

Tipo de persona

Available options:
FISICA,
JURIDICA
country
string | null

País

Maximum string length: 50
province
string | null

Código de provincia (se enviará el nombre en la respuesta)

Maximum string length: 2
city
string | null

Ciudad

address
string | null

Dirección

Maximum string length: 70
apartment
string | null

Departamento/Piso

Maximum string length: 10
postalCode
string | null

Código postal

Maximum string length: 8

Response

201 - application/json

Cliente creado exitosamente

success
enum<boolean>
required
Available options:
true,
false
data
object
required