Retrieve
curl --request GET \
--url https://{defaultHost}/v1/events/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/events/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/events/{id}', 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://{defaultHost}/v1/events/{id}",
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://{defaultHost}/v1/events/{id}"
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://{defaultHost}/v1/events/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/events/{id}")
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": "81c2e432-edbd-4736-a144-a26291c1db7b",
"object": "event",
"data": {
"object": {
"id": "21df68fb-a3c4-4e25-9ea0-51780ed1f90a",
"object": "purchase",
"live_mode": true,
"quantity": 1,
"revoked": false,
"revoked_at": null,
"revoke_at": null,
"customer": "6d6c6afb-ac14-475f-b5ef-e4d6620e54fa",
"initial_order": "cba8244d-b5d5-4a40-96a0-561ae17066e5",
"license": null,
"price": "2737d371-d153-4d90-ab32-22d54b036108",
"product": "6ff80763-f1d2-4051-8c07-8e7d7c76fc9d",
"subscription": null,
"variant": null,
"review": null,
"created_at": 1786366599,
"updated_at": 1786366599
}
},
"type": "purchase.created",
"account": "c85b4656-e6b0-46fc-98c2-06121f27218b",
"created_at": 1786366599
}Events
Retrieve
Retrieves details of a specific event.
GET
/
v1
/
events
/
{id}
Retrieve
curl --request GET \
--url https://{defaultHost}/v1/events/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/events/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/events/{id}', 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://{defaultHost}/v1/events/{id}",
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://{defaultHost}/v1/events/{id}"
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://{defaultHost}/v1/events/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/events/{id}")
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": "81c2e432-edbd-4736-a144-a26291c1db7b",
"object": "event",
"data": {
"object": {
"id": "21df68fb-a3c4-4e25-9ea0-51780ed1f90a",
"object": "purchase",
"live_mode": true,
"quantity": 1,
"revoked": false,
"revoked_at": null,
"revoke_at": null,
"customer": "6d6c6afb-ac14-475f-b5ef-e4d6620e54fa",
"initial_order": "cba8244d-b5d5-4a40-96a0-561ae17066e5",
"license": null,
"price": "2737d371-d153-4d90-ab32-22d54b036108",
"product": "6ff80763-f1d2-4051-8c07-8e7d7c76fc9d",
"subscription": null,
"variant": null,
"review": null,
"created_at": 1786366599,
"updated_at": 1786366599
}
},
"type": "purchase.created",
"account": "c85b4656-e6b0-46fc-98c2-06121f27218b",
"created_at": 1786366599
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
200 - application/json
Success
The UUID of the specific object.
A string describing the object type returned.
Expandable – The associated account ID.
Time at which the object was created. Measured in seconds since the Unix epoch.
Description of the event (e.g., subscription.updated or charge.updated).
Was this page helpful?
⌘I