A phone or email decides who can sign in to the account, so only the customer changes them. When you send first_name or last_name without name, the full name is rebuilt from them.
Path parameters
idstringrequired
Request body
namestring
first_namestring
last_namestring
Response
dataobjectrequired
idstringrequired
namestringrequired
first_namestring
last_namestring
phonestring | nullrequired
Phone number in E.164 format, such as +966512345678, or null if it is not a valid number.
emailstring | null (email)required
orders_countintegerrequired
Delivered orders that were not refunded.
total_spentstringrequired
The total of those orders in SAR.
last_order_atstring | null (date-time)
created_atstring (date-time)required
executionobject
Who executed the request: the app, version, installation and store. Field names here are camelCase.
appIdstring (uuid)
versionIdstring (uuid)
installationIdstring (uuid)
storeIdstring (uuid)
requestIdstring (uuid)
generationinteger
routeEpochinteger
appAuthEpochinteger
grantRevisioninteger
metaobjectrequired
request_idstring (uuid)
The request ID; include it in any support request.
Errors
HTTP
Code
Meaning
404
RESOURCE_NOT_FOUND
The ID does not exist in this store.
422
EMPTY_MUTATION
No name was sent.
422
INVALID_TEXT
A name is empty or too long.
422
UNKNOWN_FIELD
Any field other than a name.
403
SCOPE_REQUIRED
The token does not carry the required scope.
503
APPS_SCOPE_RUNTIME_NOT_READY
The resource is not enabled on this merchant's store yet.