Quantity Deals
Get Quantity Deals
Changed onRetrieves a paginated list of quantity deals.
get/v1/shops/{shopId}/quantity-deals
Request
- Base URLhttps://api.sellauth.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Example response
{
"current_page": 1,
"data": [
{
"id": 1,
"shop_id": 1,
"name": "Bulk Discount",
"product_id": 1,
"variant_id": 1,
"buy_quantity": 5,
"discounted_quantity": 5,
"percentage": "10.00",
"max_uses_per_cart": null,
"priority": 0,
"starts_at": null,
"ends_at": null,
"enabled": true,
"created_at": "2026-11-01T20:00:51.000000Z",
"updated_at": "2026-11-01T20:00:51.000000Z",
"product": {
"id": 1,
"name": "License Keys"
},
"variant": {
"id": 1,
"name": "Standard"
}
}
],
"first_page_url": "http://api.sellauth.test/v1/shops/1/quantity-deals?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://api.sellauth.test/v1/shops/1/quantity-deals?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "http://api.sellauth.test/v1/shops/1/quantity-deals?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": null,
"label": "Next »",
"page": null,
"active": false
}
],
"next_page_url": null,
"path": "http://api.sellauth.test/v1/shops/1/quantity-deals",
"per_page": 20,
"prev_page_url": null,
"to": 1,
"total": 1
}Changes
- breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - info
added the optional property
//to the response with the status
- breaking
- warning
removed the optional property
///from the response with the status
- warning