Invoicing overview

Invoicing overview
Understand how invoices work in Solidgate Billing, including invoice structure, statuses, and the payment flow

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:


  1. Create a product and a price.
  2. Create a customer and receive a customer ID.
  3. Create an invoice in draft status with the product price and quantity.
  4. Update the invoice if needed.
  5. Finalize the invoice to move it to open status.
  6. Pay the invoice using a saved payment instrument.
  7. Receive confirmation through a webhook when the invoice moves to paid status.

Invoice statuses

Every invoice progresses through a defined set of statuses.

Invoice statuses
StatusDescription
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.

Pass a coupon_code or coupon_id in the create invoice API v2 or update invoice API v2 request to apply a discount. To remove an applied discount, send an empty discounts value in the update request.
  • 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.

Looking for help? Contact us
Stay informed with Changelog