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

supportedCountries

Overview

Get a list of all supported countries, with detailed information. For UI and internationalization purposes.

Special Considerations

  • Does not take any inputs.

Inputs

N/A

Returns

Promise<PublicCountryDetailed[]>

Returns a promise containing the following array of data (for each country):

PublicCountryDetailed: {
    name: string,
    code: COUNTRY,
    phoneCountryCode: string,
    phoneFormat: string,
    currency: CURRENCY,
    personalTaxIdName: string,
    businessTaxIdName: string,
    businessTaxIdFormat: string,
    routingNumberName: string,
    zoneCodeName: string,
    postalCodeName: string,
    dateFormat: [string],
    directDebitServiceName: string,
}

Example

Running this query:

query {
  supportedCountries {
    name
    currency
  }
}

Gives us:

{
  "data": {
    "supportedCountries": [
      {
        "name": "Australia",
        "currency": "AUD"
      },
      {
        "name": "Canada",
        "currency": "CAD"
      },
      {
        "name": "United Kingdom",
        "currency": "GBP"
      },
      {
        "name": "United States",
        "currency": "USD"
      }
    ]
  }
}   

Common Errors

N/A

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