Webhooks

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:

Webhook endpoints are accessible only to the following user roles: Owner, Admin, API Admin

  • Events Handled:

    • New Transaction Event

    • Transaction Status Updates (Incl. txn fee updates)

  • Supported transaction types:

    • Received (Deposits)

    • Sent (Withdrawals)

For further information regarding transaction types (events), refer to the Notification Types subpage.

Create Subscription

In order to create a subscription on our GraphQL API, you'll need to call the following mutation:

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (SubscriptionCreateInput object)

Name
Type
Description

id*

string

ID of the organization in inabit

url*

string

URL for the webhook service to send notifications towards

Example body:

Response

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)

Body (SubscriptionWhereInput object)

Name
Type
Description

id*

string

ID of the organization in inabit

Delete Subscription

In order to delete a subscription, the following mutation needs to be used:

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body (SubscriptionWhereUniqueInput object)

Name
Type
Description

id*

string

Subscription ID

Example body:

Response

Was this helpful?