Skip to content

Payments

Retrieve payment information from Moneybird.

Working with Payments

This section covers how to interact with Moneybird’s Payments API. You can retrieve payment information for invoices and other financial documents.

Basic Operations

Get a Payment

Retrieve a payment by its ID.

$payment = $client->payments()->get('123456789');

List Payments

Get a paginated list of payments.

$payments = $client->payments()->paginate();
// Iterate through the pages
foreach ($payments as $payment) {
echo $payment->payment_date . ': ' . $payment->price;
}

Get All Payments

Get all payments at once.

$allPayments = $client->payments()->all();
// Iterate through all payments
foreach ($allPayments as $payment) {
echo $payment->payment_date . ': ' . $payment->price;
}

Payment Properties

When working with payments, you’ll have access to the following properties:

PropertyTypeDescription
idstringUnique identifier
administration_idstringID of the administration the payment belongs to
invoice_idstringID of the invoice this payment is for
invoice_typestringType of invoice (e.g., ‘SalesInvoice’, ‘PurchaseInvoice’)
financial_account_idstringID of the financial account the payment was made from/to
financial_mutation_idstringID of the related financial mutation
transaction_identifierstringIdentifier for the transaction
pricestringAmount of the payment
price_basestringBase price amount
payment_datestringDate the payment was made
currencystringCurrency of the payment
payment_methodstringMethod used for payment
created_atstringISO 8601 timestamp of when the payment was created
updated_atstringISO 8601 timestamp of when the payment was last updated

Note: See the official API reference for the complete list of available properties.

Further reading