borderless Docs

borderless Docs

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

›Queries

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

contacts

Overview

This query returns a list of contacts for this account.

Special Considerations

  • Does not take any input

Inputs

N/A

Returns

Promise<ContactsList>

A promise containing the ContactsList object.

ContactsList contains the inbound and outbound arrays, each of which contains the email and account of contacts.

Example

Running this query:

query {
  contacts {
    inbound {
      email
      account {
        accountType
        displayName
        currency
        slug
      }
    }
    outbound {
      email
      account {
        accountType
        displayName
        currency
        slug
      }
    }
  }
}

Gives us:

{
  "data": {
    "contacts": {
      "inbound": [
        {
          "email": "alex@getborderless.com",
          "account": {
            "accountType": "BUSINESS",
            "displayName": "Alex-Test",
            "currency": "USD"
            "slug": "US-Alex"
          }
        },
        ...
      ],
      "outbound": [
        ...
      ]
    }
  }
}

Common Errors

N/A

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