List purchases

Retrieve the purchases of a event by its identifier

GET https://api.eventgoose.com/v1/events/{id}/purchases

Authentication

Authenticate yourself using your organisation api token

Parameters

None

Response

200 application/json

A paginated object is returned with a list of purchase objects.

The results are paginated. Fetching all objects of a resource can be convenient. At the same time, returning too many objects at once can be unpractical from a performance perspective. Doing so might be too much work for the Eventgoose API to generate, or for your website to process.

    HTTP/1.1 200 OK
Content-Type: application/json

{
    "data": [
        {
            "id": "jdynvMDAW3ExQKV9",
            "barcode": 520503697138,
            "available_at": null,
            "slot": null,
            "scanned_at": "2021-03-03T11:40:55.000000Z",
            "created_at": "2020-12-09T09:24:31.000000Z",
        },
        {
            "id": "dP8kGOmG0aMwgmlr",
            "barcode": 146893960369,
            "available_at": null,
            "slot": null,
            "scanned_at": "2021-03-03T11:40:55.000000Z",
            "created_at": "2020-12-09T10:00:35.000000Z",
        },
        {
            "id": "Lenyp2qGleERAQVY",
            "barcode": 195861785879,
            "available_at": null,
            "slot": null,
            "scanned_at": "2021-03-03T11:40:55.000000Z",
            "created_at": "2020-12-09T11:06:21.000000Z",
        },
        {  },
        {  },
    ],
    "links": {
        "first": "https://api.eventgoose.com/v1/events/jdynvMDAW3ExQKwe/purchases?page=1",
        "last": "https://api.eventgoose.com/v1/events/jdynvMDAW3ExQKwe/purchases?page=358",
        "prev": null,
        "next": "https://api.eventgoose.com/v1/events/jdynvMDAW3ExQKwe/purchases?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 358,
        "path": "https://api.eventgoose.com/v1/events/jdynvMDAW3ExQKwe/purchases",
        "per_page": 50,
        "to": 50,
        "total": 17862
    }
}