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/1419/banner HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 3388d02155692116441bcd364e3db51db9ef91b767ad91243c9e7047e0de243e242f25ef3eeb189e24c00295060345ba7a4ebab4be3bc3994d7872cc6b2c80283e66f2cf0734ad84d4a35317065eed9e5a2f916f3306a7af2be9c86203c0c0af75f23e03
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/1420/banner HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 3388d02155692116441bcd364e3db51db9ef91b767ad91243c9e7047e0de243e242f25ef3eeb189e24c00295060345ba7a4ebab4be3bc3994d7872cc6b2c80283e66f2cf0734ad84d4a35317065eed9e5a2f916f3306a7af2be9c86203c0c0af75f23e03
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