Get purchase recommendations for a customer
Returns a customer's most recent sales (up to limit, default 5, max 50) with their count and total, plus the items they buy most, ranked by quantity. Identify the customer by customerNumber or by storeId (a customer store on a route); one of them is required. The count and spend cover only the recent sales returned, not the full history.
BearerAuthAuthorizationBearer <JWT>customerNumber?stringCRM customer number (customerNumber or storeId required)
storeId?integercustomer_stores.id (customerNumber or storeId required) — needed for route visits, which rarely carry a real CRM customerNumber
int64limit?integerHow many recent sales and recommended items to return. Default 5, maximum 50; must be above zero.
int325OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request was handled, ERROR otherwise.
message*stringShort human-readable message describing the outcome, e.g. which record was fetched or saved.
data?The customer's recent buying and suggested items.
curl -X GET 'https://beta.iotoms.com/api/v1/transaction/transactions/recommendations'{ "status": "string", "message": "string", "data": { "customerNumber": "string", "transactionCount": 0, "totalSpend": 0, "recentPurchases": [ { "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc", "invoiceNumber": "string", "businessDate": "2019-08-24", "amount": 0 } ], "recommendations": [ { "itemId": "string", "quantity": 0, "frequency": 0 } ] }}