Export API
Cancellations
1 min
code examples curl location 'https //tnapi ticketpay de/exports/cancellations' \\ \ 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/cancellations", 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/cancellations") 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/cancellations" 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 cancellations { "total" 6, "page" 1, "size" 1, "data" \[ { "id" 873, "type" "ticket", "related to" 5412580, "action" "refund", "reason" "{\\"de\\" \\"kullanz\\",\\"en\\" \\"goodwill\\"}", "event id" 110250, "used by type" "employee", "used by id" 708, "user name" "max mustermann", "created iso" "2025 08 01t10 00 10+02 00", "updated iso" "2022 10 08t10 23 11+02 00" } ] }// response for a failed authentification { "message" "unauthorized" }
