PATCH /user
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Pass the following properties via application/json or form encoding in the body of the request.
Information about a user
Field | Type | Description |
---|---|---|
firstname | String | A String value |
lastname | String | A String value |
Email address | ||
telephone | Phone | International phone number |
notifications | UserNotifications | Information about the notifications a user want to receive |
PATCH /user HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.0.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 347
{
"firstname": "...",
"lastname": "...",
"email": "example@domain.com",
"telephone": "+32 475 00 00 00",
"notifications": {
"email_when_order": false,
"email_when_comment": false,
"email_when_order_confirmed": true,
"email_when_order_cancel": true,
"email_when_newsletter": false
}
}
Information about a user
Field | Type | Description |
---|---|---|
firstname | String | A String value |
lastname | String | A String value |
Email address | ||
telephone | Phone | International phone number |
notifications | UserNotifications | Information about the notifications a user want to receive |
id | Int | An integer value |
delivery_address | Address.simple? | Nullable. An address |
company | Checkout.Company? | Nullable. |
bank_account_number | String? | Nullable. A String value |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 819
{
"firstname": "...",
"lastname": "...",
"email": "example@domain.com",
"telephone": "+32 475 00 00 00",
"notifications": {
"email_when_order": true,
"email_when_comment": false,
"email_when_order_confirmed": true,
"email_when_order_cancel": true,
"email_when_newsletter": true
},
"id": 12,
"delivery_address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"company": {
"name": "...",
"vat": "BE0123456789",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"bank_account_number": "..."
}