# Invoices

Bill a customer for goods or services. The customer pays on the
invoice's page: `https://pay.dimepay.app/open-invoices/{token}/`
(sandbox: `https://pay.sandbox.dimepay.app/open-invoices/{token}/`).
Keep the trailing slash.

 - [GET /invoices](https://docs.dimepay.net/apis/v2/dime-v2/invoices/listinvoices.md): Returns the merchant's invoices, newest first. Cursor-paginated: pass the `token` of the last invoice you saw as `starting_after` to walk forward.
 - [POST /invoices](https://docs.dimepay.net/apis/v2/dime-v2/invoices/createinvoice.md): The customer must already exist under your merchant. Pass its `token` as `customer_id`. A line item carries either a `product_id` (a catalog product's `token`), or its own `name`, `price`, and `curren
 - [GET /invoices/{token}](https://docs.dimepay.net/apis/v2/dime-v2/invoices/retrieveinvoice.md): Takes the invoice's `token`, from create or list.
 - [DELETE /invoices/{token}](https://docs.dimepay.net/apis/v2/dime-v2/invoices/deleteinvoice.md): Deletes an `UNPAID` or `OVERDUE` invoice and its line items. Its payment page stops working, and it no longer appears in `GET /invoices`. Sends `invoice.deleted`. A `PAID` or `CANCELLED` invoice canno
