Search⌘ K

List and Delete a Payment Record

Explore how to manage payment records using the FreshBooks API in JavaScript. Learn to list all payments, retrieve details of a single payment, and delete payment records effectively. This lesson helps you perform these actions using appropriate API endpoints, enhancing your ability to handle invoicing and payment workflows programmatically.

In this lesson, we see three operations on payments. The endpoints are given below:

  • List all payments: /accounting/account/{ACCOUNT_ID}/payments/payments

  • Get and delete a single payment: /accounting/account/{ACCOUNT_ID}/payments/payments/{payment_id}

List all payment records

Let’s get all the payment records in the code widget below. This endpoint does not take any parameters.

Note: Please use the "Regenerate the Access ...