Skip to main content
GET
/
users
/
{user_id}
/
purchases
List purchases for a user
curl --request GET \
  --url https://api.qonversion.io/v4/users/{user_id}/purchases \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.qonversion.io/v4/users/{user_id}/purchases"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.qonversion.io/v4/users/{user_id}/purchases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qonversion.io/v4/users/{user_id}/purchases",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
require 'uri'
require 'net/http'

url = URI("https://api.qonversion.io/v4/users/{user_id}/purchases")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.qonversion.io/v4/users/{user_id}/purchases"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.qonversion.io/v4/users/{user_id}/purchases")
.header("Authorization", "Bearer <token>")
.asString();
{
  "object": "list",
  "url": "/v4/users/user_abc123/purchases",
  "has_more": false,
  "next_cursor": null,
  "data": [
    {
      "object": "purchase",
      "id": "12345",
      "url": "/v4/users/user_abc123/purchases/12345",
      "user_id": "user_abc123",
      "platform": "app_store",
      "product_id": "com.example.monthly",
      "currency": "USD",
      "price": "9.99",
      "purchased_at": "2025-04-01T10:30:00Z",
      "expires_at": "2025-05-01T10:30:00Z",
      "is_auto_renewing": true,
      "store_data": {
        "transaction_id": "2000000123456789",
        "original_transaction_id": "2000000123456789",
        "product_id": "com.example.monthly"
      },
      "created_at": "2025-04-01T10:30:00Z"
    }
  ]
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}
{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}

Authorizations

Authorization
string
header
required

Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.

Path Parameters

user_id
string
required

The user identifier.

Maximum string length: 256

Query Parameters

limit
integer
default:20

Maximum number of purchases to return. Min 1, max 100.

Required range: 1 <= x <= 100
starting_after
string

Cursor for pagination. Pass the id of the last purchase from the previous page to fetch the next page.

filter[platform]
string[]

Filter purchases by platform. Repeat the query parameter to match multiple platforms (OR logic). Example: ?filter[platform]=app_store&filter[platform]=stripe.

Maximum array length: 3

Response

A paginated list of purchases.

object
enum<string>
required
Available options:
list
url
string
required
Example:

"/v4/users/user_abc123/purchases"

data
object[]
required
has_more
boolean
required
next_cursor
string | null

ID to pass as starting_after on the next request. Present only when has_more is true; otherwise null.