# Create and send an invoice (/en/features/invoices/create-and-send)

Build a draft with a customer, items, tax and a due date, preview what the customer gets, then send it, schedule it or issue it without sending.

You build an invoice as a draft. A draft saves on its own as you type, and you can leave it and come back. Nothing reaches the customer until you send or issue it.

## Create a draft [#create-a-draft]

<Steps>
  <Step>
    ### Open a new invoice [#open-a-new-invoice]

    In the dashboard sidebar, click **Invoices** under **Billing**, then click **Create invoice**.

    You can also open a customer and click **Create invoice** there.
  </Step>

  <Step>
    ### Choose the customer [#choose-the-customer]

    Under **Customer**, search by name, email or phone. To bill someone new, click **Add new customer**.

    An invoice is for exactly one customer. Before you can send or issue it, the customer needs a name and an email or a phone number.
  </Step>

  <Step>
    ### Add items [#add-items]

    Under **Items**, use **Find or add an item**:

    * Pick a product from your catalog. Its name and price are copied onto the invoice, and you can change the description and price for this invoice only. Picking a product that is already on the invoice adds one to its quantity.
    * Or click **Add one-time item** and type a **Description**, **Qty** and **Unit price**. Nothing is added to your catalog.

    Quantities can have up to 3 decimal places, such as 1.5 hours. An invoice can have up to 250 items.

    **More options** on an item lets you set a **Unit** (hour, kg, seat), a **Service period**, its own **Tax** and a **Discount on this item**.
  </Step>

  <Step>
    ### Add discounts, shipping and tax [#add-discounts-shipping-and-tax]

    Below the items, **Add to the whole invoice** has three buttons:

    * **Discount.** A **Percent** or an **Amount**, with an optional name, or a **Coupon** you already created. Up to 5 discounts on the whole invoice and up to 5 on each item.
    * **Shipping.** One shipping amount, with its own tax if you need it.
    * **Tax.** The tax rates for the whole invoice. See [How tax is calculated](#how-tax-is-calculated).

    The totals update as you go: **Subtotal**, **Discount**, each tax, **Shipping**, **Total** and **Amount due**.
  </Step>

  <Step>
    ### Set when and how it is paid [#set-when-and-how-it-is-paid]

    Under **Payment**:

    * **Payment due.** **On receipt**, a number of days after the invoice is issued, or **On a date**.
    * **Let the customer pay part of the amount.** The customer chooses how much to pay each time until the invoice is paid. You can set a **Smallest payment**.
    * **Split into installments.** A payment plan with dated installments. See [Payment plans](#payment-plans).
    * **Payment methods.** The methods the customer can pay this invoice with online. An invoice needs at least one.
  </Step>

  <Step>
    ### Choose how it is delivered [#choose-how-it-is-delivered]

    Under **Delivery**, pick **Send by**:

    * **Email.** To the customer's email address.
    * **SMS.** A short message with the link, to the customer's mobile number.
    * **I will share the link myself.** Nothing is sent. You get a link and a QR code to share.

    You can choose email and SMS together. You can also:

    * Add up to 5 **More recipients**. They get a copy of the email.
    * Write a **Personal message**. It shows at the top of the email.
    * Under **When**, choose **Send now** or **Schedule for later**.
  </Step>

  <Step>
    ### Review and send [#review-and-send]

    Click **Review invoice**. Check the customer, the items, the amount due, the due date and how it will be sent. **Worth knowing** lists anything unusual, such as a customer with no email.

    Then click the button that matches your choice:

    * **Send invoice** issues the invoice and sends it now.
    * **Schedule** keeps it a draft until the time you chose, then issues and sends it.
    * **Issue without sending** issues the invoice and gives you the link and QR code to share.
  </Step>
</Steps>

<Callout type="warn">
  Sending or issuing gives the invoice its number, and it can no longer be edited. Check the review
  screen before you confirm.
</Callout>

## How tax is calculated [#how-tax-is-calculated]

Tax comes from your [tax rates](/features/invoices/settings#tax-rates). Each rate has a name, a percentage, and one of two behaviours:

* **Added to prices.** The tax is added on top. EGP 100 at 14% becomes EGP 114.
* **Included in prices.** The tax is already inside the price. EGP 114 at 14% is EGP 100 plus EGP 14 tax.

**Tax for the whole invoice** applies to every item. An item can set its own tax under **More options**: choose **Set for this item** instead of **Same as invoice**. An item can have up to 5 tax rates.

Discounts are taken off before tax is worked out. Tax is rounded on each item or once per invoice, depending on **Tax rounding** in your settings.

XPay's own fee is never added to an invoice. The customer pays exactly the amount due.

## Payment plans [#payment-plans]

**Split into installments** divides the invoice total into installments. Each one has a **Description**, an **Amount** and a **Due date**.

* A plan needs at least 2 installments and can have up to 24.
* The installments must add up to the invoice total. **Split evenly** does that for you.
* The invoice as a whole is due on the date of its last installment.
* Each installment gets its own reminders and its own overdue notice.
* The customer's credit balance is not used on an invoice with a payment plan.

These are your own installments between you and your customer. No bank is involved and there is no interest.

## More options [#more-options]

**More options** at the bottom of the editor holds the rest:

| Option                         | What it does                                                                                                               |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| **Template**                   | Fills the memo, footer, custom fields and PDF language from a [template](/features/invoices/settings#templates) you saved. |
| **Memo**                       | A note shown to the customer on the invoice.                                                                               |
| **Footer**                     | Text at the bottom of every page, for terms or legal notes.                                                                |
| **Custom fields**              | Up to 4 extra details at the top of the invoice, such as a PO number.                                                      |
| **Invoice language**           | The language of the email, SMS and pay page. **Follow the customer** uses the customer's own language.                     |
| **PDF language**               | **Arabic**, **English**, or **Arabic and English** side by side.                                                           |
| **Issue date**                 | The date printed on the invoice. Left empty, it is the day the invoice is issued.                                          |
| **Reminders for this invoice** | Turn automatic reminders off for this one invoice.                                                                         |

## Preview before you send [#preview-before-you-send]

The right side of the editor shows a live **Preview** with four tabs:

* **Invoice PDF.** The document the customer downloads.
* **Email.** The email, with its subject, at **Desktop** or **Phone** size.
* **SMS.** The text message, and how many SMS credits it uses.
* **Pay page.** The page the customer opens to pay, with the payment methods they can choose. Nothing can be paid from the preview.

The email and pay page previews open once you choose a customer. **Preview in** switches the preview between Arabic and English without changing what the customer gets. For that, use **Invoice language** and **PDF language** under **More options**.

## Customer credit and earlier balances [#customer-credit-and-earlier-balances]

If the customer has a credit balance with you, it is used when the invoice is issued and shows as **Credit applied**. If they owe you an amount from before, it is added and shows as **Earlier balance owed**. If the credit covers the whole invoice, nothing is due and the invoice is marked paid at once.

See [Overpayments and customer credit](/features/invoices/getting-paid#overpayments-and-customer-credit).

## Scheduled invoices [#scheduled-invoices]

A scheduled invoice shows as **Scheduled** and stays a draft until its time. On the invoice you can click **Send now** to send it at once, or **Cancel schedule** to make it a plain draft again.

If the invoice cannot be issued at its time, for example because the customer no longer has an email or a phone number, the schedule is cancelled and the invoice stays a draft. Your team gets the **Scheduled invoice could not be sent** notification.

## Send again or share the link [#send-again-or-share-the-link]

Open an issued invoice to reach these actions:

* **Send again.** The customer gets the invoice again with the same link to pay. You can change the channels, recipients and message first.
* **Copy link** and &#x2A;*QR code.** Share the pay page yourself.
* **Download PDF.** Choose the **PDF language** and download the document.
* **Create new link.** The current link stops working right away, and anyone who has it needs the new one.

You can send up to 10 emails a day for one invoice by hand. SMS has its own limits, see [SMS limits](/features/invoices/settings#sms-limits).

## Test mode [#test-mode]

Test invoices never reach a real customer.

* An email you send from the dashboard goes only to you, with a test notice at the top.
* No SMS is sent.
* An invoice sent by API is marked as sent, but nothing is delivered.

The invoice's **Activity** says so each time.

## Where to next [#where-to-next]

<Cards>
  <Card icon="<CreditCard />" title="Getting paid" href="/features/invoices/getting-paid">
    What the customer sees and how payments land on the invoice.
  </Card>

  <Card icon="<Eye />" title="Manage and follow up" href="/features/invoices/manage-and-follow-up">
    Reminders, overdue invoices and changing an invoice after it is sent.
  </Card>

  <Card icon="<Settings />" title="Invoice settings" href="/features/invoices/settings">
    Set the defaults every new invoice starts with.
  </Card>

  <Card icon="<FlaskConical />" title="Test mode" href="/get-started/test-mode">
    How test mode works across XPay.
  </Card>
</Cards>