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

paymentActivity

Overview

This query gets the payment activity of requests,payments, and refunds of the current account during the current login session.

Special Considerations

None.

Inputs

None.

Returns

Promise<PaymentEntry[]>

Returns a promise containing an array of Payment Entries.

where each of these is a mapped array of PaymentEntry(s) containing the relevant information.

PaymentEntry: {
    id: string,
    type: PaymentEntryType,
    subAmount: float
    totalAmount: float,
    totalFeeAmount: float,
    description: string,
    estimatedArrival: string,
    valueDate: DateTime,
    createdAt: DateTime,
    message: string,
    contact: Contact,
    status: PaymentEntryStatus,
    currency: CURRENCY,
    reason: RefundReason,
    refundType: RefundType,
    paymentMethod: string,
    tradeNumber: string,
    savingsAmount: float,
    sessionType: PaymentSessionType
    originalPayment: OriginalPayment,
    refunds: [RefundDisplayData],
    paymentRequestLink: string,
    refundLimitReached: boolean
}

Example

Running this query:

query {
    paymentActivity {
        id
        type
        subAmount
        totalAmount
        totalFeeAmount
        description
        estimatedArrival
        valueDate
        createdAt
        message
        contact {
          account {
            accountType
            displayName
          }
          email
        }
        status
        currency
        reason
        refundType
    }
}

Gives us:

{
    "data": {
        "paymentActivity": [
        {
            "id": "ckb9rcvtt006m0729ec8e7atn",
            "type": "CREATED_PAYMENT_REQUEST",
            "subAmount": 50,
            "totalAmount": 50,
            "totalFeeAmount": null,
            "description": "testing purposes 2",
            "estimatedArrival": null,
            "valueDate": "1995-10-09T00:00:00.000Z",
            "createdAt": "2020-06-10T19:40:33.952Z",
            "message": null,
            "contact": {
              "account": null,
              "email": "alexander.l@getborderless.com"
            },
            "status": "REQUESTED",
            "currency": "AUD",
            "reason": null,
            "refundType": null
        },
        {
            "id": "ckb9rdzif00710729541mulq8",
            "type": "CREATED_PAYMENT_REQUEST",
            "subAmount": 50,
            "totalAmount": 50,
            "totalFeeAmount": null,
            "description": "testing purposes 1",
            "estimatedArrival": null,
            "valueDate": "1992-10-09T00:00:00.000Z",
            "createdAt": "2020-06-10T19:41:25.377Z",
            "message": null,
            "contact": {
              "account": null,
              "email": "aaron.n@getborderless.com"
            },
            "status": "REQUESTED",
            "currency": "USD",
            "reason": null,
            "refundType": null
        }
        ]
    }
}

Common Errors

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