Responses & Limits
How every endpoint formats its responses and errors, the limits on how much you can request, and how to page through long lists.
Response format
Every endpoint returns JSON by default, shaped as { "data": [...] }. Send an Accept: text/csv header to get the same data as a CSV file instead — matching what you'd get from the corresponding export button in the Dashboard.
Errors
Errors are returned as JSON, shaped as { "error": { "message": "..." } }, with a 4xx/5xx status code. When you send Accept: text/csv, the error message comes back as plain text instead.
Rate Limits
All of a vendor's secret keys share one set of limits: 60 requests per minute, 1,000 requests per hour, and 5,000 requests per day. Every response includes headers showing your current status:
X-RateLimit-Limit-Minute: 60
X-RateLimit-Remaining-Minute: 59
X-RateLimit-Reset-Minute: 1690000000
X-RateLimit-Limit-Hour: 1000
X-RateLimit-Remaining-Hour: 999
X-RateLimit-Reset-Hour: 1690000000
X-RateLimit-Limit-Day: 5000
X-RateLimit-Remaining-Day: 4999
X-RateLimit-Reset-Day: 1690000000
X-RateLimit-Reset-* is a Unix timestamp (seconds) for when that window resets. Exceeding any limit returns a 429 (in the standard { "error": { "message": "..." } } shape) with a Retry-After header giving the number of seconds to wait before retrying.
Read limits
The records your requests read are limited too: 200,000 per hour and 1,000,000 per day, shared by all of a vendor's secret keys. Every record a list endpoint returns counts as one read, and its X-Total-Count adds one more per 1,000 matching records. A single page endpoint that summarizes records, like GET /items/tag-counts, reads every record it summarizes. Every response shows what's left:
X-ReadLimit-Limit-Hour: 200000
X-ReadLimit-Remaining-Hour: 158426
X-ReadLimit-Reset-Hour: 1690000000
X-ReadLimit-Limit-Day: 1000000
X-ReadLimit-Remaining-Day: 958426
X-ReadLimit-Reset-Day: 1690000000
Once a limit is reached, requests return a 429 with a Retry-After header until its window resets. The request that reaches it still gets its full page.
To keep a copy of your data in sync, don't page through every record each time. Pull everything once, then ask only for what changed since your last pull, with range=Updated&startMsec=<when your previous pull started, in milliseconds>. That works on GET /items, GET /customers, GET /orders, GET /line-items, GET /invoices, GET /credit-memos and GET /users, sorts the records changed in that range newest first, and ignores every other filter.
Use the time your previous pull started, not when it finished: a record that changes while you page moves ahead of your cursor, and starting from the previous start picks it up on the next pull.
Deleted records never show up as changed. For line items, ask GET /line-items/deleted with the same startMsec and remove the line items it lists from your copy. It keeps deletions for 30 days, so you only need to pull every line item again if your last pull is older than that. For everything else, pull everything at most once a day to remove deleted records.
Pagination
Endpoints marked list in Endpoints cap out at 10,000 records per response. If there's another page, the response includes a Link header (per RFC 8288):
Link: <https://dash.propcart.com/api/v1/vendors/{vendorId}/items?cursor=...>; rel="next"
It's a full URL on your region's base URL, with your filters and a cursor for the next page. Request it as it is, with the same Authorization (and Accept, if you're requesting CSV) headers, to get the next page. Keep following Link headers until a response doesn't include one — that's the last page. Endpoints marked single page always return everything in one response and never paginate.
In addition to the Link header, every list response includes:
| Header | Description |
|---|---|
X-Total-Count | Total document count matching your filters, across all pages. |
X-Total-Pages | Total number of pages at the current page size. |
X-Result-Count | Number of documents in this specific response. |
On GET /items/bundles and GET /customers/contacts, X-Total-Count and X-Total-Pages count items and accounts, while X-Result-Count counts the rows returned: a package plus its components, or each account's contacts.