PW-570 inquiry price calculations
This commit is contained in:
+80
-3
@@ -8,7 +8,7 @@ Calculate price inc VAT of a wallpaper product. The response will contain prices
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | -----| -------- | -
|
||||
| `width` | Wallpaper width in cm e.g `100' |
|
||||
| `width` | Wallpaper width in cm e.g `100` |
|
||||
| `height` | Wallpaper height in cm e.g `50` |
|
||||
| `territory` | Two letter iso code e.g `SE`. Territory 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. |
|
||||
@@ -44,7 +44,7 @@ Calculate price inc VAT of a canvas product. The response will contain informati
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | -----| -------- | -
|
||||
| `width` | Canvas width in cm e.g `100' |
|
||||
| `width` | Canvas width in cm e.g `100` |
|
||||
| `height` | Canvas height in cm e.g `50` |
|
||||
| `territory` | Two letter iso code e.g `SE`. Territory 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. |
|
||||
@@ -81,7 +81,7 @@ Calculate the price for the "do it yourself frame" (DIY). Note that width and he
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | -----| -------- | -
|
||||
| `width` | Canvas width in cm e.g `100'. |
|
||||
| `width` | Canvas width in cm e.g `100` |
|
||||
| `height` | Canvas height in cm e.g `50` |
|
||||
| `territory` | Two letter iso code e.g `SE`. Territory 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. |
|
||||
@@ -102,4 +102,81 @@ Sample response
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Calculate inquiry price
|
||||
|
||||
Calculates the price of an inquiry. For wallpapers inquiries the response will contain price information for all available materials and for canvas it will contain the price for both the framed and the not-framed canvas. The `group` attribute tells which kind of product you are dealing with.
|
||||
The width and height stored on the inquiry will be used in the calculations by default. If you want to override these values you can send in your own width/height parameters in the request.
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | -----| -------- | -
|
||||
| `width` | Width in cm e.g `100`. Defaults to the inquiry stored width |
|
||||
| `height` | Height in cm e.g `50`. Defaults to the inquiry stored height |
|
||||
|
||||
|
||||
Wallpaper inquiry - sample request
|
||||
|
||||
`curl -X GET 'https://api2.photowall.com/prices/inquiry/41015`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"group": "wallpaper",
|
||||
"height": 600,
|
||||
"id": 41015,
|
||||
"prices": [
|
||||
{
|
||||
"inquiry_price": 3595.50219975,
|
||||
"inquiry_price_excl_retouch": 3595.50219975,
|
||||
"inquiry_price_excl_vat": 2876.4017598,
|
||||
"material": "standard-wallpaper",
|
||||
"material_id": 1,
|
||||
"m2_price": 268.72213750000003
|
||||
},
|
||||
{
|
||||
"inquiry_price": 3961.1464912499996,
|
||||
"inquiry_price_excl_retouch": 3961.1464912499996,
|
||||
"inquiry_price_excl_vat": 3168.9171929999998,
|
||||
"material": "premium-wallpaper",
|
||||
"material_id": 4,
|
||||
"m2_price": 296.04981250000003
|
||||
}
|
||||
],
|
||||
"retouch_price": 0,
|
||||
"width": 223
|
||||
}
|
||||
```
|
||||
|
||||
Canvas inquiry - sample request
|
||||
|
||||
`curl -X GET 'https://api2.photowall.com/prices/inquiry/310999?width=500&height=150`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"group": "canvas",
|
||||
"id": 310999,
|
||||
"prices": [
|
||||
{
|
||||
"framed": true,
|
||||
"height": 150,
|
||||
"inquiry_price": 356.25,
|
||||
"inquiry_price_excl_retouch": 356.25,
|
||||
"inquiry_price_excl_vat": 285,
|
||||
"m2_price": 112.887,
|
||||
"width": 150
|
||||
},
|
||||
{
|
||||
"framed": false,
|
||||
"height": 150,
|
||||
"inquiry_price": 846.25,
|
||||
"inquiry_price_excl_retouch": 846.25,
|
||||
"inquiry_price_excl_vat": 677,
|
||||
"m2_price": 112.887,
|
||||
"width": 500
|
||||
}
|
||||
],
|
||||
"retouch_price": 0
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user