Skip to main content
POST
Bulk create invoice payments

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json.

Path Parameters

businessId
string<uuid>
required

The UUID of the business to create payments for.

Body

application/json

Array of payments to create. Each payment follows the same schema as the single payment creation endpoint.

paid_at
string<date-time>
required

The timestamp when the payment was made.

method
enum<string>
required

Payment method.

Available options:
CASH,
CHECK,
CREDIT_CARD,
ACH,
CREDIT_BALANCE,
OTHER
amount
integer<int64>
required

Payment amount in cents.

invoice_payments
(Invoice Payment Allocation · object | Ledger Account Allocation · object)[]
required

Each element in this array is either an InvoicePaymentAllocation (allocating to an invoice) or an InvoicePaymentAllocationToLedgerAccount (allocating directly to a ledger account). The type is determined by the fields present: if account is provided, it is treated as a ledger account allocation; otherwise, it is treated as an invoice allocation.

Allocates a portion of the payment to a specific invoice.

external_id
string | null

External identifier for the payment, used for idempotency.

customer_id
string<uuid> | null

Layer ID of the customer to associate with the payment. Lets you tag a payment with a customer even before it is allocated to any invoice (for example, a standalone deposit). When the payment has invoice allocations, the customer must match the customer on every allocated invoice, otherwise the request is rejected with a 400.

customer_external_id
string | null

External ID of the customer to associate with the payment. Can be specified in place of customer_id.

fee
integer<int64> | null

Fee amount in cents.

additional_fees
(Standard fee · object | Loan repayment fee · object)[]

Additional fees associated with the payment.

Parameters for creating an additional fee on an invoice payment. The fee type is optional and defaults to STANDARD; use LOAN_REPAYMENT to record a loan repayment as part of the payment.

processor
string | null

Payment processor name.

payment_clearing_account_identifier
Account ID · object

The ledger account to use for the payment (overrides the default determined by the payment method).

redemption_account
Account ID · object

Account to use for credit balance redemptions. Only applicable when method is CREDIT_BALANCE.

dedicated_refunds
object[]

Dedicated refunds to associate with this invoice payment.

tags
object[]

Tags to apply to the payment.

memo
string | null

Memo for any text you would like to associate with the payment.

metadata
object | null

Arbitrary custom metadata in JSON format.

reference_number
string | null

Any (typically user-visible) identifier you would like to associate with the payment.

Response

Payments created or updated successfully. Returns the created/updated payment objects in the same order as the request.

data
object[]
required