Get an order
curl --request GET \
--url https://api.weticket.io/public/v1/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.weticket.io/public/v1/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.weticket.io/public/v1/orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.weticket.io/public/v1/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.weticket.io/public/v1/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.weticket.io/public/v1/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weticket.io/public/v1/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "0193a8f2-5c1e-7b3a-9d4f-2e6c8a1b3d5f",
"reference": "WT-8F3K2Q",
"eventId": "0193a7c1-2b4d-7e8f-a1c3-5d7e9f1b3a5c",
"status": "completed",
"source": "storefront",
"buyer": {
"firstName": "Sanne",
"lastName": "de Vries",
"emailAddress": "sanne@example.com"
},
"voucherCode": "EARLYBIRD",
"subtotal": {
"amount": 4500,
"currency": "EUR"
},
"discount": {
"amount": 4500,
"currency": "EUR"
},
"total": {
"amount": 4500,
"currency": "EUR"
},
"paid": {
"amount": 4500,
"currency": "EUR"
},
"refunded": {
"amount": 4500,
"currency": "EUR"
},
"totalAfterRefunds": {
"amount": 4500,
"currency": "EUR"
},
"lineItems": [
{
"id": "0193a8f2-6a10-7c2b-8e3d-4f5a6b7c8d9e",
"productId": "0193a7c2-1a2b-7c3d-9e4f-5a6b7c8d9e0f",
"productName": "Regular ticket",
"productType": "ticket",
"timeslotId": "0193a7c1-9f8e-7d6c-b5a4-3c2d1e0f9a8b",
"price": {
"amount": 4500,
"currency": "EUR"
},
"serviceCosts": {
"amount": 4500,
"currency": "EUR"
},
"discount": {
"amount": 4500,
"currency": "EUR"
},
"refunded": {
"amount": 4500,
"currency": "EUR"
}
}
],
"createdAt": "2026-11-28T14:03:12+01:00",
"updatedAt": "2026-11-28T14:05:40+01:00"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Endpoint
Get an order
An order with its line items. Amounts are in cents.
GET
/
public
/
v1
/
orders
/
{orderId}
Get an order
curl --request GET \
--url https://api.weticket.io/public/v1/orders/{orderId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.weticket.io/public/v1/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.weticket.io/public/v1/orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.weticket.io/public/v1/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.weticket.io/public/v1/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.weticket.io/public/v1/orders/{orderId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weticket.io/public/v1/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "0193a8f2-5c1e-7b3a-9d4f-2e6c8a1b3d5f",
"reference": "WT-8F3K2Q",
"eventId": "0193a7c1-2b4d-7e8f-a1c3-5d7e9f1b3a5c",
"status": "completed",
"source": "storefront",
"buyer": {
"firstName": "Sanne",
"lastName": "de Vries",
"emailAddress": "sanne@example.com"
},
"voucherCode": "EARLYBIRD",
"subtotal": {
"amount": 4500,
"currency": "EUR"
},
"discount": {
"amount": 4500,
"currency": "EUR"
},
"total": {
"amount": 4500,
"currency": "EUR"
},
"paid": {
"amount": 4500,
"currency": "EUR"
},
"refunded": {
"amount": 4500,
"currency": "EUR"
},
"totalAfterRefunds": {
"amount": 4500,
"currency": "EUR"
},
"lineItems": [
{
"id": "0193a8f2-6a10-7c2b-8e3d-4f5a6b7c8d9e",
"productId": "0193a7c2-1a2b-7c3d-9e4f-5a6b7c8d9e0f",
"productName": "Regular ticket",
"productType": "ticket",
"timeslotId": "0193a7c1-9f8e-7d6c-b5a4-3c2d1e0f9a8b",
"price": {
"amount": 4500,
"currency": "EUR"
},
"serviceCosts": {
"amount": 4500,
"currency": "EUR"
},
"discount": {
"amount": 4500,
"currency": "EUR"
},
"refunded": {
"amount": 4500,
"currency": "EUR"
}
}
],
"createdAt": "2026-11-28T14:03:12+01:00",
"updatedAt": "2026-11-28T14:05:40+01:00"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Response
OK
An order as the public API shows it, in the list and on its own.