Files
api2/docs/prices.md
T

5.3 KiB

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=200&height=200&territory=SE&dealerurl=ackes'

Sample response

{
  "data": [
    {
      "material": "standard-wallpaper",
      "material_id": 1,
      "m2_price": 295,
      "price": 1180
    },
    {
      "material": "premium-wallpaper",
      "material_id": 4,
      "m2_price": 325,
      "price": 1300
    }
  ]
}

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
    }
  ]
}

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
}