# Prices The prices resource provides a simple API to retrive price information about wallpaper and canvas products. ## Calculate wallpaper price Calculate price inc VAT of a wallpaper product. The response will contain prices for all available materials. | Parameter | Description | | --------- | -----| -------- | - | `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. | Sample request `curl -X GET 'https://api2.photowall.com/prices/wallpaper?width=100&height=50&territory=SE&dealerurl=ackes'` Sample response ``` { "data": [ { "material": "standard-wallpaper", "material_id": 1, "price": 295 }, { "material": "self-adhesive-wallpaper", "material_id": 2, "price": 445 }, { "material": "premium-wallpaper", "material_id": 4, "price": 325 } ] } ``` ## Calculate canvas price 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 | | --------- | -----| -------- | - | `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/canvas?width=100&height=50&territory=PL` Sample response ``` { "data": [ { "framed": true, "price": 284, "width": 100, "height": 50, }, { "framed": false, "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 } ] } ```