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

account

Overview

This query gets the information for an owned account from the current login session.

Special Considerations

  • Ubo data is required if it's a business account and the country requires it.
  • You must have already created an account (locally) for this query to work (you don't specify the userID, rather, the query fetches the account on record for the current login sesssion).

Inputs

None.

Returns

Promise<PrivateAccount>

A promise containing the following object / data:

PrivateAccount: {
  id: ID
  slug: string
  status: AccountStatus
  name: string
  displayName: string
  phoneCountryCode: Country
  phone: string
  addressLine1: string
  addressLine2: string
  city: string
  zoneCode: string
  postalCode: string
  currency: Currency
  accountType: accountType
  country: Country
  identificationType: string
  industry: string
  businessType: string
  businessTaxId: string
  preferredBankAccountId: string
  incorporationDocumentFilename: string
  paymentSavingTotal: float
  beneficiarySavingTotal: float
  uboInfoRequired: boolean
  redirectUrl: string
  uboInfoRequired: isUboInfoRequired && !hasUboInfoBeenUploaded
}

Example

Running this query:

query {
  account {
    id
    slug
    status
    name
    displayName
    phoneCountryCode
    phone
    addressLine1
    addressLine2
    city
    zoneCode
    postalCode
    currency
    accountType
    country
    identificationType
    industry
    businessType
    businessTaxId
    preferredBankAccountId
    incorporationDocumentFilename
    paymentSavingTotal
    beneficiarySavingTotal
    uboInfoRequired
    redirectUrl
  }

}

Gives us:

{
    "data": {
        "account": {
          "id": "ckb6sbpms000o0829cvrcqjd0",
          "slug": null,
          "status": "NOT_SETUP",
          "name": null,
          "displayName": null,
          "phoneCountryCode": null,
          "phone": null,
          "addressLine1": null,
          "addressLine2": null,
          "city": null,
          "zoneCode": null,
          "postalCode": null,
          "currency": "USD",
          "accountType": "PERSONAL",
          "country": "US",
          "identificationType": null,
          "industry": null,
          "businessType": null,
          "businessTaxId": null,
          "preferredBankAccountId": null,
          "incorporationDocumentFilename": null,
          "paymentSavingTotal": null,
          "beneficiarySavingTotal": null,
          "uboInfoRequired": false,
          "redirectUrl": null
        }
    }
}

Common Errors

N/A

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