List inactive customers
GET
Returns customers with no purchase activity for at least inactiveDays days (default 90). Useful for win-back campaigns.
BearerAuthheader
AuthorizationBearer <JWT>inactiveDays?integerDays of inactivity threshold, default 90
Format
int64Default
90X-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
OK
*/*- response
status*stringOutcome of the request: SUCCESS when it worked; errors return an error status with the reason in message.
message*stringShort human-readable message describing the outcome.
data?array<>|Inactive customers, longest-inactive first.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/reports/customer/inactive' \ -H 'X-TenantID: your-tenant-code'Example Response
{ "status": "string", "message": "string", "data": [ { "customerNumber": "string", "customerName": "string", "lastPurchaseDate": "2019-08-24", "daysSinceLastPurchase": 0, "lifetimeSpend": 0 } ]}