Operations API
Ticketing
Retrieve Ticket
this api endpoint ( get get ) retrieve a ticket by id if the request succeeds, it will return a ticket object docid 4ihmvxpnn0cykalz1bi9g path parameters id the id of the ticket to retrieve require "uri" require "net/http" url = uri("https //api tamio com/v2/merchant ticketing/retrieve/8dc1869d 0a0b 4c78 b40c 5b25bfa337eb") 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 curl location request get 'https //api tamio com/v2/merchant ticketing/retrieve/8dc1869d 0a0b 4c78 b40c 5b25bfa337eb' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'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/retrieve/8dc1869d 0a0b 4c78 b40c 5b25bfa337eb", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "ticket" { "id" "8dc1869d 0a0b 4c78 b40c 5b25bfa337eb", "title" "help with account", "is open" true, "object" "ticket", "created at" 1671462259, "updated at" 1671462259, "client" { "id" "3463a4ee 5eba 45cd 9ef9 3f3a0f64329e", "name" "james doe", "email" "client 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 } ], "category" "general support", "subcategory" null, "language" "en" } }