Sync records with the Warehouse IoT API
The Warehouse IoT API record endpoints use incremental sync. A GET request returns only the records you have not acknowledged yet.
Acknowledge records
- Send a
GETrequest to a record endpoint, for example/genericapi/api/{facilityId}/impact/records. - Store the batch of records in your system.
- Note the highest record ID in the batch.
- Send a
PUTrequest to/genericapi/api/{facilityId}/acknowledge/resultwith that record ID. - Send the next
GETrequest. It starts after the record ID you acknowledged.
Replay records from a date
Send a DELETE request to /genericapi/api/{facilityId}/acknowledge/remove to replay records from a date. Use this when you need to backfill.
| Endpoint | Method | Purpose |
|---|---|---|
/genericapi/api/{facilityId}/acknowledge/result |
PUT |
Confirms receipt and advances the window |
/genericapi/api/{facilityId}/acknowledge/remove |
DELETE |
Replays records from a date |
RECOMMENDED READING
Get started with the Warehouse IoT API