teamgames
  • Welcome
    • Introduction to TeamGames
  • Pre-installation
    • Authentication
    • Supported Games
  • STORE API
    • Java Overview
    • Endpoints
  • VOTE API
    • Java Overview
    • Endpoints
  • LEADERBOARD API
    • Java Overview
    • Endpoints
  • Toplist (Non API)
    • Callback
  • Debugging
    • FAQ
  • Contributors
    • Contributions
  • Support Channels
    • Community Discord
Powered by GitBook
On this page
  • Store Transaction Endpoint
  • Endpoint URL
  • Headers
  • Request Parameters
  • Response Format
  • Example Request

Was this helpful?

  1. STORE API

Endpoints

Store Transaction Endpoint

Endpoint URL

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

Headers

Header
Type
Description

Authorization

string

Bearer token for API key authentication

Request Body

Request Parameters

Parameter
Type
Description

playerName

string

The name of the player

Response Format

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

Transaction Object

Field
Type
Description

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'
PreviousJava OverviewNextJava Overview

Last updated 1 year ago

Was this helpful?