List the person's payments and owned products
Scope: purchases.read.
GET
/v1/me/purchasesAuthorization
AuthorizationBearer token (API Key) · headerrequiredAPI Key for programmatic access (format: insy_xxxxx)
Responses
200Successful response
successbooleanrequiredWhether the request was successful
errorCodestringrequiredThe error code returned by the request
Allowed:
not_foundbad_requestalready_existsunauthorizedforbiddeninternal_server_errorservice_unavailabletimeoutconflictprecondition_failedunprocessable_entitytoo_many_requestsmessagestringrequiredThe message returned by the request
dataV1PurchasesObjectShow propertiesHide properties
paymentsV1PaymentObject[]requiredThe latest 15, newest first.
Show propertiesHide properties
Array of
V1PaymentObjectdatestring<date> | nullrequiredstatusstringrequiredamountV1MoneyObject | anyrequiredShow propertiesHide properties
Any of:
V1MoneyObject
amountCentsnumberrequiredMinor units (cents).
currencystring | nullrequiredany
anyrefundedV1MoneyObject | anyrequiredShow propertiesHide properties
Any of:
V1MoneyObject
amountCentsnumberrequiredMinor units (cents).
currencystring | nullrequiredany
anymethodstringrequireditemV1PurchasedItemObjectrequiredShow propertiesHide properties
typestringrequirednamestringrequiredslugstring | nullrequiredplanstring | nullrequiredreceiptAvailablebooleanrequiredownedProductsV1OwnedProductObject[]requiredShow propertiesHide properties
Array of
V1OwnedProductObjectnamestringrequiredslugstringrequiredcreatorstring | nullrequired400Invalid input (`errorCode: bad_request`, `reason: invalid_input`).
401Missing, invalid or expired access token or API key.
403The token lacks the operation's scope (`reason: insufficient_scope`).
429Per-account rate limit (120/min, 3000/h, shared with `/mcp`); see `Retry-After`.
Try it
Server
Authorization
Request
curl -X GET "https://api.insy.io/v1/me/purchases" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.insy.io/v1/me/purchases", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.insy.io/v1/me/purchases",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"errorCode": "not_found",
"message": "Success",
"data": {
"payments": [
{
"date": "2019-08-24",
"status": "string",
"amount": {
"amountCents": 0,
"currency": "PLN"
},
"refunded": {
"amountCents": 0,
"currency": "PLN"
},
"method": "string",
"item": {
"type": "community",
"name": "string",
"slug": "string",
"plan": "string"
},
"receiptAvailable": true
}
],
"ownedProducts": [
{
"name": "string",
"slug": "string",
"creator": "string"
}
]
}
}Invalid input (`errorCode: bad_request`, `reason: invalid_input`).
Missing, invalid or expired access token or API key.
The token lacks the operation's scope (`reason: insufficient_scope`).
Per-account rate limit (120/min, 3000/h, shared with `/mcp`); see `Retry-After`.