Skip to main content
PATCH
Update payment

Authorizations

Authorization
string
header
required

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

Path Parameters

businessId
string
required

The UUID of the business to update the invoice payment for.

paymentId
string
required

The UUID of the invoice payment to update.

Body

application/json

An object containing a subset of Payment object fields used to update an existing Payment.

external_id
string | null

An optional external identifier for the payment.

Example:

"Unique ID of the invoice payment in an external system for linking and idempotency."

customer_id
string<uuid> | null

Layer ID of the customer to associate with the payment. Pass null to clear the association. 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.

paid_at
string<date-time> | null

Timestamp when the payment was completed.

amount
integer<int64> | null

Customer payment amount, in cents.

fee
integer<int64> | null

Fee paid by business for processing of payment in positive cents.

additional_fees
object[] | null

List of additional fees associated with this payment.

method
enum<string> | null

Payment method.

Available options:
CASH,
CHECK,
CREDIT_CARD,
ACH,
CREDIT_BALANCE,
OTHER
processor
string | null

Processor used to make the payment, if any. Any processor name can be provided and will be tracked.

Example:

"STRIPE"

payment_clearing_account_identifier
Account ID · object

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

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

Allocations of this payment towards invoices or ledger accounts. Setting these allocations will override any existing allocations.

Allocates a portion of the payment to a specific invoice.

dedicated_refunds
object[] | null

Dedicated refunds to associate with this invoice payment.

tags
object[]
memo
string | null

Memo for any text you would like to associate with the invoice payment (for example, to display to end users).

metadata
object | null

Arbitrary custom metadata in JSON format with a size limit of 1KB.

Example:
reference_number
string | null

Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payments.

Response

OK.

data
object
required