Deliveries

Delivery webhook

Have Sellitex call your own system when a product is paid, expires or is refunded, to grant or take back what only that system can deliver.

This webhook is not the same as the store webhook subscriptions, which report events from the whole store. Here the request is a delivery action of one product, and the response of your endpoint decides whether the delivery of the order succeeded.

Setting it up

Under Dashboard → Connections, create a connection of type Webhook with the URL of your endpoint and, if you want signatures, a secret. Then, on the product, add a delivery action of type Webhook, pick the connection, name the event and, if needed, write an extra payload.

Each action has a trigger: on_paid fires when the order is paid, on_expire when the purchased access expires and on_refund when the order is refunded. To grant an access and later take it back, create two actions on the same product, one for each moment.

Request format

Each delivery is a POST with a JSON body. The example below uses the delivery.granted event and an extra payload with a plan field:

JSON
{
  "event": "delivery.granted",
  "reference": "order:123:item:456:action:78",
  "quantity": 1,
  "buyer_fields": {
    "nickname": "Steve"
  },
  "plan": "vip",
  "delivery": {
    "id": 9876,
    "trigger": "on_paid",
    "order_item_id": 456
  },
  "timestamp": "2026-08-19T14:32:00+00:00"
}
eventstring
The name you gave the event on the action. The default is delivery.granted. It accepts lowercase letters, numbers, dot, hyphen and underscore, up to 60 characters.
referencestring
Identifies this delivery: order, item and action. It is the same value as the idempotency header.
quantityinteger
How many units of the item were bought.
buyer_fieldsobject
What the buyer filled in at checkout, with the keys nickname, discord_id, player_id and note. Only the fields the product asks for are present.
delivery.idinteger
The ID of this delivery. A later delivery of the same item always has a higher ID.
delivery.triggerstring
The trigger of the action: on_paid, on_expire or on_refund.
delivery.order_item_idinteger
The ID of the order item that produced the delivery.
timestampstring
When the request was built, in ISO 8601.

Extra payload and placeholders

The extra payload is a JSON object of up to 2,000 characters, and its keys go into the root of the body. In text values you can use the placeholders below. The replacement happens after the JSON is parsed, so quotes or line breaks typed by the buyer cannot break the structure.

JSON
{
  "plan": "vip",
  "player": "{{nickname}}",
  "days": "{{duration}}"
}
PlaceholderValue
{{quantity}}How many units of this item the buyer took.
{{duration}}The duration of the purchased variant, number only. Empty when the variant has no duration.
{{duration_unit}}The unit of the duration: minutes, hours, days or months.
{{product}}The product name.
{{variant}}The name of the purchased variant.
{{nickname}}The nickname the buyer gave at checkout.
{{discord_id}}The Discord user ID of the buyer, 17 to 20 digits.
{{player_id}}The player ID the buyer gave at checkout.
{{note}}The free-text note the buyer wrote at checkout.

The last five only have a value when the product asks the buyer for that field, under "Ask the buyer for". A field that was not asked for becomes empty text.

The delivery and timestamp keys are always filled in by Sellitex, even if the extra payload tries to set them. The other keys of the body can be overwritten by the extra payload, so avoid using event, reference, quantity and buyer_fields in it.

Headers and signature

Every request carries X-Sellitex-Idempotency-Key, with the same value as reference on every attempt of the same delivery. Store the key and answer 2xx without acting again when it repeats.

HTTP
POST /sellitex/delivery HTTP/1.1
Content-Type: application/json
X-Sellitex-Idempotency-Key: order:123:item:456:action:78
X-Sellitex-Signature: 5d41402abc4b2a76b9719d911017c592...

When the connection has a secret, the request also carries X-Sellitex-Signature: an HMAC-SHA256, hex-encoded, of the exact body, computed with that secret. Verification is the same as shown in Webhooks. Without a secret, the header is not sent.

Granting and revoking in the right order

A grant and a revocation of the same item can arrive close together, and retries can swap the order of arrival. Use delivery.order_item_id to know which purchase it is about and delivery.id to know which of the two is the later one. Since delivery and timestamp are part of the signed body, you can also refuse an old request that someone tries to send again.

Response and retries

Your endpoint has 15 seconds to answer. Only a status between 200 and 299 counts as delivered. Redirects are not followed, so a 3xx counts as a failure. After a failure, the delivery is tried again in 5 minutes, then in 30 minutes and then in 2 hours, up to 4 attempts in total.

After the fourth failure, the delivery is marked as failed on the order, and the store team can resend it from the dashboard.

A URL pointing at a private or internal address is refused without any request being sent.