Get and Delete a Payment Record
Learn to list payment records, get a single payment record, and delete it using the FreshBooks API.
We'll cover the following
Overview
In this lesson, we see three operations on payments. The endpoints are given below:
- List all payments:
{base_url}/accounting/account/{ACCOUNT_ID}/payments/payments
- Get and delete a single payment:
{base_url}/accounting/account/{ACCOUNT_ID}/payments/payments/{payment_id}
These endpoints are very simple. Let’s see their functionality.
List all payments records
In the code widget below, we make an HTTP GET
request to the URL specified in line 4. This endpoint does not take any parameters.
Let’s get all the payment records in the code widget below.
Get hands-on with 1400+ tech skills courses.