HandleWebhook
POST/your/webhook/path
HandleWebhook
Request
- application/json
Body
required
Array [
]
[Unknown, OrderPaid, OrderCancelled]
Notification type
items
object[]
List of items in the order
Item SKU (unique identifier)
Quantity of items
Item amount
order
object
Order represents order information
Order ID
Currency code
Order amount
[Unknown, Paid, Cancelled]
Order status
Invoice ID
user
object
WebhookUser represents user information in webhook
User's external ID in the game
User's email address
billing
object
BillingInfo represents billing information
settings
object
WebhookSettings represents project settings
gateway merchant_id
Project ID
purchase
object
WebhookPurchase represents purchase details
total
object
PurchaseTotal represents total purchase amount
Currency code (ISO 4217)
Total amount
transaction
object
WebhookTransaction represents transaction details
Transaction ID
External transaction ID
Payment date (ISO 8601)
Payment method ID
Payment method name
Payment ID in the payment system
payment_details
object
payment
object
Payment amount, final payment amount
Payment currency, three-letter currency code (ISO 4217)
Net amount (excluding tax) after discount
VAT amount, tax amount after discount
discount
object
Discount information
Discount ID
Discount promo code
Final discount amount
Final discount rate (e.g., 0.2 for 20%)
custom_parameters
object
Additional custom parameters
Responses
- 200
- default
OK
- application/json
- Response
- Example
Response
Merchant processed the notification.
The merchant's message.
{
"processed": true,
"message": "string"
}
Error response structure
- application/json
- Response
- Example
Response
Array [
]
Array [
]
details
object[]
The type of the serialized message.
causes
object[]
{
"name": "string",
"message": "string",
"details": [
{
"@type": "string"
}
],
"debug_id": "string",
"causes": [
{
"cause": "string",
"solution": "string"
}
]
}