Skip to main content

Users

Get current user informations

This endpoint retrieves all basic informations associated to current user.

HTTP Request

GET /v1/users

Example

$ curl --request GET --url 'https://app.winesitting.com/v1/users' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'

Update current user informations

This endpoint lets you update users informations.

HTTP Request

PUT /v1/users

Address parameters

NameRequiredTypeDetails
firstnameoptionalstring
lastnameoptionalstring
companyoptionalstring
genderoptionalstringm or f
birthdayoptionalstring
emailoptionalstring
passwordoptionalstring
email_preferenceoptionalarrayThe array of email types you want to receive
cellar_preferenceoptionalarrayThe array of columns you want to hide your web cellar
email_billingoptionalstringThis email will be in CC of invoice notifications
email_stockoptionalstringThis email will be in CC of stock notifications
minimum_stockoptionalintegerThe stock below which you want to be alerted (by reference)

Example

$ curl --request PUT --url 'https://app.winesitting.com/v1/users' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json' \
--data '
{
"firstname": "Test1",
"email_preference" : [
"invoiceValidated",
"getOutRequestNew",
"getOutRequestReady",
"getOutRequestShipped",
"bottleReceived"
],
"cellar_preference": [
"potential"
]
},
'