cURL
Python
JavaScript
PHP
Go
Java
curl --request GET \
--url https://api.onsleek.io/v1/transactions/ \
--header 'Authorization: Bearer <token>'
{
"data" : [
{
"id" : "4812f869-dd9a-48e2-8dae-1658cb4569bf" ,
"country" : "US" ,
"clickedAt" : "2021-09-01T12:00:00" ,
"soldAt" : "2021-09-01T12:00:00" ,
"updatedAt" : "2021-09-01T12:00:00" ,
"currencyCode" : "USD" ,
"orderValue" : 112.4 ,
"cashback" : 23.14 ,
"activatedAt" : "2021-09-01T12:00:00" ,
"passbackUid" : "your_uid_here" ,
"passbackData" : "your_data_here" ,
"status" : "CONFIRMED" ,
"cashbackOfferId" : "10c39198-ce3f-45ea-a7ae-fab4a2ba936a" ,
"couponId" : "ad2b56ad-3f14-4587-9d2d-88612479e30f" ,
"promotionId" : "efe308d6-63c7-472e-ac8d-5f722322052b"
}
] ,
"cursor" : "21171097-94a2-4ad9-bfe7-6bb84704dd83"
}
View all of the transactions that have occurred from your users.
Transactions occur after a user has activated a deal and made a purchase at a
retailer. You can use this API to view the status of these transactions.
This API call uses your private API key and is not for client side consumption.
How to use
This API should be called on your server side to populate your application with
the latest status of your users transactions. Then, you can display this data to
your users in your application.
You can poll this API periodically to get the latest to transactions. Use the
updatedAtLessThan
and updatedAtGreaterThan
query parameters to filter the
transactions you want to see.
The ID of the next item that will be fetched. Format: UUID RFC 4122
Filter for transactions that were updated before this date time. Format: ISO 8601
Filter for transactions that were updated after this date time. Format: ISO 8601
The unique identifier for the transaction. Format: UUID RFC 4122
The country where the transaction was made. Format: ISO 3166-1 alpha-2 code
The date and time the user clicked on the link. Format: ISO 8601
The date and time the user made the purchase. Format: ISO 8601
The date and time the transaction was last updated. Format: ISO 8601
The currency code of the transaction. Format: ISO 4217
The total value of the order.
The date and time the deal was activated. Format: ISO 8601
The unique identifier that was given during retailer activation.
data. status
Option 1 · enum<string> Option 2 · enum<string> Option 3 · enum<string>
required The status of the transaction.
Available options:
PENDING
The data field that was given during retailer activation.
If the transaction occurred as a result of a cashback offer activation, this field is set to the id
of the cashback offer.
If the transaction occurred as a result of a coupon activation, this field is set to the id
of the coupon.
If the transaction occurred as a result of a promotion activation, this field is set to the id
of the promotion.
The ID of the next item in the list. Defined if there are more items to fetch. Pass this as the cursor
query parameter to fetch the next page. Format: UUID RFC 4122