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

paymentRequestById

Overview

This query takes in a payment ID as an input and searches all payment requests from the given ID.

Special Considerations

  • ID used must correspond to a given payment request
  • ID does not have a limit or minimum character length, consisting of only letters and numbers

Inputs

paymentRequestByIdArgs

Required Data

id: string

Returns

Promise<PublicPaymentRequest>

A promise containing the following object / data:

PublicPaymentRequest: {
  status: PublicPaymentRequestStatus,
  currency: CURRENCY,
  amount: float,
  description: string,
  createdBy: Contact,
  chargeDate: DateTime,
  requestToDisplayName: string,
  redirectURL: string
}

Example

Running this query:

query {
  paymentRequestById(id:"ckb8bx8js00re0772mykjh0ve") {
    status
    currency
    amount
    description
    createdBy {
      account {
        accountType
        displayName
        currency
        slug
      }
      email
    }
    chargeDate
    requestedToDisplayName
    redirectUrl
  }
}

Gives us:

{
  "data": {
    "paymentRequestById": {
    "status": "REQUESTED",
    "currency": "USD",
    "amount": 10,
    "description": "test",
    "createdBy": {
      "account": {
        "accountType": "BUSINESS",
        "displayName": "test business",
        "currency": "USD",
        "slug": "test"
      },
      "email": null
    },
    "chargeDate": "2020-06-09T19:40:41.981Z",
    "requestedToDisplayName": "docexample@getborderless.com",
    "redirectUrl": null
    }
  }
}

Common Errors

N/A

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