Purchases API

Field Type Description
purchase_id integer  
customer_profile_id integer  
full_name string  
email string  
phone_number string  
zip_code string The customers zip code
total_price_paid integer Total price paid by the customer
transaction_type string Current state of the order. Valid states are completed and cancel
created_at datetime  
tickets array Contains all tickets on the purchase.
tickets.ticket_id integer  
tickets.price_id integer  
tickets.total_amount_paid integer  
tickets.arrived_at datetime Date of last arrival. Note that arrived_at can be cleard if ticket is partout. All arrived_at can be found in ticket_arrivals endpoint.
tickets.seating string  
tickets.barcode string The source of the ticket’s barcode on the PDF-ticket.
tickets.custom_fields array  
tickets.custom_fields.custom_field_name string  
tickets.custom_fields.value string  
tickets.additional_sales array  
tickets.additional_sales.additional_sale_id integer  
tickets.additional_sales.additional_id integer  
tickets.additional_sales.additional_name string  
tickets.additional_sales.debit_total_for_customer integer  
custom_field_values array  
custom_field_values.custom_field_name string  
custom_field_values.value string  

List all purchases for a specific event

GET /event_makers/:event_maker_id/events/:event_id/purchases

Response

Status: 200 OK
[
  {
    "purchase_id": 1545123,
    "customer_profile_id": 56421234,
    "full_name": "John Doe",
    "email": "your@email.com",
    "phone_number": "+4512345678",
    "zip_code": "12323",
    "total_price_paid": 642100,
    "transaction_type": "completed",
    "created_at": "2014-06-21T10:00:00Z",
    "tickets": [
      {
        "ticket_id": 124665,
        "price_id": 765333,
        "total_amount_paid": 80000,
        "seating": "Row 3 Seat 5",
        "barcode": "ABCD1234",
        "custom_fields": [
          {
            "custom_field_name": "Your height",
            "value": "187 cm"
          }
        ],
        "additional_sales": [
          {
            "additional_sale_id": 342946,
            "additional_id": 234673,
            "additional_name": "additional",
            "debit_total_for_customer": 10000
          }
        ]
      },
      {
        "ticket_id": 124666,
        "price_id": 765333,
        "total_amount_paid": 80000,
        "seating": "Row 3 Seat 6",
        "barcode": "12345678",
        "custom_fields": [
          {
            "custom_field_name": "Your height",
            "value": "192 cm"
          }
        ],
        "additional_sales": [
          {
            "additional_sale_id": 342946,
            "additional_id": 234674,
            "additional_name": "additional",
            "debit_total_for_customer": 10000
          }
        ]
      }
    ],
    "custom_field_values": [
      {
        "custom_field_name": "Mode of transport",
        "value": "Car"
      }
    ]
  }
]