Product Customer Prices [API]

Product prices, define the prices per customer per product. Customer prices override prices defined at product prices.

Description List Product Customer Prices
Action GET
URL <your URL here>/api/product_customer_prices
Sample request parameters
{"product_id_eq":12,"customer_id_eq":4603}
		
Sample Successful Response
[{"id":1,"product_id":12,"customer_id":4603,"apply_extra_discounts":false,"price":"50.0","created_at":"2016-09-12T08:08:08.000Z","updated_at":"2016-09-12T08:08:08.000Z"}]
		
Available parameters product_id_eq (product_id), customer_id_eq (customer_id)
Description Create Product Price
Action POST
URL <your URL here>/api/product_customer_prices
Sample request
{"product_customer_price":{"product_id":12,"customer_id":4603,"price":50.0}}
		
Sample Successful Response
{"id":1,"product_id":12,"customer_id":4603,"apply_extra_discounts":false,"price":"50.0","created_at":"2016-09-12T08:08:08.286Z","updated_at":"2016-09-12T08:08:08.286Z"}
		
Required fields product_id, customer_id, price
Description Update Product Price
Action PATCH
URL <your URL here>/api/product_customer_prices/<product customer_price id>
Sample request
{"product_customer_price":{"product_id":12,"customer_id":4603,"price":45.0}}
		
Sample Successful Response Same as create
Required fields product_id, customer_id, price

Still need help? Contact Us Contact Us