Import historical revenue records for previously sent messages.
Bulk import up to 1,000 historical revenue records per request. Each record is tied to an existing message and offer. Successfully imported records automatically update the associated ListContact’s denormalized stats:Documentation Index
Fetch the complete documentation index at: https://docs.tracklysms.com/llms.txt
Use this file to discover all available pages before exploring further.
revenue_total, conversion_count, and last_revenue_at.
trk_[32-char-alphanumeric].index (integer) — Position of the failed record in the input array.code (string) — Machine-readable error code.error (string) — Human-readable error description.| HTTP Status | Error Code | Description |
|---|---|---|
| 400 | missing_records | The records field is required and must be a non-empty array. |
| 413 | too_many_records | Exceeded the maximum of 1,000 records per request. |
| 400 | missing_message_id | A record is missing the message_id field. |
| 400 | missing_offer_id | A record is missing the offer_id field. |
| 400 | missing_revenue | A record is missing the revenue field. |
| 404 | message_not_found | No message exists with the given message_id. |
| 404 | offer_not_found | No offer exists with the given offer_id. |
| 404 | contact_not_found | The contact associated with the message could not be found. |
| 500 | save_error | An unexpected error occurred while saving the record. |