Skip to navigation

Update customer

View as Markdown

Scope: customers:write

Changes only the fields you send; send null to clear one. A customer must keep an email or a phone. Fires customer.updated.

Authentication

AuthorizationBearer

An API token from Settings → API tokens in Fleetwire, sent as Authorization: Bearer …. Each token carries scopes: read for every GET, plus write scopes such as bookings:write.

Path parameters

idstringRequired
Customer ID

Request

Send only the fields to change.
first_namestringOptional<=255 characters
last_namestringOptional<=255 characters
emailstring or nullOptionalformat: "email"<=255 characters

Required when there is no phone (on create).

phonestring or nullOptional10-20 characters

Required when there is no email (on create).

dobdate or nullOptional
Date of birth, before today.
address_1string or nullOptional<=255 characters
address_2string or nullOptional<=255 characters
citystring or nullOptional<=100 characters
statestring or nullOptional<=100 characters
postal_codestring or nullOptional<=20 characters
countrystring or nullOptional<=100 characters

Response

OK
idstringOptional
first_namestringOptional
last_namestringOptional
emailstringOptional
phonestringOptional
dobstringOptional
addressobjectOptional
sourcestringOptional
email_verified_atstringOptional
identity_verified_atstring or nullOptional
bookings_countintegerOptional
total_spent_in_centsintegerOptional
last_trip_endstringOptional
created_atstringOptional
updated_atstringOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error