PW-567 add the old canvas formula
This commit is contained in:
+37
-3
@@ -43,7 +43,7 @@ Sample response
|
||||
|
||||
## Calculate canvas price
|
||||
|
||||
Calculate price inc VAT of a canvas product. The response will contain information for both framed/not framed canvases.
|
||||
Calculate price inc VAT of a canvas product. The response will contain information for both framed/not framed canvases. Note that width and height parameters may be adjusted if they go over or under the limits that are valid for a canvas. The values that are used in the price-calculation are always returned in the response.
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | -----| -------- | -
|
||||
@@ -63,11 +63,45 @@ Sample response
|
||||
"data": [
|
||||
{
|
||||
"framed": true,
|
||||
"price": 284
|
||||
"price": 284,
|
||||
"width": 100,
|
||||
"height": 50,
|
||||
},
|
||||
{
|
||||
"framed": false,
|
||||
"price": 249
|
||||
"price": 249,
|
||||
"width": 100,
|
||||
"height": 50,
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Calculate "Do it yourself frame" price
|
||||
|
||||
Calculate the price for the "do it yourself frame" (DIY). Note that width and height parameters may be adjusted if they go over or under the limits that are valid for a canvas-frame. The values that are used in the price-calculation are always returned in the response.
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | -----| -------- | -
|
||||
| `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. |
|
||||
|
||||
|
||||
Sample request
|
||||
|
||||
`curl -X GET 'https://api2.photowall.com/prices/diy-frame?width=150&height=150&territory=SE`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"height": 150,
|
||||
"price": 1327,
|
||||
"width": 150
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user