List referral sessions
Inspect active or expired store referral attribution sessions.
Session identifiers are sensitive attribution tokens. Avoid including them in analytics exports, application logs, or buyer-facing responses.
These endpoints require both affiliate and affiliate:sensitive.
Authorization
bearerAuth storeAuth Provide your SellApp API key as a bearer token.
In: header
Select the SellApp store for this API request.
In: header
Query Parameters
Filter by affiliate ID.
1 <= valueReturn active or expired sessions.
Number of items to return per page.
151 <= value <= 100Page number to return.
11 <= valueResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://sell.app/api/v2/affiliate-referral-sessions"{
"data": [
{
"id": 0,
"session_id": "string",
"affiliate_id": 0,
"affiliate_email": "user@example.com",
"expires_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"links": {
"first": "https://sell.app/api/v1/blacklists?page=1",
"last": "https://sell.app/api/v1/blacklists?page=4",
"prev": null,
"next": "https://sell.app/api/v1/blacklists?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 4,
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"path": "https://sell.app/api/v1/blacklists",
"per_page": 15,
"to": 15,
"total": 57
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}Authorization
bearerAuth storeAuth Provide your SellApp API key as a bearer token.
In: header
Select the SellApp store for this API request.
In: header
Path Parameters
The referralSession path parameter.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://sell.app/api/v2/affiliate-referral-sessions/0"{
"data": {
"id": 0,
"session_id": "string",
"affiliate_id": 0,
"affiliate_email": "user@example.com",
"expires_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"message": "Unauthenticated."
}{
"message": "This action is unauthorized."
}{
"message": "Rule not found."
}{
"message": "The given data was invalid.",
"errors": {
"data": [
"The data field is required."
]
}
}