SUBSCRIPTIONS WEBHOOK

Kushki can send webhook events that notify your application any time one of the following events happens:

  1. When a charge is successful (successfulCharge)
  2. When an attempt to charge the subscription failed (failedRetry)
  3. When all the the attempts to charge the subscription failed (lastRetry)
  4. When a subscription is deleted (subscriptionDelete)

Here’s what a complete payload looks like when it’s delivered to a Subscriptions webhook:

Method: POST

headers
object
X-Kushki-Key
string
X-Kushki-Signature
string
X-Kushki-Id
integer
body
object
name
string

Name of the event: “successfulCharge”, “failedRetry”, “lastRetry”, “subscriptionDelete”

event
object

All the information related to the subscription

id
string
metadata
object
subscriptionId
number
cardHolderName
string
amount
object
periodicity
string
contactDetails
object
token
string
merchantId
string
startDate
number
endDate
number
created
number
planName
string
binInfo
object
dayOfMonth
number
month
string
dayOfWeek
string
retry
object
retryCount
number
expirationTime
number
active
boolean
lastFourDigits
string
adjustment
object
retryConfiguration
object
nextAttemptDay
number
lastRetryDate
number
urls
array[string]
url
string