Skip to main content
PUT
/
stores
/
{storeId}
/
customers
curl --request PUT \
  --url https://api.getredo.com/v2.2/stores/{storeId}/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jane@example.com",
  "firstName": "Jane",
  "lastName": "Smith",
  "phoneNumber": "+11234567890",
  "location": {
    "street1": "123 Main St",
    "street2": "Suite 12",
    "city": "Seattle",
    "state": "Washington",
    "stateCode": "WA",
    "postalCode": "98101",
    "country": "United States",
    "countryCode": "US",
    "latitude": 47.6062,
    "longitude": -122.3321
  },
  "customFields": {
    "pricing_plan": "com.example.yearly",
    "status": "Active",
    "subscription_source": "web",
    "loyalty_points": 1250,
    "vip_member": true
  }
}
'
{
  "id": "67bd4f1a2e3c8d001a5f9b12",
  "email": "jane@example.com",
  "created": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

storeId
string
required

Store ID

Example:

"64e5a8a1af49a89df37e4ee7"

Body

application/json

Request body for creating or updating a customer profile. The email address is used as the upsert key.

email
string<email>
required

Customer email address. Used as the upsert key to find or create the customer.

firstName
string

Customer first name

lastName
string

Customer last name

phoneNumber
string

Customer phone number in E.164 format (e.g., +12345678900). Appended to the existing phone list if not already present.

Example:

"+12345678900"

location
Customer Location · object

Customer location information.

customFields
object

Custom field values as key-value pairs. Keys are field names and values can be strings, numbers, or booleans. New fields are created automatically if they don't exist yet.

Example:
{
"subscription_source": "web",
"status": "Active",
"loyalty_points": 1250,
"vip_member": true
}

Response

Existing customer updated

Response after creating or updating a customer profile.

id
string
required

Redo customer ID

email
string
required

Customer email address

created
boolean
required

Whether a new customer was created (true) or an existing customer was updated (false).