borderless Docs

borderless Docs

  • Account Setup
  • Account Services
  • Verification
  • Payments
  • Refunds
  • Developer Tools

›Mutations

Account Setup

    Queries

    • accountIdentificationTypes
    • accountSetupSession
    • allCountries
    • businessTypes
    • isValidBusinessTaxId
    • isValidPersonalTaxId
    • isValidSlug
    • jobTitles
    • naics
    • supportedCountries
    • zoneCodes

    Mutations

    • addAccountToPerson
    • addCompanyOfficerToAccount
    • createAccountSetupSession
    • createLoginPersonAndAccount
    • deactivateAccount
    • resendEmailVerification
    • submitAccountSetupSession
    • submitCompanyOfficers
    • updateAccountSetupSession

Account Services

    Queries

    • account
    • accounts
    • bankAccounts
    • companyOfficers
    • person
    • publicAccountBySlug

    Mutations

    • addBankAccount
    • changePassword
    • changePreferredBankAccount
    • login
    • logout
    • requestPasswordReset
    • sendInvitationEmail
    • sendInvitedRegisterEmail
    • switchAccounts
    • updateAccount
    • updatePerson

Verification

    Mutations

    • addOnfidoDocumentToPerson
    • embedOnfido

Payments

    Queries

    • contacts
    • paymentActivity
    • paymentActivityById
    • paymentRequestById
    • paymentSession
    • requestedPayments
    • tradeConfirmationForPayment

    Mutations

    • clearPaymentSession
    • createPaymentForRequestSession
    • createPaymentSession
    • declinePaymentRequest
    • generatePayMeRequest
    • requestPayment
    • resendPaymentRequest
    • submitPaymentSession
    • updatePaymentSession
    • updateQuote

Refunds

    Queries

    • refundSession

    Mutations

    • clearRefundSession
    • createRefundSession
    • submitRefundSession
    • updateRefundSession

Developer Tools

    Queries

    • accountWebhooks
    • embedVerificationService

    Mutations

    • createWebhook
    • healthCheck
    • testWebhook

createWebhook

Overview

This mutation takes a Webhook endpoint and creates the Webhook, returning a success message and a Webhook token. Notifications for received payments will go to this endpoint.

Special Considerations

  • Requires a Webhook endpoint as input
  • Must be using a business account.

Inputs

MutationCreateWebhookArgs

Required Data

webhookEndpoint: string

Returns

Promise<CreateWebhookResult>

A promise containing the following object / data:

message: string
webhookSecret: string

Example

Running this mutation:

mutation {
  createWebhook(data: {
    webhookEndpoint: "test-endpoint"
  }) {
    message
    webhookSecret
  }
}

Gives us:

{
  "data": {
    "createWebhook": {
      "message": "Webhook successfully created.",
      "webhookSecret": "12940b96-0b1b-4d90-95c0-f797f9376965"
    }
  }
}

Common Errors

N/A

← embedVerificationServiceNext →
  • Overview
  • Special Considerations
  • Inputs
    • MutationCreateWebhookArgs
  • Returns
    • Promise<CreateWebhookResult>
  • Example
  • Common Errors
borderless Docs
Docs
Account SetupAccount ServicesVerificationPaymentsRefundsDeveloper Tools
More
LoginBlogGitLabLinkedInInstagramTwitter
Facebook Open Source
Copyright © 2022 borderless