List
curl --request GET \
--url https://{defaultHost}/v1/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/events"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/events")
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{
"object": "list",
"pagination": {
"count": 6,
"limit": 20,
"page": 1,
"url": "/v1/events"
},
"data": [
{
"id": "0665a251-fc6c-41bc-844c-69dfe12b65ab",
"object": "event",
"data": {
"object": {
"id": "150edd91-ab15-4133-869f-365c6700670b",
"object": "purchase",
"live_mode": true,
"quantity": 1,
"revoked": false,
"revoked_at": null,
"revoke_at": null,
"customer": "e40fd4ee-e642-4dee-88e5-c614922a9b2b",
"initial_order": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"license": null,
"price": "5c178727-b4bf-447d-9d31-a29c864a1598",
"product": "c7c0b933-08b8-4c78-809f-5fb827b6f080",
"subscription": null,
"variant": null,
"review": null,
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "purchase.created",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "2ee4291a-757b-467b-ba8e-c369c7bc5f90",
"object": "event",
"data": {
"object": {
"id": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"object": "order",
"fulfillment_status": "unfulfilled",
"live_mode": true,
"number": "0001",
"order_type": "checkout",
"return_status": "not_returned",
"shipment_status": "unshippable",
"portal_url": "http://app.example.com/portal_redirect/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"statement_url": "http://app.example.com/statements/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"status": "paid",
"checkout": "23ff17f6-ba39-49a8-8edb-090b49a98e43",
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "order.paid",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "6029453a-216b-4482-85d6-6711f5dfba77",
"object": "event",
"data": {
"object": {
"id": "5b1bd8b1-7a58-4f31-8195-29027f9e9114",
"object": "purchase",
"live_mode": true,
"quantity": 1,
"revoked": false,
"revoked_at": null,
"revoke_at": null,
"customer": "e40fd4ee-e642-4dee-88e5-c614922a9b2b",
"initial_order": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"license": null,
"price": "5c178727-b4bf-447d-9d31-a29c864a1598",
"product": "c7c0b933-08b8-4c78-809f-5fb827b6f080",
"subscription": null,
"variant": null,
"review": null,
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "purchase.created",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "ec46601a-1b9c-4eab-87b2-350567844bd4",
"object": "event",
"data": {
"object": {
"id": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"object": "order",
"fulfillment_status": "unfulfilled",
"live_mode": true,
"number": "0001",
"order_type": "checkout",
"return_status": "not_returned",
"shipment_status": "unshippable",
"portal_url": "http://app.example.com/portal_redirect/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"statement_url": "http://app.example.com/statements/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"status": "paid",
"checkout": "23ff17f6-ba39-49a8-8edb-090b49a98e43",
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "order.made_processing",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "26b007a1-fcf3-41d7-810f-8723b7b3e693",
"object": "event",
"data": {
"object": {
"id": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"object": "order",
"fulfillment_status": "unfulfilled",
"live_mode": true,
"number": "0001",
"order_type": "checkout",
"return_status": "not_returned",
"shipment_status": "unshippable",
"portal_url": "http://app.example.com/portal_redirect/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"statement_url": "http://app.example.com/statements/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"status": "paid",
"checkout": "23ff17f6-ba39-49a8-8edb-090b49a98e43",
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "order.created",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "ff16d074-ae28-4156-ba69-4a5eae644574",
"object": "event",
"data": {
"object": {
"id": "c7c0b933-08b8-4c78-809f-5fb827b6f080",
"object": "product",
"allow_out_of_stock_purchases": false,
"archived": false,
"archived_at": null,
"auto_fulfill_enabled": false,
"available_stock": -1,
"average_stars": "0.0",
"bundle": false,
"description": null,
"dimensions": null,
"held_stock": 1,
"featured": false,
"licensing_enabled": false,
"license_activation_limit": null,
"metadata": {},
"purchase_limit": null,
"metrics": {
"currency": "usd",
"max_price_amount": null,
"min_price_amount": null,
"prices_count": 0
},
"name": "Test Product",
"recurring": false,
"reviews_breakdown": {},
"reviews_enabled": true,
"shipping_enabled": false,
"sku": null,
"slug": "test-product",
"solicit_reviews": true,
"status": "draft",
"stock": 0,
"stock_enabled": false,
"tax_enabled": false,
"tax_category": "tangible",
"hs_code": null,
"country_of_origin": null,
"manufacturer_code": null,
"google_product_data": {
"gtin": null,
"mpn": null,
"condition": "new",
"age_group": null,
"gender": null,
"color": null,
"size": null,
"size_type": null,
"size_system": null,
"material": null,
"pattern": null,
"brand": null,
"adult": false
},
"weight": 0,
"weight_unit": "lb",
"commission_structure": null,
"featured_product_media": null,
"product_group": null,
"current_release_download": null,
"shipping_profile": null,
"cataloged_at": 1796063931,
"discarded_at": null,
"created_at": 1796063931,
"updated_at": 1796063931
}
},
"type": "product.stock_adjusted",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063931
}
]
}Events
List
Returns a list of your events.
GET
/
v1
/
events
List
curl --request GET \
--url https://{defaultHost}/v1/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/events"
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', 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",
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"
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")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/events")
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{
"object": "list",
"pagination": {
"count": 6,
"limit": 20,
"page": 1,
"url": "/v1/events"
},
"data": [
{
"id": "0665a251-fc6c-41bc-844c-69dfe12b65ab",
"object": "event",
"data": {
"object": {
"id": "150edd91-ab15-4133-869f-365c6700670b",
"object": "purchase",
"live_mode": true,
"quantity": 1,
"revoked": false,
"revoked_at": null,
"revoke_at": null,
"customer": "e40fd4ee-e642-4dee-88e5-c614922a9b2b",
"initial_order": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"license": null,
"price": "5c178727-b4bf-447d-9d31-a29c864a1598",
"product": "c7c0b933-08b8-4c78-809f-5fb827b6f080",
"subscription": null,
"variant": null,
"review": null,
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "purchase.created",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "2ee4291a-757b-467b-ba8e-c369c7bc5f90",
"object": "event",
"data": {
"object": {
"id": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"object": "order",
"fulfillment_status": "unfulfilled",
"live_mode": true,
"number": "0001",
"order_type": "checkout",
"return_status": "not_returned",
"shipment_status": "unshippable",
"portal_url": "http://app.example.com/portal_redirect/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"statement_url": "http://app.example.com/statements/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"status": "paid",
"checkout": "23ff17f6-ba39-49a8-8edb-090b49a98e43",
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "order.paid",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "6029453a-216b-4482-85d6-6711f5dfba77",
"object": "event",
"data": {
"object": {
"id": "5b1bd8b1-7a58-4f31-8195-29027f9e9114",
"object": "purchase",
"live_mode": true,
"quantity": 1,
"revoked": false,
"revoked_at": null,
"revoke_at": null,
"customer": "e40fd4ee-e642-4dee-88e5-c614922a9b2b",
"initial_order": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"license": null,
"price": "5c178727-b4bf-447d-9d31-a29c864a1598",
"product": "c7c0b933-08b8-4c78-809f-5fb827b6f080",
"subscription": null,
"variant": null,
"review": null,
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "purchase.created",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "ec46601a-1b9c-4eab-87b2-350567844bd4",
"object": "event",
"data": {
"object": {
"id": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"object": "order",
"fulfillment_status": "unfulfilled",
"live_mode": true,
"number": "0001",
"order_type": "checkout",
"return_status": "not_returned",
"shipment_status": "unshippable",
"portal_url": "http://app.example.com/portal_redirect/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"statement_url": "http://app.example.com/statements/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"status": "paid",
"checkout": "23ff17f6-ba39-49a8-8edb-090b49a98e43",
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "order.made_processing",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "26b007a1-fcf3-41d7-810f-8723b7b3e693",
"object": "event",
"data": {
"object": {
"id": "d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"object": "order",
"fulfillment_status": "unfulfilled",
"live_mode": true,
"number": "0001",
"order_type": "checkout",
"return_status": "not_returned",
"shipment_status": "unshippable",
"portal_url": "http://app.example.com/portal_redirect/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"statement_url": "http://app.example.com/statements/orders/d7dc2706-bd44-47b8-b37a-69acc78a9a77",
"status": "paid",
"checkout": "23ff17f6-ba39-49a8-8edb-090b49a98e43",
"created_at": 1796063932,
"updated_at": 1796063932
}
},
"type": "order.created",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063932
},
{
"id": "ff16d074-ae28-4156-ba69-4a5eae644574",
"object": "event",
"data": {
"object": {
"id": "c7c0b933-08b8-4c78-809f-5fb827b6f080",
"object": "product",
"allow_out_of_stock_purchases": false,
"archived": false,
"archived_at": null,
"auto_fulfill_enabled": false,
"available_stock": -1,
"average_stars": "0.0",
"bundle": false,
"description": null,
"dimensions": null,
"held_stock": 1,
"featured": false,
"licensing_enabled": false,
"license_activation_limit": null,
"metadata": {},
"purchase_limit": null,
"metrics": {
"currency": "usd",
"max_price_amount": null,
"min_price_amount": null,
"prices_count": 0
},
"name": "Test Product",
"recurring": false,
"reviews_breakdown": {},
"reviews_enabled": true,
"shipping_enabled": false,
"sku": null,
"slug": "test-product",
"solicit_reviews": true,
"status": "draft",
"stock": 0,
"stock_enabled": false,
"tax_enabled": false,
"tax_category": "tangible",
"hs_code": null,
"country_of_origin": null,
"manufacturer_code": null,
"google_product_data": {
"gtin": null,
"mpn": null,
"condition": "new",
"age_group": null,
"gender": null,
"color": null,
"size": null,
"size_type": null,
"size_system": null,
"material": null,
"pattern": null,
"brand": null,
"adult": false
},
"weight": 0,
"weight_unit": "lb",
"commission_structure": null,
"featured_product_media": null,
"product_group": null,
"current_release_download": null,
"shipping_profile": null,
"cataloged_at": 1796063931,
"discarded_at": null,
"created_at": 1796063931,
"updated_at": 1796063931
}
},
"type": "product.stock_adjusted",
"account": "5a973b95-3228-450a-8f5d-64f103b9c877",
"created_at": 1796063931
}
]
}Authorizations
Query Parameters
Was this page helpful?