Skip to main content
PUT
/
api
/
customers
/
{id}
Update an existing customer
curl --request PUT \
  --url https://api.example.com/api/customers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "CID": "<string>",
  "name": "<string>",
  "email": "<string>",
  "marketing_opt_in_at": "2023-11-07T05:31:56Z"
}
'
{
  "message": "<string>",
  "data": {
    "id": 123,
    "company_id": 123,
    "CID": "<string>",
    "name": "<string>",
    "email": "<string>",
    "number_range_id": 123,
    "marketing_opt_in_at": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter your JWT token in the format 'Bearer '

Path Parameters

id
integer
required

Customer ID

Body

application/json
CID
string
name
string
email
string
marketing_opt_in_at
string<date-time> | null

Datetime when the customer opted in to marketing. Null if not opted in.

Response

Customer updated successfully

message
string
data
object