Skip to main content
PATCH
/
customer
curl --request PATCH \
  --url https://api.example.com/customer \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "cust_12345",
  "email": "[email protected]",
  "phone": "+41799876543"
}
'
{
"id": "cust_12345",
"createdAt": "2023-08-15T14:30:00Z",
"paymentMethods": [
{
"id": "pm_123",
"type": "card",
"last4": "4242",
"isActive": true,
"customerId": "cust_123"
}
],
"locationIds": [
"loc_123",
"loc_456"
],
"updatedAt": "2023-08-15T15:45:00Z",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"phone": "+41791234567",
"whatsappNumber": "+41791234567",
"stripeId": "cus_abc123",
"hubriseId": "hrcu_123",
"address": {
"address": "123 Main St",
"address2": "Apt 1",
"postalCode": "12345",
"city": "New York",
"country": "United States",
"latitude": 40.7128,
"longitude": -74.006
}
}

Body

application/json

Customer data to update

The body is of type object.

Response

Customer updated successfully

id
string
required

Unique customer ID

Example:

"cust_12345"

createdAt
string<date-time>
required

Creation date

Example:

"2023-08-15T14:30:00Z"

paymentMethods
object[]
required

Payment methods

locationIds
string[]
required

Location IDs

Example:
["loc_123", "loc_456"]
updatedAt
string<date-time>

Update date

Example:

"2023-08-15T15:45:00Z"

firstName
string

First name

Example:

"John"

lastName
string

Last name

Example:

"Doe"

email
string

Email address

phone
string

Phone number

Example:

"+41791234567"

whatsappNumber
string

WhatsApp number

Example:

"+41791234567"

stripeId
string

Stripe customer ID

Example:

"cus_abc123"

hubriseId
string

Hubrise customer ID

Example:

"hrcu_123"

address
object

Default delivery address