Skip to main content
PATCH
/
customers
/
{prefix_id}
Update customer
curl --request PATCH \
  --url https://api.crevio.co/v1/customers/{prefix_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer": {
    "email": "jsmith@example.com",
    "name": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "customerType": "lead"
  }
}
'
{
  "id": 123,
  "email": "jsmith@example.com",
  "name": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "customerType": "lead",
  "prefixId": "<string>",
  "ordersCount": 123,
  "totalSpend": 123,
  "tags": [
    {
      "id": 123,
      "name": "<string>"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Path Parameters

prefix_id
string
required

The resource prefix ID

Body

application/json
customer
object
required

Response

Customer updated

id
integer
email
string<email>
name
string
firstName
string
lastName
string | null
customerType
enum<string>
Available options:
lead,
free,
paid
prefixId
string
ordersCount
integer
totalSpend
integer

Total spend in cents

tags
object[]

Tags associated with the customer

createdAt
string<date-time>
updatedAt
string<date-time>