Retrieve notifications through webhooks on transaction events and status changes
About Our Webhooks 📣
Receive notifications/alerts on every new transaction or transaction status change in any of your inabit organizations within your account, as well as fee updates for a transaction.
There are two endpoints you can use with our Webhooks:
In the mutation's response, the following is retrieved:
ID - The ID of the subscription that was created.
Token - A unique token generated by inabit.
The token will be the identifying the webhook resource for the subscriber set as a header: 'authorization' : (i.e. - sub_c028ef8d-b8b9-49c0-b5a9-f7451884b834)
Remember - You can always query data and fetch all of an organization's subscriptions in case its hard to keep track, see query below.
querySubscriptions($where: SubscriptionWhereInput) { subscriptions(where: $where) { id token }}
Body (SubscriptionWhereInput object)
Delete Subscription
In order to delete a subscription, the following mutation needs to be used:
mutationDeleteSubscription($where: SubscriptionWhereUniqueInput!) { deleteSubscription(where: $where) { id }}
Headers
Body (SubscriptionWhereUniqueInput object)
Example body:
body:{"where": {"id": "clu5bxctk0003vje4n4pqfdya" # Subscription Id }}