menu

Originate Payments

TxB APIs allow Clients to originate payments and collections requests on-demand via US Fedwire, US ACH, and SWIFT. Our APIs are payment rail agnostic, so the same payment API can be used for any rail. Clients use these services to create customer facing payment applications (e.g., a checkout flow) or to power internal automated payment procedures (e.g., automatically paying a supplier once an invoice has been approved). After initiating a payment request, our payment status APIs allow Clients to track the progress of payment before debiting or crediting their accounts.

For context, read more about payment and collection request structures here.

Step by Step Guide (FX Payment)

Step 1 - Check the funding cost

Suppose you have a US Dollar deposit account at TxB and want to pay a European supplier in Euro (EUR 1300). Before making a thirteen-hundred Euro payment, you may want an estimated the funding cost of the payment in USD.

POST /v1/exchangeRates/query with this payload:

{
  "sourceCurrency": "USD",
  "paymentCurrency": "EUR",
  "amount": 1300,
  "amountType": "PAYMENTCURRENCY"
}

This query responds with the current USD->EUR conversion rate based on the Client's agreement with TxB. Let's say it responds by estimating the current cost of your payment to be $1,570.37, so you proceed with the payment.


Step 2 - Send paymentRequest

Now we can send the paymentRequest with POST /v1/payments/paymentRequest and the below request payload. We can include up to 500 individual payments in a single paymentRequest:

{
  "paymentRequestId": "custReq0123456789",

  // start of the fundingInfo object, which can
  // be deposit account at TxB or another bank

  "fundingInfoOrTemplateInfo": {
    "templateInfo": null,
    "fundingInfo": {
      "fundingAccount": {
        "accountNumber": "123456789011",
        "accountHolderName": "ACME.io Deposit Account",
        "relatedBanks": [
          {
            "bankRole": "HOLDER",
            "bic": "GSCRUS30"
          }
        ]
      }
      "fundingCurrency": "USD"
    }
  },

  // start of the payments array; each individual
  // payment has a unique paymentEndToEndId that
  // you can later query (for status)

  "payments": [
    {
      "paymentEndToEndId": "trackthispayment123",
      "payeeInfoOrTemplateInfo": {
        "payeeInfo": {
          "payeeAccount": {
            "accountNumber": "98876543210",
            "accountHolderName": "Supplier's Name"
            "relatedBanks": [
              {
                "bankRole": "HOLDER",
                "bic": "ROYCCAT2XXX"
              }
            ]
          }
        },
      },
      "amount": 1300
      "paymentCurrency": "EUR",
      "remittanceInfo": "I'd like to track this"
      ...
    }
  ]
}

Step 3 - Check the payment status

There are several different ways we can track a payment that is in progress or completed. Read below on the difference between a payment request and an individual payment.

First, we can confirm that the paymentRequest was accepted, meaning it has passed a technical and some business validation.

GET /v1/payments/paymentRequest/custReq0123456789 returns a "requestStatus": "ACCEPTED". If this paymentRequest were connected to a customer payment flow, we can tell the user it is now being processed. Note that this message is also passed back as a response to the original POST paymentRequest.

Now that we know the paymentRequest was successful, let's check the status of the individual payment within the request. This will tell you whether the payment is complete, is stuck for some reason (e.g., insufficient funds), or rejected (e.g., because the supplier's bank account number is not formatted correctly).

POST /v1/payments/status/query

with this request body:

{
  "idType": "PAYMENTENDTOENDID",
  "idValue": "custpid987654323"
}

returns the below, which tells you that the EUR currency market is closed right now and the payment will complete on the next business day:

{
  "paymentIdentifiers": {
    "paymentRequestId": "custReq0123456789",
    "paymentEndToEndId": "trackthispayment123",
    "gsUniquePaymentId": "gsuniquetracker123",
    ...
  },
  "paymentStatus": {
    "status": "PENDING",
    "statusReasonDescription": "Date warehoused"
    ...
  }
}

Step 4 - View full payment details

Finally, you can view full payment details which gives you both the status of the payment as well as other details like the associated FX rate.

POST /v1/payments/details/query

with this request body:

{
  "idType": "PAYMENTENDTOENDID",
  "idValue": "trackthispayment123"
}

returns the below, which tells you the payment has been completed:

{
  "paymentIdentifiers": {
    "paymentRequestId": "custReq0123456789",
    "paymentEndToEndId": "trackthispayment123",
    "gsUniquePaymentId": "gsuniquetracker123",
    ...
  },
  "paymentStatus": {
    "status": "SETTLED",
    "statusTime": "2020-12-01T16:52:42.279Z",
    ...
  },
  "creditorInfo": {...},
  "debtorInfo": {...}
  "fxInfo": {
    "paymentAmount": 1300,
    "paymentCurrency": "EUR",
    "sourceCurrency": "USD",
    "sourceAmount": 1580,
    "fxRate": 0.8228,
    "fxTimeStamp": "2020-12-01T02:52:42.279Z"
  }
}

Originate a collectionRequest

Our previous example showed how to transfer funds from a deposit account you own into an account you may not own, e.g., that of a supplier. We use a similar pattern for the reverse, to transfer funds into a deposit account you own from an account you may not own, e.g., that of a customer. Below is a summary of the elements.

Elements of a collectionRequest# per collectionRequestDescription
collectionRequestId1The unique identifier of your collectionRequest. You can query this later to get status
depositAccountInfo object1The deposit account into which you want to pull funds. Must be a TxB deposit account
collections array1- ~500The deposit account from which you want to pull money. Is typically a non-TxB deposit account owned by someone else. You can originate multiple collections with a single request
railSpecificInfoOptionalFor certain payment rails, like ACH, some additional info like 'sec' code is required

For information about payments for UK & EU open banking, learn more here.


Certain solutions and Institutional Services described herein are provided via our Marquee platform. The Marquee platform is for institutional and professional clients only. This site is for informational purposes only and does not constitute an offer to provide the Marquee platform services described, nor an offer to sell, or the solicitation of an offer to buy, any security. Some of the services and products described herein may not be available in certain jurisdictions or to certain types of clients. Please contact your Goldman Sachs sales representative with any questions. Any data or market information presented on the site is solely for illustrative purposes. There is no representation that any transaction can or could have been effected on such terms or at such prices. Please see https://www.goldmansachs.com/disclaimer/sec-div-disclaimers-for-electronic-comms.html for additional information.
Transaction Banking services are offered by Goldman Sachs Bank USA (“GS Bank”). GS Bank is a New York State chartered bank, a member of the Federal Reserve System and a Member FDIC.
GS DAP™ is owned and operated by Goldman Sachs. This site is for informational purposes only and does not constitute an offer to provide, or the solicitation of an offer to provide access to or use of GS DAP™. Any subsequent commitment by Goldman Sachs to provide access to and / or use of GS DAP™ would be subject to various conditions, including, amongst others, (i) satisfactory determination and legal review of the structure of any potential product or activity, (ii) receipt of all internal and external approvals (including potentially regulatory approvals); (iii) execution of any relevant documentation in a form satisfactory to Goldman Sachs; and (iv) completion of any relevant system / technology / platform build or adaptation required or desired to support the structure of any potential product or activity.
Mosaic is a service mark of Goldman Sachs & Co. LLC. This service is made available in the United States by Goldman Sachs & Co. LLC and outside of the United States by Goldman Sachs International, or its local affiliates in accordance with applicable law and regulations. Goldman Sachs International and Goldman Sachs & Co. LLC are the distributors of the Goldman Sachs Funds. Depending upon the jurisdiction in which you are located, transactions in non-Goldman Sachs money market funds are affected by either Goldman Sachs & Co. LLC, a member of FINRA, SIPC and NYSE, or Goldman Sachs International. For additional information contact your Goldman Sachs representative. Goldman Sachs & Co. LLC, Goldman Sachs International, Goldman Sachs Liquidity Solutions, Goldman Sachs Asset Management, L.P., and the Goldman Sachs funds available through Goldman Sachs Liquidity Solutions and other affiliated entities, are under the common control of the Goldman Sachs Group, Inc.
© 2024 Goldman Sachs. All rights reserved.