Webhooks
With a webhook you do not have to keep asking for new orders. You give us one https address, and we send it a POST request when something happens to one of your orders or listings.
Events
| Event | Sent when |
|---|---|
order.created | A buyer paid for one of your listings |
order.input_updated | The buyer changed their delivery details |
order.delivered | The order was delivered, by you or from your stock |
order.completed | The buyer confirmed, or the confirmation time ran out |
order.disputed | The buyer opened a dispute |
order.dispute_resolved | Our support team closed the dispute |
order.updated | Another change of state, for example a refund |
dispute.opened | A dispute was opened on one of your orders |
dispute.updated | The dispute changed: a new message in the dispute file, or it became a card chargeback |
dispute.resolved | The dispute was closed, by our support team or because you accepted it |
listing.approved | Our team approved a listing you sent for review. It is live |
listing.rejected | Our team rejected a listing. reason says why |
listing.removed | Our team took a live listing down. reason says why |
ping | You called the test endpoint |
What we send
The payload is a summary. It never holds delivery details or what the buyer typed at checkout. Read the full order with GET /orders/{id}.
Listing events carry the listing instead of an order:
reason is null for listing.approved. Read the full listing with GET /listings/{id}.
Dispute events carry the dispute, with the same fields as GET /disputes/{orderId} without the history:
dispute.opened and order.disputed are sent at the same moment, and so are dispute.resolved and order.dispute_resolved. One carries the dispute, the other the order. Subscribe to the one you need. A webhook saved without events keeps the list from the day it was saved: save it again to add the dispute.* events.
The event type
The delivery id, the same as id in the body
t=<unix time>,v1=<signature>
{
"id": "0b7f6f0e-2a53-4a1c-9c8e-5f0d2b9d7a11",
"type": "order.created",
"createdAt": "2026-11-20T09:41:07.000Z",
"data": {
"order": {
"id": "5d3c0f5e-...",
"orderNumber": "GA-104233",
"status": "paid",
"deliveryStatus": "pending_delivery",
"nextAction": "deliver",
"listingId": "c1a2...",
"listingTitle": "1M Gold",
"quantity": 2,
"unitPrice": "4.50",
"earning": { "amount": "8.10", "currency": "EUR" },
"deliverBy": "2026-11-20T10:41:07.000Z",
"disputed": false
}
}
}{
"id": "7a1d2c3b-...",
"type": "listing.rejected",
"createdAt": "2026-11-23T14:02:11.000Z",
"data": {
"listing": {
"id": "c1a2...",
"title": "1M Gold",
"status": "rejected",
"reason": "The title names another game"
}
}
}{
"id": "9e2b4c1a-...",
"type": "dispute.resolved",
"createdAt": "2026-11-29T10:34:06.000Z",
"data": {
"dispute": {
"orderId": "5d3c0f5e-...",
"orderNumber": "GA-104233",
"status": "resolved",
"source": "buyer",
"reason": "not_received",
"amount": { "amount": "9.00", "currency": "EUR" },
"resolution": "refund_full",
"refundAmount": "9.00",
"canAccept": false
}
}
}Check the signature
Anyone can send a request to your address, so check that it came from us:
- 1Read
tandv1from theX-GamerArea-Signatureheader. - 2Build the string
t, a dot, and the raw request body exactly as you received it. - 3Compute the HMAC-SHA256 of that string with your
secretand compare it tov1. - 4Reject the request if
tis more than five minutes old.
const [t, v1] = header.split(',').map(part => part.split('=')[1]);
const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const valid = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1)) && Date.now() / 1000 - Number(t) < 300;Answer fast, expect repeats
- Answer with a
2xxstatus within 10 seconds. Do the real work after you answer. - Any other answer, a redirect or a timeout counts as a failure. We try again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, then give up on that event.
- The same event can reach you more than once. Use
idto skip the ones you already handled. - Events can arrive out of order. Treat them as a signal and read the order for its current state.
- After 20 events in a row that fail every attempt, we turn the webhook off. Call
PUT /webhookagain to turn it back on. - Events are sent only while you have at least one active API key. If you revoke every key, deliveries stop until you create a new one.