Link Stats
/admin/links/statsEvery link of the store, archived ones included, with what visitors' arrivals on it in clickedBetween did. clicks counts arrivals, one visitor's less than a minute apart once; uniqueClicks counts visitors. A visitor's arrivals on a link over one UTC day count in the window that holds the last of them. attributedOrders counts the completed orders those arrivals earned: an order is credited to its visitor's last arrival on any of the store's links in the 30 days before it, so one order counts for one link only, and it may complete up to 30 days after the window ends. It counts orders, not their revenue.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/admin/links/stats" \ -H "Content-Type: application/json" \ -d '{ "clickedBetween": { "from": "string", "to": "string" } }'[ { "link": { "id": "string", "storeId": "string", "affiliateId": "string", "code": "string", "destinationPath": "string", "createdAt": "string", "updatedAt": "string", "archivedAt": "string" }, "clicks": -9007199254740991, "uniqueClicks": -9007199254740991, "attributedOrders": -9007199254740991 }]Create Link POST
A new link of an affiliate. Its code is case-sensitive and stays taken in the store for good, archived links included. A link is shared on the store's own domain as /r/<code>, and as /r/<code>?to=<destinationPath>, URL-encoded, when its destination is not /: a visitor lands on the page the URL names, or on / when it names none, whatever the link's destinationPath.
List Affiliates GET
Next Page
