{
"id": "paywall_usage_charge_deferred_evt_123",
"paywallId": "pw_live_123",
"ownerUserId": "usr_owner_789",
"type": "usage.charge.deferred",
"version": "2024-05-01",
"createdAt": "2024-05-01T12:34:56Z",
"status": "pending",
"attempts": 1,
"data": {
"paywallId": "pw_live_123",
"ownerUserId": "usr_owner_789",
"deferredRequestId": "req_stream_456",
"model": "gpt-4-turbo"
}
}Webhook events
Usage charge deferred
Triggered when a streaming request defers its usage charge. Marks a streaming request whose charge will be computed later once usage statistics arrive. Payload fields: paywallId, ownerUserId, deferredRequestId, model.
WEBHOOK
usage.charge.deferred
{
"id": "paywall_usage_charge_deferred_evt_123",
"paywallId": "pw_live_123",
"ownerUserId": "usr_owner_789",
"type": "usage.charge.deferred",
"version": "2024-05-01",
"createdAt": "2024-05-01T12:34:56Z",
"status": "pending",
"attempts": 1,
"data": {
"paywallId": "pw_live_123",
"ownerUserId": "usr_owner_789",
"deferredRequestId": "req_stream_456",
"model": "gpt-4-turbo"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Paywall event payload that triggered the webhook delivery.
Event key (see the webhooks section for the full catalog).
Available options:
updated, archived, secret.rotated, integration.connected, integration.disconnected, integration.stripe.webhook.rotated, authorization.requested, authorization.completed, authorization.revoked, authorization.declined, balance.deposit.created, balance.topup.link.created, balance.trial.granted, balance.charge.created, balance.charge.completed, balance.charge.failed, usage.charge.created, usage.charge.deferred, usage.rate.limited, balance.depleted, request.blocked, stripe.checkout.session.completed, proxy.request.started, proxy.request.completed, proxy.request.failed, proxy.request.canceled, proxy.request.blocked Allowed value:
"usage.charge.deferred"Payload fields: paywallId, ownerUserId, deferredRequestId, model.
Response
200
Return a 2xx to acknowledge receipt.