diff --git a/api/resources/prices.py b/api/resources/prices.py index 3407716..ff3b984 100644 --- a/api/resources/prices.py +++ b/api/resources/prices.py @@ -36,7 +36,7 @@ def wallpaper(): data.append({ 'material': material.name, 'material_id': material.id, - 'material_price': m2_price(material, market, reseller=reseller, inc_vat=True), + 'm2_price': m2_price(material, market, reseller=reseller, inc_vat=True), 'price': wallpaper_price(width, height, material, market, reseller=reseller), }) diff --git a/docs/prices.md b/docs/prices.md index 33b5f78..ddcce80 100644 --- a/docs/prices.md +++ b/docs/prices.md @@ -25,13 +25,13 @@ Sample response { "material": "standard-wallpaper", "material_id": 1, - "material_price": 295, + "m2_price": 295, "price": 1180 }, { "material": "premium-wallpaper", "material_id": 4, - "material_price": 325, + "m2_price": 325, "price": 1300 } ]