Discord
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
GET /v1/stores/{storeId}/product_versions/{productVersionId}/discord_actions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "411486491630370816",
"store_id": "411486491630370816",
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"discord_server_id": "411486491630370816",
"execution_stage": "on_purchase",
"revocation_stages": [
"on_expire"
],
"action_type": "persist_role",
"channel_id": "411486491630370816",
"role_id": "411486491630370816",
"message": "text"
}
]An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816411486491630370816411486491630370816411486491630370816OK
Error response
PUT /v1/stores/{storeId}/product_versions/{productVersionId}/discord_actions HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 221
[
{
"discord_server_id": "411486491630370816",
"action_type": "persist_role",
"execution_stage": "on_purchase",
"revocation_stages": [
"on_expire"
],
"channel_id": "411486491630370816",
"role_id": "411486491630370816",
"message": "text"
}
]{
"id": "411486491630370816",
"store_id": "411486491630370816",
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"discord_server_id": "411486491630370816",
"execution_stage": "on_purchase",
"revocation_stages": [
"on_expire"
],
"action_type": "persist_role",
"channel_id": "411486491630370816",
"role_id": "411486491630370816",
"message": "text"
}An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
GET /v1/stores/{storeId}/orders/{orderId}/discord HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": {
"discord_id": "411486491630370816",
"username": "text",
"avatar_hash": "text"
}
}An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
GET /v1/stores/{storeId}/orders/{orderId}/discord/queued HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"execution_stage": "on_purchase",
"status": "active",
"store_id": "411486491630370816",
"order_id": "411486491630370816",
"delivery_item_id": "411486491630370816",
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"discord_server_id": "411486491630370816",
"action_type": "persist_role",
"discord_user_id": "411486491630370816",
"channel_id": "411486491630370816",
"role_id": "411486491630370816",
"message": "text",
"revocation_stages": [
"on_expire"
],
"enqueued_at": "2025-11-19T15:39:13.171Z",
"finalised_at": "2025-11-19T15:39:13.171Z",
"executions": [
{
"id": 1,
"queue_id": 1,
"executed_at": "2025-11-19T15:39:13.171Z",
"execution_status": "success",
"message": "text",
"trace_id": "text"
}
]
}
]An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
GET /v1/stores/{storeId}/inventory/{inventoryItemId}/discord/queued HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": 1,
"execution_stage": "on_purchase",
"status": "active",
"store_id": "411486491630370816",
"order_id": "411486491630370816",
"delivery_item_id": "411486491630370816",
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"discord_server_id": "411486491630370816",
"action_type": "persist_role",
"discord_user_id": "411486491630370816",
"channel_id": "411486491630370816",
"role_id": "411486491630370816",
"message": "text",
"revocation_stages": [
"on_expire"
],
"enqueued_at": "2025-11-19T15:39:13.171Z",
"finalised_at": "2025-11-19T15:39:13.171Z",
"executions": [
{
"id": 1,
"queue_id": 1,
"executed_at": "2025-11-19T15:39:13.171Z",
"execution_status": "success",
"message": "text",
"trace_id": "text"
}
]
}
]An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
Error response
GET /v1/stores/{storeId}/inventory/{inventoryItemId}/discord/link HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"discord_id": "411486491630370816",
"username": "text",
"avatar_hash": "text"
}An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
No content
Error response
PUT /v1/stores/{storeId}/inventory/{inventoryItemId}/discord/link HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
No content
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816411486491630370816OK
No content
Error response
DELETE /v1/stores/{storeId}/inventory/{inventoryItemId}/discord/link HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
No content
An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816OK
Error response
GET /v1/stores/{storeId}/discord/links HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"token": "text",
"store_id": "411486491630370816",
"server_id": "411486491630370816",
"server_name": "text",
"server_icon_url": "text",
"created_at": "2025-11-19T15:39:13.171Z",
"linked_at": "2025-11-19T15:39:13.171Z"
}
]An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816OK
Error response
POST /v1/stores/{storeId}/discord/links HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"token": "text",
"store_id": "411486491630370816",
"server_id": "411486491630370816",
"server_name": "text",
"server_icon_url": "text",
"created_at": "2025-11-19T15:39:13.171Z",
"linked_at": "2025-11-19T15:39:13.171Z"
}An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816OK
Error response
DELETE /v1/stores/{storeId}/discord/links/{token} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"token": "text",
"store_id": "411486491630370816",
"server_id": "411486491630370816",
"server_name": "text",
"server_icon_url": "text",
"created_at": "2025-11-19T15:39:13.171Z",
"linked_at": "2025-11-19T15:39:13.171Z"
}
]An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816OK
Error response
GET /v1/stores/{storeId}/discord/{discordServerId}/roles HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "411486491630370816",
"name": "text"
}
]An API Key token generated in the Dashboard in the format 'APIKey TOKEN_HERE'.
411486491630370816OK
Error response
GET /v1/stores/{storeId}/discord/{discordServerId}/discord/text_channels HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "text",
"name": "text",
"category": "text"
}
]Last updated
Was this helpful?
