Operations API
Ticketing
List All Tickets
this endpoint ( get get ) retrieves all your tickets the response is paginated; therefore, you should use the 'page' parameter for navigating through the results in subsequent requests on successful completion, it returns an array of ticket object docid 4ihmvxpnn0cykalz1bi9g , the number of available results and the flags used for filtering permissions customers view query parameters page fetch the results from a specific page it defaults to 1 per page the number of results to fetch per page the maximum is 50 and if it defaults to 10 from appendix docid\ kfbmx4q3dxjtduqf75yx1 start date used for filtering to appendix docid\ kfbmx4q3dxjtduqf75yx1 end date used for filtering customer id string if provided, it will fetch the tickets associated with the customer teammate id string if provided, it will fetch the tickets managed by the teammate domain id string if provided, it will fetch the tickets associated with the domain filter string filters the tickets by title closed string set ?closed=true if you want to fetch tickets that were successfully closed sort by an optional identifier used for sorting results the available options are title and created at require "uri" require "net/http" url = uri("https //api tamio com/v2/merchant ticketing/list?page=1\&per page=10") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read body var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tamio com/v2/merchant ticketing/list?page=1\&per page=10", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request get 'https //api tamio com/v2/merchant ticketing/list?page=1\&per page=10' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'{ "status" 200, "tickets" \[ { "id" "8dc1869d 0a0b 4c78 b40c 5b25bfa337eb", "title" "help with account", "is open" true, "object" "ticket", "created at" 1671462259, "updated at" 1671462259, "customer" { "id" "3463a4ee 5eba 45cd 9ef9 3f3a0f64329e", "name" "james doe", "email" "doe\@plugnpaid com" }, "teammate id" null, "replies" \[ { "id" "e6618a50 c0b6 49e9 8565 7b42e2027392", "text" "the client is having issues with the billing settings ", "is client reply" false, "created at" 1671462260, "assets" null }, { "id" "7dbc6406 3f5d 4c1e b3d6 88cbc464c8d7", "text" "thanks for contacting our support an agent will be with you shortly ", "is client reply" false, "created at" 1671462260, "assets" null } ], "domain" null, "domain id" null, "language" "en" } ] }