customers

Actualizar un cliente

Changed on

Actualiza los datos de un cliente. La metadata se fusiona con la existente (deep merge). Para eliminar una key de metadata, envíala con valor null.

put/customers/{id}

Request

Path parameters

idstring required

ID del cliente

Query parameters

user_idstring

(Alternativa) Buscar por ID de usuario en lugar del ID de cliente

Request body

namestring

Nuevo nombre del cliente

phonestring

Número de teléfono

addressstring

Dirección

nitstring

Número de identificación tributaria

metadataobject

Metadata a fusionar. Envía una key con valor null para eliminarla.

Response

Cliente actualizado

idstring

ID único del cliente

user_idstring

ID del usuario asociado

emailstring email

Email del cliente

namestring

Nombre del cliente

phonestring nullable

Número de teléfono

addressstring nullable

Dirección

nitstring nullable

Número de identificación tributaria

metadataobject nullable

Metadata personalizada

test_clock_idstring nullable

ID del test clock asignado al Customer. Solo puede usarse con una llave de un Sandbox nombrado.

Changes

    • breaking

      added to the response property oneOf list for the response status

    • breaking

      the / response's property type changed from object to array for status

    • info

      added the optional property to the response with the status

    • warning

      deleted the header request parameter X-SECRET-KEY

    • info

      the endpoint scheme security secretKey was added to the API