Returns information about a payment
GET
/payments/:id(.:format)
Example: returns a single payment
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/payments/446241760027346282.json?
data = {}
RestClient.get(
"https://moneybird.com/api/v2/123/payments/446241760027346282.json", data,
{ authorization: "Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" }
)
Response
Status: 200 OK
{
"id": "446241760027346282",
"administration_id": 123,
"invoice_type": "SalesInvoice",
"invoice_id": "446241759827068250",
"financial_account_id": "446241760013714790",
"user_id": 1,
"payment_transaction_id": null,
"transaction_identifier": null,
"price": "363.0",
"price_base": "363.0",
"payment_date": "2025-02-17",
"credit_invoice_id": null,
"financial_mutation_id": "446241760018957673",
"ledger_account_id": "446241760003229029",
"linked_payment_id": null,
"manual_payment_action": null,
"created_at": "2025-02-17T10:48:47.165Z",
"updated_at": "2025-02-17T10:48:47.165Z"
}
Example: returns 404 when payment does not exist
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/payments/34123123.json?
data = {}
RestClient.get(
"https://moneybird.com/api/v2/123/payments/34123123.json", data,
{ authorization: "Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" }
)
Response