Skip to content

Set / update customer email (tenant-scoped)

PATCH
/api/v1/customers/{id}/email
curl --request PATCH \
--url https://api.dokanmazad.com/api/v1/customers/cmoabcde000001ny11aabbcc0/email \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "email": "ahmed@example.com" }'
id
required
string

Customer CUID

Example
cmoabcde000001ny11aabbcc0
Media typeapplication/json
object
email
required

New customer email — normalized to lowercase server-side.

string
Examples
Exampledefault
{
"email": "ahmed@example.com"
}

Success

Media typeapplication/json
object
success
required
boolean
data
required
meta
object
page
integer
limit
integer
total
integer
totalPages
integer
data
required
object
id
required

Customer CUID

string
email
required

Updated email address

string
updatedAt
required

Update timestamp

string format: date-time
Examples
Examplesuccess
{
"success": true,
"data": {
"id": "cmoabcde000001ny11aabbcc0",
"email": "ahmed@example.com",
"updatedAt": "2026-05-12T11:00:00.000Z"
}
}

Unauthorized — missing or invalid API key

Media typeapplication/json
object
success
required
boolean
error
required
string
statusCode
required
integer
Example
{
"success": false
}

Forbidden — route not in this key’s allowedRoutes

Media typeapplication/json
object
success
required
boolean
error
required
string
statusCode
required
integer
Example
{
"success": false
}

Rate limit exceeded

Media typeapplication/json
object
success
required
boolean
error
required
string
statusCode
required
integer
Example
{
"success": false
}
Retry-After
integer

Seconds to wait before retrying