Skip to main content

Upload sales report

Upload a parsed sales report for a specific date range. Records are upserted by (user_id, date) so re-uploading the same month is safe. If all revenue fields are zero the month is still recorded as covered, so the gaps endpoint stops requesting it.
Request body:

Top-level fields

Report object fields

Response:
If the report contained no revenue data, the response includes "empty": true.

curl example

Error responses


Get sales gaps

Returns months that are missing sales report data so Hoard knows what to backfill.
Looks back to the earliest imported order date, or 24 months, whichever is further. Returns an empty array if no orders have been imported yet. Hoard backfills up to 2 months per sync cycle, oldest first. Response:
Each entry in gaps is the first day of a month that needs sales report data (ISO 8601 date string).

curl example