Endpoints

Store Transaction Endpoint

Endpoint URL

POST https://api.teamgames.io/v3/store/transaction/claim

Headers

HeaderTypeDescription

Authorization

string

Bearer token for API key authentication

Request Body

Request Parameters

ParameterTypeDescription

playerName

string

The name of the player

Response Format

The response is in JSON format and contains an array of Transaction objects.

Transaction Object

FieldTypeDescription

player_name

string

The name of the player

product_id

int

The ID of the purchased product

product_amount

int

The amount of the product purchased

amount_purchased

int

The total amount of products purchased

product_name

string

The name of the purchased product

product_price

double

The price of the purchased product

message

string

A message indicating the status of the transaction

Example Request

curl -X POST \
  'https://teamgames.io/v3/store/transaction/claim' \
  -H "X-API-Key: your_api_key" \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'playerName=player123'

Last updated