List

List all account transactions.

Request

GET https://ttv.microworkers.com/api/v2/accounts/me/transactions

Parameters

Query Parameters

Name

Type

Description

pageSize

integer

The maximum number of Transactions to include in the response, used for paging. Default: 10.

sort

string

Results may be sorted by: id, createdAt. Default: -id.

nextPageToken

string

The pagination token used to get the next page of results, set this parameter to the value of “nextPageToken” from the previous response.

filter[createdAt][op]

string

Filter Transactions by creation date operator. Required, if filter[createdAt][value] provided. Allowed values: gt, gte, lt, lte, between.

  • gt - Greater than.

  • gte - Greater than or equal.

  • lt - Less than.

  • lte - Less than or equal.

  • between - In range.

filter[createdAt][value]

string

Filter Transactions by creation date value. Required, if filter[createdAt][op] provided.

  • Value should be in format yyyy-mm-ddThh:mm:ss+00:00 if filter[createdAt][op] is one of gt, gte, lt, lte.

  • Value should be in format yyyy-mm-ddThh:mm:ss+00:00..yyyy-mm-ddThh:mm:ss+00:00 if filter[createdAt][op] is between.

filter[type]

string

Filter Transactions by type. Allowed values: Campaign, Deposit, Earned/Service, Withdrawal.

Response

Response HTTP Codes

Http Code

Response Type

Description

200

TransactionListResponse

OK

401

Unauthorized

Response Body

{
  "items": [
    {
      "id": string,
      "type": string,
      "createdAt": datetime,
      "description": string,
      "amount": float
    }
  ],
  "nextPageToken": string,
  "perPage": integer
}

TransactionListResponse

Property

Type

Description

items

array[TransactionInfoResponse]

List of Transactions.

perPage

integer

The number of items per page.

nextPageToken

string

The pagination token of next page of results.