Account
Get current user informations
HTTP Request
GET /account
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/api/v2/account' \
--header 'Authorization: Bearer YourBearerToken' \
--header 'content-type: application/json'
{
"firstname": "Test",
"lastname": "Test",
"company": null,
"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",
"getOutRequestNew",
"getOutRequestReady",
"getOutRequestDelivered",
"putawayNew",
"bottleReceived"
],
"cellar_preference": [
"potential"
],
"delivery_slip": [
"box",
"comment"
]
}
Update current user informations
HTTP Request
PUT /account
Address parameters
Name | Required | Type | Details |
---|---|---|---|
firstname | required | string | |
lastname | required | string | |
company | optional | string | |
gender | required | string | m or f |
birthday | required | string | |
minimum_stock | optional | integer | The stock below which you want to be alerted (by reference) |
required | string | ||
email_billing | optional | array | Emails will be in CC of invoice notifications |
email_stock | optional | array | Emails will be in CC of stock notifications |
email_preference | required | array | An array of email types you do not want to receive (see Enums) |
cellar_preference | required | array | The array of columns you want to hide your web cellar (see Enums) |
delivery_slip_preference | required | array | The array of columns you want to hide your web cellar (see Enums) |
Example
- Request
- Response
$ 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"
]
},
'
{
"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"
]
}