Invoice Payments
Record a Payment
This endpoint records a payment made towards an invoice in Layer.
POST
/
v1
/
businesses
/
{business_id}
/
invoices
/
payments
Path Parameters
business_id
string
requiredID of the Business the invoice is associated with.
Body
external_id
string
External ID for the payment within your platform. Idempotency key.
paid_at
ISO8601 timestamp
requiredDate of the payment.
method
enum
requiredPayment method. Possible values are: CASH
, CHECK
, CREDIT_CARD
, ACH
, REDEEMED_PREPAYMENT
,
OTHER
fee
integer
requiredFee paid by business for processing of payment in positive cents.
additional_fees
array of InvoicePaymentFee objects
amount
integer
requiredPayment amount, in cents.
processor
string
Processor used to make the payment, if any.
Any processor name can be provided and will be tracked.
Supported processors (STRIPE
, SHOPIFY
) will have additional asset balance tracking.
invoice_payments
array of InvoicePaymentAllocation objects
requiredResponse
Returns the created Invoice Payment Object