Remove old routes and code (#52)
This commit is contained in:
-164
@@ -43,114 +43,6 @@ Sample response
|
||||
}
|
||||
```
|
||||
|
||||
## 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` |
|
||||
| `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. |
|
||||
| `product` | Optional parameter e.g `43894`. If a product with this id exists the api will calculate the price for the given product. |
|
||||
|
||||
|
||||
Sample request
|
||||
|
||||
`curl -X GET 'https://api.photowall.com/prices/canvas?width=100&height=50&market=14`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"framed": true,
|
||||
"height": 50,
|
||||
"m2_price": 252.37137599999997,
|
||||
"m2_price_excl_vat": 201.89710079999998,
|
||||
"price": 224.92771680815997,
|
||||
"price_excl_vat": 179.942173446528,
|
||||
"width": 100
|
||||
},
|
||||
{
|
||||
"framed": false,
|
||||
"height": 50,
|
||||
"m2_price": 252.37137599999997,
|
||||
"m2_price_excl_vat": 201.89710079999998,
|
||||
"price": 126.18568799999998,
|
||||
"price_excl_vat": 100.94855039999999,
|
||||
"width": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Calculate poster price
|
||||
|
||||
Calculate price inc VAT of a poster product. The response will contain prices for both with and without hanger.
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | ------------|
|
||||
| `width` | Poster width in cm e.g `100` |
|
||||
| `height` | Poster height in cm e.g `50` |
|
||||
| `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. |
|
||||
| `product` | Optional parameter e.g `43894`. If a product with this id exists the api will calculate the price for the given product. |
|
||||
|
||||
Sample request
|
||||
|
||||
`curl -X GET 'https://api.photowall.com/prices/poster?width=50&height=30&market=1&product=46654`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"hanger": true,
|
||||
"height": 30,
|
||||
"price": 401.03000000000003,
|
||||
"price_excl_vat": 320.824,
|
||||
"width": 50
|
||||
},
|
||||
{
|
||||
"hanger": false,
|
||||
"height": 30,
|
||||
"price": 199.92000000000002,
|
||||
"price_excl_vat": 159.936,
|
||||
"width": 50
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Calculate framed print price
|
||||
|
||||
Calculate price inc VAT of a framed print product.
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | ------------|
|
||||
| `sku` | Pwinty SKU number |
|
||||
| `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. |
|
||||
| `product` | Optional parameter e.g `43894`. If a product with this id exists the api will calculate the price for the given product. |
|
||||
|
||||
Sample request
|
||||
|
||||
`curl -X GET 'https://api.photowall.com/prices/framed-print?sku=GLOBAL-CFP-12x12&market=1`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"price": 557.5,
|
||||
"price_excl_vat": 446.0,
|
||||
"sku": "GLOBAL-CFP-12x12"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Calculate external product price
|
||||
|
||||
@@ -179,62 +71,6 @@ Sample response
|
||||
}
|
||||
```
|
||||
|
||||
## 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` |
|
||||
| `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/diy-frame?width=150&height=150&market=1`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"height": 150,
|
||||
"price": 1327,
|
||||
"width": 150
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Calculate Poster hanger price
|
||||
|
||||
Calculate the price for a poster hanger
|
||||
|
||||
| Parameter | Description |
|
||||
| --------- | ------------|
|
||||
| `width` | Poster hanger width in cm e.g `100` |
|
||||
| `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/poster-hanger?width=50&market=1`
|
||||
|
||||
Sample response
|
||||
```
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"price": 231.5,
|
||||
"price_excl_vat": 185.2,
|
||||
"width": 50
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Calculate inquiry price
|
||||
|
||||
|
||||
Reference in New Issue
Block a user