Skip to content

Update a customer (VIES re-check if VAT changes)

PATCH
/admin/v1/customers/{id}
curl --request PATCH \
--url https://your-store.example.com/admin/v1/customers/example \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "phone": "example", "vatNumber": "example", "isB2b": true, "taxExempt": true, "acceptsMarketing": true }'
id
required
string
Media type application/json
object
name
Any of:
string
>= 1 characters <= 255 characters
phone
Any of:
string
>= 1 characters <= 64 characters
vatNumber
Any of:
string
>= 1 characters <= 64 characters
isB2b
boolean
taxExempt
boolean
acceptsMarketing
boolean
Example generated
{
"name": "example",
"phone": "example",
"vatNumber": "example",
"isB2b": true,
"taxExempt": true,
"acceptsMarketing": true
}