An invoice is the billing record for a one-time purchase. It connects a customer to a charge and contains a line item with quantity, price, tax, and any applied discounts. Create invoices through the API or the Solidgate Hub .
How invoices work
An invoice links a customer to a product charge. Before creating an invoice, you need a customer record. A customer stores identity, address, and tax information and is either an individual (B2C) or a business (B2B).
When you create an invoice, you can use an existing customer and product or create new ones. The invoice starts in draft status, where you can modify it. Once finalized, it moves to open and is ready for payment. Payment is what transitions the invoice to paid status.
Invoice flow
A typical invoice purchase follows this sequence:
- Create a product and a price.
- Create a customer and receive a customer ID.
- Create an invoice in draft status with the product price and quantity.
- Update the invoice if needed.
- Finalize the invoice to move it to open status.
- Pay the invoice using a saved payment instrument.
- Receive confirmation through a webhook when the invoice moves to paid status.
Invoice statuses
Every invoice progresses through a defined set of statuses.
| Status | Description |
|---|---|
| DRAFT | Open for changes. You can edit line items, discounts, and customer details. |
| OPEN | Finalized and waiting for payment. No further changes are possible. |
| PAID | Payment captured successfully. |
| VOIDED | Canceled by the merchant or automatically voided after the due date. |
Tax calculation
Tax is calculated automatically based on the customer’s address. When an invoice includes address information, Solidgate recalculates the tax and returns updated totals.
Discounts
You can apply one coupon per invoice. The discount is reflected in the invoice price breakdown after it is applied.
- To apply a coupon when creating an invoice, select it from the Coupon dropdown.
- To change or remove a coupon on a draft invoice, open the invoice details page and select Edit next to Items.