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

Collect a customer payment

Invoice a customer and collect the payment by ACH or card, all white-labeled inside your platform.
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
Customer → invoice → payment method → collect → status
Accounts Receivable
Part of the AR Collections module
Methods
ACH or credit/debit card

1
Create the customer
Add the customer with your own internalId for them. You'll use it in every later call.
POST /gateway/customer/create · Create new customer
{
  "businessId": 3295462,
  "customer": [
    {
      "internalId": "123456",
      "companyName": "Test Customer 5",
      "firstName": "Test",
      "lastName": "Customer",
      "emailAddress": "Test01@getnada.com",
      "addressLine1": "1234 XYZ Street",
      "zipCode": "12234",
      "countryCode": "US",
      "stateCode": "AK",
      "cityId": 21,
      "isCustomer": true,
      "isSameAsBillingAddress": true
    }
  ]
}
TIP
Billing a sub-account? Set isSubCustomer to true, pass the parentCustomerId, and use billWithParent to roll invoices up to the parent.
2
Create the invoice
Create one or more invoices for the customer, with line items, dates and terms.
POST /gateway/createInvoice · Create new Invoice
{
  "businessId": "3295462",
  "internalId": "123456",
  "createInvoice": [
    {
      "invoiceNumber": "INV-1001",
      "invoiceDate": "2024-12-18",
      "invoiceDueDate": "2024-12-28",
      "emailAddress": "Test01@getnada.com",
      "term": "Net 30",
      "invoiceItems": [
        {
          "itemId": "1122",
          "name": "Monthly subscription",
          "quantity": "1.00",
          "unitPrice": 400
        }
      ]
    }
  ]
}
3
Add the customer's payment method
Save how the customer pays. For collections, use the collection type with ach or card.
POST /gateway/payment/paymentMethod · Add Payment Method
{
  "businessId": "3295462",
  "internalId": "123456",
  "type": {
    "collection": {
      "paymentMethod": {
        "ach": {
          "accountNumber": "123456789",
          "routingNumber": "987654321",
          "accountName": "John Doe",
          "accountType": "Business"
        }
      }
    }
  }
}
The response returns a paymentMethodId for the saved method.
4
Collect the payment
Collect against the invoice using its number as the reference, the amount and a transactionDate in MM/DD/YYYY format.
POST /gateway/payment · Initiate Payment
{
  "businessId": "3295462",
  "internalId": "123456",
  "reference": "INV-1001",
  "amount": "400.00",
  "transactionDate": "12/28/2024",
  "type": {
    "collection": {
      "paymentMethod": {
        "ach": {
          "accountNumber": "123456789",
          "routingNumber": "987654321",
          "accountName": "John Doe",
          "accountType": "Business"
        }
      }
    }
  }
}
A successful call returns actionCode 00 with type collection.
5
Track it to settlement
Check the collection with transactionType=Receivable.
GET /gateway/api/payouts/batch/transactionStatus?businessId=3295462&transactionType=Receivable&internalId=123456 · Retrieve Transaction Status
CHECK
With webhooks, you get Funding.Debit.Completed when the customer's funds are pulled, and Funding.Credit.Completed when they're deposited to your operating account.

Next steps#

Set up webhooks
Stop polling and get notified as payments clear.
Check your balance
See settled funds in your sub-ledger in real time.
Modified at 2026-11-26 19:11:55
Previous
Pay a Vendor
Next
Send mass payouts
Built with