Saltar al contenido

Actualizar cliente

Actualiza nombre, teléfono, identificación y consentimientos del cliente autenticado; responde 204.

Parámetros de cabecera

Authorization*string

Token bearer OAuth 2.0.

x-Store-Domain*string

Slug de la tienda o uno de sus dominios configurados, como my-store.

Longitud1 <= length <= 253
X-Customer-Session?string

Sesión del cliente creada con POST /v1/customer/sessions. Envíala en lugar de Authorization, nunca las dos.

Cuerpo de la solicitud

application/json

Definiciones TypeScript

Usa esta definición en TypeScript.

Cuerpo de la respuesta

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://storefront.ecomiq.pe/v1/customer" \  -H "Authorization: Bearer <token>" \  -H "x-Store-Domain: my-store" \  -H "X-Customer-Session: <session-id>" \  -H "Content-Type: application/json" \  -d '{    "firstName": "Andrea",    "lastName": "Ramos",    "phone": "+51987654321",    "identificationNumber": "45678912",    "identificationType": "DNI",    "entityName": "Comercial Lima SAC",    "entityIdentificationNumber": "45678912",    "gender": "male"  }'
Vacío