Volume discounts allow merchants to purchase a product at a lower price when specific quantities are ordered. This area of the API allows you to manage how that is done.
The following pre-requisites will be necessary to accomplish the goals of this article:
- General understanding of REST and API’s
If you haven’t already done so, you should probably have a development environment ready to development against, complete with Hotcakes installed and configured.
REST API Endpoints for Product Volume Discounts
There are a handful of REST API endpoints that allow you to display or manage various aspects of product volume discounts. Those endpoints are detailed below.
|ProductVolumeDiscountsCreate||ProductVolumeDiscountDTO||Creates a new product volume discount and returns the new product volume discount back to you.|
|ProductVolumeDiscountsDelete||Boolean||Permanently deletes a product volune discount using its ID or Bvin.|
|ProductVolumeDiscountsFind||ProductVolumeDiscountDTO||Finds a single product volume discount by it's ID or Bvin.|
|ProductVolumeDiscountsUpdate||ProductVolumeDiscountDTO||Allows you to update an existing product volume discount and returns a copy of the updated object back to you.|