> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zafapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoices

> Send payment URLs to customers via email — no coding required

## Overview

Invoices let you send payment requests to customers by email. Create an invoice from the merchant dashboard, set the amount or add line items, and send it to the customer's email address.

No API integration is required — everything is managed through the dashboard.

<Info>
  To use existing products in your invoice line items, [create your products and prices](/en/guide/products) first.
  You can also create invoices with a fixed amount without registering products.
</Info>

## Creating an Invoice

<Steps>
  <Step title="Navigate to Invoices">
    Go to **Invoices** in the sidebar menu and click **Create Invoice**.
  </Step>

  <Step title="Enter Customer Information">
    Enter the customer's **email address** (required) and **name** (optional).

    If the name is left empty, the email greeting will use "Dear Customer" instead.
  </Step>

  <Step title="Set Currency and Amount">
    Select the **currency** and specify the amount using one of these methods:

    * **Fixed Amount** — enter the amount directly
    * **Line Items** — select products or add custom items; the total is calculated automatically

    For line items, you can search and select existing products, or click "Create new product" for manual entry.
  </Step>

  <Step title="Configure Options">
    * **Description** — optional invoice description
    * **Payment Deadline** — number of days until expiry after sending (default: 30 days)
  </Step>

  <Step title="Create Draft or Send">
    * **Create Draft** — saves the invoice as a draft (can be sent later)
    * **Create & Send** — creates the invoice and immediately sends the email to the customer
  </Step>
</Steps>

## Statuses

| Status    | Description                              |
| --------- | ---------------------------------------- |
| Draft     | Created but not yet sent. Editable       |
| Sent      | Email sent to customer. Awaiting payment |
| Paid      | Customer has completed payment           |
| Expired   | Past the payment deadline                |
| Cancelled | Manually cancelled by merchant           |

## Managing Invoices

### Send / Resend

Click **Send** or **Resend** on the detail page to send the invoice email to the customer. When resending, the payment deadline is recalculated.

### Cancel

You can cancel invoices in **Draft** or **Sent** status. When a customer tries to access a cancelled invoice's payment URL, they will see a cancellation message.

### Copy Payment URL

Copy the payment URL from the detail page to share it through channels other than email (e.g., messaging apps).

## Customer Payment Flow

1. Customer clicks the **Pay Now** button in the email
2. Invoice details (amount, line items, deadline) are displayed
3. Customer clicks **Pay** to proceed to the payment form
4. Customer enters card information and completes payment

Payment URL format: `https://pay.zafapay.com/i/{invoice_id}`

## Email Notifications

### Invoice Email

When an invoice is sent, the customer receives an email containing:

| Item    | Description                                                     |
| ------- | --------------------------------------------------------------- |
| From    | `invoice@zafapay.com`                                           |
| Subject | `Invoice from [merchant name]` (e.g., Invoice from ZAFA PAY)    |
| Content | Merchant logo, amount, line items, pay button, payment deadline |

The email language is based on the merchant's language setting.

### Payment Receipt

When payment is completed, a receipt email is automatically sent to the customer if **Send receipt to customer** is enabled in the merchant settings.

## Supported Currencies

| Currency         | Code |
| ---------------- | ---- |
| US Dollar        | USD  |
| Japanese Yen     | JPY  |
| Euro             | EUR  |
| Singapore Dollar | SGD  |
| Philippine Peso  | PHP  |

<Info>
  Available currencies may vary depending on your connected payment network. Please contact support for details.
</Info>

## Checkout Page Customization

Customize the payment page and email appearance with your logo and brand color.

Configure these from **Merchants** > **Edit Merchant** in the sidebar:

| Setting         | Effect                                                 |
| --------------- | ------------------------------------------------------ |
| **Logo**        | Displayed on the payment page and in emails            |
| **Brand Color** | Applied to the pay button and amount display in emails |

<Tip>
  Logo and brand color settings are shared between payment links and invoices.
</Tip>
