Filtering & Sorting
Query parameter reference for filtering, sorting, and including related data.
Last updated
Was this helpful?
Was this helpful?
# Newest first, then by name ascending
curl "https://plan.claret.app/{tenant}/api/v1/supply-plans?sort=-date,quantity" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"curl "https://plan.claret.app/{tenant}/api/v1/sales-data?include=saleType,itemCustomerGroup,uom" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"curl "https://plan.claret.app/{tenant}/api/v1/supply-plans?\
filter[supply_type_name]=Crush&\
filter[date_from]=2026-01-01&\
sort=-date&\
include=supplyType,uom&\
per_page=500" \
-H "Authorization: Bearer {token}" \
-H "Accept: application/json"