---
agentTools:
  projectIndex: https://hxroapi.readme.io/llms.txt
---

# /api/Transactions/by-user - GET

Returns all transaction information for the user

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Hxro Identity Api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://identity.hxro.io"
    }
  ],
  "paths": {
    "/api/Transactions/by-user": {
      "get": {
        "tags": [
          "Transactions"
        ],
        "summary": "/api/Transactions/by-user - GET",
        "operationId": "get-api-transactions-by-user",
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Format - int32.",
            "schema": {
              "type": "integer",
              "default": 100
            }
          },
          {
            "name": "skip",
            "in": "query",
            "description": "Format - int32.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTransactionsBy-userGet200TextPlainResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTransactionsBy-userGet200ApplicationJsonResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiTransactionsBy-userGet200TextJsonResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClaimsIdentity": {
        "type": "object",
        "properties": {
          "authenticationType": {
            "type": "string",
            "readOnly": true
          },
          "isAuthenticated": {
            "type": "boolean",
            "readOnly": true
          },
          "actor": {
            "$ref": "#/components/schemas/ClaimsIdentity"
          },
          "bootstrapContext": {
            "type": "object"
          },
          "claims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Claim"
            },
            "readOnly": true
          },
          "label": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "readOnly": true
          },
          "nameClaimType": {
            "type": "string",
            "readOnly": true
          },
          "roleClaimType": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Claim": {
        "type": "object",
        "properties": {
          "issuer": {
            "type": "string",
            "readOnly": true
          },
          "originalIssuer": {
            "type": "string",
            "readOnly": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "readOnly": true
          },
          "subject": {
            "$ref": "#/components/schemas/ClaimsIdentity"
          },
          "type": {
            "type": "string",
            "readOnly": true
          },
          "value": {
            "type": "string",
            "readOnly": true
          },
          "valueType": {
            "type": "string",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CustomerWalletViewModel": {
        "required": [
          "address",
          "assetType",
          "nickname"
        ],
        "type": "object",
        "properties": {
          "applicationUserId": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "assetType": {
            "enum": [
              "HXRO",
              "ETH",
              "BTC"
            ],
            "type": "string"
          },
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContestIdTypeViewModel": {
        "required": [
          "contestType",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "contestType": {
            "enum": [
              "Portfolio",
              "OverUnder"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PreferencesViewModel": {
        "type": "object",
        "properties": {
          "recentTransactionIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "recentContestIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "recentUserIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "recentContestSeriesIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContestIdTypeViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "ApiSubscriptionTokenViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UserViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "twoFactorEnabled": {
            "type": "boolean"
          },
          "token": {
            "type": "string"
          },
          "refreshToken": {
            "type": "string"
          },
          "claims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Claim"
            }
          },
          "lastLoginDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lockoutEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountViewModel"
            }
          },
          "customerWallets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerWalletViewModel"
            }
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "preferences": {
            "$ref": "#/components/schemas/PreferencesViewModel"
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time"
          },
          "isInternal": {
            "type": "boolean"
          },
          "subscriptionKeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiSubscriptionTokenViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "AccountViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "nickname": {
            "type": "string"
          },
          "walletPublicAddress": {
            "type": "string"
          },
          "lastWalletReconciliation": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "pendingWithdrawals": {
            "type": "number",
            "format": "double"
          },
          "balance": {
            "type": "number",
            "format": "double"
          },
          "assetType": {
            "enum": [
              "HXRO",
              "ETH",
              "BTC"
            ],
            "type": "string"
          },
          "accountType": {
            "enum": [
              "Player",
              "Bonus",
              "Winnings"
            ],
            "type": "string"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "applicationUserId": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "gamesUntilUnlock": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          }
        },
        "additionalProperties": {
          "type": "object"
        }
      },
      "TransactionViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "hxroAccountId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "assetType": {
            "enum": [
              "HXRO",
              "ETH",
              "BTC"
            ],
            "type": "string"
          },
          "transactionType": {
            "enum": [
              "Deposit",
              "Withdrawal",
              "Payout",
              "Payment",
              "Credit",
              "Bonus",
              "Transfer"
            ],
            "type": "string"
          },
          "transactionDate": {
            "type": "string",
            "format": "date-time"
          },
          "account": {
            "$ref": "#/components/schemas/AccountViewModel"
          },
          "walletTransactionId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ApiTransactionsBy-userGet200TextPlainResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/TransactionViewModel"
        }
      },
      "ApiTransactionsBy-userGet200ApplicationJsonResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/TransactionViewModel"
        }
      },
      "ApiTransactionsBy-userGet200TextJsonResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/TransactionViewModel"
        }
      }
    },
    "securitySchemes": {
      "apiKeyHeader": {
        "type": "apiKey",
        "name": "Ocp-Apim-Subscription-Key",
        "in": "header"
      },
      "apiKeyQuery": {
        "type": "apiKey",
        "name": "subscription-key",
        "in": "query"
      }
    }
  },
  "security": [
    {
      "apiKeyHeader": []
    },
    {
      "apiKeyQuery": []
    }
  ],
  "x-explorer-enabled": true,
  "x-proxy-enabled": true,
  "x-samples-enabled": true,
  "x-samples-languages": [
    "curl",
    "node",
    "ruby",
    "javascript",
    "python"
  ],
  "_id": {
    "buffer": {
      "0": 95,
      "1": 95,
      "2": 177,
      "3": 7,
      "4": 28,
      "5": 173,
      "6": 15,
      "7": 0,
      "8": 94,
      "9": 5,
      "10": 121,
      "11": 3
    }
  }
}
```