Skip to main content
Version: v2

Account

Get current user informations

HTTP Request

GET /account

Example

$ curl --request GET --url 'https://app.winesitting.com/api/v2/account' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'

Update current user informations

HTTP Request

PUT /account

Address parameters

NameRequiredTypeDetails
firstnamerequiredstring
lastnamerequiredstring
companyoptionalstring
genderrequiredstringm or f
birthdayrequiredstring
minimum_stockoptionalintegerThe stock below which you want to be alerted (by reference)
emailrequiredstring
email_billingoptionalarrayEmails will be in CC of invoice notifications
email_stockoptionalarrayEmails will be in CC of stock notifications
email_preferencerequiredarrayAn array of email types you do not want to receive (see Enums)
cellar_preferencerequiredarrayThe array of columns you want to hide your web cellar (see Enums)
delivery_slip_preferencerequiredarrayThe array of columns you want to hide your web cellar (see Enums)

Example

$ curl --request PUT --url 'https://app.winesitting.com/api/v2/users' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json' \
--data '
{
"firstname": "Test",
"lastname": "Test",
"company": "WineSitting",
"gender": "m",
"birthday": {
"date": "2009-03-31 00:00:00.000000",
"timezone_type": 3,
"timezone": "Europe/Paris"
},
"email_billing": [
"email@domain.com",
"email2@domain.com"
],
"email_stock": [
"email@domain.com"
],
"minimum_stock": 30,
"email_preference": [
"invoiceValidated"
],
"cellar_preference": [
"potential"
],
"delivery_slip": [
"box",
"comment"
]
},
'