API
Transactions

11. Transactions

To retrieve user transactions you have to execute following query:

query MyTransactions {
  myTransactions {
    data {
      attributes {
        correlationId
        currency
        externalId
        paymentMethod
        provider
        sharePrice
        sharePriceUSD
        shares
        status
        total
        totalUSD
        updatedAt
        createdAt
        project {
          data {
            attributes {
              title
            }
          }
        }
      }
    }
  }
}

Authorization: Bearer ACCESS_TOKEN

Response:

{
  "data": {
    "myTransactions": {
      "data": [
        {
          "attributes": {
            "correlationId": "XYZ",
            "currency": "PLN",
            "externalId": "XYZ",
            "paymentMethod": "CREDIT_CARD",
            "provider": "STRIPE",
            "sharePrice": 4, <--- PRICE IN CURRENCY
            "sharePriceUSD": 1,
            "shares": 11,
            "status": "SUCCESSFUL",
            "total": 44, <--- TOTAL PAID IN CURRENCY
            "totalUSD": 11,
            "updatedAt": "2024-05-25T15:23:07.109Z",
            "createdAt": "2024-05-25T15:23:07.109Z",
            "project": {
              "data": {
                "attributes": {
                  "title": "test"
                }
              }
            }
          }
        }
      ]
    }
  }
}