Skip to main content
GET
/
transactions
Get user's transaction history
curl --request GET \
  --url https://jamquest-dev.techboo.net/api/v1/transactions \
  --header 'Authorization: Bearer <token>'
{
  "status": "ok",
  "data": {
    "current_page": 123,
    "data": [
      {
        "id": 123,
        "user_id": 123,
        "amount": 123,
        "description": "<string>",
        "transaction_type": "withdrawal",
        "reference_id": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "first_page_url": "<string>",
    "from": 123,
    "last_page": 123,
    "last_page_url": "<string>",
    "links": [
      {
        "url": "<string>",
        "label": "<string>",
        "active": true
      }
    ],
    "next_page_url": "<string>",
    "path": "<string>",
    "per_page": 123,
    "prev_page_url": "<string>",
    "to": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

Access token obtained during login or registration. Use this token in the Authorization header for authenticated requests.

Query Parameters

transaction_type
enum<string>

Filter transactions by type. For DJs: 'withdrawal' or 'credit'. For regular users: 'deposit' or 'debit'. Leave empty to get all transactions

Available options:
withdrawal,
credit,
deposit,
debit
limit
integer
default:15

Number of transactions per page (1-100).

Required range: 1 <= x <= 100
page
integer
default:1

Page number for pagination.

Required range: x >= 1

Response

Successful response

status
string
Example:

"ok"

data
object