The order/paymentFailed webhook now includes line item details in its payload, so you can identify which products were part of an order when a payment failure occurs.
What's new?
The following objects details are now present in the order/paymentFailed webhook.
Payload objects
| Object | Description |
|---|---|
lineItems | The products included in this billing cycle, with details like SKU, price, quantity, and variant info. |
skippedLineItems | Products excluded from this billing cycle. Empty if no items were skipped. |
customer | The subscriber's details including Shopify ID, name, and email. |
subscription | The full subscription contract including status, billing and delivery policy, next order date, discounts, line items with pricing policy, and selling plan details. |
shippingAddress | The delivery address for the order. Null if no products require shipping. |
shippingLines | Shipping method details including code and title. Null if no shipping method is applied. |
paymentMethod | The card on file used for this charge, including brand, last digits, expiry, and risk level. |
paymentAttempt | Details of the billing attempt including failure reason, error code, retry count, and whether the card was hard declined. |
metaData | Store-level context containing the myshopifyDomain of the store this event belongs to. |