Improved

Lines details in the order/paymentFailed webhook

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

ObjectDescription
lineItemsThe products included in this billing cycle, with details like SKU, price, quantity, and variant info.
skippedLineItemsProducts excluded from this billing cycle. Empty if no items were skipped.
customerThe subscriber's details including Shopify ID, name, and email.
subscriptionThe full subscription contract including status, billing and delivery policy, next order date, discounts, line items with pricing policy, and selling plan details.
shippingAddressThe delivery address for the order. Null if no products require shipping.
shippingLinesShipping method details including code and title. Null if no shipping method is applied.
paymentMethodThe card on file used for this charge, including brand, last digits, expiry, and risk level.
paymentAttemptDetails of the billing attempt including failure reason, error code, retry count, and whether the card was hard declined.
metaDataStore-level context containing the myshopifyDomain of the store this event belongs to.