Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Content-Type must be set to application/json
Path Parameters
The UUID of the business to fetch invoice payments for
Query Parameters
Filter payments by payment method. Supported values are CASH
, CHECK
, CREDIT_CARD
, ACH
, CREDIT_BALANCE
, OTHER
.
Filter payments by payment date. Payments made on or after this date will be included. ISO 8601 date format.
Filter payments by payment date. Payments made on or before this date will be included. ISO 8601 date format.
Filter payments by external ID (unique idempotency key). This will always yield zero or one result.
Comma-separated list of reference numbers to filter invoice payments by. Only invoice payments with reference numbers matching any value in this list will be returned.
Filter payments by whether they are included in a payout. Set to true
to show only payments that are part of a payout, false
to show only payments not in any payout.
Filter invoice payments by match status. If true, only matched payments will be returned. If false, only unmatched payments will be returned. Invoice payments are considered matched if they are matched directly, or if they are included in a payout that is matched.
Response
Unique identifier for the payment.
Unique ID of the invoice payment in an external system for linking and idempotency.
"payment-1"
Timestamp when the payment was completed.
Payment method.
CASH
, CHECK
, CREDIT_CARD
, ACH
, CREDIT_BALANCE
, OTHER
Fee paid by business for processing of payment in positive cents.
Identifier for the ledger account to use if this is a prepayment. ID of the account
The the ledger account to use for the payment (overrides the default determined by the payment method), if specified.
List of additional fees associated with this payment.
Customer payment amount, in cents.
Processor used to make the payment, if any. Any processor name can be provided and will be tracked.
"STRIPE"
Timestamp when the payment was imported into Layer.
List of payment allocations associated with this payment.
Refund allocations associated with this invoice payment
[]
Payouts associated with this payment.
List of tags associated with this transaction
[]
Memo for any text you would like to associate with the invoice payment (for example, to display to end users).
Arbitrary custom metadata in JSON format with a size limit of 10KB
{
"custom_field": "value",
"any valid json": "below 10kb",
"nested": { "meaning of life": 42, "array": [] }
}
Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments.