> ## 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

## Setting Up Invoice Sync Preferences

These settings control **when** an invoice is created in Tripletex, **what form** it takes, and **which extra details** (shipping, refunds) carry across from Shopify.

***

### When to Create a Tripletex Invoice

This decides the point in the Shopify order's life at which the integration creates the invoice in Tripletex.

* **When Fulfilled (after shipping)** — The invoice is created once the Shopify order is marked **Fulfilled**, i.e. after you've shipped. Choose this if you only want to invoice orders that have actually gone out.
* **When Paid (payment recorded in Shopify)** — The invoice is created as soon as Shopify records the order as **Paid**, whether or not it has shipped. Choose this for faster financial record-keeping.
* **When Created (order created in Shopify)** *(default)* — The invoice is created the moment a new order lands in Shopify. Suits Cash-on-Delivery (COD) orders, or any case where you want the record in Tripletex right away.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/nmQz1fodEsCQeJ80/images/Screenshot-2026-07-03-022108.jpeg?fit=max&auto=format&n=nmQz1fodEsCQeJ80&q=85&s=0a62cd98c8bd53598a0f8317927df44f" alt="Screenshot 2026 07 03 022108" width="703" height="363" data-path="images/Screenshot-2026-07-03-022108.jpeg" />
</Frame>

***

### Invoice Type in Tripletex

This sets what the integration creates in Tripletex for each order.

* **Draft Invoice** — Creates an editable draft invoice. Nothing is finalized — you review and post it in Tripletex yourself. Choose this if you usually adjust invoices before they go out.
* **Draft Order** — Creates a draft order rather than an invoice. Choose this when your workflow starts from an order in Tripletex (for example, so you can pick, confirm, or invoice it there on your own schedule).

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/nmQz1fodEsCQeJ80/images/Screenshot-2026-07-03-022159.jpeg?fit=max&auto=format&n=nmQz1fodEsCQeJ80&q=85&s=73892e4cef3ce4ab2609b4034b9b9b3f" alt="Screenshot 2026 07 03 022159" width="681" height="421" data-path="images/Screenshot-2026-07-03-022159.jpeg" />
</Frame>

***

### Additional Options

Optional settings that control how extra order details carry into Tripletex. Each option reveals a dropdown when enabled, so you can tell the integration exactly how to handle it.

* **Include shipping charges** — Carries the Shopify shipping cost onto the Tripletex invoice so it appears correctly. When enabled, use the dropdown to choose how shipping is represented in Tripletex.
* **Tripletex Credit Notes from Shopify Refunds** — Creates a credit note in Tripletex whenever a Shopify order is refunded, keeping refunds reflected in your accounting. When enabled, use the dropdown to configure how refunds are handled in Tripletex.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/nmQz1fodEsCQeJ80/images/Screenshot-2026-07-03-022302.jpeg?fit=max&auto=format&n=nmQz1fodEsCQeJ80&q=85&s=9796926405e607049d63e86393eea825" alt="Screenshot 2026 07 03 022302" width="697" height="624" data-path="images/Screenshot-2026-07-03-022302.jpeg" />
</Frame>

<Note>
  Configure these settings to streamline shipping charges, credit note creation from Shopify refunds, and automated invoice emails to your customers.
</Note>

***

### How Should Invoice Data Fields Be Mapped?

Set how Shopify order information appears on your Tripletex invoices. For each **Tripletex field**, choose the **Shopify field** it should pull from, use **Use Text** to enter a fixed value, or click **Clear** to remove a mapping. Add fields that aren't listed with **Create new Shopify field**. Click **Save** when done.

<Note>
  When an invoice sync runs, the integration works in this order:

  1. Checks for the customer in Tripletex (and creates one if needed)
  2. Checks for the products (handled by your Product Sync Rules)
  3. Creates the invoice with the settings above
</Note>

Fields are grouped across the **Order**, **General**, and **Invoice** tabs, and the **Status** column shows whether each is **Mapped** or **Not mapped**.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/nmQz1fodEsCQeJ80/images/Screenshot-2026-07-03-022345.jpeg?fit=max&auto=format&n=nmQz1fodEsCQeJ80&q=85&s=648ba768bf498e80ae6b803cbc7c5c68" alt="Screenshot 2026 07 03 022345" width="847" height="789" data-path="images/Screenshot-2026-07-03-022345.jpeg" />
</Frame>

**Order tab fields**

| Tripletex Field              | Description                                                                                               |
| ---------------------------- | --------------------------------------------------------------------------------------------------------- |
| Delivery Address Line 1      | Line 1 of the order delivery address.                                                                     |
| Delivery Address Line 2      | Line 2 of the order delivery address.                                                                     |
| Delivery Address City        | City of the order delivery address.                                                                       |
| Delivery Address Postal Code | Postal code of the order delivery address.                                                                |
| Delivery Address Country     | Country of the order delivery address.                                                                    |
| Order Date                   | Order date, in \`YYYY-MM-DD\` format. Defaults to today if not mapped.                                    |
| Delivery Date                | Delivery date, in \`YYYY-MM-DD\` format. Required by the Tripletex API — defaults to today if not mapped. |
| Comment to customer          | Comment printed on the invoice generated from this order.                                                 |
| Packing note                 | Delivery comment on the order.                                                                            |

The **General** and **Invoice** tabs contain additional fields you can map the same way.

<Tip>
  Delivery date defaults to today if left unmapped. Map it to the correct Shopify field if your Tripletex workflow depends on accurate delivery dates.
</Tip>
