Welcome to Anyway! We are currently in Early Access, check out our website at Anyway for more info!
{
"event": "payment.succeeded",
"eventId": "6dffb7ec-949d-4c52-9ee0-f2c275e617e2",
"timestamp": "2025-10-23T01:55:54.327847",
"data": {
"orderId": "ORD251021175348576X4MT0MXW0Q",
"orgId": "ORG25TZ3ICV05X4MT",
"subscriptionId": "SUB251021175348576X4MT0MXW0Q",
"productId": "ORG25TZ3ICV05X4MT_28qz01wi2jsg",
"priceCents": 330,
"pricePrecision": 2,
"currency": "USD",
"orderType": "SUBSCRIPTION",
"status": "PAID",
"paymentMethod": "CARD",
"billingEmail": "jbaker@gmail.com",
"billingName": "Johnny Baker",
"billingCountry": "USA"
}
}| Field | Type | Description |
|---|---|---|
event | String | The event type (see Event Types below) |
eventId | String | Unique identifier for this webhook event (UUID format) |
timestamp | String | ISO 8601 timestamp when the event occurred |
data | Object | Payment details object (see below) |
| Field | Type | Required | Description |
|---|---|---|---|
orderId | String | Yes | Unique order identifier in Anyway system |
orgId | String | Yes | Your organization/merchant identifier |
subscriptionId | String | Conditional | Subscription ID (present for recurring payments) |
productId | String | Yes | The product that was purchased |
priceCents | Number | Yes | Payment amount in smallest currency unit (e.g., cents) |
pricePrecision | Number | Yes | Number of decimal places for the currency (usually 2) |
currency | String | Yes | ISO 4217 currency code (e.g., "USD", "EUR", "GBP") |
orderType | String | Yes | Type of order: SUBSCRIPTION or ONE_TIME |
status | String | Yes | Payment status (e.g., "PAID", "FAILED", "PENDING") |
paymentMethod | String | Yes | Payment method used (e.g., "CARD", "BANK_TRANSFER") |
billingEmail | String | Yes | Customer's billing email address |
billingName | String | Yes | Customer's billing name |
billingCountry | String | No | Customer's billing country |
| Event | Description | When It's Sent |
|---|---|---|
payment.succeeded | Payment completed successfully | When a payment is confirmed and funds are secured |
payment.failed | Payment failed | When a payment attempt fails (e.g., card declined) |
payment.pending | Payment is processing | When a payment is initiated but not yet confirmed |
payment.cancelled | Payment was cancelled | When a payment is cancelled before completion |
orgId)eventId) from the webhook