# Events

What ShipBill sends to your [webhook endpoints](https://shipbill.io/docs/webhooks), 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

| Event | Object | When |
| --- | --- | --- |
| `checkout.created` | [CheckoutSession](https://shipbill.io/docs/api#object-checkoutsession) | A checkout was created, by your server, a payment link, or a buy button. |
| `checkout.expired` | [CheckoutSession](https://shipbill.io/docs/api#object-checkoutsession) | A checkout ended unpaid: its time ran out, or you expired it. |

## Payments

| Event | Object | When |
| --- | --- | --- |
| `payment.created` | [Payment](https://shipbill.io/docs/api#object-payment) | Reserved: not sent yet. |
| `payment.processing` | [Payment](https://shipbill.io/docs/api#object-payment) | The provider is confirming a payment, such as a crypto transfer seen but not yet final. Don't fulfil yet. |
| `payment.requires_action` | [Payment](https://shipbill.io/docs/api#object-payment) | The buyer has another step to take, such as confirming with their bank. |
| `payment.authorized` | [Payment](https://shipbill.io/docs/api#object-payment) | One 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.succeeded` | [Payment](https://shipbill.io/docs/api#object-payment) | A 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.failed` | [Payment](https://shipbill.io/docs/api#object-payment) | An attempt failed, such as a declined card. The buyer can try again in the checkout. |
| `payment.cancelled` | [Payment](https://shipbill.io/docs/api#object-payment) | A payment was cancelled before it completed. |
| `payment.refunded` | [Payment](https://shipbill.io/docs/api#object-payment) | A refund was recorded: made at the provider, or marked by you. `amount_refunded` is the total so far. |
| `payment.disputed` | [Payment](https://shipbill.io/docs/api#object-payment) | A dispute was recorded: opened at the provider, or marked by you. |
| `payment.risk_cleared` | [Payment](https://shipbill.io/docs/api#object-payment) | You cleared a payment that fraud rules held (`risk_status` was `flagged`): deliver it now. The buyer is sent their purchase. |

## Invoices

| Event | Object | When |
| --- | --- | --- |
| `invoice.created` | [Invoice](https://shipbill.io/docs/api#object-invoice) | An invoice was issued. |
| `invoice.paid` | [Invoice](https://shipbill.io/docs/api#object-invoice) | An invoice was paid in full. |
| `invoice.expired` | [Invoice](https://shipbill.io/docs/api#object-invoice) | An invoice ended unpaid. |

## Subscriptions

| Event | Object | When |
| --- | --- | --- |
| `subscription.created` | [Subscription](https://shipbill.io/docs/api#object-subscription) | The first payment succeeded: the subscription runs until `access_until`. |
| `subscription.renewal_upcoming` | [Subscription](https://shipbill.io/docs/api#object-subscription) | The first reminder of a period was sent to the customer. |
| `subscription.renewed` | [Subscription](https://shipbill.io/docs/api#object-subscription) | A renewal was paid: `access_until` moved to the new period's end. |
| `subscription.reactivated` | [Subscription](https://shipbill.io/docs/api#object-subscription) | An expired subscription was paid again: a new period from the payment date. |
| `subscription.past_due` | [Subscription](https://shipbill.io/docs/api#object-subscription) | The period ended unpaid: the grace period runs until `grace_until`. For automatic renewal, the provider's charge failed and it is retrying. |
| `subscription.expired` | [Subscription](https://shipbill.io/docs/api#object-subscription) | The grace period ended unpaid, or the provider ended an automatic subscription. The customer is told once. |
| `subscription.cancelled` | [Subscription](https://shipbill.io/docs/api#object-subscription) | Cancelled by the customer or by you (access lasts until `current_period_end`), or replaced by another subscription product (`replaced_by`). |
| `subscription.updated` | [Subscription](https://shipbill.io/docs/api#object-subscription) | Changed at the provider without a payment (automatic renewal): a cancellation undone in its portal, or a failed charge put right. |

## Payouts

| Event | Object | When |
| --- | --- | --- |
| `payout.created` | [Payout](https://shipbill.io/docs/api#object-payout) | ShipBill 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.completed` | [Payout](https://shipbill.io/docs/api#object-payout) | A payout reached your bank (one recorded by hand is completed as it's recorded). |
| `payout.failed` | [Payout](https://shipbill.io/docs/api#object-payout) | Your bank refused a payout and the provider took the money back; or you undid one you recorded. |

## Testing

| Event | Object | When |
| --- | --- | --- |
| `webhook.test` | [WebhookTestObject](https://shipbill.io/docs/api#object-webhooktestobject) | Sent 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.
