Export API
Tickets
1min
code examples curl location 'https //tnapi ticketpay de/exports/tickets' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //tnapi ticketpay de/exports/tickets", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //tnapi ticketpay de/exports/tickets") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //tnapi ticketpay de/exports/tickets" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // response for get tickets { "total" 157, "page" 1, "size" 157, "data" \[ { "id" 6256520, "valid from" "2023 07 28t20 00 00+02 00", "valid until" "2023 07 28t22 00 00+02 00", "status" "approved", "shop id" 14669, "created iso" "2022 02 26t19 29 42+01 00", "updated iso" "2022 02 26t19 29 43+01 00", "event id" 78001, "age" 29, "barcode value" "992lfu8hb", "birthday" "05 12 1999", "channel" "shop", "checked in" false, "checked out" false, "city" "hamm", "country" "de", "firstname" "max", "lastname" "mustermann", "gender" "m", "has questions" true, "mail" "example\@ticketpay de", "matching id" 1548851, "matching required" true, "newsletter" true, "order information" "max mustrmann,neue bahnhofstr 1 3,de 59065 hamm", "original price" 119, "paid" true, "personalization due" "2023 07 28t20 00 00+02 00", "personalize" true, "personalize status" "not necessary", "price" 100, "phone" 238112345678, "qrcode value" "992lfu8hb", "questions answered" false, "questions count" 0, "seat" "reihe 2 sitz 15", "source item id" 11708, "source item type" "eventticket", "shop order id" 322333, "start number" 1250, "street" "neue bahnhofstr 1 3", "tags" "premium,early", "team id" "1324,", "team name" "the one and only", "ticket downloads" 2, "ticket fee" 1 99, "ticket name" "early bird ticket", "ticket type" "print", "ticketnumber" "992lfu8hb", "vat percentage" 0 19, "zip" 59065, "additional fields" \[ { "show1" true, "field1" "startzeit", "field1 val" "12 40", "show2" false, "field2" "", "field2 val" "" } ], "questions answers" \[ {} ], "ticket link" "https //my ticketpay de/ticket/d74932836fabe97fe83746bbad880833/" } ] }// response for a failed authentification { "message" "unauthorized" }