Skip to content

Instantly share code, notes, and snippets.

@dac09
Created June 18, 2020 17:12
Show Gist options
  • Save dac09/6a58e8bf8ed6a2a3defc9508949d0f5e to your computer and use it in GitHub Desktop.
Save dac09/6a58e8bf8ed6a2a3defc9508949d0f5e to your computer and use it in GitHub Desktop.
Braintree Subscription Webhook
{
kind: 'subscription_canceled',
timestamp: '2020-06-18T17:06:03Z',
subject: {
subscription: {
addOns: [],
balance: '0.00',
billingDayOfMonth: 17,
billingPeriodEndDate: '2020-07-16',
billingPeriodStartDate: '2020-06-17',
createdAt: '2020-06-17T12:13:22Z',
updatedAt: '2020-06-18T17:06:03Z',
currentBillingCycle: 1,
daysPastDue: null,
discounts: [],
failureCount: 0,
firstBillingDate: '2020-06-17',
id: '2c4v52',
merchantAccountId: 'edamamestudio',
neverExpires: true,
nextBillAmount: '2.99',
nextBillingPeriodAmount: '2.99',
nextBillingDate: '2020-07-17',
numberOfBillingCycles: null,
paidThroughDate: '2020-07-16',
paymentMethodToken: 'h34qj62',
planId: 'tape-pro-jun11',
price: '2.99',
status: 'Canceled',
trialDuration: null,
trialDurationUnit: null,
trialPeriod: false,
descriptor: [Object],
description: null,
transactions: [Array],
statusHistory: [Array]
}
},
subscription: Subscription {
addOns: [],
balance: '0.00',
billingDayOfMonth: 17,
billingPeriodEndDate: '2020-07-16',
billingPeriodStartDate: '2020-06-17',
createdAt: '2020-06-17T12:13:22Z',
updatedAt: '2020-06-18T17:06:03Z',
currentBillingCycle: 1,
daysPastDue: null,
discounts: [],
failureCount: 0,
firstBillingDate: '2020-06-17',
id: '2c4v52',
merchantAccountId: 'edamamestudio',
neverExpires: true,
nextBillAmount: '2.99',
nextBillingPeriodAmount: '2.99',
nextBillingDate: '2020-07-17',
numberOfBillingCycles: null,
paidThroughDate: '2020-07-16',
paymentMethodToken: 'h34qj62',
planId: 'tape-pro-jun11',
price: '2.99',
status: 'Canceled',
trialDuration: null,
trialDurationUnit: null,
trialPeriod: false,
descriptor: { name: null, phone: null, url: null },
description: null,
transactions: [ [Transaction] ],
statusHistory: [ [Object], [Object] ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment