Mythical Platform
Mythical Platform
  • The Mythical Platform API
  • Quick start
    • Authenticate
    • Create a guest player
    • Create an item type
    • Grant an item to a player
    • Update item metadata
    • Use webhooks for real time messages
    • Buy a listed item
  • API Reference
    • Players
    • Item Types
    • Items
    • Marketplace
      • Listings
      • Offers
      • Quick trade
      • Transaction history
      • Exchange rate
    • Webhook management
    • System
Powered by GitBook
On this page
  1. API Reference
  2. Marketplace

Transaction history

PreviousQuick tradeNextExchange rate

Last updated 7 months ago

Search the transaction history of a given player

post

Retrieve a list of transactions that have occurred for a given player. Supports filtering, sorting, and pagination.

Authorizations
Path parameters
playerIdstringRequired

id of the player

Header parameters
x-mythical-environment-idstring · uuidRequired

Identifier for the environment that this request should interact with

Body
cursorstringOptional
limitintegerRequired
Responses
200
A list of offers
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
post
POST /v1/players/{playerId}/transaction-history HTTP/1.1
Host: 
Authorization: Bearer JWT
x-mythical-environment-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 138

{
  "date": {
    "from": 1,
    "to": 1
  },
  "operations": [
    "Listing"
  ],
  "statuses": [
    "Success"
  ],
  "sort": [
    {
      "asc": true,
      "field": "price"
    }
  ],
  "cursor": "text",
  "limit": 1
}
{
  "history": [
    {
      "id": "text",
      "type": "text",
      "objects": [
        {
          "id": "text",
          "image": "text",
          "name": "text",
          "price": {
            "myth": "4.2",
            "usd": "42.5"
          },
          "type": "text"
        }
      ],
      "title": {
        "id": "text",
        "image": "text",
        "name": "text"
      },
      "status": "text",
      "total": {
        "myth": "4.2",
        "usd": "42.5"
      },
      "subtotal": {
        "myth": "4.2",
        "usd": "42.5"
      },
      "gas": {
        "myth": "4.2",
        "usd": "42.5"
      },
      "fee": {
        "myth": "4.2",
        "usd": "42.5"
      },
      "gasCovered": true,
      "exchangeRate": "text",
      "createdAt": 1,
      "updatedAt": 1
    }
  ],
  "cursor": "text"
}