Profile

Get referral transaction history

Changed on

Returns paginated referral transaction history for the authenticated user, ordered by newest first.

get/v1/profile/referral/transaction

Request

  • Base URL
    https://api.getmytg.com
  • URL
    https://api.getmytg.com/v1/profile/referral/transaction
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Query parameters

pageinteger required

Page number.

Example:1
page_sizeinteger required

Number of items per page.

Example:50

Response

Response for status 200

Example response

{
  "items": [
    {
      "amount": {
        "amount": "1.50",
        "currency_code": "USD"
      },
      "balance_before": {
        "amount": "1.50",
        "currency_code": "USD"
      },
      "balance_after": {
        "amount": "1.50",
        "currency_code": "USD"
      }
    }
  ],
  "pagination": {
    "current_page": 1,
    "page_size": 50,
    "total_items": 150,
    "total_pages": 3,
    "has_next": true
  }
}

Changes