Events

Docs

Events

What ShipBill sends to your webhook endpoints, and returns from GET /v1/events. Each carries the object it's about, whole, in data.object.

JSON
{
  "id": "evt_…",
  "type": "subscription.renewed",
  "created": 1793750400,
  "livemode": true,
  "api_version": "2026-10-01",
  "data": { "object": { "id": "sub_…", "object": "subscription", … } }
}

From GET /v1/events the same body also has "object": "event". Within an api_version, objects only gain fields; nothing is renamed or removed.

Checkouts

EventObjectWhen
checkout.createdCheckoutSessionA checkout was created, by your server, a payment link, or a buy button.
checkout.expiredCheckoutSessionA checkout ended unpaid: its time ran out, or you expired it.

Payments

EventObjectWhen
payment.createdPaymentReserved: not sent yet.
payment.processingPaymentThe provider is confirming a payment, such as a crypto transfer seen but not yet final. Don't fulfil yet.
payment.requires_actionPaymentThe buyer has another step to take, such as confirming with their bank.
payment.authorizedPaymentOne of your amount rules reserved the payment on the buyer's card: the money is held, not taken. Don't fulfil yet. Approve it on the payment's page to take it (payment.succeeded follows) or cancel it (payment.cancelled); one not approved is released on day 6.
payment.succeededPaymentA payment succeeded: fulfil the order — unless risk_status is flagged, which means your fraud rules hold it until you clear it (payment.risk_cleared). Carries reference, line_items, access, and access_until.
payment.failedPaymentAn attempt failed, such as a declined card. The buyer can try again in the checkout.
payment.cancelledPaymentA payment was cancelled before it completed.
payment.refundedPaymentA refund was recorded: made at the provider, or marked by you. amount_refunded is the total so far.
payment.disputedPaymentA dispute was recorded: opened at the provider, or marked by you.
payment.risk_clearedPaymentYou cleared a payment that fraud rules held (risk_status was flagged): deliver it now. The buyer is sent their purchase.

Invoices

EventObjectWhen
invoice.createdInvoiceAn invoice was issued.
invoice.paidInvoiceAn invoice was paid in full.
invoice.expiredInvoiceAn invoice ended unpaid.

Subscriptions

EventObjectWhen
subscription.createdSubscriptionThe first payment succeeded: the subscription runs until access_until.
subscription.renewal_upcomingSubscriptionThe first reminder of a period was sent to the customer.
subscription.renewedSubscriptionA renewal was paid: access_until moved to the new period's end.
subscription.reactivatedSubscriptionAn expired subscription was paid again: a new period from the payment date.
subscription.past_dueSubscriptionThe period ended unpaid: the grace period runs until grace_until. For automatic renewal, the provider's charge failed and it is retrying.
subscription.expiredSubscriptionThe grace period ended unpaid, or the provider ended an automatic subscription. The customer is told once.
subscription.cancelledSubscriptionCancelled by the customer or by you (access lasts until current_period_end), or replaced by another subscription product (replaced_by).
subscription.updatedSubscriptionChanged at the provider without a payment (automatic renewal): a cancellation undone in its portal, or a failed charge put right.

Payouts

EventObjectWhen
payout.createdPayoutShipBill learned of a payout: read from a provider that reports them (Square, Dodo), or recorded by you. shipbill_amount is the part from sales through ShipBill.
payout.completedPayoutA payout reached your bank (one recorded by hand is completed as it's recorded).
payout.failedPayoutYour bank refused a payout and the provider took the money back; or you undid one you recorded.

Testing

EventObjectWhen
webhook.testWebhookTestObjectSent by Send test event, to that endpoint only. Its object is { object: "webhook_test", endpoint, message }.

Last checked against the product on 12 October 2026.

NextErrorsThe error format, its types, and the codes your code can act on.