Tracking & conversions
Manage a link's expiration and sales cap, and track payments made through it.
2 min read
No stats block on the API object
The Link API object does not expose views/conversions/revenue counters. To measure
performance, list payments made through a given link (filter by its id in metadata or
cross-reference in the Dashboard), rather than reading an aggregate stats field.
Link lifecycle
expiry_datedateoptionalThe link refuses payments after this date.
sales_limitintegeroptionalMaximum number of successful payments (1 = single use).
is_archivedbooleanoptionalArchive/unarchive the link.
is_publicbooleanoptionalWhether the link is publicly listed.
GET
https://api.wajub.com/links/{id}curl https://api.wajub.com/links/lnk_01JXXXXXXXXXXXXX \
-H "Authorization: pk.xxxx"Response
{
"status": "OK",
"code": 200,
"link": {
"id": "lnk_01JXXXXXXXXXXXXX",
"type": "product",
"title": "Café Amina",
"url": "https://pay.wajub.com/q/cafe-amina",
"is_archived": false,
"is_public": true
}
}Attribute your channels
Add a ?src=whatsapp parameter to the shared URL: it is preserved in the
payment's metadata.src, allowing you to attribute conversions by channel.