Skip to main content
POST
cURL
The currency of the payment is taken from the invoice — you don’t pass it. The invoice must be in open or overdue status, and amount_in_standard_unit must not exceed the invoice’s current outstanding amount. Partial payments are supported: call this endpoint multiple times until the invoice is fully paid.

Authorizations

x-api-key
string
header
required

Path Parameters

invoice_id
string<uuid>
required

ID of the invoice the payment should be applied to.

Body

application/json
payment_method_type
enum<string>
required

How the payment was collected outside of Metrifox. Must be one of:

  • cash
  • bank_transfer
  • check
Available options:
cash,
bank_transfer,
check
amount_in_standard_unit
number<float>
required

The amount paid, expressed in standard units of the invoice's currency (e.g. 100.00 means 100.00 USD on a USD invoice). Must be greater than 0 and must not exceed the invoice's current outstanding amount.

Required range: x >= 0.01
payment_date
string<date>
required

The date the payment was actually received (YYYY-MM-DD). Used as the effective date of the payment for accounting purposes.

Response

Manual payment recorded successfully

statusCode
integer
Example:

200

message
string
Example:

"Manual payment recorded successfully"

data
object

A manual payment recorded against an invoice.

meta
object
errors
object