Monetary amounts are integers in the currency's minor units (cents for
USD). An amount of 899 with currency USD is $8.99.
Transactions
List and retrieve purchases, renewals, and refunds.
A transaction is a single monetary event validated by CashSDK — an initial purchase, a subscription renewal, or a refund. Transactions are created automatically as receipts are validated and store notifications arrive; this API is read-only.
The transaction object#
idstringUnique identifier, prefixed with txn_.
app_user_idstringThe customer this transaction belongs to.
product_idstringThe product that was purchased or renewed.
amountintegerAmount in the currency's minor units (cents).
currencystringISO 4217 currency code, e.g. USD.
typestringOne of purchase, renewal, or refund.
storestringThe source store, e.g. app_store or play_store.
created_atstringISO 8601 timestamp of the transaction.
List transactions#
GET /v1/apps/{app}/transactions
Returns the app's transactions, newest first. Supports limit and cursor
pagination.
appstringrequiredThe app ID.
app_user_idstringFilter to a single customer's transactions.
typestringFilter by type: purchase, renewal, or refund.
limitintegerPage size, up to 100.
cursorstringCursor from the previous page's next_cursor.
curl "https://api.cashsdk.com/v1/apps/app_2mK4pQ/transactions?app_user_id=u_812" \
-H "Authorization: Bearer csk_sk_..."
{
"data": [
{
"id": "txn_9f2a1c",
"app_user_id": "u_812",
"product_id": "pro_monthly",
"amount": 899,
"currency": "USD",
"type": "purchase",
"store": "app_store",
"created_at": "2026-07-17T18:24:05Z"
}
],
"has_more": false,
"next_cursor": null
}
Retrieve a transaction#
GET /v1/apps/{app}/transactions/{id}
appstringrequiredThe app ID.
idstringrequiredThe transaction ID, e.g. txn_9f2a1c.
curl https://api.cashsdk.com/v1/apps/app_2mK4pQ/transactions/txn_9f2a1c \
-H "Authorization: Bearer csk_sk_..."
{
"id": "txn_9f2a1c",
"app_user_id": "u_812",
"product_id": "pro_monthly",
"amount": 899,
"currency": "USD",
"type": "purchase",
"store": "app_store",
"created_at": "2026-07-17T18:24:05Z"
}