P5-7013 Move wallpaperkit price to api (#38)

This commit is contained in:
Niklas Fondberg
2021-03-24 11:44:35 +01:00
committed by GitHub
parent 464e2f1fa6
commit 2b452a573a
4 changed files with 76 additions and 0 deletions
+28
View File
@@ -291,3 +291,31 @@ Sample response
"retouch_price": 0
}
```
## Calculate wallpaper kit price
Calculate the price for a wallpaper kit
| Parameter | Description |
| --------- | ------------|
| `market` | Market id e.g `1` for sweden. Markets affect the price in different ways like VAT, currency exchanges etc. |
| `dealerurl` | Optional parameter e.g `ackes`. Should always be used when calling the api from a dealerstore. If a dealerstore exists with this url additional fees will be applied to the price. |
Sample request
`curl -X GET 'https://api.photowall.com/prices/wallpaper-kit?market=4`
Sample response
```
{
"data": [
{
"price": 166.46999999999997,
"price_excl_vat": 133.176
}
]
}
```