Documentation Index
Fetch the complete documentation index at: https://docs.pureclarity.com/llms.txt
Use this file to discover all available pages before exploring further.
Deltas
In addition to the full feeds PureClarity accepts changes to individual records. Individual records can be added, deleted and existing ones updated. The delta API endpoint allow you to send these updates. Data is sent in the same structure as the full feed references. The following records can be sent as deltas:- Products
- Categories against products
- Account Prices
- Users
Submit delta endpoint
The maximum size of a single delta is 250 Kb. A delta API call can contain multiple updates so long as the total size of the delta is under 250 Kb. The HTTPS POST will reject the delta with an error code if the delta is too large.For product updates the delta will overwrite the product so they must contain the full product information rather than a partial update.
https://<region-domain>/api/delta
| Region | Endpoint |
|---|---|
| EU | sftp-eu-w-1.pureclarity.net |
| US | sftp-us-e-1.pureclarity.net |
DeleteProducts is an array of product identifiers (e.g. Id). Examples of category deltas and DeleteAccountPrice deltas are detailed below..
The request will return a status of 200 if successfully added to the queue of deltas to process, and will return the following JSON object:
Query deltas status endpoint
To query the status of deltas send a HTTPS POST to the following endpoint:https://<region-domain>/api/deltastatus
The body of the request should contain an array of tokens for which the status is required:
| Status | Description |
|---|---|
| 0 | Pending. The delta has not been processed yet. |
| 1 | Success. The delta was applied successfully. |
| 2 | Error. The delta failed. The property “Reason” will indicate why. |
