Skip to main content

Get an account's activity

Query Parameters
limitstring^\d+$

Maximum number of resources to return, between 1 and 100.


afterstring

A cursor for use in pagination.

after is an object ID that defines your place in the list.

For instance, if you make a list request and receive 100 objects, ending with foo, your subsequent call can include after=foo in order to fetch the next page of the list.

Returns
has_morebooleanrequired

Whether or not there are more elements available after this set. If false, this set comprises the end of the array.


dataarray of objectrequired
  • GET /activity
  • curl 'https://api.lune.co/v1/activity' \
      -H 'Authorization: Bearer <API_KEY>'
  • Response
  • {
      "has_more": true,
      "data": [
        {
          "id": "gh2VDRT4JZqnzPkYxJgALg0GeQDoXlWO3",
          "currency": "GBP",
          "source": "order_paid",
          "balance": "25.50",
          "balance_delta": "-3.50",
          "balance_outstanding": "-132.50",
          "balance_outstanding_delta": "3.50",
          "order_id": "xe1BEV2VZqnzPkYxJgALg0GeQDoXlWO3",
          "created_at": "2019-08-24T14:15:22Z"
        },
        {
          "id": "q9aKx7b6nNXMk3Yv3NpD1mlW5Od2eLZE",
          "currency": "GBP",
          "source": "admin_credit",
          "balance": "29",
          "balance_delta": "29",
          "balance_outstanding": "-136",
          "balance_outstanding_delta": "0",
          "created_at": "2019-08-24T14:15:22Z"
        }
      ]
    }