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

> Configure when Stripe invoices should create invoices or orders in e-conomic, and map invoice data fields correctly.

Use these settings to control when invoices or orders should be created in e-conomic and how Stripe invoice data should be mapped.

## Invoice Sync Rules

Choose when the integration should trigger invoice creation.

You can create the e-conomic document when the Stripe invoice is:

* Sent
* Paid

Then choose what should be created in e-conomic:

* Draft Invoice
* Booked Invoice
* Draft Order

After selecting the correct stages, click **Save**.

<Frame>
  ![Invoice Sync Rules](https://framerusercontent.com/images/224WhQ2fzHkjjm1WVeTVi84us.png?height=578\&width=1453)
</Frame>

## Invoice Or Order Field Mappings

Use the **Invoice/Order field mappings** tab to control how Stripe payment and billing information appears on your e-conomic invoices.

This includes mapping fields such as:

* Delivery Address
* Delivery City
* Delivery Country
* Delivery Postal Code
* Delivery Date
* Delivery Terms

<Frame>
  ![Invoice Or Order Field Mappings](https://framerusercontent.com/images/fXtdeYTGlqu8hDe7th6bL4RDE.png?height=909\&width=1901)
</Frame>

## Edit A Mapping

Click **Edit** next to the field you want to update.

Then choose the correct Stripe field from the dropdown list.

<Frame>
  ![Edit Invoice Field Mapping](https://framerusercontent.com/images/6hmrQUlXUi7piLFI6NYed9MEO8.png?height=903\&width=1898)
</Frame>

## Save The Mappings

After reviewing your mappings, click **Save Mappings**.

<Frame>
  ![Save Invoice Mappings](https://framerusercontent.com/images/KR7onbI8rYgmpB3IU4i9NI8jd70.png?height=905\&width=1900)
</Frame>

<Note>
  Map similar field types between Stripe and e-conomic to ensure accurate data transfer.
</Note>

## How Invoice Sync Runs

When an invoice sync runs, the integration follows this order:

1. Check for the customer in e-conomic and create the customer if needed
2. Check for products and handle them according to your product sync settings
3. Create the invoice or order using your selected invoice sync settings

<Card title="Got Unique Integration Needs?" href="https://custom.cloudify.biz" cta="Advanced Integration Settings" arrow={true}>
  Our custom team can build tailored integrations, specialised data mappings, and workflow automations to match your business processes.
</Card>
