Limited Release
An invoice is a billing document that charges customers for their usage during a billing period. PayPal’s Usage-based Billing automatically creates these invoices when billing periods end or when subscriptions are cancelled. You can:
- List invoices to manage your billing operations:
- View all invoices with filters and create customer dashboards to track payment history.
- Reconcile billing data with your internal systems for accurate record keeping.
- Get the invoice details of a specific customer and display invoice information to the customer.
List invoices
Use a valid access token and make a GET call to the/v1/commerce/billing/invoices endpoint. Include the following query parameters:
| Parameter | Action |
|---|---|
pagestring | Set the page number for paginated results. |
per_pagestring | Set the number of invoices to return per page. |
issuing_date_fromRequired, string | Set the start date to filter invoices issued on or after this date (YYYY-MM-DD). |
issuing_date_toRequired, string | Set the end date to filter invoices issued on or before this date (YYYY-MM-DD). |
statusstring | Filter invoices by status. Possible values: DRAFT, FINALIZED |
payment_statusstring | Filter invoices by payment status. Possible values: PENDING, FAILED, SUCCEEDED |
external_customer_idstring | Set to the external_id returned when you registered the customer to filter invoices for that customer. |
200 OK response. The response includes the following parameter:
| Parameter | Description | Further action |
|---|---|---|
idstring | Unique identifier for the invoice. | Use this id when retrieving invoice details. |
Get invoice details
Use a valid access token and make a GET call to the/v1/commerce/billing/invoices/{invoice_id} endpoint.
Path parameter: invoice_id is the id returned in the List invoices response.
200 OK response with detailed invoice information. You can send or show the invoice information in the appropriate format to your customer.