Skip to main content
GET
/
purchases
List User Game Item Purchases
curl --request GET \
  --url https://api.dontdie.com/purchases \
  --header 'Authorization: Bearer <token>' \
  --header 'x-dd-client-id: <api-key>'
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "userId": "123e4567-e89b-12d3-a456-426614174000",
    "gameItemId": "streak-freeze",
    "quantity": 1,
    "price": 100,
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z"
  }
]

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format: Bearer

x-dd-client-id
string
header
required

Your API client ID for the request

Query Parameters

limit
integer
default:10

The maximum number of purchases to return (default: 10)

Required range: x >= 1
offset
integer
default:0

The number of purchases to skip (default: 0)

Required range: x >= 0

Response

OK

id
string

The ID of the purchase

Example:

"123e4567-e89b-12d3-a456-426614174000"

userId
string

The ID of the user who made the purchase

Example:

"123e4567-e89b-12d3-a456-426614174000"

gameItemId
string

The ID of the game item that was purchased

Example:

"streak-freeze"

quantity
integer

The quantity of items purchased

Example:

1

price
number

The price paid for the purchase (in credits or currency)

Example:

100

createdAt
string<date-time>

The date and time when the purchase was made

Example:

"2024-01-15T10:30:00Z"

updatedAt
string<date-time>

The date and time when the purchase was last updated

Example:

"2024-01-15T10:30:00Z"