Billing credits added

ZyINS POSTs this event when credits are added to an account — from a purchase, promotional grant, or support adjustment. Credits offset future invoices or extend quota. Use it to refresh credit-balance displays or notify account owners that new quota is available. For authoritative billing reconciliation, query the billing usage and credits endpoints directly; this event is a push notification, not a ledger receipt. Verify X-ZyINS-Signature in constant time. Delivery is at-least-once — deduplicate on the event's id field in the JSON body.

Payload

Outbound webhook event envelope per ADR-014. Every webhook
POST from ZyINS to your endpoint uses this shape. The data
property contains the event-specific payload.

string
required

Globally unique event ID (ULID with evt_ prefix).

string
enum
required

Resource type discriminator.

Allowed:
string
enum
required

Event type name in dotted resource.action format.
Consumers route on this field.

string
required

API version the event payload conforms to.

boolean
required

true for live mode, false for test mode.

date-time
required

When the event was emitted (RFC 3339 UTC).

data
object
required

Event-specific payload. Shape depends on the type
field. See individual event documentation.

Headers
string
required

Emission timestamp and HMAC-SHA256 digest combined as t=<unix_seconds>,v1=<hex_digest>. Recompute the HMAC over <t>.<raw_body> and compare the v1 field in constant time. The event id and type are in the JSON body, not in headers.

Response
200

Acknowledge receipt with HTTP 200 (empty body allowed).

LoadingLoading…