Update my profile (VIES re-check if VAT changes)
PATCH
/store/v1/customers/me
const url = 'https://your-store.example.com/store/v1/customers/me';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","phone":"example","vatNumber":"example","acceptsMarketing":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://your-store.example.com/store/v1/customers/me \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "phone": "example", "vatNumber": "example", "acceptsMarketing": true }'