Ir al contenido

Actualizar cliente

PUT
/teams/{teamId}/clients/{clientId}
curl --request PUT \
--url https://api.dev.lade.com.mx/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/clients/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "nameRelated": "example", "description": "example", "rfc": "example", "email": "hello@example.com", "phone": "example", "cfdiUse": "example", "taxRegime": "example", "zipCode": "example", "address": { "street": "example", "extNumber": "example", "intNumber": "example", "neighborhood": "example", "city": "example", "state": "example", "country": "Mexico", "zipCode": "example" }, "creditLimit": 1, "paymentTerms": 1, "notes": "example", "status": "ACTIVE" }'

Actualiza información de un cliente

teamId
required
string format: uuid

ID del equipo (UUID)

clientId
required
string format: uuid

ID del cliente (UUID)

Media typeapplication/json
object
name
string
>= 1 characters <= 100 characters
nameRelated
string
<= 100 characters
description
string
<= 1000 characters
rfc
string
<= 13 characters
email
string format: email
phone
string
<= 20 characters
cfdiUse
string
<= 10 characters
taxRegime
string
<= 10 characters
zipCode
string
<= 10 characters
address
object
street
string
<= 300 characters
extNumber
string
<= 50 characters
intNumber
string
<= 50 characters
neighborhood
string
<= 100 characters
city
string
<= 100 characters
state
string
<= 100 characters
country
string
default: Mexico <= 100 characters
zipCode
string
<= 10 characters
creditLimit
integer
<= 999999999
paymentTerms
integer
<= 365
notes
string
<= 1000 characters
status
string
Allowed values: ACTIVE INACTIVE SUSPENDED

Cliente actualizado

Media typeapplication/json
object
id
string format: uuid
teamId
string format: uuid
name
string
nameRelated
string
nullable
description
string
nullable
rfc
string
nullable <= 13 characters
email
string format: email
nullable
phone
string
nullable
cfdiUse
string
default: G03
taxRegime
string
default: 601
zipCode
string
nullable
status
string
Allowed values: ACTIVE INACTIVE SUSPENDED
address
object
street
string
<= 300 characters
extNumber
string
<= 50 characters
intNumber
string
<= 50 characters
neighborhood
string
<= 100 characters
city
string
<= 100 characters
state
string
<= 100 characters
country
string
default: Mexico <= 100 characters
zipCode
string
<= 10 characters
creditLimit
integer
paymentTerms
integer
<= 365
notes
string
nullable
createdAt
string format: date-time
Example
{
"cfdiUse": "G03",
"taxRegime": "601",
"status": "ACTIVE",
"address": {
"country": "Mexico"
}
}

Solicitud inválida

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Validation failed",
"field": "email",
"message": "Invalid email format"
}

No autenticado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Unauthorized",
"message": "Invalid or expired token"
}

Sin permisos

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Forbidden",
"message": "You don't have permission to access this resource"
}

Recurso no encontrado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Not found",
"message": "Resource not found"
}