PUT
/
shoppers
/
{id}
cURL
curl --request PUT \
  --url https://api.daraa.io/shoppers/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "firstName": "<string>",
  "lastName": "<string>",
  "phone": "<string>",
  "address": {
    "name": "<string>",
    "street1": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "country": "<string>"
  },
  "preferences": {}
}'
{
  "id": "<string>",
  "email": "jsmith@example.com",
  "firstName": "<string>",
  "lastName": "<string>",
  "phone": "<string>",
  "address": {
    "name": "<string>",
    "street1": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "country": "<string>"
  },
  "preferences": {},
  "loyaltyPoints": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string
required

Body

application/json
email
string<email>
required
firstName
string
required
lastName
string
required
phone
string
address
object
preferences
object

Response

200 - application/json

Ok

id
string
required

Unique identifier for the shopper

email
string<email>
required

Shopper's email address

firstName
string
required

Shopper's first name

lastName
string
required

Shopper's last name

phone
string

Shopper's phone number

address
object
preferences
object

Shopper's preferences and settings

loyaltyPoints
number

Shopper's loyalty points balance

createdAt
string<date-time>

Account creation timestamp

updatedAt
string<date-time>

Last update timestamp