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

# Invoice Sync Settings  

> Set when invoices are created in Pennylane, whether they are drafts or finalised, and how order data appears on them.

These settings control the invoice itself — when it's created, what state it's created in, and which Shopify values appear on it.

***

## Invoice Sync Rules

### Automatically create (Pennylane) Invoices

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/Eycc5KJ7sztrBTp4/images/Screenshot-2026-07-29-133258.jpeg?fit=max&auto=format&n=Eycc5KJ7sztrBTp4&q=85&s=3b91a58d3cba6758be5694606ceec1ea" alt="Screenshot 2026 07 29 133258" width="877" height="459" data-path="images/Screenshot-2026-07-29-133258.jpeg" />
</Frame>

Leave the toggle **on** to have invoices created automatically. Switching it off stops invoice creation entirely, while leaving your other settings in place.

### Order Status

This setting decides **when** the integration creates the invoice, based on the status of the Shopify order.

<AccordionGroup>
  <Accordion title="When Fulfilled (after shipping)">
    Choose this option to create a Pennylane invoice when the Shopify order is marked as **Fulfilled**. This usually happens after the order has been shipped. Use this if you want to create invoices only after products are sent to the customer.

    **Use this when** you ship before invoicing, sell made-to-order goods, or hold stock for long periods. Cancelled orders never reach Pennylane at all.
  </Accordion>

  <Accordion title="When Paid (payment recorded in Shopify)">
    Choose this option to create a Pennylane invoice as soon as the Shopify order is marked as **Paid**. The invoice is created after the payment is received, even if the order hasn't been shipped yet. This is a good option if you want to record sales quickly.

    **Use this when** you offer payment methods that don't settle at checkout — bank transfer, invoice terms, cash on delivery — and you only want confirmed sales in Pennylane.
  </Accordion>

  <Accordion title="When Created (order created in Shopify) ">
    Choose this option to create a Pennylane invoice as soon as a new order is received in Shopify. It's ideal for Cash on Delivery (COD) orders or if you want invoices to be created immediately.

    **Use this when** you want your books to reflect sales immediately. This suits most online stores, where payment is taken at checkout.
  </Accordion>
</AccordionGroup>

<Note>
  Only one option applies. Choose the point in your process that you'd call "the sale has happened" — your *expert-comptable* may have a preference here.
</Note>

### Invoice Type in Pennylane

This decides what state the invoice arrives in.

| Option                        | What it means                                                                                             |
| ----------------------------- | --------------------------------------------------------------------------------------------------------- |
| **Draft Invoice** *(default)* | The invoice is created as a draft. It can still be edited or deleted in Pennylane before it is validated. |
| **Finalised Invoice**         | The invoice is issued immediately and given a number. It cannot be edited afterwards.                     |

<Info>
  **Choose Draft** if you want to review invoices before they are issued. This is the safer starting point while you're checking that the integration produces what you expect.

  **Choose Finalised** if you're confident in the setup and want invoices issued without a manual step.
</Info>

<Warning>
  A finalised invoice cannot be corrected. Any mistake has to be resolved with a credit note (*avoir*). Test thoroughly on drafts before switching.
</Warning>

<Warning>
  **Credit notes from Shopify refunds only work with finalised invoices.** If you leave the invoice type as *Draft*, the refund option below has no effect.
</Warning>

***

## Additional Options

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/Eycc5KJ7sztrBTp4/images/Screenshot-2026-07-29-133010.jpeg?fit=max&auto=format&n=Eycc5KJ7sztrBTp4&q=85&s=cdf26d89c9a80b00e03e0a573fd9b947" alt="Screenshot 2026 07 29 133010" width="903" height="339" data-path="images/Screenshot-2026-07-29-133010.jpeg" />
</Frame>

### Include shipping charges

Enable this option to add shipping charges from the Shopify order to the Pennylane invoice. After enabling it, select any product from the list. The integration will use that product to add the shipping charge automatically.

### Pennylane Credit Notes from Shopify Refunds

When this is **on**, issuing a refund in Shopify creates a credit note (*avoir*) in Pennylane.

You select a Pennylane product to represent refunds. The **amount comes from the Shopify refund** — the product is only there to give the credit note a line to sit on.

<Warning>
  This works **only with finalised invoices**. A draft invoice has not been issued, so there is nothing to credit. If you're using drafts, edit or delete the draft in Pennylane instead.
</Warning>

***

## Invoice Field Mappings

### How should invoice data fields be mapped?

This decides which Shopify values appear on the invoice.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/Eycc5KJ7sztrBTp4/images/Screenshot-2026-07-29-132922.jpeg?fit=max&auto=format&n=Eycc5KJ7sztrBTp4&q=85&s=5648044e91501a7962619c0232910318" alt="Screenshot 2026 07 29 132922" width="852" height="663" data-path="images/Screenshot-2026-07-29-132922.jpeg" />
</Frame>

<Note>
  **What happens on each sync**, in order:

  1. The customer is found in Pennylane, or created if needed.
  2. The products are found, following your Product Sync Rules.
  3. The invoice is created using the settings on this page.

  If step 1 or 2 fails, the invoice isn't created.
</Note>

The mappings are grouped into three tabs:

<CardGroup cols={3}>
  <Card title="References" icon="hashtag">
    Labels, references, and the invoice date.
  </Card>

  <Card title="Pdf" icon="file-pdf">
    What appears on the invoice document itself.
  </Card>

  <Card title="General" icon="sliders">
    Remaining invoice-level fields.
  </Card>
</CardGroup>

### References tab

| Pennylane field        | Default source | What it's for                                                                               |
| ---------------------- | -------------- | ------------------------------------------------------------------------------------------- |
| **Accounting Label**   | Order Name     | Internal accounting label for the invoice. This is what your accountant sees in the ledger. |
| **External Reference** | Order Name     | A unique reference linking the Pennylane invoice back to the Shopify order.                 |
| **Date d'émission**    | Create Date    | The invoice issue date, in `YYYY-MM-DD` format.                                             |

<Tip>
  Leave **External Reference** mapped to Order Name. It's what lets you find the Shopify order behind any invoice, and it's the first thing you'll want when something looks wrong.
</Tip>

<Note>
  The invoice date follows the **Order Status** setting above. If you invoice *When Created*, the date is the order date; if you invoice *When Paid* or *When Fulfilled*, consider whether the create date is still the right one for your books.
</Note>

### Reading the table

| Column             | What it shows                                                                                         |
| ------------------ | ----------------------------------------------------------------------------------------------------- |
| **Shopify Fields** | Where the value comes from. Pick a field from the dropdown, or select **Use Text** for a fixed value. |
| **Status**         | **Mapped** means a source is set. **Not mapped** means the field is left empty.                       |
| **Action**         | **Clear** removes a mapping.                                                                          |

Need a value Shopify doesn't hold? Select **Create new Shopify field** to add one, then map it here.

### Making changes

1. Open the tab you need, and use **Search** if the list is long.
2. Choose a Shopify field, or select **Use Text** for a fixed value.
3. Select **Clear** to remove a mapping.
4. Select **Save**.

<Note>
  Changes apply to invoices created **after** you save. Invoices already in Pennylane are not changed.
</Note>
