borderless Docs

borderless Docs

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

›Mutations

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

generatePayMeRequest

Overview

This mutation takes in a slug (PayMe handle) and generates a payment request on behalf of a business for a specific amount. Used for pay-me page.

Special Considerations

  • Only gets the first membership/account associated with the input slug.
  • The slug passed in must be a Business account.

Inputs

GeneratePayMeRequestArgs

Required Data

slug: string amount: float description (optional): string

Returns

Promise<GeneratePayMeRequestResult>

A promise containing the following data:

paymentRequestId: ID

Example

Running this mutation:

mutation { generatePayMeRequest (data: { slug: "pay-me" amount: 50 description: "testing" }) { paymentRequestId } }

Gives us:

{
  "data": {
    "generatePayMeRequest": {
      "paymentRequestId": "ckb9th6fv00cg0716rzpy15a6"
    }
  }
}

Common Errors

When running this mutation some of the common errors encountered include:

  • This PayMe Handle is not in use. (I-5101)

    • The PayMe handle you requested from is not in use.
  • Generating payments to personal accounts is not currently supported. (I-5102)

    • You can only pay a business account currently.
← declinePaymentRequestrequestPayment →
  • Overview
  • Special Considerations
  • Inputs
    • GeneratePayMeRequestArgs
  • Returns
    • Promise<GeneratePayMeRequestResult>
  • Example
  • Common Errors
borderless Docs
Docs
Account SetupAccount ServicesVerificationPaymentsRefundsDeveloper Tools
More
LoginBlogGitLabLinkedInInstagramTwitter
Facebook Open Source
Copyright © 2022 borderless