Return all the paymentaccounts for a site

GET /ext/{siteid}/api/v1/payments/accounts

Accepts the format ?page=1&per_page=10&search=&fromdate=&todate=
date should be DD-MM-YYYY format

Responses

GET /ext/{siteid}/api/v1/payments/accounts
curl \
 -X GET https://api.spotipo.com/ext/{siteid}/api/v1/payments/accounts \
 -H "Authentication-Token: $API_KEY"
Response example (200)
{
  "metadata": {
    "page": 42,
    "per_page": 42,
    "total_count": 42,
    "page_count": 42,
    "links": []
  },
  "items": [
    {
      "id": 42,
      "endtime": {},
      "firstname": "string",
      "status": {},
      "auths": [
        {
          "id": 42,
          "type": "string",
          "data_used": "string",
          "hostname": {},
          "devicedata": {},
          "online": {},
          "last_seen_at": {},
          "time_used": "string",
          "mac": {}
        }
      ],
      "lastname": "string",
      "phonenumber": "string",
      "recurringpayments": [
        {
          "id": 42,
          "next_payment_on": "2023-05-04T09:42:00+00:00",
          "recurring_freq": "string",
          "active": true,
          "next_charge_currency": {},
          "next_charge_amount": {},
          "last_paid_on": "2023-05-04T09:42:00+00:00"
        }
      ],
      "transactions": [
        {
          "id": 42,
          "starttime": {},
          "endtime": {},
          "status": {},
          "comments": "string",
          "amount": "string",
          "email": "string",
          "name": {},
          "num_devices": 42
        }
      ],
      "email": "string",
      "starttime": {}
    }
  ]
}