customers

Crear un cliente

Changed on

Crea un nuevo cliente. Si ya existe un usuario con el email proporcionado, el cliente se asocia a ese usuario. Si el email es nuevo, se crean tanto el usuario como el cliente.

post/customers

Request

Request body

emailstring email required

Email del cliente (se usa para buscar o crear el usuario)

full_namestring

Nombre completo

namestring

Nombre para mostrar

phonestring

(Opcional) Número de teléfono

addressstring

(Opcional) Dirección

nitstring

(Opcional) Número de identificación tributaria

metadataobject

(Opcional) Metadata personalizada

test_clock_idstring

ID de un Test Clock del mismo Sandbox. No está disponible en LIVE.

Response

Cliente creado o encontrado

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 new optional request property

    • 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