1. Recipies
  • Welcome
  • Use Cases
  • Recipies
    • Connect with Vendor
    • Pay a Vendor
    • Collect a customer payment
    • Send mass payouts
    • Fix or cancel a payout
    • Set up webhooks
  • API Reference
    • AP Payouts (Accounts Payable)
      • Vendor (Recipient)
        • Create new vendor
        • Update Vendor
        • View Vendor Details
      • Payments (Payouts)
        • Initiate Payment
        • Add Payment Method
      • Bills
        • Create new Bill
      • Country State City
        • GET City List by State Name/ID/Code
    • AR Collection (Accounts Receivable)
      • Invoices
        • Create new Invoice
      • Customers
        • Create new customer
      • Payment (Collection)
        • Add Payment Method
        • Initiate Payment
    • Simplified Payouts
      • Send Payouts
      • Resend Payout Email Notification
      • Cancel Payout
    • Transactions
      • Retrieve Transaction Status
    • Webhooks
      • Register for an Event
      • Get Webhook Registration Status
    • Sub-Ledger
      • Retrieve Balance
  1. Recipies

Pay a Vendor

Pay any vendor, contractor or supplier for a bill, from onboarding the vendor to confirming the money arrived.
INFO
Before you start: your business is registered with Fintainium and you have your businessId and API key. Send the API key in the sessionKey header of every call below.
5 steps
Vendor → bill → payment method → payment → status
Accounts Payable
Part of the AP Payouts module
Rails
ACH, check or Rapid Pay

1
Create the vendor
Add the vendor to the Fintainium Network with your own internalId for them. You'll use that internalId in every later call, so pick something stable, like the vendor ID from your ERP. Set inviteVendor to true to email them an invite.
POST /gateway/vendor/create · Create new vendor
{
  "businessId": 3295462,
  "vendor": [
    {
      "internalId": "1005",
      "companyName": "Test Company A",
      "vendorName": "Test Company A",
      "printNameOnCheck": "Test Company A",
      "firstName": "Test",
      "lastName": "Vendor",
      "emailAddress": "abc01@getnada.com",
      "addressLine1": "10 Lawrence Street",
      "zipCode": "50020",
      "countryCode": "US",
      "stateCode": "AK",
      "cityId": 18086,
      "inviteVendor": true,
      "maskTaxId": true
    }
  ]
}
TIP
cityId is a Fintainium city ID. Look it up with GET City List by State using the state code and a searchKey.
2
Create a bill for the vendor
A bill is the payable record your payment settles. Pass the vendor's internalId and one or more bills.
POST /gateway/payment/createBill · Create new Bill
{
  "businessId": "1048273",
  "internalId": "1005",
  "createBill": [
    {
      "billNumber": "45678",
      "billPO": "67856",
      "billDate": "2024-02-14",
      "billDueDate": "2024-02-21",
      "term": "10 Days",
      "totalTax": "23.00",
      "itemDetails": [
        {
          "itemName": "Marketing Expense",
          "description": "Marketing of June",
          "quantity": "2",
          "unitPrice": 1500.00
        }
      ]
    }
  ]
}
The response returns each bill's reference and amount under billDetail. Keep the reference for step 4.
3
Add the vendor's payment method
Save how the vendor gets paid. For payouts, use the deposit type with one of ach, rapidPay or check.
POST /gateway/payment/paymentMethod · Add Payment Method
{
  "businessId": "1048273",
  "internalId": "1005",
  "type": {
    "deposit": {
      "paymentMethod": {
        "ach": {
          "accountNumber": "123456789",
          "routingNumber": "987654321",
          "accountName": "John Doe",
          "accountType": "Business"
        }
      }
    }
  }
}
NOTE
Skip this step if the vendor will choose their own payout method from the invite email.
4
Initiate the payment
Pay the bill. Use the bill's reference, the amount, a transactionDate in MM/DD/YYYY format, and one payment method under deposit.
POST /gateway/payment · Initiate Payment
{
  "businessId": "1048273",
  "internalId": "1005",
  "reference": "45678",
  "amount": "3023.00",
  "transactionDate": "02/21/2024",
  "type": {
    "deposit": {
      "paymentMethod": {
        "ach": {
          "accountNumber": "123456789",
          "routingNumber": "987654321",
          "accountName": "John Doe",
          "accountType": "Business"
        }
      }
    }
  }
}
A successful call returns actionCode 00 and "Payment details received successfully, payment processing in progress".
5
Track it to completion
Check where the payment is with transactionType=Payable and the vendor's internalId, or get notified automatically with webhooks.
GET /gateway/api/payouts/batch/transactionStatus?businessId=1048273&transactionType=Payable&internalId=1005 · Retrieve Transaction Status
The response includes status, statusId, paymentMethod and paymentReferenceNumber for reconciliation.

Next steps#

Get notified with webhooks
Receive Funding.Credit.Completed when funds reach the vendor.
Paying many vendors at once?
Use Simplified Payouts to pay in bulk with one call.
Modified at 2026-11-26 19:11:30
Previous
Connect with Vendor
Next
Collect a customer payment
Built with