Get Purchases
GET
/api/v1/purchases
limitintegerLimit the number of results returned
order_bystringOrder by
customer_identifiers[sparklayer]string<p>Filter by customer_identifiers[sparklayer]. Accepts comma-separated values. Maximum total length of all values is 2000 characters.</p>
customer_identifiers[sparklayer_impersonator]string<p>Filter by customer_identifiers[sparklayer_impersonator]. Accepts comma-separated values. Maximum total length of all values is 2000 characters.</p>
customer_identifiers[sparklayer_sales_rep]string<p>Filter by customer_identifiers[sparklayer_sales_rep]. Accepts comma-separated values. Maximum total length of all values is 2000 characters.</p>
customer_identifiers[sparklayer_impersonator_assignee]string<p>Filter by customer_identifiers[sparklayer_impersonator_assignee]. Accepts comma-separated values. Maximum total length of all values is 2000 characters. To get purchases that have no assignee, include a string value of 'NULL'.</p>
company[id]string<p>Filter by company[id]. Accepts comma-separated values. Maximum total length of all values is 2000 characters. Use this rather than listing every section id to report on a whole company.</p>
company[section_id]string<p>Filter by company[section_id]. Accepts comma-separated values. Maximum total length of all values is 2000 characters.</p>
statusstringFilter by status
typestringFilter by type
searchstringSearch Term
dates[last_updated][lte]string<p>Filter by dates[last_updated][lte]</p>
dates[last_updated][gte]string<p>Filter by dates[last_updated][gte]</p>
dates[placed][lte]string<p>Filter by dates[placed][lte]</p>
dates[placed][gte]string<p>Filter by dates[placed][gte]</p>
dates[submitted][lte]string<p>Filter by dates[submitted][lte]</p>
dates[submitted][gte]string<p>Filter by dates[submitted][gte]</p>
dates[shipping_requested][lte]string<p>Filter by dates[shipping_requested][lte]</p>
dates[shipping_requested][gte]string<p>Filter by dates[shipping_requested][gte]</p>
acceptstringGenerated from available response content types
Site-IdstringSpark Layer Site ID
200
500Error Response
curl --request GET \
--url /api/v1/purchases \
--header 'accept: application/json' \
--header 'site-id: jones-climbing'