PATCH /company/shops/@id/user-discounts/@discount_id
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | Shop ID |
discount_id | Int | UserDiscount ID |
Pass the following properties via application/json or form encoding in the body of the request.
Field | Type | Description |
---|---|---|
percent | Int | An integer value |
PATCH /company/shops/17/user-discounts/11 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 21
{
"percent": 13
}
Field | Type | Description |
---|---|---|
percent | Int | An integer value |
user | Dictionary | A dictionary with fields |
id | Int | An integer value |
shop_id | Int | An integer value |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 131
{
"percent": 17,
"user": {
"id": 16,
"email": "example@domain.com"
},
"id": 10,
"shop_id": 18
}