Webhooks - Subscription product change
The product of the subscription has been changed, the subscription will be replaced with the new product at the next renewal date.
The new product sku is available in the subscriptionRenewalProductSku
property.
Request body
ObjectThe latest transaction data related to the event. See the Get transaction API route response properties for details.
When processing a webhook, you can call the Get transaction API route to verify the transaction or refresh the data if the webhook was delayed and you’re concerned it might be outdated.
When processing a webhook, you can call the Get transaction API route to verify the transaction or refresh the data if the webhook was delayed and you’re concerned it might be outdated.
Example
{
id:"5e7fdfe22a3cff5084466e74",
type: 'subscription_product_change',
version: '2.0.0',
createdDate:"2030-10-12T17:34:35.256Z",
data: {
id: '5da20ea9fbd92641ae8d0c04',
purchaseDate: '2030-10-14T17:34:33.256Z',
quantity: 1,
platform: 'ios',
country: 'US',
tags: {},
orderId: '9873637705964380',
app: '5d86507259e828b8fe321f7e',
user: '5d865c10c41280ba7f0ce9c2',
userId: '62785074-8f32-42a5-b86b-90dbd79ce212',
product: '5d86507259e828b8fe321f8a',
listing: '5d86507259e828b8fe321f32',
store: '5d86507259e828b8fe321f85',
currency: 'USD',
price: 29.99,
convertedCurrency: 'USD',
convertedPrice: 29.99,
isSandbox: false,
isRefunded: false,
isSubscription: true,
isSubscriptionActive: true,
isSubscriptionRenewable: true,
isTrialConversion: false,
subscriptionState: 'active',
subscriptionPeriodType: "normal",
expirationDate: '2030-11-12T17:34:33.256Z',
linkedPurchase: '5da20ea9fbd92641ae8d0c03',
originalPurchase: '2d865c10c41280ba7f0ce9c4',
productSku: 'membership2_pricing1',
productType: 'renewable_subscription',
productGroupName: 'subscription_group_1',
subscriptionRenewalProduct: '2d865c10c41280ba7f0ce9c3',
subscriptionRenewalProductSku: 'membership3_pricing1'
}
}