Delete a shop's banner

DELETE /company/shops/@id/banner

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int The ID of the shop you want to delete the banner for

Example request 1 Delete shop banner

DELETE /company/shops/182/banner HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 1332f19effc90545fbaf13b7792af4b0c68aa7799a55432ceae5c9b2f71c895f97840833976b2564bbb1d7232b275f99928f9302013be84eb38a36c0a7082b7f3b20702db014235f38ac73fd946ffec8783ebdcf7b987af249f7e417b7d416e9bc9a2d27
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Example request 2 Delete shop banner of shop without banner

DELETE /company/shops/183/banner HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 1332f19effc90545fbaf13b7792af4b0c68aa7799a55432ceae5c9b2f71c895f97840833976b2564bbb1d7232b275f99928f9302013be84eb38a36c0a7082b7f3b20702db014235f38ac73fd946ffec8783ebdcf7b987af249f7e417b7d416e9bc9a2d27
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Example response 1 Delete shop banner

HTTP/1.1 204 No Content

Example response 2 Delete shop banner of shop without banner

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Length: 125

{
    "code": "invalid_request",
    "message": "No shop banner set. You can't delete a banner of a shop without a banner."
}
1.5.0 stable