ON_DISCORD_ACCOUNT_LINKED_TO_CHECKOUT
Triggered when a Discord account is successfully linked to a checkout.
Payload
bodyobjectRequired
checkout_idstringRequired
The Flake ID of the Checkout
checkout_line_idstringRequired
The Flake ID of the Checkout Line
customerCustomerDTORequired
idstringRequired
The Flake ID of the Customer
minecraftMinecraftCustomerDTORequired
→ MinecraftCustomerDTOprofileGenericProfileDTORequired
→ GenericProfileDTOsteamSteamCustomerDTORequired
→ SteamCustomerDTOnamestringOptional
customer_idstringRequired
The Flake ID of the Customer associated with the Checkout
discord_user_avatar_hashstringRequired
The Discord avatar hash of the linked account
discord_user_idstringRequired
The Discord User ID of the linked account
discord_user_namestringRequired
The Discord username of the linked account
orderOrderDTORequired
applied_giftcardsOrderGiftCardUsageDTO[]Required
Applied gift cards to this order
→ OrderGiftCardUsageDTObilling_address_countrystringRequired
The ISO-3316 Country Code of the customer associated with the order
billing_emailstringRequired
The billing email address of the customer associated with the order
billing_namestringRequired
The billing name of the customer associated with the order
checkoutCheckoutDTORequired
→ CheckoutDTOcheckout_idstringRequired
The Flake ID of the Checkout associated with the order
completed_atstringRequired
Indicates when the order was completed
coupon_idstringRequired
The Flake ID of the Coupon associated with the order
created_atstringRequired
Indicates when the order was created
currencystringRequired
The ISO-4217 Currency Code of the order
customerCustomerDTORequired
→ CustomerDTOcustomer_ipstringRequired
The IPv4 or IPv6 Address of the associated customer when creating the order
discount_amountintegerRequired
The discount amount, represented as cents
giftcard_usage_amountintegerRequired
The total amount of giftcard usage associated with the order, represented in cents
idstringRequired
The Flake ID of the Order
product_gameserversstringRequired
A comma-seperated string of the gameservers of the product associated with the order
product_namesstringRequired
A comma-seperated string of the names of the product associated with the order
product_tagsstringRequired
A comma-seperated string of the tags of the products associated with the order
statusstringRequired
The status of the Order. Possbile options: created, completed, canceled
store_idstringRequired
The Flake ID of the store associated with the order
subtotal_amountintegerRequired
The subtotal amount, represented as cents
tax_amountintegerRequired
The tax amount, represented as cents
tax_inclusivebooleanRequired
Indicates if the order value was inclusive of tax
total_amountintegerRequired
The total amount, represented as cents
typestringRequired
The type of the order
subscription_idstringOptional
The Flake ID of the Subscription associated with the order
order_idstringRequired
The Flake ID of the Order associated with the Checkout
productProductDTORequired
allow_one_time_purchasebooleanRequired
Indicates if one-time purchases are supported on the product
allow_subscriptionbooleanRequired
Indicates if subscriptions are supported on the product
descriptionstringRequired
The description of the product
enabledbooleanRequired
Indicates if the product is enabled.
gameserver_namesstringRequired
A comma-seperated string of all the game servers associated with the product
gameserversProductGameServerDTO[]Required
The game servers associated with the product
→ ProductGameServerDTOidstringRequired
The Flake ID of the Product
metadataobjectRequired
The metadata of the product
namestringRequired
The name of the Product
priceintegerRequired
The price of the product, represented in cents.
remove_after_enabledbooleanRequired
Indicates whether automatic removal is enabled
single_game_server_onlybooleanRequired
Indicates if the customer must select a single game server when purchasing the product
slugstringRequired
The URL-Friendly Slug of the Product
sort_orderintegerRequired
The sort order of the product
store_idstringRequired
The Flake ID of the Store
tag_namesstringRequired
A comma-seperated string of all the tags associated with the product
version_idstringRequired
The Flake ID of the Version of the Product
created_atstringOptional
When the product was created
image_urlstringOptional
The Image URL of the product
labelstringOptional
The label of the product
remove_after_time_scalestringOptional
The scale of the time in which this product should be removed
remove_after_time_valueintegerOptional
The value of the time in which this product should be removed
subscription_interval_scalestringOptional
The value of the interval in which the product subscription renews at
subscription_interval_valueintegerOptional
The value of the interval in which the product subscription renews at
updated_atstringOptional
When the product was last updated
product_idstringRequired
The Flake ID of the Product associated with the Checkout
product_version_idstringRequired
The Flake ID of the Product Version associated with the Checkout
store_idstringRequired
The Flake ID of the Store associated with the Checkout
enqueued_atstringOptional
Indicates when the Discord account link was enqueued
event_idstringRequired
The ID of the Webhook Event
event_typeenumRequired
The type of webhook event
Possible enum values
ON_ORDER_COMPLETEDON_REFUNDON_CHARGEBACKON_CHARGEBACK_CLOSEDON_DELIVERY_ITEM_ADDEDON_DELIVERY_ITEM_ACTIVATEDON_DELIVERY_ITEM_USEDON_DELIVERY_ITEM_REVOKEDON_DELIVERY_ITEM_EXPIREDON_DELIVERY_ITEM_RENEWEDON_SUBSCRIPTION_ACTIVATEDON_SUBSCRIPTION_RENEWEDON_SUBSCRIPTION_CANCELEDON_DISCORD_ACCOUNT_LINKED_TO_CHECKOUTON_CONNECTED_USER_REGISTEREDON_CONNECTED_USER_BECAME_PAYABLEON_CONNECTED_USER_BECAME_UNPAYABLEON_CONNECTED_USER_PAYOUT_CREATEDON_CONNECTED_USER_PAYOUT_COMPLETEDON_CONNECTED_USER_TRANSACTION_INSERTEDON_CONNECTED_USER_TRUST_STATUS_CHANGEDON_TRIAL_ACTIVATEDON_TRIAL_COMPLETEDON_TRIAL_CANCELEDON_PURCHASE_FOLLOW_UP_ATTEMPT_EMAIL_SENTON_PURCHASE_FOLLOW_UP_ATTEMPT_SUCCEEDEDON_ABANDONED_CHECKOUT_RECOVERY_ATTEMPT_EMAIL_SENTON_ABANDONED_CHECKOUT_RECOVERY_ATTEMPT_SUCCEEDEDON_PAYMENT_COMPLETEDON_PAYMENT_FAILED
Example payload
{
"event_type": "ON_DISCORD_ACCOUNT_LINKED_TO_CHECKOUT",
"event_id": "411486491630370816",
"body": {
"store_id": "411486491630370816",
"customer_id": "411486491630370816",
"customer": {
"id": "411486491630370816",
"steam": {
"id": "76561197960287930",
"name": "John",
"avatar_url": "string"
},
"minecraft": {
"id": "string",
"name": "Notch",
"avatar_url": "string"
},
"profile": {
"id": "string",
"platform": "string",
"name": "John",
"avatar_url": "string"
},
"name": "John"
},
"checkout_id": "411486491630370816",
"checkout_line_id": "411486491630370816",
"order_id": "411486491630370816",
"order": {
"id": "411486491630370816",
"store_id": "411486491630370816",
"customer": {
"id": "411486491630370816",
"steam": {
"id": "76561197960287930",
"name": "John",
"avatar_url": "string"
},
"minecraft": {
"id": "string",
"name": "Notch",
"avatar_url": "string"
},
"profile": {
"id": "string",
"platform": "string",
"name": "John",
"avatar_url": "string"
},
"name": "John"
},
"checkout_id": "411486491630370816",
"checkout": {
"id": "411486491630370816",
"metadata": {},
"lines": [
{
"id": "411486491630370816",
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"metadata": {}
}
]
},
"applied_coupons": [
{
"coupon_id": "411486491630370816",
"usage_amount": 0
}
],
"applied_giftcards": [
{
"giftcard_id": "411486491630370816",
"usage_amount": 0
}
],
"coupon_id": "411486491630370816",
"type": "one_time",
"currency": "USD",
"tax_inclusive": true,
"tax_amount": 1500,
"discount_amount": 500,
"subtotal_amount": 10000,
"total_amount": 11000,
"created_at": "2024-01-15T10:30:00Z",
"completed_at": "2024-01-15T10:35:00Z",
"billing_name": "John Doe",
"billing_email": "john@doe.com",
"billing_address_country": "US",
"customer_ip": "127.0.0.1/24",
"giftcard_usage_amount": 0,
"lines": [
{
"id": "411486491630370816",
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"product": {
"id": "411486491630370816",
"store_id": "411486491630370816",
"version_id": "411486491630370816",
"slug": "string",
"name": "string",
"description": "string",
"enabled": true,
"sort_order": 0,
"price": 0,
"single_game_server_only": true,
"allow_one_time_purchase": true,
"allow_subscription": true,
"remove_after_enabled": true,
"tags": [
{
"id": "411486491630370816",
"slug": "string",
"name": "string"
}
],
"tag_names": "string",
"gameservers": [
{
"id": "411486491630370816",
"name": "string",
"enabled": true
}
],
"gameserver_names": "string",
"commands": [
{
"stage": "on_purchase",
"content": "string",
"online_only": true
}
],
"metadata": {},
"image_url": "string",
"label": "string",
"subscription_interval_value": 1,
"subscription_interval_scale": "month",
"remove_after_time_value": 1,
"remove_after_time_scale": "month",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
"product_name": "string",
"price": 1000,
"quantity": 1,
"discount_amount": 0,
"subtotal_amount": 1000,
"tax_amount": 100,
"total_amount": 1100,
"checkout_line_id": "411486491630370816",
"product_image_url": "string",
"subscription_id": "411486491630370816",
"subscription_line_id": "411486491630370816",
"subscription_interval_value": 1,
"subscription_interval_scale": "month",
"trial_id": "411486491630370816",
"gift_to_customer": {
"id": "411486491630370816",
"steam": {
"id": "76561197960287930",
"name": "John",
"avatar_url": "string"
},
"minecraft": {
"id": "string",
"name": "Notch",
"avatar_url": "string"
},
"profile": {
"id": "string",
"platform": "string",
"name": "John",
"avatar_url": "string"
},
"name": "John"
},
"selected_gameserver_id": "411486491630370816"
}
],
"product_names": "Product A, Product B",
"product_tags": "ranks, perks",
"product_gameservers": "game server one, game server two",
"status": "created",
"subscription_id": "411486491630370816"
},
"discord_user_id": "123456789012345678",
"discord_user_name": "john_doe",
"discord_user_avatar_hash": "a1b2c3d4e5f6g7h8i9j0",
"product_id": "411486491630370816",
"product_version_id": "411486491630370816",
"product": {
"id": "411486491630370816",
"store_id": "411486491630370816",
"version_id": "411486491630370816",
"slug": "string",
"name": "string",
"description": "string",
"enabled": true,
"sort_order": 0,
"price": 0,
"single_game_server_only": true,
"allow_one_time_purchase": true,
"allow_subscription": true,
"remove_after_enabled": true,
"tags": [
{
"id": "411486491630370816",
"slug": "string",
"name": "string"
}
],
"tag_names": "string",
"gameservers": [
{
"id": "411486491630370816",
"name": "string",
"enabled": true
}
],
"gameserver_names": "string",
"commands": [
{
"stage": "on_purchase",
"content": "string",
"online_only": true
}
],
"metadata": {},
"image_url": "string",
"label": "string",
"subscription_interval_value": 1,
"subscription_interval_scale": "month",
"remove_after_time_value": 1,
"remove_after_time_scale": "month",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
"enqueued_at": "2024-01-15T10:30:00Z"
}
}