# Profile Source: https://docs.invopop.com/admin/acc-info Manage your personal profile details, contact information, locale and display preferences. To manage your personal/account information, navigate to **Profile** in the left-hand menu and click on **Info** in the account area. ![](https://mintcdn.com/invopop/ML2k4Q7wsK0tnGnG/assets/admin/profile.png?fit=max\&auto=format\&n=ML2k4Q7wsK0tnGnG\&q=85\&s=4aec2fa7f67c6e4eb5423b9039b64309) In the **Personal Info** section you can change your personal information and avatar. The **Organizations** section will display which organization(s) you are a member of. # Account security Source: https://docs.invopop.com/admin/acc-security View and revoke your sessions Our security page allows you to view and revoke your sessions. ![](https://mintcdn.com/invopop/ML2k4Q7wsK0tnGnG/assets/admin/security.png?fit=max\&auto=format\&n=ML2k4Q7wsK0tnGnG\&q=85\&s=d74fbee5e2a1918ae18bdf3288f71748) **Devices** will display the devices you have logged in from. The number is the IP address of the device. Underneath the IP you will see the browser name, version and operating system. **App** will usually display "Invopop Console" as the app name, however other products by Invopop which require authentication can be displayed here. **Initiated** will display the date and time of the session. **Disconnect** button allows you to revoke the session. If the same device is used to access Invopop Console again, you will be prompted to re-authenticate. # Add a billing account Source: https://docs.invopop.com/admin/billing-account Create and configure a billing account for subscriptions, invoices, and payment methods. Billing accounts are used to associate workspaces with a specific payment method and tax information. Most companies will need to create a single billing account for all their workspaces, but if you need to use different payment methods or tax information for different workspaces, you can create multiple billing accounts. ## Billing accounts list All accounts start with a free sandbox billing account. This gives access to sandbox functionality and allows you to keep track of the pops usage of your sandbox workspaces. ![Billing Accounts List](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-accounts-list.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=753d31b1f277fa6abd715028966273fe) In order to have live workspaces, you need to create a live billing account. This will give access to live functionality and allow you to issue real invoices. ## Create a billing account To create a billing account, click on the Create billing account button in the top right corner of the billing page. You will be prompted to name the account. We recommend naming the account after your company or organization + "billing" or "account". ![Create a billing account form](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-create-account.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=c804f802eeeae3141c5698909b2425e9) ## Add your invoicing information Go to the Billing details section, and select Add invoicing information. ![Billing Billingdetails Homepage](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-billingdetails-homepage.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=ffa5daf5abcd2cbba041ba6481b6a457) Introduce your tax information and click on Save. ![billing-invoicing-form](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-invoicing-form.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=d374c733c7efcb16bbbdd5bce9d19535) Introducing your tax information will allow Invopop to issue invoices for our services. ## Add a payment method Click on the Add payment method button to add a payment method to your billing account. You will be redirected to a Stripe page to add your payment method. ![](https://mintcdn.com/invopop/ML2k4Q7wsK0tnGnG/assets/admin/billing-stripe.png?fit=max\&auto=format\&n=ML2k4Q7wsK0tnGnG\&q=85\&s=8623abafde309521248d75fc84c8b29e) Once you have added your payment method, you will be redirected back to the billing account page. ## Select a subscription plan In the Subscription section, click on the Choose a plan button to select a subscription plan for your billing account. ![Choose Subscription](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-choose-subscription.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=cac447dc341573c918aaedef9fa1b847) On the next screen you will be asked to select a payment currency. ![Billing Subscription Currency](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-subscription-currency.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=1cc203e050700c27dae992f5fd19f9ff) Once you click Next , you will need to choose your payment frequency and subscription plan. Select: * A **pop tier**, based on predicted usage (actions + seats) * **Countries** - where you will use Invopop; your fist country is included at no extra cost * **Integrations -** self-service paid connector apps such as Chargebee or Stripe * **Pro features -** including chat and email support, unlimited users, removing Invopop's watermark from PDFs and emails, generating audit logs and access to ISO27001. ![Billing Subscription Products](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-subscription-products.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=c35a5390edaa1973d1c074d07711443b) Once all your products are added, click Save . Once you have completed the subscription process, you will be able to create live workspaces. ## FAQ > [accordion] Can I pay by direct deposit? > > This option is only available for Enterprise plans. # Modify or cancel your subscription Source: https://docs.invopop.com/admin/billing-change-plan Modify or cancel your subscription to Invopop. > [!NOTE] > > **Note:** To connect an app in your live workspace, first add it to your subscription. Free apps are no exception: your first country app costs nothing, but it still has to appear on your plan before you can use it. To modify or cancel your subscription, navigate to **Billing,** go to the **Subscription** section, and click on the three dots on the right.  ![Billing Modify Subscription](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-modify-subscription.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=118ee17170a733cdc0450c543a09187c) Once you click Modify , you will be able to remove or add products to your subscription. ![Billing Modify Subscription Products](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-modify-subscription-products.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=98313ee0632378812d530bc08de0f493) ## FAQ > [accordion] I can't see the Modify option. How can I change my subscription? > > Get in touch with us at [support@invopop.com](mailto:support@invopop.com), and we will modify it for you. # Check your pop consumption Source: https://docs.invopop.com/admin/billing-change-plan-2 You can track your pop usage by checking the progress bar in your billing account. ![Pops usage progress bar in the billing account](https://mintcdn.com/invopop/-_H_wxhzEz42K5K8/assets/admin/billing-pops-usage.png?fit=max\&auto=format\&n=-_H_wxhzEz42K5K8\&q=85\&s=b0433fb75cdf4eebc7747148587a74b2) To see the pop consumption linked to the Seats you are using, click on the live Billing Account. In the **Seats** section you will find the list of apps, the seat count each has, as well as the associated pops. ![Billing Pops Seats](https://mintcdn.com/invopop/tQraL_rIsiSlGUeu/assets/admin/billing-pops-seats.png?fit=max\&auto=format\&n=tQraL_rIsiSlGUeu\&q=85\&s=45d672a1fe2974d583ddd744983d8c70) ## FAQ > [accordion] What happens if I run out of pops in my live billing account? > > To continue using Invopop you will need to upgrade your plan to the next pop tier. > [accordion] How do merchants (Seats) contribute to my pop count? > > Technically, a **Seat** corresponds to a Tax ID registered to issue invoices in a specific network. Every account needs at least one. > > In practice, most companies need only one seat or a handful. Some, however, use Invopop to provide e-invoicing to their own customers: each customer registered counts as a seat. > > Every seat consumes pops from your monthly allowance: 100 pops are deducted the moment you register it, and 100 pops again every 30 days from that registration date for as long as it stays registered. > [accordion] What happens if I run out of pops in my sandbox billing account? > > Get in touch with us at [support@invopop.com](mailto:support@invopop.com), and unless we detect abnormal usage, we will extend your sandbox billing account with additional pops. # Disable members Source: https://docs.invopop.com/admin/member-deactivate Disable or remove a member's access to your workspace. Available on the following plans: DevProEnterprise To disable a member, click on the Disable button on the member's row. You will be prompted to confirm the action. ![](https://mintcdn.com/invopop/ML2k4Q7wsK0tnGnG/assets/admin/members-list.png?fit=max\&auto=format\&n=ML2k4Q7wsK0tnGnG\&q=85\&s=64a2503c4a473ed1188956f31418b73a) The member will be removed from your organization and will no longer have access to your workspaces. If you need to re-enable a member, click on the **Deactivated members** tab and click on the Enable button on the member's row. You will be prompted to confirm the action. # Invite members Source: https://docs.invopop.com/admin/member-invite Add new users to your workspace Available on the following plans: DevProEnterprise Members of your organization are users who can access your workspaces and workflows. Invite team members to collaborate on invoicing, workflow management, and document processing. There is no limit on the number of members you can invite to your organization. > [!NOTE] > > What an invited member can see and do is decided by the groups you add them to. See [Roles and groups](/admin/member-roles-groups) to set up role-based access control before or after inviting people. ## Invite a new member To invite a new member to your organization: 1. Navigate to the **Members** section in admin. 2. Click the Invite member button in the top right corner. ![](https://mintcdn.com/invopop/ML2k4Q7wsK0tnGnG/assets/admin/members-list.png?fit=max\&auto=format\&n=ML2k4Q7wsK0tnGnG\&q=85\&s=64a2503c4a473ed1188956f31418b73a) 3. Fill in the invitation form with the member's details. 4. Click Send invitation. ![](https://mintcdn.com/invopop/ML2k4Q7wsK0tnGnG/assets/admin/members-invite.png?fit=max\&auto=format\&n=ML2k4Q7wsK0tnGnG\&q=85\&s=604504a3b75e2df77ebbce595cae410f) | | | | - | - | | **Email address** | The email address of the person you want to invite. They will introduce their name when they accept the invitation. | | **Position** | Enter the member's job title or role. This field helps identify team members in the members list. | | **Message (optional)** | Optional message included in the invitation email. | The invited member receives an email with a link to join your organization. When they accept the invitation: * They appear in your members list with their email address and position * They have full access until you assign them to a [group](/admin/member-roles-groups), after which their groups decide what they can reach > [!WARNING] > > A member who belongs to no group has full access to every workspace. Assign new members to a [group](/admin/member-roles-groups) as soon as they join if you want to limit what they can reach. ## FAQ > [accordion] Can I invite someone who doesn't have an Invopop account? > > Yes. When they click the invitation link, they'll be prompted to create an account before joining your organization. > [accordion] Can a member belong to multiple organizations? > > Yes. If a member is invited to multiple organizations, they can switch between them and hold different roles in each. This is useful for consultants who provide services to multiple clients. > [accordion] What permissions do invited members have? > > Full access until they are assigned to a group. After that, whatever their groups grant: roles define the permissions and groups apply them per workspace. See [Roles and groups](/admin/member-roles-groups). > [accordion] Can I revoke an invitation after sending it? > > Yes, invited members will appear in the members list immediately, and you can disable them if needed. See [Deactivate members](/admin/member-deactivate) for details. # Roles and groups Source: https://docs.invopop.com/admin/member-roles-groups Control what members can see and do with role-based access control across your organization and workspaces. Available on the following plans: DevProEnterprise Role-based access control (RBAC) lets you decide exactly what each member of your organization can see and do, per workspace. It is built from two pieces that you manage from the **Members** section in admin: * **Roles** bundle the scopes (permissions) a member can use. A role says *what* someone may do, but nothing about *where*. * **Groups** grant one or more roles across one or more workspaces, and members join groups. A group says *who* gets *which roles* and *where*. A member's effective permissions are the union of every role granted by every group they belong to, evaluated per workspace. > [!NOTE] > > A member who belongs to no group keeps full access, which is what keeps existing members working while you roll RBAC out. Access only narrows once you add someone to their first group, so you can introduce access control one member at a time. ## The Members section The **Members** page has three tabs: | | | | - | - | | **Directory** | The people in your organization and pending invitations. A **Groups** column shows which groups each member belongs to. | | **Roles** | The roles defined in your organization, with their description and the scopes they grant. | | **Groups** | The groups in your organization, with their description and the grants (roles and workspaces) they carry. | ![Members directory listing each member with their email and groups](https://mintcdn.com/invopop/5MOf77cXIx-b3tpU/assets/admin/members-directory.png?fit=max\&auto=format\&n=5MOf77cXIx-b3tpU\&q=85\&s=b8410611d33b6af1fd2903072b58e8bb) Members directory with the Groups column ## Roles A role is a named set of scopes. Scopes are organised by service, and each resource within a service can be granted at one of two levels: | | | | - | - | | **Read** | View the resource without changing it. | | **Admin** | Create, update and delete the resource. Admin always includes Read, so ticking Admin ticks Read for you. | Ticking the **Read** or **Admin** checkbox in a service's header grants that level for every resource in the service, including resources added to that service in the future. The individual rows are then locked, since the service-wide scope already covers them. ### Available scopes | Service | Resources | Notes | | - | - | - | | **All services** | Everything | Blanket access across every Invopop service, present and future. Meant for super-admin style roles. | | **Access** | Roles, Members, Workspaces, Applications, API keys, Enrollments, Billing, Organization settings | Administration of the organization itself: who belongs to it, what they may do, and how it is set up. | | **Transform** | Workflows, Jobs | Workflows and the jobs that run documents through them. | | **Silo** | Entries | Document storage: entries and their attachments. | > [!WARNING] > > Anyone with **Admin** on **Roles**, **Members** or **Everything** can change who has access to what, including granting themselves more access. Keep these scopes to a small number of trusted administrators. ### Create a role 1. Navigate to **Members** in admin and open the **Roles** tab. 2. Click New role in the top right corner. 3. Enter a **Name** and, optionally, a **Description**. 4. Tick the **Read** or **Admin** checkbox for each resource the role should grant, or use the header checkbox to grant a whole service. 5. Click Create role. ![New role form showing the Read and Admin checkboxes for each service and resource](https://mintcdn.com/invopop/5MOf77cXIx-b3tpU/assets/admin/members-roles.png?fit=max\&auto=format\&n=5MOf77cXIx-b3tpU\&q=85\&s=ab493aac0a18ebcb614a0ad46a490b6e) New role form with the scope matrix Roles are reusable: define them once and grant them through as many groups and workspaces as you need. A few common patterns: | | | | - | - | | **Viewer** | Read on Transform and Silo. Can browse workflows, jobs and documents without changing anything. | | **Operator** | Admin on Silo Entries, Read on Transform. Can upload and manage documents and follow their jobs, but cannot edit workflows. | | **Developer** | Admin on Transform and Silo, Read on Access API keys. Can build workflows and process documents. | | **Owner** | Admin on Everything. Full control, including billing and organization settings. | ## Groups A group connects roles to workspaces and members to the group. When you create a group you pick which roles it grants and where each of them applies. A single group can cover several roles across several workspaces, so you can usually model a team with one group. The **Access** table in the group form has one row per workspace plus an **Entire organization** row, each with a dropdown to select one or more roles. Granting a role on the Entire organization row applies it across every workspace and also covers organization-level settings that belong to no single workspace, such as billing, members and domains. Access scopes only take effect when granted on the Entire organization row. ### Create a group 1. Navigate to **Members** in admin and open the **Groups** tab. 2. Click New group in the top right corner. 3. Enter a **Name** that reflects the team or function the group represents, and optionally a **Description**. 4. In the **Access** section, select the roles the group grants on each workspace row, or on the **Entire organization** row for organization-wide access. 5. Click Create group. ![New group form showing the roles granted on the organization and each workspace](https://mintcdn.com/invopop/5MOf77cXIx-b3tpU/assets/admin/members-groups.png?fit=max\&auto=format\&n=5MOf77cXIx-b3tpU\&q=85\&s=61c519bbbbf92bc5754e24cd9718e7cc) New group form with roles granted per workspace > [!NOTE] > > You need at least one role before the group form lets you grant anything. If the **Access** section reads *No roles yet*, use the Create role shortcut to define one first. ### Assign groups to a member Groups are assigned from the member's own page: 1. Navigate to **Members** in admin and open the **Directory** tab. 2. Click the member's row. 3. In the **Groups** section, select the groups the member belongs to. Remove a group by clicking the cross on its chip. 4. Save the member. ![Member page showing the name, position and the Groups selector with one group assigned](https://mintcdn.com/invopop/5MOf77cXIx-b3tpU/assets/admin/members-member.png?fit=max\&auto=format\&n=5MOf77cXIx-b3tpU\&q=85\&s=6597ad37a3bbf36f35b2b062f5a4838f) Member page with the Groups selector To review a single member's access, find them in the **Directory** tab: the **Groups** column lists every group they belong to. ## Example: a finance team with read-only auditors Suppose you run two workspaces, **Spain** and **Portugal**, and want: * The finance team to manage documents in both workspaces. * An external auditor to read documents in Spain only. * Two administrators with full control. 1. Create three roles: **Operator** (Admin on Silo Entries, Read on Transform), **Viewer** (Read on Silo and Transform) and **Owner** (Admin on Everything). 2. Create a **Finance** group granting **Operator** on the Spain and Portugal rows, and add the finance team. 3. Create an **Auditors** group granting **Viewer** on the Spain row only, and add the auditor. 4. Create an **Admins** group granting **Owner** on the Entire organization row, and add the two administrators. ## FAQ > [accordion] What happens to members who are not in any group? > > They keep full access to every workspace, exactly as before RBAC. Access is only restricted once a member belongs to at least one group, so review the Directory for members whose **Groups** column reads *None* once your rollout is complete. > [accordion] Can a member belong to several groups? > > Yes. Their permissions are the union of every role granted by every group, per workspace. There are no deny rules, so adding a second group can only widen access. Adding the first group narrows it, since it replaces the default full access. > [accordion] Can I give a role different scopes in different workspaces? > > No. A role is a fixed set of scopes. Create separate roles if two workspaces need different permission sets, then grant each role on the relevant workspace rows of a group. > [accordion] Why can't I manage billing or members with a role granted on a workspace? > > Billing, members, domains and other **Access** scopes belong to the organization, not to any single workspace. Grant the role on the **Entire organization** row of the group instead. > [accordion] How do I remove a member's access? > > Remove them from their groups to narrow their access, or deactivate them to remove it entirely. See [Disable members](/admin/member-deactivate). # Create & configure workspaces Source: https://docs.invopop.com/admin/workspace-configure How to create a new workspace and adjust its settings, defaults and metadata. Your account is created with a Sandbox workspace that you can use for testing and development. Create additional workspaces to organize your operations by regime, country, or business unit. ![](https://mintcdn.com/invopop/kFD8_iivqJrzgbAz/assets/admin/workspaces-list.png?fit=max\&auto=format\&n=kFD8_iivqJrzgbAz\&q=85\&s=109c11619614af24bbc0cf854f01fd0b) You create new workspaces in the **Workspaces** section of admin. Click the Create workspace button in the top right corner. ## Create and configure a workspace ![](https://mintcdn.com/invopop/ML2k4Q7wsK0tnGnG/assets/admin/workspace-new.png?fit=max\&auto=format\&n=ML2k4Q7wsK0tnGnG\&q=85\&s=df1f3405924a887114899e8ea7651438) > [!TIP] > > We recommend creating one workspace per regime or network. There is no limit on the number of workspaces you can create. See [Set up your account for multiple countries](/workspace/multi-country) for guidance on organizing workspaces. #### Workspace name Enter a human-readable name for your workspace. This is often your company name or a descriptive label that identifies the workspace's purpose e.g., `Enormicom ES-Live` or `Enormicom FR-Sandbox`. #### Handle The handle determines the URL of your workspace and is used in API endpoints. It's auto-generated from your workspace name, but you can customize it to your liking. Handles must be unique within Invopop and can only contain lowercase letters, numbers, and hyphens. #### Avatar flag Avatar flags are visual indicators that help you distinguish workspaces belonging to specific regimes or countries. They appear in the workspace selector and don't affect workspace behavior. Use flags to quickly identify workspaces when managing multiple countries or regions. #### Workspace color Choose a color that changes the appearance of buttons and the sidebar in your workspace. Use different colors between sandbox and production environments to easily distinguish which environment you're working in. #### Workspace type Select either **Sandbox** or **Live**: * **Sandbox**: Test and simulate behavior without issuing real invoices. No billing account required. * **Live**: Issue legally compliant invoices through tax authorities. Requires a billing account. > [!WARNING] > > Live workspaces issue real, legally binding invoices. Ensure you've tested your workflows in a sandbox workspace before going live. #### Billing account (Live workspaces only) Select the billing account to associate with this workspace. Multi-country organizations often need to pay for invoicing locally, so you can have multiple billing accounts and assign different workspaces to different accounts. > [!TIP] > > If you haven't created a billing account yet, see [Add a billing account](/admin/billing-account) for instructions. ## FAQ > [accordion] Can I delete workspaces? > > No, workspaces cannot be deleted for traceability and compliance purposes. If you no longer need a workspace, you can archive it or simply stop using it. > [accordion] Can I change a workspace from Sandbox to Live? > > No, workspace type cannot be changed after creation. Create a new live workspace and migrate your workflows, apps, and configurations. See [From sandbox to live](/workspace/sandbox-to-live) for a complete guide. > [accordion] How many workspaces can I create? > > There is no limit on the number of workspaces you can create. Create as many as you need to organize your operations effectively. > [accordion] Can I change the workspace handle after creation? > > You can change your handle (and thus the URL of your workspace) after creation. However, proceed with caution as this will break any links to your workspace. > [accordion] Do I need a separate billing account for each workspace? > > No, you can assign multiple workspaces to the same billing account. However, multi-country organizations often use separate billing accounts for different regions to handle local payment requirements. # Authorize enrollment Source: https://docs.invopop.com/api-ref/access/enrollment/authorize POST /access/v1/enrollment/authorize Authenticate using application credentials and a specific owner ID, token, or enrollment. (Only Applications!) # Fetch enrollment Source: https://docs.invopop.com/api-ref/access/enrollment/fetch GET /access/v1/enrollment Fetch the enrollment details for the current authentication token. (Only Applications!) # Update enrollment Source: https://docs.invopop.com/api-ref/access/enrollment/update PATCH /access/v1/enrollment Update the embedded configuration details of an enrollment. (Only Applications!) # Fetch workspace Source: https://docs.invopop.com/api-ref/access/workspace/fetch GET /access/v1/workspace Fetch the workspace details associated with the current authentication token. # Update workspace Source: https://docs.invopop.com/api-ref/access/workspace/update PATCH /access/v1/workspace Update the workspace details associated with the current authentication token. # Set AT credentials Source: https://docs.invopop.com/api-ref/apps/at-pt/credentials POST /apps/at-pt/v1/entry/{silo_entry_id}/credentials Set or update the AT web services credentials for a given supplier. This endpoint lets you set or update the AT web services credentials for a supplier. Credentials are validated against the AT Series web service before being stored to ensure they are correct and active. These credentials are necessary to register series and send documents to the AT via web services. # Generate SAF-T report Source: https://docs.invopop.com/api-ref/apps/at-pt/saft GET /apps/at-pt/v1/entry/{silo_entry_id}/saft Generate and download a SAF-T PT report for the specified period. Generate and download a SAF-T PT report for the specified period. The report can be generated for a full year or a specific month. # Get series details Source: https://docs.invopop.com/api-ref/apps/at-pt/series-get GET /apps/at-pt/v1/entry/{silo_entry_id}/series/{id} Get details of a specific series by ID. Get details of a registered series by its ID, including the validation code provided by the Portuguese Tax Authority. # List series Source: https://docs.invopop.com/api-ref/apps/at-pt/series-list GET /apps/at-pt/v1/entry/{silo_entry_id}/series List all registered series with the AT for the supplier. This endpoint provides a way to list all registered series with the AT for the supplier with cursor-based pagination. # Register series Source: https://docs.invopop.com/api-ref/apps/at-pt/series-register POST /apps/at-pt/v1/entry/{silo_entry_id}/series Register a new series with the AT for the supplier. This endpoint registers a new series for the supplier. The series will be validated and registered with the Portuguese Tax Authority, and a validation code (used to generate ATCUD codes) will be returned. For a detailed explanation of the `type` field (`N`, `F`, `R`) and other Portugal-specific series requirements, see the [Series management](/guides/pt-at-supplier#series-management) section of the AT supplier registration guide. # Fetch enablement status Source: https://docs.invopop.com/api-ref/apps/gov-co/enablement-get GET /apps/gov-co/v1/entries/{silo_entry_id}/enablement Fetch the current DIAN enablement state of a registered supplier. Returns the supplier's current DIAN enablement state: `status` is omitted until a test set has been submitted, then moves through `pending` to `accepted` or `failed`. When it's `failed`, the DIAN's reason is in the faults of the registration job; see [Failed enablement](/guides/co-dian-registration#failed-enablement). > [!NOTE] > > Use this endpoint to drive your own onboarding UI instead of the hosted portal. The silo entry must belong to the authenticated workspace and have been registered with the Colombia app first. # Submit test set Source: https://docs.invopop.com/api-ref/apps/gov-co/enablement-submit POST /apps/gov-co/v1/entries/{silo_entry_id}/enablement Submit the DIAN enablement test set for a registered supplier using the TestSetId obtained from the DIAN enablement portal. The test documents are then emitted to the DIAN on the supplier's behalf. Submits the DIAN enablement test set using the TestSetId from the DIAN enablement portal. The test documents are emitted to the DIAN on the supplier's behalf, and the workflow's **Wait for DIAN enablement** step picks up the outcome automatically. > [!NOTE] > > Use this endpoint only after running the supplier registration workflow. It responds `400` when a test set is already awaiting the DIAN outcome, the supplier is already enabled, or a previous enablement failed. Run the registration workflow again to restart a failed enablement. # List resolutions Source: https://docs.invopop.com/api-ref/apps/gov-co/resolutions-list GET /apps/gov-co/v1/entries/{silo_entry_id}/resolutions List the DIAN numbering resolutions linked to a registered supplier, fetched live from the DIAN, plus any uploaded contingency resolutions. Lists the DIAN numbering resolutions linked to the supplier, with their prefix, authorized range, validity dates and technical key. Use the prefix as the invoice `series`, and pick codes within the range and validity dates. > [!NOTE] > > Sandbox suppliers always return the fixed DIAN test resolution (series `SETP`). Production suppliers return their current resolutions, fetched live from the DIAN. Both also include any [uploaded contingency resolutions](/api-ref/apps/gov-co/resolutions-upload), which have no technical key. The silo entry must belong to the authenticated workspace and have been registered with the Colombia app first. # Upload contingency resolution Source: https://docs.invopop.com/api-ref/apps/gov-co/resolutions-upload POST /apps/gov-co/v1/entries/{silo_entry_id}/resolutions/contingency Upload a DIAN contingency numbering resolution for a registered Colombian supplier. Uploads a contingency (*talonario o papel*) numbering resolution for the supplier, so it can [transmit invoices issued during a contingency](/guides/co-dian-invoicing#transmitting-invoices-issued-during-a-contingency). Use the details on the DIAN's form 1876 for the [contingency range](/guides/co-dian-registration#contingency-range). > [!NOTE] > > Contingency resolutions can't be fetched from the DIAN, so they're kept as uploaded. Uploading one with the same prefix again replaces it. The silo entry must belong to the authenticated workspace and have been registered with the Colombia app first. # Generate agreement PDF Source: https://docs.invopop.com/api-ref/apps/gov-es/agreement-fetch GET /apps/gov-es/v1/entry/{silo_entry_id}/{system}/agreement Generate a PDF agreement of a previously prepared org.Party silo entry. After a complete Party has been uploaded to the silo, use this API endpoint to generate a PDF version of the Invopop collaboration agreement document. # Upload agreement PDF Source: https://docs.invopop.com/api-ref/apps/gov-es/agreement-upload POST /apps/gov-es/v1/entry/{silo_entry_id}/{system}/agreement Upload a signed copy of the PDF agreement. Once the previously generated agreement has been signed by the end-user, upload to Invopop so that it will be stored as an attachment to the silo entry. # Confirm Source: https://docs.invopop.com/api-ref/apps/gov-es/confirm POST /apps/gov-es/v1/entry/{silo_entry_id}/{system}/confirm Confirm that the upload process has completed. After uploading the agreement and identity images, call this endpoint to confirm that everything has been prepared correctly and the supplier is ready to start operating. This will trigger an update to a job that is waiting for the upload process to complete. The Invopop team will promptly review the uploaded material and proceed to accept or reject the documentation after this point. In the case of rejection, the supplier will no longer be able to issue invoices, but the process to re-upload agreement material will be available again. # Upload identity image Source: https://docs.invopop.com/api-ref/apps/gov-es/identity-upload POST /apps/gov-es/v1/entry/{silo_entry_id}/{system}/identity Upload an image of an identity document. Upload a photograph of the supplier or representative's identification card or document. Be sure to choose the correct view when uploading. Uploaded images will be stored as attachments to the silo entry. # Verify tax ID Source: https://docs.invopop.com/api-ref/apps/gov-es/lookup POST /apps/gov-es/v1/lookup Verify a Spanish tax ID (NIF/CIF) against the AEAT census. The endpoint always reports whether AEAT identified the tax ID. When `correct` is `true` and the tax ID is identified, the official name registered with AEAT is also returned. Verify a Spanish tax ID (NIF/CIF) against the AEAT census without going through the registration flow. The response always reports whether AEAT identified the tax ID; set `correct` to `true` to also receive the official name registered with AEAT when the tax ID is identified. # Download agreement PDF Source: https://docs.invopop.com/api-ref/apps/gov-fr/agreement-fetch GET /apps/gov-fr/v1/entry/{silo_entry_id}/agreement Download the current agreement PDF for a silo entry. Returns the signed mandate if already signed, otherwise the unsigned template. Returns the current agreement PDF. If the signer has already completed the signing step (`POST /sign` or `POST /agreement`), the signed mandate is returned. Otherwise the unsigned template is returned, pre-filled with the party's details. # Upload pre-signed agreement Source: https://docs.invopop.com/api-ref/apps/gov-fr/agreement-upload POST /apps/gov-fr/v1/entry/{silo_entry_id}/agreement Store a mandate signed outside Invopop on the silo entry. Stores a mandate the customer has signed outside Invopop. Satisfies the `agreement` step on the approval flow. Identity verification is still required. Call `POST /identity` before or after this endpoint, then call `POST /confirm` to finalise. For in-app signing, use `POST /sign` instead. # Confirm submission Source: https://docs.invopop.com/api-ref/apps/gov-fr/confirm POST /apps/gov-fr/v1/entry/{silo_entry_id}/confirm Finalise the onboarding approval and advance the registration workflow. Finalises the approval and pokes the queued `agreement.wait.approval` task so the onboarding workflow continues. Returns the approval flow status. Identity verification (`POST /identity`) is required on both paths. In addition: * **In-app signing**: `POST /sign` must have been called. * **Pre-signed PDF**: `POST /agreement` must have been called. A `submitted` status in the response means the submission is under review; the workflow advances once a decision is made. # Upload identity image Source: https://docs.invopop.com/api-ref/apps/gov-fr/identity-upload POST /apps/gov-fr/v1/entry/{silo_entry_id}/identity Upload one face of the signer's identity document for verification. Stores one face of the signer's identity document. Required on both signing paths. Call before `POST /confirm`. Call once per side: `front` + `back` for an ID card (CNI, titre de séjour), or a single `page` for a passport. Re-uploading the same view overwrites the previous image. # Look up directory entries by electronic address Source: https://docs.invopop.com/api-ref/apps/gov-fr/lookup-identifier GET /apps/gov-fr/v1/directory/identifier/{identifier} Returns all entries from the PPF Annuaire that match the given electronic address identifier (the value used to route invoices to a party in France represented by an inbox in Invopop). Only available to **live** workspaces. Sandbox workspaces receive `403 Forbidden`. Returns all entries from the local mirror of the PPF Annuaire that use the given electronic address identifier (the value used to route invoices to a party in France). An empty `results` array means no entry currently uses this identifier. Only available to live workspaces — sandbox enrollments receive `403 Forbidden`. # Look up directory entries by SIREN Source: https://docs.invopop.com/api-ref/apps/gov-fr/lookup-siren GET /apps/gov-fr/v1/directory/siren/{siren} Returns all entries from the PPF Annuaire that match the given French SIREN. Returns the active directory entries from the PPF Annuaire that match the given SIREN. A SIREN may have multiple registered parties (one per SIRET / suffix / routing code), so the response is always a list. Results are paginated with the `offset` and `limit` query parameters (`limit` defaults to 50, max 200). While more pages remain, the response includes `next_offset`, pass it back as `offset` to fetch the next page. An empty `results` array means the SIREN is not currently registered in the Annuaire. Only available to live workspaces — sandbox enrollments receive `403 Forbidden`. # Answer a migration request Source: https://docs.invopop.com/api-ref/apps/gov-fr/migration-answer POST /apps/gov-fr/v1/migrations/{silo_entry_id} Accept or reject another Plateforme Agréée's request to take over the address registered by a silo entry. Answers the incoming takeover request currently in progress for the silo entry's address, the same one the takeover form shows. Use it instead of the form to answer from your own system. See [Moving parties between Plateformes Agréées](/guides/fr-pa-migrations#incoming-requests) for the full flow. * **Accept** without `effective_date` to take over on the date the new PA requested. If that date is too soon, the answer is the earliest possible date. * **Accept** with `effective_date` to agree on another date. The date must be at least 3 business days and 4 calendar days away, whichever is later. * **Reject** to refuse the takeover. Any `effective_date` is ignored. To check whether an address is waiting for an answer, call [List a silo entry's migrations](/api-ref/apps/gov-fr/migrations-entry) first. The answer wakes the workflow's **Wait for migration approval** step immediately. An address can only be answered once: a second call returns `400`. > [!NOTE] > > This endpoint used to live at `POST /apps/gov-fr/v1/entry/{silo_entry_id}/migration`. That path is deprecated but still accepts the same body and returns the same response. # List a silo entry's migrations Source: https://docs.invopop.com/api-ref/apps/gov-fr/migrations-entry GET /apps/gov-fr/v1/migrations/{silo_entry_id} List every takeover request for the address registered by a silo entry, newest first. Returns one item for every migration related to the endpoint registered by the silo entry, open and closed, refused ones included. The newest item shows where the address stands: an incoming item with `status` `pending` is waiting for your answer, and once answered its `decisions` hold the answer sent to the new PA. A silo entry has at most one open migration at a time. Paginate with `offset` and `limit` (default `25`, maximum `200`). When more results remain, the response carries a `next_offset` to pass on the next call; it is omitted on the last page. # List migrations Source: https://docs.invopop.com/api-ref/apps/gov-fr/migrations-list GET /apps/gov-fr/v1/migrations List the workspace's takeover requests with other Plateformes Agréées, newest first. Returns one item per address in every migration involving the workspace, newest first, in both roles: `outgoing` when Invopop takes over an address from another PA, and `incoming` when another PA asks to take over one registered through Invopop. Each item's `status` gives the outcome for that address: `pending`, `accepted`, `rejected` or `failed`. Its `decisions` list the answers given so far: yours on an incoming item, the old PA's on an outgoing one. Paginate with `offset` and `limit`, which count items rather than requests, (default `25`, maximum `200`). When more results remain, the response carries a `next_offset` to pass on the next call; it is omitted on the last page. # Fetch an e-reporting period Source: https://docs.invopop.com/api-ref/apps/gov-fr/reports-period GET /apps/gov-fr/v1/reports/{siren}/periods/{period_id} Fetch the metadata and lifecycle status of a single Flux 10 report period. Returns the metadata for a single report period, scoped to the party identified by the SIREN. The `status` field tracks the lifecycle: `generated` → `submitted` → `filed` or `rejected`. > [!NOTE] > > The generated XML body is not included — use the `/xml` sub-resource to download it. # Download a period's Flux 10 XML Source: https://docs.invopop.com/api-ref/apps/gov-fr/reports-period-xml GET /apps/gov-fr/v1/reports/{siren}/periods/{period_id}/xml Download the raw Flux 10 Report.xml generated for a report period. > [!NOTE] > > Available for any period status. Callers that want only finalized payloads should check the period's `status` field first. # List e-reporting periods Source: https://docs.invopop.com/api-ref/apps/gov-fr/reports-periods GET /apps/gov-fr/v1/reports/{siren}/periods List a party's Flux 10 report periods, most recent first. Each period is one submission window for a `(kind, role)` tuple; corrective re-submissions of the same window appear as separate periods with an incrementing `sequence`. Filter by report kind with `kind`. Paginate with `offset` and `limit` (default `50`, maximum `200`). When more results remain, the response carries a `next_offset` to pass on the next call; it is omitted on the last page. # Preview the current window's Flux 10 report Source: https://docs.invopop.com/api-ref/apps/gov-fr/reports-preview GET /apps/gov-fr/v1/reports/{siren}/preview Build the Flux 10 Report.xml for the current reporting window without storing or sending it. Builds the report from everything recorded in the current window so far, so you can check what will be filed before the window closes. Choose the report kind with `kind` (required) and the stream with `role` (defaults to `seller`). The report is checked against the PPF rules before it is returned. A report that would be rejected answers `422` with the issues found, and an empty window answers `404`. > [!NOTE] > > Nothing is stored or submitted. The preview does not create a report period, so it never appears in the periods list. # Fetch e-reporting summary Source: https://docs.invopop.com/api-ref/apps/gov-fr/reports-summary GET /apps/gov-fr/v1/reports/{siren} Fetch a party's Flux 10 e-reporting status, with the open and next-due window for each report kind. Each kind reports two distinct windows. `open_period_*` is the window currently being accumulated against (what the party is filling right now); `next_due_period_*` is the window the platform will generate a report for next, together with its filing `next_due_deadline`. After a report is generated for the open window, `next_due_*` advances while `open_*` stays put until the calendar rolls over. Always returns `200`. When the party exists but reporting was never enabled (or was disabled), `enabled` is `false` and `kinds` is empty — this lets callers tell "party not found" (`404`) apart from "party not reporting". # Sign agreement mandate Source: https://docs.invopop.com/api-ref/apps/gov-fr/sign POST /apps/gov-fr/v1/entry/{silo_entry_id}/sign Stamp the signer's signature onto the mandate and store the result as the signed agreement. Stamps the signer's signature onto the generated mandate PDF and stores the result as the entry's signed agreement. Satisfies the `sign` step on the approval flow. Two modes: * **Drawn**: pass a PNG or JPEG image in `signature` (≤ 4 MB). The image is inked onto the signature box. * **Typed**: omit `signature`. The signer's name is rendered as a typed signature. The silo entry must have signer fields set (given name, surname, and role) before calling. Use together with `POST /identity`, then call `POST /confirm` to finalise. # Upload KSeF certificate Source: https://docs.invopop.com/api-ref/apps/gov-pl/certificate-upload POST /apps/gov-pl/v1/entry/{silo_entry_id}/certificate Upload the KSeF certificate, private key, and password for a registered party. This endpoint provides an alternative to the web-based certificate upload wizard for programmatic integration. The certificate, private key, and password must be generated client-side following the standard KSeF certificate generation process: 1. Log into the [KSeF Portal](https://ap.ksef.mf.gov.pl/) (production) or [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/) (demo) 2. Generate the certificate with authentication enabled for KSeF 3. Download the certificate file and private key file 4. Save the password used during generation All three components are required for authentication with the KSeF system. The uploaded credentials are securely stored and used to sign and submit invoices on behalf of the registered party. > [!NOTE] > > This endpoint should only be used after running the party registration workflow. The entry must be in a state where it is waiting for certificate upload. > [!WARNING] > > The certificate and private key must be base64-encoded. Ensure the certificate start date is not in the future, and that the certificate and private key match. # Submit OTP Source: https://docs.invopop.com/api-ref/apps/gov-sa/otp-submit POST /apps/gov-sa/v1/entry/{silo_entry_id}/otp Submit the One Time Password (OTP) generated in the ZATCA Fatoora portal. The request carries the party’s registration details plus the OTP generated in the ZATCA Fatoora portal. The company name and registered address are not part of the body — both are taken from the `org.Party` silo entry, which **Register Party** validates before publishing the onboarding link. The resulting credentials are stored securely and the queued registration task is poked so the workflow can continue. > [!NOTE] > > Use this endpoint only after running the party registration workflow: it returns `404` when the silo entry has no registration and `409` when the party already holds a Compliance CSID, rather than issuing a second set of certificates. The OTP is short-lived, so generate it in the portal immediately before calling this endpoint. # Generate a PDF preview Source: https://docs.invopop.com/api-ref/apps/pdf/preview POST /apps/pdf/v1/preview Generate a PDF preview of the provided GOBL document. The PDF Preview API converts GOBL Envelopes into PDF documents, allowing you to preview and validate your invoices before submitting them to a workflow. To get started, make sure the **PDF Generator** app is enabled in your account. # Look up a Peppol participant Source: https://docs.invopop.com/api-ref/apps/peppol/lookup-participant GET /apps/peppol/v1/lookup Checks whether a company is registered and reachable in the Peppol network. Exactly one of `peppol_id` or `vat` must be provided. When `vat` is used, the service derives the Peppol participant identifier using the country-specific scheme rules (e.g. `9920:` for Spain, `0208:` for Belgium). If no scheme can be determined for the given country the request will fail with `400 Bad Request`. A `200` response with `found: false` means the participant ID was resolved but is not yet registered in the network — this is **not** an error condition. Check whether a company is registered and reachable in the Peppol network. Provide either a `peppol_id` or a `vat` number — not both. A `200` response with `found: false` means the participant ID was resolved but is not yet registered in the network. This is not an error. # Upload proof of ownership PDF Source: https://docs.invopop.com/api-ref/apps/peppol/ownership-upload POST /apps/peppol/v1/entry/{silo_entry_id}/ownership Uploads a proof-of-ownership PDF for a company that is being registered in the Peppol network. The document must be a valid PDF (`application/pdf`). Once uploaded the service validates the document and, if accepted, completes the registration flow for the silo entry. This endpoint is idempotent: uploading a new document for an entry that has already completed registration replaces the previous one and re-triggers completion. This endpoint allows you to upload a proof of ownership PDF document for Peppol registration. Upload it to Invopop so that it will be stored as an attachment to the silo entry. This document serves as verification of company ownership and is required for Peppol participant registration compliance. The uploaded PDF will be reviewed by Invopop as part of the validation process, which can take up to 72 hours. The approval status can be monitored through the silo entry's metadata. # Upload e.firma certificate Source: https://docs.invopop.com/api-ref/apps/sw-sapien/certificate-upload POST /apps/sw-sapien/v1/entry/{silo_entry_id}/certificate Upload the e.firma (FIEL) certificate, private key, and password for a registered party. This endpoint provides an alternative to the web-based registration form for programmatic integration. Upload the e.firma (FIEL) certificate, private key, and password for a party that has been registered with SW Sapien's Efisco service. This endpoint provides a programmatic alternative to the web-based registration form. The e.firma certificate is required to authorize bulk CFDI downloads from SAT on behalf of the party. The certificate files and password are securely forwarded to SW Sapien's Efisco service. # Generate agreement PDF Source: https://docs.invopop.com/api-ref/apps/verifactu/agreement-fetch GET /apps/verifactu/v1/entry/{silo_entry_id}/agreement Generate a PDF agreement of a previously prepared org.Party silo entry. After a complete Party has been uploaded to the silo, use this API endpoint to generate a PDF version of the Invopop collaboration agreement document. # Upload agreement PDF Source: https://docs.invopop.com/api-ref/apps/verifactu/agreement-upload POST /apps/verifactu/v1/entry/{silo_entry_id}/agreement Upload a signed copy of the PDF agreement. Once the previously generated agreement has been signed by the end-user, upload to Invopop so that it will be stored as an attachment to the silo entry. # Confirm Source: https://docs.invopop.com/api-ref/apps/verifactu/confirm POST /apps/verifactu/v1/entry/{silo_entry_id}/confirm Confirm that the upload process has completed. After uploading the agreement and identity images, call this endpoint to confirm that everything has been prepared correctly and the supplier is ready to start operating. This will trigger an update to a job that is waiting for the upload process to complete. The Invopop team will promptly review the uploaded material and proceed to accept or reject the documentation after this point. In the case of rejection, the supplier will no longer be able to issue invoices, but the process to re-upload agreement material will be available again. # Upload identity image Source: https://docs.invopop.com/api-ref/apps/verifactu/identity-upload POST /apps/verifactu/v1/entry/{silo_entry_id}/identity Upload an image of an identity document. Upload a photograph of the supplier or representative's identification card or document. Be sure to choose the correct view when uploading. Uploaded images will be stored as attachments to the silo entry. # Authentication Source: https://docs.invopop.com/api-ref/authentication Generate an access token to start using an Invopop workspace. Invopop API keys are created in [Admin](https://access.invopop.com) under **API keys**, or by clicking Manage API keys from **Configuration → API keys** in the [Console](https://console.invopop.com). Click New API key, choose the workspace the key will act on, give it a name and an optional description, and tick the **Read** or **Admin** permission for each service the key needs (All services, Access, Transform, Silo). The token is shown once on creation. For security reasons, we don’t store it. Copy it now, or you’ll need to create a new API key if it’s lost. See [API keys](/console/api-keys) for the full permission model. > [!TIP] > > Invopop uses JSON Web Tokens. If you're interested in seeing the contents, head over to [JWT.io](https://jwt.io) and paste your token to see what's > inside. Tokens must be included in the `Authorization` HTTP header in all requests as a type `Bearer`. Test everything is working correctly using the [ping](/api-ref/utils/ping) endpoint and curl: ```bash theme={"system"} $ curl -H "Authorization: Bearer [token]" https://api.invopop.com/utils/v1/ping {"ping":"pong"} ``` # Technical glossary Source: https://docs.invopop.com/api-ref/glossary A brief glossary of the main terms used in the platform. While we've tried to make as much of the Invopop API as intuitive as possible, this brief glossary should help clarify what we mean when using certain words about the platform. | Term | Description | | - | - | | API Key | This is the code used to authenticate requests to the Invopop API. These should be kept in a secure and secret location. Read more in our [Authentication guide](/guides/authentication). | | App | Applications (apps) add services and functionality to Invopop workspaces. Once configured, an app can enable actions to be added in workflows. | | Customer | Customers are `org.Party` objects containing details about who should receive the document. | | Document | In a general context this refers to PDFs or JSON documents. This is also the name of the property inside [GOBL](https://docs.gobl.org) Envelopes that uses a [schema.Object](https://docs.gobl.org/draft-0/schema/object) to wrap around the payload. | | Entry Collection | Group of related silo entries | | Envelope | More accurately, a "GOBL Envelope" is a wrapper around a payload that adds a header and set of digital signatures. See the [GOBL Envelope](https://docs.gobl.org/draft-0/envelope) for more details. | | GOBL | Stands for "Go Business Language" and is the library and schema we created in order to simplify the creation of electronic invoices and other structured documents using JSON as the primary representation format. For more details, see the [gobl.org](https://gobl.org) site. | | Intent | These represent the link between a job and a specific connector that needs to be executed. They contain a list of events tracking the execution process. | | Job | A job represents the link between an Envelope and a Workflow. It contains an Intent for each of the integrations that have been executed. | | Object | In the context of a [GOBL](https://docs.gobl.org) document, this refers to a model defined in the GOBL schema that can be used standalone or in the `doc` property of an envelope. | | Organization | Represents your company or team. It groups users and workspaces, manages member permissions, and handles billing and account settings. | | Payload | The main data content of an API request or response. | | Position | Every user has a "position" inside an organization. | | Provider | Not normally referred to by the API, but worth mentioning due to their importance to Invopop. A Provider is the name we've given to the service that is used to execute a task. Some providers are global, most are region specific. | | Regime | Otherwise known as the "tax regime" is typically the country or potentially state where a company is fiscally registered. It determines the rules that will be applied to a [GOBL](https://docs.gobl.org) document, and which providers and thus tasks will be available for the company. | | Sequence | Refers to the service that is responsible for managing sequences, sequential codes that are guaranteed to be ordered and suitable to be included in legal documents. | | Series | Part of the sequence service, a series contains a definition that defines prefixes, indexes, and suffixes used to generate sequential codes. | | Silo | Our name for the [GOBL](https://docs.gobl.org) [Envelope](https://docs.gobl.org/draft-0/envelope) storage service. (We like this name because it's short). It's also responsible for persisting attachments with envelopes, such as PDFs generated by tasks. | | Silo Entry | A document stored in the Invopop Silo service. | | Spool | Temporary file storage service for processing documents. | | Step | A single step inside a workflow that performs an action on the [GOBL](https://docs.gobl.org) document being processed. | | Supplier | A supplier is an `org.Party` instance of a legal entity or person on behalf of whom invoices should be issued. | | Transform | This service is responsible for executing jobs using the defined workflow and its integrations. Sometimes this will be called the "Transform Engine". | | User | Grants a person access to an organization by linking their email address. A user may have positions in multiple organizations. | | UUID | Universally Unique Identifier. Value that is guaranteed to be unique across all devices and systems. Used to reliably identify fields and allows the relation between documents. | | Workflow | A key component of the Transform engine. The Workflow defines a set of integrations that should be executed by a job. | | Workspace | Dedicated space where you organize and isolate your workflows, documents, and API keys. Information in a workspace can't be accessed or shared across other workspaces. Each Organization can have multiple workspaces to separate data by company, country, or use case. | # Idempotency Source: https://docs.invopop.com/api-ref/idempotency Ensuring API requests are safe. Idempotence ensures that repeating an API call has no unintended side effects. For instance, if a request to create an item fails with a network error, retrying the request should not generate duplicate items, it should behave as if the operation were executed only once. At Invopop, we take this very seriously and have designed support for idempotency in all API calls. REST actions like `GET` and `DELETE` are inherently idempotent, fetching or deleting the same item twice will simply result in the same response. Update actions, such as `PATCH` are also usually idempotent. Duplicating calls may be inefficient, but we've made sure that in our API update actions are safe to be repeated. Create actions, like `POST` or `PUT` however require additional guarantees to ensure data will not be duplicated. The Invopop APIs handle these scenarios by requiring that every model and thus every incoming operation includes either an `id` field in UUID string format, or often a `key` property that will be checked to ensure it is unique before processing. Many API endpoints will detect duplicated requests and simply return the same response as expected initially. If however this cannot be guaranteed, the API will return a `409 Conflict` response which the client should be able to handle. Silo entries and Transform jobs take the second approach. Repeating a `PUT` with the same ID, or a `POST` with the same `key`, returns `409 Conflict` even when the body is identical (`entry already exists with same id`). Treat that response as confirmation that the first request succeeded, and fetch the existing record rather than generating a new ID. # Introduction Source: https://docs.invopop.com/api-ref/introduction How the Invopop API is organized into services. The Invopop API is split into multiple services. Each service is effectively a namespace for a specific problem domain. The current list of key services is: * **Silo** `/silo/v1` · Data store for [GOBL](https://docs.gobl.org) documents and their attachments. The silo is also responsible for validating incoming data with the GOBL libraries, managing versions, and state control. * **Transform** `/transform/v1` · Responsible for storing workflow definitions and executing "jobs". * **Sequences** `/sequence/v1` · Provides reliable and scalable support for generating sequential codes typically added to invoices. * **Access** `/access/v1` · Provides access to workspaces and additional functionality required by Applications for enrollment handling. * **Utils** `/utils/v1` · Used for testing the connection and access credentials. The details for each service are described in the following sections. # Postman collections Source: https://docs.invopop.com/api-ref/postman Reference API collections to explore Invopop's functionality > [!NOTE] > > Full article coming soon. [Invopop's Postman Collections](https://www.postman.com/invopop/invopop/overview) # Create a series entry Source: https://docs.invopop.com/api-ref/sequences/entries/create-a-series-entry PUT /sequence/v1/series/{series_id}/entries/{id} Create a new entry in a given series idempotently with the given UUID (any version). ```json Example theme={"system"} { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "created_at": "2023-01-25T08:04:14.245Z", "updated_at": "2023-01-25T08:04:14.245Z", "series_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "code": "string", "meta": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "previous_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "sigs": ["string"] } ``` # Fetch a series entry Source: https://docs.invopop.com/api-ref/sequences/entries/fetch-a-series-entry GET /sequence/v1/series/{series_id}/entries/{id} Fetch an existing entry in a series given its UUID. ```json Example theme={"system"} { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "created_at": "2023-01-25T08:04:14.245Z", "updated_at": "2023-01-25T08:04:14.245Z", "series_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "code": "string", "meta": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "previous_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "sigs": [ "string" ] } ``` # Fetch all series entries Source: https://docs.invopop.com/api-ref/sequences/entries/fetch-all-series-entries GET /sequence/v1/series/{series_id}/entries Fetch all the entries in a given series. ```json Example theme={"system"} { "series_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "list": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "created_at": "2023-01-25T08:04:14.245Z", "updated_at": "2023-01-25T08:04:14.245Z", "series_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "code": "string", "meta": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "previous_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "sigs": [ "string" ] } ], "limit": 0, "cursor": "string" } ``` # Overview Source: https://docs.invopop.com/api-ref/sequences/entries/overview An entry represents a single index or code number inside a series. Essentially, it's a mapping of a UUID to a code number. ## Models An `Entry` contains the following fields: | Property | Type | Description | | - | - | - | | `id` | uuid | UUID that uniquely identifies the entry. | | `series_id` | uuid | ID of the series this entry belongs to. | | `code` | string | The code generated for this entry. | | `meta` | map\ | Any additional meta data provided during creation. | | `previous_id` | uuid | ID of the last entry created in the series, if any. | | `sigs` | array of string | Any JSON Web Signatures added during processing. | | `created_at ` | date-time | Creation timestamp. | | `updated_at` | date-time | Update timestamp. | An `EntryCollection` is defined as follows: | Property | Type | Description | | - | - | - | | `list` | array of Entry | List of Entry models for this result set. | | `limit` | integer | Maximum number of entries provided in this result set. | | `cursor` | string | The cursor required to get the next page of results. | ## Resources > [card] [Fetch all Series Entries](/api-ref/sequences/entries/fetch-all-series-entries) > > `GET` [https://api.invopop.com/sequence/v1/series/\{series\_id}/entries](https://api.invopop.com/sequence/v1/series/\{series_id}/entries) > [card] [Create a Series Entry](/api-ref/sequences/entries/create-a-series-entry) > > `PUT` [https://api.invopop.com/sequence/v1/series/\{series\_id}/entries/\{id}](https://api.invopop.com/sequence/v1/series/\{series_id}/entries/\{id}) > [card] [Fetch an Entry in the Series](/api-ref/sequences/entries/fetch-a-series-entry) > > `GET` [https://api.invopop.com/sequence/v1/series/\{series\_id}/entries/\{id}](https://api.invopop.com/sequence/v1/series/\{series_id}/entries/\{id}) # Introduction Source: https://docs.invopop.com/api-ref/sequences/introduction The Invopop Sequence service makes it easy to reliably generate sequential numbers. Most countries around the world require a sequential ID or code for business documents like invoices to make them easier to follow. This service resolves that problem. Generating sequential numbers is more complex than it might seem at first glance. For simple use-cases, a counter field inside a standard relational database is probably sufficient, the problem however is once your project scales and you need guarantees that requests from distributed systems will continue to generate numbers without skips or duplication. Our Sequence service is designed and built to be highly resilient. Behind the scenes we use a global transaction database ([CockroachDB](https://www.cockroachlabs.com)) to ensure data is stored reliably, along with our own layers of queues and processes that ensure a single process is responsible for handling any given sequence. This means our systems can receive a high volume of requests at the same time, and still reliably return numbers in series. ## Key Concepts The sequence service contains two key objects: * Series: the definition of a code template. * Entry: a single "entry" in the series. These are described in the following sections. ## OpenAPI The Sequence OpenAPI 3.0 definition is available for download in YAML here: > [card] [Sequence V1 OpenAPI Definition](https://api.invopop.com/openapi/sequence/v1.yaml) # Create a series Source: https://docs.invopop.com/api-ref/sequences/series/create-a-series PUT /sequence/v1/series/{id} Create a new series idempotently with the given UUID (any version). ```json Example theme={"system"} { "id": "835bb1ca-e7c4-41e6-9e88-464de54cc08e", "name": "Testing", "prefix": "TEST1", "padding": 5, "suffix": "-2022", "created_at": "2022-03-03T22:18:50Z", "updated_at": "2022-03-03T22:18:50Z" } ``` # Fetch a series Source: https://docs.invopop.com/api-ref/sequences/series/fetch-a-series GET /sequence/v1/series/{id} Fetch an existing series given its UUID. ```json Example theme={"system"} { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "created_at": "2023-01-25T08:04:14.245Z", "updated_at": "2023-01-25T08:04:14.245Z", "name": "string", "description": "string", "code": "string", "prefix": "string", "padding": 0, "suffix": "string", "sigs": ["string"] } ``` # Fetch all series Source: https://docs.invopop.com/api-ref/sequences/series/fetch-all-series GET /sequence/v1/series Fetch all the series in the current workspace. ```json Example theme={"system"} { "list": [ { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "created_at": "2023-01-25T08:04:14.245Z", "updated_at": "2023-01-25T08:04:14.245Z", "name": "string", "description": "string", "code": "string", "prefix": "string", "padding": 0, "suffix": "string", "sigs": ["string"] } ] } ``` # Overview Source: https://docs.invopop.com/api-ref/sequences/series/overview A series is a counter with formatting details used to generate sequential codes. ## Model A "Series" object contains the following fields: | Property | Type | Description | | - | - | - | | id | uuid | Unique identifier (UUID). | | name | string | Human name to help identify the series. | | prefix | string | Text to place before a generated code. | | padding | integer | Width of the code's number, with zero padding. | | suffix | string | Text added after the series' number. | | sigs | array of string | If the series was created with any signatures, they'll be here. | | created\_at | date-time | Timestamp of the series' creation. | | updated\_at | date-time | Timestamp of the last update. | A series object may look like: ```json theme={"system"} { "id": "835bb1ca-e7c4-41e6-9e88-464de54cc08e", "name": "Testing", "prefix": "TEST1", "padding": 5, "suffix": "-2022", "created_at": "2022-03-03T22:18:50Z", "updated_at": "2022-03-03T22:18:50Z" } ``` With a start of `1`, the first entry added to that series generates the code `TEST100001-2022`. The series object does not track its position; to find the latest code, [list the series entries](/api-ref/sequences/entries/fetch-all-series-entries), which are returned newest first. ## Resources > [card] [Create a series](/api-ref/sequences/series/create-a-series) > > PUT [https://api.invopop.com/sequence/v1/series/\{id}](https://api.invopop.com/sequence/v1/series/\{id}) > [card] [Fetch a series](/api-ref/sequences/series/fetch-a-series) > > GET [https://api.invopop.com/sequence/v1/series/\{id}](https://api.invopop.com/sequence/v1/series/\{id}) > [card] [Fetch a list of series](/api-ref/sequences/series/fetch-all-series) > > GET [https://api.invopop.com/sequence/v1/series](https://api.invopop.com/sequence/v1/series) # Create an entry without UUID Source: https://docs.invopop.com/api-ref/silo/entries/create-an-entry-post POST /silo/v1/entries Create a new silo entry without an explicit UUID. ## New Documents The fastest way to upload data to Invopop is by creating an entry with the `data` property containing the GOBL JSON of either a pre-built [Envelope](https://docs.gobl.org/draft-0/envelope) or a partial document like an [Invoice](https://docs.gobl.org/draft-0/bill/invoice) or [Party](https://docs.gobl.org/draft-0/org/party). Use the `key` property to ensure idempotency. If the same key is used in the same workspace in another silo entry, the request will be rejected with `409 Conflict`. Note that idempotency using this method is intended for repeat requests whereby the system has had the opportunity to persist the first, we recommend using the [put](/api-ref/silo/entries/create-an-entry-put) method in concurrent scenarios. ```json Invoice Payload Example theme={"system"} { "key": "invoice-DEMO-001", "data": { "$schema": "https://gobl.org/draft-0/bill/invoice", "series": "DEMO", "code": "001", "currency": "USD", "supplier": { "name": "Provide One Inc.", "tax_id": { "country": "US" }, "addresses": [ { "num": "16", "street": "Jessie Street", "locality": "San Francisco", "region": "CA", "code": "94105", "country": "US" } ], "emails": [ { "addr": "billing@provideone.com" } ] }, "customer": { "name": "Sample Consumer", "emails": [ { "addr": "email@sample.com" } ] }, "lines": [ { "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "discounts": [ { "percent": "10%", "reason": "Special discount" } ], "taxes": [ { "cat": "ST", "percent": "8.5%" } ] } ] } } ``` Any data uploaded to the Invopop Silo will first be normalized, calculated, and then validated to check for any errors. Invopop will attempt to automatically determine the folder in which to store the document based on the schema, but you can override this by including the `folder` field in the request. If there are any validation issues with the uploaded data, the service will respond with an error message including a `key` and `message`. Additionally, the `fields` property may include a nested structure to help identify the specific property with a validation fault. ## Creating Entries from Previous Documents You can create new entries based on a previous entry by using the `previous_id` field. This allows you to provide patch data instead of a full new document by setting the patch type in the `content_type` field to one of the following: * `application/json-patch+json` - for JSON Patch (RFC 6902) * `application/merge-patch+json` - for JSON Merge Patch (RFC 7396) Additionally, the `previous_id` field can be used to create corrective documents by including corrective option data in the `correct` field. For more details, refer to the [GOBL documentation on correction options](https://docs.gobl.org/draft-0/bill/correction_options). # Create an entry with ID Source: https://docs.invopop.com/api-ref/silo/entries/create-an-entry-put PUT /silo/v1/entries/{id} Create a new silo entry with the given UUID. ## New Documents The fastest way to upload data to Invopop is by creating an entry with the `data` property containing the GOBL JSON of either a pre-built [Envelope](https://docs.gobl.org/draft-0/envelope) or a partial document like an [Invoice](https://docs.gobl.org/draft-0/bill/invoice) or [Party](https://docs.gobl.org/draft-0/org/party). The `key` property can be used to ensure idempotency, preventing the creation of duplicate entries with the same key within the workspace. A `409 Conflict` response will be provided if either the entry ID or key have been used in an existing document. ```json Invoice Body Example theme={"system"} { "data": { "$schema": "https://gobl.org/draft-0/bill/invoice", "series": "DEMO", "code": "001", "currency": "USD", "supplier": { "name": "Provide One Inc.", "tax_id": { "country": "US" }, "addresses": [ { "num": "16", "street": "Jessie Street", "locality": "San Francisco", "region": "CA", "code": "94105", "country": "US" } ], "emails": [ { "addr": "billing@provideone.com" } ] }, "customer": { "name": "Sample Consumer", "emails": [ { "addr": "email@sample.com" } ] }, "lines": [ { "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "discounts": [ { "percent": "10%", "reason": "Special discount" } ], "taxes": [ { "cat": "ST", "percent": "8.5%" } ] } ] } } ``` Any data uploaded to the Invopop Silo will first be normalized, calculated, and then validated to check for any errors. Invopop will attempt to automatically determine the folder in which to store the document based on the schema, but you can override this by including the `folder` field in the request. If there are any validation issues with the uploaded data, the service will respond with an error message including a `key` and `message`. Additionally, the `fields` property may include a nested structure to help identify the specific property with a validation fault. > [!NOTE] > > Use UUID versions 1 or 7 for documents with a specific lifespan, such as > invoices or payment receipts. For long-lived data, like parties or items, use > versions 3, 4, or 5. The rules for UUID versions are enforced by specific > folder configurations. ## Creating Entries from Previous Documents You can create new entries based on a previous entry by using the `previous_id` field. This allows you to provide patch data instead of a full new document by setting the patch type in the `content_type` field to one of the following: * `application/json-patch+json` - for JSON Patch (RFC 6902) * `application/merge-patch+json` - for JSON Merge Patch (RFC 7396) Additionally, the `previous_id` field can be used to create corrective documents by including corrective option data in the `correct` field. For more details, refer to the [GOBL documentation on correction options](https://docs.gobl.org/draft-0/bill/correction_options). # Fetch all entries Source: https://docs.invopop.com/api-ref/silo/entries/fetch-all-entries GET /silo/v1/entries Fetch all the silo entries in the current workspace. # Fetch an entry Source: https://docs.invopop.com/api-ref/silo/entries/fetch-an-entry GET /silo/v1/entries/{id} Fetch an existing silo entry given its UUID. # Fetch an entry by key Source: https://docs.invopop.com/api-ref/silo/entries/fetch-an-entry-by-key GET /silo/v1/entries/key/{key} Fetch an existing silo entry by its key. # Fetch an entry version Source: https://docs.invopop.com/api-ref/silo/entries/fetch-entry-version GET /silo/v1/entries/{id}/versions/{version} Retrieve the GOBL envelope data stored for a specific version of a Silo entry. Use the `version` value returned in an entry's `version` or `versions` fields to retrieve that exact historical envelope. The response contains only the requested version identifier and its GOBL envelope data; other entry metadata remains available from the standard [fetch entry](/api-ref/silo/entries/fetch-an-entry) endpoint. # Fetch a file Source: https://docs.invopop.com/api-ref/silo/entries/files-fetch GET /silo/v1/entries/{entry_id}/files/{id} Download silo entry file's data. Content type and disposition will be set according to the source. # Create a file without UUID Source: https://docs.invopop.com/api-ref/silo/entries/files-post POST /silo/v1/entries/{entry_id}/files Add a new file to a silo entry without an explicit UUID. The file data can be provided inline as base64 encoded data, or omitted to create a placeholder. When data is not provided, you must provide sha256, size, and mime fields, and the response will include a `url` field that can be used to stream/upload the file contents directly via a PUT request to that URL. For non-enrolled users, only the `format` and `attachment` categories are allowed. # Create a file with ID Source: https://docs.invopop.com/api-ref/silo/entries/files-put PUT /silo/v1/entries/{entry_id}/files/{id} Add a new file to a silo entry with a specific UUID. The file data can be provided inline as base64 encoded data, or omitted to create a placeholder. When data is not provided, you must provide sha256, size, and mime fields, and the response will include a `url` field that can be used to stream/upload the file contents directly via a PUT request to that URL. For non-enrolled users, only the `format` and `attachment` categories are allowed. # Find related entries Source: https://docs.invopop.com/api-ref/silo/entries/find-related GET /silo/v1/entries/{id}/related Find silo entries whose document mentions the given entry's UUID. # Search entries Source: https://docs.invopop.com/api-ref/silo/entries/search-entries GET /silo/v1/search Perform a free-text search on all documents in the current workspace. # Update an entry Source: https://docs.invopop.com/api-ref/silo/entries/update-an-entry PATCH /silo/v1/entries/{id} Update an existing silo entry given its UUID. # Build GOBL document Source: https://docs.invopop.com/api-ref/silo/gobl/build POST /silo/v1/gobl/build Build GOBL Envelopes or Objects for validation purposes # Correct GOBL envelope Source: https://docs.invopop.com/api-ref/silo/gobl/correct POST /silo/v1/gobl/correct Correct or determine the correction options for a GOBL Envelope (not Object!) Use this endpoint to help determine the options for correcting [GOBL](https://docs.gobl.org) documents and then perform the correction itself. This is useful when you need to issue credit notes or corrective versions of a previously issued invoice and need clarity on the local options. All requests to the endpoint require a **[GOBL Envelope](https://docs.gobl.org/draft-0/envelope)**, and cannot be used with a [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) or other GOBL object. This is because some tax regimes require specific details from the previous document's headers, like a special identification code. Use the `show_options` flag to return a JSON Schema of the options that can be used with the provided document. Once the options are clear, send in a new request with the `options` data to get an example corrected [GOBL Envelope](https://docs.gobl.org/draft-0/envelope). The same options data can be used with the [silo create entry endpoint](/api-ref/silo/entries/create-an-entry-post) and the `correct` property. # Sign GOBL document Source: https://docs.invopop.com/api-ref/silo/gobl/sign POST /silo/v1/gobl/sign Sign GOBL Envelopes or Objects # Delete a file Source: https://docs.invopop.com/api-ref/silo/spool/delete DELETE /silo/v1/spool/{key} Delete a previously uploaded entry from the spool. # Download a file Source: https://docs.invopop.com/api-ref/silo/spool/download GET /silo/v1/spool/{key} Download a previously uploaded entry from the spool. # Upload a file Source: https://docs.invopop.com/api-ref/silo/spool/upload POST /silo/v1/spool Upload temporary file data to the silo spool. Requires 'enrolled' scope. The Silo Spool service can be used by **Applications** as a temporary file store. This can be useful for example when processing documents that need additional processing before being added to a Silo Entry as an attachment. Additionally, the Silo Spool will be used in the Transform Jobs API when uploading files as data URIs. # Create a job without a UUID Source: https://docs.invopop.com/api-ref/transform/jobs/create-a-job-post POST /transform/v1/jobs Create a new job without an explicit ID. Use this endpoint to execute a workflow, allowing the backend to assign the UUID. This request will not be idempotent unless a `key` is provided. Keys are checked for uniqueness within the current workspace and are valid for up to 2 years. Note that the [put](/api-ref/transform/jobs/create-a-job-put) request is recommended for high concurrency scenarios. To execute a job, provide one of the following fields: * `silo_entry_id` - preferred, the UUID of the silo entry to process with the workflow. * `data` - raw GOBL data of the job, which will be persisted to the silo before processing. * `args` - a data object containing application-specific data used in the workflow's initial actions to prepare and upload a silo entry. Without `wait`, the response is `202 Accepted` with the job's initial state (`status: "NA"` and no intents yet); poll [fetch a job](/api-ref/transform/jobs/fetch-a-job) until `completed_at` is set, or better, add a [webhook](/guides/webhooks) step to the workflow. The `wait` query parameter can cause the server to block the incoming HTTP request and wait for up to the specified number of seconds. If the job completes within that time the response is `200 OK` with the finished job, including its `intents`, `faults` and `attachments`; otherwise the `202` response is returned as usual. Typically, a workflow executes in under a second, but some actions may take longer. We recommend using the `wait` query parameter only in sandbox or testing environments, as workflows can sometimes exceed expected duration due to network failures or other temporary issues. Arguments (`args`) are composed of string key-value pairs tailored to specific applications. Binary data can be included using Data URIs (`data:`), which must specify the content type and include a `name` parameter. For example: `data:text/plain;name=example.txt;base64,ZGF0YQ==`. Any data provided via this method will be automatically uploaded to the Silo Spool service and will remain accessible only through tokens issued for the corresponding workspace. # Create a job with a UUID Source: https://docs.invopop.com/api-ref/transform/jobs/create-a-job-put PUT /transform/v1/jobs/{id} Create a new job with the given ID. Use this endpoint to execute a workflow with a specific time-based UUID, v7 or v1. If the `key` property is provided, it will be checked for uniqueness within the current workspace and is valid for up to 2 years. To execute a job, provide one of the following fields: * `silo_entry_id` - preferred, the UUID of the silo entry to process with the workflow. * `data` - raw GOBL data of the job, which will be persisted to the silo before processing. * `args` - a data object containing application-specific data used in the workflow's initial actions to prepare and upload a silo entry. Without `wait`, the response is `202 Accepted` with the job's initial state (`status: "NA"` and no intents yet); poll [fetch a job](/api-ref/transform/jobs/fetch-a-job) until `completed_at` is set, or better, add a [webhook](/guides/webhooks) step to the workflow. The `wait` query parameter can cause the server to block the incoming HTTP request and wait for up to the specified number of seconds. If the job completes within that time the response is `200 OK` with the finished job, including its `intents`, `faults` and `attachments`; otherwise the `202` response is returned as usual. Typically, a workflow executes in under a second, but some actions may take longer. We recommend using the `wait` query parameter only in sandbox or testing environments, as workflows can sometimes exceed expected durations due to network failures or other temporary issues. Arguments (`args`) are composed of string key-value pairs tailored to specific applications. Binary data can be included using Data URIs (`data:`), which must specify the content type and include a `name` parameter. For example: `data:text/plain;name=example.txt;base64,ZGF0YQ==`. Any data provided via this method will be automatically uploaded to the Silo Spool service and will remain accessible only through tokens issued for the corresponding workspace. # Fetch a job Source: https://docs.invopop.com/api-ref/transform/jobs/fetch-a-job GET /transform/v1/jobs/{id} Fetch an existing job by ID. # Fetch a job by key Source: https://docs.invopop.com/api-ref/transform/jobs/fetch-a-job-by-key GET /transform/v1/jobs/key/{key} Fetch an existing job by a recent key. # Fetch all jobs Source: https://docs.invopop.com/api-ref/transform/jobs/fetch-all-jobs GET /transform/v1/jobs Fetch all jobs in the current workspace. ```json Response theme={"system"} { "list": [ { "id": "2b467620-4470-11f1-a2d4-d9f6d57a55c9", "created_at": "2026-04-30T08:39:57.933Z", "updated_at": "2026-04-30T08:39:58.102Z", "silo_entry_id": "082ded41-31f7-429a-a740-0d2b7cc5707f", "workflow_id": "46e84a39-72cc-40ba-9b32-ac0feefa4833", "status": "OK", "completed_at": "2026-04-30T08:39:58.102Z" }, { "id": "13cc2d50-4470-11f1-abaa-a9921bf464d3", "created_at": "2026-04-30T08:39:18.549Z", "updated_at": "2026-04-30T08:39:22.938Z", "silo_entry_id": "082ded41-31f7-429a-a740-0d2b7cc5707f", "workflow_id": "92191cd1-89f0-4a40-8c7a-62903b890995", "status": "ERR" } ], "limit": 10, "cursor": "eyJjYXQiOiIyMDI2LTA0LTMwVDEwOjQ5OjAxLjA4MVoifQ", "next_cursor": "eyJjYXQiOiIyMDI2LTA0LTI5VDExOjExOjIxLjMxMFoifQ" } ``` # Create a workflow Source: https://docs.invopop.com/api-ref/transform/workflows/create-a-workflow PUT /transform/v1/workflows/{id} Create a new workflow with the given UUID. # Fetch a workflow Source: https://docs.invopop.com/api-ref/transform/workflows/fetch-a-workflow GET /transform/v1/workflows/{id} Fetch an existing workflow given its UUID. # Fetch all workflows Source: https://docs.invopop.com/api-ref/transform/workflows/fetch-all-workflows GET /transform/v1/workflows Fetch workflows in the current workspace. # Update a workflow Source: https://docs.invopop.com/api-ref/transform/workflows/update-a-workflow PATCH /transform/v1/workflows/{id} Update an existing workflow given its UUID. # Ping Source: https://docs.invopop.com/api-ref/utils/ping GET /utils/v1/ping Simple ping request ### Simple Ping Make a request to the ping endpoint to ensure your access credentials are working correctly. ### Parameters No Parameters ```json theme={"system"} { "ping": "pong" } ``` # UUID Source: https://docs.invopop.com/api-ref/utils/uuid GET /utils/v1/uuid UUID Generator # Versioning Source: https://docs.invopop.com/api-ref/versioning API versioning allows us to grow our product without breaking your integration Our philosophy is to try and avoid creating new versions as much as possible. Any changes to an API's payload, either in creation or in responses, should be as backwards compatible as possible. We do not consider adding new endpoints to be "breaking changes", so would not consider releasing a new version. Complete backward compatibility over the long term is unrealistic. Every serious API must offer a mechanism to deal with breaking changes. Our approach is to version API endpoints by service and in the request URL's path. This implies that if we only need to make changes to a single service, all the other services are isolated. It's easier to log or debug requests and extract statistics from logging data. You'll see in the documentation that each service's end-points include the version in the URL path, a few examples: * `GET https://api.invopop.com/utils/v1/ping` * `PUT https://api.invopop.com/transform/v1/jobs/XXXXXX` * `GET https://api.invopop.com/silo/v1/entries` If at some point in the future for example we decide to refactor our transform job creation service, we'll be able to suggest clients switch from `transform/v1` to `transform/v2` as part of their migration process. # Argentina Source: https://docs.invopop.com/apps/argentina Manage ARCA integrations and submit invoices to Argentina's tax authority. > [tab] Description > > > [card] [ARCA Supplier Onboarding Guide](/guides/ar-arca-suppliers) > > > > View guide › > > > [card] [ARCA Invoicing Guide](/guides/ar-arca-invoices) > > > > View guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C, B2G | > | Country | [Argentina](/compliance/argentina) | > > Invopop's **Argentina app** connects to ARCA (Agencia de Recaudación y Control Aduanero), Argentina's national tax and customs authority, enabling automated invoice submission, authorization, and reporting through ARCA's clearance model. > > **Key features** > > 1. **Workflow automation:** This app provides automated workflows for registering suppliers and issuing invoices through the ARCA system. > 2. **Real-time clearance:** Every invoice is submitted to ARCA for validation and receives a unique CAE (Código de Autorización Electrónico) code, ensuring compliance with Argentine e-invoicing regulations. > 3. **Multiple invoice types:** Support for Factura A (B2B), Factura B (B2C), Factura C (Monotributistas), Factura E (Exports), and Factura T (Tourism). > 4. **Supplier registration & verification:** Generate registration links where suppliers upload their certificates and sign agreements to enable invoice reporting. > 5. **PDF generation:** Invoices are generated with all mandatory fields, CAE codes, and QR codes as required by Argentine invoicing legislation. > 6. **WSFE integration:** Direct integration with ARCA's Web Services de Factura Electrónica for automated invoice submission and authorization. > 7. **Sequential numbering:** Automatic invoice numbering management to maintain required sequential order by punto de venta (point of sale). > > Make sure to check out our [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers) and [ARCA Invoicing guide](/guides/ar-arca-invoices) for instructions on how to set up and use these actions in your workflows. > > ## FAQ > > Invoicing questions > > > [accordion] What invoice types are commonly used in Argentina? > > > > Factura A (B2B between Responsables Inscriptos), Factura B (consumers and exempt entities), Factura C (Monotributistas to anyone), Factura E (exports) and Factura T (tourism services to non-resident tourists). Type is determined by the issuer's tax regime and the customer's classification — Invopop selects the right one automatically when both are set. > > > [accordion] How are ARCA invoices delivered? > > > > Most ARCA-cleared invoices are delivered as PDFs with the CAE printed on them, though the underlying XML is also available on request. Invopop can convert the XML into [GOBL](https://docs.gobl.org) for downstream processing; PDF-only documents need OCR or manual capture. > > > [accordion] How does invoice numbering work in Argentina? > > > > Argentine invoices use a two-part numbering system: **XXXXX-YYYYYYYY** > > > > * **Punto de Venta (POS)**: A 5-digit code (e.g., 00001) that identifies the point of sale or electronic invoicing method. > > * **Sequential Number**: An 8-digit code (e.g., 00000001) that increases by 1 with each invoice. > > > > The sequence must be continuous with no skipped or repeated numbers. Each invoice type (A, B, C) and POS combination has its own independent sequence. For example, Factura A from POS 0001 starts at `00001-00000001`, while Factura B from the same POS would also start at `00001-00000001`. > > > > Invopop automatically manages sequential numbering for each punto de venta. > > > [accordion] What is a Punto de Venta (point of sale)? > > > > A Punto de Venta (POS) is a 5-digit code that identifies where invoices are issued from. In electronic invoicing, it represents the electronic invoicing method or channel (e.g., Web Service, ARCA portal). > > > > Each POS has its own independent invoice sequence for each invoice type. You must register your punto de venta with ARCA before you can issue invoices through it in production. In the sandbox environment, you can use test punto de venta numbers without registration. > > > [accordion] Do I need different puntos de venta for different invoice types? > > > > No, you can use the same punto de venta for different invoice types (Factura A, B, C, etc.). However, each invoice type will have its own independent sequential numbering within that punto de venta. > > > > For example, using POS 00001: > > > > * Factura A: 00001-00000001, 00001-00000002, 00001-00000003... > > * Factura B: 00001-00000001, 00001-00000002, 00001-00000003... > > > [accordion] What is WSFE and how does Invopop use it? > > > > WSFE (Web Services de Factura Electrónica) is ARCA's web service infrastructure for automated invoice submission. ARCA provides several web services: > > > > * **wsfev1**: For invoices A, B, C, and M without item detail > > * **wsmtxca**: For invoices A and B with item details > > * **wsfexv1**: For type E (export) invoices > > * **wsct**: For type T (tourism) invoices issued to non-resident tourists > > > > Invopop integrates with these services to automatically submit your invoices to ARCA and receive CAE authorization codes in real time. > > > [accordion] What happens if ARCA rejects my invoice? > > > > If ARCA rejects an invoice, you'll receive an error message explaining the reason for rejection. Common reasons include: > > > > * Invalid or unregistered CUIT > > * Missing required fields > > * Incorrect tax calculations > > * Sequential numbering errors > > * Invalid punto de venta > > > > Review the error message, correct the issue in your GOBL document, and resubmit the invoice. The rejected invoice does not count toward your sequential numbering, so you can use the same number after correction. > > > [accordion] Where do I find Argentina-specific GOBL documentation? > > > > See the [Argentina tax regime in GOBL](https://docs.gobl.org/regimes/ar) for tax IDs, tax categories, and AFIP/ARCA-specific extensions. The [`ar-arca-v1`](https://docs.gobl.org/addons/ar-arca-v1) addon documents required fields for invoice submission to ARCA. > > Registering supplier questions > > > [accordion] Do I need to upload digital certificates to Invopop? > > > > Yes, to issue invoices through ARCA's web services, you need to upload your ARCA digital certificate to Invopop. This certificate is issued by ARCA and is used to authenticate your requests to their system. > > > > The registration process involves: > > > > 1. Generating a certificate signing request (CSR) with ARCA > > 2. Downloading the certificate and private key > > 3. Uploading them to Invopop through the supplier registration flow > > > > See our [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers) for detailed instructions. > > > [accordion] What information is required to register a supplier? > > > > To register a supplier for ARCA invoicing, you need: > > > > **Company Information:** > > > > * Legal name (Razón Social) > > * CUIT (tax ID) > > * Fiscal address > > * Economic activity code > > * Tax classification (Responsable Inscripto or Monotributista) > > > > **Digital Certificates:** > > > > * ARCA digital certificate (.crt file) > > * Private key (.key file) > > * Key password (if applicable) > > > > See our [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers) for detailed registration instructions. > > > [accordion] How long does supplier registration take? > > > > The supplier registration process typically takes a few minutes once the supplier has their digital certificates ready. The steps are: > > > > 1. Generate a registration link in Invopop > > 2. Supplier uploads their certificate and key > > 3. System validates the credentials with ARCA > > 4. Registration is complete > > > > The longest part is usually obtaining the digital certificate from ARCA, which can take a few days if the supplier hasn't done it before. > > > [accordion] Can I register multiple puntos de venta for one supplier? > > > > Yes, a single supplier can have multiple puntos de venta. Each punto de venta operates independently with its own sequential numbering for each invoice type. > > > > When registering a supplier, you specify which punto de venta to use. You must register each punto de venta with ARCA in production before using it to issue invoices. > > > [accordion] What happens if a supplier's certificate expires? > > > > Digital certificates issued by ARCA have an expiration date. When a certificate is about to expire, the supplier must generate a new one through ARCA's portal and upload it to Invopop. > > > > To update an expired certificate: > > > > 1. Obtain a new certificate from ARCA > > 2. Use the supplier registration workflow to upload the new certificate > > 3. The new certificate will replace the old one > > > > It's recommended to renew certificates before they expire to avoid disruption to your invoicing process. > > > [accordion] Does Invopop support white-label invoicing in Argentina? > > > > Yes, Invopop supports white-label (B2B2B) operations in Argentina. This means you can issue invoices on behalf of your clients using their CUIT and digital certificates. > > > > This is particularly useful for platforms and software providers who want to offer invoicing services to their customers without requiring them to integrate directly with ARCA. > > > > Each supplier (your client) needs to complete the registration process with their own certificates, and then you can issue invoices on their behalf through Invopop's workflows. > > > [accordion] What certificates are required to integrate with ARCA? > > > > An ARCA digital certificate, consisting of a `.crt` X.509 certificate and the matching `.key` private key. Both files are uploaded together; the certificate must be valid (not expired, not revoked) and authorized for the ARCA web services you intend to use — WSFE for Factura A, B and C, WSFEX for Factura E, and WSCT for Factura T. > > > [accordion] How do I onboard a new supplier in Argentina? > > > > Generate a registration link via the ARCA Register Supplier workflow, send it to the supplier, and have them upload their ARCA digital certificate and private key. Once validated, the supplier is ready to issue. See the [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers). > > > [accordion] How are supplier credentials stored in Invopop for Argentina? > > > > The ARCA digital certificate (`.crt`) and private key (`.key`) are stored encrypted. Invopop only uses them to authenticate ARCA web service requests (WSFE and WSCT) on the supplier's behalf and never returns the key in API responses. > > More answers in our [Argentina FAQ](/faq/argentina) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > #### Invoice actions > > > [card] Send invoice to ARCA > > > > 3 > > Submits the invoice to ARCA for authorization and retrieval of the CAE (Código de Autorización Electrónico). > > #### Supplier actions > > > [card] Register supplier with ARCA > > > > 100/mo > > Generates a unique URL in the `meta` property with a `url` key value for the supplier to register in ARCA. > > > [card] Wait for ARCA certificate upload > > > > Long running action that continues when the supplier successfully uploads their ARCA certificate. > > > [card] Unregister supplier from ARCA > > > > Removes invoice issuing entitlements to the supplier. > [tab] Workflows > > The following workflow templates help you get started quickly. Use them as is or as a base for your own flows. > > > [accordion] ARCA supplier registration > > > > Adds a registration link to a supplier to upload digital certificates for issuing ARCA-compliant e-invoices. > > > > ```json ARCA register supplier workflow theme={"system"} > > { > > "name": "ARCA register supplier", > > "description": "Register a supplier with ARCA using their certificate", > > "schema": "org/party", > > "steps": [ > > { > > "id": "12e637b0-f1fe-11f0-9dd9-c3ebff709d81", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "fc109350-f1fd-11f0-9dd9-c3ebff709d81", > > "name": "Register supplier with ARCA", > > "provider": "gov-ar.register" > > }, > > { > > "id": "ff7d3160-f1fd-11f0-9dd9-c3ebff709d81", > > "name": "Wait for ARCA certificate upload", > > "provider": "gov-ar.wait.authorization" > > }, > > { > > "id": "0dc4bdb0-f1fe-11f0-9dd9-c3ebff709d81", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "f1be4e50-f203-11f0-b1d8-c7bdc0d915b1", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=ar-supplier-registration) > > > [accordion] ARCA invoice workflow > > > > Issue invoices through ARCA with automatic CAE authorization and PDF generation. > > > > ```json ARCA send invoice workflow theme={"system"} > > { > > "name": "ARCA send invoice", > > "description": "Issue an invoice through ARCA and retrieve the CAE code", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "bce37ad0-f1fd-11f0-9dd9-c3ebff709d81", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "68863090-f1fd-11f0-9dd9-c3ebff709d81", > > "name": "Send invoice to ARCA", > > "provider": "gov-ar.send" > > }, > > { > > "id": "6cc19050-f1fd-11f0-9dd9-c3ebff709d81", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · Letter", > > "config": { > > "currency_template": "", > > "date_format": "%Y-%m-%d", > > "decimal_mark": "", > > "label": "", > > "layout": "Letter", > > "locale": "es", > > "logo_height": 40, > > "negative_template": "", > > "scripting": false, > > "thousands_separator": "", > > "watermark": "" > > } > > }, > > { > > "id": "c6221e30-f1fd-11f0-9dd9-c3ebff709d81", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "d751af40-f1fd-11f0-9dd9-c3ebff709d81", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=ar-invoice) > [tab] Documents > > Paste into the Invopop Console (developer mode) or GOBL Builder. > > > [accordion] ARCA supplier > > > > A supplier with an 11-digit CUIT and the fiscal address used when registering with ARCA. > > > > ```json Argentina supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Proveedor Ejemplo S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. Corrientes 1234", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1043", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "ventas@proveedorejemplo.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > } > > ``` > > > [accordion] ARCA customer > > > > A business customer identified by CUIT. The customer's tax status determines the invoice type (A, B, or C). > > > > ```json Argentina customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Cliente Comercial S.R.L.", > > "tax_id": { > > "country": "AR", > > "code": "30987654321" > > }, > > "addresses": [ > > { > > "street": "Av. Santa Fe 2500", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1123", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "compras@clientecomercial.com.ar" > > } > > ] > > } > > ``` > > > [accordion] Factura A - Registered taxpayer to registered taxpayer (B2B) > > > > Factura A is issued by registered taxpayers (Responsable Inscripto) to other registered taxpayers or monotributistas. This invoice type includes VAT broken down separately. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the Factura A, > > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon ensures the document will be validated using the ARCA rules built into the [GOBL](https://docs.gobl.org) library, > > * both supplier and customer must be registered taxpayers with valid CUIT numbers, > > * there are no totals or calculations in the minimal version; all these will be calculated automatically when running `gobl build`, > > * the built version in the second tab shows the normalized document with calculated totals, line item sums, IVA breakdowns shown separately, and automatically generated fields, and, > > * the invoice will be submitted to ARCA for authorization and receive a CAE (Código de Autorización Electrónico). > > > > ```json ARCA Invoice (Factura A) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["ar-arca-v4"], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "currency": "ARS", > > "issue_date": "2025-01-15", > > "series": "1", > > "supplier": { > > "name": "Proveedor Ejemplo S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. Corrientes 1234", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1043", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "ventas@proveedorejemplo.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Cliente Comercial S.R.L.", > > "tax_id": { > > "country": "AR", > > "code": "30987654321" > > }, > > "addresses": [ > > { > > "street": "Av. Santa Fe 2500", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1123", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "compras@clientecomercial.com.ar" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Notebooks Dell Latitude", > > "price": "450000.00", > > "key": "goods" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "AR", > > "$addons": [ > > "ar-arca-v4" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "series": "1", > > "issue_date": "2025-01-15", > > "currency": "ARS", > > "tax": { > > "ext": { > > "ar-arca-concept": "1", > > "ar-arca-doc-type": "1" > > } > > }, > > "supplier": { > > "name": "Proveedor Ejemplo S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. Corrientes 1234", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1043", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "ventas@proveedorejemplo.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Cliente Comercial S.R.L.", > > "tax_id": { > > "country": "AR", > > "code": "30987654321" > > }, > > "addresses": [ > > { > > "street": "Av. Santa Fe 2500", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1123", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "compras@clientecomercial.com.ar" > > } > > ], > > "ext": { > > "ar-arca-vat-status": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "key": "goods", > > "name": "Notebooks Dell Latitude", > > "price": "450000.00" > > }, > > "sum": "4500000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "ar-arca-vat-rate": "5" > > } > > } > > ], > > "total": "4500000.00" > > } > > ], > > "totals": { > > "sum": "4500000.00", > > "total": "4500000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "ar-arca-vat-rate": "5" > > }, > > "base": "4500000.00", > > "percent": "21.0%", > > "amount": "945000.00" > > } > > ], > > "amount": "945000.00" > > } > > ], > > "sum": "945000.00" > > }, > > "tax": "945000.00", > > "total_with_tax": "5445000.00", > > "payable": "5445000.00" > > } > > } > > ``` > > > [accordion] Factura B - Registered taxpayer to final consumer (B2C) > > > > Factura B is issued by registered taxpayers (Responsable Inscripto) to final consumers, exempt entities, non-categorized subjects, and foreign tourists. VAT is included in the total price. > > > > Notice: > > > > * the customer is typically a final consumer (Consumidor Final) and may not have a CUIT, > > * the minimal version contains only essential fields; `gobl build` handles all calculations, > > * when running `gobl build`, the system automatically calculates totals with IVA included in the price (not shown separately as in Factura A), > > * the built version shows the normalized document with calculated totals where VAT is included in the final amounts, > > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon applies Factura B specific rules and validations, and, > > * the invoice will be submitted to ARCA for authorization and receive a CAE. > > > > ```json ARCA Invoice (Factura B) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["ar-arca-v4"], > > "uuid": "4bea8c67-6ad9-5cfc-a1ce-f9f391e963b1", > > "currency": "ARS", > > "issue_date": "2025-01-16", > > "series": "2", > > "supplier": { > > "name": "Electrodomésticos del Sur S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. Rivadavia 5000", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1424", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "ventas@electrodomesticos.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Juan Pérez", > > "identities": [ > > { > > "code": "25123456", > > "ext": { > > "ar-arca-identity-type": "96" > > } > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Heladera Samsung 400L", > > "price": "850000.00", > > "key": "goods" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "AR", > > "$addons": [ > > "ar-arca-v4" > > ], > > "uuid": "4bea8c67-6ad9-5cfc-a1ce-f9f391e963b1", > > "type": "standard", > > "series": "2", > > "issue_date": "2025-01-16", > > "currency": "ARS", > > "tax": { > > "ext": { > > "ar-arca-concept": "1", > > "ar-arca-doc-type": "6" > > } > > }, > > "supplier": { > > "name": "Electrodomésticos del Sur S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. Rivadavia 5000", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1424", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "ventas@electrodomesticos.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Juan Pérez", > > "identities": [ > > { > > "code": "25123456", > > "ext": { > > "ar-arca-identity-type": "96" > > } > > } > > ], > > "ext": { > > "ar-arca-vat-status": "5" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "key": "goods", > > "name": "Heladera Samsung 400L", > > "price": "850000.00" > > }, > > "sum": "850000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "ar-arca-vat-rate": "5" > > } > > } > > ], > > "total": "850000.00" > > } > > ], > > "totals": { > > "sum": "850000.00", > > "total": "850000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "ar-arca-vat-rate": "5" > > }, > > "base": "850000.00", > > "percent": "21.0%", > > "amount": "178500.00" > > } > > ], > > "amount": "178500.00" > > } > > ], > > "sum": "178500.00" > > }, > > "tax": "178500.00", > > "total_with_tax": "1028500.00", > > "payable": "1028500.00" > > } > > } > > ``` > > > [accordion] Factura C - Monotributista invoice (small business) > > > > Factura C is issued by monotributistas (simplified tax regime for small businesses and freelancers) to any type of customer. This invoice type does not break down VAT separately. > > > > Notice: > > > > * the supplier is registered under the monotributo regime, which is a simplified tax system for small businesses, > > * the minimal version contains only essential fields; totals are calculated by `gobl build`, > > * when running `gobl build`, the system automatically calculates totals without breaking down VAT separately (VAT is included but not itemized), > > * the built version shows the normalized document with calculated totals where no VAT breakdown is shown, as monotributistas don't separately charge VAT, > > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon applies Factura C specific rules and ensures compliance with monotributo requirements, and, > > * the invoice will be submitted to ARCA for authorization and receive a CAE. > > > > ```json ARCA Invoice Monotax (Factura C) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["ar-arca-v4"], > > "$tags": ["monotax"], > > "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", > > "currency": "ARS", > > "issue_date": "2025-01-18", > > "series": "1", > > "supplier": { > > "name": "María García - Diseño Gráfico", > > "tax_id": { > > "country": "AR", > > "code": "20172543597" > > }, > > "addresses": [ > > { > > "street": "Calle Florida 500", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1005", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "maria.garcia@email.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Startup Tech S.R.L.", > > "tax_id": { > > "country": "AR", > > "code": "30987654321" > > }, > > "addresses": [ > > { > > "street": "Av. Belgrano 1000", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1092", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "admin@startuptech.com.ar" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Diseño de logotipo e identidad visual", > > "price": "150000.00", > > "key": "services" > > } > > } > > ], > > "charges": [ > > { > > "key": "tax", > > "percent": "10%", > > "reason": "Tributo Nacional", > > "ext": { > > "ar-arca-tax-type": "1" > > } > > } > > ], > > "ordering": { > > "period": { > > "start": "2025-01-01", > > "end": "2025-01-15" > > } > > }, > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2025-01-25", > > "amount": "150000.00" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "AR", > > "$addons": [ > > "ar-arca-v4" > > ], > > "$tags": [ > > "monotax" > > ], > > "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", > > "type": "standard", > > "series": "1", > > "issue_date": "2025-01-18", > > "currency": "ARS", > > "tax": { > > "ext": { > > "ar-arca-concept": "2", > > "ar-arca-doc-type": "11" > > } > > }, > > "supplier": { > > "name": "María García - Diseño Gráfico", > > "tax_id": { > > "country": "AR", > > "code": "20172543597" > > }, > > "addresses": [ > > { > > "street": "Calle Florida 500", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1005", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "maria.garcia@email.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Startup Tech S.R.L.", > > "tax_id": { > > "country": "AR", > > "code": "30987654321" > > }, > > "addresses": [ > > { > > "street": "Av. Belgrano 1000", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1092", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "admin@startuptech.com.ar" > > } > > ], > > "ext": { > > "ar-arca-vat-status": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "key": "services", > > "name": "Diseño de logotipo e identidad visual", > > "price": "150000.00" > > }, > > "sum": "150000.00", > > "total": "150000.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "key": "tax", > > "reason": "Tributo Nacional", > > "percent": "10%", > > "amount": "15000.00", > > "ext": { > > "ar-arca-tax-type": "1" > > } > > } > > ], > > "ordering": { > > "period": { > > "start": "2025-01-01", > > "end": "2025-01-15" > > } > > }, > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2025-01-25", > > "amount": "150000.00" > > } > > ] > > } > > }, > > "totals": { > > "sum": "150000.00", > > "charge": "15000.00", > > "total": "165000.00", > > "tax": "0.00", > > "total_with_tax": "165000.00", > > "payable": "165000.00" > > } > > } > > ``` > > > [accordion] Factura T - Tourism invoice for non-resident tourists > > > > Factura T is issued by hotels and tourism providers to non-resident tourists. ARCA automatically reimburses the 21% VAT on qualifying accommodation items. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the Factura T, > > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon ensures the document will be validated using the ARCA rules built into the [GOBL](https://docs.gobl.org) library, > > * the document type (`ar-arca-doc-type`) must be `195` (Invoice), `196` (Debit Note) or `197` (Credit Note), and the tourism extensions `ar-arca-tourism-type` and `ar-arca-tourism-item` are mandatory, > > * only the standard 21% VAT rate is accepted; any other rate will be rejected by ARCA, > > * the built version shows the normalized document with calculated totals and the IVA breakdown, and, > > * the invoice will be submitted to ARCA for authorization and receive a CAE. > > > > ```json ARCA Invoice (Factura T) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["ar-arca-v4"], > > "uuid": "5cfa9d78-7be0-6dfd-b2df-0a0402fa074c", > > "currency": "ARS", > > "issue_date": "2025-02-01", > > "series": "1", > > "tax": { > > "ext": { > > "ar-arca-concept": "2", > > "ar-arca-doc-type": "195", > > "ar-arca-tourism-type": "1" > > } > > }, > > "supplier": { > > "name": "Hotel Patagonia S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. San Martín 500", > > "locality": "Bariloche", > > "region": "Río Negro", > > "code": "R8400", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "reservas@hotelpatagonia.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "John Smith", > > "identities": [ > > { > > "code": "AB123456", > > "ext": { > > "ar-arca-identity-type": "94" > > } > > } > > ], > > "addresses": [ > > { > > "street": "123 Main St", > > "locality": "New York", > > "region": "NY", > > "country": "US" > > } > > ], > > "ext": { > > "ar-arca-vat-status": "5" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Hotel sin desayuno", > > "price": "100.00", > > "key": "services" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general", > > "ext": { > > "ar-arca-tourism-item": "1", > > "ar-arca-vat-rate": "5" > > } > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "AR", > > "$addons": [ > > "ar-arca-v4" > > ], > > "uuid": "5cfa9d78-7be0-6dfd-b2df-0a0402fa074c", > > "type": "standard", > > "series": "1", > > "issue_date": "2025-02-01", > > "currency": "ARS", > > "tax": { > > "ext": { > > "ar-arca-concept": "2", > > "ar-arca-doc-type": "195", > > "ar-arca-tourism-type": "1" > > } > > }, > > "supplier": { > > "name": "Hotel Patagonia S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. San Martín 500", > > "locality": "Bariloche", > > "region": "Río Negro", > > "code": "R8400", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "reservas@hotelpatagonia.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "John Smith", > > "identities": [ > > { > > "code": "AB123456", > > "ext": { > > "ar-arca-identity-type": "94" > > } > > } > > ], > > "addresses": [ > > { > > "street": "123 Main St", > > "locality": "New York", > > "region": "NY", > > "country": "US" > > } > > ], > > "ext": { > > "ar-arca-vat-status": "5" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "key": "services", > > "name": "Hotel sin desayuno", > > "price": "100.00" > > }, > > "sum": "100.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "ar-arca-tourism-item": "1", > > "ar-arca-vat-rate": "5" > > } > > } > > ], > > "total": "100.00" > > } > > ], > > "totals": { > > "sum": "100.00", > > "total": "100.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "ar-arca-tourism-item": "1", > > "ar-arca-vat-rate": "5" > > }, > > "base": "100.00", > > "percent": "21.0%", > > "amount": "21.00" > > } > > ], > > "amount": "21.00" > > } > > ], > > "sum": "21.00" > > }, > > "tax": "21.00", > > "total_with_tax": "121.00", > > "payable": "121.00" > > } > > } > > ``` > > > [accordion] Nota de Crédito A - Credit note correcting a Factura A > > > > Credit notes (notas de crédito) reverse all or part of a previously authorized invoice — for returns, discounts, or billing errors. The credit note class (A, B, or C) follows the class of the invoice it corrects. > > > > Notice: > > > > * the `type` is set to `credit-note`; combined with the registered-taxpayer parties, the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon maps it to document type `3` (Nota de Crédito A), > > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, with a `reason` for the correction, > > * the preceding entry carries the [`ar-arca-doc-type`](https://docs.gobl.org/addons/ar-arca-v4) extension set to `1`, identifying the original document as a Factura A, > > * the lines describe only the amounts being credited — here, two returned notebooks from the original ten, and, > > * like invoices, the credit note is submitted to ARCA for authorization and receives its own CAE. > > > > ```json ARCA Credit Note (Nota de Crédito A) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["ar-arca-v4"], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a1", > > "type": "credit-note", > > "currency": "ARS", > > "issue_date": "2025-01-22", > > "series": "1", > > "preceding": [ > > { > > "type": "standard", > > "series": "1", > > "code": "00001234", > > "issue_date": "2025-01-15", > > "reason": "Devolución de mercadería", > > "ext": { > > "ar-arca-doc-type": "1" > > } > > } > > ], > > "supplier": { > > "name": "Proveedor Ejemplo S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. Corrientes 1234", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1043", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "ventas@proveedorejemplo.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Cliente Comercial S.R.L.", > > "tax_id": { > > "country": "AR", > > "code": "30987654321" > > }, > > "addresses": [ > > { > > "street": "Av. Santa Fe 2500", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1123", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "compras@clientecomercial.com.ar" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Notebooks Dell Latitude", > > "price": "450000.00", > > "key": "goods" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "AR", > > "$addons": [ > > "ar-arca-v4" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a1", > > "type": "credit-note", > > "series": "1", > > "issue_date": "2025-01-22", > > "currency": "ARS", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-01-15", > > "series": "1", > > "code": "00001234", > > "reason": "Devolución de mercadería", > > "ext": { > > "ar-arca-doc-type": "1" > > } > > } > > ], > > "tax": { > > "ext": { > > "ar-arca-concept": "1", > > "ar-arca-doc-type": "3" > > } > > }, > > "supplier": { > > "name": "Proveedor Ejemplo S.A.", > > "tax_id": { > > "country": "AR", > > "code": "30712345671" > > }, > > "addresses": [ > > { > > "street": "Av. Corrientes 1234", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1043", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "ventas@proveedorejemplo.com.ar" > > } > > ], > > "registration": { > > "other": "Inicio de actividades: 2016-03-01" > > } > > }, > > "customer": { > > "name": "Cliente Comercial S.R.L.", > > "tax_id": { > > "country": "AR", > > "code": "30987654321" > > }, > > "addresses": [ > > { > > "street": "Av. Santa Fe 2500", > > "locality": "Buenos Aires", > > "region": "Ciudad Autónoma de Buenos Aires", > > "code": "C1123", > > "country": "AR" > > } > > ], > > "emails": [ > > { > > "addr": "compras@clientecomercial.com.ar" > > } > > ], > > "ext": { > > "ar-arca-vat-status": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "key": "goods", > > "name": "Notebooks Dell Latitude", > > "price": "450000.00" > > }, > > "sum": "900000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "ar-arca-vat-rate": "5" > > } > > } > > ], > > "total": "900000.00" > > } > > ], > > "totals": { > > "sum": "900000.00", > > "total": "900000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "ar-arca-vat-rate": "5" > > }, > > "base": "900000.00", > > "percent": "21.0%", > > "amount": "189000.00" > > } > > ], > > "amount": "189000.00" > > } > > ], > > "sum": "189000.00" > > }, > > "tax": "189000.00", > > "total_with_tax": "1089000.00", > > "payable": "1089000.00" > > } > > } > > ``` *** > [accordion] 🇦🇷 Invopop resources for Argentina > > | | | > | - | - | > | Compliance | [Invoicing compliance in Argentina](/compliance/argentina) [Compliance timeline](/timelines/argentina) | > | Apps | [Argentina](/apps/argentina) | > | Guides | [ARCA supplier onboarding](/guides/ar-arca-suppliers) [ARCA invoices](/guides/ar-arca-invoices) | > | FAQ | [Argentina FAQ](/faq/argentina) | > | GOBL | [Argentina Tax Regime](https://docs.gobl.org/regimes/ar) [Argentina ARCA Addon](https://docs.gobl.org/addons/ar-arca-v4) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Argentina App → # AT Portugal Source: https://docs.invopop.com/apps/at-portugal Submit certified invoices and periodic SAF-T data to Portugal’s Autoridade Tributária. > [tab] Description > > > [card] [Register suppliers](/guides/pt-at-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/pt-at) > > > > Issuing guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C | > | Country | [Portugal](/compliance/portugal) | > > Invopop is an officially certified invoice provider in Portugal. Our **AT Portugal app** supports invoice, receipt and delivery note compliance with Portugal’s AT e-invoicing regulation. Automate supplier onboarding, SAF-T report generation, invoice generation with ATCUD, and more. This app enables businesses (and their suppliers) to issue invoices and other document types in accordance with Portuguese law. > > #### Key features > > * **Workflow automation:** This app provides automated workflows for issuing invoices, onboarding suppliers, and managing fiscal submissions to the Autoridade Tributária e Aduaneira (AT). > * **Legally compliant PDF documents:** Invoices, payments and delivery notes are generated with a certified ATCUD and QR codes, as required by the Portuguese tax legislation. > * **SAF-T (PT):** The app makes workflow steps available to manage SAF-T (PT) entries for each supplier. > * **Realtime and manual reporting options:** Report in real-time via webservice or generate a file to upload through the AT's portal. > * **Supplier portal:** Suppliers can generate SAF-T PT reports and create authorized series via the [Supplier Portal](https://at-pt.invopop.com/portal). > * **Supplier registration:** Registration completes in a single workflow step, with no manual onboarding for the supplier. > * **White-label support:** Invoicing can be performed either under a client’s brand (white-label) or directly by the issuing organization, according to operational needs. > > #### Supported document types > > The current integration supports the following document types for reporting to the AT: > > | Category | Code | Portuguese Name | English Translation | > | - | - | - | - | > | **Invoices** | **FT** | *Fatura* | Standard Invoice | > | | **FS** | *Fatura Simplificada* | Simplified Invoice | > | | **FR** | *Fatura-Recibo* | Invoice-Receipt | > | | **ND** | *Nota de Débito* | Debit Note | > | | **NC** | *Nota de Crédito* | Credit Note | > | **Payment receipts** | **RG** | *Outro Recibo* | Other Receipt | > | | **RC** | *Recibo no âmbito do regime de IVA de Caixa* | Cash VAT Receipt | > | **Transport documents** | **GR** | *Guia de Remessa* | Delivery Note | > | | **GT** | *Guia de Transporte* | Waybill | > | | **GD** | *Guia de Devolução* | Return Guide | > | | **GC** | *Guia de Consignação* | Consignment Guide | > | **Work documents** | **PF** | *Pró-forma* | Proforma | > | | **OU** | *Outros* | Other | > > Other SAF-T document types beyond those listed above are not currently supported. If you require support for additional document types, please contact us so we can analyze and consider prioritizing their development. > > Make sure to check out our [Supplier registration guide](/guides/pt-at-supplier) for onboarding suppliers and the [Issuing invoices guide](/guides/pt-at) for issuing documents. > > ## FAQ > > Invoicing questions > > > [accordion] Should our customers upload their SAF-T files manually? > > > > In Portugal, fiscally relevant documents issued through invoicing software must be reported to the Tax Authority (AT). There are two possible reporting models: > > > > 1. **SAF-T monthly export** – a single XML file including all documents for the month. This file is generated by the invoicing software and then uploaded manually to the AT portal, as there is no API available for submitting it automatically. > > 2. **Real-time transmission** – instead of a monthly file, each invoice is sent individually to the AT at the time of issuance, using the authority's API. > > > > Whether one model or the other is used usually depends on the issuer's accountant's preference (who typically uploads the SAF-T monthly report should they choose that model). Invopop's [AT Portugal app](/apps/at-portugal) supports both reporting methods, so each supplier can pick the one that best fits their needs. > > > > If a supplier uses real-time transmission — the **Send document to AT** step in the workflow — the documents submitted this way are already communicated to the AT, so they don't need to upload a monthly SAF-T file for them. The only documents that still require the monthly SAF-T upload are those not reported in real time, such as RG payment receipts, which the AT's webservice does not accept. > > > [accordion] How do I configure my workspace for Portuguese invoicing? > > > > Install the AT Portugal app, register the supplier with their NIF, and pick a reporting model (monthly SAF-T or real-time submission). Run invoices through the AT Issue Invoice workflow — Invopop generates the ATCUD, QR, and signature automatically. > > > [accordion] Why does recording fail with 'payable: too high according to Artigo 40.º do CIVA'? > > > > When issuing in Portugal you may see an error similar to: > > > > > `recording envelope: totals: (payable: too high according to Artigo 40.º do CIVA.)` > > > > **What it means:** Article 40 of the Portuguese VAT Code (*Código do IVA*) caps the amount a **simplified invoice** (*fatura simplificada*) can carry. The limits are: > > > > * **€1,000** for goods sold by retailers or itinerant sellers to buyers who are not taxable persons (final consumers). > > * **€100** for every other supply of goods or services. > > * **No limit** for suppliers under the Article 53 small-business exemption regime (since Decree-Law 35/2025). > > > > Above the applicable limit, a simplified invoice is no longer allowed and the document must be a **full invoice** (*fatura*). Note that a simplified invoice can only carry the fields listed in Article 40, so adding the buyer's name or address to it is not an option — the document type has to change. > > > > **What to do:** > > > > * Issue the document as a **full invoice** instead of a simplified one. > > * If the buyer is a **taxable person** (a business or a freelancer invoicing with a NIF), include their **name, address, and NIF** — Article 36 requires these identification elements only for taxable-person buyers. > > * If the buyer is a **final consumer**, no customer identification is required on a full invoice, whatever the amount. If you don't have their details, leave the `customer` block out, and Invopop will report the document to the AT under the generic final consumer. > > > > In GOBL, drop the `simplified` tag from `$tags` and adjust the `customer` block as above, then re-run the workflow. > > > [accordion] Why does my credit note fail with 'The credit note line #N cannot be applied to any line available to credit'? > > > > **What it means:** when a credit note references an invoice issued through Invopop, every credit note line must be matched against the quantity and price still available to credit on the original invoice's lines. Line `#N` could not be matched to any of them. > > > > For a credit note line to be applied to an invoice line: > > > > 1. Its `item.name` must be **exactly identical** to the invoice line's, and both lines must have the same VAT treatment — the same rate and, where applicable, the same exemption. > > 2. Among the lines matching by name and VAT, it must satisfy one of: > > * **Same unit price** as the invoice line, with a quantity up to the remaining quantity — to credit fewer units at the original price. > > * **Same quantity** as the invoice line, with a unit price up to the remaining price — to credit part of the amount for the full quantity. > > > > Include only the lines you are crediting — the credit note does not need to mirror the full invoice — and the order of the lines is irrelevant. Availability is cumulative: every accepted credit note reduces the remaining quantity or price, so the total credited per line can never exceed the original invoice amount. > > > > **What to do:** check that line `#N`'s item name and VAT rate or exemption exactly match a line on the referenced invoice (watch for typos or renamed items), and that it keeps either the original unit price or the original quantity as described above. If everything matches, review credit notes previously issued against the same invoice — the remaining quantity or amount may already have been credited. > > > > Note that a credit note supports exactly **one** `preceding` reference, and line matching only applies when the referenced invoice was issued through Invopop — references to external series (for example, invoices issued by a previous provider) are accepted without matching. > > > [accordion] Why does my payment workflow fail with 'payment type RG is not supported for real-time reporting'? > > > > This error means your workflow includes the **Send to the AT** step for a payment receipt. Payment receipts are not supported for real-time reporting — the AT does not accept them via the real-time webservice. > > > > **The fix:** remove the **Send to the AT** step from your payment workflow. RG receipts are only reportable through the monthly SAF-T file. The **Record for SAF-T reporting** step alone is all you need for full compliance. > > > [accordion] What payment receipt types are supported in Portugal? > > > > Portugal defines two payment receipt types: > > > > * **RG — Outros Recibos**: Standard payment receipts, reported through the monthly SAF-T file only. Real-time reporting is not available for this type. > > * **RC — Recibo no âmbito do regime de IVA de Caixa**: Receipts specific to the VAT Cash accounting regime. RC payments are not currently supported by the AT Portugal app. > > > [accordion] Where do I find Portugal-specific GOBL documentation? > > > > See the [Portugal tax regime in GOBL](https://docs.gobl.org/regimes/pt) for tax categories, NIF rules, and AT-specific extensions. The [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon documents fields required by the SAF-T schema. > > Registering supplier questions > > > [accordion] How do I register a supplier with AT? > > > > Run the AT Register Supplier workflow on the supplier, provide their AT web-service credentials, then register at least one series per document type they'll issue. Both can be done in the supplier portal or through the API ([credentials](/api-ref/apps/at-pt/credentials), [series](/api-ref/apps/at-pt/series-register)). Each series gets a validation code from the AT, used to build the ATCUD on every document. See [Register a supplier](/guides/pt-at-supplier). > > > [accordion] What credentials does AT require to authenticate a supplier? > > > > An AT web-services sub-user (username and password) created in the AT portal, in both models. It always needs the `WSE` permission, to register series; add `WFA` if documents are reported in real time. > > > [accordion] How are supplier credentials stored in Invopop for Portugal? > > > > Invopop stores the AT web-service credentials encrypted at rest, in both models: they're needed to register series, and for real-time reporting. In the SAF-T model, the supplier (or their accountant) also downloads the monthly SAF-T file and uploads it to the AT's portal. > > Reporting questions > > > [accordion] How often must I submit AT reports? > > > > Real-time model: per invoice. SAF-T model: once per month, by the 5th of the following month. The choice is made in your workflow: include the **Send document to AT** step for real-time reporting, or leave it out and report through the monthly SAF-T file. > > > [accordion] How do I schedule periodic reports for Portugal? > > > > For invoice-level reporting, there's nothing to schedule in real time: the **Send document to AT** step reports each document as it's issued. In the SAF-T model, generate the month's file on demand (from the supplier portal or the [SAF-T endpoint](/api-ref/apps/at-pt/saft)) and upload it to the AT's portal by the 5th of the following month; Invopop doesn't generate or upload it automatically. Periodic VAT and IES are filed separately by the accountant. > > > [accordion] What format does AT expect for periodic reports? > > > > Monthly SAF-T-PT XML uploaded to AT's portal (no API for this), or real-time WebService XML calls per invoice. Both follow the same SAF-T schema; real-time submits one document at a time, SAF-T submits an aggregated file covering the month. > > More answers in our [Portugal FAQ](/faq/portugal) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Record document for SAF-T > > > > 3 > > Record a GOBL document for SAF-T PT reporting. > > > [card] Send document to AT > > > > Send document to the AT in realtime via web service. > > > [card] Seal for the AT > > > > Seal the document with the AT hash chain and ATCUD so it can be recorded for SAF-T or sent to the AT. > > > [card] Register supplier with AT > > > > 100/mo > > Register a GOBL party to report taxes to the AT in their name. > > > [card] Unregister supplier with AT > > > > Remove a supplier's registration so it can no longer report taxes to the AT in their name. > > > [card] Cancel SAF-T record > > > > Cancel a previously recorded GOBL document for SAF-T PT reporting. > [tab] Workflows > > These workflows are essential sequences for processing and issuing AT Portugal documents. You can augment them with webhooks, email, storage actions and more. > > Issuing document workflows: > > > [accordion] AT Portugal issue invoice > > > > ```json AT issue invoice workflow theme={"system"} > > { > > "name": "AT issue invoice", > > "description": "Issue an invoice through AT and generate PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "76f194b0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Record document for SAF-T", > > "provider": "at-pt.record" > > }, > > { > > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > > "name": "Send document to AT", > > "provider": "at-pt.send" > > }, > > { > > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Original", > > "config": { > > "date_format": "%Y-%m-%d", > > "hide_promo": true, > > "label": "Original", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "" > > } > > }, > > { > > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Duplicado", > > "config": { > > "date_format": "%Y-%m-%d", > > "label": "Duplicado", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "", > > "duplicate": true > > } > > }, > > { > > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] AT Portugal issue delivery note > > > > ```json AT issue delivery workflow theme={"system"} > > { > > "name": "AT issue delivery", > > "description": "Issue a delivery document through AT and generate PDF", > > "schema": "bill/delivery", > > "steps": [ > > { > > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "76f194b0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Record document for SAF-T", > > "provider": "at-pt.record" > > }, > > { > > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > > "name": "Send document to AT", > > "provider": "at-pt.send" > > }, > > { > > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Original", > > "config": { > > "date_format": "%Y-%m-%d", > > "hide_promo": true, > > "label": "Original", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "" > > } > > }, > > { > > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Duplicado", > > "config": { > > "date_format": "%Y-%m-%d", > > "label": "Duplicado", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "", > > "duplicate": true > > } > > }, > > { > > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] AT Portugal issue payment > > > > ```json AT issue payment workflow theme={"system"} > > { > > "name": "AT issue payment", > > "description": "Issue a payment through AT and generate PDF", > > "schema": "bill/payment", > > "steps": [ > > { > > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "76f194b0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Record document for SAF-T", > > "provider": "at-pt.record" > > }, > > { > > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Original", > > "config": { > > "date_format": "%Y-%m-%d", > > "hide_promo": true, > > "label": "Original", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "" > > } > > }, > > { > > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Duplicado", > > "config": { > > "date_format": "%Y-%m-%d", > > "label": "Duplicado", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "", > > "duplicate": true > > } > > }, > > { > > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Supplier workflows: > > > [accordion] AT Portugal register supplier > > > > ```json AT register supplier workflow theme={"system"} > > { > > "name": "AT register supplier", > > "description": "Register a supplier with AT", > > "schema": "org/party", > > "steps": [ > > { > > "id": "6f9282a0-3870-11ef-af29-4533d56cea03", > > "name": "Set state", > > "config": { > > "state": "processing" > > }, > > "summary": "Set state to `processing`{.state .processing}", > > "provider": "silo.state" > > }, > > { > > "id": "1a9bcde0-a816-11ef-87b2-fd751e6d3b88", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "5b6ca7e0-ad93-11ef-a7da-83137f995008", > > "name": "Register supplier with AT", > > "provider": "at-pt.register" > > } > > ], > > "rescue": [] > > } > > ``` > > > [accordion] AT Portugal post-registration workflow > > > > ```json AT supplier post-registration workflow theme={"system"} > > { > > "name": "AT supplier post-registration", > > "description": "Mark an AT supplier as registered", > > "schema": "org/party", > > "steps": [ > > { > > "id": "7e8d8070-3870-11ef-af29-4533d56cea03", > > "name": "Set state", > > "config": { > > "state": "registered" > > }, > > "summary": "Set state to `registered`{.state .registered}", > > "provider": "silo.state" > > } > > ], > > "rescue": [] > > } > > ``` > > > [accordion] AT Portugal unregister supplier > > > > ```json AT unregister supplier workflow theme={"system"} > > { > > "name": "AT unregister supplier", > > "description": "Unregister a supplier with AT", > > "schema": "org/party", > > "steps": [ > > { > > "id": "5b6ca7e0-ad93-11ef-a7da-83137f995008", > > "name": "Unregister supplier with AT", > > "provider": "at-pt.unregister" > > }, > > { > > "id": "6f9282a0-3870-11ef-af29-4533d56cea03", > > "name": "Set state", > > "config": { > > "state": "void" > > }, > > "summary": "Set state to `void`{.state .void}", > > "provider": "silo.state" > > } > > ], > > "rescue": [ > > { > > "id": "c3a646c0-ab9f-11f1-ac28-4932cb701e8f", > > "name": "Set state", > > "config": { > > "state": "error" > > }, > > "summary": "Set state to `error`{.state .error}", > > "provider": "silo.state" > > } > > ] > > } > > ``` > > Cancelling document workflows: > > > [accordion] AT Portugal cancel invoice > > > > ```json AT cancel invoice workflow theme={"system"} > > { > > "name": "AT cancel invoice", > > "description": "Cancel an invoice through AT and generate PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "cc0002a0-927f-11f0-8cd1-bd9f2c371090", > > "name": "Cancel SAF-T record", > > "provider": "at-pt.cancel" > > }, > > { > > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > > "name": "Send document to AT", > > "provider": "at-pt.send" > > }, > > { > > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "void" > > } > > }, > > { > > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Original", > > "config": { > > "date_format": "%Y-%m-%d", > > "hide_promo": true, > > "label": "Original", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "" > > } > > }, > > { > > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Duplicado", > > "config": { > > "date_format": "%Y-%m-%d", > > "label": "Duplicado", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "", > > "duplicate": true > > } > > } > > ], > > "rescue": [ > > { > > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] AT Portugal cancel delivery note > > > > ```json AT cancel delivery workflow theme={"system"} > > { > > "name": "AT cancel delivery", > > "description": "Cancel a delivery document through AT and generate PDF", > > "schema": "bill/delivery", > > "steps": [ > > { > > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "cc0002a0-927f-11f0-8cd1-bd9f2c371090", > > "name": "Cancel SAF-T record", > > "provider": "at-pt.cancel" > > }, > > { > > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > > "name": "Send document to AT", > > "provider": "at-pt.send" > > }, > > { > > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "void" > > } > > }, > > { > > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Original", > > "config": { > > "date_format": "%Y-%m-%d", > > "hide_promo": true, > > "label": "Original", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "" > > } > > }, > > { > > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Duplicado", > > "config": { > > "date_format": "%Y-%m-%d", > > "label": "Duplicado", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "", > > "duplicate": true > > } > > } > > ], > > "rescue": [ > > { > > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] AT Portugal cancel payment > > > > ```json AT cancel payment workflow theme={"system"} > > { > > "name": "AT cancel payment", > > "description": "Cancel a payment through AT and generate PDF", > > "schema": "bill/payment", > > "steps": [ > > { > > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "cc0002a0-927f-11f0-8cd1-bd9f2c371090", > > "name": "Cancel SAF-T record", > > "provider": "at-pt.cancel" > > }, > > { > > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "void" > > } > > }, > > { > > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Original", > > "config": { > > "date_format": "%Y-%m-%d", > > "hide_promo": true, > > "label": "Original", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "" > > } > > }, > > { > > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Portuguese · A4 · Duplicado", > > "config": { > > "date_format": "%Y-%m-%d", > > "label": "Duplicado", > > "layout": "A4", > > "locale": "pt", > > "logo_height": 40, > > "watermark": "", > > "duplicate": true > > } > > } > > ], > > "rescue": [ > > { > > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > > "name": "Set state", > > "provider": "silo.state", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > New to workflows? Read more in our [workflows guide](/guides/workflows). > [tab] Documents > > > [accordion] AT B2B invoice > > > > In this example, we're issuing a simple invoice from a Portuguese supplier to another Portuguese business. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the invoice, without totals or calculations, > > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon ensures the document will be validated and normalized using the SAF-T PT v1 rules built into the [GOBL](https://docs.gobl.org) library, > > * the `supplier` and `series` fields are set to example values; you'll need to replace them with the details of supplier and series registered as per the previous sections. The series must be registered in the Supplier Portal and follow Portuguese naming conventions (see [Series management](/guides/pt-at-supplier#series-management) for details), > > * when running `gobl build`, or uploading the file, the system automatically calculates totals, assigns the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension to `FT` (Fatura), sets the [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension to `CC` for card payment, and applies the [`pt-saft-tax-rate`](https://docs.gobl.org/addons/pt-saft-v1#tax-rate-code) extension to `NOR` for standard VAT, > > * the built version in the second tab shows the normalized document with calculated totals, line item sums (including advance payment deductions), tax breakdowns, and automatically generated fields, and, > > * the `h` item unit causes the [`pt-saft-product-type`](https://docs.gobl.org/addons/pt-saft-v1#product-type) extension to be set to `S` (Serviço), and the [`pt-region`](https://docs.gobl.org/regimes/pt#region-code) extension is automatically set to `PT`. > > > > ```json AT B2B Invoice (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-12-23", > > "currency": "EUR", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20.0", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2024-12-23", > > "key": "card", > > "description": "Advance payment", > > "amount": "12.34" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "FT", > > "pt-saft-source": "P" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20.0", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "1000.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2024-12-23", > > "key": "card", > > "description": "Advance payment", > > "amount": "12.34", > > "ext": { > > "pt-saft-payment-means": "CC" > > } > > } > > ] > > }, > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > } > > ], > > "amount": "230.00" > > } > > ], > > "sum": "230.00" > > }, > > "tax": "230.00", > > "total_with_tax": "1230.00", > > "payable": "1230.00", > > "advance": "12.34", > > "due": "1217.66" > > } > > } > > ``` > > > [accordion] AT invoice with IRS withholding > > > > In this example, a self-employed professional (*trabalhador independente*) invoices a Portuguese company for consulting services. On top of the standard VAT, the customer retains personal income tax (*IRS*) at source. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields; the line carries a second tax on top of `VAT`: an `IRS` combo with `percent` set to `25%` and no `rate`, > > * the document-level `tax.notes` entry with `cat: "IRS"` carries the legal basis for the withholding (here *Art. 101.º CIRS*); the SAF-T export surfaces it as the `WithholdingTaxType` (`IRS`) and `WithholdingTaxDescription` of the `WithholdingTax` block, and, > > * in the built version the `IRS` tax becomes its own `retained` category in `totals.taxes`, separate from `VAT`, with `retained: "250.00"` (25% of the 1000,00 base). > > > > ```json AT Withholding Invoice (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-08-03", > > "currency": "EUR", > > "tax": { > > "notes": [ > > { > > "cat": "IRS", > > "text": "Art. 101.º CIRS" > > } > > ] > > }, > > "supplier": { > > "name": "João Silva, Trabalhador Independente", > > "tax_id": { > > "country": "PT", > > "code": "545259045" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores", > > "locality": "Lisboa", > > "code": "1000-000", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "joao.silva@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Empresa Cliente, Lda.", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Serviços de consultoria", > > "price": "1000.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > }, > > { > > "cat": "IRS", > > "percent": "25%" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-08-03", > > "value_date": "2024-08-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "FT", > > "pt-saft-source": "P" > > }, > > "notes": [ > > { > > "cat": "IRS", > > "text": "Art. 101.º CIRS" > > } > > ] > > }, > > "supplier": { > > "name": "João Silva, Trabalhador Independente", > > "tax_id": { > > "country": "PT", > > "code": "545259045" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores", > > "locality": "Lisboa", > > "code": "1000-000", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "joao.silva@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Empresa Cliente, Lda.", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Serviços de consultoria", > > "price": "1000.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > }, > > { > > "cat": "IRS", > > "percent": "25%" > > } > > ], > > "total": "1000.00" > > } > > ], > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > } > > ], > > "amount": "230.00" > > }, > > { > > "code": "IRS", > > "retained": true, > > "rates": [ > > { > > "base": "1000.00", > > "percent": "25%", > > "amount": "250.00" > > } > > ], > > "amount": "250.00" > > } > > ], > > "sum": "230.00", > > "retained": "250.00" > > }, > > "tax": "230.00", > > "total_with_tax": "1230.00", > > "retained_tax": "250.00", > > "payable": "980.00" > > } > > } > > ``` > > > [accordion] AT Cash VAT invoice > > > > In this example, we're issuing a standard invoice from a Portuguese supplier that has adhered to the **Cash VAT scheme** (*regime de IVA de Caixa*), under which VAT becomes due only when the customer actually pays rather than when the invoice is issued. > > > > Notice: > > > > * the only difference from the standard AT B2B invoice above is the `cash-vat` tag (`$tags: ["cash-vat"]`), which flags the supplier's membership in the scheme, > > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon reacts to that tag by setting the [`pt-saft-cash-vat`](https://docs.gobl.org/addons/pt-saft-v1#cash-vat-scheme-indicator) extension to `1` in the invoice's `tax` section, and, > > * the document is otherwise a normal `standard` invoice: the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension is still set to `FT` (Fatura) and the standard VAT rate still maps to the [`pt-saft-tax-rate`](https://docs.gobl.org/addons/pt-saft-v1#tax-rate-code) extension `NOR`. > > > > ```json AT Cash VAT invoice (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "cash-vat" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-12-23", > > "currency": "EUR", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20.0", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "cash-vat" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-cash-vat": "1", > > "pt-saft-invoice-type": "FT", > > "pt-saft-source": "P" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20.0", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "1000.00" > > } > > ], > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > } > > ], > > "amount": "230.00" > > } > > ], > > "sum": "230.00" > > }, > > "tax": "230.00", > > "total_with_tax": "1230.00", > > "payable": "1230.00" > > } > > } > > ``` > > > [accordion] AT simplified invoice > > > > In this example, we're issuing a simplified invoice (*Fatura Simplificada*) — the short-form invoice used for low-value retail sales where the customer doesn't need to be identified. > > > > Notice: > > > > * the document carries the `simplified` tag (`$tags: ["simplified"]`) and omits the `customer` entirely, > > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon reacts to the tag by setting the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension to `FS` (Fatura Simplificada), and the `series` follows the matching `FS ` prefix convention, > > * if the document also records full payment (for example, a 100% advance), the addon derives the type `FR` (Fatura-Recibo) instead, and the series must then use the `FR ` prefix; see the [AT invoice-receipt](#at-invoice-receipt-fatura-recibo) example below, and, > > * as with the other examples, totals and tax breakdowns are calculated automatically when running `gobl build` or uploading. > > > > ```json AT Simplified Invoice (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "FS SERIES-A", > > "issue_date": "2024-12-23", > > "currency": "EUR", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Suporte técnico presencial", > > "price": "45.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "FS SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "FS", > > "pt-saft-source": "P" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Suporte técnico presencial", > > "price": "45.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "45.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "45.00" > > } > > ], > > "totals": { > > "sum": "45.00", > > "total": "45.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "45.00", > > "percent": "23.0%", > > "amount": "10.35" > > } > > ], > > "amount": "10.35" > > } > > ], > > "sum": "10.35" > > }, > > "tax": "10.35", > > "total_with_tax": "55.35", > > "payable": "55.35" > > } > > } > > ``` > > > [accordion] AT work document > > > > In this example, we're issuing a work document (*documento de conferência*): a non-fiscal document presented to a customer for checking goods or services before the final invoice. > > > > Notice: > > > > * work documents use the [`bill/order`](https://docs.gobl.org/draft-0/bill/order) schema rather than `bill/invoice`, and are reported to the AT under SAF-T's `WorkingDocuments` table, > > * the [`pt-saft-work-type`](https://docs.gobl.org/addons/pt-saft-v1#document-type) extension is set explicitly to `OU` (*Outros*); unlike `NE` and `OR`, which the addon derives from the `purchase` and `quote` order types, `OU` has no order type of its own and must be declared, > > * the `series` follows the `OU ` prefix convention and must be registered through the Supplier Portal, exactly as an invoice series is, > > * when running `gobl build`, or uploading the document, the [`pt-saft-source`](https://docs.gobl.org/addons/pt-saft-v1#document-source) extension defaults to `P` (*produced*), totals and tax breakdowns are calculated, and the [`pt-saft-product-type`](https://docs.gobl.org/addons/pt-saft-v1#product-type) extension is derived per line, and, > > * to close the loop once the document is invoiced, set the invoice line's `order` field to the work document's number (for example `OU SERIES-A/1`); Invopop then marks it as billed in the SAF-T record. > > > > Proformas (`PF`) are also work documents, but are built on `bill/invoice` rather than `bill/order`. See the next example. > > > > ```json AT Work document theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/order", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "sale", > > "series": "OU SERIES-A", > > "issue_date": "2024-12-23", > > "tax": { > > "ext": { > > "pt-saft-work-type": "OU" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > } > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Noite em quarto duplo", > > "price": "50.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Jantar no restaurante", > > "price": "45.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/order", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "sale", > > "series": "OU SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-source": "P", > > "pt-saft-work-type": "OU" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Noite em quarto duplo", > > "price": "50.00", > > "unit": "one", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "100.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "100.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Jantar no restaurante", > > "price": "45.00", > > "unit": "one", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "45.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "45.00" > > } > > ], > > "totals": { > > "sum": "145.00", > > "total": "145.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "145.00", > > "percent": "23.0%", > > "amount": "33.35" > > } > > ], > > "amount": "33.35" > > } > > ], > > "sum": "33.35" > > }, > > "tax": "33.35", > > "total_with_tax": "178.35", > > "payable": "178.35" > > } > > } > > ``` > > > [accordion] AT invoice-receipt (Fatura-Recibo) > > > > In these examples, we're issuing an invoice-receipt (*Fatura-Recibo*): an invoice that is fully paid at the moment it is issued. The `payment.advances` entries cover the full document total, so the built document ends up with `totals.due` at `0.00`. The first example is a standard invoice with an identified customer; the second is the simplified (retail) variant. > > > > Notice: > > > > * the `series` must use the `FR ` prefix (for example `FR SERIES-A`). Sending a fully paid invoice on an `FT` or `FS` series fails with `series format must be valid`; see [Series management → Naming](/guides/pt-at-supplier#naming), > > * each entry in `payment.advances` is one payment. List several to record a mix of payment methods — here a card deposit followed by cash at checkout — and each one is shown on the PDF with its date, `description`, and amount. The PDF does not print the method itself, so name it in the `description` (for example `Card deposit`), > > * when running `gobl build`, or uploading the file, the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon sets the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension to `FR` automatically once the advances cover the total, and sets the [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension on each advance from its `key` (`card` → `CC`, `cash` → `NU`), and, > > * the simplified variant only differs by the `simplified` tag (`$tags: ["simplified"]`) and the missing `customer`; the `payment.advances` block is identical, and the series still uses the `FR ` prefix rather than `FS `. > > > > **Standard invoice-receipt** (with customer): > > > > ```json AT Invoice-Receipt (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FR SERIES-A", > > "issue_date": "2026-10-29", > > "currency": "EUR", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Room night", > > "price": "100.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2026-10-20", > > "key": "card", > > "description": "Card deposit", > > "amount": "100.00" > > }, > > { > > "date": "2026-10-29", > > "key": "cash", > > "description": "Cash at checkout", > > "amount": "146.00" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FR SERIES-A", > > "issue_date": "2026-10-29", > > "value_date": "2026-10-29", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "FR", > > "pt-saft-source": "P" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Room night", > > "price": "100.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "200.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2026-10-20", > > "key": "card", > > "description": "Card deposit", > > "amount": "100.00", > > "ext": { > > "pt-saft-payment-means": "CC" > > } > > }, > > { > > "date": "2026-10-29", > > "key": "cash", > > "description": "Cash at checkout", > > "amount": "146.00", > > "ext": { > > "pt-saft-payment-means": "NU" > > } > > } > > ] > > }, > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "200.00", > > "percent": "23.0%", > > "amount": "46.00" > > } > > ], > > "amount": "46.00" > > } > > ], > > "sum": "46.00" > > }, > > "tax": "46.00", > > "total_with_tax": "246.00", > > "payable": "246.00", > > "advance": "246.00", > > "due": "0.00" > > } > > } > > ``` > > > > **Simplified invoice-receipt** (no customer): > > > > ```json AT Simplified Invoice-Receipt (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "FR SERIES-A", > > "issue_date": "2026-10-29", > > "currency": "EUR", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Room night", > > "price": "100.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2026-10-20", > > "key": "card", > > "description": "Card deposit", > > "amount": "100.00" > > }, > > { > > "date": "2026-10-29", > > "key": "cash", > > "description": "Cash at checkout", > > "amount": "146.00" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "FR SERIES-A", > > "issue_date": "2026-10-29", > > "value_date": "2026-10-29", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "FR", > > "pt-saft-source": "P" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Room night", > > "price": "100.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "200.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2026-10-20", > > "key": "card", > > "description": "Card deposit", > > "amount": "100.00", > > "ext": { > > "pt-saft-payment-means": "CC" > > } > > }, > > { > > "date": "2026-10-29", > > "key": "cash", > > "description": "Cash at checkout", > > "amount": "146.00", > > "ext": { > > "pt-saft-payment-means": "NU" > > } > > } > > ] > > }, > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "200.00", > > "percent": "23.0%", > > "amount": "46.00" > > } > > ], > > "amount": "46.00" > > } > > ], > > "sum": "46.00" > > }, > > "tax": "46.00", > > "total_with_tax": "246.00", > > "payable": "246.00", > > "advance": "246.00", > > "due": "0.00" > > } > > } > > ``` > > > [accordion] AT proforma invoice > > > > In this example, we're issuing a proforma (*pró-forma*): a non-fiscal document sent to a customer to request payment in advance of the final invoice. > > > > Notice: > > > > * proformas are built on the [`bill/invoice`](https://docs.gobl.org/draft-0/bill/invoice) schema rather than `bill/order`, since they mirror the invoice they anticipate; they are still reported to the AT under SAF-T's `WorkingDocuments` table and not `SalesInvoices`, > > * the [`pt-saft-work-type`](https://docs.gobl.org/addons/pt-saft-v1#document-type) extension is derived from the addon from `type: proforma`, > > * `type: proforma` is the only thing separating this from an ordinary invoice; drop it and the addon normalises the document to a standard invoice with [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) `FT` instead, > > * the `series` follows the `PF ` prefix convention and must be registered through the Supplier Portal, exactly as an invoice series is, and, > > * a proforma settles no VAT: issue the corresponding `FT` invoice when the customer pays. > > > > ```json AT Proforma theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "proforma", > > "series": "PF SERIES-A", > > "issue_date": "2024-12-23", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Licença anual de software", > > "price": "1200.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "8", > > "item": { > > "name": "Serviços de implementação", > > "price": "75.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "key": "advanced" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "proforma", > > "series": "PF SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-source": "P", > > "pt-saft-work-type": "PF" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Licença anual de software", > > "price": "1200.00", > > "unit": "item", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "1200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "1200.00" > > }, > > { > > "i": 2, > > "quantity": "8", > > "item": { > > "name": "Serviços de implementação", > > "price": "75.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "600.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "600.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "advanced" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "1800.00", > > "percent": "23.0%", > > "amount": "414.00" > > } > > ], > > "amount": "414.00" > > } > > ], > > "sum": "414.00" > > }, > > "tax": "414.00", > > "total_with_tax": "2214.00", > > "payable": "2214.00" > > } > > } > > ``` > > > [accordion] AT delivery note > > > > In this example, we're issuing a delivery note from a Portuguese supplier to another Portuguese receiver. > > > > Notice: > > > > * the first tab shows the minimal version containing only the essential fields required to create the delivery document; there are no totals or calculations, > > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon ensures the document will be validated and normalized using the SAF-T PT v1 rules built into the [GOBL](https://docs.gobl.org) library, > > * the `supplier` and `series` fields are set to example values; you'll need to replace them with the details of supplier and series registered as per the previous sections. The series must be registered in the Supplier Portal and follow Portuguese naming conventions (see [Series management](/guides/pt-at-supplier#series-management) for details), > > * this is a `note` document type with the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension set to `GR` (Guia de Remessa), > > * when running `gobl build`, or uploading the document, the system automatically calculates totals, applies the standard VAT rate with the [`pt-saft-tax-rate`](https://docs.gobl.org/addons/pt-saft-v1#tax-rate-code) extension set to `NOR`, and normalizes all fields, > > * the second tab shows the built version of the document with the calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > > * the [`pt-region`](https://docs.gobl.org/regimes/pt#region-code) extension is automatically set to `PT`. > > > > ```json AT Delivery (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "note", > > "series": "GR SERIES-A", > > "issue_date": "2026-04-01", > > "currency": "EUR", > > "despatch_date": "2026-04-02", > > "receive_date": "2026-04-03", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Gusto Armazém", > > "addresses": [ > > { > > "street": "Zona Industrial, Lote 23", > > "locality": "Lisboa", > > "code": "1300-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "text": "Delivery note for products" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "note", > > "series": "GR SERIES-A", > > "issue_date": "2026-04-01", > > "currency": "EUR", > > "despatch_date": "2026-04-02", > > "receive_date": "2026-04-03", > > "tax": { > > "ext": { > > "pt-saft-movement-type": "GR" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Gusto Armazém", > > "addresses": [ > > { > > "street": "Zona Industrial, Lote 23", > > "locality": "Lisboa", > > "code": "1300-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "sum": "50.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "50.00" > > } > > ], > > "totals": { > > "sum": "50.00", > > "total": "50.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > }, > > "tax": "11.50", > > "total_with_tax": "61.50", > > "payable": "61.50" > > }, > > "notes": [ > > { > > "text": "Delivery note for products" > > } > > ] > > } > > ``` > > > [accordion] AT return guide > > > > A return guide (*Guia de Devolução*) records goods being returned to the supplier — for example, defective items, unsold stock, or any other scenario where previously delivered goods are sent back. > > > > Notice: > > > > * the document carries the `return` tag (`$tags: ["return"]`), which the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon uses to automatically set the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension to `GD` (Guia de Devolução), > > * the `series` follows the `GD ` prefix convention and must be registered through the Supplier Portal, and, > > * the flow of goods is reversed compared to a delivery note: the `customer` is the party returning the goods, and the `supplier` is the one receiving them back. > > > > ```json AT Return guide (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": ["return"], > > "type": "note", > > "series": "GD SERIES-A", > > "issue_date": "2026-04-03", > > "currency": "EUR", > > "despatch_date": "2026-04-03", > > "receive_date": "2026-04-03", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "despatcher": { > > "name": "Gusto Armazém", > > "addresses": [ > > { > > "street": "Zona Industrial, Lote 23", > > "locality": "Lisboa", > > "code": "1300-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "3", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "text": "Goods returned by the customer." > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "return" > > ], > > "type": "note", > > "series": "GD SERIES-A", > > "issue_date": "2026-04-03", > > "currency": "EUR", > > "despatch_date": "2026-04-03", > > "receive_date": "2026-04-03", > > "tax": { > > "ext": { > > "pt-saft-movement-type": "GD" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "despatcher": { > > "name": "Gusto Armazém", > > "addresses": [ > > { > > "street": "Zona Industrial, Lote 23", > > "locality": "Lisboa", > > "code": "1300-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "3", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "sum": "15.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "15.00" > > } > > ], > > "totals": { > > "sum": "15.00", > > "total": "15.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "15.00", > > "percent": "23.0%", > > "amount": "3.45" > > } > > ], > > "amount": "3.45" > > } > > ], > > "sum": "3.45" > > }, > > "tax": "3.45", > > "total_with_tax": "18.45", > > "payable": "18.45" > > }, > > "notes": [ > > { > > "text": "Goods returned by the customer." > > } > > ] > > } > > ``` > > > [accordion] AT global waybill > > > > For shipments where the specific recipient is not known upfront — for example, multi-stop delivery runs — issuers can emit a global waybill (*Guia de Transporte Global*) to cover the goods in transport. > > > > Notice: > > > > * the document `type` is set to `waybill`, which the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon normalizes to the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension `GT` (Guia de Transporte), > > * the `series` follows the `GT ` prefix convention required by the AT and must be registered through the Supplier Portal, and, > > * the `customer` field is omitted: when no customer is provided on a `GT`, the SAF-T submission automatically uses the AT-prescribed generic final consumer entry. > > > > ```json AT Global waybill (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "waybill", > > "series": "GT SERIES-A", > > "issue_date": "2026-04-01", > > "currency": "EUR", > > "despatch_date": "2026-04-02", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "100", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "text": "Global waybill for multi-stop delivery" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "waybill", > > "series": "GT SERIES-A", > > "issue_date": "2026-04-01", > > "currency": "EUR", > > "despatch_date": "2026-04-02", > > "tax": { > > "ext": { > > "pt-saft-movement-type": "GT" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "100", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "sum": "500.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "500.00" > > } > > ], > > "totals": { > > "sum": "500.00", > > "total": "500.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "500.00", > > "percent": "23.0%", > > "amount": "115.00" > > } > > ], > > "amount": "115.00" > > } > > ], > > "sum": "115.00" > > }, > > "tax": "115.00", > > "total_with_tax": "615.00", > > "payable": "615.00" > > }, > > "notes": [ > > { > > "text": "Global waybill for multi-stop delivery" > > } > > ] > > } > > ``` > > > [accordion] AT delivery from global waybill > > > > Once the recipient of part of the goods covered by a global waybill is known, a concrete document — typically a `GR` (Guia de Remessa) — must be issued with the full transaction details, including the `customer` and a cross-reference back to the originating `GT` so the AT can correlate both records. > > > > Notice: > > > > * the `customer` is now populated with the actual recipient of the goods, and, > > * the `preceding` array carries one entry with the `series`, `code`, and `issue_date` of the originating `GT`. > > > > ```json AT Delivery note from global waybill (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "note", > > "series": "GR SERIES-A", > > "issue_date": "2026-04-02", > > "currency": "EUR", > > "despatch_date": "2026-04-02", > > "receive_date": "2026-04-02", > > "preceding": [ > > { > > "series": "GT SERIES-A", > > "code": "1", > > "issue_date": "2026-04-01" > > } > > ], > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Gusto Armazém", > > "addresses": [ > > { > > "street": "Zona Industrial, Lote 23", > > "locality": "Lisboa", > > "code": "1300-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "text": "Stop delivery from global waybill GT SERIES-A/1" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "note", > > "series": "GR SERIES-A", > > "issue_date": "2026-04-02", > > "currency": "EUR", > > "preceding": [ > > { > > "issue_date": "2026-04-01", > > "series": "GT SERIES-A", > > "code": "1" > > } > > ], > > "despatch_date": "2026-04-02", > > "receive_date": "2026-04-02", > > "tax": { > > "ext": { > > "pt-saft-movement-type": "GR" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Gusto Armazém", > > "addresses": [ > > { > > "street": "Zona Industrial, Lote 23", > > "locality": "Lisboa", > > "code": "1300-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "sum": "50.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "50.00" > > } > > ], > > "totals": { > > "sum": "50.00", > > "total": "50.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > }, > > "tax": "11.50", > > "total_with_tax": "61.50", > > "payable": "61.50" > > }, > > "notes": [ > > { > > "text": "Stop delivery from global waybill GT SERIES-A/1" > > } > > ] > > } > > ``` > > > [accordion] AT return from global waybill > > > > A return can also be linked back to a global waybill — for example, when surplus goods that were not delivered to any customer come back to the depot at the end of a delivery run. > > > > Notice: > > > > * as in the standalone return guide, the `return` tag drives the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension to `GD`, > > * the `preceding` array references the originating `GT`, and, > > * the `customer` is omitted, since the goods are returning to the issuer's own depot rather than to a specific party. > > > > ```json AT Return from global waybill (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": ["return"], > > "type": "note", > > "series": "GD SERIES-A", > > "issue_date": "2026-04-03", > > "currency": "EUR", > > "preceding": [ > > { > > "issue_date": "2026-04-01", > > "series": "GT SERIES-A", > > "code": "1" > > } > > ], > > "despatch_date": "2026-04-03", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Innovatech Depot", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "text": "Surplus from global waybill GT SERIES-A/1 returned to depot." > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/delivery", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "return" > > ], > > "type": "note", > > "series": "GD SERIES-A", > > "issue_date": "2026-04-03", > > "currency": "EUR", > > "preceding": [ > > { > > "issue_date": "2026-04-01", > > "series": "GT SERIES-A", > > "code": "1" > > } > > ], > > "despatch_date": "2026-04-03", > > "tax": { > > "ext": { > > "pt-saft-movement-type": "GD" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "despatcher": { > > "name": "Innovatech Logistics", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "receiver": { > > "name": "Innovatech Depot", > > "addresses": [ > > { > > "street": "Rua da Indústria 45", > > "locality": "Porto", > > "code": "4050-300", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Product A", > > "price": "5.00", > > "unit": "unit", > > "ext": { > > "pt-saft-product-type": "P" > > } > > }, > > "sum": "10.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "10.00" > > } > > ], > > "totals": { > > "sum": "10.00", > > "total": "10.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "10.00", > > "percent": "23.0%", > > "amount": "2.30" > > } > > ], > > "amount": "2.30" > > } > > ], > > "sum": "2.30" > > }, > > "tax": "2.30", > > "total_with_tax": "12.30", > > "payable": "12.30" > > }, > > "notes": [ > > { > > "text": "Surplus from global waybill GT SERIES-A/1 returned to depot." > > } > > ] > > } > > ``` > > > [accordion] AT payment receipt > > > > In this example, we're issuing a payment receipt from a Portuguese supplier to another Portuguese business. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the payment document, > > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon ensures the document will be validated and normalized using the SAF-T PT v1 rules built into the [GOBL](https://docs.gobl.org) library, > > * the `supplier` and `series` fields are set to example values; you'll need to replace them with the details of supplier and series registered as per the previous sections. The series must be registered in the Supplier Portal and follow Portuguese naming conventions (see [Series management](/guides/pt-at-supplier#series-management) for details), > > * this is a single `receipt` payment that bundles **multiple payment methods**: 30,00 EUR in cash plus 31,50 EUR by card, summing to the document total of 61,50 EUR. Each method gets its own [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension auto-assigned (`NU` for cash, `CC` for card), > > * when running `gobl build`, the system automatically assigns the [`pt-saft-payment-type`](https://docs.gobl.org/addons/pt-saft-v1#payment-type) extension to `RG` and the [`pt-saft-source`](https://docs.gobl.org/addons/pt-saft-v1#document-source) extension to `P`, > > * the built version in the second tab shows the normalized document with all automatically generated fields and extensions properly set, > > * the payment lines reference the original invoice being paid, though a single receipt can reference multiple invoices if needed, > > * this receipt could represent either a full or partial payment of the referenced invoice; it simply records the amounts and taxes being paid, so the total may or may not cover the full invoice amount, and, > > * there are no calculations in the minimal version; all normalizations will be made automatically when uploading. > > > > ```json AT Payment (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "receipt", > > "series": "RG SERIES-A", > > "issue_date": "2024-12-23", > > "currency": "EUR", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "document": { > > "issue_date": "2024-12-23", > > "series": "FT SERIES-A", > > "code": "1", > > "description": "Invoice 1" > > }, > > "amount": "61.50", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > } > > } > > ], > > "methods": [ > > { > > "key": "cash", > > "description": "Cash portion", > > "amount": "30.00" > > }, > > { > > "key": "card", > > "description": "Card portion", > > "amount": "31.50" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "receipt", > > "series": "RG SERIES-A", > > "issue_date": "2024-12-23", > > "currency": "EUR", > > "ext": { > > "pt-saft-payment-type": "RG", > > "pt-saft-source": "P" > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "document": { > > "issue_date": "2024-12-23", > > "series": "FT SERIES-A", > > "code": "1", > > "description": "Invoice 1" > > }, > > "amount": "61.50", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > } > > } > > ], > > "methods": [ > > { > > "key": "cash", > > "description": "Cash portion", > > "amount": "30.00", > > "ext": { > > "pt-saft-payment-means": "NU" > > } > > }, > > { > > "key": "card", > > "description": "Card portion", > > "amount": "31.50", > > "ext": { > > "pt-saft-payment-means": "CC" > > } > > } > > ], > > "total": "61.50" > > } > > ``` > > > [accordion] AT Cash VAT receipt > > > > In this example, we're issuing a payment receipt for a supplier under the **Cash VAT scheme** (*regime de IVA de Caixa*). For these suppliers, the receipt is the document that actually triggers the VAT becoming due, so the AT distinguishes it from an ordinary receipt. > > > > Notice: > > > > * the document carries the `cash-vat` tag (`$tags: ["cash-vat"]`), exactly as the Cash VAT invoice does, > > * on a `receipt`, that tag drives the [`pt-saft-payment-type`](https://docs.gobl.org/addons/pt-saft-v1#payment-type) extension to `RC` (*Recibo no âmbito do regime de IVA de Caixa*) instead of the default `RG` (*Outro Recibo*) you'd get on the ordinary AT payment receipt above, > > * the `series` follows the `RC ` prefix convention and must be registered through the Supplier Portal, > > * the payment line references the original invoice being settled, carrying its VAT breakdown so the AT can match the now-due tax to the issued invoice, and, > > * as with any receipt, the [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension is auto-assigned per method (`TB` for the bank transfer) and the [`pt-saft-source`](https://docs.gobl.org/addons/pt-saft-v1#document-source) extension is set to `P`. > > > > ```json AT Cash VAT receipt (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "cash-vat" > > ], > > "type": "receipt", > > "series": "RC SERIES-A", > > "issue_date": "2024-12-23", > > "currency": "EUR", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "document": { > > "issue_date": "2024-12-23", > > "series": "FT SERIES-A", > > "code": "1", > > "description": "Invoice 1" > > }, > > "amount": "61.50", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > } > > } > > ], > > "methods": [ > > { > > "key": "credit-transfer", > > "description": "Bank transfer", > > "amount": "61.50" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "$tags": [ > > "cash-vat" > > ], > > "type": "receipt", > > "series": "RC SERIES-A", > > "issue_date": "2024-12-23", > > "currency": "EUR", > > "ext": { > > "pt-saft-payment-type": "RC", > > "pt-saft-source": "P" > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "document": { > > "issue_date": "2024-12-23", > > "series": "FT SERIES-A", > > "code": "1", > > "description": "Invoice 1" > > }, > > "amount": "61.50", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > } > > } > > ], > > "methods": [ > > { > > "key": "credit-transfer", > > "description": "Bank transfer", > > "amount": "61.50", > > "ext": { > > "pt-saft-payment-means": "TB" > > } > > } > > ], > > "total": "61.50" > > } > > ``` > > > [accordion] AT Portugal invoice > > > > ```json AT Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "series": "FT SERIES-A", > > "issue_date": "2024-12-23", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "key": "advanced" > > }, > > "advances": [ > > { > > "date": "2024-12-18", > > "description": "Transferência bancária", > > "amount": "50.00" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "FT", > > "pt-saft-source": "P" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "item", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "50.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "50.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "advanced" > > }, > > "advances": [ > > { > > "date": "2024-12-18", > > "description": "Transferência bancária", > > "amount": "50.00" > > } > > ] > > }, > > "totals": { > > "sum": "50.00", > > "total": "50.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > }, > > "tax": "11.50", > > "total_with_tax": "61.50", > > "payable": "61.50", > > "advance": "50.00", > > "due": "11.50" > > } > > } > > ``` > > > [accordion] AT Portugal credit note > > > > ```json AT Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "credit-note", > > "series": "NC SERIES-A", > > "issue_date": "2024-12-23", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2024-08-03", > > "series": "FT SERIES-A", > > "code": "1", > > "reason": "Reimbursement" > > } > > ], > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "credit-note", > > "series": "NC SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2024-08-03", > > "series": "FT SERIES-A", > > "code": "1", > > "reason": "Reimbursement" > > } > > ], > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "NC", > > "pt-saft-source": "P" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "item", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "50.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "50.00" > > } > > ], > > "totals": { > > "sum": "50.00", > > "total": "50.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "50.00", > > "percent": "23.0%", > > "amount": "11.50" > > } > > ], > > "amount": "11.50" > > } > > ], > > "sum": "11.50" > > }, > > "tax": "11.50", > > "total_with_tax": "61.50", > > "payable": "61.50" > > } > > } > > ``` > > > [accordion] AT Portugal order > > > > ```json AT Order theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/order", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "series": "NE SERIES-A", > > "issue_date": "2024-12-23", > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "order": "PO-2024-001", > > "item": { > > "name": "Development services", > > "price": "50.00" > > }, > > "discounts": [ > > { > > "percent": "15.0%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/order", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "purchase", > > "series": "NE SERIES-A", > > "issue_date": "2024-12-23", > > "value_date": "2024-12-23", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-work-type": "NE" > > } > > }, > > "supplier": { > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "770013813" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores 200 3º Esquerdo", > > "locality": "Porto", > > "code": "4050-265", > > "country": "PT" > > } > > ], > > "registration": { > > "capital": "100000.00", > > "office": "Porto" > > } > > }, > > "customer": { > > "name": "Gusto Unipessoal Lda", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "gusto@example.com" > > } > > ], > > "websites": [ > > { > > "url": "https://gusto.example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+351912345678" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "order": "PO-2024-001", > > "item": { > > "name": "Development services", > > "price": "50.00", > > "unit": "one", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "50.00", > > "discounts": [ > > { > > "percent": "15.0%", > > "amount": "7.50" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > } > > ], > > "total": "42.50" > > } > > ], > > "totals": { > > "sum": "42.50", > > "total": "42.50", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "42.50", > > "percent": "23.0%", > > "amount": "9.78" > > } > > ], > > "amount": "9.78" > > } > > ], > > "sum": "9.78" > > }, > > "tax": "9.78", > > "total_with_tax": "52.28", > > "payable": "52.28" > > } > > } > > ``` > > > [accordion] AT Portugal invoice with IRS withholding > > > > ```json AT Withholding Invoice (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-08-03", > > "currency": "EUR", > > "tax": { > > "notes": [ > > { > > "cat": "IRS", > > "text": "Art. 101.º CIRS" > > } > > ] > > }, > > "supplier": { > > "name": "João Silva, Trabalhador Independente", > > "tax_id": { > > "country": "PT", > > "code": "545259045" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores", > > "locality": "Lisboa", > > "code": "1000-000", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "joao.silva@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Empresa Cliente, Lda.", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Serviços de consultoria", > > "price": "1000.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > }, > > { > > "cat": "IRS", > > "percent": "25%" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PT", > > "$addons": [ > > "pt-saft-v1" > > ], > > "type": "standard", > > "series": "FT SERIES-A", > > "issue_date": "2024-08-03", > > "value_date": "2024-08-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "pt-saft-invoice-type": "FT", > > "pt-saft-source": "P" > > }, > > "notes": [ > > { > > "cat": "IRS", > > "text": "Art. 101.º CIRS" > > } > > ] > > }, > > "supplier": { > > "name": "João Silva, Trabalhador Independente", > > "tax_id": { > > "country": "PT", > > "code": "545259045" > > }, > > "addresses": [ > > { > > "street": "Rua das Flores", > > "locality": "Lisboa", > > "code": "1000-000", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "joao.silva@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Empresa Cliente, Lda.", > > "tax_id": { > > "country": "PT", > > "code": "514329874" > > }, > > "addresses": [ > > { > > "street": "Avenida da Liberdade 152 2º Direito", > > "locality": "Lisboa", > > "code": "1250-146", > > "country": "PT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Serviços de consultoria", > > "price": "1000.00", > > "unit": "h", > > "ext": { > > "pt-saft-product-type": "S" > > } > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > } > > }, > > { > > "cat": "IRS", > > "percent": "25%" > > } > > ], > > "total": "1000.00" > > } > > ], > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pt-region": "PT", > > "pt-saft-tax-rate": "NOR" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > } > > ], > > "amount": "230.00" > > }, > > { > > "code": "IRS", > > "retained": true, > > "rates": [ > > { > > "base": "1000.00", > > "percent": "25%", > > "amount": "250.00" > > } > > ], > > "amount": "250.00" > > } > > ], > > "sum": "230.00", > > "retained": "250.00" > > }, > > "tax": "230.00", > > "total_with_tax": "1230.00", > > "retained_tax": "250.00", > > "payable": "980.00" > > } > > } > > ``` > > > [accordion] AT Portugal supplier > > > > A Portuguese company with its NIF and the commercial registration details required on invoices. > > > > > [!NOTE] > > > > > > This example only shows the shape of the supplier JSON. Both sandbox and live workspaces require the details of a real Portuguese company, and you will need access to its account on the AT's [Portal das Finanças](https://www.portaldasfinancas.gov.pt) to complete registration. See the [supplier onboarding guide](/guides/pt-at-supplier) for the full process. > > > > ```json Portugal AT supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Innovatech Lda", > > "tax_id": { > > "country": "PT", > > "code": "504614240" > > }, > > "addresses": [ > > { > > "num": "156", > > "street": "Avenida da República", > > "locality": "Lisboa", > > "code": "1050-045", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "maria@example.com" > > } > > ], > > "registration": { > > "capital": "150000.00", > > "office": "CRC Lisboa", > > "other": "sob NIF 770013813" > > } > > } > > ``` > > > [accordion] AT Portugal self-employed supplier > > > > A self-employed individual (*trabalhador independente*) identified by their personal NIF, full name and address. > > > > > [!NOTE] > > > > > > The `registration` block is not required for self-employed individuals, as they have no commercial registry details or share capital to report. > > > > ```json Portugal AT self-employed supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "João Silva Santos", > > "tax_id": { > > "country": "PT", > > "code": "123456789" > > }, > > "addresses": [ > > { > > "num": "27", > > "street": "Rua de Santa Catarina", > > "locality": "Porto", > > "code": "4000-447", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "joao@example.com" > > } > > ] > > } > > ``` > > > [accordion] AT Portugal customer > > > > A Portuguese business customer identified by NIF with a full address. > > > > ```json Portugal customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Cliente Exemplo Lda", > > "tax_id": { > > "country": "PT", > > "code": "502757191" > > }, > > "addresses": [ > > { > > "num": "23", > > "street": "Rua Augusta", > > "locality": "Lisboa", > > "code": "1100-053", > > "country": "PT" > > } > > ], > > "emails": [ > > { > > "addr": "compras@clienteexemplo.pt" > > } > > ] > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇵🇹 Invopop resources for Portugal > > | | | > | - | - | > | Compliance | [Invoicing compliance in Portugal](/compliance/portugal) [Compliance timeline](/timelines/portugal) | > | Apps | [AT Portugal](/apps/at-portugal) | > | Guides | [Supplier registration](/guides/pt-at-supplier) [Issuing invoices](/guides/pt-at) | > | FAQ | [Portugal FAQ](/faq/portugal) | > | GOBL | [Portugal Tax Regime](https://docs.gobl.org/regimes/pt) [Portugal SAF-T addon](https://docs.gobl.org/addons/pt-saft-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about AT Portugal App → # Chargebee Source: https://docs.invopop.com/apps/chargebee Import and process invoices, credit notes and payments from Chargebee > [tab] Description > > > [card] [Chargebee Guide](/guides/chargebee) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Integrations | > > [Chargebee](https://www.chargebee.com/) is a subscription management and billing platform designed for businesses that rely on recurring revenue. It automates tasks like subscription billing, invoicing, payment processing, and revenue recognition. > > Invopop's Chargebee app lets you issue locally compliant electronic invoices and credit notes from Chargebee. The app subscribes to new incoming invoices and credit notes from Chargebee. When a new document is received, it'll be converted into GOBL and stored in your Invopop workspace. Once an invoice or credit note is stored, the app will create a job on the configured workflow. > > Any updates and, importantly, error messages will be posted to Chargebee automatically, in the comment section of the invoice or credit note (or of the transaction, for imported payments). We also recommend configuring workflows to send notifications via Slack or email to ensure any issues can be addressed quickly. > > **Key features** > > * **Automatic import:** New invoices and credit notes from Chargebee are automatically imported into Invopop and converted to GOBL format. > * **Workflow automation:** Process imported invoices through your configured workflows to generate compliant invoices, PDFs, and submit to tax authorities. > * **Real-time processing:** Track invoice status directly in Chargebee with automatic status updates posted as comments. > * **Multi-format support:** Convert Chargebee invoices to any e-invoice format supported by Invopop, including country-specific formats like ZUGFeRD (Germany), XRechnung (Germany), and more. > * **Payment import:** Optionally import Chargebee payments and refunds as GOBL payments, for countries that require payments to be reported. See [Importing payments](/guides/chargebee#importing-payments). > * **Custom data mapping:** Support for custom fields and metadata to map country-specific tax requirements and extensions. > * **Error handling:** Automatic error reporting back to Chargebee with detailed messages in invoice and credit note comments, or transaction comments for payments. > > Make sure to check out our [Chargebee Guide](/guides/chargebee) for instructions on how to connect the app, configure workflows, and set up webhooks. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Import document from Chargebee > > > > Import invoice, credit note and, when enabled, payment data from Chargebee into Invopop. > > > [card] Download PDF from Chargebee > > > > Download the PDF Chargebee generated for the invoice or credit note and attach it to the document. Skipped for payments, which have no PDF in Chargebee. > > > [card] Update Chargebee > > > > Update Chargebee with processing status and error messages, posted on the invoice, credit note or, for payments, the transaction. > > > [card] Update invoice details > > > > Write values produced during the workflow, such as tax authority reference numbers, back to custom fields on the Chargebee invoice or credit note. See [Writing values back to Chargebee](/guides/chargebee#writing-values-back-to-chargebee). > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] Chargebee PDF invoice workflow > > > > This workflow syncs with Chargebee and generates a basic PDF. > > > > ```json Chargebee PDF invoice workflow theme={"system"} > > { > > "name": "Chargebee PDF invoice", > > "description": "Sync from Chargebee and generate a PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "1b23a850-ff46-11ef-bc8b-49a3f98ea471", > > "name": "Import document from Chargebee", > > "provider": "chargebee.import" > > }, > > { > > "id": "c9d569f0-ab1e-11ef-a0aa-f554af0a2b6c", > > "name": "Set state", > > "config": { > > "state": "processing" > > }, > > "summary": "Set state to `processing`{.state .processing}", > > "provider": "silo.state" > > }, > > { > > "id": "c7a347b0-ab1e-11ef-a0aa-f554af0a2b6c", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "d1f2e5e0-ab1e-11ef-a0aa-f554af0a2b6c", > > "name": "Generate PDF", > > "config": { > > "logo_height": 40, > > "locale": "en", > > "date_format": "%Y-%m-%d" > > }, > > "summary": "English · A4", > > "provider": "pdf" > > }, > > { > > "id": "6277f270-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "config": { > > "state": "sent" > > }, > > "summary": "Set state to `sent`{.state .sent}", > > "provider": "silo.state" > > }, > > { > > "id": "02487016-0959-475c-9bc4-aa237313fefa", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ], > > "rescue": [ > > { > > "id": "5504a610-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "config": { > > "state": "error" > > }, > > "summary": "Set state to `error`{.state .error}", > > "provider": "silo.state" > > }, > > { > > "id": "d8166690-ab1e-11ef-a0aa-f554af0a2b6c", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-invoice) > > > [accordion] Chargebee ZUGFeRD workflow > > > > This workflow syncs with Chargebee and generates a ZUGFeRD XML and PDF for Germany. > > > > > [!NOTE] > > > > > > For a full walkthrough including required apps, email delivery setup, and custom fields, see the [Chargebee Germany guide](/guides/cb-germany). > > > > ```json Chargebee ZUGFeRD invoice workflow theme={"system"} > > { > > "name": "Chargebee ZUGFeRD invoice", > > "description": "Sync from Chargebee and issue a ZUGFeRD invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ff581030-1943-11f0-b031-c71066181289", > > "name": "Import document from Chargebee", > > "provider": "chargebee.import" > > }, > > { > > "id": "bd7eb640-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "b913e860-1d43-11f1-a00f-9bd9990c5dfa", > > "name": "Download PDF from Chargebee", > > "provider": "chargebee.pdf.download" > > }, > > { > > "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5", > > "name": "Add bank details", > > "provider": "silo.modify", > > "notes": "Normalizes the payment key to SEPA credit transfer format", > > "summary": "Add bank details", > > "config": { > > "allow_invalid_json": false, > > "data": { > > "doc": { > > "payment": { > > "instructions": { > > "credit_transfer": [ > > { > > "bic": "", > > "iban": "" > > } > > ], > > "key": "credit-transfer" > > } > > } > > } > > }, > > "expr": "(doc?.payment?.instructions == nil || doc?.payment?.instructions?.key == \"credit-transfer\")\n&& doc?.payment?.terms?.due_dates != nil", > > "merge_type": "application/merge-patch+json", > > "sign": false > > } > > }, > > { > > "id": "18910b60-6624-11f0-9087-c716f49f1585", > > "name": "Modify silo entry", > > "provider": "silo.modify", > > "summary": "Add `de-zugferd-v2` addon", > > "config": { > > "addons": [ > > "de-zugferd-v2" > > ], > > "sign": false > > } > > }, > > { > > "id": "c37c3860-abd0-11ef-a013-91c68ca9f44b", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "3548d720-6623-11f0-b3db-e7255a5da07c", > > "name": "Generate CII document", > > "provider": "cii.generate", > > "summary": "ZUGFeRD v2", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "zugferd-v2", > > "validate_cii": true > > } > > }, > > { > > "id": "8e665990-81a3-11f0-82cb-9160968ac068", > > "name": "Embed FacturX/ZUGFeRD", > > "provider": "cii.pdf.embed" > > }, > > { > > "id": "c6192a60-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > }, > > { > > "id": "553f8c03-c0ff-4de5-9a66-33685b8f9c65", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ], > > "rescue": [ > > { > > "id": "c94982c0-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > }, > > { > > "id": "c35d34c0-b7af-11ef-86a5-99a247862412", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-zugferd) *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Chargebee App → # Chorus Pro France Source: https://docs.invopop.com/apps/choruspro-france Submit B2G invoices to the French Chorus Pro system. > [tab] Description > > > [card] [Register suppliers](/guides/fr-chorus-pro-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/fr-chorus-pro) > > > > Issuing guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2G | > | Country | [France](/compliance/france) | > > > [!NOTE] > > > > This app is for **foreign entities without a French SIREN** that invoice French public institutions directly. French companies registered in the Annuaire send B2G invoices through the [France app](/apps/france) instead, with the same workflow as their B2B invoices. See the [public sector guide](/guides/fr-pa-b2g). > > Chorus Pro is a mandatory service provided by the French government for invoicing French public institutions. The platform allows businesses to upload invoices in multiple e-invoicing formats and track them throughout the French public administration process. All invoices to French public sector entities must be submitted through Chorus Pro. > > The platform supports various e-invoicing formats including [Cross Industry Invoice (CII)](https://unece.org/trade/uncefact/e-invoice), and implements the [European Norm 16931 (EN16931)](https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/European+Standard+and+Specifications) European standard for electronic invoicing with additional French-specific requirements. > > **Key features** > > * **Workflow automation:** Provides automated workflows for supplier registration and invoice submission to French public institutions through Chorus Pro. > * **CII format generation:** Using the UN/CEFACT CII format with Chorus Pro V1 extensions ensures compliance with French B2G invoicing requirements. > * **EN16931 compliance:** Implements the European Norm 16931 standard with French-specific extensions including SIRET number validation and service codes for government departments. > * **Supplier registration:** Automated supplier registration workflow that generates unique registration links for suppliers to complete Chorus Pro authentication. > * **Invoice submission:** Direct submission of invoices to the Chorus Pro platform with CII XML generation and validation. > * **Invoice tracking:** Track invoice status using invoice identifiers (series plus code) in the Chorus Pro portal. > * **Invoice modification:** Supports modification and resubmission of invoices until they are accepted by the receiving French public institution. > > Check out the [Supplier registration guide](/guides/fr-chorus-pro-supplier) for onboarding suppliers, or the [Issuing invoices guide](/guides/fr-chorus-pro) for submitting invoices to French public institutions. > > ## FAQ > > Invoicing questions > > > [accordion] How do I configure my workspace for French invoicing? > > > > Two channels depending on the recipient: B2G uses Chorus Pro (CII format); B2B from September 2026 uses the Plateforme Agréée model (UBL, CII, or Factur-X via Peppol). Invopop is an approved PA — install the France PA app for B2B and the Chorus Pro app for B2G. > > > [accordion] How can I view an XML attached to a PDF? > > > > In Factur-X PDFs, the XML file is embedded within the PDF itself. To extract and view it, use the `Attachments` section in Adobe Acrobat Reader, or a tool like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/). > > > [accordion] What invoice formats does Chorus Pro support? > > > > Chorus Pro primarily supports CII format based on EN16931. Invopop currently focuses on CII with plans to add additional formats in the future. > > > [accordion] Do I need a SIRET number to use Chorus Pro? > > > > French businesses need a SIRET number. Foreign businesses can use their local tax identifier, but should verify acceptance with the receiving French institution. > > > [accordion] Can I modify invoices after sending to Chorus Pro? > > > > Yes, you can modify and resubmit invoices until the receiving institution accepts them. Once accepted, invoices become locked and cannot be modified. > > > [accordion] How do I find my invoice in Chorus Pro? > > > > Use your GOBL invoice series and code combined as the invoice identifier in the Chorus Pro portal to locate your submitted invoices. > > > [accordion] Are there file size limits for Chorus Pro invoices? > > > > Chorus Pro has specific file size and format requirements. Invopop handles these automatically when generating CII XML files from your GOBL invoices. > > > [accordion] What GOBL fields are required for Chorus Pro? > > > > The recipient's SIRET (or equivalent identifier) plus a Chorus Pro service code where applicable. Invopop generates EN 16931 CII XML by default — UBL is also accepted by Chorus Pro. > > > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > > > Recommended approach: > > > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > > * Fetch the generated XML and deliver it through the agreed channel, typically email > > > [accordion] How do I handle B2C invoices in Peppol? > > > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > > > [accordion] How do I handle 'Receiver Not Found' errors? > > > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > > > [accordion] Should I set the `$regime` field when using Peppol? > > > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > > > [accordion] Where do I find Peppol GOBL documentation? > > > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. > > Registering supplier questions > > > [accordion] How do I onboard a new supplier in France? > > > > For B2B PA flows: register the supplier via the France PA Register Party workflow (publishes the SIREN to the Annuaire and Peppol). For Chorus Pro: register the supplier with their SIRET on Chorus Pro's portal and link credentials in the Chorus Pro app. > > > [accordion] How are supplier credentials stored in Invopop for France? > > > > France PA does not require supplier-side certificates — Peppol uses Invopop's AP cert. Chorus Pro uses an OAuth token bound to the supplier's account; the token is encrypted at rest in Invopop. > > > [accordion] What happens if my supplier registration fails? > > > > Ensure the supplier has a valid Chorus Pro account and provided correct credentials. Contact support if registration workflow issues persist. > > > [accordion] What credentials does Chorus Pro require to authenticate a supplier? > > > > OAuth 2.0 client credentials issued by Chorus Pro after registration. Invopop stores the token encrypted; suppliers can revoke access at any time through Chorus Pro's portal. > > > [accordion] How do I register for a Peppol inbox in Invopop? > > > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > > > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > > > [accordion] How do I assign multiple inboxes to a single supplier? > > > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > > > [accordion] What are Participant IDs? > > > > Unique identifiers for entities on the Peppol network, made up of two parts: > > > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > > * **Code** — the actual identification number > > > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > > > [accordion] What visibility level should I set on my Peppol Party? > > > > Peppol Party visibility determines what you can send and receive: > > > > * `smp` — SMP only, for testing > > * `smp+sml` — SMP and SML, useful when you only want to send > > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > > > In general, use the highest visibility available. > > Receiving questions > > > [accordion] How do I import received invoices in France? > > > > Register the recipient with Invopop as their Plateforme Agréée. Inbound documents (UBL, CII, Factur-X) are converted to GOBL and stored in the Expenses folder. Chorus Pro inbound flow is separate and routes via the Chorus Pro app. > > > [accordion] How does Invopop convert received French invoices into GOBL? > > > > UBL via [`gobl.peppol`](https://github.com/invopop/gobl.peppol); CII and Factur-X via [`gobl.cii`](https://github.com/invopop/gobl.cii). The original structured XML (or PDF/A-3 with embedded XML) is preserved as a silo entry attachment. > > > [accordion] How do I import received invoices via Peppol? > > > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > > > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > > > [accordion] How are incoming Peppol documents converted into GOBL? > > > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. > > Reporting questions > > > [accordion] How do I schedule periodic reports for France? > > > > For TVA, file via DGFiP's portal — Invopop does not generate CA3 yet. For e-reporting (Flow 10): submit via your Plateforme Agréée — Invopop's e-reporting workflow batches transactions per period and submits to the PPF. > > > [accordion] What format does France expect for periodic reports? > > > > TVA: DGFiP's EDI-TVA XML schema. E-reporting Flow 10: a structured JSON/XML payload defined by the PPF specification (currently in beta). Invopop emits Flow 10 via the upcoming `fr-ctc-flow10-v1` GOBL addon. > > More answers in our [France FAQ](/faq/france) section > [tab] Actions > > > [card] Send invoice to Chorus Pro > > > > 3 > > Creates a flux with the generated file and sends it to Chorus Pro. > > > [card] Register supplier with Chorus Pro > > > > 100/mo > > Register a supplier in Invopop to enable e-invoicing in Chorus Pro. A supplier must then provide a Technical Account. > > > [card] Wait for Chorus Pro credentials > > > > This step will wait until the user completes the form. > > > [card] Unregister supplier from Chorus Pro > > > > Remove a supplier's Chorus Pro registration and stored credentials. > [tab] Workflows > > > [accordion] Chorus Pro issue invoice > > > > ```json Chorus Pro issue invoice workflow theme={"system"} > > { > > "name": "Chorus Pro issue invoice", > > "description": "Issue a B2G invoice through Chorus Pro using CII", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "241c1b60-4cec-11f0-bcdc-61b84b5eeae8", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "0dba81f0-4ba1-11f0-a0a5-bbd7c9d8117a", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "3d048690-4ba1-11f0-a0a5-bbd7c9d8117a", > > "name": "Generate CII document", > > "provider": "cii.generate", > > "summary": "Chorus Pro v1", > > "config": { > > "doc_type": "choruspro-v1" > > } > > }, > > { > > "id": "2cd30490-4ba1-11f0-a0a5-bbd7c9d8117a", > > "name": "Send invoice to Chorus Pro", > > "provider": "chorus-pro.send" > > }, > > { > > "id": "282dac00-4cec-11f0-bcdc-61b84b5eeae8", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "2b9c6cf0-4cec-11f0-bcdc-61b84b5eeae8", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] Chorus Pro register supplier > > > > ```json Chorus Pro register supplier workflow theme={"system"} > > { > > "name": "Chorus Pro register supplier", > > "description": "Register a supplier with Chorus Pro", > > "schema": "org/party", > > "steps": [ > > { > > "id": "9ed27c40-4ced-11f0-bcdc-61b84b5eeae8", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "b8d3dc10-4ba3-11f0-a0a5-bbd7c9d8117a", > > "name": "Register supplier with Chorus Pro", > > "provider": "chorus-pro.register" > > }, > > { > > "id": "a3d43940-4ced-11f0-bcdc-61b84b5eeae8", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "a6c4f090-4ced-11f0-bcdc-61b84b5eeae8", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > > [accordion] Chorus Pro B2G Invoice > > > > In this example, we're issuing a Chorus Pro invoice for business-to-government transactions in France. Chorus Pro is the mandatory platform for submitting invoices to French public sector entities. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the B2G invoice, > > * the [`fr-choruspro-v1`](https://docs.gobl.org/addons/fr-choruspro-v1) addon ensures the document will be validated using the Chorus Pro rules built into the [GOBL](https://docs.gobl.org) library, > > * the customer must be a French public sector entity with a valid SIRET number, > > * specific Chorus Pro extensions and identifiers are required for public procurement (such as service codes and commitment numbers), > > * there are no totals or calculations in the minimal version; all these will be calculated automatically when running `gobl build`, > > * the built version in the second tab shows the normalized document with calculated totals, line item sums, TVA breakdowns, and automatically generated fields, > > * the invoice will be formatted according to Chorus Pro requirements and submitted through the platform, and, > > * all invoices to French public entities must be submitted through Chorus Pro. > > > > ```json Chorus Pro B2G Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-choruspro-v1" > > ], > > "uuid": "019783e7-33b1-7000-a1a5-6139e214b447", > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1944.00" > > } > > ], > > "instructions": { > > "key": "card" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-choruspro-v1" > > ], > > "uuid": "019783e7-33b1-7000-a1a5-6139e214b447", > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-choruspro-framework": "A1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734", > > "ext": { > > "iso-scheme-id": "0009" > > } > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "1" > > } > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345", > > "ext": { > > "iso-scheme-id": "0009" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1944.00" > > } > > ], > > "instructions": { > > "key": "card", > > "ext": { > > "untdid-payment-means": "48" > > } > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "20%", > > "amount": "324.00" > > } > > ], > > "amount": "324.00" > > } > > ], > > "sum": "324.00" > > }, > > "tax": "324.00", > > "total_with_tax": "1944.00", > > "payable": "1944.00", > > "advance": "1944.00", > > "due": "0.00" > > } > > } > > ``` > > > [accordion] Chorus Pro cross-border invoice (DE → FR) > > > > A non-French supplier invoicing a French public sector entity through Chorus Pro. Chorus Pro accepts foreign suppliers — the customer's SIRET is what anchors the document to the right administration. > > > > Notice: > > > > * the supplier carries a DE tax ID and address, while the customer keeps its `SIRET` identity, > > * the `fr-choruspro-v1` add-on still applies — Chorus Pro routing rules are driven by the receiver, not the issuer, > > * VAT is reported as standard French VAT because the place of supply is France; cross-border reverse-charge cases would set the line tax accordingly. > > > > ```json Chorus Pro Cross-Border Invoice (DE → FR) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-choruspro-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Berliner Strasse", > > "locality": "Berlin", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Public Entity", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "73282932012345" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "discounts": [ > > { > > "percent": "10%", > > "reason": "Special discount" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "detail": "Please pay within 10 days" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-choruspro-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-choruspro-framework": "A1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Berliner Strasse", > > "locality": "Berlin", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "2" > > } > > }, > > "customer": { > > "name": "Sample Public Entity", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "73282932012345", > > "ext": { > > "iso-scheme-id": "0009" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Please pay within 10 days" > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "20%", > > "amount": "324.00" > > } > > ], > > "amount": "324.00" > > } > > ], > > "sum": "324.00" > > }, > > "tax": "324.00", > > "total_with_tax": "1944.00", > > "payable": "1944.00" > > } > > } > > ``` > > > [accordion] Chorus Pro Credit Note > > > > A credit note (avoir) reversing part of a previously submitted Chorus Pro invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, so the document is rendered with the UNTDID document type `381`, > > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, with a `reason` for the correction — Chorus Pro links the avoir to the original submission through this reference, > > * both parties keep their `SIRET` identities, exactly as on the original invoice, and, > > * the lines describe only the amounts being credited; totals are calculated automatically when running `gobl build`. > > > > ```json Chorus Pro Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-choruspro-v1" > > ], > > "uuid": "019783e7-33b1-7000-a1a5-6139e214b448", > > "type": "credit-note", > > "series": "SAMPLE-CN", > > "code": "2346", > > "issue_date": "2025-06-25", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "reason": "Partial refund for undelivered services" > > } > > ], > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "card" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-choruspro-v1" > > ], > > "uuid": "019783e7-33b1-7000-a1a5-6139e214b448", > > "type": "credit-note", > > "series": "SAMPLE-CN", > > "code": "2346", > > "issue_date": "2025-06-25", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-06-18", > > "series": "SAMPLE", > > "code": "2345", > > "reason": "Partial refund for undelivered services" > > } > > ], > > "tax": { > > "ext": { > > "fr-choruspro-framework": "A1", > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734", > > "ext": { > > "iso-scheme-id": "0009" > > } > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "1" > > } > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345", > > "ext": { > > "iso-scheme-id": "0009" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "450.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "450.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "card", > > "ext": { > > "untdid-payment-means": "48" > > } > > } > > }, > > "totals": { > > "sum": "450.00", > > "total": "450.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "450.00", > > "percent": "20%", > > "amount": "90.00" > > } > > ], > > "amount": "90.00" > > } > > ], > > "sum": "90.00" > > }, > > "tax": "90.00", > > "total_with_tax": "540.00", > > "payable": "540.00" > > } > > } > > ``` > > > [accordion] Convert a Chorus Pro test SIREN into a GOBL party > > > > SIRET (14 digits) or SIREN (9 digits) > > > > ```js JavaScript theme={"system"} > > const siret = "34724449635741"; // from the QAS test account CSV > > const siren = siret.slice(0, 9); > > const key = String((Number(siren) * 100 + 12) % 97).padStart(2, "0"); > > > > const party = { > > name: "Example Company", > > tax_id: { country: "FR", code: key + siren }, > > identities: [{ type: "SIRET", code: siret }], > > }; > > ``` > > > > ```python Python theme={"system"} > > siret = "34724449635741" # from the QAS test account CSV > > siren = siret[:9] > > > > party = { > > "name": "Example Company", > > "tax_id": {"country": "FR", "code": f"{(int(siren) * 100 + 12) % 97:02d}{siren}"}, > > "identities": [{"type": "SIRET", "code": siret}], > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Chorus Pro France → # Colombia Source: https://docs.invopop.com/apps/colombia Issue invoices, credit notes, and debit notes through the Colombian DIAN system. > [tab] Description > > > [card] [Register suppliers](/guides/co-dian-registration) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/co-dian-invoicing) > > > > Invoicing guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C | > | Country | [Colombia](/compliance/colombia) | > | System | DIAN | > > The [DIAN](https://www.dian.gov.co/) in Colombia stands for *Dirección de Impuestos y Aduanas Nacionales* (National Directorate of Taxes and Customs). It is the government agency responsible for managing and overseeing tax collection, customs operations, and facilitating international trade. > > Electronic invoicing in Colombia is mandatory and operates on a real-time clearance model whereby every invoice must receive a unique identifier called a CUFE (*Código Único de Factura Electrónica*) issued by the DIAN; credit and debit notes receive the equivalent CUDE. > > Invopop's **Colombia app** has partnered with [Alegra](https://www.alegra.com), an authorized technology provider for DIAN electronic invoicing, to onboard suppliers and issue documents on their behalf. The app handles the DIAN enablement (*habilitación*) through a hosted portal, keeps track of the supplier's billing numbering resolutions, and clears invoices, credit notes, and debit notes in real time. > > **Key features** > > * **Workflow automation:** Automated workflows for registering suppliers and issuing invoices, credit notes, and debit notes through the DIAN system. > * **Clearance:** Every document is validated by the DIAN before it's issued, receiving its unique CUFE or CUDE code as the `dian-cude` stamp on the envelope. > * **Supplier onboarding:** A hosted portal walks suppliers through the DIAN enablement test set, with the workflow resuming automatically once the DIAN accepts it. You can also [submit the test set via the API](/api-ref/apps/gov-co/enablement-submit). > * **Resolution management:** Billing numbering resolutions linked to Alegra are fetched from the DIAN automatically, and invoice numbers are validated against them before sending. You can also [list them via the API](/api-ref/apps/gov-co/resolutions-list). > * **UBL 2.1 generation:** The signed DIAN XML (AttachedDocument) is stored as a file on the silo entry. > * **QR code:** The DIAN QR code is added as the `dian-qr` stamp, ready for legally compliant PDF generation. > * **Legally compliant PDF invoices:** The send workflow renders a PDF with all mandatory fields, the CUFE or CUDE, and the DIAN QR code. > > Check out the guides below to get started: > > * [Supplier registration](/guides/co-dian-registration) · [Invoicing](/guides/co-dian-invoicing) > > ## FAQ > > Invoicing questions > > > [accordion] My GOBL document for a Colombian invoice fails to build because of the postal code > > > > The DIAN expects a 5-digit [municipal code](https://www.dian.gov.co/atencionciudadano/formulariosinstructivos/Formularios/2007/Codigos_municipios_2007.pdf), not a 6-digit postal code, in the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension of the supplier and of customers identified by a Colombian NIT. For example, use `11001` for Bogotá. > > > [accordion] How does Invopop issue invoices in Colombia? > > > > Through [Alegra](https://www.alegra.com), an authorized DIAN technology provider. The [send workflow](/guides/co-dian-invoicing) signs the GOBL envelope, clears it with the DIAN, stamps the CUFE and QR code, and generates a compliant PDF. > > > [accordion] What does a GOBL invoice need to be accepted by the DIAN? > > > > Set `$schema` to `https://gobl.org/draft-0/bill/invoice`, the supplier's `tax_id.country` to `CO`, and include the supplier's DIAN municipality code via the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension in its `ext`. Customers identified by a Colombian NIT need the extension too; foreign customers and `simplified` B2C invoices don't (see [When is the municipality code required?](/guides/co-dian-invoicing#when-is-the-municipality-code-required)). See the [GOBL Colombia tax regime](https://github.com/invopop/gobl/blob/main/regimes/co/README.md) for the full field reference and examples. > > > [accordion] Do foreign or consumer customers need a municipality code? > > > > No. The [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension is only required on customers identified by a Colombian NIT, that is, with `tax_id.country` set to `CO` and a `tax_id.code`. Foreign customers, `simplified` B2C invoices without a customer, and consumers identified only by a cédula build without it. Invopop can't derive the code from the NIT, so collect it for each Colombian business customer. > > > [accordion] Which taxes can appear on a Colombian invoice? > > > > VAT (IVA, 19% standard or 5% reduced), consumption taxes (IC, INC), the industry and commerce tax (ICA), and the retained taxes ReteIVA, ReteICA, and Retefuente. A single invoice may need to combine up to three value added and retained taxes, all supported by the [GOBL Colombia tax regime](https://docs.gobl.org/regimes/co#tax-categories). > > > [accordion] Which document types can I issue in Colombia? > > > > Invoices, credit notes, and debit notes. Credit and debit notes reference the corrected invoice in the `preceding` array; debit notes require every preceding entry to carry the `dian-cude` stamp of the original invoice. > > > [accordion] What are the sandbox limitations for Colombia? > > > > Only Alegra's NIT (`9005590882`) can be the supplier. Invoices use series `SETP` with codes `990000000`–`995000000` (shared across users, so avoid common codes) and today's date in Colombia. > > > [accordion] Why was my invoice rejected for its series or number? > > > > The series, code, and issue date must fall within an active DIAN numbering resolution. Resolutions are refreshed automatically, so a rejection usually means the range isn't linked to Alegra yet, or it expired or ran out and the supplier needs a new one. See [Numbering resolutions](/guides/co-dian-registration#numbering-resolutions). > > Registering supplier questions > > > [accordion] What does a supplier need before issuing invoices in Colombia? > > > > The supplier must be registered with the DIAN with an active RUT (Registro Único Tributario), complete the DIAN habilitación, and hold a valid billing numbering range authorization. The [supplier registration guide](/guides/co-dian-registration) walks through each step. > > > [accordion] How do I register a supplier in Colombia? > > > > Upload a GOBL party with the supplier's name, NIT (with verification digit), and email, then run the registration workflow. It publishes an enablement portal link under `registration-link` in the entry's meta; the supplier's legal representative completes the DIAN enablement there, and the workflow finishes once the DIAN accepts it. See the [supplier registration guide](/guides/co-dian-registration). > > > [accordion] What is the DIAN habilitación? > > > > A one-time DIAN certification required before issuing real invoices. The supplier submits a TestSetId from the DIAN portal through the hosted portal, Alegra sends the test documents, and the supplier is enabled once the DIAN accepts them. > > > [accordion] The enablement failed: how do I know why? > > > > The [enablement status](/api-ref/apps/gov-co/enablement-get) only says `failed`. The DIAN's reason is in the faults of the registration job: check the entry's job history in the Console, [fetch the job](/api-ref/transform/jobs/fetch-a-job) via the API, or receive it in a [Send Webhook](/guides/webhooks) step in the workflow's error handling flow. Fix the cause and re-run the registration workflow to start again. See [Failed enablement](/guides/co-dian-registration#failed-enablement). > > > [accordion] Do I need to register suppliers in the sandbox? > > > > Yes, but only Alegra's NIT (`9005590882`) can be registered. The enablement is simulated: enter the TestSetId `a70562e0-631e-4ceb-aa65-36887b57dc17` for an instant acceptance. Other outcomes are in the [sandbox section](/guides/co-dian-registration#sandbox) of the guide. > > > [accordion] Does the billing numbering range authorization expire? > > > > Yes. Authorizations are valid for 2 years and also end when their numbers run out. Before a range with unused numbers expires, the supplier can extend it ([extension request](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-Habilitacion-F.pdf)); once it's used up, they request a new one ([new authorization](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-AutorizacionF.pdf)). Updated resolutions are picked up automatically. > > More answers in our [Colombia FAQ](/faq/colombia) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > Registration > > > [card] Register supplier > > > > 100/mo > > Validates the supplier party, creates its Alegra company, and publishes the DIAN enablement portal link in the entry's `meta` section. > > > [card] Wait for DIAN enablement > > > > Pauses the workflow until the DIAN accepts the enablement test set the supplier submits from the portal. > > > [card] Unregister supplier > > > > Removes the supplier's registration. Registering the supplier again starts over with a new enablement. > > Invoicing > > > [card] Send to DIAN > > > > 5 > > Converts the GOBL invoice, credit note, or debit note to the DIAN UBL format and clears it, stamping the envelope with the CUFE/CUDE and QR code once the DIAN validates it. > [tab] Workflows > > Registration > > > [accordion] Colombia register supplier > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=co-register) > > > > ```json Colombia register supplier workflow theme={"system"} > > { > > "name": "Colombia register supplier", > > "description": "Register a supplier with the DIAN through Alegra", > > "schema": "org/party", > > "steps": [ > > { > > "id": "9cb7f64d-95df-414d-9945-b204a1993d4b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "19ad51e4-7277-4ce7-909d-30bd6aeca68d", > > "name": "Register supplier", > > "provider": "gov-co.register" > > }, > > { > > "id": "8b9fd00a-fa37-466f-9c89-c44a4a680d39", > > "name": "Wait for DIAN enablement", > > "provider": "gov-co.wait.enablement" > > }, > > { > > "id": "0f69cd97-bbc3-46e6-bd53-7ccd44945107", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "65de083c-5053-4f87-b269-fc2028cd74f8", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Invoicing > > > [accordion] Colombia send invoice > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=co-send-invoice) > > > > ```json Colombia send invoice workflow theme={"system"} > > { > > "name": "Colombia send invoice", > > "description": "Issue an invoice through the DIAN and generate a PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "4ede1ca2-7550-4ca9-b007-ebef2bd58dac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "1e35463c-2fb3-4157-a589-4afbafe5fc5b", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · DIAN · 1", > > "config": { > > "name": "Colombia", > > "padding": 1, > > "prefix": "", > > "start": 1 > > } > > }, > > { > > "id": "ade3b20b-5d0c-4663-8907-b439f6e7baaa", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "20d33e51-2086-4507-a170-946168ba14af", > > "name": "Send to DIAN", > > "provider": "gov-co.send" > > }, > > { > > "id": "3cbd4b30-4259-46b4-9be1-ec7bad1d7cda", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "es", > > "logo_height": 40 > > } > > }, > > { > > "id": "871259a3-85f0-4066-b7cc-655f383ec66d", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "58582217-f8c2-4b5f-8b1f-576b0680ad84", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > > [accordion] Colombia supplier > > > > The name, NIT with the verification digit, and an email address are required for registration. The example also includes the address and the `co-dian-municipality` extension identifying where the supplier is registered, and uses Alegra's sandbox NIT so it can be registered in the sandbox. > > > > ```json Colombia supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9005590882" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "facturacion@examplesupplier.co" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > } > > ``` > > > > > [!NOTE] > > > > > > If the supplier has special tax obligations, set them with the [`co-dian-fiscal-responsibility`](https://docs.gobl.org/addons/co-dian-v2) extension: `O-13` *Gran contribuyente*, `O-15` *Autorretenedor*, `O-23` *Agente de retención IVA*, or `O-47` *Régimen simple de tributación*. It defaults to `R-99-PN` when none apply. > > > [accordion] Colombia customer > > > > A business customer with name, NIT, and the `co-dian-municipality` extension, which invoices require for customers identified by a Colombian NIT, plus the address, email, and phone usually shown on the invoice. > > > > ```json Colombia customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "EXAMPLE CUSTOMER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9014514805" > > }, > > "addresses": [ > > { > > "street": "CRA 8 113 31 OF 703", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "benito.ortiz@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "3114131811" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > } > > ``` > > > [accordion] Example B2B invoice > > > > In this example, we're issuing a B2B invoice from a Colombian supplier to another Colombian business customer. > > > > Notice: > > > > * the `$schema` is set to [`https://gobl.org/draft-0/bill/invoice`](https://docs.gobl.org/draft-0/bill/invoice), > > * we've added the [`co-dian-v2`](https://docs.gobl.org/addons/co-dian-v2) addon, so the document is validated with the DIAN rules built into [GOBL](https://docs.gobl.org) and gets its defaults, such as the `R-99-PN` fiscal responsibility, > > * the supplier uses Alegra's sandbox NIT and the `series` is the `SETP` test series, so the example can be sent in the sandbox, > > * both parties carry the DIAN municipality code in the `co-dian-municipality` extension, required here because the customer is identified by a Colombian NIT, > > * the invoice includes VAT at the standard Colombian rate of 19%, > > * payment terms are specified with a due date and payment amount, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Colombia B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "series": "SETP", > > "code": "990001001", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9005590882" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > }, > > "customer": { > > "name": "EXAMPLE CUSTOMER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9014514805" > > }, > > "addresses": [ > > { > > "street": "CRA 8 113 31 OF 703", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "benito.ortiz@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "3114131811" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Servicios de consultoría", > > "price": "200000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "19%" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-11-12", > > "percent": "100%" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "type": "standard", > > "series": "SETP", > > "code": "990001001", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "code": "9005590882", > > "type": "tin" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-fiscal-responsibility": "R-99-PN", > > "co-dian-municipality": "11001" > > } > > }, > > "customer": { > > "name": "EXAMPLE CUSTOMER S.A.S.", > > "tax_id": { > > "country": "CO", > > "code": "9014514805", > > "type": "tin" > > }, > > "addresses": [ > > { > > "street": "CRA 8 113 31 OF 703", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "benito.ortiz@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "3114131811" > > } > > ], > > "ext": { > > "co-dian-fiscal-responsibility": "R-99-PN", > > "co-dian-municipality": "11001", > > "co-dian-tax-scheme": "ZZ" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Servicios de consultoría", > > "price": "200000.00" > > }, > > "sum": "200000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "19%" > > } > > ], > > "total": "200000.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-11-12", > > "amount": "238000.00", > > "percent": "100%" > > } > > ] > > } > > }, > > "totals": { > > "sum": "200000.00", > > "total": "200000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200000.00", > > "percent": "19%", > > "amount": "38000.00" > > } > > ], > > "amount": "38000.00" > > } > > ], > > "sum": "38000.00" > > }, > > "tax": "38000.00", > > "total_with_tax": "238000.00", > > "payable": "238000.00" > > } > > } > > ``` > > > [accordion] Example B2C invoice > > > > In this example, we're issuing a B2C simplified invoice from a Colombian supplier to a consumer. > > > > Notice: > > > > * we've set the `simplified` tag in the `tax.tags` field; this indicates the invoice is for a final consumer, > > * the customer information is omitted, as it's not required for B2C transactions; the DIAN receives it as *Consumidor final*, and no customer municipality code is needed, > > * the invoice includes a prepayment advance of 100%, meaning the invoice has been fully paid, > > * the totals section shows the `advance` and `due` amounts, with the latter being zero since the invoice is fully paid, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Colombia B2C invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "series": "SETP", > > "code": "990001002", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "tax": { > > "tags": [ > > "simplified" > > ] > > }, > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9005590882" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Servicios de consultoría", > > "price": "200000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "19%" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Prepaid", > > "percent": "100%" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SETP", > > "code": "990001002", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "tax": {}, > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "code": "9005590882", > > "type": "tin" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-fiscal-responsibility": "R-99-PN", > > "co-dian-municipality": "11001" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Servicios de consultoría", > > "price": "200000.00" > > }, > > "sum": "200000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "19%" > > } > > ], > > "total": "200000.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Prepaid", > > "percent": "100%", > > "amount": "238000.00" > > } > > ] > > }, > > "totals": { > > "sum": "200000.00", > > "total": "200000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200000.00", > > "percent": "19%", > > "amount": "38000.00" > > } > > ], > > "amount": "38000.00" > > } > > ], > > "sum": "38000.00" > > }, > > "tax": "38000.00", > > "total_with_tax": "238000.00", > > "payable": "238000.00", > > "advance": "238000.00", > > "due": "0.00" > > } > > } > > ``` > > > [accordion] Example credit note > > > > In this example, we're issuing a credit note (nota de crédito) that corrects a previously issued invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, > > * the `series` is set to a dedicated credit note series, separate from the invoice series, > > * the `preceding` array references the original invoice being corrected by its `series`, `code`, and `issue_date`, along with a `reason` for the correction, > > * the correction concept is set with the [`co-dian-credit-code`](https://docs.gobl.org/addons/co-dian-v2) extension on the preceding entry, > > * the lines describe the amounts being credited — a credit note can cover the full original invoice or just part of it, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Colombia credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "type": "credit-note", > > "series": "NCTP", > > "code": "1", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "preceding": [ > > { > > "type": "standard", > > "series": "SETP", > > "code": "990001001", > > "issue_date": "2026-10-13", > > "reason": "Servicios no prestados", > > "ext": { > > "co-dian-credit-code": "1" > > } > > } > > ], > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9005590882" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > }, > > "customer": { > > "name": "EXAMPLE CUSTOMER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9014514805" > > }, > > "addresses": [ > > { > > "street": "CRA 8 113 31 OF 703", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "benito.ortiz@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "3114131811" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Servicios de consultoría", > > "price": "200000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "19%" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-11-12", > > "percent": "100%" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "type": "credit-note", > > "series": "NCTP", > > "code": "1", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-10-13", > > "series": "SETP", > > "code": "990001001", > > "reason": "Servicios no prestados", > > "ext": { > > "co-dian-credit-code": "1" > > } > > } > > ], > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "code": "9005590882", > > "type": "tin" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-fiscal-responsibility": "R-99-PN", > > "co-dian-municipality": "11001" > > } > > }, > > "customer": { > > "name": "EXAMPLE CUSTOMER S.A.S.", > > "tax_id": { > > "country": "CO", > > "code": "9014514805", > > "type": "tin" > > }, > > "addresses": [ > > { > > "street": "CRA 8 113 31 OF 703", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "benito.ortiz@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "3114131811" > > } > > ], > > "ext": { > > "co-dian-fiscal-responsibility": "R-99-PN", > > "co-dian-municipality": "11001", > > "co-dian-tax-scheme": "ZZ" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Servicios de consultoría", > > "price": "200000.00" > > }, > > "sum": "200000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "19%" > > } > > ], > > "total": "200000.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-11-12", > > "amount": "238000.00", > > "percent": "100%" > > } > > ] > > } > > }, > > "totals": { > > "sum": "200000.00", > > "total": "200000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200000.00", > > "percent": "19%", > > "amount": "38000.00" > > } > > ], > > "amount": "38000.00" > > } > > ], > > "sum": "38000.00" > > }, > > "tax": "38000.00", > > "total_with_tax": "238000.00", > > "payable": "238000.00" > > } > > } > > ``` > > > [accordion] Example debit note > > > > In this example, we're issuing a debit note (nota de débito) that increases the amount of a previously cleared invoice. > > > > Notice: > > > > * the `type` is set to `debit-note`, > > * the `series` is set to a dedicated debit note series, separate from the invoice series; notes don't need a numbering resolution, > > * the `preceding` array references the original invoice by its `series`, `code`, and `issue_date`, along with a `reason` for the adjustment, > > * the preceding entry carries the `dian-cude` stamp of the original invoice, taken from its cleared envelope; the DIAN requires it for every debit note, > > * the adjustment concept is set with the [`co-dian-debit-code`](https://docs.gobl.org/addons/co-dian-v2) extension on the preceding entry, > > * the lines describe only the additional amount being charged, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Colombia debit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "type": "debit-note", > > "series": "NDTP", > > "code": "1", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "preceding": [ > > { > > "type": "standard", > > "series": "SETP", > > "code": "990001001", > > "issue_date": "2026-10-13", > > "reason": "Ajuste del valor de los servicios", > > "stamps": [ > > { > > "prv": "dian-cude", > > "val": "3f8c1c9b6e0a4f2d8b7a5c3e1d9f0a2b4c6e8d0f1a3b5c7d9e1f2a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8" > > } > > ], > > "ext": { > > "co-dian-debit-code": "3" > > } > > } > > ], > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9005590882" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > }, > > "customer": { > > "name": "EXAMPLE CUSTOMER S.A.S.", > > "tax_id": { > > "country": "CO", > > "type": "tin", > > "code": "9014514805" > > }, > > "addresses": [ > > { > > "street": "CRA 8 113 31 OF 703", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "benito.ortiz@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "3114131811" > > } > > ], > > "ext": { > > "co-dian-municipality": "11001" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Ajuste de precio de los servicios de consultoría", > > "price": "50000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "19%" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-11-12", > > "percent": "100%" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "CO", > > "$addons": [ > > "co-dian-v2" > > ], > > "type": "debit-note", > > "series": "NDTP", > > "code": "1", > > "issue_date": "2026-10-13", > > "currency": "COP", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-10-13", > > "series": "SETP", > > "code": "990001001", > > "reason": "Ajuste del valor de los servicios", > > "stamps": [ > > { > > "prv": "dian-cude", > > "val": "3f8c1c9b6e0a4f2d8b7a5c3e1d9f0a2b4c6e8d0f1a3b5c7d9e1f2a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8" > > } > > ], > > "ext": { > > "co-dian-debit-code": "3" > > } > > } > > ], > > "supplier": { > > "name": "EXAMPLE SUPPLIER S.A.S.", > > "tax_id": { > > "country": "CO", > > "code": "9005590882", > > "type": "tin" > > }, > > "addresses": [ > > { > > "street": "CRA 15 88 64 OF 502", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "ext": { > > "co-dian-fiscal-responsibility": "R-99-PN", > > "co-dian-municipality": "11001" > > } > > }, > > "customer": { > > "name": "EXAMPLE CUSTOMER S.A.S.", > > "tax_id": { > > "country": "CO", > > "code": "9014514805", > > "type": "tin" > > }, > > "addresses": [ > > { > > "street": "CRA 8 113 31 OF 703", > > "locality": "Bogotá, D.C.", > > "region": "Bogotá", > > "country": "CO" > > } > > ], > > "emails": [ > > { > > "addr": "benito.ortiz@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "3114131811" > > } > > ], > > "ext": { > > "co-dian-fiscal-responsibility": "R-99-PN", > > "co-dian-municipality": "11001", > > "co-dian-tax-scheme": "ZZ" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Ajuste de precio de los servicios de consultoría", > > "price": "50000.00" > > }, > > "sum": "50000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "19%" > > } > > ], > > "total": "50000.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-11-12", > > "amount": "59500.00", > > "percent": "100%" > > } > > ] > > } > > }, > > "totals": { > > "sum": "50000.00", > > "total": "50000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "50000.00", > > "percent": "19%", > > "amount": "9500.00" > > } > > ], > > "amount": "9500.00" > > } > > ], > > "sum": "9500.00" > > }, > > "tax": "9500.00", > > "total_with_tax": "59500.00", > > "payable": "59500.00" > > } > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇨🇴 Invopop resources for Colombia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Colombia](/compliance/colombia) [Compliance timeline](/timelines/colombia) | > | Apps | [Colombia](/apps/colombia) | > | Guides | [Supplier registration](/guides/co-dian-registration) [Issuing invoices](/guides/co-dian-invoicing) | > | FAQ | [Colombia FAQ](/faq/colombia) | > | GOBL | [Colombia Tax Regime](https://docs.gobl.org/regimes/co) [Colombia DIAN Addon](https://docs.gobl.org/addons/co-dian-v2) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Colombia app → # Connect Source: https://docs.invopop.com/apps/connect Create incoming and outgoing connections via multiple channels. > [tab] Description > > > [card] [Receive documents](/guides/connect) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Automation | > > The Connect app links your workspace to external document exchange channels, so other systems can deliver documents to Invopop without polling or custom integration code. Connect currently supports incoming HTTP connections, with further channels and directions on the way. > > Each **endpoint** pairs a public URL of the form `https://connect.invopop.app/{workspace-id}/{slug}` with a workflow of your choice. Any file posted to the endpoint — a GOBL invoice from your billing tool, an XML document from a partner, or any other payload — is validated, stored, and handed to that workflow, which receives a link to the stored file. > > Every delivery is recorded in a document log inside the app, where you can check its status, inspect the request, preview the payload, and download the original file. > > #### Key features > > * **Workflow automation:** Every document delivered to an endpoint automatically starts the workflow you choose for it. > * **Public endpoints:** Create one URL per document flow, with a slug you control, unique within your workspace. > * **Sender authentication:** Protect each endpoint with a bearer token, basic credentials, or an HMAC-SHA256 signature. > * **Content validation:** Restrict the content types an endpoint accepts; malformed or oversized payloads are rejected before they reach your workflows. > * **Binary support:** Receive PDFs and other binary files as base64-encoded bodies, with an optional filename for download. > * **Document log:** Review every delivery with its status, request headers, payload preview, and original file download. > > Check out the [Connect guide](/guides/connect) to create your first endpoint and deliver a document to it. > [tab] Actions > > Connect works in the opposite direction to most apps: rather than adding steps to your workflows, it starts them. The app adds no actions to the workflow step picker. > > Each endpoint is bound to one of your workflows. When a document arrives, Connect validates and stores it, then creates a job for that workflow with a `url` argument pointing at the stored file. The sender receives the IDs of both the stored document and the workflow job in the response, so external systems can track processing end to end. > > The workflow itself is built like any other — see the [Connect guide](/guides/connect) for a walkthrough of creating an endpoint and sending the first document. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Connect app → # Cron Source: https://docs.invopop.com/apps/cron Schedule periodic workflow execution for automated data imports and recurring processes. > [tab] Description > > > [card] Cron > > > > Periodic workflow execution > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Automation | > | Scope | All | > > The **Cron app** provides periodic workflow execution capabilities for Invopop. Subscribe any silo entry to a workflow with a specified interval, and Cron handles the scheduling and execution automatically. This replaces the need for apps to build their own polling and scheduling infrastructure. > > The primary use case is automating inbound data flows, such as periodically importing invoices from external systems. For example, the [SW Sapien app](/apps/sw-sapien) uses Cron to schedule daily CFDI bulk imports from Mexico's SAT. > > #### Key features > > * **Subscription-based scheduling:** Subscribe silo entries to workflows with configurable intervals (hourly, daily, and more). > * **Automatic execution windows:** Each scheduled job receives `from` and `upto` parameters defining the exact time range to process, so workflows always know which period they cover. > * **Centralized infrastructure:** Uses the Invopop workflow engine for error handling, retry logic, and monitoring instead of requiring each app to build its own scheduling. > * **Manual triggers:** Unsubscribe and resubscribe to reset execution, or create one-off jobs directly for special cases. > * **Execution tracking:** Maintains a history of executions per subscription to ensure proper interval management. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Subscribe > > > > Register a silo entry for periodic workflow execution. Configure the target workflow and the execution interval (for example, daily or hourly). The subscription takes effect immediately and the first job is created at the next scheduled interval. > > > [card] Unsubscribe > > > > Remove a previously created subscription. The workflow will no longer execute periodically for the specified silo entry. > [tab] Workflows > > The Cron app actions are designed to be included as steps within your own workflows. Below is an example of a party workflow that subscribes a party to a periodic import process. > > > [accordion] Subscribe party to periodic import > > > > Subscribe a party to daily CFDI bulk imports. This workflow is intended to be executed once per party after initial registration. Replace the `workflow_id` with the ID of your import workflow. > > > > ```json SW Sapien subscribe to CFDI import workflow theme={"system"} > > { > > "name": "SW Sapien subscribe to CFDI import", > > "description": "Subscribe a party to periodic CFDI bulk imports", > > "schema": "org/party", > > "steps": [ > > { > > "id": "2ab3c280-164e-11f1-a769-19319c292fdf", > > "name": "Subscribe to periodic execution", > > "provider": "cron.subscribe", > > "summary": "Hourly → SW Sapien bulk import CFDIs", > > "config": { > > "interval": "hourly", > > "workflow_id": "f907561b-81c2-4bd5-9199-95638ed60669" > > } > > }, > > { > > "id": "3a99bc90-164e-11f1-a769-19319c292fdf", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "d0e1f2a0-3c4d-11f0-d003-6c7d8e9f0a1b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [!NOTE] > > > > The example above uses a Mexico CFDI import workflow, but the Cron app is not country-specific. Use it with any workflow that benefits from periodic execution. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Cron App → # Denmark Source: https://docs.invopop.com/apps/denmark Send and receive OIOUBL invoices over Denmark's NemHandel network. > [tab] Description > > > [card] [Register suppliers](/guides/dk-nemhandel-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/dk-nemhandel) > > > > Issuing guide › > > > [card] [Receive invoices](/guides/dk-nemhandel-receiving) > > > > Receiving guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2G | > | System | NemHandel (Erhvervsstyrelsen) | > | Country | [Denmark](/compliance/denmark) | > > **NemHandel** is Denmark's national e-invoicing network, run by the Danish Business Authority (*Erhvervsstyrelsen*). Denmark was the first country in Europe to mandate B2G e-invoicing, back in 2005: public authorities only accept electronic invoices, delivered over NemHandel or Peppol, and the Digital Bookkeeping Act now requires nearly every Danish business to be able to send and receive e-invoices as well. > > Documents travel on NemHandel as **OIOUBL 2.1**, Denmark's national UBL dialect. This app owns the full journey in both directions: it converts GOBL invoices and credit notes to OIOUBL, validates them against the official schematron before anything is sent, delivers them over the network, and imports the documents your parties receive back into GOBL. > > Invopop has partnered with [eCourier](https://ecourier.io), a Danish NemHandel access point, to transmit documents and onboard suppliers onto the network. Registering a supplier includes a signing step: the supplier's representative signs an authorisation agreement through a hosted wizard (or your own UI over the API), and the app completes the network registration once it's signed. > > #### Key features > > * **Workflow automation:** Register parties, issue invoices, and import received ones as steps in your workflows. > * **OIOUBL 2.1 both ways:** GOBL → OIOUBL conversion for sending and OIOUBL → GOBL for received documents, including embedded attachments. > * **Schematron validation up front:** Every generated document is validated against the official OIOUBL schematron (v1.17) before it leaves the platform. > * **Delivery confirmation:** The send step waits until the network confirms delivery — submission alone doesn't complete the job, and duplicates are never resubmitted. > * **Hosted supplier onboarding:** The authorisation agreement is signed through a hosted wizard, with API endpoints for integrators building their own onboarding UI. > * **Push reception:** Inbound documents are delivered by webhook the moment they arrive and handed to your import workflow. > > Check out the guides below to get started: > > * [Supplier registration](/guides/dk-nemhandel-supplier) · [Issuing invoices](/guides/dk-nemhandel) · [Receiving invoices](/guides/dk-nemhandel-receiving) > > ## FAQ > > Invoicing questions > > > [accordion] What documents can I send over NemHandel with the Denmark app? > > > > Invoices and credit notes, as **OIOUBL 2.1** documents. Declare the [`dk-oioubl-v2` addon](https://docs.gobl.org/addons/dk-oioubl-v2) in `$addons` on the GOBL invoice: it layers the OIOUBL rules on top of the European EN 16931 baseline and rejects documents that would fail on the network before anything is sent. Reminders and invoice responses (OIOUBL ApplicationResponse) are not supported yet — they are planned for a follow-up release. > > > [accordion] How do I know an invoice was actually delivered? > > > > The send step doesn't report success on submission — it submits the OIOUBL document and then **waits until the network confirms delivery**. The job stays queued, re-checking the document's status when eCourier reports a change (and every few minutes on its own), and only completes when the document is delivered. If delivery fails, the job fails and your workflow's rescue steps run. > > > [accordion] Can I issue a VAT-exempt invoice? > > > > Not as "exempt". OIOUBL's tax category codelist supports standard-rated, zero-rated, and reverse-charge VAT, but has **no exempt category** on the wire. The `dk-oioubl-v2` addon rejects an exempt VAT key up front rather than silently relabelling it — state the supply as **zero-rated** instead. > > > [accordion] What happens if I run the send workflow twice on the same invoice? > > > > Nothing bad. A later run that finds the entry already delivered skips with a `Duplicated Invoice` result instead of resubmitting, so the receiver never gets the document twice. > > > [accordion] Can I generate the OIOUBL file without sending it? > > > > Yes. The convert step works on its own: it converts the GOBL invoice to OIOUBL 2.1, validates it against the official schematron, and stores the XML as an attachment on the silo entry under the `oioubl` file key. A workflow that only converts lets you inspect or download the file without submitting anything to the network. > > Registering supplier questions > > > [accordion] Why does registration involve signing an agreement? > > > > NemHandel registration runs through Invopop's partner **eCourier**, which requires a signed authorisation agreement from the supplier before it can create the supplier's NemHandel participant. That's why the registration workflow has three steps: publish the agreement for signing, wait until the supplier's representative signs it, and only then register the participant. > > > [accordion] Who signs the agreement, and how? > > > > A representative of the supplier — typically a director or other authorized signatory. The registration workflow publishes a **public signing link** on the party's silo entry; share it with the representative and they complete a short hosted wizard: confirm their details, review the agreement, and sign. If the party's `people` list carries a person with a name and role, the wizard prefills them as the signer. Integrators building their own onboarding UI can drive the same flow [over the API](/guides/dk-nemhandel-supplier#sign-the-agreement-via-the-api). > > > [accordion] What identifier is the party registered under? > > > > Its NemHandel participant identifier: the party's first GOBL `endpoints` entry if it has one (for example a `GLN:` number), otherwise the **`DK:CVR`** identifier derived from the party's Danish tax ID. NemHandel uses symbolic schemes (`DK:CVR`, `DK:SE`, `GLN`) rather than Peppol's numeric ISO 6523 codes. > > > [accordion] Why was my registration refused with “registered on NemHandel by a different workspace”? > > > > Each NemHandel participant can only be held by one Invopop workspace. If another workspace has already registered the same identifier, registration is refused — which workspace holds it is not disclosed. Re-running registration for a party your own workspace already registered is fine: it's treated as a retry, not an error. > > > [accordion] Can I unregister a party? > > > > Yes. Run the unregister workflow on the party's silo entry: it releases the NemHandel registration, removing the participant and the routing that delivered inbound documents to your workspace. To send or receive on behalf of that party again, you'll need to register it again. > > Receiving questions > > > [accordion] How do received invoices arrive? > > > > By push, not polling. When a document addressed to one of your registered parties lands on the network, eCourier notifies Invopop by webhook, and the Denmark app starts your configured import workflow for it. The import step fetches the document, parses the OIOUBL, converts it to a GOBL invoice, and creates a silo entry carrying the GOBL document, the original XML, and any binary attachments embedded in it. > > > [accordion] Which workflow processes inbound documents? > > > > The one you select in the Denmark app's configuration (**Configuration** → **Apps** → **Denmark** → **Configure**). Every inbound document is handed to that workflow, so create it before registering any party — its first step must be the app's import action, and everything after it is yours to shape: setting a state, filing into a folder, or any other processing. > > > [accordion] What happens to document types Invopop cannot process? > > > > The current release imports invoices and credit notes. If something else arrives — an OIOUBL ApplicationResponse or a Reminder — the app acknowledges it on the network once and fails the import job with a message naming the document type that arrived and the participant it was addressed to, so it's visible rather than silently retried forever. Support for these document types is planned for a follow-up release. > > > [accordion] Can a document be delivered twice? > > > > The network redelivers its webhook until it is acknowledged, but the import step only acknowledges a document after it has been fully processed — and a document that was already imported isn't imported again. A failure partway through leaves the document ready to retry rather than lost. > > More answers in our [Denmark FAQ](/faq/denmark) section > [tab] Limitations > > | Capability | Status | Notes | > | - | - | - | > | Party registration | Available | Includes the hosted agreement-signing wizard | > | Invoice delivery | Available | OIOUBL 2.1 invoices and credit notes, delivery-confirmed | > | Invoice reception | Available | Webhook push into your import workflow | > | Party deregistration | Available | Releases the participant and its inbound routing | > | Reminders | In development | OIOUBL Reminder documents are planned for a follow-up release | > | Invoice responses | In development | The OIOUBL ApplicationResponse leg is planned for a follow-up release | > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > Invoicing > > > [card] Generate OIOUBL > > > > 1 > > Convert a GOBL invoice or credit note to OIOUBL 2.1, validate it against the official schematron, and attach the XML to the entry under the `oioubl` file key. > > > [card] Send to NemHandel > > > > 3 > > Submit the attached OIOUBL document to the network and queue until delivery is confirmed. Requires a preceding Generate OIOUBL step. > > Registration > > > [card] Sign NemHandel Agreement > > > > 1 > > Publish the authorisation agreement for the supplier's representative to sign, adding a public signing link to the party's entry. > > > [card] Wait for NemHandel Agreement > > > > Pause the workflow until the agreement is signed, then upload it to the network partner. > > > [card] Register on NemHandel > > > > 100/mo > > Create the party's NemHandel participant and record the routing that delivers its inbound documents to your workspace. > > > [card] Unregister from NemHandel > > > > Release the registration, removing the participant and its inbound routing. > > Reception > > > [card] Load from NemHandel > > > > 1 > > Fetch one received document, parse the OIOUBL, and create a GOBL silo entry with the original XML and its embedded attachments. > [tab] Workflows > > Invoice workflows > > > [accordion] Send NemHandel invoice > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=dk-send) > > > > ```json Example Send NemHandel invoice workflow theme={"system"} > > { > > "name": "Send NemHandel invoice", > > "description": "Convert an invoice to OIOUBL and send it over the NemHandel network", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "e3ad87b2-88d1-11f1-8000-920007eb4d91", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "e3add26c-88d1-11f1-8000-920007eb4d91", > > "name": "Add Sequential Code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · NemHandel · 000001", > > "config": { > > "name": "NemHandel", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "e3ae403a-88d1-11f1-8000-920007eb4d91", > > "name": "Sign Envelope", > > "provider": "silo.close" > > }, > > { > > "id": "e3afc3a6-88d1-11f1-8000-920007eb4d91", > > "name": "Generate OIOUBL", > > "provider": "gov-dk.convert", > > "summary": "OIOUBL 2.1 Invoice/CreditNote" > > }, > > { > > "id": "e3aea606-88d1-11f1-8000-920007eb4d91", > > "name": "Send to NemHandel", > > "provider": "gov-dk.send", > > "summary": "Submits and queues until eCourier confirms delivery" > > }, > > { > > "id": "e3af29be-88d1-11f1-8000-920007eb4d91", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e3af4e58-88d1-11f1-8000-920007eb4d91", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Party workflows > > > [accordion] Register on NemHandel > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=dk-register) > > > > ```json Example Register on NemHandel workflow theme={"system"} > > { > > "name": "Register on NemHandel", > > "description": "", > > "schema": "org/party", > > "steps": [ > > { > > "id": "c3e2b400-4f6a-11f1-9c2d-0242ac120012", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "e3af78f6-88d1-11f1-8000-920007eb4d91", > > "name": "Sign NemHandel Agreement", > > "provider": "gov-dk.sign" > > }, > > { > > "id": "e3af9d5e-88d1-11f1-8000-920007eb4d91", > > "name": "Wait for NemHandel Agreement", > > "provider": "gov-dk.wait.approval" > > }, > > { > > "id": "c3e2b401-4f6a-11f1-9c2d-0242ac120012", > > "name": "Register on NemHandel", > > "provider": "gov-dk.register" > > }, > > { > > "id": "c3e2b402-4f6a-11f1-9c2d-0242ac120012", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [] > > } > > ``` > > > [accordion] Unregister from NemHandel > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=dk-unregister) > > > > ```json Example Unregister from NemHandel workflow theme={"system"} > > { > > "name": "Unregister from NemHandel", > > "description": "Release a party's NemHandel registration so it no longer sends or receives", > > "schema": "org/party", > > "steps": [ > > { > > "id": "b0ebea5e-8907-11f1-8000-920007eb4d91", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "b0ec50f2-8907-11f1-8000-920007eb4d91", > > "name": "Unregister from NemHandel", > > "provider": "gov-dk.unregister" > > }, > > { > > "id": "b0ecc1fe-8907-11f1-8000-920007eb4d91", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "b0ed13f2-8907-11f1-8000-920007eb4d91", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Reception workflows > > > [accordion] Import NemHandel invoice > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=dk-import) > > > > ```json Example Import NemHandel invoice workflow theme={"system"} > > { > > "name": "Import NemHandel invoice", > > "description": "Import a received OIOUBL document delivered via NemHandel", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "a1c0f2df-4f6a-11f1-9c2d-0242ac120010", > > "name": "Load from NemHandel", > > "provider": "gov-dk.import", > > "summary": "Fetches, parses OIOUBL, and converts to GOBL in one step" > > }, > > { > > "id": "a1c0f2e2-4f6a-11f1-9c2d-0242ac120010", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `received`{.state .received}", > > "config": { > > "state": "received" > > } > > } > > ], > > "rescue": [ > > { > > "id": "a1c0f2e3-4f6a-11f1-9c2d-0242ac120010", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > > [accordion] Denmark supplier > > > > A Danish company with its CVR number as the tax ID and a contact person with a name and role — the prefilled signer for the registration agreement. The `DK:CVR` endpoint is derived from the tax ID automatically. > > > > ```json Denmark supplier example expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "people": [ > > { > > "name": { > > "given": "Mette", > > "surname": "Kristensen" > > }, > > "role": "Director" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > } > > ``` > > > [accordion] Denmark customer > > > > A Danish public institution identified by its EAN/GLN number as an endpoint (`GLN:…`), the identifier public entities carry in the NemHandelsregisteret. Business customers can carry just their CVR tax ID instead. > > > > ```json Denmark customer example expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Den Lille Skole", > > "endpoints": [ > > { > > "uri": "GLN:5798009883735" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Fredericiavej", > > "locality": "Helsingør", > > "code": "3000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@dls.dk" > > } > > ] > > } > > ``` > > > [accordion] Example B2G invoice > > > > In this example, we're invoicing a Danish public institution, the segment where e-invoicing is mandatory. > > > > Notice: > > > > * the `$addons` field is set to `dk-oioubl-v2`, which layers the OIOUBL 2.1 rules on top of the European EN 16931 baseline, > > * the customer carries its **EAN/GLN number** as an endpoint (`GLN:5798009883735`) — this is how public entities are identified in the NemHandelsregisteret, > > * the supplier declares no endpoint: the addon derives its `DK:CVR` endpoint automatically from the Danish tax ID, > > * the `ordering.purchases` block carries the order reference the receiving institution asked for, > > * the payment instructions use a SEPA credit transfer with an IBAN, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Denmark B2G invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0042", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "people": [ > > { > > "name": { > > "given": "Mette", > > "surname": "Kristensen" > > }, > > "role": "Director" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Den Lille Skole", > > "endpoints": [ > > { > > "uri": "GLN:5798009883735" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Fredericiavej", > > "locality": "Helsingør", > > "code": "3000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@dls.dk" > > } > > ] > > }, > > "ordering": { > > "purchases": [ > > { > > "code": "5002701" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Software licence", > > "price": "150.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DK", > > "$addons": [ > > "eu-en16931-v2017", > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0042", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "16356700" > > } > > ], > > "people": [ > > { > > "name": { > > "given": "Mette", > > "surname": "Kristensen" > > }, > > "role": "Director" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:16356700" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Den Lille Skole", > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0088:5798009883735" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Fredericiavej", > > "locality": "Helsingør", > > "code": "3000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@dls.dk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Software licence", > > "price": "150.00", > > "unit": "item" > > }, > > "sum": "3000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "25.0%" > > } > > ], > > "total": "3000.00" > > } > > ], > > "ordering": { > > "purchases": [ > > { > > "code": "5002701" > > } > > ] > > }, > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "amount": "3750.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > }, > > "totals": { > > "sum": "3000.00", > > "total": "3000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "3000.00", > > "percent": "25.0%", > > "amount": "750.00" > > } > > ], > > "amount": "750.00" > > } > > ], > > "sum": "750.00" > > }, > > "tax": "750.00", > > "total_with_tax": "3750.00", > > "payable": "3750.00" > > } > > } > > ``` > > > [accordion] Example B2B invoice > > > > In this example, we're issuing a B2B invoice from a Danish supplier to another Danish business. > > > > Notice: > > > > * both parties are identified by their **CVR number** as the GOBL `tax_id.code`; the addon derives each party's `DK:CVR` endpoint from it, > > * the payment instructions describe a Danish domestic bank transfer (UNTDID payment means `42`): the account number plus the four-digit bank registration (clearing) code the OIOUBL rules require, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Denmark B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0043", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": 10, > > "item": { > > "name": "Consulting services", > > "price": "800.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "other", > > "ext": { > > "untdid-payment-means": "42" > > }, > > "credit_transfer": [ > > { > > "number": "1234567890", > > "clearing": "1234" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DK", > > "$addons": [ > > "eu-en16931-v2017", > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0043", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "16356700" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:16356700" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "12345674" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:12345674" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Consulting services", > > "price": "800.00", > > "unit": "h" > > }, > > "sum": "8000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "25.0%" > > } > > ], > > "total": "8000.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "amount": "10000.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "other", > > "credit_transfer": [ > > { > > "number": "1234567890", > > "clearing": "1234" > > } > > ], > > "ext": { > > "untdid-payment-means": "42" > > } > > } > > }, > > "totals": { > > "sum": "8000.00", > > "total": "8000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "8000.00", > > "percent": "25.0%", > > "amount": "2000.00" > > } > > ], > > "amount": "2000.00" > > } > > ], > > "sum": "2000.00" > > }, > > "tax": "2000.00", > > "total_with_tax": "10000.00", > > "payable": "10000.00" > > } > > } > > ``` > > > [accordion] Example zero-rated invoice > > > > In this example, we're issuing a domestic invoice for a zero-rated supply — newspapers, one of the few zero-rated categories under Momslovens §34. > > > > Notice: > > > > * the line's tax uses the `zero` VAT key: the supply is taxable at 0% with input VAT recovery, unlike an exempt supply, > > * OIOUBL has **no exempt category** on the wire, so genuinely exempt supplies (healthcare, education, financial services) cannot be invoiced through NemHandel as "exempt" — the addon rejects the `exempt` key and zero-rated is the closest the format supports, and, > > * everything else works exactly like the standard B2B invoice. > > > > ```json Denmark zero rate invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0045", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": 250, > > "item": { > > "name": "Morgenavisen daily newspaper", > > "price": "12.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DK", > > "$addons": [ > > "eu-en16931-v2017", > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0045", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "16356700" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:16356700" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "12345674" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:12345674" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "250", > > "item": { > > "name": "Morgenavisen daily newspaper", > > "price": "12.00", > > "unit": "item" > > }, > > "sum": "3000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%" > > } > > ], > > "total": "3000.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "amount": "3000.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > }, > > "totals": { > > "sum": "3000.00", > > "total": "3000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "base": "3000.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "3000.00", > > "payable": "3000.00" > > } > > } > > ``` > > > [accordion] Example reverse charge invoice > > > > In this example, we're issuing a domestic reverse charge invoice for copper scrap — one of the supplies (along with certain metals and electronics) where Denmark shifts the VAT liability to the buyer. > > > > Notice: > > > > * the line's tax uses the `reverse-charge` VAT key, so no VAT is charged and the customer accounts for it instead, > > * the `cef-vatex` extension carries the exemption reason code `VATEX-EU-AE` (reverse charge), which OIOUBL maps to its reverse-charge tax category, and, > > * both parties are Danish businesses identified by their CVR numbers. > > > > ```json Denmark reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0046", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": 500, > > "item": { > > "name": "Copper scrap", > > "price": "45.00", > > "unit": "kg" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DK", > > "$addons": [ > > "eu-en16931-v2017", > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0046", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "16356700" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:16356700" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "12345674" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:12345674" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "500", > > "item": { > > "name": "Copper scrap", > > "price": "45.00", > > "unit": "kg" > > }, > > "sum": "22500.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "22500.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "amount": "22500.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > }, > > "totals": { > > "sum": "22500.00", > > "total": "22500.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > }, > > "base": "22500.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "22500.00", > > "payable": "22500.00" > > } > > } > > ``` > > > [accordion] Example intra-community invoice > > > > In this example, we're invoicing a VAT-registered business in another EU member state — an intra-Community supply of goods, zero-rated under Momslovens §34. > > > > Notice: > > > > * the line's tax uses the `intra-community` VAT key with the `VATEX-EU-IC` exemption reason code, > > * the customer carries its own country's tax ID (a German VAT number here) and a **GLN endpoint** so NemHandel can route the document, and, > > * no Danish VAT is charged; the customer self-accounts for the acquisition in their own country. > > > > ```json Denmark intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0047", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Rheinwerk Handel GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "endpoints": [ > > { > > "uri": "GLN:4304984000008" > > } > > ], > > "addresses": [ > > { > > "num": "18", > > "street": "Speditionstraße", > > "locality": "Düsseldorf", > > "code": "40221", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnung@rheinwerk-handel.de" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": 40, > > "item": { > > "name": "Industrial valves", > > "price": "320.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DK", > > "$addons": [ > > "eu-en16931-v2017", > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0047", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "16356700" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:16356700" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Rheinwerk Handel GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0088:4304984000008" > > } > > ], > > "addresses": [ > > { > > "num": "18", > > "street": "Speditionstraße", > > "locality": "Düsseldorf", > > "code": "40221", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnung@rheinwerk-handel.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "40", > > "item": { > > "name": "Industrial valves", > > "price": "320.00", > > "unit": "item" > > }, > > "sum": "12800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "12800.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "amount": "12800.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > }, > > "totals": { > > "sum": "12800.00", > > "total": "12800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > }, > > "base": "12800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "12800.00", > > "payable": "12800.00" > > } > > } > > ``` > > > [accordion] Example export invoice > > > > In this example, we're invoicing a customer outside the EU — an export of goods, zero-rated under Momslovens §34. > > > > Notice: > > > > * the line's tax uses the `export` VAT key with the `VATEX-EU-G` exemption reason code, > > * the customer is a Norwegian business with its organisation number as tax ID and a GLN endpoint for routing, and, > > * no Danish VAT is charged on exports outside the EU. > > > > ```json Denmark export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0048", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Fjellvann Utstyr AS", > > "tax_id": { > > "country": "NO", > > "code": "987654325" > > }, > > "endpoints": [ > > { > > "uri": "GLN:7080000000000" > > } > > ], > > "addresses": [ > > { > > "num": "7", > > "street": "Storgata", > > "locality": "Oslo", > > "code": "0155", > > "country": "NO" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@fjellvann.no" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": 40, > > "item": { > > "name": "Industrial valves", > > "price": "320.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DK", > > "$addons": [ > > "eu-en16931-v2017", > > "dk-oioubl-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0048", > > "issue_date": "2026-08-01", > > "currency": "DKK", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "16356700" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:16356700" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Fjellvann Utstyr AS", > > "tax_id": { > > "country": "NO", > > "code": "987654325MVA" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0088:7080000000000" > > } > > ], > > "addresses": [ > > { > > "num": "7", > > "street": "Storgata", > > "locality": "Oslo", > > "code": "0155", > > "country": "NO" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@fjellvann.no" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "40", > > "item": { > > "name": "Industrial valves", > > "price": "320.00", > > "unit": "item" > > }, > > "sum": "12800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "12800.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "amount": "12800.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DK5000400440116243" > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > }, > > "totals": { > > "sum": "12800.00", > > "total": "12800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > }, > > "base": "12800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "12800.00", > > "payable": "12800.00" > > } > > } > > ``` > > > [accordion] Example credit note > > > > In this example, we're issuing a credit note that corrects a previously issued invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, which OIOUBL maps to its own CreditNote document (type code `381`), > > * the `preceding` array references the original invoice by its `series`, `code`, and `issue_date`, along with a `reason`, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Denmark credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "dk-oioubl-v2" > > ], > > "type": "credit-note", > > "series": "SAMPLE", > > "code": "0044", > > "issue_date": "2026-08-10", > > "currency": "DKK", > > "preceding": [ > > { > > "series": "SAMPLE", > > "code": "0043", > > "issue_date": "2026-08-01", > > "reason": "Ordered quantity reduced" > > } > > ], > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": 2, > > "item": { > > "name": "Consulting services", > > "price": "800.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DK", > > "$addons": [ > > "eu-en16931-v2017", > > "dk-oioubl-v2" > > ], > > "type": "credit-note", > > "series": "SAMPLE", > > "code": "0044", > > "issue_date": "2026-08-10", > > "currency": "DKK", > > "preceding": [ > > { > > "issue_date": "2026-08-01", > > "series": "SAMPLE", > > "code": "0043", > > "reason": "Ordered quantity reduced" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Nordlys Software ApS", > > "tax_id": { > > "country": "DK", > > "code": "16356700" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "16356700" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:16356700" > > } > > ], > > "addresses": [ > > { > > "num": "24", > > "street": "Vesterbrogade", > > "locality": "København V", > > "code": "1620", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@nordlys.dk" > > } > > ] > > }, > > "customer": { > > "name": "Havnens Byggemarked A/S", > > "tax_id": { > > "country": "DK", > > "code": "12345674" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "12345674" > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0184:12345674" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Havnegade", > > "locality": "Aarhus C", > > "code": "8000", > > "country": "DK" > > } > > ], > > "emails": [ > > { > > "addr": "faktura@havnens-byggemarked.dk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Consulting services", > > "price": "800.00", > > "unit": "h" > > }, > > "sum": "1600.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "25.0%" > > } > > ], > > "total": "1600.00" > > } > > ], > > "totals": { > > "sum": "1600.00", > > "total": "1600.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "1600.00", > > "percent": "25.0%", > > "amount": "400.00" > > } > > ], > > "amount": "400.00" > > } > > ], > > "sum": "400.00" > > }, > > "tax": "400.00", > > "total_with_tax": "2000.00", > > "payable": "2000.00" > > } > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇩🇰 Invopop resources for Denmark > > | | | > | - | - | > | Compliance | [Invoicing compliance in Denmark](/compliance/denmark) [Compliance timeline](/timelines/denmark) | > | Apps | [Denmark](/apps/denmark) [Peppol](/apps/peppol) | > | Guides | [Supplier registration guide](/guides/dk-nemhandel-supplier) [Issuing invoices guide](/guides/dk-nemhandel) [Receiving invoices guide](/guides/dk-nemhandel-receiving) [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-denmark) | > | FAQ | [Denmark FAQ](/faq/denmark) | > | GOBL | [Danish OIOUBL 2.1 Addon](https://docs.gobl.org/addons/dk-oioubl-v2) [Denmark Tax Regime](https://docs.gobl.org/regimes/dk) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.dk.oioubl](https://github.com/invopop/gobl.dk.oioubl) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Denmark app → # Documentos fiscais eletrônicos Brazil Source: https://docs.invopop.com/apps/documentos-fiscais-electronicos-brazil Send NF-e, NFC-e & NFS-e documents to the tax authorities in Brazil via PlugNotas. > [tab] Description > > > [card] [Register suppliers](/guides/br-dfe-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/br-dfe) > > > > Issuing guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C | > | Country | [Brazil](/compliance/brazil) | > > Brazil has a variety of electronic tax documents that must be issued in different cases for various tax purposes. These include service invoices (NFS-e), product invoices (NF-e), and consumer invoices (NFC-e). Each document type is subject to variations from state to state and municipality to municipality, with each jurisdiction applying its own rules, formats, and APIs for issuing fiscal documents. > > Invopop's **Documentos Fiscais Eletrônicos** app provides a unified way to issue fiscal documents across all Brazilian states and over 2000 municipalities using GOBL. You can find [the full list of supported municipalities here](https://tecnospeed.com.br/plugdfe/nfse/#homologacao). > > Invopop has partnered with [PlugNotas](https://tecnospeed.com.br/plugdfe/) to issue electronic fiscal documents in Brazil. The integration handles the complexity of different state and municipal requirements, allowing you to issue documents through a single unified interface. > > **Key features** > > * **Workflow automation:** This app provides automated workflows for issuing NFS-e, NF-e, and NFC-e documents through the Brazilian tax authorities. > * **Multi-jurisdiction support:** Unified interface for issuing documents across all Brazilian states and over 2000 municipalities, each with their own rules and formats. > * **Supplier registration:** Secure supplier onboarding process with certificate-based authentication for issuing documents on behalf of suppliers. > * **Legally compliant documents:** Documents are generated with all mandatory fields and tax calculations as required by Brazilian fiscal legislation. > * **PlugNotas integration:** Direct integration with PlugNotas, an authorized technology provider for Brazilian electronic fiscal documents. > * **NFS-e, NF-e, and NFC-e support:** Issue invoices for service, B2B product, and consumer transactions. > > Make sure to check out our [Supplier registration guide](/guides/br-dfe-supplier) for onboarding suppliers, and the [Issuing invoices guide](/guides/br-dfe) for issuing documents and setting up your workflows. > > ## FAQ > > Invoicing questions > > > [accordion] What type of Documentos Fiscais does Invopop support? > > > > Invopop supports NF-e, NFS-e and NFC-e documents. Transport documents (MDF-e and CT-e) are not currently supported. > > > [accordion] Where can I find the mapping of GOBL fields to DF-e documents? > > > > For further details on how GOBL prepares data for conversion, see: > > > > * The [Brazil Regime GOBL Reference](https://docs.gobl.org/regimes/br). > > * The [NFS-e Addon GOBL Reference](https://docs.gobl.org/addons/br-nfse-v1). > > * The [NF-e Addon GOBL Reference](https://docs.gobl.org/addons/br-nfe-v4). > > > [accordion] Can I issue an NF-e to a foreign customer? > > > > Yes. A foreign customer that does not have a Brazilian CNPJ or CPF can be identified by providing a country-qualified `identity` (e.g. a passport number) on the customer party. The `identity.country` must be an ISO country code other than `BR`. > > > > When a foreign customer is used: > > > > * the `tax_id` block can be omitted, > > * the customer address `country` is required and must not be `BR` (it is auto-filled from the identity country if missing), > > * the `state` field and the `br-ibge-municipality` extension are not required, as they only apply to Brazilian parties. > > > > Example customer block for a foreign buyer: > > > > ```json theme={"system"} > > "customer": { > > "name": "Acme International Inc.", > > "identities": [ > > { > > "key": "passport", > > "country": "US", > > "code": "US-FOREIGN-123" > > } > > ], > > "addresses": [ > > { > > "num": "500", > > "street": "Market Street", > > "locality": "San Francisco", > > "code": "94105", > > "country": "US" > > } > > ] > > } > > ``` > > > [accordion] What's the workflow for issuing NF-e invoices? > > > > Build a GOBL invoice with the `br-nfe-v4` addon, send it through the Issue NF-e workflow. Invopop signs with the supplier's A1 cert, transmits to the issuer's state SEFAZ, receives the protocolo de autorização, and exposes the authorized XML and DANFE PDF. > > > [accordion] How do I retrieve the NF-e access key and authorization protocol? > > > > After a successful issuance, SEFAZ returns two identifiers that Invopop stores as envelope stamps on the silo entry under `data.head.stamps`: > > > > * `sefaz-key` — the 44-digit NF-e access key (*chave de acesso*) that uniquely identifies the document. > > * `sefaz-auth` — the authorization protocol number (*número do protocolo*) confirming SEFAZ acceptance. > > > > Use them to reconcile your records, build the DANFE QR code, or query SEFAZ directly. > > > > ```json theme={"system"} > > "stamps": [ > > { "provider": "sefaz-key", "value": "35240114200166000187550010000000071123456789" }, > > { "provider": "sefaz-auth", "value": "135240000123456" } > > ] > > ``` > > > [accordion] What are the required and optional fields for NF-e invoices in Brazil? > > > > NF-e (`br-nfe-v4`) covers electronic invoices for the circulation of **goods** in Brazil. It maps to two fiscal models: > > > > * **Model 55 — NF-e**: B2B or business-to-government transactions > > * **Model 65 — NFC-e**: B2C consumer transactions (simplified) > > > > #### Notation > > > > * ✅ **Required** — validation will fail if missing > > * ⬜ **Optional** — can be omitted > > * 🔧 **Auto-normalized** — set automatically if not provided > > > > ### Invoice Header > > > > | Field | Required | Notes | > > | - | - | - | > > | `$schema` | auto | `https://gobl.org/draft-0/bill/invoice` | > > | `$addons` | ✅ | `["br-nfe-v4"]` | > > | `$tags` | ⬜ | Use `["simplified"]` for NFC-e (model 65) | > > | `uuid` | ⬜ | Auto-generated if absent | > > | `type` | ⬜ | Defaults to `standard` | > > | `series` | ✅ | Pattern: `^(?:0\|[1-9]{1}[0-9]{0,2})$` | > > | `code` | ⬜ | Required to sign the document. | > > | `issue_date` | ✅ | ISO date, e.g. `"2024-11-15"` | > > | `currency` | ✅ | Must be `"BRL"` | > > | `tax` | ✅ | See Tax Extensions | > > | `notes` | ✅ | At least one note with `key: "reason"` required | > > | `lines` | ✅ | At least one line item | > > | `charges` | ⬜ | Document-level charges | > > | `discounts` | ⬜ | Document-level discounts | > > | `supplier` | ✅ | See Supplier | > > | `customer` | ✅ model 55 ⬜ model 65 | See Customer | > > | `payment` | ✅ if not fully paid | See Payment | > > | `ordering` | ⬜ | | > > | `delivery` | ⬜ | | > > > > ### Tax Extensions > > > > | Extension | Required | Values | > > | - | - | - | > > | `tax.ext.br-nfe-model` | ✅ | `"55"` (NF-e, B2B) or `"65"` (NFC-e, B2C) | > > | `tax.ext.br-nfe-presence` | ✅ | See table below. Restricted by model. | > > | `tax.ext.br-nfe-regime` | ⬜ | `"1"`=Simples Nacional, `"2"`=Simples Nacional Excess, `"3"`=Normal | > > | `tax.ext.br-nfe-fiscal-incentive` | ⬜ | `"1"`=Has incentive, `"2"`=No incentive | > > > > **`br-nfe-presence` allowed values:** > > > > | Code | Description | NF-e (55) | NFC-e (65) | > > | - | - | - | - | > > | `0` | N/A | ✅ | ❌ | > > | `1` | In-person | ✅ | ✅ | > > | `2` | Internet | ✅ | ❌ | > > | `3` | Tele-service | ✅ | ❌ | > > | `4` | Home delivery | ❌ | ✅ | > > | `5` | Off-site | ✅ | ❌ | > > | `9` | Others | ✅ | ❌ | > > > > ```json theme={"system"} > > "tax": { > > "ext": { > > "br-nfe-model": "55", > > "br-nfe-presence": "1" > > } > > } > > ``` > > > > ### Notes > > > > At least one note with `key: "reason"` is **required**. It maps to the NF-e `natOp` field (nature of the operation). > > > > ### Supplier > > > > | Field | Required | Notes | > > | - | - | - | > > | `name` | ✅ | | > > | `tax_id.country` | ✅ | `"BR"` | > > | `tax_id.code` | ✅ | CNPJ (14 digits) or CPF (11 digits), Mod11 validated | > > | `identities[].key: "br-nfe-state-reg"` | ✅ | State Registration (Inscrição Estadual) | > > | `addresses` | ✅ | At least one | > > | `addresses[].country` | ✅ 🔧 | ISO country code. Auto-filled from `tax_id.country` if missing. | > > | `ext.br-ibge-municipality` | ✅ | 7-digit IBGE municipality code | > > > > ### Customer (Model 55 — required, Model 65 — optional) > > > > Brazilian customers must provide a Brazilian `tax_id`. Foreign customers can issue an NF-e by providing a country-qualified `identity` (e.g. a passport number) instead of a `tax_id`. > > > > | Field | Required | Notes | > > | - | - | - | > > | `tax_id.country` | ✅ for BR customers | `"BR"` | > > | `tax_id.code` | ✅ when `tax_id` is present | CNPJ or CPF | > > | `identities[]` with non-BR `country` | ✅ for foreign customers without a `tax_id` | E.g. `{ "key": "passport", "country": "US", "code": "US-FOREIGN-123" }` | > > | `addresses` | ✅ | | > > | `addresses[].country` | ✅ 🔧 | ISO country code. Auto-filled from the `tax_id` country or the first identity that declares a country. | > > | `addresses[].state` | ✅ for BR customers | Must be a valid Brazilian state acronym (e.g. `SP`). Not required for foreign customers. | > > | `ext.br-ibge-municipality` | ✅ for BR customers | 7-digit IBGE code. Not required for foreign customers. | > > > > ### Line items > > > > Required tax categories per line: `ICMS`, `PIS`, `COFINS`. `IPI` is optional. > > > > | Extension | Required | Notes | > > | - | - | - | > > | `line.ext.br-nfe-cfop` | ✅ model 55 ⬜ model 65 | CFOP (Código Fiscal de Operações e Prestações) code identifying the fiscal nature of the operation, e.g. `"5102"` for in-state resale. Required on every line of an NF-e (model 55). | > > > > Optional item identities: `item.identities[].key: "ncm" | "gtin" | "gtin+taxable"`. > > > > ### Payment > > > > Required when the invoice is not fully paid. Must include `payment.instructions.key`. Payment-means mapping is auto-set unless `key: "other"`. > > > [accordion] What's the workflow for issuing NFS-e invoices? > > > > Build a GOBL invoice with the `br-nfse-v1` addon and send it through the Issue NFS-e workflow. Until the federal NFS-e (DPS) takes over in 2026, Invopop routes per-municipality — the workflow handles the underlying API differences transparently. > > > [accordion] How do I configure Chargebee or Stripe imports for Brazilian invoices with ISS? > > > > Billing platforms like Chargebee and Stripe are not aware of ISS particularities and tend to wrongly treat ISS as a typical tax included in the price. This causes `invalid-prices-include` errors during import because that pricing model is not compatible with how ISS works for NFS-e. > > > > The correct setup is: > > > > 1. **Do not configure ISS as a tax** in your billing platform (Chargebee, Stripe, etc.). > > 2. Prices in your billing platform should already be the **final public prices** with ISS embedded. > > 3. Add a **Modify Silo Entry** step to your import workflow that injects the ISS tax with the desired percentage into the GOBL invoice. > > > > This workflow approach ensures ISS is properly added to the GOBL invoice as an informative tax category before submission to the Brazilian tax authority, while avoiding the pricing conflicts that occur when billing platforms try to handle ISS as a standard tax. > > > [accordion] What are the required and optional fields for NFS-e invoices in Brazil? > > > > NFS-e (`br-nfse-v1`) covers electronic service invoices (*Notas Fiscais de Serviços Eletrônicas*) in Brazil. Service invoices are regulated at the **municipal** level, so several fields carry municipality-specific codes. The addon implements the ABRASF national standard (v2.04). > > > > ### Invoice Header > > > > | Field | Required | Notes | > > | - | - | - | > > | `$addons` | ✅ | `["br-nfse-v1"]` | > > | `series` | ✅ | Any non-empty string | > > | `code` | ⬜ | Required to sign the document | > > | `issue_date` | ✅ | ISO date | > > | `currency` | ✅ | Must be `"BRL"` | > > | `lines` | ✅ | At least one line item | > > | `charges` | ❌ | Not supported by NFS-e | > > | `discounts` | ❌ | Not supported by NFS-e | > > | `supplier` | ✅ | See Supplier | > > > > ### Supplier > > > > | Field | Required | Notes | > > | - | - | - | > > | `name` | ✅ | | > > | `tax_id.country` | ✅ | `"BR"` | > > | `tax_id.code` | ✅ | CNPJ or CPF | > > | `identities[].key: "br-nfse-municipal-reg"` | ✅ | Municipal Registration | > > | `addresses` | ✅ | | > > | `ext.br-ibge-municipality` | ✅ | 7-digit IBGE municipality code | > > | `ext.br-nfse-simples` | ✅ | `"1"` opt-in, `"2"` opt-out | > > | `ext.br-nfse-fiscal-incentive` | ✅ | `"1"` has incentive, `"2"` does not (default) | > > | `ext.br-nfse-special-regime` | ⬜ | Special regime values | > > > > ### Customer > > > > Optional. When provided, `ext.br-ibge-municipality` is required if addresses are present. > > > > ### Line items > > > > Required item extension: `item.ext.br-nfse-service` (municipality service code). > > > > Optional item extensions: `item.ext.br-nfse-cnae`, plus the all-or-none trio `item.ext.br-nfse-{operation,tax-status,tax-class}`. > > > > Required tax category per line: `ISS`. ISS extension `taxes[ISS].ext.br-nfse-iss-liability` defaults to `"1"` (Liable). > > Registering supplier questions > > > [accordion] How do I onboard a new supplier in Brazil? > > > > Upload the supplier's A1 digital certificate (PFX or P12) plus password through the registration workflow. Invopop validates it against the relevant SEFAZ or municipal endpoint and activates the supplier for issuing. > > > [accordion] How are supplier credentials stored in Invopop for Brazil? > > > > A1 certificates (X.509 + private key, exported as PKCS#12) and their passwords are stored encrypted. Invopop uses them to sign documents and authenticate to the relevant SEFAZ or municipal endpoint on the supplier's behalf. > > > [accordion] How do I register a supplier with NF-e? > > > > Upload the A1 certificate plus its password through the Register Supplier workflow, providing the supplier's CNPJ and Inscrição Estadual. Invopop validates the certificate against SEFAZ and activates the supplier for the corresponding UF. > > > [accordion] What certificates does NF-e require to authenticate a supplier? > > > > An ICP-Brasil A1 certificate issued to the supplier's CNPJ (or CPF for individuals). Format: PKCS#12 (.pfx/.p12) containing the X.509 cert and matching private key. Validity is typically 1 year. > > > [accordion] How do I register a supplier with NFS-e? > > > > Upload the supplier's A1 certificate plus the Inscrição Municipal for the relevant city. The federal DPS (2026) consolidates registration; until then, separate enrollment per municipality may be required for high-volume issuance. > > > [accordion] What certificates does NFS-e require to authenticate a supplier? > > > > Most municipalities accept the same ICP-Brasil A1 certificate used for NF-e. A few require A3 (smartcard/USB token) — Invopop currently supports A1 only. > > More answers in our [Brazil FAQ](/faq/brazil) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send NFS-e to Prefeitura > > > > 5 > > Send NFS-e in Brazil via PlugNotas. > > > [card] Send NF-e to SEFAZ > > > > 5 > > Send NF-e in Brazil via PlugNotas. > > > [card] Send NFC-e to SEFAZ > > > > 5 > > Send NFC-e in Brazil via PlugNotas > > > [card] Register supplier in Brazil > > > > 100/mo > > Register suppliers to issue electronic fiscal documents on their behalf. > > > [card] Unregister supplier in Brazil > > > > Remove a supplier's registration so it can no longer issue electronic fiscal documents from this workspace. > > > [card] Cancel NFS-e with Prefeitura > > > > Cancel a previously sent NFS-e invoice via PlugNotas. The cancellation reason and code can be set on the workflow step configuration or overridden per job using the `nfe-br-cancel-reason` and `nfe-br-cancel-code` arguments. > > > [card] Cancel NF-e with SEFAZ > > > > Cancel a previously sent NF-e invoice via PlugNotas. The cancellation reason can be set on the workflow step or overridden per job using the `nfe-br-cancel-reason` argument. > > > [card] Cancel NFC-e with SEFAZ > > > > Cancel a previously sent NFC-e invoice via PlugNotas. The cancellation reason can be set on the workflow step or overridden per job using the `nfe-br-cancel-reason` argument. > > > [card] Look up municipality codes > > > > Fill in missing IBGE municipality codes (`br-ibge-municipality`) on invoices and parties from each party's postal code (CEP). Values already set are never overridden. > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > Issuing document workflows: > > > [accordion] DF-e issue service invoice (NFS-e) > > > > This workflow automates NFS-e service invoice processing and tax compliance in Brazil. > > > > ```json Issue NFS-e invoice workflow theme={"system"} > > { > > "name": "Issue NFS-e invoice", > > "description": "Issue an NFS-e service invoice via PlugNotas", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "d1c7bde0-b651-11f0-b6c3-efa5610a4723", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "dbcb8600-b651-11f0-b6c3-efa5610a4723", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · NFS-e · 1", > > "config": { > > "name": "NFS-e", > > "padding": 1, > > "start": 1 > > } > > }, > > { > > "id": "e8eba950-b651-11f0-b6c3-efa5610a4723", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "ec64f190-b651-11f0-b6c3-efa5610a4723", > > "name": "Send NFS-e to Prefeitura", > > "provider": "nfe-br.send" > > }, > > { > > "id": "eecc7bb0-b651-11f0-b6c3-efa5610a4723", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "f9195ac0-b651-11f0-b6c3-efa5610a4723", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-service-invoice) > > > [accordion] DF-e issue product invoice (NF-e) > > > > This workflow automates NF-e product invoice processing and tax compliance in Brazil. > > > > ```json Issue NF-e invoice workflow theme={"system"} > > { > > "name": "Issue NF-e invoice", > > "description": "Issue an NF-e product invoice via PlugNotas", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ddfb8e79-8260-4ecd-bf59-115e837cd135", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "169c4b15-83ae-4242-b0c9-4e4915d15361", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · NF-e · 1", > > "config": { > > "name": "NF-e", > > "padding": 1, > > "start": 1 > > } > > }, > > { > > "id": "283dae9e-ea44-46c0-8f63-5af48ec5f388", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "12bd4677-dc3c-4043-85ca-54f8d034803d", > > "name": "Send NF-e to SEFAZ", > > "provider": "nfe-br.send.nfe" > > }, > > { > > "id": "999ad559-1040-4e69-98c9-93e62c8833d4", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "5c38f3d4-1338-4990-a248-0822c5081124", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-product-invoice) > > > [accordion] DF-e issue consumer invoice (NFC-e) > > > > This workflow automates NFC-e consumer invoice processing and tax compliance in Brazil. > > > > ```json Issue NFC-e invoice workflow theme={"system"} > > { > > "name": "Issue NFC-e invoice", > > "description": "Issue an NFC-e consumer invoice via PlugNotas", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "93769100-b652-11f0-a7d9-bfad358c6464", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "971c6780-b652-11f0-a7d9-bfad358c6464", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · NFC-e · 1", > > "config": { > > "name": "NFC-e", > > "padding": 1, > > "start": 1 > > } > > }, > > { > > "id": "9f965b50-b652-11f0-a7d9-bfad358c6464", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "8693f670-b653-11f0-a7d9-bfad358c6464", > > "name": "Send NFC-e to SEFAZ", > > "provider": "nfe-br.send.nfce" > > }, > > { > > "id": "a9dc0e70-b652-11f0-a7d9-bfad358c6464", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "b0f7f8e0-b652-11f0-a7d9-bfad358c6464", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-consumer-invoice) > > Cancelling document workflows: > > > [accordion] DF-e cancel service invoice (NFS-e) > > > > This workflow cancels a previously sent NFS-e invoice in Brazil. > > > > ```json Cancel NFS-e invoice workflow theme={"system"} > > { > > "name": "Cancel NFS-e invoice", > > "description": "Cancel an NFS-e service invoice via PlugNotas", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "5e63dc30-535e-11f1-aba1-0fa2408cece2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "71238320-535e-11f1-aba1-0fa2408cece2", > > "name": "Cancel NFS-e with Prefeitura", > > "provider": "nfe-br.cancel.nfse" > > }, > > { > > "id": "65aa8020-535e-11f1-aba1-0fa2408cece2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "6b3199c0-535e-11f1-aba1-0fa2408cece2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-cancel-nfse) > > > [accordion] DF-e cancel product invoice (NF-e) > > > > This workflow cancels a previously sent NF-e invoice in Brazil. > > > > ```json Cancel NF-e invoice workflow theme={"system"} > > { > > "name": "Cancel NF-e invoice", > > "description": "Cancel an NF-e product invoice via PlugNotas", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "7b40e24a-0c51-4462-b3e9-d2d20d424a0d", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "834e52d6-d50a-4340-9ca6-f07557aa94d5", > > "name": "Cancel NF-e with SEFAZ", > > "provider": "nfe-br.cancel.nfe" > > }, > > { > > "id": "ddfb8e79-8260-4ecd-bf60-115e837cd135", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "169c4b15-83ae-4243-b0c9-4e4915d15361", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-cancel-nfe) > > > [accordion] DF-e cancel consumer invoice (NFC-e) > > > > This workflow cancels a previously sent NFC-e invoice in Brazil. > > > > ```json Cancel NFC-e invoice workflow theme={"system"} > > { > > "name": "Cancel NFC-e invoice", > > "description": "Cancel an NFC-e consumer invoice via PlugNotas", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "5e63dc30-535e-11f1-aba1-0fa2408cece2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "71238320-535e-11f1-aba1-0fa2408cece2", > > "name": "Cancel NFC-e with SEFAZ", > > "provider": "nfe-br.cancel.nfce" > > }, > > { > > "id": "65aa8020-535e-11f1-aba1-0fa2408cece2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "6b3199c0-535e-11f1-aba1-0fa2408cece2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-cancel-nfce) > > Supplier workflows: > > > [accordion] DF-e supplier post-registration > > > > This workflow marks a supplier as registered after successful onboarding. > > > > ```json Brazil supplier post-registration workflow theme={"system"} > > { > > "name": "Brazil supplier post-registration", > > "description": "Mark a supplier as registered", > > "schema": "org/party", > > "steps": [ > > { > > "id": "ec727530-b648-11f0-8ddf-b9fd6fa99d97", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-postregistration) > > > [accordion] DF-e register supplier > > > > This workflow registers a supplier so it can issue electronic fiscal documents from this workspace. > > > > ```json NFC/NFS-e register supplier workflow theme={"system"} > > { > > "name": "NFC/NFS-e register supplier", > > "description": "Register a supplier to issue NFC/NFS-e in Brazil", > > "schema": "org/party", > > "steps": [ > > { > > "id": "68e5abd0-b64b-11f0-8ddf-b9fd6fa99d97", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "6f0a6500-b64b-11f0-8ddf-b9fd6fa99d97", > > "name": "Register supplier in Brazil", > > "provider": "nfe-br.register" > > }, > > { > > "id": "71918510-b64b-11f0-8ddf-b9fd6fa99d97", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > } > > ], > > "rescue": [ > > { > > "id": "7d127750-b64b-11f0-8ddf-b9fd6fa99d97", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-register-supplier) > > > [accordion] DF-e unregister supplier > > > > This workflow removes a supplier's registration so it can no longer issue electronic fiscal documents from this workspace. > > > > ```json NFC/NFS-e unregister supplier workflow theme={"system"} > > { > > "name": "NFC/NFS-e unregister supplier", > > "description": "Unregister a supplier from issuing NFC/NFS-e in Brazil", > > "schema": "org/party", > > "steps": [ > > { > > "id": "1b9bfd47-701c-4834-b219-dc58da8cf51b", > > "name": "Unregister supplier in Brazil", > > "provider": "nfe-br.unregister" > > }, > > { > > "id": "710ca93c-7f2e-4999-9209-ae358d5dbad0", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "2c1f292c-7bd5-4588-971f-8adeb12ade7a", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=br-dfe-unregister-supplier) > [tab] Documents > > Invoice documents: > > > [accordion] Example B2B service invoice (NFS-e) > > > > In this example, we're issuing a simple service invoice (NFS-e) from a Brazilian supplier to another Brazilian business customer. > > > > Notice: > > > > * we've added the [`br-nfse-v1`](https://docs.gobl.org/addons/br-nfse-v1) addon; this ensures the document will be validated using the NFS-e rules built into the [GOBL](https://docs.gobl.org) library, > > * extensions (`ext`) and identities have been used in multiple locations for fields whose values cannot be determined any other way, > > * ISS percentage is provided explicitly as it varies depending on the municipality and type of service, > > * there are no totals or calculations; all these will be made automatically when uploading, and, > > * make sure to process it with the "DF-e issue service invoice (NFS-e)" workflow created during setup. > > > > ```json B2B Service Invoice (NFS-e) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "br-nfse-v1" > > ], > > "series": "XXBR", > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfse-municipal-reg", > > "code": "45678901234567" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfse-simples": "1" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "15", > > "item": { > > "name": "Consultancy Services", > > "price": "100.00", > > "ext": { > > "br-nfse-cnae": "62.01-5-01", > > "br-nfse-service": "10.5" > > } > > }, > > "taxes": [ > > { > > "cat": "ISS", > > "percent": "15%" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BR", > > "$addons": [ > > "br-nfse-v1" > > ], > > "type": "standard", > > "series": "XXBR", > > "issue_date": "2026-07-08", > > "currency": "BRL", > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfse-municipal-reg", > > "code": "45678901234567" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfse-fiscal-incentive": "2", > > "br-nfse-simples": "1" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "15", > > "item": { > > "name": "Consultancy Services", > > "price": "100.00", > > "ext": { > > "br-nfse-cnae": "62.01-5-01", > > "br-nfse-service": "10.5" > > } > > }, > > "sum": "1500.00", > > "taxes": [ > > { > > "cat": "ISS", > > "percent": "15%", > > "ext": { > > "br-nfse-iss-liability": "1" > > } > > } > > ], > > "total": "1500.00" > > } > > ], > > "totals": { > > "sum": "1500.00", > > "total": "1500.00", > > "taxes": { > > "categories": [ > > { > > "code": "ISS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfse-iss-liability": "1" > > }, > > "base": "1500.00", > > "percent": "15%", > > "amount": "225.00" > > } > > ], > > "amount": "225.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1500.00", > > "payable": "1500.00" > > } > > } > > ``` > > > [accordion] Example B2B service invoice with RTC (NFS-e) > > > > In this example, we're issuing a simple service invoice (NFS-e) with the currently supported RTC (Tax Reform) fields. > > > > Notice the differences from the previous example: > > > > * we've set the [`br-nfse-operation`](https://docs.gobl.org/addons/br-nfse-v1#operation-indicator) extension, the [`br-nfse-tax-status`](https://docs.gobl.org/addons/br-nfse-v1#tax-status-code-cst) extension and the [`br-nfse-tax-class`](https://docs.gobl.org/addons/br-nfse-v1#tax-classification-code) extension at item level which will be used to determine the IBS and CBS taxes as part of the tax reform. > > > > ```json B2B Service Invoice (NFS-e) RTC theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "br-nfse-v1" > > ], > > "series": "XXBR", > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfse-municipal-reg", > > "code": "45678901234567" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfse-simples": "1" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "15", > > "item": { > > "name": "Consultancy Services", > > "price": "100.00", > > "ext": { > > "br-nfse-cnae": "62.01-5-01", > > "br-nfse-operation": "030101", > > "br-nfse-service": "10.5", > > "br-nfse-tax-class": "000001", > > "br-nfse-tax-status": "000" > > } > > }, > > "taxes": [ > > { > > "cat": "ISS", > > "percent": "15%" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BR", > > "$addons": [ > > "br-nfse-v1" > > ], > > "type": "standard", > > "series": "XXBR", > > "issue_date": "2026-07-08", > > "currency": "BRL", > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfse-municipal-reg", > > "code": "45678901234567" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfse-fiscal-incentive": "2", > > "br-nfse-simples": "1" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "15", > > "item": { > > "name": "Consultancy Services", > > "price": "100.00", > > "ext": { > > "br-nfse-cnae": "62.01-5-01", > > "br-nfse-operation": "030101", > > "br-nfse-service": "10.5", > > "br-nfse-tax-class": "000001", > > "br-nfse-tax-status": "000" > > } > > }, > > "sum": "1500.00", > > "taxes": [ > > { > > "cat": "ISS", > > "percent": "15%", > > "ext": { > > "br-nfse-iss-liability": "1" > > } > > } > > ], > > "total": "1500.00" > > } > > ], > > "totals": { > > "sum": "1500.00", > > "total": "1500.00", > > "taxes": { > > "categories": [ > > { > > "code": "ISS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfse-iss-liability": "1" > > }, > > "base": "1500.00", > > "percent": "15%", > > "amount": "225.00" > > } > > ], > > "amount": "225.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1500.00", > > "payable": "1500.00" > > } > > } > > ``` > > > [accordion] Example B2B product invoice (NF-e) > > > > In this example, we're issuing an extended product invoice (NF-e) from a Brazilian supplier to another Brazilian business customer. > > > > Notice: > > > > * we've added the [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addon without the `simplified` tag; this sets the [`br-nfe-model`](https://docs.gobl.org/addons/br-nfe-v4#model) extension to `55` (NF-e), > > * the customer is required for NF-e and must include a full address; Brazilian customers must declare the [`br-ibge-municipality`](https://docs.gobl.org/addons/br-nfe-v4#municipality-code) extension and a valid state, while foreign customers can be identified by a country-qualified `identity` (e.g. a passport) instead of a `tax_id`, > > * supplier and customer addresses must include a `country`; it is auto-filled from the party's tax ID (or first identity that declares a country) when omitted, > > * each line must include a [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) extension to classify the fiscal operation, > > * item identities carry the NCM product classification code (`cProd` in the NF-e XML) and the GTIN barcode (`cEAN`), > > * `item.ref` maps to the supplier's internal product code, and `item.unit` is converted to a UNECE unit code, > > * line `discounts` reduce the taxable base (`vDesc`); line `charges` with key `delivery` map to freight (`vFrete`) and key `insurance` to insurance value (`vSeg`), > > * `line.order` provides the line reference within the purchase order (`nItemPed`), > > * a line `notes` entry with key `goods` maps to per-item additional information (`infAdProd`), > > * `ordering.code` sets the purchase order number (`nPed` in `compra`) and `ordering.contracts[0].code` sets the contract number (`nCont`), > > * `delivery.receiver` sets a separate delivery address (`entrega`) when goods ship to a different location than the buyer's fiscal address, > > * the payment instructions key is set to `credit-transfer`, which causes the [`br-nfe-payment-means`](https://docs.gobl.org/addons/br-nfe-v4#payment-method) extension to be set automatically to `18` (transferência bancária), > > * a `general` note maps to complementary information (`infCpl`) in the NF-e XML, > > * tax percentages are provided explicitly as they vary depending on the state and type of goods, > > * there are no totals or calculations; all these will be made automatically when uploading, and, > > * make sure to process it with the "DF-e issue product invoice (NF-e)" workflow created during setup. > > > > ```json B2B Product Invoice (NF-e) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "br-nfe-v4" > > ], > > "series": "1", > > "issue_date": "2026-05-22", > > "tax": { > > "ext": { > > "br-nfe-model": "55", > > "br-nfe-presence": "2" > > } > > }, > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "12345678901234" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "2927408" > > } > > }, > > "ordering": { > > "code": "PED-2026-0547", > > "contracts": [ > > { > > "code": "CON-2026-015" > > } > > ] > > }, > > "delivery": { > > "receiver": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "1200", > > "street": "Avenida ACM", > > "locality": "Caminho das Árvores", > > "region": "Salvador", > > "state": "BA", > > "code": "41820-014", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "2927408" > > } > > } > > }, > > "lines": [ > > { > > "quantity": "10", > > "order": "1", > > "item": { > > "ref": "USB-C-2M", > > "name": "Cabo USB-C 2 metros", > > "unit": "piece", > > "price": "28.90", > > "identities": [ > > { > > "key": "ncm", > > "code": "85444290" > > }, > > { > > "key": "gtin", > > "code": "7891234567890" > > } > > ] > > }, > > "discounts": [ > > { > > "percent": "5%", > > "reason": "Desconto comercial" > > } > > ], > > "charges": [ > > { > > "key": "delivery", > > "amount": "15.00" > > }, > > { > > "key": "insurance", > > "amount": "5.00" > > } > > ], > > "notes": [ > > { > > "key": "goods", > > "text": "Cabo homologado para carregamento rápido." > > } > > ], > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "12.0%" > > }, > > { > > "cat": "PIS", > > "percent": "1.65%" > > }, > > { > > "cat": "COFINS", > > "percent": "7.60%" > > } > > ], > > "ext": { > > "br-nfe-cfop": "6102" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > } > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de Mercadorias" > > }, > > { > > "key": "general", > > "text": "Pedido nº 2026/0547." > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BR", > > "$addons": [ > > "br-nfe-v4" > > ], > > "type": "standard", > > "series": "1", > > "issue_date": "2026-05-22", > > "currency": "BRL", > > "tax": { > > "ext": { > > "br-nfe-model": "55", > > "br-nfe-operation-type": "1", > > "br-nfe-presence": "2", > > "br-nfe-purpose": "1" > > } > > }, > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "12345678901234" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfe-regime": "3" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "2927408" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "order": "1", > > "item": { > > "ref": "USB-C-2M", > > "name": "Cabo USB-C 2 metros", > > "identities": [ > > { > > "key": "ncm", > > "code": "85444290" > > }, > > { > > "key": "gtin", > > "code": "7891234567890" > > } > > ], > > "price": "28.90", > > "unit": "piece" > > }, > > "sum": "289.00", > > "discounts": [ > > { > > "reason": "Desconto comercial", > > "percent": "5%", > > "amount": "14.45" > > } > > ], > > "charges": [ > > { > > "key": "delivery", > > "amount": "15.00" > > }, > > { > > "key": "insurance", > > "amount": "5.00" > > } > > ], > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "12.0%", > > "ext": { > > "br-nfe-icms-cst": "00", > > "br-nfe-icms-origin": "0" > > } > > }, > > { > > "cat": "PIS", > > "percent": "1.65%", > > "ext": { > > "br-nfe-pis-cst": "01" > > } > > }, > > { > > "cat": "COFINS", > > "percent": "7.60%", > > "ext": { > > "br-nfe-cofins-cst": "01" > > } > > } > > ], > > "total": "294.55", > > "notes": [ > > { > > "key": "goods", > > "text": "Cabo homologado para carregamento rápido." > > } > > ], > > "ext": { > > "br-nfe-cfop": "6102" > > } > > } > > ], > > "ordering": { > > "code": "PED-2026-0547", > > "contracts": [ > > { > > "code": "CON-2026-015" > > } > > ] > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "br-nfe-payment-means": "18" > > } > > } > > }, > > "delivery": { > > "receiver": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "1200", > > "street": "Avenida ACM", > > "locality": "Caminho das Árvores", > > "region": "Salvador", > > "state": "BA", > > "code": "41820-014", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "2927408" > > } > > } > > }, > > "totals": { > > "sum": "294.55", > > "total": "294.55", > > "taxes": { > > "categories": [ > > { > > "code": "ICMS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-icms-cst": "00", > > "br-nfe-icms-origin": "0" > > }, > > "base": "294.55", > > "percent": "12.0%", > > "amount": "35.35" > > } > > ], > > "amount": "35.35" > > }, > > { > > "code": "PIS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-pis-cst": "01" > > }, > > "base": "294.55", > > "percent": "1.65%", > > "amount": "4.86" > > } > > ], > > "amount": "4.86" > > }, > > { > > "code": "COFINS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-cofins-cst": "01" > > }, > > "base": "294.55", > > "percent": "7.60%", > > "amount": "22.39" > > } > > ], > > "amount": "22.39" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "294.55", > > "payable": "294.55" > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de Mercadorias" > > }, > > { > > "key": "general", > > "text": "Pedido nº 2026/0547." > > } > > ] > > } > > ``` > > > [accordion] Example B2B product invoice for a Simples Nacional issuer (NF-e) > > > > In this example, we're issuing a product invoice (NF-e) from a supplier enrolled in the *Simples Nacional* tax regime. > > > > Notice the differences from the previous example: > > > > * the supplier declares its regime with the [`br-nfe-regime`](https://docs.gobl.org/addons/br-nfe-v4#tax-regime-code) extension set to `1` (*Simples Nacional*); `4` (*MEI*) behaves the same, while `2` (*Simples Nacional, Excess*) uses CST codes like the normal regime (`3`, the default), > > * each ICMS line carries the [`br-nfe-icms-csosn`](https://docs.gobl.org/addons/br-nfe-v4#icms-simples-nacional-status-code-csosn) extension (here `101`, taxed with credit permission) instead of the `br-nfe-icms-cst` code that normal-regime issuers use, > > * with CSOSN `101` the ICMS `percent` is not a charged tax: it represents the *Simples Nacional* credit rate (`pCredSN` in the NF-e XML) and the resulting amount becomes the credit value the buyer may take (`vCredICMSSN`), > > * CSOSN `101` transfers a tax credit and is only accepted when the customer is an ICMS taxpayer, so the customer includes a `br-nfe-state-reg` identity with its state registration number, > > * PIS and COFINS are still required on every line but are not levied per item under *Simples Nacional*, so they use the [`br-nfe-pis-cst`](https://docs.gobl.org/addons/br-nfe-v4#pis-tax-status-code-cst) and [`br-nfe-cofins-cst`](https://docs.gobl.org/addons/br-nfe-v4#cofins-tax-status-code-cst) extensions set to `49` (other operations) at a `0%` rate, > > * there are no totals or calculations; all these will be made automatically when uploading, and, > > * make sure to process it with the "DF-e issue product invoice (NF-e)" workflow created during setup. > > > > ```json B2B Product Invoice — Simples Nacional (NF-e) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "br-nfe-v4" > > ], > > "series": "1", > > "tax": { > > "ext": { > > "br-nfe-presence": "1" > > } > > }, > > "supplier": { > > "name": "Marcenaria Arte & Design ME", > > "tax_id": { > > "country": "BR", > > "code": "21586733000120" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "0623458900" > > } > > ], > > "addresses": [ > > { > > "num": "85", > > "street": "Rua dos Artesãos", > > "locality": "Savassi", > > "region": "Minas Gerais", > > "state": "MG", > > "code": "30140-071", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contato@artedesign.com.br" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3106200", > > "br-nfe-regime": "1" > > } > > }, > > "customer": { > > "name": "Comércio de Móveis Paulista Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "33944792000101" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "112233445566" > > } > > ], > > "addresses": [ > > { > > "num": "742", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01310-100", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308" > > } > > }, > > "lines": [ > > { > > "quantity": "5", > > "item": { > > "name": "Mesa de Jantar em Madeira Maciça", > > "price": "900.00", > > "identities": [ > > { > > "key": "ncm", > > "code": "94036000" > > } > > ] > > }, > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "2.56%", > > "ext": { > > "br-nfe-icms-csosn": "101" > > } > > }, > > { > > "cat": "PIS", > > "percent": "0%", > > "ext": { > > "br-nfe-pis-cst": "49" > > } > > }, > > { > > "cat": "COFINS", > > "percent": "0%", > > "ext": { > > "br-nfe-cofins-cst": "49" > > } > > } > > ], > > "ext": { > > "br-nfe-cfop": "6102" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > } > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de mercadoria" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BR", > > "$addons": [ > > "br-nfe-v4" > > ], > > "type": "standard", > > "series": "1", > > "issue_date": "2026-07-28", > > "currency": "BRL", > > "tax": { > > "ext": { > > "br-nfe-model": "55", > > "br-nfe-operation-type": "1", > > "br-nfe-presence": "1", > > "br-nfe-purpose": "1" > > } > > }, > > "supplier": { > > "name": "Marcenaria Arte \u0026 Design ME", > > "tax_id": { > > "country": "BR", > > "code": "21586733000120" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "0623458900" > > } > > ], > > "addresses": [ > > { > > "num": "85", > > "street": "Rua dos Artesãos", > > "locality": "Savassi", > > "region": "Minas Gerais", > > "state": "MG", > > "code": "30140-071", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contato@artedesign.com.br" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3106200", > > "br-nfe-regime": "1" > > } > > }, > > "customer": { > > "name": "Comércio de Móveis Paulista Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "33944792000101" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "112233445566" > > } > > ], > > "addresses": [ > > { > > "num": "742", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01310-100", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Mesa de Jantar em Madeira Maciça", > > "identities": [ > > { > > "key": "ncm", > > "code": "94036000" > > } > > ], > > "price": "900.00" > > }, > > "sum": "4500.00", > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "2.56%", > > "ext": { > > "br-nfe-icms-csosn": "101", > > "br-nfe-icms-origin": "0" > > } > > }, > > { > > "cat": "PIS", > > "percent": "0%", > > "ext": { > > "br-nfe-pis-cst": "49" > > } > > }, > > { > > "cat": "COFINS", > > "percent": "0%", > > "ext": { > > "br-nfe-cofins-cst": "49" > > } > > } > > ], > > "total": "4500.00", > > "ext": { > > "br-nfe-cfop": "6102" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "br-nfe-payment-means": "18" > > } > > } > > }, > > "totals": { > > "sum": "4500.00", > > "total": "4500.00", > > "taxes": { > > "categories": [ > > { > > "code": "ICMS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-icms-csosn": "101", > > "br-nfe-icms-origin": "0" > > }, > > "base": "4500.00", > > "percent": "2.56%", > > "amount": "115.20" > > } > > ], > > "amount": "115.20" > > }, > > { > > "code": "PIS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-pis-cst": "49" > > }, > > "base": "4500.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > }, > > { > > "code": "COFINS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-cofins-cst": "49" > > }, > > "base": "4500.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "4500.00", > > "payable": "4500.00" > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de mercadoria" > > } > > ] > > } > > ``` > > > [accordion] Example NF-e for a full goods return > > > > In this example, we're issuing a NF-e that fully returns the goods of a previously issued B2B product invoice — a *devolução total* under the pre-reform (pre-RTC) rules. > > > > Notice the differences from a standard product invoice: > > > > * the document `type` is `credit-note`; it keeps the [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addon and is still issued as an NF-e, so [`br-nfe-model`](https://docs.gobl.org/addons/br-nfe-v4#fiscal-document-model-code) is derived as `55`, > > * a `preceding` entry references the original NF-e and carries its SEFAZ access key (*chave de acesso*) as a stamp — you can copy it from the `sefaz-key` entry in the `stamps` array of the original invoice's envelope `head`, where it was added once the tax authority authorized the document, > > * because this is a full return, the [`br-nfe-purpose`](https://docs.gobl.org/addons/br-nfe-v4#purpose-code) extension is set to `4` (*Goods Return*) and the [`br-nfe-operation-type`](https://docs.gobl.org/addons/br-nfe-v4#operation-type-code) extension to `0` (*Inbound / Entrada*), since the returned goods re-enter the supplier; standard invoices set these automatically to `1` (normal) and `1` (outbound), but corrective documents must set both explicitly, > > * no [`br-nfe-credit-note-type`](https://docs.gobl.org/addons/br-nfe-v4#credit-note-type-code) extension is used: that field only applies to post-reform IBS/CBS credit notes (those set `br-nfe-purpose` to `5`), > > * the line [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) is a return code — `2202` (*Devolução de venda de mercadoria adquirida ou recebida de terceiros*) — mirroring the original `6102` sale but recorded as an inbound inter-state operation (CFOP starting with `2`), > > * the payment sets the [`br-nfe-payment-means`](https://docs.gobl.org/addons/br-nfe-v4#payment-method) extension to `90` (*No payment*), as a return does not involve a new payment, > > * there are no totals or calculations; all these will be made automatically when uploading, and, > > * make sure to process it with the "DF-e issue product invoice (NF-e)" workflow created during setup. > > > > ```json Credit Note — Full Return (NF-e) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "br-nfe-v4" > > ], > > "type": "credit-note", > > "series": "1", > > "issue_date": "2024-11-20", > > "tax": { > > "ext": { > > "br-nfe-presence": "1", > > "br-nfe-purpose": "4", > > "br-nfe-operation-type": "0" > > } > > }, > > "preceding": [ > > { > > "type": "standard", > > "series": "1", > > "code": "1", > > "issue_date": "2024-11-15", > > "stamps": [ > > { > > "prv": "sefaz-key", > > "val": "35241105229829000184550010000000011000000019" > > } > > ] > > } > > ], > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "12345678901234" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "2927408" > > } > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Cabo USB-C 2 metros", > > "price": "28.90", > > "identities": [ > > { > > "key": "ncm", > > "code": "85444290" > > } > > ] > > }, > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "12.0%" > > }, > > { > > "cat": "PIS", > > "percent": "1.65%" > > }, > > { > > "cat": "COFINS", > > "percent": "7.60%" > > } > > ], > > "ext": { > > "br-nfe-cfop": "2202" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "other", > > "ext": { > > "br-nfe-payment-means": "90" > > } > > } > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Devolução total de mercadoria" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BR", > > "$addons": [ > > "br-nfe-v4" > > ], > > "type": "credit-note", > > "series": "1", > > "issue_date": "2024-11-20", > > "currency": "BRL", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2024-11-15", > > "series": "1", > > "code": "1", > > "stamps": [ > > { > > "prv": "sefaz-key", > > "val": "35241105229829000184550010000000011000000019" > > } > > ] > > } > > ], > > "tax": { > > "ext": { > > "br-nfe-model": "55", > > "br-nfe-operation-type": "0", > > "br-nfe-presence": "1", > > "br-nfe-purpose": "4" > > } > > }, > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "12345678901234" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfe-regime": "3" > > } > > }, > > "customer": { > > "name": "Construforte Engenharia Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "46602178000103" > > }, > > "addresses": [ > > { > > "num": "75", > > "street": "Avenida Sete de Setembro", > > "street_extra": "Bloco C", > > "locality": "Centro", > > "region": "Salvador", > > "state": "BA", > > "code": "40060-000", > > "country": "BR" > > } > > ], > > "ext": { > > "br-ibge-municipality": "2927408" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Cabo USB-C 2 metros", > > "identities": [ > > { > > "key": "ncm", > > "code": "85444290" > > } > > ], > > "price": "28.90" > > }, > > "sum": "289.00", > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "12.0%", > > "ext": { > > "br-nfe-icms-cst": "00", > > "br-nfe-icms-origin": "0" > > } > > }, > > { > > "cat": "PIS", > > "percent": "1.65%", > > "ext": { > > "br-nfe-pis-cst": "01" > > } > > }, > > { > > "cat": "COFINS", > > "percent": "7.60%", > > "ext": { > > "br-nfe-cofins-cst": "01" > > } > > } > > ], > > "total": "289.00", > > "ext": { > > "br-nfe-cfop": "2202" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "other", > > "ext": { > > "br-nfe-payment-means": "90" > > } > > } > > }, > > "totals": { > > "sum": "289.00", > > "total": "289.00", > > "taxes": { > > "categories": [ > > { > > "code": "ICMS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-icms-cst": "00", > > "br-nfe-icms-origin": "0" > > }, > > "base": "289.00", > > "percent": "12.0%", > > "amount": "34.68" > > } > > ], > > "amount": "34.68" > > }, > > { > > "code": "PIS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-pis-cst": "01" > > }, > > "base": "289.00", > > "percent": "1.65%", > > "amount": "4.77" > > } > > ], > > "amount": "4.77" > > }, > > { > > "code": "COFINS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-cofins-cst": "01" > > }, > > "base": "289.00", > > "percent": "7.60%", > > "amount": "21.96" > > } > > ], > > "amount": "21.96" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "289.00", > > "payable": "289.00" > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Devolução total de mercadoria" > > } > > ] > > } > > ``` > > > [accordion] Example B2C consumer invoice (NFC-e) > > > > In this example, we're issuing a simple consumer invoice (NFC-e) from a Brazilian supplier. > > > > Notice: > > > > * we've added the [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addon with the `simplified` tag; this sets the [`br-nfe-model`](https://docs.gobl.org/addons/br-nfe-v4#model) extension to `65` (NFC-e), > > * the customer is optional and in this example we've omitted it, > > * extensions (`ext`) and identities have been used in multiple locations for fields whose values cannot be determined any other way, > > * each line must include a [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) extension to classify the fiscal operation, just as on an NF-e, > > * the payment instructions key is set to `card`, which causes the [`br-nfe-payment-means`](https://docs.gobl.org/addons/br-nfe-v4#payment-method) extension to be set automatically to `03` (cartão de crédito), > > * tax percentages are provided explicitly as they vary depending on the state and type of goods, > > * there are no totals or calculations; all these will be made automatically when uploading, and, > > * make sure to process it with the "DF-e issue consumer invoice (NFC-e)" workflow created during setup. > > > > ```json B2C Consumer Invoice (NFC-e) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "br-nfe-v4" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "123", > > "tax": { > > "ext": { > > "br-nfe-presence": "1" > > } > > }, > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "12345678901234" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfse-simples": "1" > > } > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Cabo USB-C 2 metros", > > "price": "28.90" > > }, > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "18.0%" > > }, > > { > > "cat": "PIS", > > "percent": "1.65%" > > }, > > { > > "cat": "COFINS", > > "percent": "7.60%" > > } > > ], > > "ext": { > > "br-nfe-cfop": "5102" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "card" > > } > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de mercadoria" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BR", > > "$addons": [ > > "br-nfe-v4" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "123", > > "issue_date": "2026-07-28", > > "currency": "BRL", > > "tax": { > > "ext": { > > "br-nfe-model": "65", > > "br-nfe-operation-type": "1", > > "br-nfe-presence": "1", > > "br-nfe-purpose": "1" > > } > > }, > > "supplier": { > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "12345678901234" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfe-regime": "3", > > "br-nfse-simples": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Cabo USB-C 2 metros", > > "price": "28.90" > > }, > > "sum": "57.80", > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "18.0%", > > "ext": { > > "br-nfe-icms-cst": "00", > > "br-nfe-icms-origin": "0" > > } > > }, > > { > > "cat": "PIS", > > "percent": "1.65%", > > "ext": { > > "br-nfe-pis-cst": "01" > > } > > }, > > { > > "cat": "COFINS", > > "percent": "7.60%", > > "ext": { > > "br-nfe-cofins-cst": "01" > > } > > } > > ], > > "total": "57.80", > > "ext": { > > "br-nfe-cfop": "5102" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "card", > > "ext": { > > "br-nfe-payment-means": "03" > > } > > } > > }, > > "totals": { > > "sum": "57.80", > > "total": "57.80", > > "taxes": { > > "categories": [ > > { > > "code": "ICMS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-icms-cst": "00", > > "br-nfe-icms-origin": "0" > > }, > > "base": "57.80", > > "percent": "18.0%", > > "amount": "10.40" > > } > > ], > > "amount": "10.40" > > }, > > { > > "code": "PIS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-pis-cst": "01" > > }, > > "base": "57.80", > > "percent": "1.65%", > > "amount": "0.95" > > } > > ], > > "amount": "0.95" > > }, > > { > > "code": "COFINS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-cofins-cst": "01" > > }, > > "base": "57.80", > > "percent": "7.60%", > > "amount": "4.39" > > } > > ], > > "amount": "4.39" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "57.80", > > "payable": "57.80" > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de mercadoria" > > } > > ] > > } > > ``` > > > [accordion] Example B2C consumer invoice for a Simples Nacional issuer (NFC-e) > > > > In this example, we're issuing a consumer invoice (NFC-e) from a supplier enrolled in the *Simples Nacional* tax regime. > > > > Notice the differences from the previous example: > > > > * the supplier declares its regime with the [`br-nfe-regime`](https://docs.gobl.org/addons/br-nfe-v4#tax-regime-code) extension set to `1` (*Simples Nacional*), > > * ICMS carries the [`br-nfe-icms-csosn`](https://docs.gobl.org/addons/br-nfe-v4#icms-simples-nacional-status-code-csosn) extension set to `102` (taxed without credit permission) with a `0%` percent, > > * PIS and COFINS use the [`br-nfe-pis-cst`](https://docs.gobl.org/addons/br-nfe-v4#pis-tax-status-code-cst) and [`br-nfe-cofins-cst`](https://docs.gobl.org/addons/br-nfe-v4#cofins-tax-status-code-cst) extensions set to `49` (other operations) at a `0%` rate, > > * the line carries a [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) extension set to `5102`, > > * all of these fields must be set explicitly (i.e., you have them in the minimal example), since the automatic defaults are the normal-regime ones: an ICMS line that omits the CSOSN fails validation, while an omitted PIS or COFINS CST silently falls back to `01`, > > * there are no totals or calculations; all these will be made automatically when uploading, and, > > * make sure to process it with the "DF-e issue consumer invoice (NFC-e)" workflow created during setup. > > > > ```json B2C Consumer Invoice — Simples Nacional (NFC-e) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "br-nfe-v4" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "123", > > "tax": { > > "ext": { > > "br-nfe-presence": "1" > > } > > }, > > "supplier": { > > "name": "Drogaria Vida Saudável Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "55263640000186" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "35503304557308" > > } > > ], > > "addresses": [ > > { > > "num": "200", > > "street": "Rua Primeiro de Março", > > "street_extra": "Torre A", > > "locality": "Centro", > > "region": "Rio de Janeiro", > > "state": "RJ", > > "code": "20010-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "saudemais@example.com" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3304557", > > "br-nfe-regime": "1" > > } > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Caixa de Máscaras Cirúrgicas", > > "price": "10.00" > > }, > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "0%", > > "ext": { > > "br-nfe-icms-csosn": "102", > > "br-nfe-icms-origin": "0" > > } > > }, > > { > > "cat": "PIS", > > "percent": "0%", > > "ext": { > > "br-nfe-pis-cst": "49" > > } > > }, > > { > > "cat": "COFINS", > > "percent": "0%", > > "ext": { > > "br-nfe-cofins-cst": "49" > > } > > } > > ], > > "ext": { > > "br-nfe-cfop": "5102" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "card" > > } > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de mercadoria" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BR", > > "$addons": [ > > "br-nfe-v4" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "123", > > "issue_date": "2026-07-28", > > "currency": "BRL", > > "tax": { > > "ext": { > > "br-nfe-model": "65", > > "br-nfe-operation-type": "1", > > "br-nfe-presence": "1", > > "br-nfe-purpose": "1" > > } > > }, > > "supplier": { > > "name": "Drogaria Vida Saudável Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "55263640000186" > > }, > > "identities": [ > > { > > "key": "br-nfe-state-reg", > > "code": "35503304557308" > > } > > ], > > "addresses": [ > > { > > "num": "200", > > "street": "Rua Primeiro de Março", > > "street_extra": "Torre A", > > "locality": "Centro", > > "region": "Rio de Janeiro", > > "state": "RJ", > > "code": "20010-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "saudemais@example.com" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3304557", > > "br-nfe-regime": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Caixa de Máscaras Cirúrgicas", > > "price": "10.00" > > }, > > "sum": "20.00", > > "taxes": [ > > { > > "cat": "ICMS", > > "percent": "0%", > > "ext": { > > "br-nfe-icms-csosn": "102", > > "br-nfe-icms-origin": "0" > > } > > }, > > { > > "cat": "PIS", > > "percent": "0%", > > "ext": { > > "br-nfe-pis-cst": "49" > > } > > }, > > { > > "cat": "COFINS", > > "percent": "0%", > > "ext": { > > "br-nfe-cofins-cst": "49" > > } > > } > > ], > > "total": "20.00", > > "ext": { > > "br-nfe-cfop": "5102" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "card", > > "ext": { > > "br-nfe-payment-means": "03" > > } > > } > > }, > > "totals": { > > "sum": "20.00", > > "total": "20.00", > > "taxes": { > > "categories": [ > > { > > "code": "ICMS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-icms-csosn": "102", > > "br-nfe-icms-origin": "0" > > }, > > "base": "20.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > }, > > { > > "code": "PIS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-pis-cst": "49" > > }, > > "base": "20.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > }, > > { > > "code": "COFINS", > > "informative": true, > > "rates": [ > > { > > "ext": { > > "br-nfe-cofins-cst": "49" > > }, > > "base": "20.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "20.00", > > "payable": "20.00" > > }, > > "notes": [ > > { > > "key": "reason", > > "text": "Venda de mercadoria" > > } > > ] > > } > > ``` > > Party documents: > > > [accordion] DF-e Brazil supplier > > > > A CNPJ with the municipal and state registrations, IBGE municipality code, and Simples Nacional flag used by the DF-e flows. > > > > ```json Brazil supplier example for sandbox expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "TechNova Soluções Digitais Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "05229829000184" > > }, > > "identities": [ > > { > > "key": "br-nfse-municipal-reg", > > "code": "45678901234567" > > }, > > { > > "key": "br-nfe-state-reg", > > "code": "66093885154234" > > } > > ], > > "addresses": [ > > { > > "num": "101", > > "street": "Avenida Paulista", > > "locality": "Bela Vista", > > "region": "São Paulo", > > "state": "SP", > > "code": "01311-000", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "contact@technova.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3550308", > > "br-nfse-simples": "1", > > "br-nfse-fiscal-incentive": "2", > > "br-nfse-special-regime": "6", > > "br-nfe-regime": "1", > > "br-nfe-fiscal-incentive": "2", > > "br-nfe-special-regime": "6" > > } > > } > > ``` > > > [accordion] DF-e Brazil customer > > > > A business customer with CNPJ, full address including state, and IBGE municipality code. > > > > ```json Brazil customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Comércio Aurora Ltda.", > > "tax_id": { > > "country": "BR", > > "code": "12345678000195" > > }, > > "addresses": [ > > { > > "num": "250", > > "street": "Rua das Laranjeiras", > > "locality": "Laranjeiras", > > "region": "Rio de Janeiro", > > "state": "RJ", > > "code": "22240-006", > > "country": "BR" > > } > > ], > > "emails": [ > > { > > "addr": "financeiro@comercioaurora.test" > > } > > ], > > "ext": { > > "br-ibge-municipality": "3304557" > > } > > } > > ``` *** > [accordion] 🇧🇷 Invopop resources for Brazil > > | | | > | - | - | > | Compliance | [Invoicing compliance in Brazil](/compliance/brazil) [Compliance timeline](/timelines/brazil) | > | Apps | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > | Guides | [Supplier registration](/guides/br-dfe-supplier) [Issuing invoices](/guides/br-dfe) | > | FAQ | [Brazil FAQ](/faq/brazil) | > | GOBL | [Brazil Tax Regime](https://docs.gobl.org/regimes/br) [Brazil NF-e Addon](https://docs.gobl.org/addons/br-nfe-v4) [Brazil NFS-e Addon](https://docs.gobl.org/addons/br-nfse-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Documentos Fiscais Eletrônicos Brazil App → # Email Source: https://docs.invopop.com/apps/email Send emails from your workflows, with or without attachments. > [tab] Description > > > [card] [Email](/guides/email) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Notify | > > The Email app allows you to send emails directly from your workflows, making it easy to deliver invoices, notifications, and other messages to customers, suppliers, or any other recipients. You can send emails with file attachments (such as PDF invoices or XML files) or without attachments for simple notifications. > > You can send emails from `Company name ` by simply connecting the Email app. If you wish to send emails from your own domain such as `Company Name `, you can configure the app to use: > > * [Resend](https://resend.com) with a verified domain > * [SendGrid](https://sendgrid.com) with an authenticated domain > * An SMTP server authorized to send emails from your domain (Gmail, iCloud, Amazon SES, Microsoft 365) > > **Key features** > > * **Workflow automation:** Send emails automatically as part of your invoice processing workflows, ensuring timely delivery to customers. > * **File attachments:** Automatically attach invoice PDFs, XML files, or other documents generated by your workflows. > * **Template variables:** Use dynamic template variables in email subjects and bodies to personalize messages for each recipient. > * **Custom variables:** Inject custom variables using job args for dynamic content like payment links or conditional text. > * **Multiple recipients:** Send to multiple recipients, including automatic customer email detection, BCC support, and custom reply-to addresses. > * **File compression:** Option to combine multiple attachments into a single ZIP file for easier delivery. > * **Provider flexibility:** Choose from Invopop's email service, Resend, SendGrid, or your own SMTP server. > > Make sure to check out our [Email Guide](/guides/email) for instructions on how to configure senders, set up email providers, and customize your email templates. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send email > > > > 1 > > Send billing documents via email. > > > [card] Notify via Email > > > > 1 > > Send a notification email. > [tab] Workflows > > The Email app fits into your existing workflows. Typically, you'll add the `Send email` step after you have issued an invoice via the corresponding tax authority and generated a PDF (if required). This ensures the necessary files are attached and that the invoice complies with local regulatory requirements. > > For simple notifications without attachments, you can use the `Notify via Email` action at any point in your workflow. > > See the [Email Guide](/guides/email) for detailed workflow setup instructions and configuration options. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Email App → # Facturae Spain Source: https://docs.invopop.com/apps/facturae-spain Convert GOBL into the Spanish Facturae format > [tab] Description > > > [card] [Facturae Spain](/guides/es-facturae) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2G | > | Country | [Spain](/compliance/spain) | > > Invopop's **Facturae app** is designed to support fully compliant conversion from GOBL to Facturae 3.2.2 XML format. The generated XML invoice must be sent through the [FACe](https://face.gob.es/es) platform (or FACeB2B for B2B invoices). Each public body registers its [DIR3 codes](https://administracionelectronica.gob.es/ctt/verPestanaDescargas.htm?idIniciativa=dir3) identifying the accounting office, processing unit, and recipient office. > > **Facturae** is Spain’s official electronic invoicing format, defined and maintained by the Ministerio de Asuntos Económicos y Transformación Digital. It is an XML-based standard designed to ensure legally valid, structured e-invoices for business-to-government (B2G). > > **Key features** > > 1. **Generate Facturae invoices:** according to the Facturae 3.2.2 XML format. > 2. **Adds required XAdES signature:** Facturae invoices must be digitally signed using an XAdES XML signature > > ## FAQ > > Invoicing questions > > > [accordion] Should I send credit notes with positive or negative values? > > > > You should send the credit note with the same sign as the original invoice. > > > > In Spain, unlike other countries, credit notes must be submitted to Hacienda with inverse values. Invopop handles this conversion automatically before transforming the credit note into a "factura rectificativa" (corrective invoice). > > > > This means you only need to send the credit note following international standards (with same sign as the invoice). Invopop will automatically adapt it when submitting to Hacienda. > > > > For reference, see the [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) documentation with `type` set to `credit-note`. > > > [accordion] Where do I find Spain-specific GOBL documentation? > > > > See the [Spain tax regime in GOBL](https://docs.gobl.org/regimes/es) for tax categories, NIF rules, and Spanish-specific extensions. Subsystem-specific addons live alongside: [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1), [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1), [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3). > > > [accordion] Does Invopop submit the Facturae XML invoice? > > > > > [!NOTE] > > > > > > Invopop is working on direct FACe connection as part of the Crea y Crece mandate starting October 2027 > > > > You submit the XML directly to the [FACe portal](https://face.gob.es/), Invopop does not submit it for you. FACe is the centralised entry point for all Spanish public administrations, and submission is the supplier's responsibility. You'll need: > > > > * A valid digital certificate (FNMT or DNIe). > > * The XML file Invopop generated (download it from the workflow output). > > * The three DIR3 administrative centres correctly embedded in the invoice — `Oficina Contable` (01), `Órgano Gestor` (02), `Unidad Tramitadora` (03). If these are wrong, FACe will reject the invoice. The receiving public body publishes their codes in the [DIR3 directory](https://directorio3.gob.es/). > > > > Submission options: > > > > * **FACe web portal**: manual upload, fine for low volumes. > > * **A registered FACe-compatible third party** (gestoría, ERP plugin, etc.). > > > [accordion] How do I verify that the generated XML is valid? > > > > The generated XML will be added to your silo entry as an attachment under the "files" tab with the file name `facturae.xml`. Upload this file to [FACe's online validator](https://face.gob.es/es/facturas/validar-visualizar-facturas) to verify its validity. > > > [accordion] Is the Facturae invoice reported to the tax authority? > > > > No — the Facturae app only converts GOBL to Facturae XML. Submit B2G invoices via [FACe](https://face.gob.es/es); tax reporting to the AEAT happens separately (e.g. through SII or VERI\*FACTU). > > Registering supplier questions > > > [accordion] What are the most common reasons for failing supplier approval? > > > > We reject agreements when: > > > > * The uploaded document is not signed (they upload the unsigned template). > > * Users upload a handwritten signature without an ID. > > * The electronic signature does not belong to the legal representative (or to the *autónomo* themselves). > > * A company's agreement is signed with a personal certificate (e.g. the FNMT's *Certificado Electrónico de Ciudadano*) instead of a representative certificate (e.g. the FNMT's [*Certificado Electrónico de Representante*](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) for that company. > > * The agreement is missing a date or location. > > * The name is entered as an email address. > > > > The job will state the reason for rejection. > > > [accordion] What happens if a supplier does not complete their registration within the allotted wait time? > > > > A KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a reminder to the supplier through a webhook. > > > > The registration link will not expire and the entity will still be able to upload their registration documents which will be validated. Should you choose to run this workflow again using this supplier, the supplier will be accepted or rejected immediately because the required documentation has already been provided and validated. > > > [accordion] What happens if a supplier validation is rejected? > > > > If the uploaded agreement documents were rejected, a KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a notification to the supplier through a webhook within the **Error Handling** section. > > > > Afterwards, if you wish to re-register the supplier with new documents, you must: > > > > 1. Unregister the supplier using the **Unregister Supplier workflow**. > > 2. Re-run the Register supplier workflow. > > > > This will restart the entire registration process. When uploading documents, the previously submitted agreement will appear selected by default. Simply choose a new file and click `Continue` to override the old one. See the image below for reference: > > > > ![Overriding the previously submitted agreement](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-update-agreement.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a20bb8dd02df632d114e0519f4d34899) > > > > Overriding the previously submitted agreement > > > [accordion] What is the minimum information required to register a supplier? > > > > In order to complete the representation agreement you will need to provide the following information: > > > > **Company** > > > > 1. Name > > 2. NIF > > 3. Address > > > > **Legal representative** > > > > 1. Full name > > 2. Government ID type and number > > 3. Address > > > > ```json Spain supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "people": [ > > { > > "name": { > > "given": "Juan", > > "surname": "Pérez González" > > }, > > "identities": [ > > { > > "key": "national", > > "code": "123456789A" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Calle Ejemplo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ] > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > } > > ``` > > > > If the entity is a self-employed individual (*autónomo*), only the information requested in the **Legal representative** section is required. > > > > ```json Spain autónomo supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Juan Pérez González", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "autonomo@example.com" > > } > > ] > > } > > ``` > > > [accordion] What methods are available to sign the PDF supplier agreements? > > > > The supplier can add their electronic signature to the PDF document ([instructions](https://helpx.adobe.com/acrobat/using/signing-pdfs.html)), or sign with a handwritten signature (we recommend using [Adobe's online service](https://www.adobe.com/acrobat/online/sign-pdf.html)). > > > [accordion] What is the file size limit for the documents provided in the supplier registration flow? > > > > Individual documents are limited to a maximum size of 10MB. Uploads exceeding this size will result in an error. > > > [accordion] How do I register a supplier with Facturae? > > > > Facturae itself has no central registration — the supplier just needs to enrol on FACe (or the relevant regional portal) using their digital certificate. Invopop signs the XML; submission to FACe is currently manual via the supplier's account. > > > [accordion] What certificates does Facturae require to authenticate a supplier? > > > > Facturae requires an XAdES signature on the XML using a qualified certificate (FNMT *persona jurídica*, Cl\@ve, ACCV, etc.). Invopop signs with its own certificate by default; bring-your-own is supported on request. > > More Spain FAQs available in our [Spain FAQ](/faq/spain) section > [tab] Actions > > The following workflow action will be available once you enable this app: > > > [card] Generate Facturae > > > > 1 > > Convert GOBL invoices into Spanish Facturae XML files. > [tab] Documents > > > [accordion] Facturae B2G Invoice > > > > ```json Facturae B2G Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "code": "TEST01001F", > > "issue_date": "2021-12-08", > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2021-12-30", > > "percent": "100%" > > } > > ], > > "notes": "Some kind of payment term note" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "ES25 0188 2570 7185 4470 4761", > > "name": "Bankrandom" > > } > > ] > > } > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "type": "standard", > > "code": "TEST01001F", > > "issue_date": "2021-12-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-facturae-doc-type": "FC", > > "es-facturae-invoice-class": "OO" > > } > > }, > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "sum": "4000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "4000.00" > > }, > > { > > "i": 2, > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "sum": "202.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "202.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2021-12-30", > > "amount": "5084.42", > > "percent": "100%" > > } > > ], > > "notes": "Some kind of payment term note" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "ES25 0188 2570 7185 4470 4761", > > "name": "Bankrandom" > > } > > ] > > } > > }, > > "totals": { > > "sum": "4202.00", > > "total": "4202.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "4202.00", > > "percent": "21.0%", > > "amount": "882.42" > > } > > ], > > "amount": "882.42" > > } > > ], > > "sum": "882.42" > > }, > > "tax": "882.42", > > "total_with_tax": "5084.42", > > "payable": "5084.42" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > > [accordion] Facturae Credit Note > > > > ```json Facturae Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "type": "credit-note", > > "code": "TEST01001R", > > "issue_date": "2021-12-08", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2021-12-08", > > "code": "TEST01001F", > > "ext": { > > "es-facturae-correction": "01" > > } > > } > > ], > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "type": "credit-note", > > "code": "TEST01001R", > > "issue_date": "2021-12-08", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2021-12-08", > > "code": "TEST01001F", > > "ext": { > > "es-facturae-correction": "01" > > } > > } > > ], > > "tax": { > > "ext": { > > "es-facturae-doc-type": "FC", > > "es-facturae-invoice-class": "OR" > > } > > }, > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "sum": "4000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "4000.00" > > }, > > { > > "i": 2, > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "sum": "202.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "202.00" > > } > > ], > > "totals": { > > "sum": "4202.00", > > "total": "4202.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "4202.00", > > "percent": "21.0%", > > "amount": "882.42" > > } > > ], > > "amount": "882.42" > > } > > ], > > "sum": "882.42" > > }, > > "tax": "882.42", > > "total_with_tax": "5084.42", > > "payable": "5084.42" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Facturae Spain App → # Finland Source: https://docs.invopop.com/apps/finland Send and receive Finnish e-invoices across the domestic operator network. > [tab] Description > > > [card] [Register suppliers](/guides/fi-finvoice-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/fi-finvoice) > > > > Issuing guide › > > > [card] [Receive invoices](/guides/fi-finvoice-receiving) > > > > Receiving guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2G | > | Country | [Finland](/compliance/finland) | > > Finland has no government clearance system for invoices. Instead, e-invoices travel over two networks that run side by side: the domestic operator network, an unbranded mesh of accredited operators where around 370,000 companies receive their invoices as *Finvoice* or *TEAPPSXML*, and Peppol, with roughly 13,000 Finnish end users (about 0.24% of annual volume). Neither network alone covers Finnish receivers. > > This app covers the **domestic operator network**, through Invopop's partner [Apix Messaging](https://www.apix.fi), an accredited Finnish operator. You send one GOBL invoice with the receiver's e-invoice address, and the receiver gets it in the format its operator expects, such as Finvoice or TEAPPSXML. > > If your receiver is only on Peppol, use the [Peppol app](/apps/peppol). The national registry at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi) lists addresses on both networks, so one lookup tells you which app to use. > > Before sending, the app asks the operator how it would reach the receiver. If the receiver can't get an e-invoice on the domestic network, the app refuses the invoice, and the error names the channel the operator would have used. > > E-invoicing is mandatory for invoices to Finnish public bodies under Act 241/2019, and voluntary between businesses, though businesses above a EUR 10,000 turnover threshold have a statutory right to request e-invoices from their suppliers. > > #### Key features > > * **Workflow automation:** Register parties, issue invoices, and import received ones as steps in your workflows. > * **Domestic network delivery:** Each receiver on the domestic operator network gets the invoice in the format its own operator expects. > * **Operator routing:** Name the receiver's operator on the customer party and the invoice reaches that operator, even when the address is registered with several. > * **Verified onboarding:** Each party's representative signs an authorization agreement and verifies their identity before the party is registered. > * **Per-party provisioning:** Each registered party gets its own operator account. A Finnish party also gets its own e-invoice address. > * **Finvoice-safe validation:** The [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) requires the payment data Finvoice makes mandatory, so invoices that would fail conversion are rejected before they are sent. > * **Reachability pre-check:** Receivers that would get paper, email, or a consumer bank channel are refused up front, never silently delivered another way. > * **Invoice reception:** Each registered Finnish party's inbox is polled on a schedule and received invoices are imported automatically. > > Check out the guides below to get started: > > * [Supplier registration](/guides/fi-finvoice-supplier) · [Issuing invoices](/guides/fi-finvoice) · [Receiving invoices](/guides/fi-finvoice-receiving) > > ## FAQ > > Invoicing questions > > > [accordion] Can I invoice a Finnish business that isn't reachable on Peppol? > > > > Yes. Most Finnish businesses receive e-invoices through the domestic operator network, and the [Finland app](/apps/finland) delivers there. You send one GOBL invoice with the receiver's e-invoice address, and it arrives in the format the receiver's operator expects. You can check which network a receiver is on at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). For a receiver only on Peppol, use the [Peppol app](/apps/peppol). > > > [accordion] Why does every Finnish invoice need bank account details? > > > > Because in Finland an e-invoice doubles as a payment order. Finvoice was created by the banks (it's published by Finance Finland, the banking association) and grew out of the bank network, where the receiver approves the invoice for payment directly in their bank. That's why every Finvoice invoice, credit notes included, must carry the payment order: an IBAN, a payment reference, and a dated due date. Most Finnish receivers get their invoices as Finvoice, and one missing this data would fail on its way to the receiver, where we can't see it, so the [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) rejects it up front instead. > > > [accordion] Why was my invoice refused before it was sent anywhere? > > > > Two checks run before anything leaves the platform. The invoice is converted to Finvoice first, so anything the [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) refuses fails the job with the rule it broke: missing payment data, a party without an e-invoice address, an identifier too long for its element. Then the receiver must be reachable as a true e-invoice (`receiver-not-einvoice`): receivers only reachable on paper, by email, or through the consumer bank channels (e-lasku, suoramaksu, Netposti) are rejected up front, with the channel the operator would have used named in the error, rather than quietly delivered another way. > > > [accordion] My receiver's address is registered with two operators. Which one gets the invoice? > > > > The one you name. Set the operator ID the receiver gave you in the customer's `fi-finvoice-operator` extension, and the invoice is routed to that operator. Without it, the sending operator picks by its own preference, which may be the receiver's old operator. The value is the operator's OVT code (Apix Messaging is `003723327487`) or a bank's BIC, as listed beside the address at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). An operator the address is not registered with is not rejected, so check the pair rather than expecting an error. > > > [accordion] What does a submission with an unknown outcome mean? > > > > If the connection to the operator fails after the request may have already been written, we can't tell whether the invoice was accepted, and resubmitting could deliver it twice. The job reports the attempt with its timestamp under the `send-unconfirmed` code instead of retrying. Check with support before sending the invoice again. > > > [accordion] How do I invoice the Finnish state? > > > > Business-to-government is the segment where e-invoicing is mandatory in Finland, and the state applies its own reference conventions: order numbers must start with `V1`, agreement numbers with `VSK1`, and posting references with `TK1`, with at most one of each per invoice. Set the order number in `ordering.purchases` and the agreement number in `ordering.contracts` on the GOBL invoice. Invopop doesn't validate or normalise these prefixes, so format them exactly as the contracting authority provided them, or the state will reject the invoice. > > > [accordion] What happens after the invoice is accepted? > > > > The operator's synchronous accept is the final programmatic signal: there is no delivery status API to poll afterwards. If a receiving operator later rejects the invoice, that rejection arrives by email in production. No news after acceptance is good news. > > Registering supplier questions > > > [accordion] How do I register a Finnish supplier? > > > > Upload the supplier as a GOBL party with `tax_id.country = FI` and the Business ID (y-tunnus), then run the [Finland app](/apps/finland)'s registration workflow. Registration provisions the party its own operator account and allocates its e-invoice address — a party must be registered before it can send or receive anything. See the [supplier registration guide](/guides/fi-finvoice-supplier). > > > [accordion] What Peppol scheme does Finland use for participant IDs? > > > > Scheme `0216`, wrapping the party's OVT code — `0037` followed by the Business ID without its hyphen. Under Finland's Peppol Authority Specific Requirements, the OVT code is the mandatory participant identifier for Finnish organisations on Peppol. The `0037` at the start of the code itself is a country prefix, not the scheme. > > > [accordion] What is a Finnish e-invoice address? > > > > An OVT code: `0037` followed by the party's Business ID (y-tunnus) without its hyphen, sometimes with a five-character suffix for routing inside large organisations (for example `003726174164`). On Peppol, the same code is wrapped in scheme `0216` (`0216:003726174164`). You can look any counterparty up in the national registry at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi): since 2024 it mirrors the Peppol address list too, so one lookup covers both networks. > > > [accordion] Which address form should I put on a party record? > > > > For a Finnish party, the OVT code, as an endpoint: `iso6523-actorid-upis::0216:` followed by the code. Registration adds it to the party for you. A supplier outside Finland uses its own electronic address, such as `iso6523-actorid-upis::0007:` followed by a Swedish Org.nr. Other forms circulate on the Finnish network (IBAN-style addresses from the older bank channel, operator-prefixed ones such as `TE0037…`), but for a Finnish party the OVT code is the canonical form, and the one the routing pre-check and the generated e-invoice use. > > > [accordion] Why hasn't my party's registration completed yet? > > > > Registration provisions the party its own account with the operator, and the job stays queued until every service is in force. For a Finnish party, it also waits until the operator has allocated its e-invoice address, so it never reports success on an account that can't receive yet. A supplier outside Finland only sends, so its registration completes as soon as its sending service is active. > > > [accordion] Can I register several Finnish parties in one workspace? > > > > Yes. Each party gets its own operator account, its own e-invoice address, and its own reception polling schedule. Register each one separately by running the registration workflow on its party record. > > Receiving questions > > > [accordion] How quickly do received invoices appear? > > > > Reception is polled, not pushed: each registered Finnish party's inbox at the operator is swept on a schedule, every five minutes by default. Add the time the sender's own operator takes to deliver, and an invoice normally appears within minutes, but not instantly. If you're testing, allow up to a quarter of an hour before suspecting a problem. > > > [accordion] What format do received invoices arrive in? > > > > Each received document becomes one entry in your workspace carrying the GOBL invoice, the original XML as received from the network, and a PDF rendering, whatever format the sender issued. > > > [accordion] What setup does receiving need? > > > > Two things: the Finland app must be configured with a sync workflow and an import workflow, and the Finnish party must be registered. Registration checks the workflow configuration first, so set the workflows up before running it. Once registered, polling starts automatically; received invoices simply appear as new entries processed by your import workflow. A party outside Finland is registered to send only. To receive its invoices, register it in the [Peppol app](/apps/peppol). > > More answers in our [Finland FAQ](/faq/finland) section > [tab] Limitations > > | Capability | Status | Notes | > | - | - | - | > | Party registration | Available | Signed authorization and identity check, then a per-party operator account | > | Invoice delivery | Available | Domestic operator network; Peppol receivers go through the [Peppol app](/apps/peppol) | > | Invoice reception | Available | Polled per registered Finnish party, five-minute default | > | Delivery status tracking | Not available | The synchronous accept is the final programmatic signal; later rejections arrive by email | > | Party deregistration | Available | Withdraws the address and removes the operator account once the inbox is drained; see [Unregister a supplier](/guides/fi-finvoice-supplier#unregister-a-supplier) | > | Invopop PDF for receivers | Available | Sent when the send step's **Attach invoice PDF** option is on, or whenever the invoice has attachments; otherwise receivers get the operator's rendering | > | Attachments | Available | Entry files with category `attachment`, both directions; at most 10 files, 1 MB, PDF/JPEG/PNG | > | Delivered document retrieval | Not available | The Finvoice the operator delivers cannot be fetched back | > | B2G reference validation | Not available | Format state references (`V1`, `VSK1`) yourself; posting references (`TK1`) cannot be carried yet | > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send invoice > > > > 2 > > Deliver a signed GOBL invoice to the receiver's operator as a compliant e-invoice. Checks the receiver is reachable as a true e-invoice before anything is sent. > > > [card] Sign authorisation for Finland > > > > 1 > > Sign the agreement for the company and representative. A Finnish party's agreement covers sending and receiving. A party outside Finland signs for sending only. > > > [card] Wait for Finland agreement approval > > > > Wait for approval on the uploaded documentation. > > > [card] Register party in Finland > > > > 100/mo > > Provision the party its own operator account and activate its services. A Finnish party also gets its e-invoice address, so it can receive. A party outside Finland is registered to send only. A party must be approved and registered before it can send. > > > [card] Unregister party from Finland > > > > Withdraw the party's e-invoice address, wait for anything still in its inbox to be imported, then remove its operator account and stop polling it. > > > [card] Sync received invoices > > > > Sweep a registered Finnish party's inbox at the operator and queue one import job for each new document. Runs automatically on the reception polling schedule. > > > [card] Import received invoice > > > > 3 > > Download one received document and convert it into a GOBL invoice, attaching the original XML and the PDF. > [tab] Workflows > > Invoice workflows > > > [accordion] Finvoice send invoice > > > > ```json Finvoice send invoice workflow theme={"system"} > > { > > "name": "Finvoice send invoice", > > "description": "Issue an invoice to a Finnish receiver", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "bc138fa6-9172-11f1-b7bf-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "bc177c32-9172-11f1-9d66-92000767c8b7", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · Finvoice · 000001", > > "config": { > > "name": "Finvoice", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "bc177d5b-9172-11f1-b7a4-92000767c8b7", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "bc177de4-9172-11f1-83e5-92000767c8b7", > > "name": "Send invoice", > > "provider": "gov-fi.send" > > }, > > { > > "id": "bc177e3d-9172-11f1-8812-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "bc177e9e-9172-11f1-8438-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Party workflows > > > [accordion] Finvoice register party > > > > ```json Finvoice register party workflow theme={"system"} > > { > > "name": "Finvoice register party", > > "description": "Register a party so it can send e-invoices in Finland, once its representative has signed the authorization. Finnish parties can also receive", > > "schema": "org/party", > > "steps": [ > > { > > "id": "bc177ef2-9172-11f1-8c54-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "874e856a-a0b4-11f1-a9bb-92000767c8b7", > > "name": "Sign authorisation for Finland", > > "provider": "gov-fi.sign" > > }, > > { > > "id": "875129e9-a0b4-11f1-b569-92000767c8b7", > > "name": "Wait for Finland agreement approval", > > "provider": "gov-fi.wait.approval" > > }, > > { > > "id": "bc177f3b-9172-11f1-8204-92000767c8b7", > > "name": "Register party in Finland", > > "provider": "gov-fi.register" > > }, > > { > > "id": "bc177f7d-9172-11f1-bb70-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "bc177fc4-9172-11f1-a165-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] Finvoice unregister party > > > > ```json Finvoice unregister party workflow theme={"system"} > > { > > "name": "Finvoice unregister party", > > "description": "Unregister a party from Finland so it no longer sends or receives e-invoices through Invopop", > > "schema": "org/party", > > "steps": [ > > { > > "id": "afc965e7-248d-4e0b-b34c-8a6d7e043826", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "839d3280-1a03-4113-80bf-db03bd5bda8b", > > "name": "Unregister party from Finland", > > "provider": "gov-fi.unregister" > > }, > > { > > "id": "264d2f39-bdf3-4887-b7e2-9e46f5607b24", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "4f3a9c6e-5d21-4b8a-9e7f-2c1d0b3a8e55", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Reception workflows > > > [accordion] Finvoice sync received invoices > > > > ```json Finvoice sync received invoices workflow theme={"system"} > > { > > "name": "Finvoice sync received invoices", > > "description": "Sweep a registered party's inbox at the operator and dispatch import jobs", > > "schema": "org/party", > > "steps": [ > > { > > "id": "bc178004-9172-11f1-b2b4-92000767c8b7", > > "name": "Sync received invoices", > > "provider": "gov-fi.sync" > > } > > ], > > "rescue": [] > > } > > ``` > > > [accordion] Finvoice import invoice > > > > ```json Finvoice import invoice workflow theme={"system"} > > { > > "name": "Finvoice import invoice", > > "description": "Import a received invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "bc178046-9172-11f1-ac3d-92000767c8b7", > > "name": "Import received invoice", > > "provider": "gov-fi.import" > > }, > > { > > "id": "bc178096-9172-11f1-90ae-92000767c8b7", > > "name": "Set folder", > > "provider": "silo.folder", > > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > > "config": { > > "folder": "expenses" > > } > > }, > > { > > "id": "bc1780dc-9172-11f1-b338-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "bc17811a-9172-11f1-ae07-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > > [accordion] Finland supplier > > > > A Finnish company with its Business ID (y-tunnus) as the tax ID and its e-invoice address as an endpoint: `iso6523-actorid-upis::0216:` followed by the OVT code (`0037` plus the Business ID without its hyphen). Registration adds the endpoint to the party. > > > > ```json Finland supplier example expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Aurora Ohjelmistot Oy", > > "tax_id": { > > "country": "FI", > > "code": "26174164" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003726174164" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Mannerheimintie", > > "locality": "Helsinki", > > "code": "00100", > > "country": "FI" > > } > > ], > > "emails": [ > > { > > "addr": "laskutus@auroraohjelmistot.fi" > > } > > ], > > "people": [ > > { > > "name": { > > "given": "Aino", > > "surname": "Virtanen" > > }, > > "role": "CEO", > > "identities": [ > > { > > "code": "PA1234567" > > } > > ] > > } > > ] > > } > > ``` > > > > A supplier outside Finland uses its own country's tax ID and its own electronic address, such as a Swedish company's Org.nr under scheme `0007`. It can send through this app, but not receive. See [suppliers outside Finland](/guides/fi-finvoice-supplier#suppliers-outside-finland). > > > [accordion] Finland customer > > > > The receiving side of a Finnish invoice, with the same identity shape as a Finnish supplier: y-tunnus tax ID and its OVT code as an endpoint, `iso6523-actorid-upis::0216:` followed by the code. Look receivers up at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). > > > > ```json Finland customer example expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Pohjola Rakennus Oy", > > "tax_id": { > > "country": "FI", > > "code": "11223349" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003711223349" > > } > > ], > > "ext": { > > "fi-finvoice-operator": "003723327487" > > }, > > "addresses": [ > > { > > "num": "8", > > "street": "Hämeenkatu", > > "locality": "Tampere", > > "code": "33100", > > "country": "FI" > > } > > ], > > "emails": [ > > { > > "addr": "ostolaskut@pohjolarakennus.fi" > > } > > ] > > } > > ``` > > > [accordion] Example B2B invoice > > > > In this example, we're issuing a B2B invoice from a Finnish supplier to another Finnish business. > > > > Notice: > > > > * the `$addons` field is set to `fi-finvoice-v3`, which enforces the payment data Finvoice requires on every Finnish invoice, > > * both parties have their e-invoice address as an endpoint: `iso6523-actorid-upis::0216:` followed by an OVT code (`0037` followed by the Business ID without its hyphen), and the customer names its operator in `fi-finvoice-operator`, so the invoice reaches that operator even if the address is registered with another one too, > > * the `payment` block carries an IBAN, a payment reference (an ISO 11649 `RF` reference here), and a dated due date; all three are required, > > * the invoice includes VAT at the standard Finnish rate of 25.5%, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Finland B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["fi-finvoice-v3"], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0042", > > "issue_date": "2026-08-01", > > "currency": "EUR", > > "supplier": { > > "name": "Aurora Ohjelmistot Oy", > > "tax_id": { > > "country": "FI", > > "code": "26174164" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003726174164" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Mannerheimintie", > > "locality": "Helsinki", > > "code": "00100", > > "country": "FI" > > } > > ] > > }, > > "customer": { > > "name": "Pohjola Rakennus Oy", > > "tax_id": { > > "country": "FI", > > "code": "11223349" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003711223349" > > } > > ], > > "ext": { > > "fi-finvoice-operator": "003723327487" > > }, > > "addresses": [ > > { > > "num": "8", > > "street": "Hämeenkatu", > > "locality": "Tampere", > > "code": "33100", > > "country": "FI" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Software development services", > > "price": "85.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "25.5%" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ref": "RF1310023", > > "credit_transfer": [ > > { > > "iban": "FI2112345600000785", > > "bic": "NDEAFIHH" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-15", > > "percent": "100%" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FI", > > "$addons": [ > > "eu-en16931-v2017", > > "fi-finvoice-v3" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0042", > > "issue_date": "2026-08-01", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Aurora Ohjelmistot Oy", > > "tax_id": { > > "country": "FI", > > "code": "26174164" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003726174164" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Mannerheimintie", > > "locality": "Helsinki", > > "code": "00100", > > "country": "FI" > > } > > ] > > }, > > "customer": { > > "name": "Pohjola Rakennus Oy", > > "tax_id": { > > "country": "FI", > > "code": "11223349" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003711223349" > > } > > ], > > "ext": { > > "fi-finvoice-operator": "003723327487" > > }, > > "addresses": [ > > { > > "num": "8", > > "street": "Hämeenkatu", > > "locality": "Tampere", > > "code": "33100", > > "country": "FI" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Software development services", > > "price": "85.00", > > "unit": "one" > > }, > > "sum": "850.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "25.5%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "850.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-15", > > "amount": "1066.75", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "ref": "RF1310023", > > "credit_transfer": [ > > { > > "iban": "FI2112345600000785", > > "bic": "NDEAFIHH" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "850.00", > > "total": "850.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "850.00", > > "percent": "25.5%", > > "amount": "216.75" > > } > > ], > > "amount": "216.75" > > } > > ], > > "sum": "216.75" > > }, > > "tax": "216.75", > > "total_with_tax": "1066.75", > > "payable": "1066.75" > > } > > } > > ``` > > > [accordion] Example B2G invoice > > > > In this example, we're invoicing a Finnish public body, the segment where e-invoicing is mandatory. > > > > Notice: > > > > * the `ordering.purchases` code starts with `V1` and the `ordering.contracts` code starts with `VSK1`, following the Finnish state's reference conventions; the state rejects invoices that don't follow them, > > * there is at most one order number and one agreement number, as the state requires, > > * the payment reference here is a Finnish *viitenumero* (banking reference number), the domestic alternative to the `RF` form, and, > > * everything else works exactly like the B2B invoice, payment block included. > > > > ```json Finland B2G invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["fi-finvoice-v3"], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0043", > > "issue_date": "2026-08-01", > > "currency": "EUR", > > "supplier": { > > "name": "Aurora Ohjelmistot Oy", > > "tax_id": { > > "country": "FI", > > "code": "26174164" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003726174164" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Mannerheimintie", > > "locality": "Helsinki", > > "code": "00100", > > "country": "FI" > > } > > ] > > }, > > "customer": { > > "name": "Suomen Valtion Virasto", > > "tax_id": { > > "country": "FI", > > "code": "54321096" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003754321096" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Snellmaninkatu", > > "locality": "Helsinki", > > "code": "00170", > > "country": "FI" > > } > > ] > > }, > > "ordering": { > > "purchases": [ > > { > > "code": "V12026001" > > } > > ], > > "contracts": [ > > { > > "code": "VSK12026001" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Consulting services, July 2026", > > "price": "4500.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "25.5%" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ref": "100230", > > "credit_transfer": [ > > { > > "iban": "FI2112345600000785", > > "bic": "NDEAFIHH" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "percent": "100%" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FI", > > "$addons": [ > > "eu-en16931-v2017", > > "fi-finvoice-v3" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "0043", > > "issue_date": "2026-08-01", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Aurora Ohjelmistot Oy", > > "tax_id": { > > "country": "FI", > > "code": "26174164" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003726174164" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Mannerheimintie", > > "locality": "Helsinki", > > "code": "00100", > > "country": "FI" > > } > > ] > > }, > > "customer": { > > "name": "Suomen Valtion Virasto", > > "tax_id": { > > "country": "FI", > > "code": "54321096" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003754321096" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Snellmaninkatu", > > "locality": "Helsinki", > > "code": "00170", > > "country": "FI" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Consulting services, July 2026", > > "price": "4500.00", > > "unit": "one" > > }, > > "sum": "4500.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "25.5%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "4500.00" > > } > > ], > > "ordering": { > > "contracts": [ > > { > > "code": "VSK12026001" > > } > > ], > > "purchases": [ > > { > > "code": "V12026001" > > } > > ] > > }, > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-31", > > "amount": "5647.50", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "ref": "100230", > > "credit_transfer": [ > > { > > "iban": "FI2112345600000785", > > "bic": "NDEAFIHH" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "4500.00", > > "total": "4500.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "4500.00", > > "percent": "25.5%", > > "amount": "1147.50" > > } > > ], > > "amount": "1147.50" > > } > > ], > > "sum": "1147.50" > > }, > > "tax": "1147.50", > > "total_with_tax": "5647.50", > > "payable": "5647.50" > > } > > } > > ``` > > > [accordion] Example credit note > > > > In this example, we're issuing a credit note that corrects a previously issued invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, > > * the `preceding` array references the original invoice by its `series`, `code`, and `issue_date`, along with a `reason`, > > * the `payment` block is still present and complete; Finvoice requires the payment data on credit notes too, unlike most other European formats, and, > > * there are no calculations in some fields; these will be made automatically when uploading. > > > > ```json Finland credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["fi-finvoice-v3"], > > "type": "credit-note", > > "series": "SAMPLE-CN", > > "code": "0007", > > "issue_date": "2026-08-05", > > "currency": "EUR", > > "preceding": [ > > { > > "series": "SAMPLE", > > "code": "0042", > > "issue_date": "2026-08-01", > > "reason": "Partial refund for undelivered services" > > } > > ], > > "supplier": { > > "name": "Aurora Ohjelmistot Oy", > > "tax_id": { > > "country": "FI", > > "code": "26174164" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003726174164" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Mannerheimintie", > > "locality": "Helsinki", > > "code": "00100", > > "country": "FI" > > } > > ] > > }, > > "customer": { > > "name": "Pohjola Rakennus Oy", > > "tax_id": { > > "country": "FI", > > "code": "11223349" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003711223349" > > } > > ], > > "addresses": [ > > { > > "num": "8", > > "street": "Hämeenkatu", > > "locality": "Tampere", > > "code": "33100", > > "country": "FI" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Software development services", > > "price": "85.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "25.5%" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ref": "RF1310023", > > "credit_transfer": [ > > { > > "iban": "FI2112345600000785", > > "bic": "NDEAFIHH" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-19", > > "percent": "100%" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FI", > > "$addons": [ > > "eu-en16931-v2017", > > "fi-finvoice-v3" > > ], > > "type": "credit-note", > > "series": "SAMPLE-CN", > > "code": "0007", > > "issue_date": "2026-08-05", > > "currency": "EUR", > > "preceding": [ > > { > > "issue_date": "2026-08-01", > > "series": "SAMPLE", > > "code": "0042", > > "reason": "Partial refund for undelivered services" > > } > > ], > > "tax": { > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Aurora Ohjelmistot Oy", > > "tax_id": { > > "country": "FI", > > "code": "26174164" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003726174164" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Mannerheimintie", > > "locality": "Helsinki", > > "code": "00100", > > "country": "FI" > > } > > ] > > }, > > "customer": { > > "name": "Pohjola Rakennus Oy", > > "tax_id": { > > "country": "FI", > > "code": "11223349" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0216:003711223349" > > } > > ], > > "addresses": [ > > { > > "num": "8", > > "street": "Hämeenkatu", > > "locality": "Tampere", > > "code": "33100", > > "country": "FI" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Software development services", > > "price": "85.00", > > "unit": "one" > > }, > > "sum": "170.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "25.5%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "170.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-08-19", > > "amount": "213.35", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "ref": "RF1310023", > > "credit_transfer": [ > > { > > "iban": "FI2112345600000785", > > "bic": "NDEAFIHH" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "170.00", > > "total": "170.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "170.00", > > "percent": "25.5%", > > "amount": "43.35" > > } > > ], > > "amount": "43.35" > > } > > ], > > "sum": "43.35" > > }, > > "tax": "43.35", > > "total_with_tax": "213.35", > > "payable": "213.35" > > } > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇫🇮 Invopop resources for Finland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Finland](/compliance/finland) [Compliance timeline](/timelines/finland) | > | Apps | [Finland](/apps/finland) [Peppol](/apps/peppol) | > | Guides | [Supplier registration](/guides/fi-finvoice-supplier) [Issuing invoices](/guides/fi-finvoice) [Receiving invoices](/guides/fi-finvoice-receiving) [Peppol guide](/guides/peppol) | > | FAQ | [Finland FAQ](/faq/finland) | > | GOBL | [Finland Tax Regime](https://docs.gobl.org/regimes/fi) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.fi.finvoice](https://github.com/invopop/gobl.fi.finvoice) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Finland app → # France Source: https://docs.invopop.com/apps/france Manage French e-invoicing and e-reporting flows > [tab] Description > > > [card] [PA (Plateforme Agréée) Guide](/guides/fr-pa) > > > > View guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2G, B2C (e-reporting) | > | Country | [France](/compliance/france) | > > Invopop's **France app** centralises every French e-invoicing flow — domestic B2B via the **Plateforme Agréée (PA)** model. Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. > > **Key features** > > * Domestic B2B invoicing and B2C/cross-border via e-reporting. > * B2G invoicing through Chorus Pro with the same send workflow, and G2B reception. > * French format support: UBL (Peppol France CIUS), CII, Factur-X. > * Annuaire (French Directory) supplier registration. > * PA migrations: answer other platforms' takeover requests and take over lines from them. > > Check out the guides below to get started: > > * [PA overview](/guides/fr-pa) · [Registration](/guides/fr-pa-registration) · [Migrations](/guides/fr-pa-migrations) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) > > ## FAQ > > Invoicing questions > > > [accordion] How do I configure my workspace for French invoicing? > > > > Two channels depending on the recipient: B2G uses Chorus Pro (CII format); B2B from September 2026 uses the Plateforme Agréée model (UBL, CII, or Factur-X via Peppol). Invopop is an approved PA — install the France PA app for B2B and the Chorus Pro app for B2G. > > > [accordion] How can I view an XML attached to a PDF? > > > > In Factur-X PDFs, the XML file is embedded within the PDF itself. To extract and view it, use the `Attachments` section in Adobe Acrobat Reader, or a tool like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/). > > > [accordion] Is Invopop ready for the September 2026 mandate? > > > > Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. Registration, invoicing, and lifecycle status are available today; e-reporting (Flow 10) is in active development. See the [PA hub readiness matrix](/guides/fr-pa) for the current state. > > > [accordion] What GOBL addons are required for France PA? > > > > The base [FR tax regime](https://docs.gobl.org/regimes/fr) plus the EN 16931 profile. For Peppol delivery, `peppol-bis-v3`. The forthcoming `fr-ctc-flow10-v1` addon covers e-reporting payloads — separate from the e-invoicing flow. > > > [accordion] Is a self-billed invoice a different document type in France? > > > > No. Most Peppol countries treat self-billing as a document type of its own, but France models it as a **standard invoice** with the `untdid-document-type` extension set to `389`. In GOBL you never set the code yourself: add the `self-billed` tag and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1#standard-self-billed) add-on applies it automatically. See [Self-billing](/guides/fr-pa-invoicing#self-billing) for the full flow. > > > [accordion] How do I send a debit note in France? > > > > A debit note that is subject to VAT and carries all the mandatory invoice information is sent as a regular invoice: set `type` to `standard` and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on sets `untdid-document-type` to `380`. Don't use `corrective` (`384`) unless the document corrects a previous invoice. A debit note that isn't an invoice is out of scope, so there is nothing to send. See the [debit note example](/guides/fr-pa-invoicing#pa-b2b-debit-note-treated-as-invoice). > > > [accordion] Why was my VAT-exempt invoice never sent to the PPF? > > > > Transactions exempt under articles 261 to 261 E of the CGI — insurance, medical care, education and the rest of that range — sit outside the e-invoicing mandate, and the PPF rejects them if you deposit one. When an invoice's whole VAT breakdown is exempt and carries a `VATEX-FR-CGI261*` code, Invopop records it but sends no F1 and raises no lifecycle status, and the dashboard shows it as Exempt. Keep issuing the invoice to your customer as usual. An invoice that mixes exempt and taxable lines is still sent normally, and so is `VATEX-FR-FRANCHISE`. See [VAT-exempt invoices](/guides/fr-pa-invoicing#vat-exempt-invoices). > > > [accordion] How many pops does a B2B e-invoice through France PA cost? > > > > Each invoice or lifecycle status sent through France PA costs **5 pops**: 1 pop for the conversion to UBL/CII, 2 pops to send it over Peppol, 1 pop to forward it to the PPF, and 1 pop for the silo entry. See [Pops & pricing](/get-started/pricing) for how pops work. > > > [accordion] What does the record document step check against the Annuaire? > > > > Before an invoice is recorded, the record step (**Record outgoing document for e-invoicing** when sending, **Record incoming document for e-invoicing** when receiving) looks up both the supplier and the customer SIREN in the Annuaire. What each party must satisfy depends on the workflow's role: > > > > | Role | Annuaire state | Outcome | > > | - | - | - | > > | Both | The SIREN has no effective entry | **Rejected** | > > | Receiving | The SIREN has at least one effective entry | **Accepted** | > > | Sending | The SIREN's only entry is the PPF's default line (matricule `9998`) | **Accepted** | > > | Sending | The party's `0225` peppol endpoint matches one of the SIREN's entries | **Accepted** | > > | Sending | The party's `0225` peppol endpoint matches none of the SIREN's entries | **Rejected** | > > > > Sandbox invoices skip the Annuaire check entirely. > > > [accordion] What should I do if the customer isn't registered in the Annuaire? > > > > Don't block the sale. An exchange where only one party has an > > effective Annuaire entry is a > > [non-regulated flow](/guides/fr-pa#key-concepts): it leaves > > e-invoicing (flux 2) and is covered by > > [e-reporting](/guides/fr-pa-reporting) (flux 10) instead. > > > > In practice: > > > > * Run a [Directory lookup](/guides/fr-lookup) against the > > customer's SIREN before you generate the invoice — ideally in a > > separate validation workflow run against customer data, so you > > can prompt them to fix their registration ahead of time. > > * If the SIREN has no effective entry, route the invoice through > > your reporting workflow rather than the PA send workflow. > > * If it slips through, the send workflow degrades rather than > > failing: the **Verify document can be sent** step branches and > > forwards the invoice to the PPF as *déposée – non transmise*. > > > > A missing entry is common and not necessarily an error. A SIREN > > visible in the public > > [annuaire-entreprises](https://annuaire-entreprises.data.gouv.fr) > > registry is not the same as an effective entry in the DGFiP > > Annuaire, which only covers entities in scope of the mandate. It > > can also be absent because the buyer hasn't yet appointed a PA, or > > because their tax records don't match. > > > [accordion] Should I check the Annuaire at order time or at invoice time? > > > > Both, for different reasons. A lookup at order or onboarding time > > is a data-quality check: it lets you warn the customer and get > > their SIREN or PA sorted before invoicing. A lookup at invoice > > time is the one that decides the flow, because registrations are > > added and withdrawn continuously and a party found at checkout may > > no longer be routable days later (and vice versa). > > > > Treat the early result as advisory, resolve again at generation, > > and store the resolved electronic address on the transaction — > > the routing address isn't always the bare SIREN. See > > [Directory lookup](/guides/fr-lookup). > > > [accordion] How do I know whether an invoice is B2G? > > > > You don't decide it yourself. When the invoice is recorded, Invopop looks the customer up in the Annuaire: a party whose line is routed to Chorus Pro is a public entity, and the invoice is marked B2G. The **Is B2G?** workflow step reads that answer and branches to **Send to Chorus Pro** instead of Peppol. See the [public sector guide](/guides/fr-pa-b2g). > > > [accordion] Do I need a Chorus Pro account to invoice French public entities? > > > > Not if your company has a French SIREN and is registered in the Annuaire through Invopop. Invopop holds the connection with Chorus Pro, so B2G invoices use the same [send workflow](/guides/fr-pa-b2g#setup) as any other French invoice. Only foreign entities without a French SIREN still go through the standalone [Chorus Pro app](/apps/choruspro-france), which requires Chorus Pro credentials. > > > [accordion] Where do I put the service code and the numéro d'engagement on a B2G invoice? > > > > The service code (*code service* or *code routage*) is a `private-id` identity on the customer, and the commitment number (*numéro d'engagement juridique*) is the purchase order reference in `ordering.purchases[0].code`. Both are supplied by the public entity. The [public sector guide](/guides/fr-pa-b2g#what-a-public-buyer-needs) lists every field. > > > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > > > Recommended approach: > > > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > > * Fetch the generated XML and deliver it through the agreed channel, typically email > > > [accordion] How do I handle B2C invoices in Peppol? > > > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > > > [accordion] How do I handle 'Receiver Not Found' errors? > > > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > > > [accordion] Should I set the `$regime` field when using Peppol? > > > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > > > [accordion] Where do I find Peppol GOBL documentation? > > > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. > > Registering supplier questions > > > [accordion] How do I onboard a new supplier in France? > > > > For B2B PA flows: register the supplier via the France PA Register Party workflow (publishes the SIREN to the Annuaire and Peppol). For Chorus Pro: register the supplier with their SIRET on Chorus Pro's portal and link credentials in the Chorus Pro app. > > > [accordion] How are supplier credentials stored in Invopop for France? > > > > France PA does not require supplier-side certificates — Peppol uses Invopop's AP cert. Chorus Pro uses an OAuth token bound to the supplier's account; the token is encrypted at rest in Invopop. > > > [accordion] How do I register a supplier with France PA? > > > > Run the France PA Register Party workflow with the supplier's SIREN. Invopop publishes them to the Annuaire and the Peppol SMP — they are then routable for both invoicing and e-reporting through Invopop. > > > [accordion] My company already uses another Plateforme Agréée for one flow. Can I register with Invopop for another? > > > > Yes. This is a common setup, for example a company handling AR with one PA and AP with another. Run the [registration workflow](/guides/fr-pa-registration) with a SIREN and suffix of your choice for the flow you want Invopop to handle, such as `434061839_AR`. Invoices and statuses addressed to an entry are delivered to the platform that registered it, so the two flows never conflict and act fully independently. > > > [accordion] Can a supplier keep sending invoices through Invopop but receive them through another PA? > > > > Yes. Keep the existing Invopop registration for sending, and have the other PA register a new `SIREN_suffix` electronic address in the Annuaire and Peppol for receiving, such as `434061839_AP`. The supplier then gives that address to their own suppliers. > > > > Electronic addresses work like email addresses: > > > > * Invoices arrive at whichever address the sender uses, and are delivered to the PA that registered it. > > * Invoices you send from an address get their lifecycle status updates back at that same address. > > > > Invoices sent to the Invopop-registered address still reach Invopop, so make sure suppliers switch to the new one. > > > [accordion] Can I register a supplier to receive invoices without enabling e-reporting? > > > > Yes. Copy the PPF register supplier template and remove the **Register party for reporting** step. The party gets its Annuaire line and Peppol inbox and can receive invoices, but no reporting cadence starts. When its obligations begin, run the removed step against the party to complete the registration. See [Registering without e-reporting](/guides/fr-pa-registration#registering-without-e-reporting). > > > [accordion] What certificates does France PA require to authenticate a supplier? > > > > None at the supplier level. The Plateforme Agréée holds an OpenPeppol-issued mTLS certificate (Invopop's), and the PA-to-PPF channel uses additional DGFiP credentials managed by Invopop. > > > [accordion] Registration fails with 'Le SIREN en entrée n'existe pas...'. What does that mean? > > > > This error means the PPF has not yet referenced the SIREN in the annuaire de la facturation électronique. Before an accredited platform like Invopop can register a directory entry, the PPF has to list the SIREN first — even if the company is correctly registered and active with the tax administration, there may still be no directory entry for a PA to take over. > > > > The fix has to come from the tax administration, not from Invopop: > > > > 1. Confirm the business is in scope for the reform using the [PPF's questionnaire](https://www.impots.gouv.fr/facturation-electronique-qu-est-ce-que-ca-change-pour-moi). > > 2. If it's in scope but still missing from the directory, have the business or its accountant contact the Service des Impôts des Entreprises (SIE) that handles it and ask for the SIREN to be referenced in the annuaire. > > 3. For general questions about the reform, the DGFiP runs a free national helpline: 0 806 807 807. > > > > Invopop has no way to create the directory entry directly — only the SIE can. Once the supplier confirms the SIREN is referenced, re-run the [registration workflow](/guides/fr-pa-registration). > > > [accordion] Registration fails with 'has more than two parts, which would imply a routing code'. What does that mean? > > > > The party's `peppol` inbox `code` has three parts, such as `526018155_52601815500012_AP`. In the Annuaire, an address with a third part carries a routing code (*code routage*), which Invopop doesn't support. > > > > Use one of the supported forms instead: `SIREN`, `SIREN_SIRET`, or `SIREN_suffix`. If you need an address of your own alongside the company's other addresses, for example because you only issue invoices on its behalf, register a dedicated `SIREN_suffix` such as `526018155_PLATFORMNAME`. See [Choosing the electronic address](/guides/fr-pa-registration#choosing-the-electronic-address). > > > [accordion] How many pops does registering a merchant (seat) for France cost? > > > > It depends on the flows the merchant uses: > > > > * **E-invoicing (B2B)** — **150 pops** per merchant: 50 pops for the French directory (Annuaire) registration plus 100 pops for Peppol. > > * **E-reporting only (B2C or international B2B)** — **50 pops** per merchant to register the party for reporting. > > > > Each registered merchant counts as a seat: the same seat pops are deducted on registration and again every 30 days for as long as the merchant stays registered — see [Pops & pricing](/get-started/pricing) for how seats are billed. > > > [accordion] How do I register for a Peppol inbox in Invopop? > > > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > > > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > > > [accordion] How do I assign multiple inboxes to a single supplier? > > > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > > > [accordion] What are Participant IDs? > > > > Unique identifiers for entities on the Peppol network, made up of two parts: > > > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > > * **Code** — the actual identification number > > > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > > > [accordion] What visibility level should I set on my Peppol Party? > > > > Peppol Party visibility determines what you can send and receive: > > > > * `smp` — SMP only, for testing > > * `smp+sml` — SMP and SML, useful when you only want to send > > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > > > In general, use the highest visibility available. > > Receiving questions > > > [accordion] How do I import received invoices in France? > > > > Register the recipient with Invopop as their Plateforme Agréée. Inbound documents (UBL, CII, Factur-X) are converted to GOBL and stored in the Expenses folder. Chorus Pro inbound flow is separate and routes via the Chorus Pro app. > > > [accordion] How does Invopop convert received French invoices into GOBL? > > > > UBL via [`gobl.peppol`](https://github.com/invopop/gobl.peppol); CII and Factur-X via [`gobl.cii`](https://github.com/invopop/gobl.cii). The original structured XML (or PDF/A-3 with embedded XML) is preserved as a silo entry attachment. > > > [accordion] How do I import received invoices via France PA? > > > > Register the recipient via Invopop as their PA. Inbound UBL/CII/Factur-X documents are routed to the configured Import workflow and become GOBL silo entries. Lifecycle status updates (CDAR) feed back to the issuer through the same channel. > > > [accordion] What format do received France PA invoices arrive in? > > > > UBL, CII, or Factur-X (PDF with embedded CII XML), all conforming to EN 16931 and the French CTC profile. Invopop preserves the original and exposes the GOBL conversion. > > > [accordion] Can I receive invoices at more than one platform (PDP) for the same company? > > > > Yes. A single company can be reachable at several destinations by registering different routing identifiers (electronic addresses) in the Annuaire — one per PDP or inbox. Invoices addressed to a given identifier are delivered to the platform registered against it, so you can route some invoices to Invopop and others to a different PDP (for example a travel-and-expense tool) for the same SIREN. > > > > The Annuaire supports several address formats that map to increasingly granular destinations within the same company: > > > > * `SIREN` — the company as a whole. > > * `SIREN_SIRET` — a specific establishment. > > * `SIREN_SIRET_ROUTINGCODE` — a site, department, or workflow within an establishment. > > * `SIREN_SUFFIX` — a custom routing suffix. > > > > Give each PDP or inbox a distinct identifier and share the matching address with each issuer, so their invoices reach the intended destination. You can [look up an electronic address](/guides/fr-lookup) in the Annuaire to confirm where it currently routes. > > > [accordion] What is checked before a received invoice is recorded? > > > > An invoice arriving from another platform goes through three controls, run in the order the PPF applies them: > > > > * **Syntax** — the invoice XML against the Flux 2 schematron for its syntax. > > * **Addressing** — both parties carry a SIREN registered in the Annuaire, the transport addresses belong to the parties the invoice names, and the invoice is addressed to a party registered in your workspace. > > * **Unicity** — the invoice is not already recorded for this party, number and year. > > > > An invoice that passes every control is recorded on the receiving side. Only invoices are validated this way; incoming lifecycle statuses are simply recorded. > > > [accordion] What reason does a rejected invoice come back with? > > > > Each control rejects under its own CDAR motif, carried on the [`213` Rejetée](/guides/fr-pa-status#issued-by-the-platform) status returned to the platform that sent the invoice: > > > > * `REJ_SEMAN` — *rejet pour erreur sémantique*, when the invoice fails the Flux 2 schematron. > > * `ADR_ERR` — *adresse de facturation électronique erronée*, when the addressing control fails. > > * `REJ_UNI` — *rejet sur contrôle unicité*, when the invoice is already recorded. > > > [accordion] How do I import received invoices via Peppol? > > > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > > > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > > > [accordion] How are incoming Peppol documents converted into GOBL? > > > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. > > Reporting questions > > > [accordion] How do I schedule periodic reports for France? > > > > For TVA, file via DGFiP's portal — Invopop does not generate CA3 yet. For e-reporting (Flow 10): submit via your Plateforme Agréée — Invopop's e-reporting workflow batches transactions per period and submits to the PPF. > > > [accordion] What format does France expect for periodic reports? > > > > TVA: DGFiP's EDI-TVA XML schema. E-reporting Flow 10: a structured JSON/XML payload defined by the PPF specification (currently in beta). Invopop emits Flow 10 via the upcoming `fr-ctc-flow10-v1` GOBL addon. > > > [accordion] How often must I submit France PA reports? > > > > Flow 10 e-reporting: 3× per month (every 10 days) for B2C and cross-border transactions. Lifecycle status (CDAR): per event, near real-time. Specific deadlines depend on the supplier's tax filing cadence (monthly/quarterly). > > > [accordion] What format does France PA expect for periodic reports? > > > > Flow 10 uses a JSON envelope wrapping aggregated transaction data, defined in the PPF technical specification. Lifecycle CDAR payloads are XML messages exchanged over Peppol with structured status codes. > > > [accordion] How many pops does e-reporting in France cost? > > > > Recording a transaction for e-reporting (B2C or international B2B) costs **2 pops** per invoice: 1 pop to record it and 1 pop for the silo entry. On top of that, each report submission costs **10 pops**. See [Pops & pricing](/get-started/pricing) for how pops work. > > > [accordion] A buyer has refused an invoice (210 Refusée). What happens next? > > > > A refusal cancels the invoice. It can't be corrected, re-sent, or > > revived — the transaction has to be re-invoiced from scratch, and the > > refusal is reported to the DGFiP. > > > > | Who | What they do | > > | - | - | > > | **Buyer** | Refuses with a reason code, and does not book the invoice (or reverses the entry if already booked). Their input VAT for the period drops accordingly. | > > | **Supplier** | Reverses the invoice in their own accounts with an internal credit note (*avoir interne*), which stays internal and is never sent. Adjusts output VAT for the period. | > > | **Supplier** | Fixes the underlying problem, then issues a replacement as a new invoice with a new number. The refused number is never reused. | > > | **Invopop** | Records the refusal against the original invoice, passes the reason code back to you, and forwards the mandatory copy to the PPF. | > > > > **Refusal is not a dispute.** It is reserved for a short list of > > grounds: a legal or contractual omission the platforms don't check > > (a missing PO reference, for instance), a transaction the buyer > > doesn't recognise, or an objective contractual block. Disagreement > > over price, quantity, or delivery is a dispute — the invoice stays > > in force and payable while the parties sort it out. Expect buyers to > > reach for "refuse" when they mean "contest", and give them a > > separate path if you're building the UI. > > > > **Payment terms restart.** The replacement invoice carries its own > > due date, so agree explicitly with the counterparty how late-payment > > penalties are treated across the gap rather than assuming the > > original clock survives. > > > > **Most refusals are preventable.** The common grounds trace back to > > the mandatory mentions: buyer SIREN, delivery address where it > > differs from billing, nature of the operation, and any PO reference > > the buyer requires. Getting those right on issue removes most of the > > exposure. > > More answers in our [France FAQ](/faq/france) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app. > > Plateforme Agréée — registration > > > [card] Register in Annuaire > > > > 50/mo > > Register a party in the French Annuaire so they can issue and receive regulated e-invoices. > > > [card] Register party on Peppol > > > > 100/mo > > Register the party on the Peppol network for transport. > > > [card] Register reporter > > > > 50/mo > > Enable the party for periodic e-reporting to the PPF. > > > [card] Disable in Annuaire > > > > Remove a party's Annuaire registration. > > > [card] Disable reporter > > > > Disable a party's e-reporting registration. > > > [card] Sign PPF agreement > > > > Generate the PPF agreement the party must sign to authorise Invopop as their Plateforme Agréée. > > > [card] Wait for PPF agreement upload > > > > Wait until the signed PPF agreement has been uploaded and approved. > > > [card] Lookup in Directory > > > > Look up a party or document in the Annuaire to determine whether it is in scope for regulated e-invoicing. > > Plateforme Agréée — migration > > > [card] Start migration > > > > Publish the form where the company accepts or refuses another PA's request to take over its Annuaire address. See the [migrations guide](/guides/fr-pa-migrations). > > > [card] Wait for migration approval > > > > Wait for the company's answer, accepting the request automatically after 5 business days. Ends with code `accepted` or `rejected`. > > > [card] Complete migration > > > > Send the MOBILITY\_RESPONSE for the address to the requesting PA, with the Peppol migration key when one was issued. > > Plateforme Agréée — invoicing > > > [card] Record invoice > > > > 1 > > Record the invoice in the directory ahead of transmission and PPF reporting. > > > [card] Generate UBL document > > > > 1 > > Generate a Peppol France CIUS UBL invoice or credit note from a GOBL document. > > > [card] Generate CII document > > > > 1 > > Generate a UN/CEFACT CII XML document from a GOBL invoice. > > > [card] Send Peppol document > > > > 2 > > Send the generated document over the Peppol network to the buyer's PA. > > > [card] Forward invoice to PPF > > > > 1 > > Forward the simplified F1 invoice to the PPF as the fifth corner. > > > [card] Import Peppol document > > > > 3 > > Import an inbound Peppol document into the workflow. > > > [card] Import UBL document > > > > 1 > > Parse an inbound UBL document into a GOBL invoice. > > > [card] Import CII document > > > > 1 > > Parse an inbound UN/CEFACT CII document into a GOBL invoice. > > > [card] Import Factur-X PDF > > > > 1 > > Extract the embedded CII XML from a Factur-X PDF/A-3 and parse it into GOBL. > > Plateforme Agréée — status > > > [card] Generate CDAR > > > > Build a Cross Domain Acknowledgement and Response document for lifecycle status updates. > > > [card] Record status > > > > Persist a lifecycle status update in the directory. > > > [card] Forward status to PPF > > > > 1 > > Forward a lifecycle status to the PPF for regulated flows. > > > [card] Import status > > > > 1 > > Import an inbound lifecycle status from the network and attach it to the invoice. > > Plateforme Agréée — reporting > > > [card] Record document for reporting > > > > 1 > > Record an invoice or payment for periodic e-reporting (Flux 10). See the [reporting guide](/guides/fr-pa-reporting). > > > [card] Unrecord document from reporting > > > > Remove a document from the pending records so it can be corrected and recorded again. > > > [card] Generate reporting document > > > > 10 > > Bundle the records of a closed reporting window into a single Flux 10 report. Run automatically on the regime cadence. > > > [card] Send reporting document to PPF > > > > Send the generated Flux 10 report to the PPF. > > Chorus Pro (B2G) > > > [card] Is B2G? > > > > Check whether the customer is a public entity so the document is routed to Chorus Pro instead of Peppol. > > > [card] Send to Chorus Pro > > > > 1 > > Send an invoice, payment or status to Chorus Pro for a public-sector customer. > > > [card] Receive document from Chorus Pro > > > > 1 > > Receive an inbound document or status from Chorus Pro into the workflow. > [tab] Workflows > > Plateforme Agréée — invoicing > > > [accordion] PA send invoice > > > > ```json PPF send document workflow theme={"system"} > > { > > "name": "PPF send document", > > "description": "Send an invoice, status or payment via Peppol and record it with PPF", > > "steps": [ > > { > > "id": "72bc5070-1a17-11f1-a82f-e740c226ef51", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "f5aaed10-13c9-11f1-98a6-7dfa4cb26122", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "bf2c86b0-8127-11f1-9e29-9d2d7ab31d21", > > "name": "Document is an invoice?", > > "provider": "silo.if", > > "next": [ > > { > > "status": "NA", > > "code": "true", > > "steps": [ > > { > > "id": "1b5850d0-13bf-11f1-bc3b-b99ec414b63d", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol France CIUS v1", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "peppol-fr-cius", > > "private": false, > > "validate_ubl": false > > } > > } > > ] > > }, > > { > > "status": "NA", > > "code": "false", > > "steps": [ > > { > > "id": "e30aa7b0-8127-11f1-9e29-9d2d7ab31d21", > > "name": "Generate CDAR Status", > > "provider": "cii.generate", > > "summary": "France CTC Flow 6 CDAR (lifecycle status/payment)", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "fr-ctc-cdar-flow6", > > "validate_cii": false > > } > > } > > ] > > } > > ], > > "config": { > > "expr": "doc['$schema'] endsWith 'bill/invoice'", > > "scope": "env" > > } > > }, > > { > > "id": "f1e30fa0-13c9-11f1-98a6-7dfa4cb26122", > > "name": "Record outgoing document for e-invoicing", > > "provider": "gov-fr.directory.record.outgoing" > > }, > > { > > "id": "e7f2da30-9d6b-11f1-b2d5-9fc4b0622900", > > "name": "Verify document can be sent", > > "provider": "peppol.validate.endpoint", > > "next": [ > > { > > "code": "true", > > "steps": [ > > { > > "id": "062087a0-9d6c-11f1-b2d5-9fc4b0622900", > > "name": "Send Peppol document", > > "provider": "peppol.send" > > }, > > { > > "id": "ff644960-9d6b-11f1-b2d5-9fc4b0622900", > > "name": "Forward document to PPF", > > "provider": "gov-fr.directory.forward" > > } > > ] > > }, > > { > > "code": "false", > > "steps": [ > > { > > "id": "03120f20-9d6c-11f1-b2d5-9fc4b0622900", > > "name": "Forward document to PPF", > > "provider": "gov-fr.directory.forward", > > "summary": "Forward to PPF (déposée – non transmise)", > > "config": { > > "not_transmitted": true > > } > > } > > ] > > } > > ] > > }, > > { > > "id": "80a9d5e0-1a17-11f1-a82f-e740c226ef51", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `completed`{.state .completed}", > > "config": { > > "state": "completed" > > } > > } > > ], > > "rescue": [ > > { > > "id": "892a8070-1a17-11f1-a82f-e740c226ef51", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] PA receive invoice > > > > ```json PPF receive document workflow theme={"system"} > > { > > "name": "PPF receive document", > > "description": "Receive an invoice, status or payment via Peppol, run the PPF recording controls over invoices, and raise a 213 for the ones that fail", > > "steps": [ > > { > > "id": "db61c3c0-0fb5-11f0-b078-9fc456829eca", > > "name": "Import Peppol document", > > "provider": "peppol.import", > > "next": [ > > { > > "status": "NA", > > "code": "UBL", > > "steps": [ > > { > > "id": "62e94570-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Import UBL document", > > "provider": "ubl.import" > > } > > ] > > }, > > { > > "status": "NA", > > "code": "CII", > > "steps": [ > > { > > "id": "6480ae50-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Import CII document", > > "provider": "cii.import" > > } > > ] > > }, > > { > > "status": "NA", > > "code": "PDF", > > "steps": [ > > { > > "id": "26ba4f80-1e2a-11f1-8bfb-2beaa1df60f0", > > "name": "Import Factur-X PDF", > > "provider": "cii.pdf.import" > > } > > ] > > } > > ], > > "notes": "Receives the Peppol document and returns the format in a code (UBL/CII/PDF)" > > }, > > { > > "id": "300f8fe6-c186-11f1-8514-9200076c507e", > > "name": "Record incoming document for e-invoicing", > > "provider": "gov-fr.directory.record.incoming", > > "summary": "Validate and record incoming document" > > }, > > { > > "id": "9c15ac60-7b8c-11f1-bf7f-e1e339678581", > > "name": "Document is invoice?", > > "provider": "silo.if", > > "next": [ > > { > > "code": "true", > > "steps": [ > > { > > "id": "ab7e1200-7b8c-11f1-bf7f-e1e339678581", > > "name": "Set Folder", > > "provider": "silo.folder", > > "next": [], > > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > > "config": { > > "folder": "expenses" > > } > > } > > ] > > } > > ], > > "summary": "", > > "config": { > > "expr": "$schema endsWith \"bill/invoice\"", > > "scope": "doc" > > }, > > "notes": "Checks for bill/invoice document" > > }, > > { > > "id": "dd14a3e0-0fb5-11f0-b078-9fc456829eca", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `received`{.state .received}", > > "config": { > > "state": "received" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e109d2e0-0fb5-11f0-b078-9fc456829eca", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] Factur-X invoice > > > > ```json Factur-X issue invoice workflow theme={"system"} > > { > > "name": "Factur-X issue invoice", > > "description": "Generate a Factur-X invoice (PDF with embedded CII)", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "bd7eb640-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "58fb4ce0-6626-11f0-b9ab-1bbe1fa4398c", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "3548d720-6623-11f0-b3db-e7255a5da07c", > > "name": "Generate CII document", > > "provider": "cii.generate", > > "summary": "Factur-X v1", > > "config": { > > "doc_type": "facturx-v1" > > } > > }, > > { > > "id": "56bda1e0-8ef7-11f0-aa0e-dd7c69b95f3c", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "French · A4", > > "config": { > > "logo_height": 40, > > "locale": "fr", > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "scripting": false > > } > > }, > > { > > "id": "c6192a60-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "c94982c0-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Plateforme Agréée — party > > > [accordion] PA register party > > > > ```json PPF register supplier workflow theme={"system"} > > { > > "name": "PPF register supplier", > > "description": "Register a supplier with the French Directory and Peppol", > > "schema": "org/party", > > "steps": [ > > { > > "id": "0adf46e0-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Sign PPF agreement", > > "provider": "gov-fr.agreement.sign", > > "notes": "Generates the PA mandate to authorize Invopop to act on behalf of the supplier" > > }, > > { > > "id": "0e44b900-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "12aaf950-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Wait for PPF agreement upload", > > "provider": "gov-fr.agreement.wait.approval", > > "notes": "Pauses until the signed agreement is uploaded and accepted" > > }, > > { > > "id": "b194f710-5451-11f1-baf5-4f2c2882107f", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `completed`{.state .completed}", > > "config": { > > "state": "completed" > > } > > }, > > { > > "id": "d10a4680-1e29-11f1-8bfb-2beaa1df60f0", > > "name": "Register party in Directory", > > "provider": "gov-fr.directory.register", > > "notes": "Submits the SIREN to the French Annuaire for invoice routing" > > }, > > { > > "id": "7a5a4db0-0fae-11f0-b37b-0be1c251a274", > > "name": "Register party on Peppol", > > "provider": "peppol.register", > > "summary": "Enabled · groups: france", > > "config": { > > "directory": true, > > "disable": false, > > "doc_groups": [ > > "france" > > ], > > "visibility": "smp+sml+peppol" > > }, > > "notes": "Publishes the party, enabling Peppol routing for sending and receiving" > > }, > > { > > "id": "b523ae4a-7b39-4410-abaa-b03a4e33f7bd", > > "name": "Register party for reporting", > > "provider": "gov-fr.reporting.register", > > "notes": "Registers the SIREN for reporting" > > }, > > { > > "id": "7c2fa9f0-0fae-11f0-b37b-0be1c251a274", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "a34e83f0-25dc-11f0-b641-350e77c28eed", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] PA deregister party > > > > ```json PPF unregister supplier workflow theme={"system"} > > { > > "name": "PPF unregister supplier", > > "description": "Unregister a supplier from Peppol and the French Directory", > > "schema": "org/party", > > "steps": [ > > { > > "id": "453beac0-70a7-11f1-aca9-697108ec55ef", > > "name": "Unregister supplier from Peppol", > > "provider": "peppol.unregister" > > }, > > { > > "id": "13c84e60-5452-11f1-baf5-4f2c2882107f", > > "name": "Disable party in Directory", > > "provider": "gov-fr.directory.disable" > > }, > > { > > "id": "c91ae086-f830-425b-b67c-72af00efc22c", > > "name": "Disable party for reporting", > > "provider": "gov-fr.reporting.disable" > > }, > > { > > "id": "1b8a6b80-5452-11f1-baf5-4f2c2882107f", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "23e0d3a0-5452-11f1-baf5-4f2c2882107f", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > Parties > > > [accordion] Supplier > > > > A French party ready for the PA flows: a SIREN identity with `iso-scheme-id` `0002`, a `0225` Peppol inbox matching the SIREN, and a French address. > > > > ```json France supplier example expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Marseille Commerce SAS", > > "tax_id": { > > "country": "FR", > > "code": "83526018155" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "526018155", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "people": [ > > { > > "name": { > > "given": "Claire", > > "surname": "Moreau" > > }, > > "role": "Directrice" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "526018155" > > } > > ], > > "addresses": [ > > { > > "num": "25", > > "street": "Avenue des Champs-Élysées", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@marseillecommerce.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200300" > > } > > ] > > } > > ``` > > > [accordion] Customer > > > > The receiving side of a domestic PA invoice — same requirements as the supplier: SIREN identity (`0002`), matching `0225` Peppol inbox, and a French address. > > > > ```json France customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Grande Distribution SA", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "40", > > "street": "Boulevard du Commerce", > > "locality": "Paris", > > "code": "75012", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@grandedistribution.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200400" > > } > > ] > > } > > ``` > > Plateforme Agréée (Flow 2) example invoices > > > [accordion] PA B2B invoice (domestic) > > > > A regulated B2B invoice between two French parties, both registered in the Annuaire. The [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on drives validation for the PA e-invoicing flow. > > > > Notice: > > > > * both parties carry a `SIREN` identity with `iso-scheme-id` `0002` and a `peppol` inbox under scheme `0225` so the workflow can route via Peppol, > > * `fr-ctc-billing-mode` `S1` marks the standard submission (*dépôt*) of a services invoice; `untdid-document-type` `380` confirms the commercial invoice type, > > * the `payment`, `payment-method`, and `payment-term` notes carry the French legal-mention text (penalty clauses, late-payment terms, early-payment discount), each tagged with the appropriate UNTDID 4451 subject code, > > * `ordering.code` records the customer's purchase order reference. > > > > ```json PA B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-00001", > > "issue_date": "2024-06-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200300" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "356000000" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200400" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Services de conseil", > > "price": "100.00", > > "unit": "h" > > }, > > "discounts": [ > > { > > "percent": "10%", > > "reason": "Remise fidelite" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "ordering": { > > "code": "PO-2024-001" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ] > > }, > > "terms": { > > "detail": "Paiement a 30 jours" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-00001", > > "issue_date": "2024-06-13", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:732829320" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200300" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200400" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Services de conseil", > > "price": "100.00", > > "unit": "h" > > }, > > "sum": "1000.00", > > "discounts": [ > > { > > "reason": "Remise fidelite", > > "percent": "10%", > > "amount": "100.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "900.00" > > } > > ], > > "ordering": { > > "code": "PO-2024-001" > > }, > > "payment": { > > "terms": { > > "notes": "Paiement a 30 jours" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "900.00", > > "total": "900.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "900.00", > > "percent": "20%", > > "amount": "180.00" > > } > > ], > > "amount": "180.00" > > } > > ], > > "sum": "180.00" > > }, > > "tax": "180.00", > > "total_with_tax": "1080.00", > > "payable": "1080.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA B2B invoice (building subcontracting, autoliquidation) > > > > A domestic B2B invoice for construction works supplied by a subcontractor to a taxable main contractor. Because both parties are French, this stays in the PA e-invoicing flow ([`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1)) even though it carries no VAT — it is not e-reporting. > > > > Notice: > > > > * the VAT combo uses the `reverse-charge` key, which sets `untdid-tax-category` `AE` and produces a `0.00` VAT total, with no tax rate or amount on the line, > > * the `reverse-charge` note text is set explicitly to cite **article 283-2 nonies** (subcontracting); left to the regime default it would cite the generic article 283-1, > > * `fr-ctc-billing-mode` is `S1` — a plain services submission: the reverse charge is carried entirely by the VAT key and note. `S5` (subcontractor invoice) applies only to subcontracting with payment delegation (*paiement direct*), which is not the case here, > > * the reverse charge only applies where the customer is a taxable person — invoicing a non-taxable property owner would carry standard VAT instead. > > > > ```json PA B2B Reverse Charge Invoice (Subcontracting) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "$tags": [ > > "reverse-charge" > > ], > > "type": "standard", > > "series": "ST", > > "code": "2026-00001", > > "issue_date": "2026-09-15", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "380" > > }, > > "notes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "text": "Autoliquidation – TVA due par le preneur, article 283-2 nonies du CGI." > > } > > ] > > }, > > "supplier": { > > "name": "Plomberie Dupont SARL", > > "tax_id": { > > "country": "FR", > > "code": "303265045" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "303265045" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Rue des Artisans", > > "locality": "Lyon", > > "code": "69003", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Bâtiment Martin SA", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "5", > > "street": "Avenue de la Construction", > > "locality": "Villeurbanne", > > "code": "69100", > > "country": "FR" > > } > > ] > > }, > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2026-10-15", > > "amount": "10000.00" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189" > > } > > ] > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Travaux de plomberie en sous-traitance", > > "price": "10000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "$tags": [ > > "reverse-charge" > > ], > > "type": "standard", > > "series": "ST", > > "code": "2026-00001", > > "issue_date": "2026-09-15", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "380" > > }, > > "notes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "text": "Autoliquidation – TVA due par le preneur, article 283-2 nonies du CGI.", > > "ext": { > > "untdid-tax-category": "AE" > > } > > } > > ] > > }, > > "supplier": { > > "name": "Plomberie Dupont SARL", > > "tax_id": { > > "country": "FR", > > "code": "40303265045" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:303265045" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "303265045" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Rue des Artisans", > > "locality": "Lyon", > > "code": "69003", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Bâtiment Martin SA", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:732829320" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "5", > > "street": "Avenue de la Construction", > > "locality": "Villeurbanne", > > "code": "69100", > > "country": "FR" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Travaux de plomberie en sous-traitance", > > "price": "10000.00", > > "unit": "one" > > }, > > "sum": "10000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "10000.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2026-10-15", > > "amount": "10000.00" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "10000.00", > > "total": "10000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "untdid-tax-category": "AE" > > }, > > "base": "10000.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "10000.00", > > "payable": "10000.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Conditions de paiement selon les conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA B2B credit note > > > > A credit note that partially cancels a previously issued PA invoice. The `preceding` array references the original invoice by series, code, and issue date. > > > > Notice: > > > > * `type` is `credit-note` and `untdid-document-type` is `381` (commercial credit note), > > * the `preceding` block makes the link to the original invoice explicit — required for PA matching at the PPF. > > > > ```json PA B2B Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "type": "credit-note", > > "series": "AV", > > "code": "2024-001", > > "issue_date": "2024-06-20", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "381" > > } > > }, > > "preceding": [ > > { > > "type": "standard", > > "series": "FAC", > > "code": "2024-001", > > "issue_date": "2024-06-13" > > } > > ], > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "356000000" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Services de conseil - Annulation partielle", > > "price": "100.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "type": "credit-note", > > "series": "AV", > > "code": "2024-001", > > "issue_date": "2024-06-20", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2024-06-13", > > "series": "FAC", > > "code": "2024-001" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:732829320" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Services de conseil - Annulation partielle", > > "price": "100.00", > > "unit": "h" > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "200.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "200.00", > > "percent": "20%", > > "amount": "40.00" > > } > > ], > > "amount": "40.00" > > } > > ], > > "sum": "40.00" > > }, > > "tax": "40.00", > > "total_with_tax": "240.00", > > "payable": "240.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA B2B debit note (treated as invoice) > > > > A debit note that is subject to VAT and carries all the mandatory invoice information, such as re-invoicing shared site costs to a joint-venture partner, must be sent as a regular e-invoice. Issue it as a standard invoice. > > > > Notice: > > > > * `type` is `standard`, so the add-on sets `untdid-document-type` to `380`. Flux 2 has no separate debit-note type, and [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) has no `debit-note` scenario, > > * don't use `corrective` (`384`) unless the document actually corrects a previous invoice. A corrected invoice needs a `preceding` reference, > > * debit notes that are not invoices (no VAT, just a statement of an amount owed) are out of scope for both e-invoicing and e-reporting, so there is nothing to send, > > * if the buyer issues the debit note for an amount the seller owes them, the seller issues a [credit note](/guides/fr-pa-invoicing#pa-b2b-credit-note) instead, or the buyer issues a self-billed credit note (`261`) using the `self-billed` tag (see [Self-billing](/guides/fr-pa-invoicing#self-billing)). > > > > ```json PA B2B debit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "ND", > > "code": "2026-00001", > > "issue_date": "2026-09-30", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S1" > > } > > }, > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200300" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "356000000" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200400" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Refacturation quote-part frais de chantier – co-entreprise", > > "price": "4250.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Refacturation quote-part frais de gardiennage – co-entreprise", > > "price": "780.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ] > > }, > > "terms": { > > "detail": "Paiement a 30 jours" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "ND", > > "code": "2026-00001", > > "issue_date": "2026-09-30", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:732829320" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200300" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ], > > "telephones": [ > > { > > "num": "+33100200400" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Refacturation quote-part frais de chantier – co-entreprise", > > "price": "4250.00", > > "unit": "one" > > }, > > "sum": "4250.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "4250.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Refacturation quote-part frais de gardiennage – co-entreprise", > > "price": "780.00", > > "unit": "one" > > }, > > "sum": "780.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "780.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Paiement a 30 jours" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "5030.00", > > "total": "5030.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "5030.00", > > "percent": "20%", > > "amount": "1006.00" > > } > > ], > > "amount": "1006.00" > > } > > ], > > "sum": "1006.00" > > }, > > "tax": "1006.00", > > "total_with_tax": "6036.00", > > "payable": "6036.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA B2B advance payment invoice > > > > An advance (down-payment) invoice — used when a payment is collected before the final goods or services are delivered. > > > > Notice: > > > > * the `prepayment` tag sets `untdid-document-type` to `386` (advance payment invoice), > > * no billing mode is set explicitly: the add-on defaults `fr-ctc-billing-mode` to `M1` (submission of a mixed invoice — here a service plus a good); the advance nature is carried by the document type, not the billing mode, > > * the final invoice issued at delivery normally references this advance to net it off the total. > > > > ```json PA B2B Advance Payment Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "$tags": [ > > "prepayment" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-AV-001", > > "issue_date": "2024-06-01", > > "currency": "EUR", > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "356000000" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Acompte - Projet de developpement", > > "price": "5000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Acompte - Serveur de developpement (materiel)", > > "price": "2000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ] > > }, > > "terms": { > > "detail": "Paiement immediat" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "$tags": [ > > "prepayment" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-AV-001", > > "issue_date": "2024-06-01", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "M1", > > "untdid-document-type": "386" > > } > > }, > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:732829320" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Acompte - Projet de developpement", > > "price": "5000.00", > > "unit": "one" > > }, > > "sum": "5000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "5000.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Acompte - Serveur de developpement (materiel)", > > "price": "2000.00", > > "unit": "one" > > }, > > "sum": "2000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "2000.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Paiement immediat" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "7000.00", > > "total": "7000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "7000.00", > > "percent": "20%", > > "amount": "1400.00" > > } > > ], > > "amount": "1400.00" > > } > > ], > > "sum": "1400.00" > > }, > > "tax": "1400.00", > > "total_with_tax": "8400.00", > > "payable": "8400.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA B2B final invoice (after down payment) > > > > The final invoice that closes out the advance example above: the full contract is invoiced, and the down payment already billed (`FAC 2024-AV-001`) is netted off the total. > > > > Notice: > > > > * `fr-ctc-billing-mode` is pinned to `M4` (mixed, final invoice after down payment); left unset it would default back to `M1`, > > * flow 2 forbids advance-payment document types (386, 500, 503) on final invoices, so `untdid-document-type` stays `380` (BR-FR-CO-08), > > * `payment.advances` records the 8,400.00 already paid, referencing the advance invoice — `totals.due` comes out to the remaining 12,000.00, > > * the due-date payment terms cover only the outstanding balance. > > > > ```json PA B2B Final Invoice (After Advance) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-00107", > > "issue_date": "2024-07-15", > > "currency": "EUR", > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "356000000" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Projet de developpement - prestation complete", > > "price": "15000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Serveur de developpement (materiel)", > > "price": "2000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ] > > }, > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2024-08-15", > > "amount": "12000.00" > > } > > ] > > }, > > "advances": [ > > { > > "description": "Acompte verse - facture FAC 2024-AV-001", > > "amount": "8400.00" > > } > > ] > > }, > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "M4" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-00107", > > "issue_date": "2024-07-15", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "M4", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Fournisseur Example SARL", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:732829320" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Client Example SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "456", > > "street": "Avenue des Champs-Elysees", > > "locality": "Paris", > > "code": "75008", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "comptabilite@client.fr" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Projet de developpement - prestation complete", > > "price": "15000.00", > > "unit": "one" > > }, > > "sum": "15000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "15000.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Serveur de developpement (materiel)", > > "price": "2000.00", > > "unit": "one" > > }, > > "sum": "2000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "2000.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2024-08-15", > > "amount": "12000.00" > > } > > ] > > }, > > "advances": [ > > { > > "description": "Acompte verse - facture FAC 2024-AV-001", > > "amount": "8400.00" > > } > > ], > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur Example SARL" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "17000.00", > > "total": "17000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "17000.00", > > "percent": "20%", > > "amount": "3400.00" > > } > > ], > > "amount": "3400.00" > > } > > ], > > "sum": "3400.00" > > }, > > "tax": "3400.00", > > "total_with_tax": "20400.00", > > "payable": "20400.00", > > "advance": "8400.00", > > "due": "12000.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est offert pour paiement anticipe.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA B2B invoice after a B2C sale (VAT already collected) > > > > A restaurant cashes in a B2C sale — VAT is collected on the spot and reported through [e-reporting](/guides/fr-pa-reporting) — and the guest's company then asks for a proper invoice. That B2B invoice still travels the flux 2 e-invoicing flow, but must be marked so the VAT is not declared twice. > > > > Notice: > > > > * `fr-ctc-billing-mode` is pinned to `S7` (services, VAT already collected): the VAT was already reported with the B2C sale, so this invoice must not re-declare it. Left unset, the add-on would default to an already-paid mode and the VAT would be counted twice, > > * `B7` is the goods counterpart — e.g. retail goods sold over the counter and invoiced to a business afterwards, > > * the 100% advance records the on-site card payment, leaving `totals.due` at `0.00`, > > * restaurant meals carry the intermediate 10% VAT rate. > > > > ```json PA B2B Invoice After B2C Sale (VAT Collected) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2026-00318", > > "issue_date": "2026-09-18", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S7" > > } > > }, > > "supplier": { > > "name": "Le Bistrot du Marché SARL", > > "tax_id": { > > "country": "FR", > > "code": "303265045" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "303265045" > > } > > ], > > "addresses": [ > > { > > "num": "18", > > "street": "Rue du Marché", > > "locality": "Lyon", > > "code": "69002", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Conseil & Associés SAS", > > "tax_id": { > > "country": "FR", > > "code": "356000000" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "9", > > "street": "Place Bellecour", > > "locality": "Lyon", > > "code": "69002", > > "country": "FR" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "4", > > "item": { > > "name": "Repas d'affaires - menu du jour", > > "price": "42.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "intermediate" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Réglé sur place par carte bancaire", > > "percent": "100%" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2026-00318", > > "issue_date": "2026-09-18", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "S7", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Le Bistrot du Marché SARL", > > "tax_id": { > > "country": "FR", > > "code": "40303265045" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:303265045" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "303265045" > > } > > ], > > "addresses": [ > > { > > "num": "18", > > "street": "Rue du Marché", > > "locality": "Lyon", > > "code": "69002", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Conseil \u0026 Associés SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "9", > > "street": "Place Bellecour", > > "locality": "Lyon", > > "code": "69002", > > "country": "FR" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "4", > > "item": { > > "name": "Repas d'affaires - menu du jour", > > "price": "42.00", > > "unit": "one" > > }, > > "sum": "168.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "intermediate", > > "percent": "10%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "168.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Réglé sur place par carte bancaire", > > "percent": "100%", > > "amount": "184.80" > > } > > ] > > }, > > "totals": { > > "sum": "168.00", > > "total": "168.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "168.00", > > "percent": "10%", > > "amount": "16.80" > > } > > ], > > "amount": "16.80" > > } > > ], > > "sum": "16.80" > > }, > > "tax": "16.80", > > "total_with_tax": "184.80", > > "payable": "184.80", > > "advance": "184.80", > > "due": "0.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Conditions de paiement selon les conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA B2B self-billed invoice (autofacturation) > > > > A domestic B2B invoice issued by the customer on behalf of the supplier under a self-billing (autofacturation) agreement. Self-billed invoices between two French parties still travel through the PA e-invoicing flow ([`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1)). > > > > Notice: > > > > * the `self-billed` tag sets `untdid-document-type` to `389` (self-billed invoice) — supplier and customer keep their real commercial roles, the tag records that the customer produced the document, > > * the PA validation flips the routing check on self-billed types: it is the **customer**, as issuer, that must carry the `0225` inbox matching its SIREN, > > * the `legal` note carries the mandatory *Autofacturation* mention, auto-tagged with `untdid-text-subject` `ABL`; the standard French payment mentions (PMT, PMD, AAB) are filled with regime defaults at build time, > > * the reduced 5.5% VAT rate applies to the foodstuffs being supplied. > > > > ```json PA B2B Self-Billed Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1" > > ], > > "$tags": [ > > "self-billed" > > ], > > "type": "standard", > > "series": "AF", > > "code": "2026-00042", > > "issue_date": "2026-09-30", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "B1" > > } > > }, > > "supplier": { > > "name": "Ferme de la Vallée SARL", > > "tax_id": { > > "country": "FR", > > "code": "303265045" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "303265045" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Chemin des Vergers", > > "locality": "Avignon", > > "code": "84000", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Grande Distribution SA", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "40", > > "street": "Boulevard du Commerce", > > "locality": "Paris", > > "code": "75012", > > "country": "FR" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "500", > > "item": { > > "name": "Légumes de saison - livraison septembre", > > "price": "2.40", > > "unit": "kg" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "legal", > > "text": "Autofacturation - facture établie par le client au nom et pour le compte du fournisseur." > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2026-10-30", > > "amount": "1266.00" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1" > > ], > > "$tags": [ > > "self-billed" > > ], > > "type": "standard", > > "series": "AF", > > "code": "2026-00042", > > "issue_date": "2026-09-30", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "B1", > > "untdid-document-type": "389" > > } > > }, > > "supplier": { > > "name": "Ferme de la Vallée SARL", > > "tax_id": { > > "country": "FR", > > "code": "40303265045" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:303265045" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "303265045" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Chemin des Vergers", > > "locality": "Avignon", > > "code": "84000", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Grande Distribution SA", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:732829320" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "40", > > "street": "Boulevard du Commerce", > > "locality": "Paris", > > "code": "75012", > > "country": "FR" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "500", > > "item": { > > "name": "Légumes de saison - livraison septembre", > > "price": "2.40", > > "unit": "kg" > > }, > > "sum": "1200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "5.5%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1200.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2026-10-30", > > "amount": "1266.00" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "1200.00", > > "total": "1200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1200.00", > > "percent": "5.5%", > > "amount": "66.00" > > } > > ], > > "amount": "66.00" > > } > > ], > > "sum": "66.00" > > }, > > "tax": "66.00", > > "total_with_tax": "1266.00", > > "payable": "1266.00" > > }, > > "notes": [ > > { > > "key": "legal", > > "text": "Autofacturation - facture établie par le client au nom et pour le compte du fournisseur.", > > "ext": { > > "untdid-text-subject": "ABL" > > } > > }, > > { > > "key": "payment", > > "text": "Conditions de paiement selon les conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] Factur-X B2B invoice > > > > A domestic B2B invoice destined for Factur-X output — a human-readable PDF with the UN/CEFACT CII XML embedded (the French implementation of the same specification as ZUGFeRD). It combines the [`fr-facturx-v1`](https://docs.gobl.org/addons/fr-facturx-v1) add-on for the Factur-X format with [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1), so the same document is also valid for the PA e-invoicing flow. > > > > Notice: > > > > * the two add-ons compose: `fr-facturx-v1` drives the Factur-X output while `fr-ctc-flow2-v1` applies the PA validation; the `eu-en16931-v2017` profile they share is added automatically as a dependency, > > * each party declares only a `SIRET` identity — at build time the regime derives the legal `SIREN` identity (`iso-scheme-id` `0002`) from it, next to the `0225` Peppol inboxes required for PA routing, > > * `fr-ctc-billing-mode` is `S2` (services, already paid) because the 100% advance settles the invoice at issue; that mode requires payment terms whose due dates cover the total, leaving `totals.due` at `0.00`, > > * the French payment mentions (PMT, PMD, AAB) are filled with regime defaults at build time. > > > > ```json Factur-X B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1", > > "fr-facturx-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S2" > > } > > }, > > "supplier": { > > "name": "Provide One SARL", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "498927917" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Avenue des Ternes", > > "locality": "Paris", > > "code": "75017", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%" > > } > > ], > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2025-06-18", > > "amount": "1944.00" > > } > > ] > > }, > > "instructions": { > > "key": "card", > > "card": {} > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1", > > "fr-facturx-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "S2", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One SARL", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734", > > "ext": { > > "iso-scheme-id": "0009" > > } > > }, > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "498927917", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:498927917" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "498927917" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Avenue des Ternes", > > "locality": "Paris", > > "code": "75017", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345", > > "ext": { > > "iso-scheme-id": "0009" > > } > > }, > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2025-06-18", > > "amount": "1944.00" > > } > > ] > > }, > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1944.00" > > } > > ], > > "instructions": { > > "key": "card", > > "card": {}, > > "ext": { > > "untdid-payment-means": "48" > > } > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "20%", > > "amount": "324.00" > > } > > ], > > "amount": "324.00" > > } > > ], > > "sum": "324.00" > > }, > > "tax": "324.00", > > "total_with_tax": "1944.00", > > "payable": "1944.00", > > "advance": "1944.00", > > "due": "0.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Conditions de paiement selon les conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > E-reporting (Flow 10) example documents > > > [accordion] PA intra-community B2B invoice > > > > A French supplier invoicing a customer in another EU member state. Cross-border B2B is **not** transmitted via the PA e-invoicing flow — it falls under [e-reporting](/guides/fr-pa-reporting) instead — but the same GOBL document is used as the source of truth for both. > > > > Notice: > > > > * the customer carries a DE tax ID and a generic email inbox rather than a Peppol address, > > * the VAT combo uses the `intra-community` key, which sets `untdid-tax-category` `K` automatically; the `cef-vatex` `VATEX-EU-IC` exemption reason marks the intra-community supply, > > * the [`fr-ctc-flow10-v1`](https://docs.gobl.org/addons/fr-ctc-flow10-v1) add-on validates the document for the periodic e-report to the PPF. > > > > ```json PA Cross-Border B2B Invoice (FR → DE) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow10-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-INT-001", > > "issue_date": "2024-06-15", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Fournisseur France SARL", > > "tax_id": { > > "country": "FR", > > "code": "732829320" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Kunde Deutschland GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "inboxes": [ > > { > > "email": "buchhaltung@kunde.de" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Berliner Strasse", > > "locality": "Berlin", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "buchhaltung@kunde.de" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "5", > > "item": { > > "name": "Consulting services", > > "price": "200.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "payment", > > "text": "A fixed penalty of 40 EUR will apply to any late payment.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Late payment penalties apply as per our general terms of sale.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "No discount offered for early payment.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur France SARL" > > } > > ] > > }, > > "terms": { > > "detail": "Payment within 30 days" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow10-v1" > > ], > > "type": "standard", > > "series": "FAC", > > "code": "2024-INT-001", > > "issue_date": "2024-06-15", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Fournisseur France SARL", > > "tax_id": { > > "country": "FR", > > "code": "44732829320" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "732829320", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "732829320" > > } > > ], > > "addresses": [ > > { > > "num": "123", > > "street": "Rue de la Paix", > > "locality": "Paris", > > "code": "75001", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "facturation@fournisseur.fr" > > } > > ] > > }, > > "customer": { > > "name": "Kunde Deutschland GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "DE111111125", > > "ext": { > > "iso-scheme-id": "0223" > > } > > } > > ], > > "inboxes": [ > > { > > "email": "buchhaltung@kunde.de" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Berliner Strasse", > > "locality": "Berlin", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "buchhaltung@kunde.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Consulting services", > > "price": "200.00", > > "unit": "h" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1000.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189", > > "name": "Fournisseur France SARL" > > } > > ] > > } > > }, > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > }, > > "base": "1000.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1000.00", > > "payable": "1000.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "A fixed penalty of 40 EUR will apply to any late payment.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Late payment penalties apply as per our general terms of sale.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "No discount offered for early payment.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] PA cross-border self-billed invoice > > > > A cross-border sale by a French supplier where the German customer issues the invoice under a self-billing agreement. Like all cross-border B2B, it is not transmitted through the PA e-invoicing flow — the French supplier reports the sale via [e-reporting](/guides/fr-pa-reporting) (Flux 10.1), validated by the [`fr-ctc-flow10-v1`](https://docs.gobl.org/addons/fr-ctc-flow10-v1) add-on. > > > > Notice: > > > > * the `self-billed` tag records that the customer issued the document; the e-reporting obligation stays with the French supplier, who includes the sale in its periodic Flux 10 submission, > > * Flow 10 has no dedicated self-billed document code — `untdid-document-type` stays `380`, unlike e-invoicing where the tag maps to `389`, > > * the intra-community VAT combo (`untdid-tax-category` `K`, `cef-vatex` `VATEX-EU-IC`) zero-rates the supply, as in the other cross-border example. > > > > ```json PA Cross-Border Self-Billed Invoice (FR → DE) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow10-v1" > > ], > > "$tags": [ > > "self-billed" > > ], > > "type": "standard", > > "series": "AF", > > "code": "2026-INT-007", > > "issue_date": "2026-09-30", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "B1" > > } > > }, > > "supplier": { > > "name": "Domaine de la Vallée SARL", > > "tax_id": { > > "country": "FR", > > "code": "303265045" > > }, > > "identities": [ > > { > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Chemin des Vergers", > > "locality": "Avignon", > > "code": "84000", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Weinhandel München GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "inboxes": [ > > { > > "email": "buchhaltung@weinhandel.de" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Weinstrasse", > > "locality": "München", > > "code": "80331", > > "country": "DE" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "120", > > "item": { > > "name": "Côtes du Rhône 2024 (carton de 6)", > > "price": "45.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "legal", > > "text": "Autofacturation - facture établie par le client au nom et pour le compte du fournisseur." > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189" > > } > > ] > > }, > > "terms": { > > "detail": "Paiement à 30 jours" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow10-v1" > > ], > > "$tags": [ > > "self-billed" > > ], > > "type": "standard", > > "series": "AF", > > "code": "2026-INT-007", > > "issue_date": "2026-09-30", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "B1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Domaine de la Vallée SARL", > > "tax_id": { > > "country": "FR", > > "code": "40303265045" > > }, > > "identities": [ > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "303265045", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Chemin des Vergers", > > "locality": "Avignon", > > "code": "84000", > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Weinhandel München GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "identities": [ > > { > > "scope": "legal", > > "code": "DE111111125", > > "ext": { > > "iso-scheme-id": "0223" > > } > > } > > ], > > "inboxes": [ > > { > > "email": "buchhaltung@weinhandel.de" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Weinstrasse", > > "locality": "München", > > "code": "80331", > > "country": "DE" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "120", > > "item": { > > "name": "Côtes du Rhône 2024 (carton de 6)", > > "price": "45.00", > > "unit": "item" > > }, > > "sum": "5400.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "5400.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Paiement à 30 jours" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "FR7630006000011234567890189" > > } > > ] > > } > > }, > > "totals": { > > "sum": "5400.00", > > "total": "5400.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > }, > > "base": "5400.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "5400.00", > > "payable": "5400.00" > > }, > > "notes": [ > > { > > "key": "legal", > > "text": "Autofacturation - facture établie par le client au nom et pour le compte du fournisseur." > > } > > ] > > } > > ``` > > > [accordion] Domestic B2C payment > > > > A cashed-in receipt from a domestic B2C transaction. Domestic B2C payments aggregate by `(date, currency)` and are rate-agnostic at the bucket level, so the tax breakdown lives directly on each line rather than on a referenced invoice. > > > > Notice: > > > > * `type` is `receipt` and `method.key` `credit-transfer` records how the money was received, > > * no `customer` is set — domestic B2C payments don't need counterparty identification, > > * `lines[i].document` is omitted on purpose: a line without a `document` reference is what classifies the payment as domestic B2C; a line with one would route it to international B2B instead, > > * `lines[i].tax.categories[...].rates[...]` carries the VAT base, percent and amount directly on each line, since domestic B2C buckets aggregate by `(date, currency)` and don't reference an underlying invoice. > > > > ```json FR B2C Payment (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "FR", > > "type": "receipt", > > "method": { > > "key": "credit-transfer" > > }, > > "series": "B", > > "code": "PAY-B2C-001", > > "issue_date": "2026-04-15", > > "value_date": "2026-04-15", > > "currency": "EUR", > > "supplier": { > > "name": "Bistrot Lyon SAS", > > "tax_id": { > > "country": "FR", > > "code": "50522465228" > > }, > > "addresses": [ > > { > > "country": "FR" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "amount": "600.00", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "500.00", > > "percent": "20%", > > "amount": "100.00" > > } > > ], > > "amount": "100.00" > > } > > ], > > "sum": "100.00" > > } > > } > > ], > > "total": "600.00" > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "FR", > > "type": "receipt", > > "series": "B", > > "code": "PAY-B2C-001", > > "issue_date": "2026-04-15", > > "value_date": "2026-04-15", > > "currency": "EUR", > > "supplier": { > > "name": "Bistrot Lyon SAS", > > "tax_id": { > > "country": "FR", > > "code": "50522465228" > > }, > > "addresses": [ > > { > > "country": "FR" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "amount": "600.00", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "500.00", > > "percent": "20%", > > "amount": "100.00" > > } > > ], > > "amount": "100.00" > > } > > ], > > "sum": "100.00" > > } > > } > > ], > > "methods": [ > > { > > "key": "credit-transfer", > > "amount": "600.00" > > } > > ], > > "total": "600.00" > > } > > ``` > > > [accordion] International B2B payment > > > > A cross-border B2B payment settling a previously issued invoice — here, Bistrot Lyon SAS cashing in from German customer Müller GmbH. International B2B payments report per-payment detail and require the counterparty identification plus a link to the underlying invoice. > > > > Notice: > > > > * `customer` is populated with the foreign counterparty (DE tax ID), > > * `lines[i].document` references the invoice being settled by `code` and `issue_date` — this is both how `gov-fr.reporting.record` classifies the payment as international B2B and how GOBL allocates the cashed amount across the original invoice's tax rates, > > * if the referenced invoice had mixed VAT rates and this payment only partially settles it, GOBL splits the cash proportionally across rates at calculation time — you don't write that math. > > > > ```json FR Intl B2B Payment (minimal) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "FR", > > "type": "receipt", > > "method": { > > "key": "credit-transfer" > > }, > > "series": "B", > > "code": "PAY-DE-001", > > "issue_date": "2026-04-20", > > "value_date": "2026-04-20", > > "currency": "EUR", > > "supplier": { > > "name": "Bistrot Lyon SAS", > > "tax_id": { > > "country": "FR", > > "code": "50522465228" > > }, > > "addresses": [ > > { > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Müller GmbH", > > "tax_id": { > > "country": "DE", > > "code": "136695976" > > }, > > "addresses": [ > > { > > "country": "DE" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "document": { > > "type": "standard", > > "series": "B", > > "code": "INTL-DE-APR-001", > > "issue_date": "2026-04-20" > > }, > > "amount": "2400.00", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "2000.00", > > "percent": "20%", > > "amount": "400.00" > > } > > ], > > "amount": "400.00" > > } > > ], > > "sum": "400.00" > > } > > } > > ], > > "total": "2400.00" > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "FR", > > "type": "receipt", > > "series": "B", > > "code": "PAY-DE-001", > > "issue_date": "2026-04-20", > > "value_date": "2026-04-20", > > "currency": "EUR", > > "supplier": { > > "name": "Bistrot Lyon SAS", > > "tax_id": { > > "country": "FR", > > "code": "50522465228" > > }, > > "addresses": [ > > { > > "country": "FR" > > } > > ] > > }, > > "customer": { > > "name": "Müller GmbH", > > "tax_id": { > > "country": "DE", > > "code": "136695976" > > }, > > "addresses": [ > > { > > "country": "DE" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "document": { > > "type": "standard", > > "issue_date": "2026-04-20", > > "series": "B", > > "code": "INTL-DE-APR-001" > > }, > > "amount": "2400.00", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "2000.00", > > "percent": "20%", > > "amount": "400.00" > > } > > ], > > "amount": "400.00" > > } > > ], > > "sum": "400.00" > > } > > } > > ], > > "methods": [ > > { > > "key": "credit-transfer", > > "amount": "2400.00" > > } > > ], > > "total": "2400.00" > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the France app → # Google Drive Source: https://docs.invopop.com/apps/google-drive Automatically upload invoices and documents to Google Drive > [tab] Description > > > [card] [Google Drive](#quick-guide) > > > > View quick guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Storage | > > The Google Drive app allows you to automatically upload your invoices and documents to a Google Drive folder of your choice. This integration makes it easy to maintain organized backups of your billing documents in the cloud. > > #### Key features > > * **Automatic uploads:** Automatically upload invoice PDFs and other attachments to Google Drive as part of your workflows. > * **Folder selection:** Choose exactly which Google Drive folder to store your documents using the built-in folder picker. > * **Workflow integration:** Add the Google Drive step to any workflow to automatically store generated documents. > * **Secure authentication:** Connect your Google account securely through OAuth authentication. > > #### Quick guide > > To enable this app: > > 1. Navigate to the **Apps** section in the Invopop Console. > 2. Enable the **Google Drive** app. > 3. Click **Configure** to link your Google account to your workspace. > 4. Authorize Invopop to access your Google Drive. > > Add to a workflow: > > 1. Create or edit a workflow in the Console. > 2. Add the **Upload to Google Drive** step near the end of your workflow. This allows files to be generated or received before syncing with Google Drive. > 3. Use the folder picker to select the destination folder in your Google Drive. > 4. Save and publish your workflow. > > When jobs are processed through the workflow, any attachments (such as PDF invoices or XML files) will be automatically uploaded to your selected Google Drive folder. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Upload to Google Drive > > > > Upload documents and attachments to a specified Google Drive folder. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Google Drive App → # ILYDA Greece Source: https://docs.invopop.com/apps/ilyda-greece Submit invoices to the Greek IAPR via the myDATA platform. > [tab] Description > > > [card] [Register suppliers](/guides/gr-iapr-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/gr-iapr) > > > > Issuing guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C | > | Country | [Greece](/compliance/greece) | > > The [IAPR](https://www.aade.gr/en) in Greece stands for *Independent Authority for Public Revenue* (Ανεξάρτητη Αρχή Δημοσίων Εσόδων). It is the government agency responsible for managing tax collection and overseeing the myDATA platform, Greece's standardized electronic invoicing and bookkeeping system. > > The myDATA (My Digital Accounting and Tax Application) platform enables businesses to report invoices and accounting data in real time, ensuring compliance with Greek tax regulations. The system validates invoice data and assigns a unique identifier (MARK) to each transaction, automatically generating electronic accounting books. > > Invopop has partnered with [ILYDA](https://ilyda.gr) to issue invoices in Greece. Each supplier must be registered with ILYDA to issue invoices on their behalf. This involves authorizing ILYDA as an electronic invoicing provider in Taxisnet, declaring ILYDA as invoice issuer in myDATA, and signing a service provision agreement with ILYDA. > > **Key features** > > * **Workflow automation:** This app provides automated workflows for issuing invoices and credit notes through the IAPR system via myDATA. > * **Real-time reporting:** Every invoice is reported to myDATA in real time, ensuring compliance with Greek e-invoicing regulations. > * **MARK assignment:** Invoices receive a unique MARK (Μοναδικός Αριθμός Καταχώρησης) identifier from the IAPR system. > * **ILYDA integration:** Direct integration with ILYDA, an authorized technology provider for IAPR electronic invoicing. > * **EN 16931 compliance:** Compliant XML generation is supported for the Greek EN 16931 CIUS schema. > * **QR code:** Generates the myDATA QR code according to the IAPR specifications. > * **White-label:** the process allows issuance on behalf of clients (white-label) or directly as an organization, according to user needs. > > Check out our [Supplier registration guide](/guides/gr-iapr-supplier) for onboarding suppliers, and the [Issuing invoices guide](/guides/gr-iapr) for instructions on how to issue invoices and set up your workflows. > > ## FAQ > > Invoicing questions > > > [accordion] What's the workflow for issuing myDATA invoices? > > > > Build a GOBL invoice with the `gr-mydata-v1` addon, run the IAPR Issue Invoice workflow. Invopop signs and transmits via ILYDA, retrieves the MARK identifier, and stores it on the silo entry. > > > [accordion] How do I configure my workspace for Greek invoicing? > > > > Install the ILYDA Greece app, register the supplier (one provider at a time per VAT — see our FAQ), and run invoices through the IAPR workflow. PDFs are generated alongside the myDATA submission. > > > [accordion] How are Greek invoice types specified? > > > > The Greek tax authority (IAPR) requires the invoice type to be specified as part of the invoice. In [GOBL](https://docs.gobl.org), this type can be set using the `gr-mydata-invoice-type` extension in the tax section and setting the [GOBL invoice type](https://docs.gobl.org/draft-0/bill/invoice) to other. > > > > Alternatively, GOBL will set the extension for you based on the type and the tax tags you set in your [GOBL invoice](https://docs.gobl.org/draft-0/bill/invoice). You can read more in the [GOBL Greece Tax Regime readme](https://github.com/invopop/gobl/blob/main/regimes/gr/README.md). > > > > If you produce a PDF version of the invoice, the invoice type label will be displayed instead of "Invoice". > > > [accordion] Where can I find the mapping of GOBL fields to myDATA? > > > > For further details on how GOBL prepares data for conversion, see the [Greek Tax Regime](https://github.com/invopop/gobl/blob/main/regimes/gr/README.md). > > > [accordion] Why is my credit note being rejected with 'Invoice not found' error? > > > > If you issue a credit note shortly after the invoice it refers to, the MyDATA system may reject it because the original invoice hasn't completed synchronization. You'll typically see an error like: > > > > ``` > > Fatal error 301: Invoice with ΜΑΡΚ xxxx not found for VAT number xxxx > > ``` > > > > This happens because there can be a delay between when an invoice is accepted by MyDATA and when it becomes fully available for reference by other documents like credit notes. This delay can range from a few minutes to several hours, depending on MyDATA system load. > > > > **Solution**: If you receive this error, retry issuing the credit note after waiting some time. You may need to wait anywhere from a few minutes to several hours for the original invoice to be fully synchronized in the MyDATA system before the credit note can successfully reference it. > > > [accordion] How do I issue invoices from a branch (υποκατάστημα)? > > > > Set the [`gr-mydata-branch`](https://docs.gobl.org/addons/gr-mydata-v1#branch-number) extension on the supplier party to the branch's establishment number from the AADE registry. When the extension is absent, invoices report the headquarters branch (`0`). The same extension works on the customer party. See the branch invoice example in the [myDATA invoicing guide](/guides/gr-iapr#send-an-invoice). > > > [accordion] Where do I find Greece-specific GOBL documentation? > > > > See the [Greece tax regime in GOBL](https://docs.gobl.org/regimes/gr) for tax categories and AFM rules. The myDATA mapping lives in [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) including all invoice type codes. > > Registering supplier questions > > > [accordion] How do I register a supplier with myDATA? > > > > Contact Invopop to begin the onboarding flow with ILYDA. Production registration is multi-step: the supplier authorizes ILYDA in Taxisnet, declares ILYDA as their issuer in myDATA, and signs ILYDA's service agreement, then onboards with Invopop. Sandbox uses a shared pre-registered test AFM (`177472438`) — no manual steps required. > > > [accordion] What credentials does myDATA require to authenticate a supplier? > > > > No supplier-side certificates. ILYDA submits to myDATA on the supplier's behalf using its provider credentials, authorized by the supplier through Taxisnet. The supplier holds only their Taxisnet username/password. > > > [accordion] How are supplier credentials stored in Invopop for Greece? > > > > Suppliers don't upload credentials to Invopop — ILYDA holds the IAPR submission credentials on the supplier's behalf based on the Taxisnet authorization. Only the AFM and registration metadata are stored in Invopop. > > > [accordion] How do I de-register a supplier from myDATA? > > > > The provider authorization is managed by the supplier in Taxisnet, so de-registration happens there: the supplier logs in to [myTaxisnet](https://www1.gsis.gr/taxisnet/mytaxisnet), opens the **Authorizations** ("Εξουσιοδοτήσεις") section, and revokes ILYDA's authorization — or replaces it by authorizing a different e-invoicing provider if they are migrating. There is no automated de-registration flow in Invopop, so also notify [support@invopop.com](mailto:support@invopop.com) to complete the offboarding with ILYDA. > > > [accordion] Is re-registering a supplier different from a new registration? > > > > No — the process is the same. Registration and re-registration are both handled manually through Invopop support, so a previously de-registered supplier follows the [supplier registration guide](/guides/gr-iapr-supplier) again from the start: re-authorize ILYDA in Taxisnet and send the supplier's details to [support@invopop.com](mailto:support@invopop.com). > > More answers in our [Greece FAQ](/faq/greece) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send invoice to myDATA > > > > 5 > > Send GOBL invoices to the Greek IAPR via ILYDA eInvoicing. > > > [card] Register ILYDA issuer > > > > Register a supplier as an issuer with ILYDA so invoices can be sent to myDATA on their behalf. > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] IAPR Greece invoice workflow > > > > This workflow automates Greek invoice processing and tax compliance through myDATA. > > > > ```json myDATA issue invoice workflow theme={"system"} > > { > > "name": "myDATA issue invoice", > > "description": "Issue an invoice to myDATA via ILYDA", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "883baa10-abd5-11ef-8b96-dd5de8906f90", > > "name": "Set state", > > "config": { > > "state": "processing" > > }, > > "summary": "Set state to `processing`{.state .processing}", > > "provider": "silo.state" > > }, > > { > > "id": "e9fad100-abd4-11ef-8b96-dd5de8906f90", > > "name": "Add sequential code", > > "config": { > > "name": "IAPR Invoices", > > "start": 1, > > "padding": 3 > > }, > > "summary": "Dynamic · IAPR · 1", > > "provider": "sequence.enumerate" > > }, > > { > > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "649aca50-9064-11ef-8f9e-39835766d0bc", > > "name": "Send invoice to myDATA", > > "provider": "ilyda.send" > > }, > > { > > "id": "6f77ad10-a32b-11ef-9707-79bbd71238cd", > > "name": "Set state", > > "config": { > > "state": "sent" > > }, > > "summary": "Set state to `sent`{.state .sent}", > > "provider": "silo.state" > > } > > ], > > "rescue": [ > > { > > "id": "e8c9c0a0-a32a-11ef-9707-79bbd71238cd", > > "name": "Set state", > > "config": { > > "state": "error" > > }, > > "summary": "Set state to `error`{.state .error}", > > "provider": "silo.state" > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=gr-iapr-invoice) > [tab] Documents > > > [accordion] IAPR Greece supplier > > > > A Greek TIN under the `EL` tax country code. The code shown here is the pre-enabled sandbox test supplier. > > > > ```json Greece supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > } > > ``` > > > [accordion] IAPR Greece customer > > > > A business customer with an `EL` TIN and a Greek address. > > > > ```json Greece customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "841442160" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Οδός Πανεπιστημίου", > > "locality": "Αθήνα", > > "code": "10671", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "accounting@techsolutions.gr" > > } > > ] > > } > > ``` > > > [accordion] Example service invoice (B2B) > > > > In this example, we're issuing a simple services invoice from a Greek supplier to another Greek business customer. > > > > Notice: > > > > * we've added the [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) addon; this ensures the document will be validated and normalized using the myDATA v1 rules built into the [GOBL](https://docs.gobl.org) library, > > * we've set the `services` tag; this makes the addon set the [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) extension automatically to `2.1` (service invoice), > > * similarly, the `credit-transfer` payment method will cause the addon to set the [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) extension to `1` (credit transfer), > > * we added a charge for a special fee (tourist accommodation fee), using the [`gr-mydata-fee`](https://docs.gobl.org/addons/gr-mydata-v1#fee-category) extension, > > * the specific income category and type are set using the [`gr-mydata-income-cat`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-category) extension and the [`gr-mydata-income-type`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-type) extension respectively, > > * only [VAT rates](https://docs.gobl.org/regimes/el#vat-rates) (`standard`) have been specified; percentages and values for the [`gr-mydata-vat-rate`](https://docs.gobl.org/addons/gr-mydata-v1#vat-rate) extension will be set automatically, and, > > * optionally, we've set the [`gr-mydata-branch`](https://docs.gobl.org/addons/gr-mydata-v1#branch-number) extension on the supplier to report the branch (establishment number in the AADE registry) issuing the invoice; when absent, branch `0` (headquarters) is reported, and the same extension can be set on the customer, and, > > * there are no totals or calculations; all these will be made automatically when uploading. > > > > ```json B2B Services Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "services", > > "simplified" > > ], > > "series": "XXGR", > > "supplier": { > > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "ext": { > > "gr-mydata-branch": "2" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > }, > > "customer": { > > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "841442160" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Οδός Πανεπιστημίου", > > "locality": "Αθήνα", > > "code": "10671", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "accounting@techsolutions.gr" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "3", > > "item": { > > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > > "price": "180.00", > > "unit": "day", > > "ext": { > > "gr-mydata-income-cat": "category1_3", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "discounts": [ > > { > > "reason": "Εταιρική Έκπτωση", > > "percent": "10%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "charges": [ > > { > > "reason": "Τέλος διαμονής παρεπιδημούντων", > > "amount": "21.00", > > "ext": { > > "gr-mydata-fee": "18" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "EL", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "services", > > "simplified" > > ], > > "type": "standard", > > "series": "XXGR", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "gr-mydata-invoice-type": "11.2" > > } > > }, > > "supplier": { > > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ], > > "ext": { > > "gr-mydata-branch": "2" > > } > > }, > > "customer": { > > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "841442160" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Οδός Πανεπιστημίου", > > "locality": "Αθήνα", > > "code": "10671", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "accounting@techsolutions.gr" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "3", > > "item": { > > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > > "price": "180.00", > > "unit": "day", > > "ext": { > > "gr-mydata-income-cat": "category1_3", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "sum": "540.00", > > "discounts": [ > > { > > "reason": "Εταιρική Έκπτωση", > > "percent": "10%", > > "amount": "54.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "24%", > > "ext": { > > "gr-mydata-vat-rate": "1" > > } > > } > > ], > > "total": "486.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "reason": "Τέλος διαμονής παρεπιδημούντων", > > "amount": "21.00", > > "ext": { > > "gr-mydata-fee": "18", > > "gr-mydata-tax-type": "2" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "gr-mydata-payment-means": "1" > > } > > } > > }, > > "totals": { > > "sum": "486.00", > > "charge": "21.00", > > "total": "507.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "gr-mydata-vat-rate": "1" > > }, > > "base": "486.00", > > "percent": "24%", > > "amount": "116.64" > > } > > ], > > "amount": "116.64" > > } > > ], > > "sum": "116.64" > > }, > > "tax": "116.64", > > "total_with_tax": "623.64", > > "payable": "623.64" > > } > > } > > ``` > > > [accordion] Example retail sales receipt (B2C) > > > > In this example, we're issuing a simple goods invoice from a Greek supplier to a Greek final consumer. > > > > Notice: > > > > * we've set the `goods` and the `simplified` tags; this makes the addon set the [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) extension automatically to `11.1` (retail sales receipt), > > * similarly, the `cash` payment method will cause the addon to set the [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) extension to `3` (cash), > > * the specific income category and type are set using the [`gr-mydata-income-cat`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-category) extension and the [`gr-mydata-income-type`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-type) extension respectively, > > * only [VAT rates](https://docs.gobl.org/regimes/el#vat-rates) (`standard`) or keys (`exempt`) have been specified; percentages and values for the [`gr-mydata-vat-rate`](https://docs.gobl.org/addons/gr-mydata-v1#vat-rate) extension will be set automatically > > * the exemption cause is set using the [`gr-mydata-exemption`](https://docs.gobl.org/addons/gr-mydata-v1#vat-exemption-cause) extension, and, > > * there are no totals or calculations; all these will be made automatically when uploading. > > > > ```json B2C Goods Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "goods", > > "simplified" > > ], > > "series": "XXGR", > > "supplier": { > > "name": "Ελληνικά Τρόφιμα Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "12", > > "street": "Λεωφόρος Βουλιαγμένης", > > "locality": "Αθήνα", > > "code": "11636", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "hellenicfoods@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "50", > > "item": { > > "name": "Ελαιόλαδο Extra Virgin 1L", > > "price": "12.50", > > "unit": "unit", > > "ext": { > > "gr-mydata-income-cat": "category1_1", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "discounts": [ > > { > > "reason": "Έκπτωση Όγκου", > > "percent": "10%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Βιβλία Μαγειρικής", > > "price": "15.00", > > "ext": { > > "gr-mydata-income-cat": "category1_1", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "gr-mydata-exemption": "7" > > } > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "cash" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "EL", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "goods", > > "simplified" > > ], > > "type": "standard", > > "series": "XXGR", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "gr-mydata-invoice-type": "11.1" > > } > > }, > > "supplier": { > > "name": "Ελληνικά Τρόφιμα Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "12", > > "street": "Λεωφόρος Βουλιαγμένης", > > "locality": "Αθήνα", > > "code": "11636", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "hellenicfoods@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "50", > > "item": { > > "name": "Ελαιόλαδο Extra Virgin 1L", > > "price": "12.50", > > "unit": "unit", > > "ext": { > > "gr-mydata-income-cat": "category1_1", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "sum": "625.00", > > "discounts": [ > > { > > "reason": "Έκπτωση Όγκου", > > "percent": "10%", > > "amount": "62.50" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "13%", > > "ext": { > > "gr-mydata-vat-rate": "2" > > } > > } > > ], > > "total": "562.50" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Βιβλία Μαγειρικής", > > "price": "15.00", > > "ext": { > > "gr-mydata-income-cat": "category1_1", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "sum": "15.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "gr-mydata-exemption": "7", > > "gr-mydata-vat-rate": "7" > > } > > } > > ], > > "total": "15.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "cash", > > "ext": { > > "gr-mydata-payment-means": "3" > > } > > } > > }, > > "totals": { > > "sum": "577.50", > > "total": "577.50", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "gr-mydata-vat-rate": "2" > > }, > > "base": "562.50", > > "percent": "13%", > > "amount": "73.13" > > }, > > { > > "key": "exempt", > > "ext": { > > "gr-mydata-exemption": "7", > > "gr-mydata-vat-rate": "7" > > }, > > "base": "15.00", > > "amount": "0.00" > > } > > ], > > "amount": "73.13" > > } > > ], > > "sum": "73.13" > > }, > > "tax": "73.13", > > "total_with_tax": "650.63", > > "payable": "650.63" > > } > > } > > ``` > > > [accordion] Example accommodation + climate fee invoice (B2C) > > > > In this example, we're issuing a retail sales receipt for a hotel stay (accommodation taxed at the reduced VAT rate) together with the climate crisis resilience fee on the same document. > > > > Notice: > > > > * we've set the `services` and `simplified` tags; the addon sets [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) to `11.2` (services receipt), appropriate for B2C, > > * the accommodation line uses the [reduced VAT rate](https://docs.gobl.org/regimes/el#vat-rates) (`13%`); the [`gr-mydata-vat-rate`](https://docs.gobl.org/addons/gr-mydata-v1#vat-rate) extension is filled in on build, > > * the climate crisis resilience fee is added as a [`charge`](https://docs.gobl.org/draft-0/bill/invoice) with [`gr-mydata-other-tax`](https://docs.gobl.org/addons/gr-mydata-v1#gr-mydata-other-tax) set to `22` (hotels 4 stars, 7.00€ per room/night) and [`gr-mydata-tax-type`](https://docs.gobl.org/addons/gr-mydata-v1#gr-mydata-tax-type) `3` (other tax), as in the built version, > > * the `card` payment method maps to [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) `7` (card payment), and, > > * there are no totals in the minimal example; amounts are calculated when the document is built or uploaded. > > > > ```json B2C Accommodation + Climate Fee theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "EL", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "services", > > "simplified" > > ], > > "series": "Plato", > > "code": "216", > > "supplier": { > > "name": "Cyberdyne Συστήματα Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Hotel room (2 nights)", > > "price": "120.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > } > > ], > > "charges": [ > > { > > "reason": "Climate Crisis Resilience Fee (2 nights x 7.00€)", > > "amount": "14.00", > > "ext": { > > "gr-mydata-other-tax": "22" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "card" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "EL", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "services", > > "simplified" > > ], > > "type": "standard", > > "series": "Plato", > > "code": "216", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "gr-mydata-invoice-type": "11.2" > > } > > }, > > "supplier": { > > "name": "Cyberdyne Συστήματα Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Hotel room (2 nights)", > > "price": "120.00" > > }, > > "sum": "240.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "13%", > > "ext": { > > "gr-mydata-vat-rate": "2" > > } > > } > > ], > > "total": "240.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "reason": "Climate Crisis Resilience Fee (2 nights x 7.00€)", > > "amount": "14.00", > > "ext": { > > "gr-mydata-other-tax": "22", > > "gr-mydata-tax-type": "3" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "card", > > "ext": { > > "gr-mydata-payment-means": "7" > > } > > } > > }, > > "totals": { > > "sum": "240.00", > > "charge": "14.00", > > "total": "254.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "gr-mydata-vat-rate": "2" > > }, > > "base": "240.00", > > "percent": "13%", > > "amount": "31.20" > > } > > ], > > "amount": "31.20" > > } > > ], > > "sum": "31.20" > > }, > > "tax": "31.20", > > "total_with_tax": "285.20", > > "payable": "285.20" > > } > > } > > ``` > > > [accordion] Example climate fee standalone invoice (B2B) > > > > In this example, we're issuing a standalone climate fee invoice (no lines) from a Greek supplier to another Greek business customer. This is an example of how special records and other document types can be used in Greece. > > > > Notice: > > > > * we've set the `other` type and the `8.2` invoice type (climate crisis fee collection) explicitly using the [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) extension, > > * the climate fee is set as a charge using the [`gr-mydata-other-tax`](https://docs.gobl.org/addons/gr-mydata-v1#other-tax) extension set to `8` (climate crisis fee), > > * there are no lines as this special record type doesn't allow them, > > * the `credit-transfer` payment method will cause the addon to set the [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) extension to `1` (credit transfer), and, > > * there are no totals or calculations; all these will be made automatically when uploading. > > > > ```json B2B Climate Fee Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "type": "other", > > "series": "XXGR", > > "tax": { > > "ext": { > > "gr-mydata-invoice-type": "8.2" > > } > > }, > > "supplier": { > > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > }, > > "customer": { > > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "841442160" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Οδός Πανεπιστημίου", > > "locality": "Αθήνα", > > "code": "10671", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "accounting@techsolutions.gr" > > } > > ] > > }, > > "charges": [ > > { > > "reason": "Τέλος ανθεκτικότητας στην κλιματική κρίση", > > "amount": "3.00", > > "ext": { > > "gr-mydata-other-tax": "8" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "EL", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "type": "other", > > "series": "XXGR", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "gr-mydata-invoice-type": "8.2" > > } > > }, > > "supplier": { > > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > }, > > "customer": { > > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "841442160" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Οδός Πανεπιστημίου", > > "locality": "Αθήνα", > > "code": "10671", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "accounting@techsolutions.gr" > > } > > ] > > }, > > "charges": [ > > { > > "i": 1, > > "reason": "Τέλος ανθεκτικότητας στην κλιματική κρίση", > > "amount": "3.00", > > "ext": { > > "gr-mydata-other-tax": "8", > > "gr-mydata-tax-type": "3" > > } > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "gr-mydata-payment-means": "1" > > } > > } > > }, > > "totals": { > > "sum": "0.00", > > "charge": "3.00", > > "total": "3.00", > > "tax": "0.00", > > "total_with_tax": "3.00", > > "payable": "3.00" > > } > > } > > ``` > > > [accordion] Example credit note (B2B) > > > > In this example, we're issuing a credit note that corrects a previously reported invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, which the [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) addon maps to myDATA invoice type `5.1` (associated credit invoice), > > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, and **must** include the `iapr-mark` stamp — the MARK (unique registration number) the IAPR assigned to the original invoice when it was reported, > > * the line items carry the same [`gr-mydata-income-cat`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-category) and [`gr-mydata-income-type`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-type) extensions as the original, describing the amounts being credited, and, > > * there are no totals or calculations; all these will be made automatically when uploading. > > > > ```json Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "services" > > ], > > "type": "credit-note", > > "series": "XXGR-CN", > > "preceding": [ > > { > > "type": "standard", > > "series": "XXGR", > > "code": "0042", > > "issue_date": "2025-05-12", > > "stamps": [ > > { > > "prv": "iapr-mark", > > "val": "400001924190872" > > } > > ] > > } > > ], > > "supplier": { > > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > }, > > "customer": { > > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "841442160" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Οδός Πανεπιστημίου", > > "locality": "Αθήνα", > > "code": "10671", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "accounting@techsolutions.gr" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > > "price": "180.00", > > "unit": "day", > > "ext": { > > "gr-mydata-income-cat": "category1_3", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "EL", > > "$addons": [ > > "gr-mydata-v1" > > ], > > "$tags": [ > > "services" > > ], > > "type": "credit-note", > > "series": "XXGR-CN", > > "issue_date": "2026-07-21", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-05-12", > > "series": "XXGR", > > "code": "0042", > > "stamps": [ > > { > > "prv": "iapr-mark", > > "val": "400001924190872" > > } > > ] > > } > > ], > > "tax": { > > "ext": { > > "gr-mydata-invoice-type": "5.1" > > } > > }, > > "supplier": { > > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "177472438" > > }, > > "addresses": [ > > { > > "num": "28", > > "street": "Λεωφόρος Συγγρού", > > "locality": "Αθήνα", > > "code": "11743", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "reservations@athenianhotel.gr" > > } > > ] > > }, > > "customer": { > > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > > "tax_id": { > > "country": "EL", > > "code": "841442160" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Οδός Πανεπιστημίου", > > "locality": "Αθήνα", > > "code": "10671", > > "country": "GR" > > } > > ], > > "emails": [ > > { > > "addr": "accounting@techsolutions.gr" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > > "price": "180.00", > > "unit": "day", > > "ext": { > > "gr-mydata-income-cat": "category1_3", > > "gr-mydata-income-type": "E3_561_001" > > } > > }, > > "sum": "180.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "24%", > > "ext": { > > "gr-mydata-vat-rate": "1" > > } > > } > > ], > > "total": "180.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "gr-mydata-payment-means": "1" > > } > > } > > }, > > "totals": { > > "sum": "180.00", > > "total": "180.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "gr-mydata-vat-rate": "1" > > }, > > "base": "180.00", > > "percent": "24%", > > "amount": "43.20" > > } > > ], > > "amount": "43.20" > > } > > ], > > "sum": "43.20" > > }, > > "tax": "43.20", > > "total_with_tax": "223.20", > > "payable": "223.20" > > } > > } > > ``` *** > [accordion] 🇬🇷 Invopop resources for Greece > > | | | > | - | - | > | Compliance | [Invoicing compliance in Greece](/compliance/greece) [Compliance timeline](/timelines/greece) | > | Apps | [ILYDA Greece](/apps/ilyda-greece) | > | Guides | [Supplier registration](/guides/gr-iapr-supplier) [Issuing invoices](/guides/gr-iapr) | > | FAQ | [Greece FAQ](/faq/greece) | > | GOBL | [Greece Tax Regime](https://docs.gobl.org/regimes/gr) [Greece myDATA addon](https://docs.gobl.org/addons/gr-mydata-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about ILYDA Greece App → # Discover Invopop apps Source: https://docs.invopop.com/apps/index Explore Invopop apps that extend platform functionality with government integrations, third-party services, and workflow automation tools. Invopop apps extend the platform's core functionality by connecting to government systems, third-party services, and automation tools. Use apps in your workflows to submit invoices to tax authorities, send notifications, generate PDFs, and sync with your existing business tools. ## Government [Argentina](/apps/argentina) Submit to ARCA. ![Flag of Argentina](https://assets.invopop.com/flags/ar.svg) [AT Portugal](/apps/at-portugal) Invoices and SAF-T. ![AT Portugal logo](https://assets.invopop.com/apps/at-pt/icon.svg) [Chorus Pro France](/apps/choruspro-france) B2G via Chorus Pro. ![Chorus Pro France logo](https://assets.invopop.com/apps/chroruspro/icon.svg) [Colombia](/apps/colombia) Clear with DIAN. ![Flag of Colombia](https://assets.invopop.com/flags/co.svg) [Denmark](/apps/denmark) OIOUBL via NemHandel. ![Flag of Denmark](https://assets.invopop.com/flags/dk.svg) [Finland](/apps/finland) Finvoice on the operator network. ![Flag of Finland](https://assets.invopop.com/flags/fi.svg) [France](/apps/france) Plateforme Agréée. ![Flag of France](https://assets.invopop.com/flags/fr.svg) [ILYDA Greece](/apps/ilyda-greece) myDATA via ILYDA. ![ILYDA Greece logo](https://assets.invopop.com/apps/ilyda/icon.svg) [Italy](/apps/italy) FatturaPA via SDI. ![Flag of Italy](https://assets.invopop.com/flags/it.svg) [Poland](/apps/poland) FA(3) via KSeF 2.0. ![Flag of Poland](https://assets.invopop.com/flags/pl.svg) [DF-e Brazil](/apps/documentos-fiscais-electronicos-brazil) NF-e, NFC-e, NFS-e. ![Documentos fiscais eletrônicos Brazil logo](https://assets.invopop.com/apps/notas-fiscais-eletronicas-brazil/icon.svg) [SAT Mexico](/apps/sat-mexico) CFDI invoices. ![SAT Mexico logo](https://assets.invopop.com/apps/sat-mexico/icon.svg) [Saudi Arabia](/apps/saudi-arabia) Clear with FATOORA. ![Saudi Arabia logo](https://assets.invopop.com/apps/zatca/icon.svg) [SDI Italy](/apps/sdi-italy) Issue and receive. ![SDI Italy logo](https://assets.invopop.com/apps/sdi-italy/icon.svg) [Smart receipts Italy](/apps/smart-receipts-italy) Documento commerciale. ![Smart receipts Italy logo](https://assets.invopop.com/apps/agenzia-entrate/icon.svg) [Spain](/apps/spain) Spanish tax agencies. ![Flag of Spain](https://assets.invopop.com/flags/es.svg) [VERI\*FACTU Spain](/apps/verifactu-spain) Send under VERI\*FACTU. ![VERI\*FACTU Spain logo](https://assets.invopop.com/apps/verifactu/icon.svg) ## Network [Peppol](/apps/peppol) Send over Peppol. ![Peppol logo](https://assets.invopop.com/apps/peppol/icon.svg) ## Notify [Email](/apps/email) Email from workflows. ![Email logo](https://assets.invopop.com/apps/email/icon.svg) [Slack](/apps/slack) Notify via Slack. ![Slack logo](https://assets.invopop.com/apps/slack/icon.svg) ## Format [PDF Generator](/apps/pdf-generator) PDFs from GOBL. ![PDF Generator logo](https://assets.invopop.com/apps/pdf/logo.svg) [OASIS UBL](/apps/oasis-ubl) GOBL to OASIS UBL. ![OASIS UBL logo](https://assets.invopop.com/apps/ubl/logo.svg) [UN/CEFACT CII](/apps/uncefact-cii) GOBL to CII. ![UN/CEFACT CII logo](https://assets.invopop.com/apps/cii/logo.svg) [Facturae Spain](/apps/facturae-spain) GOBL to Facturae. ![Facturae Spain logo](https://assets.invopop.com/apps/facturae/icon.svg) ## Document [Portal](/apps/portal) Receipts to invoices. ![Portal logo](https://assets.invopop.com/apps/portal/icon.svg) ## Validation [Lookup](/apps/lookup) Validate tax IDs. ## Storage [Google Drive](/apps/google-drive) Upload to Drive. ![Google Drive logo](https://assets.invopop.com/apps/google-drive/icon.svg) ## Databases [Tables](/apps/tables) Store workflow data. ![Tables logo](https://assets.invopop.com/apps/tables/icon.svg) ## Automation [Connect](/apps/connect) Custom endpoints. ![Connect logo](https://assets.invopop.com/apps/connect/icon.svg) [Cron](/apps/cron) Scheduled runs. ![Cron logo](https://assets.invopop.com/apps/cron/icon.svg) ## Integrations [Chargebee](/apps/chargebee) Import from Chargebee. ![Chargebee logo](https://assets.invopop.com/apps/chargebee/icon.svg) [Stripe](/apps/stripe) Import from Stripe. ![Stripe logo](https://assets.invopop.com/apps/stripe/icon.svg) [NetSuite](/apps/netsuite) Invoices from NetSuite. ![NetSuite logo](https://assets.invopop.com/apps/netsuite/logo.svg) [SW Sapien](/apps/sw-sapien) Bulk CFDI import. ![SW Sapien logo](https://assets.invopop.com/apps/sw-sapien/icon.svg) # Italy Source: https://docs.invopop.com/apps/italy Send and receive FatturaPA invoices through Invopop's own accredited SDI channel. > [tab] Description > > > [card] [Issue invoices](/guides/it-sdi-invoicing) > > > > Issuing guide › > > > [card] [Invoice status](/guides/it-sdi-status) > > > > Lifecycle guide › > > > [card] [Receive invoices](/guides/it-sdi-reception) > > > > Receiving guide › > > > [card] [Archive invoices](/guides/it-sdi-archiving) > > > > Archiving guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C, B2G | > | System | Sistema di Interscambio (Agenzia delle Entrate) | > | Country | [Italy](/compliance/italy) | > > The **Sistema di Interscambio** (SDI) is Italy's central e-invoicing hub, run by the tax authority (*Agenzia delle Entrate*). Electronic invoicing is mandatory for essentially every VAT-registered business in Italy: SDI validates each invoice and delivers it to the buyer. The legal invoice is the cleared FatturaPA XML file. > > Documents travel as **FatturaPA** XML. This app owns both directions of that exchange over **Invopop's own accredited SDICoop channel**: Invopop is registered with the tax authority as a transmission and reception channel in its own right, so invoices go straight to SDI with no intermediary in between, and SDI delivers inbound invoices straight back. > > Sending is non-blocking. The send step finishes as soon as SDI accepts the file; SDI's verdict — delivered, rejected, undeliverable — arrives minutes or days later and is recorded against the invoice as a separate status entry, so a slow response from SDI never holds a workflow open. > > #### Key features > > * **Direct accredited channel:** Invopop transmits and receives under its own SDI accreditation. No third-party gateway sits between you and the tax authority. > * **FatturaPA both ways:** GOBL → FatturaPA for issuing, FatturaPA → GOBL for received invoices, with the original XML kept attached exactly as it was exchanged. > * **Statuses as documents:** Every SDI notification becomes a status entry on the invoice, carrying the original Italian code and a plain-language description. > * **Certified archiving:** Issued and received invoices are preserved under *conservazione a norma* through our preservation partner [A-Cube](https://www.acubeapi.com), with the receipt attached to the entry. > * **Full sandbox lifecycle:** The sandbox simulates SDI end to end — including rejections and non-delivery — so you can exercise every outcome before going live. > > Check out the guides below to get started: > > * [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) > > ## FAQ > > Invoicing questions > > > [accordion] How do I configure my workspace for Italian invoicing? > > > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > > > [accordion] How do I issue a documento commerciale (scontrino)? > > > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > > > [accordion] Where do I find Italy-specific GOBL documentation? > > > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. > > > [accordion] Why is my invoice processing taking so long? > > > > The **Send invoice to SDI** step completes as soon as SDI accepts the file — it doesn't wait for SDI's verdict. What takes time is SDI's own processing: a rejection usually arrives within minutes, but delivery confirmations can take up to 5 days. Each verdict is recorded against the invoice as a status entry, so nothing is stuck while you wait. See the [status guide](/guides/it-sdi-status) for the full lifecycle. > > > [accordion] How do I know if my invoice was delivered successfully? > > > > SDI confirms delivery with an `RC` (*ricevuta di consegna*) notification, recorded on the invoice as a status entry with the GOBL status `acknowledged`. A rejection arrives as `NS` with status `error`. Every notification and what it means is covered in the [status guide](/guides/it-sdi-status). > > > [accordion] How do I test different SDI outcomes in the sandbox? > > > > Set a reserved *codice destinatario* on the customer — for example `SIMNS00` to simulate a rejection. The sandbox simulates SDI end to end and feeds back the notifications a real exchange would produce; any ordinary code resolves to a successful delivery. The full list of reserved codes is in the [issuing guide](/guides/it-sdi-invoicing#testing-in-the-sandbox). > > > [accordion] How do I add codice fiscale and Partita IVA? > > > > Both Italian tax identifiers have their own place on a party. The *partita IVA* (VAT number) goes in `tax_id`, and the *codice fiscale* goes in `identities` under the key `it-fiscal-code`. A party may carry both. > > > > An Italian supplier always needs a *partita IVA*. An Italian customer needs at least one of the two — which one depends on who they are, covered in the [issuing guide](/guides/it-sdi-invoicing#identifying-the-customer). > > > > Here's an example showing both identifiers on a supplier: > > > > ```json Supplier with Partita IVA and Codice Fiscale theme={"system"} > > { > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "identities": [ > > { > > "key": "it-fiscal-code", > > "code": "MRTMTT91D08F205J" > > } > > ] > > } > > } > > ``` > > > [accordion] How do I invoice a customer outside Italy? > > > > Send it through SDI as usual — an Italian supplier reports the invoice there whoever the customer is. SDI has no way to deliver outside Italy, though, so it won't reach the customer that way: send them their copy yourself, normally as a PDF. It's the same invoice travelling by two routes, and only the FatturaPA file is the legal one. > > > [accordion] What if the customer has no tax ID at all? > > > > An Italian customer needs either a *partita IVA* or a *codice fiscale*. A customer outside Italy needs neither — their country is enough, so leave the code out rather than inventing a placeholder. See [identifying the customer](/guides/it-sdi-invoicing#identifying-the-customer). > > > [accordion] How do I reference a receipt (documento commerciale) in an SDI invoice? > > > > Add an item attribute to the invoice line with `type` `N.DOC.COMM` and the receipt's identifier in `text`, its progressive number in `amount` and its date in `date`. The `it-sdi-v1` addon writes each item attribute as an `AltriDatiGestionali` block (`TipoDato`, `RiferimentoTesto`, `RiferimentoNumero`, `RiferimentoData`). The `type` is limited to 10 ASCII characters. See the "Invoice after a documento commerciale" example in the [issuing guide](/guides/it-sdi-invoicing#example-invoices). > > Registering supplier questions > > > [accordion] How do I onboard a new supplier in Italy? > > > > Provide the supplier's Partita IVA and Codice Fiscale (where different) in their party configuration. No certificate upload is needed — Invopop transmits to SDI over its own accredited channel. > > > [accordion] How are supplier credentials stored in Invopop for Italy? > > > > No supplier certificates are required. Invopop exchanges documents with SDI over its own accredited channel; only the Partita IVA and routing metadata are stored. > > > [accordion] How do I register a supplier with SDI? > > > > You don't need to. SDI has no supplier registration for sending: set the supplier's Partita IVA on the party and send. Registration is only needed for *receiving* — see the [receiving invoices guide](/guides/it-sdi-reception). > > > [accordion] What certificates does SDI require to authenticate a supplier? > > > > None — Invopop exchanges documents with SDI over its own accredited channel, so suppliers don't manage any certificates. Invoices to public administrations (`FPA12`) also need a qualified electronic signature, which Invopop applies with its own seal when it sends them. > > Receiving questions > > > [accordion] How do I import received invoices in Italy? > > > > Register Invopop's recipient code (`BDCS3JD`) with the tax authority and run the registration workflow on the company's party entry. Invopop automatically receives matching invoices and routes them through the configured import workflow. See the [receiving invoices guide](/guides/it-sdi-reception). > > > [accordion] How does Invopop convert received Italian invoices into GOBL? > > > > Inbound FatturaPA XMLs are parsed via [`gobl.fatturapa`](https://github.com/invopop/gobl.fatturapa). The original signed XML is preserved as a silo entry attachment alongside the GOBL representation. > > > [accordion] How do I test receiving invoices in the sandbox? > > > > Register the company for reception in your sandbox workspace, then send a sandbox invoice addressed to it — the app loops it back to you as an inbound delivery and runs your import workflow, exactly as a real delivery would. This is the only way to receive an invoice in sandbox: there is no tax authority to register with, and no real supplier can reach it. See [receiving your own invoices](/guides/it-sdi-invoicing#receiving-your-own-invoices). > > > [accordion] What happens if a received invoice contains errors? > > > > The import step attempts to convert the FatturaPA document into [GOBL](https://docs.gobl.org). If conversion fails, the step returns `KO`, but the original file stays stored — the invoice can be re-processed later without SDI needing to redeliver it. > > > > If the invoice has significant structural issues that prevent conversion, you may need to contact the sender to request a corrected invoice. > > > [accordion] How quickly are invoices received after being sent by suppliers? > > > > Invoices are typically received within minutes after being sent by suppliers through SDI. The automatic import process in Invopop processes them as soon as they are received by our system. > > > [accordion] Can I register multiple companies to receive invoices? > > > > Yes, multiple companies can be registered to receive invoices through a single Invopop workspace. For each company, you must: > > > > 1. Register the recipient code `BDCS3JD` with the Italian tax authority for that specific company > > 2. Have its tax ID registered by running the registration workflow on the company's party entry > > 3. Use the same import workflow configured in the app settings > > > > This two-step registration process (with the tax authority and with Invopop) must be completed for each company you want to register. This is particularly useful for white-labeling scenarios where a user manages multiple entities. > > > [accordion] Can I register the same tax ID again from a different party? > > > > Yes, but only one party at a time can hold a given tax ID. Run the [unregister workflow](/guides/it-sdi-reception#unregistering-a-company) on the party that currently holds it, then register the new one. > > > > Registering a tax ID that another party already holds fails with a clear error. > > > > Sandbox and live are counted separately, so the same tax ID can be registered in both at the same time. > > > [accordion] What is the difference between registering with the tax authority and registering with Invopop? > > > > The two-step registration process serves different purposes: > > > > 1. **Registering with the Italian tax authority** - Tells SDI to route invoices addressed to your company to Invopop's channel using the *Codice Destinatario* `BDCS3JD`. > > > > 2. **Registering with Invopop** (the registration workflow) - Tells Invopop which invoices to accept and process for your workspace. > > > > Both steps are necessary: the first routes the invoices to Invopop, and the second ensures Invopop knows which workspace should receive those invoices. > > > [accordion] What format do received SDI invoices arrive in? > > > > Signed FatturaPA XML (versions 1.2.x), conforming to the Agenzia delle Entrate schema. The original file is kept attached to the entry exactly as SDI delivered it, alongside SDI's delivery metadata. > > Archiving questions > > > [accordion] How does certified archiving (conservazione a norma) work with Invopop? > > > > Add the **Archive document** step to your workflows, after the step that exchanges the document with SDI. It uploads the exact FatturaPA file, waits for the preservation service to confirm the document is preserved, and attaches the signed receipt to the entry. See the [archiving guide](/guides/it-sdi-archiving) for the full setup. > > > [accordion] Do received invoices need to be archived too? > > > > Yes. Italian preservation rules cover both the invoices you issue and the ones you receive, and both are preserved the same way — add the **Archive document** step after the import step in your receiving workflow. > > > [accordion] What happens to archived invoices when I unregister a company? > > > > Nothing — unregistering only stops receiving. Invoices already preserved under *conservazione a norma* stay preserved, as the law requires. > > More answers in our [Italy FAQ](/faq/italy) section > [tab] Limitations > > | Capability | Status | Notes | > | - | - | - | > | Invoice delivery (B2B, B2C) | Available | FatturaPA `FPR12`, delivered by *codice destinatario* or PEC | > | Simplified invoices | Available | *Fattura semplificata* (`FSM10`) for sales up to €400 and for credit and debit notes, [sent and received](/guides/it-sdi-invoicing#simplified-invoices) | > | Invoice reception | Available | Invoices addressed to a registered company, routed into your import workflow | > | Status notifications | Available | Every SDI notification about a sent invoice, recorded as a [status entry](/guides/it-sdi-status) | > | Party registration | Available | Claims a fiscal ID for reception in your workspace | > | Party deregistration | Available | Releases the fiscal ID so it can be registered again | > | Certified archiving | Available | *Conservazione a norma* for issued and received invoices | > | Invoices to public administrations (B2G) | Available | FatturaPA `FPA12`, signed with a qualified electronic seal before it's sent | > | Accepting or rejecting as a public body | In development | *Notifica Esito* replies for invoices received as a public body | > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > Invoicing > > > [card] Send invoice to SDI > > > > 3 > > Convert a GOBL invoice to FatturaPA, submit it to SDI over Invopop's accredited channel, and attach the transmitted XML to the entry. Completes as soon as SDI accepts the file. > > > [card] Import status from SDI > > > > 1 > > Turn an SDI notification about an invoice you sent into a status entry, recording the Italian notification code and what it means. > > Registration > > > [card] Register party in Italy > > > > 100/mo > > Claim a company's fiscal identity for your workspace so SDI deliveries addressed to it are routed to you. > > > [card] Unregister party from SDI > > > > Stop receiving for a company and release its fiscal ID so it can be registered again. > > Reception > > > [card] Import invoice from SDI > > > > 3 > > Parse a received FatturaPA document into GOBL and create the invoice entry, with the original XML and SDI's delivery metadata attached. > > Archiving > > > [card] Register party for e-archiving > > > > 100/mo > > Enable certified preservation (*conservazione a norma*) for a company. Requires a valid Italian tax ID. > > > [card] Archive document for legal preservation > > > > 2 > > Preserve the exact XML exchanged with SDI and attach the preservation receipt to the entry. > > > [card] Unregister party from e-archiving > > > > Stop archiving documents for a company and release its e-archiving seat. > [tab] Workflows > > Invoice workflows > > > [accordion] Send invoice to SDI > > > > ```json Italy send invoice workflow theme={"system"} > > { > > "name": "Italy send invoice", > > "description": "Issue an invoice through Italy's SDI system", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "019ed592-0763-79c1-9ca1-a2f7795e2b16", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · SDI · 000001", > > "config": { > > "name": "SDI", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "019ed592-0763-793f-8fbe-bc977455d784", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "019ed592-0763-7ce4-beb0-2c95c77399d3", > > "name": "Send invoice to SDI", > > "provider": "gov-it.sdi.send.invoice", > > "summary": "Submit the FatturaPA document to SDI" > > } > > ], > > "rescue": [ > > { > > "id": "019ed592-0763-7426-9bbf-6ed466d5749f", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] Import invoice status > > > > ```json Italy import invoice status workflow theme={"system"} > > { > > "name": "Italy import invoice status", > > "description": "Record an SDI notification about an invoice you sent", > > "schema": "bill/status", > > "steps": [ > > { > > "id": "92d923d7-0d5a-4ee2-a7f9-f9fbd89f1650", > > "name": "Import status from SDI", > > "provider": "gov-it.sdi.import.status", > > "summary": "Turn the SDI notification into a status entry" > > } > > ], > > "rescue": [] > > } > > ``` > > Party workflows > > > [accordion] Register party with SDI > > > > ```json Italy register party workflow theme={"system"} > > { > > "name": "Italy register party", > > "description": "Register a company to receive invoices and enable archiving", > > "schema": "org/party", > > "steps": [ > > { > > "id": "d0a624c0-7ab3-11f1-bcdd-79d761bdaace", > > "name": "Register party with SDI", > > "provider": "gov-it.sdi.register", > > "summary": "Claim the company's fiscal ID for this workspace" > > }, > > { > > "id": "f19737f0-7ab3-11f1-bcdd-79d761bdaace", > > "name": "Register party for e-archiving", > > "provider": "gov-it.archive.register", > > "summary": "Enable certified preservation for this company" > > } > > ], > > "rescue": [] > > } > > ``` > > > [accordion] Unregister party from SDI > > > > ```json Italy unregister party workflow theme={"system"} > > { > > "name": "Italy unregister party", > > "description": "Stop a company receiving invoices through SDI", > > "schema": "org/party", > > "steps": [ > > { > > "id": "0598fbd0-7ab4-11f1-8f97-792526fe02d9", > > "name": "Unregister party from SDI", > > "provider": "gov-it.sdi.unregister", > > "summary": "Stop receiving and release the fiscal ID" > > } > > ], > > "rescue": [] > > } > > ``` > > Reception workflows > > > [accordion] Import invoice from SDI > > > > ```json Italy import invoice workflow theme={"system"} > > { > > "name": "Italy import invoice", > > "description": "Import and process an invoice received through SDI", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "33946e58-a094-4e9d-bef7-51e8ac1974fe", > > "name": "Import invoice from SDI", > > "provider": "gov-it.sdi.import.invoice", > > "summary": "Convert the received FatturaPA document to GOBL" > > } > > ], > > "rescue": [] > > } > > ``` > > Archiving workflows > > > [accordion] Archive document > > > > ```json Italy archive document workflow theme={"system"} > > { > > "name": "Italy archive document", > > "description": "Preserve a document under conservazione a norma", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "6023d8e0-7ab4-11f1-8f97-792526fe02d9", > > "name": "Archive document", > > "provider": "gov-it.archive.store", > > "summary": "Preserve the document and attach its receipt" > > } > > ], > > "rescue": [] > > } > > ``` > [tab] Documents > > Parties > > > [accordion] Supplier > > > > An Italian company with its *partita IVA* and the mandatory `it-sdi-fiscal-regime` extension (here `RF01`, the ordinary regime). > > > > ```json Italy supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > } > > ``` > > > [accordion] Customer > > > > An Italian business customer with its *partita IVA* and an `it-sdi-code` inbox — the *codice destinatario* SDI uses to route the invoice. > > > > ```json Italy customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Cliente Esempio SpA", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "8", > > "street": "Via Roma", > > "locality": "Torino", > > "region": "TO", > > "code": "10121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "acquisti@clienteesempio.it" > > } > > ] > > } > > ``` > > > [accordion] B2B Invoice > > > > In this example, we're issuing a standard B2B invoice from an Italian supplier to another Italian business customer. > > > > Notice: > > > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > > * the minimal version contains only essential fields; `gobl build` handles all calculations, > > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2B transactions, and, > > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > > > ```json SDI B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "intermediate" > > } > > ] > > } > > ] > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "sum": "1.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ], > > "total": "1.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "sum": "125.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "intermediate", > > "percent": "10.0%" > > } > > ], > > "total": "125.00" > > } > > ], > > "totals": { > > "sum": "126.00", > > "tax_included": "11.36", > > "total": "114.64", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > }, > > "base": "1.00", > > "amount": "0.00" > > }, > > { > > "key": "standard", > > "base": "113.64", > > "percent": "10.0%", > > "amount": "11.36" > > } > > ], > > "amount": "11.36" > > } > > ], > > "sum": "11.36" > > }, > > "tax": "11.36", > > "total_with_tax": "126.00", > > "payable": "126.00" > > } > > } > > ``` > > > [accordion] B2G Invoice > > > > In this example, we're issuing a B2G invoice from an Italian supplier to the Italian government. > > > > Notice: > > > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > > * the minimal version contains only essential fields; `gobl build` handles all calculations, > > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2G transactions, and, > > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > > > ```json SDI B2G Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": ["it-sdi-v1"], > > "$tags": ["b2g"], > > "series": "PA", > > "code": "2026-001", > > "issue_date": "2026-05-08", > > "currency": "EUR", > > "supplier": { > > "name": "Esempio Fornitore SRL", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > }, > > "addresses": [ > > { > > "num": "10", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > {"addr": "amministrazione@esempio-fornitore.it"} > > ] > > }, > > "customer": { > > "name": "Comune di Roma", > > "tax_id": { > > "country": "IT", > > "code": "02438750586" > > }, > > "addresses": [ > > { > > "num": "1", > > "street": "Piazza del Campidoglio", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "UF9DN8" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Servizi di consulenza informatica", > > "price": "150.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Licenza software annuale", > > "price": "1200.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "it-sdi-payment-means": "MP05" > > }, > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "Banca Esempio SpA", > > "bic": "BPMOIT22XXX" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2026-06-07", > > "percent": "100%" > > } > > ] > > } > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "b2g" > > ], > > "type": "standard", > > "series": "PA", > > "code": "2026-001", > > "issue_date": "2026-05-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPA12" > > } > > }, > > "supplier": { > > "name": "Esempio Fornitore SRL", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "10", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "amministrazione@esempio-fornitore.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Comune di Roma", > > "tax_id": { > > "country": "IT", > > "code": "02438750586" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "UF9DN8" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Piazza del Campidoglio", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Servizi di consulenza informatica", > > "price": "150.00", > > "unit": "h" > > }, > > "sum": "3000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "3000.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Licenza software annuale", > > "price": "1200.00" > > }, > > "sum": "1200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "1200.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-06-07", > > "amount": "5124.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "bic": "BPMOIT22XXX", > > "name": "Banca Esempio SpA" > > } > > ], > > "ext": { > > "it-sdi-payment-means": "MP05" > > } > > } > > }, > > "totals": { > > "sum": "4200.00", > > "total": "4200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "4200.00", > > "percent": "22.0%", > > "amount": "924.00" > > } > > ], > > "amount": "924.00" > > } > > ], > > "sum": "924.00" > > }, > > "tax": "924.00", > > "total_with_tax": "5124.00", > > "payable": "5124.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > > } > > ] > > } > > ``` > > > [accordion] Simplified Invoice (Fattura Semplificata) > > > > In this example, we're issuing a simplified invoice for a €49.00 restaurant bill to a private customer identified only by their codice fiscale. > > > > Notice: > > > > * `$tags` includes `simplified`, so `gobl build` sets the format to `FSM10` and the document type to `TD07`, > > * the customer has no name or address: an Italian `tax_id` without a code, plus their codice fiscale as an `it-fiscal-code` identity, > > * prices include VAT, and the total with VAT must stay within €400, which the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon checks before the invoice is sent, and, > > * see [Simplified invoices](/guides/it-sdi-invoicing#simplified-invoices) for what else the format allows. > > > > ```json SDI Simplified Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2026-10-01", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "tax_id": { > > "country": "IT" > > }, > > "identities": [ > > { > > "key": "it-fiscal-code", > > "code": "RSSGNN60R30H501U" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Menu di lavoro", > > "price": "18.50" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "intermediate" > > } > > ] > > }, > > { > > "quantity": "2", > > "item": { > > "name": "Vino della casa", > > "price": "6.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2026-10-01", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD07", > > "it-sdi-format": "FSM10" > > } > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "tax_id": { > > "country": "IT" > > }, > > "identities": [ > > { > > "key": "it-fiscal-code", > > "code": "RSSGNN60R30H501U" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Menu di lavoro", > > "price": "18.50" > > }, > > "sum": "37.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "intermediate", > > "percent": "10.0%" > > } > > ], > > "total": "37.00" > > }, > > { > > "i": 2, > > "quantity": "2", > > "item": { > > "name": "Vino della casa", > > "price": "6.00" > > }, > > "sum": "12.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "12.00" > > } > > ], > > "totals": { > > "sum": "49.00", > > "tax_included": "5.53", > > "total": "43.47", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "33.64", > > "percent": "10.0%", > > "amount": "3.36" > > }, > > { > > "key": "standard", > > "base": "9.84", > > "percent": "22.0%", > > "amount": "2.16" > > } > > ], > > "amount": "5.53" > > } > > ], > > "sum": "5.53" > > }, > > "tax": "5.53", > > "total_with_tax": "49.00", > > "payable": "49.00" > > } > > } > > ``` > > > [accordion] Stamp Duty Invoice (Marca da Bollo) > > > > This example matches the **B2B invoice** above but adds a **€2.00 Marca da bollo** (stamp duty) as a document-level charge. > > > > **Flat-rate scheme (*forfettario*):** taxpayers using the *regime forfettario* do **not** charge VAT on their invoices. When the document total goes **above €77.47**, they must account for **imposta di bollo**—typically by adding a **€2.00** stamp duty line, as in this sample. (Thresholds and rules can change; confirm with your adviser or the Agenzia delle Entrate if in doubt.) > > > > Notice: > > > > * the `charges` array includes an entry with `"key": "stamp-duty"`, amount `"2.00"`, and reason `Imposta di bollo`, > > * the minimal version is otherwise the same as the B2B example; `gobl build` recalculates totals including the charge, > > * the built version shows `totals.charge` and a higher `payable` / `total_with_tax` than the plain B2B invoice, > > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon continues to validate the document for SDI transmission. > > > > ```json SDI Stamp duty invoice (Marca da Bollo) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "intermediate" > > } > > ] > > } > > ], > > "charges": [ > > { > > "key": "stamp-duty", > > "i": 1, > > "amount": "2.00", > > "reason": "Imposta di bollo" > > } > > ] > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "sum": "1.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ], > > "total": "1.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "sum": "125.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "intermediate", > > "percent": "10.0%" > > } > > ], > > "total": "125.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "key": "stamp-duty", > > "reason": "Imposta di bollo", > > "amount": "2.00" > > } > > ], > > "totals": { > > "sum": "126.00", > > "charge": "2.00", > > "tax_included": "11.36", > > "total": "116.64", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > }, > > "base": "1.00", > > "amount": "0.00" > > }, > > { > > "key": "standard", > > "base": "113.64", > > "percent": "10.0%", > > "amount": "11.36" > > } > > ], > > "amount": "11.36" > > } > > ], > > "sum": "11.36" > > }, > > "tax": "11.36", > > "total_with_tax": "128.00", > > "payable": "128.00" > > } > > } > > ``` > > > [accordion] B2B Invoice with Additional Fields > > > > In this example, we're issuing a comprehensive B2B invoice with additional optional fields such as ordering information, payment details, and document references. > > > > Notice: > > > > * this invoice demonstrates advanced SDI features like CIG/CUP codes, payment methods, and bank details, > > * the minimal version includes ordering and payment details; `gobl build` calculates all totals, > > * when running `gobl build`, the system validates all additional fields according to SDI specifications and calculates totals, > > * the built version shows the complete document with all calculated fields, tax breakdowns, and properly formatted additional information, > > * additional fields like `ordering`, `payment`, and document references are important for public administration invoices (B2G), and, > > * the addon ensures all optional fields are properly validated and formatted for SDI transmission. > > > > ```json SDI B2B Invoice with additional fields theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2023-03-02", > > "currency": "EUR", > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "999999999" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2023-09-01", > > "percent": "100%" > > } > > ] > > } > > } > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2023-03-02", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD06", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "999999999" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "200.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2023-09-01", > > "amount": "244.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ], > > "ext": { > > "it-sdi-payment-means": "MP05" > > } > > } > > }, > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200.00", > > "percent": "22.0%", > > "amount": "44.00" > > } > > ], > > "amount": "44.00" > > } > > ], > > "sum": "44.00" > > }, > > "tax": "44.00", > > "total_with_tax": "244.00", > > "payable": "244.00" > > } > > } > > ``` > > > [accordion] VAT Exempt Invoice > > > > In this example, we're issuing an invoice for goods or services that are exempt from VAT (IVA). > > > > Notice: > > > > * the line item includes a tax with `"key": "exempt"` indicating this is a VAT-exempt transaction, > > * the minimal version omits the exemption code extension (`it-sdi-exempt`), which will be automatically added during `gobl build`, > > * when running `gobl build`, the system calculates totals with zero VAT and validates the exemption structure, > > * the built version shows the complete document with the exemption code extension (e.g., `"it-sdi-exempt": "N4"`) applied to the tax rate, > > * exemption codes must comply with SDI requirements—consult the [complete list of exemption reasons](https://docs.gobl.org/addons/it-sdi-v1#it-sdi-exempt) in the GOBL documentation, > > * common exemption codes include N4 (exempt), N3.1 (exports), N3.2 (intra-community supplies), and N6.x (reverse charge scenarios), and, > > * the SDI validates that exempt invoices include proper exemption codes before transmission. > > > > ```json SDI Exempt Invoice theme={"system"} > > > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "code": "INVOICE-001", > > "supplier": { > > "name": "Example IT Supplier S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "street": "Via Roma, 123", > > "locality": "Milan", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "info@supplier.it" > > } > > ] > > }, > > "customer": { > > "name": "Example IT Customer S.p.A.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "addresses": [ > > { > > "street": "Via Dante, 456", > > "locality": "Rome", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Tax Exempt Service", > > "price": "100.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "code": "INVOICE-001", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Example IT Supplier S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "street": "Via Roma, 123", > > "locality": "Milan", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "info@supplier.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Example IT Customer S.p.A.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "addresses": [ > > { > > "street": "Via Dante, 456", > > "locality": "Rome", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Tax Exempt Service", > > "price": "100.00" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ], > > "total": "1000.00" > > } > > ], > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > }, > > "base": "1000.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1000.00", > > "payable": "1000.00" > > } > > } > > ``` > > > [accordion] Credit Note > > > > In this example, we're issuing a credit note (nota di credito) to correct or refund a previously issued invoice. > > > > Notice: > > > > * the `type` field is set to `credit-note` to indicate this is a corrective document, > > * the `preceding` field references the original invoice being corrected, > > * the minimal version contains only essential correction details; `gobl build` calculates negative amounts, > > * when running `gobl build`, the system automatically calculates negative totals, IVA refunds, validates the credit note structure, and applies SDI rules, > > * the built version shows all calculated fields including negative amounts for the refund and proper tax adjustments, > > * credit notes must be properly linked to the original invoice and transmitted through SDI, and, > > * the SDI system validates the credit note format before accepting and forwarding it to the recipient. > > > > ```json SDI Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "001", > > "issue_date": "2024-10-09", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > > "type": "standard", > > "issue_date": "2023-03-02", > > "series": "SAMPLE", > > "code": "001" > > } > > ], > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ] > > } > > } > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "001", > > "issue_date": "2024-10-09", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > > "type": "standard", > > "issue_date": "2023-03-02", > > "series": "SAMPLE", > > "code": "001" > > } > > ], > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD04", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "200.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ], > > "ext": { > > "it-sdi-payment-means": "MP05" > > } > > } > > }, > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200.00", > > "percent": "22.0%", > > "amount": "44.00" > > } > > ], > > "amount": "44.00" > > } > > ], > > "sum": "44.00" > > }, > > "tax": "44.00", > > "total_with_tax": "244.00", > > "payable": "244.00" > > } > > } > > ``` > > > [accordion] Invoice after a documento commerciale > > > > In this example, a retail sale was first recorded with a [Smart Receipt](/guides/it-ticket) (*documento commerciale*) and the customer later asked for an invoice. The invoice is an ordinary SDI invoice that references the receipt issued for the same sale. > > > > Notice: > > > > * the line item carries an `attributes` entry with `type` `N.DOC.COMM`, the receipt's AdE document number in `text`, its progressive number in `amount`, and the receipt date in `date`, > > * the `it-sdi-v1` addon converts each item attribute into an `AltriDatiGestionali` block: `type` becomes `TipoDato`, `text` becomes `RiferimentoTesto`, `amount` becomes `RiferimentoNumero`, and `date` becomes `RiferimentoData`, which is the layout the AdE describes for invoices preceded by a receipt, > > * `type` is limited to 10 ASCII characters and `text` to 60 characters, and `amount` is rendered with at least two decimals, so `7816` arrives at SDI as `7816.00`, > > * the receipt's document number is the `ade-ref` stamp the Smart Receipts app adds to the receipt's header after the AdE accepts it, > > * `issue_date` is the day of the sale, because FatturaPA's `Data` comes from `issue_date` (`op_date` is not written to the XML), and without further tags `gobl build` sets the document type to `TD01`, > > * the Smart Receipt itself is not changed by this invoice, and your own VAT records must remove the invoiced amount from that day's *corrispettivi*. See [Invoice requested after a receipt](/guides/it-ticket#invoice-requested-after-a-receipt) for the full sequence. > > > > ```json SDI invoice after a documento commerciale theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2025-05-22", > > "op_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > }, > > "addresses": [ > > { > > "num": "12", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "50123", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "attributes": [ > > { > > "type": "N.DOC.COMM", > > "text": "ACUBE2025/0000-7816", > > "amount": "7816", > > "date": "2025-05-20" > > } > > ] > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2025-05-22", > > "op_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > }, > > "addresses": [ > > { > > "num": "12", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "50123", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "attributes": [ > > { > > "type": "N.DOC.COMM", > > "text": "ACUBE2025/0000-7816", > > "amount": "7816", > > "date": "2025-05-20" > > } > > ], > > "price": "137.50" > > }, > > "sum": "412.50", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "412.50" > > } > > ], > > "totals": { > > "sum": "412.50", > > "tax_included": "74.39", > > "total": "338.11", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "338.11", > > "percent": "22.0%", > > "amount": "74.39" > > } > > ], > > "amount": "74.39" > > } > > ], > > "sum": "74.39" > > }, > > "tax": "74.39", > > "total_with_tax": "412.50", > > "payable": "412.50" > > } > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Italy app → # Lookup Source: https://docs.invopop.com/apps/lookup Validate tax IDs against official registers and correct parties with the registered data. > [tab] Description > > > [card] [Lookup](/guides/lookup) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Validation | > > The **Lookup app** checks the tax ID of a party against the official register that issues it, as a step in your workflows. For an invoice, it checks the customer or the supplier; for a party document, it checks the party itself. > > When the register confirms the tax ID, the app can also correct the party with the registered data: the legal name, and the address when the register gives it in a structured form. Answers are kept in a shared cache, so a batch of invoices for the same customer costs one register call, and each step decides how old a cached answer may be. > > #### Key features > > * **Workflow automation:** Validate the customer or supplier of every invoice, or a party document, before you sign, send or register it. > * **Correction from the register:** Write the registered name into the document, so invoices carry the legal name of the party. > * **Name mismatch detection:** Report when the document's name differs from the registered name, with a result code that a workflow can branch on. > * **Shared cache:** Reuse an earlier answer for the same tax ID, up to the age that the step allows, or always ask the register live. > * **Result codes:** Every outcome carries a code such as `found`, `not-found` or `not-supported`, so you can handle each case in your workflow. > > Make sure to check out our [Lookup guide](/guides/lookup) for instructions on how to configure the step, read its results and handle them in your workflows. > [tab] Limitations > > | Register | Status | Notes | > | - | - | - | > | VIES (EU VAT numbers) | Available | All EU member states, `EL` for Greece and `XI` for Northern Ireland | > | AEAT (Spain) | Available | Spanish NIFs of companies and natural persons. A natural person needs a name. | > | DGFiP (France) | Available | French VAT numbers, and the SIREN of businesses without a VAT number, with the name and the structured address from Sirene. | > | HMRC (United Kingdom) | In development | | > > * Only the party's `tax_id` is checked. Entries in `identities` are not checked. > * Some member states, such as Germany, do not disclose the trader's name or address through VIES. The tax ID is validated, but there is no name to compare or write. Spanish tax IDs go to AEAT, which gives the registered name. > * VIES gives the address as free text. The app writes it only for Italy, where its shape is regular. French addresses come from Sirene. Only structured addresses are written. > * A signed document is validated, but never corrected. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Validate Tax IDs > > > > 1 > > Validate the tax ID of the customer, the supplier or a party against its official register, and optionally correct the party with the registered data. > [tab] Workflows > > Use these sample workflows as a starting point for your own. > > Invoice workflows > > > [accordion] Lookup validate invoice customer > > > > Validate the customer's tax ID, write the registered name into the invoice, and sign it. > > > > ```json Lookup validate invoice customer workflow theme={"system"} > > { > > "name": "Lookup validate invoice customer", > > "description": "Validate and correct the customer's tax ID, then sign the invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "01a0f8f1-7c00-7a10-9000-000000000001", > > "name": "Validate tax ID", > > "provider": "lookup.validate", > > "summary": "Validating and correcting customer, up to 30 days old", > > "config": { > > "party": "customer", > > "max_age": 30, > > "correct": true > > } > > }, > > { > > "id": "01a0f8f1-7c00-7a10-9000-000000000002", > > "name": "Sign envelope", > > "provider": "silo.close" > > } > > ], > > "rescue": [ > > { > > "id": "01a0f8f1-7c00-7a10-9000-0000000000ff", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] Lookup stop on unregistered customer > > > > Set the state to `rejected` and stop when the customer's tax ID is not on the register. Other invoices are signed as usual. > > > > ```json Lookup stop on unregistered customer workflow theme={"system"} > > { > > "name": "Lookup stop on unregistered customer", > > "description": "Reject an invoice whose customer tax ID is not on the register, sign the rest", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "01a0f8f1-7c00-7a10-9000-000000000011", > > "name": "Validate tax ID", > > "provider": "lookup.validate", > > "summary": "Validating and correcting customer, up to 30 days old", > > "config": { > > "party": "customer", > > "max_age": 30, > > "correct": true > > }, > > "next": [ > > { > > "status": "KO", > > "code": "not-found", > > "stop": true, > > "steps": [ > > { > > "id": "01a0f8f1-7c00-7a10-9000-000000000012", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `rejected`{.state .rejected}", > > "config": { > > "state": "rejected" > > } > > } > > ] > > } > > ] > > }, > > { > > "id": "01a0f8f1-7c00-7a10-9000-000000000013", > > "name": "Sign envelope", > > "provider": "silo.close" > > } > > ], > > "rescue": [ > > { > > "id": "01a0f8f1-7c00-7a10-9000-0000000000ff", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Party workflows > > > [accordion] Lookup validate party > > > > Validate a party's tax ID and write the registered name into the party. > > > > ```json Lookup validate party workflow theme={"system"} > > { > > "name": "Lookup validate party", > > "description": "Validate and correct a party's tax ID against its register", > > "schema": "org/party", > > "steps": [ > > { > > "id": "01a0f8f1-7c00-7a10-9000-000000000021", > > "name": "Validate tax ID", > > "provider": "lookup.validate", > > "summary": "Validating and correcting party, up to 30 days old", > > "config": { > > "party": "customer", > > "max_age": 30, > > "correct": true > > } > > } > > ], > > "rescue": [ > > { > > "id": "01a0f8f1-7c00-7a10-9000-0000000000ff", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Lookup app → # NetSuite Source: https://docs.invopop.com/apps/netsuite Generate legally compliant invoices from NetSuite > [!NOTE] > > Invopop has partnered with Novutech to provide an integration with NetSuite. Please get in touch with us at \[[support@invopop.com](mailto:support@invopop.com)]\(mailto:[support@invopop.com](mailto:support@invopop.com)) to request an Invopop - NetSuite integration. # OASIS UBL Source: https://docs.invopop.com/apps/oasis-ubl Convert GOBL to the OASIS UBL format. > [tab] Description > > > [card] OASIS UBL > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Format | > > **OASIS UBL (Universal Business Language)** is a royalty-free [OASIS](https://www.OASIS-open.org/committees/tc_home.php?wg_abbrev=ubl) standard defining XML business documents such as purchase orders, invoices, and waybills. This app converts GOBL documents to and from UBL XML. > > ## Key features > > Output different UBL syntaxes: > > * Peppol BIS v3 UBL invoice and credit note > * XRechnung UBL invoice V2.0 > * EN 16931 UBL invoice and credit note > > **File access:** by default Invopop will generate public URLs with a secure hash that can be shared with customers. If this is not desired, you can configure the action to make the file private, so it is only accessible via the API. > > **Embedded attachments:** the generate action can embed the invoice PDF and any supporting documents uploaded to the silo entry with the `attachment` category directly in the UBL XML. See [embed attachments in UBL and CII documents](/guides/file-uploads#embed-attachments-in-ubl-and-cii-documents). > [tab] Actions > > > [card] Generate UBL document > > > > 1 > > Generate a new UBL document from the GOBL source. > > > [card] Import UBL document > > > > 1 > > Convert an incoming UBL XML into a GOBL document. > [tab] Documents > > Sample invoices demonstrating various OASIS UBL implementations across different countries and use cases. > > > [accordion] XRechnung B2B Invoice (Germany) > > > > Standard XRechnung invoice for business-to-business transactions using the UBL format. > > > > ```json XRechnung B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-xrechnung-v3" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "people": [ > > { > > "name": { > > "given": "John", > > "surname": "Doe" > > } > > } > > ], > > "telephones": [ > > { > > "num": "+49100200300" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1620.00" > > } > > ], > > "ordering": { > > "code": "N" > > }, > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DE89370400440532013000", > > "name": "Random Bank Co." > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-xrechnung-v3" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "people": [ > > { > > "name": { > > "given": "John", > > "surname": "Doe" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+49100200300" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "ordering": { > > "code": "N" > > }, > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DE89370400440532013000", > > "name": "Random Bank Co." > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "19%", > > "amount": "307.80" > > } > > ], > > "amount": "307.80" > > } > > ], > > "sum": "307.80" > > }, > > "tax": "307.80", > > "total_with_tax": "1927.80", > > "payable": "1927.80" > > } > > } > > ``` > > > [accordion] XRechnung B2G Invoice (Germany) > > > > XRechnung invoice for business-to-government transactions, compliant with German public procurement requirements. > > > > ```json XRechnung B2G Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-xrechnung-v3" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "people": [ > > { > > "name": { > > "given": "John", > > "surname": "Doe" > > } > > } > > ], > > "telephones": [ > > { > > "num": "+49100200300" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Deutsche Bahn", > > "tax_id": { > > "country": "DE", > > "code": "811569869" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE811569869" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1620.00" > > } > > ], > > "ordering": { > > "code": "992-90009-96" > > }, > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DE89370400440532013000", > > "name": "Random Bank Co." > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-xrechnung-v3" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "people": [ > > { > > "name": { > > "given": "John", > > "surname": "Doe" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+49100200300" > > } > > ] > > }, > > "customer": { > > "name": "Deutsche Bahn", > > "tax_id": { > > "country": "DE", > > "code": "811569869" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE811569869" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE811569869" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "ordering": { > > "code": "992-90009-96" > > }, > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > }, > > "instructions": { > > "key": "credit-transfer+sepa", > > "credit_transfer": [ > > { > > "iban": "DE89370400440532013000", > > "name": "Random Bank Co." > > } > > ], > > "ext": { > > "untdid-payment-means": "58" > > } > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "19%", > > "amount": "307.80" > > } > > ], > > "amount": "307.80" > > } > > ], > > "sum": "307.80" > > }, > > "tax": "307.80", > > "total_with_tax": "1927.80", > > "payable": "1927.80" > > } > > } > > ``` > > > [accordion] Peppol BIS Standard Invoice > > > > Standard Peppol BIS Billing 3.0 invoice demonstrating the pan-European e-invoicing framework. > > > > ```json Germany standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "19%", > > "amount": "330.60" > > } > > ], > > "amount": "330.60" > > } > > ], > > "sum": "330.60" > > }, > > "tax": "330.60", > > "total_with_tax": "2070.60", > > "payable": "2070.60" > > } > > } > > ``` # PDF Generator Source: https://docs.invopop.com/apps/pdf-generator Generate legally compliant PDFs from your GOBL sources > [tab] Description > > > [card] [PDF Generator](/guides/pdf-invoice) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Format | > > The PDF Generator app converts GOBL (Go Business Language) documents into professional PDF invoices and documents. This app is designed for tax regimes that don't require electronic reporting or invoicing, useful for generating simple PDF invoices that can be sent directly to customers. > > Once configured, the PDF Generator works with any GOBL invoice produced for any country in the world, providing a flexible solution for businesses operating globally or in jurisdictions without mandatory e-invoicing requirements. > > **Key features** > > * **Global compatibility:** Works with GOBL documents from any country, making it suitable for international businesses. > * **Customizable templates:** Configure logos, languages, date formats, and layout options to match your brand and regional preferences. > * **Multiple layouts:** Support for different page layouts including A4 and other standard formats. > * **Localization:** Generate PDFs in multiple languages with proper date and number formatting. > * **Professional output:** Produces legally compliant PDF invoices with all necessary fields and proper formatting. > * **Workflow integration:** Runs inside Invopop workflows alongside other processing steps. > > Make sure to check out our [PDF Invoice Guide](/guides/pdf-invoice) for instructions on how to generate PDF invoices and set up your workflows. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Generate PDF > > > > 1 > > Generate PDF from GOBL with customizable options for logo, language, date format, and layout. > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] PDF Invoice workflow > > > > This workflow automates PDF invoice generation with sequential numbering and document signing. > > > > ```json PDF invoice workflow theme={"system"} > > { > > "name": "PDF invoice", > > "description": "Add a sequential code and generate a PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "6b16c200-a75f-11ef-ba08-91f336761c6c", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · Invoice · 000001", > > "config": { > > "padding": 6, > > "start": 1, > > "name": "Invoice" > > } > > }, > > { > > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "c61adaa0-7b55-11ef-bffc-d9a10ebf9f89", > > "name": "Generate PDF", > > "config": { > > "logo_height": 40, > > "locale": "en", > > "date_format": "%Y-%m-%d" > > }, > > "summary": "English", > > "provider": "pdf" > > } > > ], > > "rescue": [ > > { > > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > > "name": "Set state", > > "config": { > > "state": "error" > > }, > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}" > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=pdf-invoice) *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about PDF Generator App → # Peppol Source: https://docs.invopop.com/apps/peppol Submit invoices and documents to the Peppol network. > [tab] Description > > > [card] [Peppol](/guides/peppol) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Network | > | Scope | B2B, B2G | > > [Peppol (Pan-European Public Procurement On-Line)](https://peppol.org/) is a global network for electronic document exchange, widely adopted for e-invoicing across multiple countries. It provides a standardized protocol for companies to exchange business documents like invoices, credit notes, and purchase orders. > > The Peppol network is particularly popular in: > > * Nordic countries (Norway, Finland) > * Asia-Pacific region (Japan, Singapore, Malaysia, Australia, New Zealand) > * Several EU countries for business-to-government invoicing (Germany, Italy, Croatia) > > Invopop allows you to send and receive documents through the Peppol network using a single integration while continuing to work with our [GOBL](https://docs.gobl.org/introduction) format. The Peppol app is designed to only send and receive documents, while format-specific apps such as OASIS UBL or UN/CEFACT CII handle the generation and import of the appropriate files. > > **Key features** > > * **Workflow automation:** This app provides automated workflows for sending and receiving invoices through the Peppol network. > * **Bidirectional communication:** Send invoices to Peppol participants and receive invoices from the network automatically. > * **Party registration:** Register companies (Peppol participants) with proof of ownership validation for regulatory compliance. > * **Multiple format support:** Supports both UBL (Peppol BIS Billing 3.0) and UN/CEFACT CII formats for maximum compatibility. > * **GOBL integration:** Converts between GOBL format and Peppol-compliant formats, allowing you to work with a single data model. > * **Participant ID management:** Automatically derives Peppol participant IDs from VAT numbers or local business identifiers. > * **Visibility control:** Configure visibility levels (SMP, SML, Peppol Directory) to control your presence in the network. > > Make sure to check out our [Peppol Guide](/guides/peppol) for instructions on how to send and receive invoices and set up your workflows. > > ## FAQ > > > [accordion] Handling 'Receiver Not Found' Errors > > > > If your job fails with a `KO` error status showing `receiver not found in the peppol network`, treat this the same as an invalid email address. As countries roll out their Peppol networks, you'll encounter a mix of registered and unregistered companies, so it's important to catch these issues early. Use the Peppol **Lookup Peppol participant** step to validate the Peppol ID before sending anything to the network. We recommend creating a separate workflow for this validation and running it against the customer's information. This will catch the error before creating the invoice. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send Peppol document > > > > 2 > > Send a document over the Peppol Network. > > > [card] Import Peppol document > > > > 3 > > Receive and import invoices from the Peppol network, supporting both UBL and CII formats. > > > [card] Generate Peppol Document > > > > 1 > > Generate the Peppol BIS UBL document from a GOBL invoice before sending. > > > [card] Verify document can be sent > > > > Check that the customer's Peppol endpoint is reachable before attempting delivery. > > > [card] Verify document has inboxes > > > > Check that at least one registered party on the document can receive it. > > > [card] Lookup Peppol participant > > > > Look up a participant in the Peppol directory and SMP. > > > [card] Register party on Peppol > > > > 100/mo > > Register a company as a Peppol participant with the network. > > > [card] Register party for Peppol approval > > > > Generate a registration link for proof of ownership submission. > > > [card] Wait for Peppol approval > > > > Wait for company identity and ownership validation. > > > [card] Unregister party from Peppol > > > > Remove the participant from Invopop's SMP so it no longer receives documents through Invopop. > > > [card] Start Peppol migration > > > > Issue a migration key so the participant can move to another Peppol provider. The key is stored in the `migration-key` meta of the entry. > > > [card] Wait for Peppol migration > > > > Wait until the new provider has used the migration key, then remove the participant from Invopop's SMP. > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] Peppol send invoice workflow > > > > This workflow converts a GOBL document into the Peppol format and sends it to the network. > > > > ```json Peppol send invoice workflow theme={"system"} > > { > > "name": "Peppol send invoice", > > "description": "Send a Peppol BIS invoice through the Peppol network", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "2354afd0-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · Peppol · PPL000001", > > "config": { > > "name": "PPL", > > "padding": 6, > > "prefix": "PPL", > > "start": 1 > > } > > }, > > { > > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "fc5aa8d0-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol BIS Billing v3", > > "config": { > > "doc_type": "bis-invoice-v3", > > "private": false, > > "validate_ubl": true > > } > > }, > > { > > "id": "075442a0-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Send Peppol document", > > "provider": "peppol.send" > > }, > > { > > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=peppol-send) > > > [accordion] Peppol receive invoice workflow > > > > This workflow receives incoming documents from the Peppol network and converts them to the GOBL format. > > > > ```json Peppol receive invoice workflow theme={"system"} > > { > > "name": "Peppol receive invoice", > > "description": "Receive an invoice through Peppol", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "db61c3c0-0fb5-11f0-b078-9fc456829eca", > > "name": "Import Peppol document", > > "provider": "peppol.import", > > "next": [ > > { > > "status": "OK", > > "code": "UBL", > > "steps": [ > > { > > "id": "62e94570-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Import UBL document", > > "provider": "ubl.import" > > } > > ], > > "stop": false > > }, > > { > > "status": "OK", > > "code": "CII", > > "steps": [ > > { > > "id": "6480ae50-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Import CII document", > > "provider": "cii.import" > > } > > ], > > "stop": false > > } > > ] > > }, > > { > > "id": "fdfc81a0-6e23-11f0-913b-5732f966b346", > > "name": "Set folder", > > "provider": "silo.folder", > > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > > "config": { > > "folder": "expenses" > > } > > }, > > { > > "id": "dd14a3e0-0fb5-11f0-b078-9fc456829eca", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e109d2e0-0fb5-11f0-b078-9fc456829eca", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=peppol-receive) > > > [accordion] Peppol register party workflow > > > > This workflow onboards companies (Peppol participants) to Invopop before they can issue or receive invoices. > > > > ```json Peppol register party workflow theme={"system"} > > { > > "name": "Peppol register party", > > "description": "Register a party with Peppol to issue and receive invoices", > > "schema": "org/party", > > "steps": [ > > { > > "id": "0adf46e0-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Register party for Peppol approval", > > "provider": "peppol.register.approval" > > }, > > { > > "id": "0e44b900-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "12aaf950-8fdb-11f0-a8fb-61ec9e5a76ba", > > "name": "Wait for Peppol approval", > > "provider": "peppol.wait.approval" > > }, > > { > > "id": "7a5a4db0-0fae-11f0-b37b-0be1c251a274", > > "name": "Register party on Peppol", > > "provider": "peppol.register", > > "summary": "Enabled · groups: ubl-invoice", > > "config": { > > "disable": false, > > "doc_groups": [ > > "ubl-invoice" > > ], > > "visibility": "smp+sml+peppol" > > } > > }, > > { > > "id": "7c2fa9f0-0fae-11f0-b37b-0be1c251a274", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "a34e83f0-25dc-11f0-b641-350e77c28eed", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=peppol-register) > > > [accordion] Peppol unregister party workflow > > > > This workflow revokes participant permissions to issue and receive documents. > > > > ```json Peppol unregister party workflow theme={"system"} > > { > > "name": "Peppol unregister party", > > "description": "Unregister a party from Peppol", > > "schema": "org/party", > > "steps": [ > > { > > "id": "453beac0-70a7-11f1-aca9-697108ec55ef", > > "name": "Unregister supplier from Peppol", > > "provider": "peppol.unregister" > > }, > > { > > "id": "7e79f610-adc5-11f0-abd8-03a58bc40d2a", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "9141b350-adc5-11f0-abd8-03a58bc40d2a", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=peppol-unregister) > > > [accordion] Peppol migrate party workflow > > > > This workflow moves a participant to another Peppol provider: it issues a migration key, waits for the new provider to use it, and then unregisters the party. > > > > ```json Peppol migrate party workflow theme={"system"} > > { > > "name": "Peppol migrate party", > > "description": "Move a party to another Peppol provider", > > "schema": "org/party", > > "steps": [ > > { > > "id": "2f2d6970-c72a-11f1-9faf-a62046e2e5be", > > "name": "Start Peppol migration", > > "provider": "peppol.migrate" > > }, > > { > > "id": "2f34cb83-c72a-11f1-998e-a62046e2e5be", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "2f34ccb2-c72a-11f1-bda9-a62046e2e5be", > > "name": "Wait for Peppol migration", > > "provider": "peppol.wait.migration" > > }, > > { > > "id": "2f34cd29-c72a-11f1-8188-a62046e2e5be", > > "name": "Unregister supplier from Peppol", > > "provider": "peppol.unregister" > > }, > > { > > "id": "2f34cd87-c72a-11f1-aed2-a62046e2e5be", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "2f34cdf5-c72a-11f1-b5cc-a62046e2e5be", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=peppol-migrate) > [tab] Documents > > Parties: > > > [accordion] Peppol supplier > > > > A party ready to send over Peppol: a `peppol` inbox identifies the participant, here a Spanish company under scheme `9920` (ES VAT number). > > > > ```json Peppol supplier example expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "B85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@example.com" > > } > > ] > > } > > ``` > > > [accordion] Peppol customer > > > > The receiving participant — a Belgian company addressed by its enterprise number under scheme `0208`. > > > > ```json Peppol customer example expandable theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Benelux Distribution NV", > > "tax_id": { > > "country": "BE", > > "code": "0403019261" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0403019261" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Meir", > > "locality": "Antwerpen", > > "region": "Antwerpen", > > "code": "2000", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "invoices@beneluxdistribution.be" > > } > > ] > > } > > ``` > > Invoices: > > > [accordion] Peppol B2B invoice > > > > A standard B2B invoice sent over the Peppol network. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon applies the European norm rules; the `peppol` inboxes on both parties identify the sending and receiving participants. > > > > Notice: > > > > * both parties carry a `peppol` inbox with the participant `scheme` and `code` used for routing, > > * the line tax states the VAT `percent` explicitly along with the [`untdid-tax-category`](https://docs.gobl.org/catalogues/untdid) extension, and, > > * totals are calculated automatically when the document is built. > > > > ```json Peppol B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "rounding": "currency" > > }, > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB98602642" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "21.0%", > > "amount": "365.40" > > } > > ], > > "amount": "365.40" > > } > > ], > > "sum": "365.40" > > }, > > "tax": "365.40", > > "total_with_tax": "2105.40", > > "payable": "2105.40" > > } > > } > > ``` > > > [accordion] Peppol B2B invoice with tax-inclusive prices (Belgium) > > > > A Belgian B2B invoice with VAT-inclusive prices and two different VAT rates. > > > > Notice: > > > > * `tax.prices_include` is set to `VAT`, so line prices are treated as tax-inclusive and the base amounts are derived automatically, > > * the supplier's inbox uses the combined `scheme:code` form (`0208:0735585741`), while the customer states `scheme` and `code` separately — both are equivalent, and, > > * the two lines apply the `general` (21%) and `reduced` (6%) Belgian VAT rates. > > > > ```json Peppol B2B Invoice Belgium theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": ["eu-en16931-v2017"], > > "type": "standard", > > "series": "S2025", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Provide One BV", > > "tax_id": { > > "country": "BE", > > "code": "0735585741" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "code": "0208:0735585741" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Rue de la Loi", > > "locality": "Bruxelles", > > "region": "Bruxelles", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "BE", > > "code": "0699912507" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0699912507" > > } > > ], > > "addresses": [{ > > "country": "BE" > > }] > > }, > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2025-05-30", > > "percent": "100%" > > } > > ] > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Promotional cookies", > > "price": "10.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "S2025", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One BV", > > "tax_id": { > > "country": "BE", > > "code": "0735585741" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0735585741" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0735585741" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Rue de la Loi", > > "locality": "Bruxelles", > > "region": "Bruxelles", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "BE", > > "code": "0699912507" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0699912507" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0699912507" > > } > > ], > > "addresses": [ > > { > > "country": "BE" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Promotional cookies", > > "price": "10.00", > > "unit": "one" > > }, > > "sum": "10.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "6.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "10.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2025-05-30", > > "amount": "1630.00", > > "percent": "100%" > > } > > ] > > } > > }, > > "totals": { > > "sum": "1630.00", > > "tax_included": "281.72", > > "total": "1348.28", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1338.84", > > "percent": "21.0%", > > "amount": "281.16" > > }, > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "9.43", > > "percent": "6.0%", > > "amount": "0.57" > > } > > ], > > "amount": "281.72" > > } > > ], > > "sum": "281.72" > > }, > > "tax": "281.72", > > "total_with_tax": "1630.00", > > "payable": "1630.00" > > } > > } > > ``` > > > [accordion] Peppol B2B credit note > > > > A credit note reversing part of a previously sent invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, which the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon maps to UNTDID document type `381`, > > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, with a `reason` for the correction, and, > > * the lines state the credited amounts as positive values — the document type is what reverses them. > > > > ```json Peppol B2B Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "tax": { > > "rounding": "currency" > > }, > > "preceding": [ > > { > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "reason": "Services not delivered" > > } > > ], > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-04-03", > > "series": "INV", > > "code": "PP000003", > > "reason": "Services not delivered" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB98602642" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "290.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "290.00" > > } > > ], > > "totals": { > > "sum": "290.00", > > "total": "290.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "290.00", > > "percent": "21.0%", > > "amount": "60.90" > > } > > ], > > "amount": "60.90" > > } > > ], > > "sum": "60.90" > > }, > > "tax": "60.90", > > "total_with_tax": "350.90", > > "payable": "350.90" > > } > > } > > ``` > > Belgium: > > > [accordion] Belgium supplier > > > > ```json Belgium supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@example.com" > > } > > ] > > } > > ``` > > > [accordion] Belgium customer > > > > ```json Belgium customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Client Belgique SRL", > > "tax_id": { > > "country": "BE", > > "code": "0417543527" > > }, > > "addresses": [ > > { > > "num": "88", > > "street": "Avenue Louise", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "achats@clientbelgique.be" > > } > > ] > > } > > ``` > > > [accordion] Peppol Belgium - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon and ensure the `customer` field contains valid tax identification details. The addon will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > ```json Belgium standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0859536301" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "21.0%", > > "amount": "365.40" > > } > > ], > > "amount": "365.40" > > } > > ], > > "sum": "365.40" > > }, > > "tax": "365.40", > > "total_with_tax": "2105.40", > > "payable": "2105.40" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B zero rated goods invoice > > > > Goods and services that are subject to VAT but taxed at a 0% rate. Zero rated goods in Belgium are: > > > > * Daily and weekly newspapers, as well as periodical publications that meet a specific criteria. > > * Recyclable materials such as waste and scrap intended for recycling. > > * Educational materials under specific conditions. > > > > To create an invoice with zero rated goods, use the tax key `zero` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `Z` (zero rated goods) when the silo entry is built. > > > > > [!NOTE] > > > > > > With zero-rated supplies, businesses can still reclaim input VAT on their purchases, whereas with exempt supplies they cannot. > > > > ```json Belgium zero rate invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Het Laatste Nieuws", > > "price": "2.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero" > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0859536301" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Het Laatste Nieuws", > > "price": "2.00", > > "unit": "one" > > }, > > "sum": "2.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "2.00", > > "total": "2.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "untdid-tax-category": "Z" > > }, > > "base": "2.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "2.00", > > "payable": "2.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Belgium Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Belgium reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Belgium intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "BE", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Belgium outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Belgium export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "uuid": "019bb71c-7205-7000-9aef-878145b9fce6", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "uuid": "019bb71c-7205-7000-9aef-878145b9fce6", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B credit note > > > > Credit notes reverse all or part of a previously issued invoice — for returns, cancellations, or billing corrections. > > > > To create a credit note, set the `type` to `credit-note` and reference the original invoice in the `preceding` array by `series`, `code`, and `issue_date`, optionally with a `reason`. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID document type to `381` (credit note) when the silo entry is built. > > > > > [!NOTE] > > > > > > The lines describe the amounts being credited as positive values — the credit note document type is what reverses them. A credit note can cover the full original invoice or just part of it. > > > > ```json Belgium credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "reason": "Services not delivered" > > } > > ], > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-04-03", > > "series": "INV", > > "code": "PP000003", > > "reason": "Services not delivered" > > } > > ], > > "tax": { > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0859536301" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "290.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "290.00" > > } > > ], > > "totals": { > > "sum": "290.00", > > "total": "290.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "290.00", > > "percent": "21.0%", > > "amount": "60.90" > > } > > ], > > "amount": "60.90" > > } > > ], > > "sum": "60.90" > > }, > > "tax": "60.90", > > "total_with_tax": "350.90", > > "payable": "350.90" > > } > > } > > ``` > > Germany: > > > [accordion] Germany supplier > > > > ```json Germany supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > } > > ``` > > > [accordion] Germany customer > > > > A B2B customer addressed by its VAT number under scheme `9930`. > > > > ```json Germany customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Muster Handel GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE111111125" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Berliner Strasse", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "buchhaltung@musterhandel.de" > > } > > ] > > } > > ``` > > > [accordion] Germany government customer > > > > A B2G customer addressed by its Leitweg-ID under scheme `0204` — required for invoicing German public administrations. > > > > ```json Germany government customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Bundesverwaltungsamt", > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0204", > > "code": "991-33333TEST-33" > > } > > ], > > "addresses": [ > > { > > "num": "50", > > "street": "Barbarastraße", > > "locality": "Köln", > > "region": "NW", > > "code": "50735", > > "country": "DE" > > } > > ], > > "people": [ > > { > > "name": { > > "given": "Erika", > > "surname": "Mustermann" > > } > > } > > ], > > "emails": [ > > { > > "addr": "rechnungseingang@bva.bund.de" > > } > > ] > > } > > ``` > > > [accordion] Peppol Germany - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The customer requires a full invoice. > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon and ensure the `customer` field contains valid tax identification details. The addon will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > > [!NOTE] > > > > > > The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid. > > > > ```json Germany standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "19%", > > "amount": "330.60" > > } > > ], > > "amount": "330.60" > > } > > ], > > "sum": "330.60" > > }, > > "tax": "330.60", > > "total_with_tax": "2070.60", > > "payable": "2070.60" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Germany Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "DE", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Deutsche Sprachschule", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Deutschkurs - Monat", > > "price": "120.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Deutsche Sprachschule", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Deutschkurs - Monat", > > "price": "120.00", > > "unit": "one" > > }, > > "sum": "120.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "120.00", > > "total": "120.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > }, > > "base": "120.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "120.00", > > "payable": "120.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Germany reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Germany intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Germany outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Germany export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B credit note > > > > Credit notes reverse all or part of a previously issued invoice — for returns, cancellations, or billing corrections. > > > > To create a credit note, set the `type` to `credit-note` and reference the original invoice in the `preceding` array by `series`, `code`, and `issue_date`, optionally with a `reason`. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID document type to `381` (credit note) when the silo entry is built. > > > > > [!NOTE] > > > > > > The lines describe the amounts being credited as positive values — the credit note document type is what reverses them. A credit note can cover the full original invoice or just part of it. > > > > ```json Germany credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "reason": "Services not delivered" > > } > > ], > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-04-03", > > "series": "INV", > > "code": "PP000003", > > "reason": "Services not delivered" > > } > > ], > > "tax": { > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "290.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "290.00" > > } > > ], > > "totals": { > > "sum": "290.00", > > "total": "290.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "290.00", > > "percent": "19%", > > "amount": "55.10" > > } > > ], > > "amount": "55.10" > > } > > ], > > "sum": "55.10" > > }, > > "tax": "55.10", > > "total_with_tax": "345.10", > > "payable": "345.10" > > } > > } > > ``` > > Italy: > > > [accordion] Peppol Italy - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when the customer is a registered business (has a tax identification number). > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons. The addons will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > > [!NOTE] > > > > > > The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid. > > > > ```json Italy standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT05140920017" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "22.0%", > > "amount": "382.80" > > } > > ], > > "amount": "382.80" > > } > > ], > > "sum": "382.80" > > }, > > "tax": "382.80", > > "total_with_tax": "2122.80", > > "payable": "2122.80" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B zero rated goods invoice > > > > Goods and services that are subject to VAT but taxed at a 0% rate. Zero rated goods in Italy are: > > > > * Daily and weekly newspapers, as well as periodical publications that meet a specific criteria. > > * Recyclable materials such as waste and scrap intended for recycling. > > * Educational materials under specific conditions. > > > > To create a zero-rated invoice, use the tax key `zero` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `Z` (zero rated goods) when the silo entry is built. > > > > > [!NOTE] > > > > > > With zero-rated supplies, businesses can still reclaim input VAT on their purchases, whereas with exempt supplies they cannot. > > > > ```json Italy zero rate invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "La Repubblica", > > "price": "2.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero" > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT05140920017" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "La Repubblica", > > "price": "2.00", > > "unit": "one" > > }, > > "sum": "2.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "it-sdi-exempt": "N1", > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "2.00", > > "total": "2.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "it-sdi-exempt": "N1", > > "untdid-tax-category": "Z" > > }, > > "base": "2.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "2.00", > > "payable": "2.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Italy Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "$regime": "IT", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Scuola di Lingua Italiana", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "Milano-Capital", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Corso di Italiano - Mese", > > "price": "120.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Scuola di Lingua Italiana", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "Milano-Capital", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Corso di Italiano - Mese", > > "price": "120.00", > > "unit": "one" > > }, > > "sum": "120.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "it-sdi-exempt": "N4", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "120.00", > > "total": "120.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "it-sdi-exempt": "N4", > > "untdid-tax-category": "E" > > }, > > "base": "120.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "120.00", > > "payable": "120.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Italy reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "it-sdi-exempt": "N6.9", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "it-sdi-exempt": "N6.9", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Italy intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "it-sdi-exempt": "N3.2", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "it-sdi-exempt": "N3.2", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Italy outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "it-sdi-exempt": "N2.1", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "it-sdi-exempt": "N2.1", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Italy export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "it-sdi-exempt": "N3.1", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "it-sdi-exempt": "N3.1", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > Spain: > > > [accordion] Peppol Spain - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The transaction amount is €400 VAT included or above, or the customer requires a full invoice. > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons and ensure the `customer` field contains valid tax identification details. The addons will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > > [!NOTE] > > > > > > The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid. > > > > ```json Spain standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B48994131" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB48994131" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B48994131" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB48994131" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB48994131" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "21.0%", > > "amount": "365.40" > > } > > ], > > "amount": "365.40" > > } > > ], > > "sum": "365.40" > > }, > > "tax": "365.40", > > "total_with_tax": "2105.40", > > "payable": "2105.40" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B zero-rated invoice > > > > Zero-rated invoices are used for goods and services that are subject to VAT but taxed at a 0% rate. > > > > To create a zero-rated invoice, use the tax key `zero` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `Z` (zero rated goods) when the silo entry is built. > > > > > [!NOTE] > > > > > > With zero-rated supplies, businesses can still reclaim input VAT on their purchases, whereas with exempt supplies they cannot. > > > > ```json Spain zero rate invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B03176864" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB03176864" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "El País", > > "price": "2.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero" > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B03176864" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB03176864" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB03176864" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "El País", > > "price": "2.00", > > "unit": "one" > > }, > > "sum": "2.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "2.00", > > "total": "2.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "Z" > > }, > > "base": "2.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "2.00", > > "payable": "2.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Spain Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Escuela de Lengua Española", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Madrid-Capital", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Curso de Español - Mes", > > "price": "120.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Escuela de Lengua Española", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB71353213" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Madrid-Capital", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Curso de Español - Mes", > > "price": "120.00", > > "unit": "one" > > }, > > "sum": "120.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "es-verifactu-exempt": "E1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "120.00", > > "total": "120.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "es-verifactu-exempt": "E1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "E" > > }, > > "base": "120.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "120.00", > > "payable": "120.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Spain reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "es-verifactu-op-class": "S2", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "es-verifactu-op-class": "S2", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Spain intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "es-verifactu-exempt": "E5", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "es-verifactu-exempt": "E5", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Spain outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Spain export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB71353213" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Peppol App → # Poland Source: https://docs.invopop.com/apps/poland Register suppliers and issue FA(3) invoices through Poland's KSeF 2.0 system. > [tab] Description > > > [card] [Register suppliers](/guides/pl-ksef-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/pl-ksef) > > > > Issuing guide › > > > [card] [Receive invoices](/guides/pl-ksef-receiving) > > > > Receiving guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B | > | Country | [Poland](/compliance/poland) | > > [KSeF](https://www.gov.pl/web/finanse) (Krajowy System e-Faktur) 2.0 is Poland's mandatory national e-invoicing system operated by the [Ministry of Finance](https://www.gov.pl/web/finanse). The system uses the FA(3) XML schema format for structured invoice data and provides real-time clearance for all B2B invoices. > > Electronic invoicing in Poland operates on a clearance model whereby every invoice must be validated against the FA(3) schema and business rules in real-time. Validated invoices receive a unique KSeF ID and official timestamp. The platform provides secure archiving for issued and received e-invoices. > > Invoices are encoded in FA(3), a strict XML format published and maintained by Polish tax authorities. The schema enforces standardized fields for both domestic and cross-border transactions, including buyer/seller data, VAT details, and item lines. > > **Key features** > > * **Party registration:** Register suppliers in the KSeF system with their Polish Tax ID (NIP). > > * **API certificate upload:** Upload KSeF certificates, private keys, and passwords programmatically via API for automated integration. > > * **Workflow automation:** Automated workflows for registering parties, issuing invoices, and importing received invoices through the KSeF 2.0 system. > > * **Real-time validation:** Every invoice is validated in real-time against the FA(3) schema and business rules, ensuring compliance with Polish e-invoicing regulations. > > * **Invoice import & sync:** Automatically poll KSeF for received invoices and import them into Invopop in GOBL format. > > * **Legally compliant PDF invoices:** Invoices are generated with all mandatory fields and FA(3) QR codes linked to the KSeF portal. > > * **FA(3) XML generation:** Compliant XML generation is supported for the KSeF FA(3) schema. > > * **QR code:** Generates the FA(3) QR code according to KSeF specifications. > > * **KSeF 2.0 integration:** Direct integration with KSeF 2.0, Poland's official national platform for electronic invoicing. > > > [!NOTE] > > > > **KSeF 2.0 Environment Support** > > > > Invopop supports KSeF 2.0 in sandbox (test and demo modes) and production environments. In sandbox, you can choose between test mode (with automatically generated certificates) or demo mode (simulating the real production flow). In production, all suppliers are registered directly with the KSeF production system. > > Check out our [Supplier registration guide](/guides/pl-ksef-supplier) for registering parties with KSeF, the [Issuing invoices guide](/guides/pl-ksef) for issuing invoices, and the [Receiving invoices guide](/guides/pl-ksef-receiving) for importing received invoices. > > ## FAQ > > Invoicing questions > > > [accordion] What happens when I send an invoice to a foreign recipient? > > > > International (cross-border) invoices are handled just like domestic invoices in KSeF: > > > > * The invoice is created in GOBL with the foreign recipient's details > > * It's converted to FA(3) XML format and submitted to KSeF > > * KSeF validates and clears the invoice, assigning a unique KSeF ID > > * The invoice is registered in the KSeF system > > > > However, since foreign recipients cannot access KSeF, you must deliver the invoice through other channels (email, EDI, etc.). Include the KSeF QR code in the delivery for verification purposes. > > > [accordion] What's the difference between test, demo, and production environments? > > > > **Test mode** (sandbox only): Uses self-signed certificates generated automatically by Invopop. Perfect for quick testing without accessing the KSeF portal. Invoices are not sent to real KSeF servers. > > > > **Demo mode** (sandbox only): Connects to the official [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/). Requires manual certificate generation, simulating the full production flow in a safe test environment. > > > > **Production mode** (live workspace): Connects to the live [KSeF Portal](https://ap.ksef.mf.gov.pl/). Requires valid company credentials and certificates. All invoices are submitted to the official KSeF system. > > > > > [!TIP] > > > > > > Use test mode for initial integration testing, then switch to demo mode when you're ready to simulate the real certificate flow before going live. > > > [accordion] What KSeF applications and portals are available? > > > > Official KSeF applications: > > > > * [KSeF Taxpayer Application](https://ksef.podatki.gov.pl/aplikacja-podatnika-ksef-i-inne-narzedzia/bezplatne-narzedzie-wersja-produkcyjna/) – the main portal with all functionalities > > * [KSeF Mobile Application](https://ksef.podatki.gov.pl/aplikacja-podatnika-ksef-i-inne-narzedzia/aplikacja-mobilna-ksef/) – a mobile app for on-the-go access > > * [e-mikrofirma](https://login.mf.gov.pl/Account/Select?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3D09e2877e-702a-4e27-8818-9472ca964c0a%26redirect_uri%3Dhttps%253A%252F%252Furzadskarbowy.gov.pl%26response_type%3Dcode%26scope%3Dprofile%2520openid%2520DataHub.UserAccess%2520eFormsClientApi.UserAccess%2520ChatApi.UserAccess%2520offline_access%26state%3D8f196c7682654d0da49b42bfc9045e51%26code_challenge%3DSIwxyxXJpAzUgzrMW96UIH9vNc6P0-dkdc7l482AWQA%26code_challenge_method%3DS256) – a simplified portal aimed at micro-entrepreneurs > > > > For testing: > > > > * [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/) – demo environment for testing > > > [accordion] How do I configure my workspace for Polish invoicing? > > > > Install the KSeF Poland app, register your supplier (Test, Demo, or Production environment), and run invoices through the Send Invoice workflow. Each environment requires its own NIP and certificate setup. > > > [accordion] I get a "failed to create session (Status 403 Forbidden)" error when sending an invoice to KSeF. What does it mean? > > > > This error means the uploaded KSeF certificate does not have the required permissions to issue invoices. This typically happens when the certificate was uploaded by someone who is not the company administrator and only has limited permissions granted by the main company account. > > > > The KSeF certificate uploaded to Invopop must belong to either: > > > > * The **company account** directly logged into KSeF, or > > * An entity that has both **InvoiceRead** and **InvoiceWrite** permissions (managed within KSeF) > > > > To resolve this, you have two options: > > > > 1. **Grant permissions in KSeF**: The company admin (or whoever has direct access to the KSeF company account) grants `InvoiceRead` and `InvoiceWrite` permissions to the user who uploaded the certificate to Invopop. This can be done from the [KSeF application portal](https://ap.ksef.mf.gov.pl/) and requires no further action in Invopop (no need to unregister/register). > > 2. **Re-register with a new certificate**: Unregister the supplier in Invopop and register it again using a certificate generated from the main KSeF company account (or another account with the required permissions). > > > [accordion] Where do I find Poland-specific GOBL documentation? > > > > See the [Poland tax regime in GOBL](https://docs.gobl.org/regimes/pl) for tax categories and NIP rules. The [`pl-favat-v3`](https://docs.gobl.org/addons/pl-favat-v3) addon documents the FA(3) schema fields required for KSeF. > > > [accordion] How do I set the unit of measure (jednostka miary) on a line item, like "szt." or "usł."? > > > > Polish invoicing law requires a unit of measure for every line, and KSeF maps it to the `P_8A` field on each `FaWiersz`. Invopop supports two ways to populate it: > > > > 1. **Canonical unit code on `Item.Unit`** — preferred when the unit exists in the GOBL unit catalogue or as a UN/ECE Recommendation 20 code. For example, `Item.Unit: "H87"` (piece) or `Item.Unit: "KGM"` (kilogram). The gobl.ksef converter emits the UN/ECE code directly into `P_8A`. > > 2. **Free-form label on `Item.Meta["unit-label"]`** — use this for Polish abbreviations that do not match a canonical code, such as `"szt."` (sztuka — piece), `"usł."` (usługa — service), `"kpl."` (komplet — set) or `"opak."` (opakowanie — package). The value is passed through to `P_8A` unchanged, so the supplier's exact wording is preserved on the KSeF XML. > > > > Example line item using a free-form label: > > > > ```json theme={"system"} > > { > > "item": { > > "name": "Konsultacja prawna", > > "price": "200.00", > > "meta": { > > "unit-label": "usł." > > } > > }, > > "quantity": "1" > > } > > ``` > > > > > [!NOTE] > > > > > > When an inbound KSeF invoice contains a `P_8A` value that is not a recognised GOBL or UN/ECE code, gobl.ksef preserves the original string under `Item.Meta["unit-label"]` so round-trips do not lose the supplier's wording. `Item.Unit` is only populated when the value validates as a canonical code. > > Registering supplier questions > > > [accordion] Why did my supplier registration fail? > > > > Common reasons for registration failures: > > > > * **Certificate and private key mismatch**: Ensure you uploaded both files from the same certificate generation > > > > * **Incorrect password**: Verify the password matches what you set during certificate generation > > > > * **Future start date**: Certificate start date must be today or in the past > > > > * **Wrong portal environment**: Demo certificates won't work with production, and vice versa > > > > * **File encoding issues**: For API uploads, ensure files are properly base64-encoded > > > > * **Expired certificate**: Check that the certificate is still valid > > > > * **Invalid NIP**: Verify the Polish Tax ID is correct and has access to KSeF > > > > > [!NOTE] > > > > > > Check the workflow error logs in the Invopop Console for detailed error messages that can help diagnose the specific issue. > > > [accordion] I don't have a Polish NIP for testing. How can I get one? > > > > **For sandbox testing**: > > > > * **Test mode**: Generate fake NIPs at [http://generatory.it/](http://generatory.it/). These work immediately with self-signed certificates. > > * **Demo mode**: You need a real NIP with access to the KSeF Demo Portal. > > > [accordion] How do I onboard a new supplier in Poland? > > > > Choose an environment (Test, Demo, or Production). Generate a KSeF certificate from the relevant portal (or use a self-signed cert in Test mode), upload it to Invopop with the matching password, and register the supplier through the KSeF Register Supplier workflow. > > > [accordion] What certificates does KSeF require to authenticate a supplier? > > > > A KSeF certificate exported as PKCS#12 (.p12) with password, generated through the KSeF Application Portal (or auto-generated by Invopop in Test mode). The certificate must have InvoiceRead + InvoiceWrite permissions. > > > [accordion] How are supplier credentials stored in Invopop for Poland? > > > > The KSeF certificate (PKCS#12 .p12 with password) is stored encrypted at rest. Invopop uses it to authenticate session creation with KSeF on the supplier's behalf; the password is never returned in API responses. > > Receiving questions > > > [accordion] How do I import received invoices from suppliers? > > > > Invopop automatically imports received invoices through a polling service: > > > > 1. **Configure polling interval** during party registration (hourly, daily, weekly, or monthly) > > 2. **Set up the sync workflow** to query KSeF for new invoices > > 3. **Configure the import workflow** to convert FA(3) XML to GOBL format > > 4. **Link the workflows** in the Poland app configuration > > > > The system automatically checks KSeF at your chosen interval and imports any new invoices to your configured folder. > > > > **For manual import**, use the API to trigger import jobs with specific KSeF numbers or date ranges. See the [Manual import](/guides/pl-ksef-receiving#manual-import) section in the receiving invoices guide. > > > [accordion] Can I import historical invoices or backfill missed invoices? > > > > Yes. You can manually trigger a sync workflow to import invoices from a specific date range using the [Create a Job endpoint](/api-ref/transform/jobs/create-a-job-post). > > > > Pass the `from` and `upto` date parameters to sync all invoices received within that period: > > > > ```json theme={"system"} > > { > > "workflow_id": "YOUR_SYNC_WORKFLOW_ID", > > "entry_id": "YOUR_PARTY_ENTRY_ID", > > "args": { > > "from": "2026-01-01T00:00:00Z", > > "upto": "2026-01-31T23:59:59Z" > > } > > } > > ``` > > > > This is useful for backfilling invoices after a polling outage or importing historical data before enabling automatic polling. > > > [accordion] How do I know if my automatic invoice import is working? > > > > Check these indicators: > > > > 1. **Polling configuration**: Verify the polling interval is set in your party registration workflow configuration > > > > 2. **App configuration**: Confirm the Poland app has your sync workflow configured > > > > 3. **Recent imports**: Check the "Invoices · Expenses" folder for newly imported invoices > > > > 4. **Job logs**: Review job logs in the Console for sync and import workflow executions > > > > 5. **Error notifications**: Set up email or Slack notifications in your workflow error handling to alert you of failures > > > > > [!TIP] > > > > > > Test the import by manually triggering the sync workflow with a date range that includes known received invoices. > > > [accordion] What format do received KSeF invoices arrive in? > > > > FA(3) XML conforming to the Ministry of Finance schema. Each invoice carries a unique KSeF reference (numer KSeF) plus the issuer's signature and a QR code linking to the public verification page. > > > [accordion] How does Invopop convert received Polish invoices into GOBL? > > > > Inbound FA(3) XMLs are parsed via [`gobl.ksef`](https://github.com/invopop/gobl.ksef). Tax rates, line items, and parties map onto GOBL fields; the original signed XML is preserved as a silo entry attachment. > > More answers in our [Poland FAQ](/faq/poland) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Register Party in KSeF (Poland) > > > > 100/mo > > Register a party (supplier) with the KSeF system using their Polish Tax ID (NIP). > > > [card] Wait for KSeF certificate upload > > > > Wait until the supplier uploads the KSeF certificate that authorises Invopop to act on their behalf. > > > [card] Unregister supplier from KSeF > > > > Remove a supplier's KSeF registration and stop issuing or receiving invoices in their name. > > > [card] Generate FA(3) XML > > > > 1 > > Generate FA(3) XML from GOBL invoices for the KSeF system. > > > [card] Send FA(3) XML to KSeF > > > > 2 > > Submit FA(3) XML invoices to the KSeF clearance system and receive KSeF ID upon approval. > > > [card] Import Invoice from KSeF > > > > 3 > > Import a received invoice from KSeF and convert it to GOBL format. > > > [card] Sync Received Invoices from KSeF > > > > Query KSeF for received invoices in a time range and create import jobs for each invoice. > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] Poland party registration workflow > > > > This workflow registers a supplier in the KSeF system. > > > > ```json KSeF register supplier (send) workflow theme={"system"} > > { > > "name": "KSeF register supplier (send)", > > "description": "Register a supplier with KSeF for sending e-invoices", > > "schema": "org/party", > > "steps": [ > > { > > "id": "f6ca2240-fb6b-11f0-b2f4-37a8eb8f9eb9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "f7315970-fb74-11f0-8137-27e02839a7ca", > > "name": "Register supplier with KSeF", > > "provider": "gov-pl.register" > > }, > > { > > "id": "3166cb10-fdba-11f0-a562-870ebfef62f3", > > "name": "Wait for KSeF certificate upload", > > "provider": "gov-pl.wait.upload" > > }, > > { > > "id": "f0b45d30-fb6b-11f0-b2f4-37a8eb8f9eb9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "ebf99440-fb6b-11f0-b2f4-37a8eb8f9eb9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=pl-register) > > > [accordion] Poland invoice sending workflow > > > > This workflow automates FA(3) Polish invoice processing and tax compliance. > > > > ```json KSeF issue invoice workflow theme={"system"} > > { > > "name": "KSeF issue invoice", > > "description": "Issue an invoice through KSeF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "20bbac70-fb6e-11f0-8a4e-79beeb9e3cf2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "9b5f5330-fb70-11f0-bcdd-bdb71eaf1fb4", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · KSeF · 000001", > > "config": { > > "name": "KSeF", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "2f41c860-fb6e-11f0-8a4e-79beeb9e3cf2", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "2b064190-fb6e-11f0-8a4e-79beeb9e3cf2", > > "name": "Generate FA_VAT v3 XML", > > "provider": "gov-pl.generate" > > }, > > { > > "id": "36ec8550-fb6e-11f0-8a4e-79beeb9e3cf2", > > "name": "Send invoice to KSeF", > > "provider": "gov-pl.send" > > }, > > { > > "id": "3a3e2150-fb6e-11f0-8a4e-79beeb9e3cf2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "3eca1210-fb6e-11f0-8a4e-79beeb9e3cf2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=pl-send) > > > [accordion] Poland invoice import workflow > > > > This workflow imports a received invoice from KSeF and converts it to GOBL format. > > > > ```json KSeF import invoice workflow theme={"system"} > > { > > "name": "KSeF import invoice", > > "description": "Import an invoice received through KSeF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ba8faad0-01d7-11f1-8b4e-fdb288ce1d84", > > "name": "Import invoice from KSeF", > > "provider": "gov-pl.import" > > }, > > { > > "id": "5efe18e0-01e7-11f1-8a2b-3f4babb9af4d", > > "name": "Set folder", > > "provider": "silo.folder", > > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > > "config": { > > "folder": "expenses" > > } > > }, > > { > > "id": "653ff700-01e7-11f1-8a2b-3f4babb9af4d", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "7d993da0-0275-11f1-94f6-05637523f70d", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=pl-import) > > > [accordion] Poland invoice sync workflow > > > > This workflow syncs all received invoices for a party within a specific time range and creates import jobs for each invoice found. > > > > ```json KSeF sync received invoices workflow theme={"system"} > > { > > "name": "KSeF sync received invoices", > > "description": "Sync received invoices from KSeF and dispatch import jobs", > > "schema": "org/party", > > "steps": [ > > { > > "id": "5bddfd40-0220-11f1-bd80-c7df39ccdf0b", > > "name": "Sync received invoices from KSeF", > > "provider": "gov-pl.sync" > > } > > ], > > "rescue": [] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=pl-sync) > [tab] Documents > > The following examples show partial [GOBL](https://docs.gobl.org) documents you can copy and paste directly into the [Invopop Console](https://console.invopop.com) or store via the API as silo entries. > > > [accordion] KSeF supplier > > > > A supplier with a 10-digit NIP, used both for party registration and as the invoice issuer. > > > > ```json Poland supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ], > > "emails": [ > > { > > "addr": "kontakt@testowa.pl" > > } > > ] > > } > > ``` > > > [accordion] KSeF customer > > > > A business customer identified by NIP. > > > > ```json Poland customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "1111111111" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > } > > ``` > > > [accordion] B2B Standard Invoice > > > > In this example, we're issuing a standard B2B invoice from a Polish supplier to another Polish business customer. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the invoice, > > * the [`pl-favat-v3`](https://docs.gobl.org/addons/pl-favat-v3) addon ensures the document will be validated using the KSeF rules built into the [GOBL](https://docs.gobl.org) library, > > * there are no totals or calculations in the minimal version; all these will be calculated automatically when running `gobl build`, > > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields like `i` (line index), `sum`, and `total`, and, > > * make sure to process it with the "KSeF issue invoice" workflow created during setup. > > > > ```json B2B Standard Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "series": "INVOICE", > > "code": "001", > > "issue_date": "2026-01-20", > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ], > > "emails": [ > > { > > "addr": "kontakt@testowa.pl" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "1111111111" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general", > > "key": "standard" > > } > > ] > > }, > > { > > "quantity": "5", > > "item": { > > "name": "Consulting Services", > > "price": "150.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced", > > "key": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "detail": "Transfer payment to our bank account", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "type": "standard", > > "series": "INVOICE", > > "code": "001", > > "issue_date": "2026-01-20", > > "currency": "PLN", > > "tax": { > > "ext": { > > "pl-favat-invoice-type": "VAT" > > } > > }, > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ], > > "emails": [ > > { > > "addr": "kontakt@testowa.pl" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "1111111111" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pl-favat-tax-category": "1" > > } > > } > > ], > > "total": "1000.00" > > }, > > { > > "i": 2, > > "quantity": "5", > > "item": { > > "name": "Consulting Services", > > "price": "150.00", > > "unit": "h" > > }, > > "sum": "750.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "8.0%", > > "ext": { > > "pl-favat-tax-category": "2" > > } > > } > > ], > > "total": "750.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "detail": "Transfer payment to our bank account", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ], > > "ext": { > > "pl-favat-payment-means": "6" > > } > > } > > }, > > "totals": { > > "sum": "1750.00", > > "total": "1750.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "1" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > }, > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "2" > > }, > > "base": "750.00", > > "percent": "8.0%", > > "amount": "60.00" > > } > > ], > > "amount": "290.00" > > } > > ], > > "sum": "290.00" > > }, > > "tax": "290.00", > > "total_with_tax": "2040.00", > > "payable": "2040.00" > > } > > } > > ``` > > > [accordion] B2B Reverse Charge Invoice > > > > In this example, we're issuing a reverse charge invoice from a Polish supplier to a customer in another EU member state. > > > > Notice: > > > > * the customer has a valid EU VAT ID, indicating the transaction is subject to reverse charge mechanism, > > * the minimal version contains only essential fields; totals and tax calculations are omitted, > > * when running `gobl build`, the system automatically calculates totals, applies reverse charge rules, and normalizes the document, > > * the built version shows all calculated fields including the reverse charge indicator, tax breakdowns, and final totals, and, > > * the invoice is validated using the KSeF rules to ensure compliance with Polish e-invoicing requirements. > > > > ```json B2B Reverse Charge Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": [ > > "reverse-charge" > > ], > > "series": "RC", > > "code": "001", > > "issue_date": "2026-01-20", > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "EU Business GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "addresses": [ > > { > > "street": "Hauptstraße 100", > > "locality": "Berlin", > > "code": "10115", > > "country": "DE" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "IT Services - EU Reverse Charge", > > "price": "5000.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "legal", > > "text": "Reverse charge mechanism applies - VAT to be accounted for by the customer." > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": [ > > "reverse-charge" > > ], > > "type": "standard", > > "series": "RC", > > "code": "001", > > "issue_date": "2026-01-20", > > "currency": "PLN", > > "tax": { > > "ext": { > > "pl-favat-invoice-type": "VAT", > > "pl-favat-reverse-charge": "1" > > } > > }, > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "EU Business GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "addresses": [ > > { > > "street": "Hauptstraße 100", > > "locality": "Berlin", > > "code": "10115", > > "country": "DE" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "IT Services - EU Reverse Charge", > > "price": "5000.00" > > }, > > "sum": "5000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "pl-favat-tax-category": "9" > > } > > } > > ], > > "total": "5000.00" > > } > > ], > > "totals": { > > "sum": "5000.00", > > "total": "5000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "pl-favat-tax-category": "9" > > }, > > "base": "5000.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "5000.00", > > "payable": "5000.00" > > }, > > "notes": [ > > { > > "key": "legal", > > "text": "Reverse charge mechanism applies - VAT to be accounted for by the customer." > > } > > ] > > } > > ``` > > > [accordion] B2B Credit Note > > > > In this example, we're issuing a credit note to correct or refund a previous invoice. In Poland, every correction is a *faktura korygująca* (corrective invoice) — there is no separate credit note document type. > > > > Notice: > > > > * the `type` field is set to `credit-note` to indicate this is a corrective document, > > * the `preceding` field references the original invoice being corrected, including its KSeF number as a `favat-ksef-number` stamp, > > * the minimal version contains only the essential fields; calculations are handled by GOBL, > > * the built version shows `"pl-favat-invoice-type": "KOR"` automatically set in the tax extensions, mapping to the FA(3) corrective invoice type, > > * quantities and amounts are expressed as positive values, as in every GOBL credit note; they are inverted wherever negative values are expected, such as in the FA(3) XML, and, > > * the document is validated using the KSeF correction rules to ensure compliance with Polish requirements. > > > > ```json B2B Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "type": "credit-note", > > "series": "KOR", > > "code": "001", > > "issue_date": "2026-01-20", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-01-20", > > "series": "INVOICE", > > "code": "001", > > "reason": "Price correction", > > "stamps": [ > > { > > "prv": "favat-ksef-number", > > "val": "1234567890-20260120-ABCD1234-EF" > > } > > ], > > "ext": { > > "pl-favat-effective-date": "1" > > } > > } > > ], > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "10.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general", > > "ext": { > > "pl-favat-tax-category": "1" > > } > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "type": "credit-note", > > "series": "KOR", > > "code": "001", > > "issue_date": "2026-01-20", > > "currency": "PLN", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-01-20", > > "series": "INVOICE", > > "code": "001", > > "reason": "Price correction", > > "stamps": [ > > { > > "prv": "favat-ksef-number", > > "val": "1234567890-20260120-ABCD1234-EF" > > } > > ], > > "ext": { > > "pl-favat-effective-date": "1" > > } > > } > > ], > > "tax": { > > "ext": { > > "pl-favat-invoice-type": "KOR" > > } > > }, > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "10.00", > > "unit": "h" > > }, > > "sum": "100.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pl-favat-tax-category": "1" > > } > > } > > ], > > "total": "100.00" > > } > > ], > > "totals": { > > "sum": "100.00", > > "total": "100.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "1" > > }, > > "base": "100.00", > > "percent": "23.0%", > > "amount": "23.00" > > } > > ], > > "amount": "23.00" > > } > > ], > > "sum": "23.00" > > }, > > "tax": "23.00", > > "total_with_tax": "123.00", > > "payable": "123.00" > > } > > } > > ``` > > > [accordion] B2B Prepayment Invoice (Faktura Zaliczkowa) > > > > In this example, we're issuing a prepayment invoice to document an advance payment received before completing the delivery of goods or services. > > > > Notice: > > > > * the `$tags` field includes `partial`, which tells the FA\_VAT addon to classify this as a `ZAL` (Faktura Zaliczkowa) document type, > > * the `payment.advances` array records the advance payment details, including the mandatory `date` field and a `percent` of the total, > > * GOBL automatically calculates the advance amount from the percentage and deducts it from the payable total to produce the `due` amount, > > * the built version shows `"pl-favat-invoice-type": "ZAL"` automatically set in the tax extensions, and, > > * after sending this invoice through KSeF, reference the assigned KSeF number in the subsequent settlement invoice. > > > > ```json B2B Prepayment Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": ["partial"], > > "series": "ZAL", > > "code": "001", > > "issue_date": "2026-01-20", > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "1111111111" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general", > > "key": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "key": "credit-transfer", > > "description": "Advance payment for software development project", > > "date": "2026-01-20", > > "percent": "50%" > > } > > ], > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": [ > > "partial" > > ], > > "type": "standard", > > "series": "ZAL", > > "code": "001", > > "issue_date": "2026-01-20", > > "currency": "PLN", > > "tax": { > > "ext": { > > "pl-favat-invoice-type": "ZAL" > > } > > }, > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "1111111111" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pl-favat-tax-category": "1" > > } > > } > > ], > > "total": "1000.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2026-01-20", > > "key": "credit-transfer", > > "description": "Advance payment for software development project", > > "percent": "50%", > > "amount": "615.00", > > "ext": { > > "pl-favat-payment-means": "6" > > } > > } > > ], > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ], > > "ext": { > > "pl-favat-payment-means": "6" > > } > > } > > }, > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "1" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > } > > ], > > "amount": "230.00" > > } > > ], > > "sum": "230.00" > > }, > > "tax": "230.00", > > "total_with_tax": "1230.00", > > "payable": "1230.00", > > "advance": "615.00", > > "due": "615.00" > > } > > } > > ``` > > > [accordion] B2B Settlement Invoice (Faktura Rozliczeniowa) > > > > In this example, we're issuing a settlement invoice to finalize a transaction after one or more advance payments have been made. > > > > Notice: > > > > * the `$tags` field includes `settlement`, which tells the FA\_VAT addon to classify this as a `ROZ` (Faktura Rozliczeniowa) document type, > > * the `preceding` field references the original prepayment invoice, including its KSeF number stamp, > > * the `payment.advances` array records the previously paid advance amount, which GOBL deducts from the total to calculate the remaining `due`, > > * the line items represent the full value of the delivered goods or services, and, > > * the built version shows `"pl-favat-invoice-type": "ROZ"` automatically set in the tax extensions. > > > > ```json B2B Settlement Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": ["settlement"], > > "series": "ROZ", > > "code": "001", > > "issue_date": "2026-02-15", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-01-20", > > "series": "ZAL", > > "code": "001", > > "stamps": [ > > { > > "prv": "favat-ksef-number", > > "val": "9876543210-20260120-ABCD1234-EF" > > } > > ] > > } > > ], > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "1111111111" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general", > > "key": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Advance payment per ZAL/001", > > "date": "2026-01-20", > > "amount": "615.00" > > } > > ], > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": [ > > "settlement" > > ], > > "type": "standard", > > "series": "ROZ", > > "code": "001", > > "issue_date": "2026-02-15", > > "currency": "PLN", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-01-20", > > "series": "ZAL", > > "code": "001", > > "stamps": [ > > { > > "prv": "favat-ksef-number", > > "val": "9876543210-20260120-ABCD1234-EF" > > } > > ] > > } > > ], > > "tax": { > > "ext": { > > "pl-favat-invoice-type": "ROZ" > > } > > }, > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ] > > }, > > "customer": { > > "name": "Klient Testowy Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "1111111111" > > }, > > "addresses": [ > > { > > "street": "ul. Testowa 10", > > "locality": "Kraków", > > "code": "30-001", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pl-favat-tax-category": "1" > > } > > } > > ], > > "total": "1000.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "date": "2026-01-20", > > "description": "Advance payment per ZAL/001", > > "amount": "615.00" > > } > > ], > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ], > > "ext": { > > "pl-favat-payment-means": "6" > > } > > } > > }, > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "1" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > } > > ], > > "amount": "230.00" > > } > > ], > > "sum": "230.00" > > }, > > "tax": "230.00", > > "total_with_tax": "1230.00", > > "payable": "1230.00", > > "advance": "615.00", > > "due": "615.00" > > } > > } > > ``` > > > [accordion] B2C Invoice (voluntary) > > > > > [!NOTE] > > > > > > B2C invoices are excluded from the mandatory e-invoicing requirement. The tax authority already receives B2C sales data through online fiscal cash registers that transmit receipts to the Central Repository of Cash Registers (CRK). However, businesses may voluntarily issue B2C invoices through KSeF. > > > > ```json KSeF B2C Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "019c2849-dd61-7001-8c88-3c6d1aa83f8a", > > "type": "standard", > > "series": "SIMPLE", > > "code": "236", > > "issue_date": "2026-02-04", > > "currency": "PLN", > > "tax": { > > "ext": { > > "pl-favat-invoice-type": "UPR" > > } > > }, > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9551893317" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ], > > "emails": [ > > { > > "addr": "kontakt@testowa.pl" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pl-favat-tax-category": "1" > > } > > } > > ], > > "total": "1000.00" > > }, > > { > > "i": 2, > > "quantity": "5", > > "item": { > > "name": "Consulting Services", > > "price": "150.00", > > "unit": "h" > > }, > > "sum": "750.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "8.0%", > > "ext": { > > "pl-favat-tax-category": "2" > > } > > } > > ], > > "total": "750.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "detail": "Transfer payment to our bank account", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ], > > "ext": { > > "pl-favat-payment-means": "6" > > } > > } > > }, > > "totals": { > > "sum": "1750.00", > > "total": "1750.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "1" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > }, > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "2" > > }, > > "base": "750.00", > > "percent": "8.0%", > > "amount": "60.00" > > } > > ], > > "amount": "290.00" > > } > > ], > > "sum": "290.00" > > }, > > "tax": "290.00", > > "total_with_tax": "2040.00", > > "payable": "2040.00" > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$addons": [ > > "pl-favat-v3" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "019c2849-dd61-7001-8c88-3c6d1aa83f8a", > > "type": "standard", > > "series": "SIMPLE", > > "code": "236", > > "issue_date": "2026-02-04", > > "currency": "PLN", > > "tax": { > > "ext": { > > "pl-favat-invoice-type": "UPR" > > } > > }, > > "supplier": { > > "name": "Testowa Firma Sp. z o.o.", > > "tax_id": { > > "country": "PL", > > "code": "9551893317" > > }, > > "addresses": [ > > { > > "street": "ul. Główna 1", > > "locality": "Warszawa", > > "code": "00-001", > > "country": "PL" > > } > > ], > > "emails": [ > > { > > "addr": "kontakt@testowa.pl" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Software Development Services", > > "price": "100.00", > > "unit": "h" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%", > > "ext": { > > "pl-favat-tax-category": "1" > > } > > } > > ], > > "total": "1000.00" > > }, > > { > > "i": 2, > > "quantity": "5", > > "item": { > > "name": "Consulting Services", > > "price": "150.00", > > "unit": "h" > > }, > > "sum": "750.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "8.0%", > > "ext": { > > "pl-favat-tax-category": "2" > > } > > } > > ], > > "total": "750.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "detail": "Transfer payment to our bank account", > > "credit_transfer": [ > > { > > "iban": "PL61109010140000071219812874", > > "name": "Testowa Firma Sp. z o.o." > > } > > ], > > "ext": { > > "pl-favat-payment-means": "6" > > } > > } > > }, > > "totals": { > > "sum": "1750.00", > > "total": "1750.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "1" > > }, > > "base": "1000.00", > > "percent": "23.0%", > > "amount": "230.00" > > }, > > { > > "key": "standard", > > "ext": { > > "pl-favat-tax-category": "2" > > }, > > "base": "750.00", > > "percent": "8.0%", > > "amount": "60.00" > > } > > ], > > "amount": "290.00" > > } > > ], > > "sum": "290.00" > > }, > > "tax": "290.00", > > "total_with_tax": "2040.00", > > "payable": "2040.00" > > } > > } > > ``` > > > [accordion] Self-billed Invoice > > > > A self-billed invoice (samofakturowanie) is issued by the customer on behalf of the supplier, under a prior agreement between the two parties. > > > > ```json KSeF self-billed invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$tags": [ > > "self-billed" > > ], > > "code": "SAMPLE-001", > > "issue_date": "2025-08-01", > > "supplier": { > > "name": "Provide One S.L.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "ul. Przykładowa", > > "locality": "Warszawa", > > "region": "mazowieckie", > > "code": "00-015", > > "country": "PL" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Your Company S.A.", > > "tax_id": { > > "country": "PL", > > "code": "1234567788" > > }, > > "addresses": [ > > { > > "num": "43", > > "street": "ul. Przykładowa", > > "locality": "Warszawa", > > "region": "mazowieckie", > > "code": "00-015", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Financial service", > > "price": "10.00", > > "unit": "service" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "PL", > > "$tags": [ > > "self-billed" > > ], > > "type": "standard", > > "code": "SAMPLE-001", > > "issue_date": "2025-08-01", > > "currency": "PLN", > > "supplier": { > > "name": "Provide One S.L.", > > "tax_id": { > > "country": "PL", > > "code": "9876543210" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "ul. Przykładowa", > > "locality": "Warszawa", > > "region": "mazowieckie", > > "code": "00-015", > > "country": "PL" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Your Company S.A.", > > "tax_id": { > > "country": "PL", > > "code": "1234567788" > > }, > > "addresses": [ > > { > > "num": "43", > > "street": "ul. Przykładowa", > > "locality": "Warszawa", > > "region": "mazowieckie", > > "code": "00-015", > > "country": "PL" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "23.0%" > > } > > ], > > "total": "1800.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Financial service", > > "price": "10.00", > > "unit": "service" > > }, > > "sum": "10.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "8.0%" > > } > > ], > > "total": "10.00" > > } > > ], > > "totals": { > > "sum": "1810.00", > > "total": "1810.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "1800.00", > > "percent": "23.0%", > > "amount": "414.00" > > }, > > { > > "key": "standard", > > "base": "10.00", > > "percent": "8.0%", > > "amount": "0.80" > > } > > ], > > "amount": "414.80" > > } > > ], > > "sum": "414.80" > > }, > > "tax": "414.80", > > "total_with_tax": "2224.80", > > "payable": "2224.80" > > } > > } > > ``` > > For more examples and detailed documentation, visit the [Supplier registration](/guides/pl-ksef-supplier), [Issuing invoices](/guides/pl-ksef), and [Receiving invoices](/guides/pl-ksef-receiving) guides. *** > [accordion] 🇵🇱 Invopop resources for Poland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Poland](/compliance/poland) [Compliance timeline](/timelines/poland) | > | Apps | [Poland](/apps/poland) | > | Guides | [Supplier registration](/guides/pl-ksef-supplier) [Issuing invoices](/guides/pl-ksef) [Receiving invoices](/guides/pl-ksef-receiving) | > | FAQ | [Poland FAQ](/faq/poland) | > | GOBL | [Poland Tax Regime](https://docs.gobl.org/regimes/pl) [Polish KSeF FA(3) Addon](https://docs.gobl.org/addons/pl-favat-v3) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Poland App → # Portal Source: https://docs.invopop.com/apps/portal Convert a simplified invoice or receipt into a full invoice > [tab] Description > > > [card] Portal > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Utility | > > **Portal** creates a link to a web page for your customers to fill in a form to supplement a simplified invoice or receipt with the information required to issue a full invoice. This is useful for businesses that want to issue invoices for customers that don't have a full set of information available, such as customers that are not yet registered in your system. A common workflow setup is registering minimal customer information (e.g. email) and then allowing the customer to fill in the rest of the information on the web page. > > ## Key features > > * Allow your customers to convert their simplified (B2C) invoice or receipt into a full (B2B) invoice by filling in a form with their fiscal information. > * Configure the name and logo that will be displayed on the web page. > [tab] Actions > > > [card] Add link to convert to invoice > > > > Adds a link to the B2C invoice to a portal that will help customers replace the sale with a new B2B invoice that includes their fiscal information. # SAT Mexico Source: https://docs.invopop.com/apps/sat-mexico Issue and import CFDI invoices, onboard suppliers, and manage compliant submissions to Mexico's tax authority (SAT). > [tab] Description > > > [card] [Register suppliers](/guides/mx-sat-supplier) > > > > Supplier registration guide › > > > [card] [Issue invoices](/guides/mx-sat-issuing) > > > > Issuing guide › > > > [card] [Cancel documents](/guides/mx-sat-cancelling) > > > > Cancellation guide › > > > [card] [Receive invoices](/guides/mx-sat-receiving) > > > > Receiving guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C, B2G | > | Country | [Mexico](/compliance/mexico) | > > Invopop's **SAT Mexico app** enables full compliance with Mexico's CFDI e-invoicing framework. Use ready-made workflows to register suppliers, authorize the local PAC, and issue CFDI v4 invoices directly from Invopop. The app also provides CFDI import capabilities, converting CFDI XML documents to [GOBL](https://docs.gobl.org) format for use in accounts payable and other processing workflows. > > #### Key features > > * **Workflow automation:** The app makes workflow steps available for post-registration, supplier registration, issuing invoices, issuing payment receipts (*comprobantes de pago*), cancelling CFDIs, importing CFDIs, and validating CFDIs. > * **CFDI import:** Convert CFDI XML documents to GOBL format. Combine with the [SW Sapien app](/apps/sw-sapien) to bulk download CFDIs from SAT. > * **CFDI validation:** Check that an imported or issued CFDI is authentic and still active at the SAT, for example before claiming a received invoice for tax purposes. > * **PDF generation:** Optional PDF creation with configurable layout, locale, and formatting. > * **PAC authorization:** One-time e.firma (FIEL) sign-off to allow the PAC to stamp and submit CFDIs on your behalf. > * **CFDI v4 compliance:** Validations and transformations powered by the GOBL library and the `mx-cfdi-v4` addon. > * **Supplier onboarding:** Collect RFC and fiscal regime code; upload CSD (certificate & key) and activate via a secure registration link. > * **White-label support:** Invoicing can be performed either under a client's brand (white-label) or directly by the issuing organization, according to operational needs. > > Check out our [Supplier registration guide](/guides/mx-sat-supplier) for onboarding suppliers, the [Issuing documents guide](/guides/mx-sat-issuing) for issuing invoices and payment receipts, the [Cancelling documents guide](/guides/mx-sat-cancelling) for cancelling them, or the [Receiving invoices guide](/guides/mx-sat-receiving) for importing CFDIs. > > ## FAQ > > Invoicing questions > > > [accordion] Do I have to issue B2C invoices in Mexico? > > > > Individual CFDIs are not required for sales under MXN \$100, but those sales must still be included in the global CFDI. Often issuing all invoices will simplify your operation. > > > [accordion] Does Invopop support the white label (B2B2B) model in Mexico? > > > > Yes. We obtain the supplier's CSD (digital seal) and credentials to issue invoices in that company's name. Read more in our [white label use case](/guides/white-label). > > > [accordion] Can I issue a PPD invoice through Invopop? > > > > Yes. The `mx-cfdi-v4` addon supports both PUE and PPD on the original invoice, and Invopop also issues the subsequent payment receipts (REPs / Pago / comprobante de pago) that must be emitted as payments are collected. Model each receipt as a GOBL [`bill.Payment`](https://docs.gobl.org/draft-0/bill/payment) referencing the PPD invoices being settled and run it through the SAT issue payment workflow. See the [payment receipt example](/guides/mx-sat-issuing) in the issuing guide. > > > [accordion] My customer paid late and now I have to cancel and re-issue? > > > > Yes, if the original was issued as PUE and payment is not received by the last day of the issuance month, rule 2.7.1.32 RMF requires cancelling the original and re-issuing as PPD with `FormaPago = 99`, then issuing REPs as payments come in. This is calendar-driven, not payment-event-driven, and it surprises most non-Mexican implementations. The conservative approach is to issue PPD whenever there is any uncertainty about same-month payment. > > > [accordion] What happens if I miss the REP deadline? > > > > REPs must be issued by the fifth calendar day of the month following payment receipt (rule 2.7.1.35 RMF). Missing the deadline does not invalidate the underlying invoice, but it prevents the customer from deducting the expense in the correct period and exposes the issuer to fines. This is a recurring source of friction and the reason customers will sometimes refuse to accept cancellations from a supplier with poor REP discipline. > > > [accordion] How do I configure my workspace for Mexican invoicing? > > > > Install the SAT Mexico app (uses SW Sapien as PAC) plus the SW Sapien app for credentials. Onboard each issuing supplier with their CSD certificate and `mx-cfdi-issue-place`. Run invoices through the Issue CFDI workflow. > > > [accordion] Where can I find the mapping of GOBL fields to CFDI? > > > > The library that transforms GOBL into CFDI documents is publicly available as an open-source project and can be found at [github.com/invopop/gobl.cfdi](https://github.com/invopop/gobl.cfdi). > > > > For further details on how GOBL prepares data for conversion, see the [Mexico Tax Regime](https://github.com/invopop/gobl/blob/main/regimes/mx/README.md). > > > [accordion] The PAC keeps rejecting my invoice with a postal code error > > > > The most common cause is a mismatch between the receiver's postal code in the CFDI and the postal code SAT has on file for that RFC. Resolution: ask the customer for their CIF (Constancia de Situación Fiscal) and use the postal code printed there, exactly. Secondary causes: > > > > * The postal code is real but not yet in `c_CodigoPostal`. Use the closest catalog code from the place of issuance. > > * The receiver is `XAXX010101000` or `XEXX010101000` and `DomicilioFiscalReceptor` differs from `LugarExpedicion`. They must be equal for generic RFCs. > > * The branch issuing the document is configured with the matriz's postal code instead of its own. > > > [accordion] How do I issue invoices with the 8% tax rate in border zones? > > > > In Mexico, a reduced VAT rate of 8% applies to transactions in border zones (northern and southern border regions). To successfully issue invoices with this rate, **both** of the following conditions must be met: > > > > 1. The supplier's RFC must be enabled by the SAT to invoice with the reduced rate in border zones. > > 2. Both the `mx-cfdi-issue-place` field and the customer's postal code (when included) must correspond to border zones. > > > > If either condition is not met, the SAT will reject the invoice with an error. > > > [accordion] What does the CFDI40999 error mean and how do I resolve it? > > > > CFDI40999 is a generic "unclassified error" returned by the SAT when no other, more specific error code applies. This error can have multiple causes. > > > > A common scenario is invoicing in border zones with the reduced 8% VAT rate. If you receive this error in that context, verify: > > > > 1. **RFC registration**: The supplier's RFC must be registered in the taxpayers registry for the appropriate border region tax incentive. Without this registration, the SAT will reject all invoices with the reduced rate. See [SAT's registration requirements and procedures](https://www.sat.gob.mx/minisitio/EstimulosFiscalesFronteraNorteSur/) for more information. > > 2. **Issue place postal code**: The [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue) field must contain a postal code from a municipality within a border zone. > > 3. **Tax rate**: Ensure you're applying the correct percentage (typically 8%) for the border zone. > > > > If the error persists after verifying these points, or you're getting this error for other reasons, please reach out to our support team. > > > [accordion] I'm getting the error 'Access denied, supplier XXX is not registered in this workspace'. What should I do? > > > > This error appears when you try to issue an invoice for a supplier (identified by its RFC) that has not been registered in your workspace. Before you can issue on a supplier's behalf, its CSD certificate must be uploaded and validated through the registration flow. > > > > To fix it, make sure the supplier is correctly registered by following the [Register a supplier](/guides/mx-sat-supplier#register-a-supplier) steps in the supplier registration guide. > > > > In **Sandbox** you may also hit this error for suppliers that were registered in the past. This is due to a change in how supplier registration is now enforced before sending invoices. To resolve it, open the supplier's Silo Entry in the Console and run the registration process again from the start, completing every step. > > > [accordion] Why does my customer's UsoCFDI keep getting rejected? > > > > The UsoCFDI must be allowed for the receiver's `RegimenFiscal`. The catalog defines the valid combinations; not every code works for every régimen. For example, D01–D10 (personal deductions) are only valid for individuals, never for legal entities. RESICO contributors (régimen 626) have a restricted set. When in doubt, default to `S01` (Sin efectos fiscales) — it is always valid but produces a non-deductible invoice for the receiver. Always ask the customer which UsoCFDI they need before issuing. > > > [accordion] How does Invopop handle time zones for Mexican invoices? > > > > By default, Invopop uses Mexico City's time zone (UTC-6) when automatically setting the [`issue_date`](https://docs.gobl.org/draft-0/bill/invoice#issue-date) and [`issue_time`](https://docs.gobl.org/draft-0/bill/invoice#issue-time) fields. However, the SAT validates these fields based on the time zone of the postal code specified in [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue). > > > > If the issuing location is in a different time zone, the SAT may reject the invoice with an error indicating the timestamp is in the future, as it only allows up to 5 minutes ahead of the local time. > > > > To avoid this, explicitly set `issue_date` and `issue_time` in your GOBL invoice using the local time zone of the issuing location when operating outside Mexico City's time zone. > > > [accordion] My foreign-currency invoice is failing validation > > > > For non-MXN invoices, `TipoCambio` must be present and use the FIX rate published by Banxico in the DOF the day prior to the operation (Article 20 CFF, Article 56 Ley Aduanera). Common errors: > > > > * Using the day-of rate instead of the prior day's. > > * Quoting the inverse (USD per MXN instead of MXN per USD). > > * Setting `TipoCambio` on an MXN invoice (it must be 1 or absent). > > * Rounding inconsistently between line totals and document totals — Anexo 20 has specific rounding rules. > > > [accordion] Where do I find Mexico-specific GOBL documentation? > > > > See the [Mexico tax regime in GOBL](https://docs.gobl.org/regimes/mx) for tax categories, RFC structure, and CFDI extensions. The [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon documents required fields including UsoCFDI, RegimenFiscal, and place-of-issue. > > Registering supplier questions > > > [accordion] Which PAC (Proveedor Autorizado de Certificación) does Invopop use? > > > > Invopop uses [SW Sapien](https://sw.com.mx), an Authorised Certification Provider (PAC), to sign and stamp CFDI documents for the Mexican tax authority. > > > [accordion] What happens if my CSD certificate is revoked? > > > > Without a valid CSD, the issuer cannot stamp any CFDI through any PAC. SAT can administratively revoke a CSD when it suspects fraudulent activity, repeated non-compliance, or tax debts. Operations halt until the supplier resolves the underlying cause and obtains a new CSD. CSDs also expire every four years. Suppliers should monitor CSD validity proactively; Invopop relies on the CSD uploaded during supplier registration and does not manage its lifecycle. > > > [accordion] How do I onboard a new supplier in Mexico? > > > > Generate a registration link via the SAT Mexico Register Supplier workflow. The supplier uploads their CSD certificate (`.cer` + `.key` + password) and authorizes the PAC. Once validated, the supplier is ready to issue CFDIs. > > > [accordion] What certificates does SAT/CFDI require to authenticate a supplier? > > > > A CSD (Certificado de Sello Digital) issued by SAT specifically for invoicing — distinct from the FIEL (e.firma) used for portal login. The CSD comprises a `.cer` (X.509) and `.key` (encrypted private key) with a password set at generation. Validity: 4 years. > > > [accordion] How are supplier credentials stored in Invopop for Mexico? > > > > The CSD certificate (`.cer`), private key (`.key`), and key password are stored encrypted at rest. Invopop uses them only to seal CFDIs before transmission to the PAC; the password and key are never returned in API responses. > > More answers in our [Mexico FAQ](/faq/mexico) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send invoice to SAT > > > > 5 > > Send GOBL invoices to the Mexican SAT using the CFDI format. > > > [card] Cancel CFDI at SAT > > > > 5 > > Request the cancellation of a previously stamped CFDI invoice or payment complement with the SAT, from a status document that references it. > > > [card] Import CFDI from SAT > > > > 3 > > Convert a CFDI XML document to GOBL format. Accepts a URL pointing to the CFDI file (typically a Spool URL provided by the [SW Sapien app](/apps/sw-sapien)). > > > [card] Validate CFDI with SAT > > > > Check that the CFDI attached to the document, imported or issued, is authentic and still active at the SAT. Fails if it has been modified, if it isn't stamped, or if it's cancelled or unknown to the SAT. > > > [card] Register supplier with SAT > > > > 100/mo > > Start the process of registering a GOBL party with the Mexican SAT by generating a link for them to use to upload their certificate. > > > [card] Unregister supplier from SAT > > > > Remove a supplier's registration and the certificate stored for them. > > Digital platforms > > > [card] Register platform with SAT > > > > 100/mo > > Register a digital platform operator so Invopop can record the operations it intermediates for the SAT. > > > [card] Record operation for SAT > > > > 2 > > Record an operation carried out through a registered digital platform for SAT reporting. > > > [card] Unregister platform with SAT > > > > Remove a digital platform operator's registration. > [tab] Workflows > > The following templates help you get started quickly. Use them as is or as a base for your own flows. > > > [accordion] SAT Mexico post-registration > > > > Mark suppliers as `registered` after successful onboarding. > > > > ```json SAT supplier post-registration workflow theme={"system"} > > { > > "name": "SAT supplier post-registration", > > "description": "Mark a SAT supplier as registered", > > "schema": "org/party", > > "steps": [ > > { > > "id": "7e8d8070-3870-11ef-af29-4533d56cea03", > > "name": "Set state", > > "config": { > > "state": "registered" > > }, > > "summary": "Set state to `registered`{.state .registered}", > > "provider": "silo.state" > > } > > ], > > "rescue": [] > > } > > ``` > > > [accordion] SAT Mexico register supplier > > > > Adds a registration link to a supplier to upload digital certificates to issue CFDI-compliant e-invoices. > > > > ```json SAT register supplier workflow theme={"system"} > > { > > "name": "SAT register supplier", > > "description": "Register a supplier with SAT", > > "schema": "org/party", > > "steps": [ > > { > > "id": "1a9bcde0-a816-11ef-87b2-fd751e6d3b88", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "2061c540-a816-11ef-87b2-fd751e6d3b88", > > "name": "Register supplier with SAT", > > "provider": "sat-mx.register" > > }, > > { > > "id": "6f9282a0-3870-11ef-af29-4533d56cea03", > > "name": "Set state", > > "config": { > > "state": "processing" > > }, > > "summary": "Set state to `processing`{.state .processing}", > > "provider": "silo.state" > > } > > ], > > "rescue": [ > > { > > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > > "name": "Set state", > > "config": { > > "state": "error" > > }, > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}" > > } > > ] > > } > > ``` > > > [accordion] SAT Mexico unregister supplier > > > > Removes a supplier's registration so it can no longer issue CFDI-compliant e-invoices from this workspace. > > > > ```json SAT unregister supplier workflow theme={"system"} > > { > > "name": "SAT unregister supplier", > > "description": "Unregister a supplier from SAT", > > "schema": "org/party", > > "steps": [ > > { > > "id": "23affb5e-c15f-4b7b-9517-eaaf4ebd37c1", > > "name": "Unregister supplier from SAT", > > "provider": "sat-mx.unregister" > > }, > > { > > "id": "45280ede-ab86-4e76-b55e-7ee744460748", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "47816a6b-fa58-4b89-ae73-a8eee8e43b0a", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] SAT Mexico issue invoice > > > > Issue a CFDI through SAT with optional PDF generation. > > > > ```json SAT issue invoice workflow theme={"system"} > > { > > "name": "SAT issue invoice", > > "description": "Issue an invoice through SAT and generate PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "3cbf8d50-a819-11ef-87b2-fd751e6d3b88", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · SAT Invoices · 000001", > > "config": { > > "name": "SAT Invoices", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "1f60a0b0-ea9f-11ee-8846-3d414f6173e4", > > "name": "Send document to SAT", > > "config": { > > "generate_pdf": false, > > "prepaid": false > > }, > > "provider": "sat-mx" > > }, > > { > > "id": "7a645420-1358-11ef-af96-a18cfb3774fa", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "English · Letter", > > "config": { > > "layout": "Letter", > > "logo_height": 40, > > "locale": "en", > > "date_format": "%Y-%m-%d" > > } > > }, > > { > > "id": "85bf20c0-1358-11ef-af96-a18cfb3774fa", > > "name": "Set state", > > "config": { > > "state": "sent" > > }, > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}" > > } > > ], > > "rescue": [ > > { > > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > > "name": "Set state", > > "config": { > > "state": "error" > > }, > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}" > > } > > ] > > } > > ``` > > > [accordion] SAT cancel CFDI > > > > Cancel a CFDI at the SAT from a status document and follow the request until it is accepted or rejected. > > > > ```json SAT cancel CFDI workflow theme={"system"} > > { > > "name": "SAT cancel CFDI", > > "description": "Cancel a CFDI at the SAT from a status document", > > "schema": "bill/status", > > "steps": [ > > { > > "id": "5b1f2a40-8a2e-11f0-9c6e-2f6a1c0d4e11", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "6c2e3b50-8a2e-11f0-9c6e-2f6a1c0d4e11", > > "name": "Cancel CFDI at SAT", > > "provider": "sat-mx.cancel" > > }, > > { > > "id": "7d3f4c60-8a2e-11f0-9c6e-2f6a1c0d4e11", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `completed`{.state .completed}", > > "config": { > > "state": "completed" > > } > > } > > ], > > "rescue": [ > > { > > "id": "8e405d70-8a2e-11f0-9c6e-2f6a1c0d4e11", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] SAT convert CFDI > > > > Convert a CFDI XML document to GOBL format and validate it with the SAT. Used as the conversion step in the [bulk import flow](/guides/mx-sat-receiving). > > > > ```json SAT import CFDI workflow theme={"system"} > > { > > "name": "SAT import CFDI", > > "description": "Import a CFDI received through SAT and validate it", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "6346e330-14cc-11f1-85d2-9d77c04210bc", > > "name": "Import CFDI from SAT", > > "provider": "sat-mx.import" > > }, > > { > > "id": "1a3cd312-cba9-11f1-816e-9200076f684c", > > "name": "Validate CFDI with SAT", > > "provider": "sat-mx.validate" > > }, > > { > > "id": "74f01110-14cc-11f1-85d2-9d77c04210bc", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `received`{.state .received}", > > "config": { > > "state": "received" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e5f6a7b0-1a2b-11f0-b001-4a5b6c7d8e9f", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > Paste into the Invopop Console (developer mode) or GOBL Builder. > > > [accordion] SAT Mexico supplier > > > > An RFC with the `mx-cfdi-fiscal-regime` extension and the registered postal code (Lugar de Expedición). > > > > ```json Mexico supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "code": "26015", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > } > > ``` > > > [accordion] SAT Mexico customer > > > > Mexican customers require the `mx-cfdi-fiscal-regime` and `mx-cfdi-use` extensions plus the registered 5-digit postal code (Domicilio Fiscal). > > > > ```json Mexico customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "UNIVERSIDAD ROBOTICA ESPANOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "code": "86991", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601", > > "mx-cfdi-use": "G03" > > } > > } > > ``` > > > [accordion] B2B invoice (Personas Morales) > > > > This main type of invoice is a standard B2B invoice from a Mexican supplier to another Mexican customer. > > > > Notice: > > > > * we've added the [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon, this ensures the document will be validated using the CFDI v4 rules built into the [GOBL](https://docs.gobl.org) library, > > * extensions (`ext`) fields have been used in multiple locations for fields whose values cannot be determined any other way, > > * VAT will be applied at the standard rate, the percentage will be set automatically, and, > > * there are no totals nor calculations, all of these will be made automatically when uploading. > > > > ```json SAT B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "series": "XXMX", > > "tax": { > > "ext": { > > "mx-cfdi-issue-place": "44100" > > } > > }, > > "supplier": { > > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "emails": [ > > { > > "addr": "esckemperugarte@example.com" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "86991", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601", > > "mx-cfdi-post-code": "86991", > > "mx-cfdi-use": "G01" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Standard Plan", > > "price": "1000.00", > > "ext": { > > "mx-cfdi-prod-serv": "81112002" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "type": "standard", > > "series": "XXMX", > > "issue_date": "2026-07-08", > > "issue_time": "08:51:26", > > "currency": "MXN", > > "tax": { > > "ext": { > > "mx-cfdi-doc-type": "I", > > "mx-cfdi-issue-place": "44100", > > "mx-cfdi-payment-method": "PPD" > > } > > }, > > "supplier": { > > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "emails": [ > > { > > "addr": "esckemperugarte@example.com" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "86991", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601", > > "mx-cfdi-use": "G01" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Standard Plan", > > "price": "1000.00", > > "ext": { > > "mx-cfdi-prod-serv": "81112002" > > } > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "16.0%" > > } > > ], > > "total": "1000.00" > > } > > ], > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "1000.00", > > "percent": "16.0%", > > "amount": "160.00" > > } > > ], > > "amount": "160.00" > > } > > ], > > "sum": "160.00" > > }, > > "tax": "160.00", > > "total_with_tax": "1160.00", > > "payable": "1160.00" > > } > > } > > ``` > > > [accordion] B2B invoice on behalf of a third party (a cuenta de terceros) > > > > This invoice is used when the **issuer (supplier)** bills the customer **on behalf of another taxpayer** who is the real seller — for example **consignment** sales. The **third party** is identified on each line in the `seller` object (RFC, fiscal regime, address), while `supplier` remains the party issuing the CFDI. > > > > Notice: > > > > * the line `seller` carries the third party's tax identity and regime so SAT can relate the CFDI to **cuenta de terceros** rules, > > * the [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon validates extensions on supplier, customer, and line seller, > > * the minimal `tax.ext` only needs the place of issue; `gobl build` adds document type and payment method (`PPD` in the built example) like other B2B invoices, > > * there are no totals in the minimal version; upload or `gobl build` will compute IVA and totals, and, > > * the built example shows a consignment-style line (`Venta en consignación`) with full tax breakdown. > > > > ```json SAT third-party invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "series": "LMC", > > "code": "002", > > "issue_time": "01:42:18", > > "tax": { > > "ext": { > > "mx-cfdi-issue-place": "26015" > > } > > }, > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "code": "86991" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601", > > "mx-cfdi-use": "G01" > > } > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Venta en consignación", > > "price": "100.00", > > "ext": { > > "mx-cfdi-prod-serv": "50211502" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "16.0%" > > } > > ], > > "seller": { > > "name": "XENON INDUSTRIAL ARTICLES", > > "tax_id": { > > "country": "MX", > > "code": "XIA190128J61" > > }, > > "addresses": [ > > { > > "code": "76343" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > } > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "type": "standard", > > "series": "LMC", > > "code": "002", > > "issue_date": "2026-07-08", > > "issue_time": "01:42:18", > > "currency": "MXN", > > "tax": { > > "ext": { > > "mx-cfdi-doc-type": "I", > > "mx-cfdi-issue-place": "26015", > > "mx-cfdi-payment-method": "PPD" > > } > > }, > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "code": "86991" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601", > > "mx-cfdi-use": "G01" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Venta en consignación", > > "price": "100.00", > > "ext": { > > "mx-cfdi-prod-serv": "50211502" > > } > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "16.0%" > > } > > ], > > "total": "200.00", > > "seller": { > > "name": "XENON INDUSTRIAL ARTICLES", > > "tax_id": { > > "country": "MX", > > "code": "XIA190128J61" > > }, > > "addresses": [ > > { > > "code": "76343" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > } > > } > > ], > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200.00", > > "percent": "16.0%", > > "amount": "32.00" > > } > > ], > > "amount": "32.00" > > } > > ], > > "sum": "32.00" > > }, > > "tax": "32.00", > > "total_with_tax": "232.00", > > "payable": "232.00" > > } > > } > > ``` > > > [accordion] B2C invoice (Personas Físicas) > > > > This is a standard B2C invoice from a Mexican supplier to a Mexican physical person with tax details, but no specific tax declaration requirements. This would be for a larger sale when the "Simplified" and "Global invoice" do not apply. > > > > In addition to the observations for regular B2B invoices, note in the customer: > > > > * the presence of an RFC in the same format as for companies, and, > > * the [`mx-cfdi-fiscal-regime`](https://docs.gobl.org/addons/mx-cfdi-v4#fiscal-regime-code) and [`mx-cfdi-use`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-use-code) extensions have been set to `616` and `S01` respectively reflecting that the customer is not subject to tax. > > > > It is important in Mexico to ensure the correct Fiscal Regime and CFDI Use codes are set correctly as the SAT will check these details and reject documents with unexpected combinations. > > > > ```json SAT B2C Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "series": "XXMX", > > "tax": { > > "ext": { > > "mx-cfdi-issue-place": "44100" > > } > > }, > > "supplier": { > > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "emails": [ > > { > > "addr": "esckemperugarte@example.com" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "LUIS IAN ÑUZCO", > > "tax_id": { > > "country": "MX", > > "code": "IAÑL750210963" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "85256", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "616", > > "mx-cfdi-use": "S01" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Standard Plan", > > "price": "500.00", > > "ext": { > > "mx-cfdi-prod-serv": "81112002" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "type": "standard", > > "series": "XXMX", > > "issue_date": "2026-07-08", > > "issue_time": "08:51:26", > > "currency": "MXN", > > "tax": { > > "ext": { > > "mx-cfdi-doc-type": "I", > > "mx-cfdi-issue-place": "44100", > > "mx-cfdi-payment-method": "PPD" > > } > > }, > > "supplier": { > > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "emails": [ > > { > > "addr": "esckemperugarte@example.com" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "LUIS IAN ÑUZCO", > > "tax_id": { > > "country": "MX", > > "code": "IAÑL750210963" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "85256", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "616", > > "mx-cfdi-use": "S01" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Standard Plan", > > "price": "500.00", > > "ext": { > > "mx-cfdi-prod-serv": "81112002" > > } > > }, > > "sum": "500.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "16.0%" > > } > > ], > > "total": "500.00" > > } > > ], > > "totals": { > > "sum": "500.00", > > "total": "500.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "500.00", > > "percent": "16.0%", > > "amount": "80.00" > > } > > ], > > "amount": "80.00" > > } > > ], > > "sum": "80.00" > > }, > > "tax": "80.00", > > "total_with_tax": "580.00", > > "payable": "580.00" > > } > > } > > ``` > > > [accordion] Simplified invoice (Factura al público en general) > > > > In Mexico, a General Public Invoice (Factura al Público en General) is a type of tax document issued to record sales made to customers who do not request an invoice with a specific Federal Taxpayer Registry (RFC) number. Instead, a generic RFC is used to identify the recipient: > > > > * XAXX010101000 for domestic transactions > > * XEXX010101000 for foreign transactions > > > > This type of invoice is mandatory for businesses that sell to the general public and do not issue individual invoices for each transaction. > > > > To create this type of invoice in Invopop: > > > > * the `customer` field is not required, > > * the `$tags` field is used to identify this as a simplified invoice. > > > > ```json SAT Mexico simplified invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "TEST", > > "code": "00001", > > "tax": { > > "ext": { > > "mx-cfdi-issue-place": "44100" > > } > > }, > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Cobro por tarjetas", > > "price": "10.00", > > "ext": { > > "mx-cfdi-prod-serv": "84141602" > > } > > }, > > "discounts": [ > > { > > "percent": "10.0%", > > "amount": "1.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Porcentaje sobre GMV", > > "price": "10.00", > > "unit": "service", > > "ext": { > > "mx-cfdi-prod-serv": "80141628" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "notes": "Condiciones de pago" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "TEST", > > "code": "00001", > > "issue_date": "2026-07-08", > > "issue_time": "08:51:26", > > "currency": "MXN", > > "tax": { > > "ext": { > > "mx-cfdi-doc-type": "I", > > "mx-cfdi-issue-place": "44100", > > "mx-cfdi-payment-method": "PPD" > > } > > }, > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Cobro por tarjetas", > > "price": "10.00", > > "ext": { > > "mx-cfdi-prod-serv": "84141602" > > } > > }, > > "sum": "10.00", > > "discounts": [ > > { > > "percent": "10.0%", > > "amount": "1.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "16.0%" > > } > > ], > > "total": "9.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Porcentaje sobre GMV", > > "price": "10.00", > > "unit": "service", > > "ext": { > > "mx-cfdi-prod-serv": "80141628" > > } > > }, > > "sum": "10.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "16.0%" > > } > > ], > > "total": "10.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Condiciones de pago" > > } > > }, > > "totals": { > > "sum": "19.00", > > "total": "19.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "19.00", > > "percent": "16.0%", > > "amount": "3.04" > > } > > ], > > "amount": "3.04" > > } > > ], > > "sum": "3.04" > > }, > > "tax": "3.04", > > "total_with_tax": "22.04", > > "payable": "22.04" > > } > > } > > ``` > > > [accordion] Global invoice > > > > The Global Invoice is used to group a set of invoices into a single CFDI document. > > > > Notice: > > > > * the `$tags` field has been used to identify this as a global invoice, > > * each `line` has a `ref` which is used to identify the invoice that it belongs to, > > * the [`tax.ext.mx-cfdi-global-month`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-global-month), [`mx-cfdi-global-period`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-global-period), and [`mx-cfdi-global-year`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-global-year) fields have been used to identify the global invoice period. > > > > ```json SAT Mexico global invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "$tags": [ > > "global" > > ], > > "series": "GLOBAL", > > "code": "0001", > > "tax": { > > "ext": { > > "mx-cfdi-global-month": "03", > > "mx-cfdi-global-period": "04", > > "mx-cfdi-global-year": "2025", > > "mx-cfdi-issue-place": "44100" > > } > > }, > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "ref": "SALE1", > > "name": "Sale 1", > > "price": "10.00" > > }, > > "discounts": [ > > { > > "percent": "10.0%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "ref": "SALE2", > > "name": "Sale 2", > > "price": "20.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "key": "cash", > > "description": "Prepaid", > > "percent": "100%" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "$tags": [ > > "global" > > ], > > "type": "standard", > > "series": "GLOBAL", > > "code": "0001", > > "issue_date": "2026-07-08", > > "issue_time": "08:51:26", > > "currency": "MXN", > > "tax": { > > "ext": { > > "mx-cfdi-doc-type": "I", > > "mx-cfdi-global-month": "03", > > "mx-cfdi-global-period": "04", > > "mx-cfdi-global-year": "2025", > > "mx-cfdi-issue-place": "44100", > > "mx-cfdi-payment-method": "PUE" > > } > > }, > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "ref": "SALE1", > > "name": "Sale 1", > > "price": "10.00" > > }, > > "sum": "10.00", > > "discounts": [ > > { > > "percent": "10.0%", > > "amount": "1.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "16.0%" > > } > > ], > > "total": "9.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "ref": "SALE2", > > "name": "Sale 2", > > "price": "20.00" > > }, > > "sum": "20.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "16.0%" > > } > > ], > > "total": "20.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "key": "cash", > > "description": "Prepaid", > > "percent": "100%", > > "amount": "33.64", > > "ext": { > > "mx-cfdi-payment-means": "01" > > } > > } > > ] > > }, > > "totals": { > > "sum": "29.00", > > "total": "29.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "29.00", > > "percent": "16.0%", > > "amount": "4.64" > > } > > ], > > "amount": "4.64" > > } > > ], > > "sum": "4.64" > > }, > > "tax": "4.64", > > "total_with_tax": "33.64", > > "payable": "33.64", > > "advance": "33.64", > > "due": "0.00" > > } > > } > > ``` > > > [accordion] Credit note > > > > The credit note (*nota de crédito*) is used to correct, cancel, or refund a previously issued invoice. > > > > Notice: > > > > * the `type` field has been set to `credit-note`, > > * the `preceding` field has been used to identify the invoice that is being corrected. > > > > ```json SAT Mexico credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "0003", > > "preceding": [ > > { > > "series": "TEST", > > "code": "0001", > > "issue_date": "2023-07-10", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "1fac4464-1111-0000-1111-cd37179db12e" > > } > > ] > > } > > ], > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "615" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "86991", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "624", > > "mx-cfdi-use": "G01" > > } > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Cigarros", > > "ext": { > > "mx-cfdi-prod-serv": "50211502" > > }, > > "price": "100.1010", > > "unit": "piece" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "notes": "Pago a 30 días." > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "0003", > > "issue_date": "2026-07-08", > > "issue_time": "08:53:24", > > "currency": "MXN", > > "preceding": [ > > { > > "issue_date": "2023-07-10", > > "series": "TEST", > > "code": "0001", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "1fac4464-1111-0000-1111-cd37179db12e" > > } > > ] > > } > > ], > > "tax": { > > "ext": { > > "mx-cfdi-doc-type": "E", > > "mx-cfdi-issue-place": "44100", > > "mx-cfdi-payment-method": "PPD", > > "mx-cfdi-rel-type": "01" > > } > > }, > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "615" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "86991", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "624", > > "mx-cfdi-use": "G01" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Cigarros", > > "price": "100.1010", > > "unit": "piece", > > "ext": { > > "mx-cfdi-prod-serv": "50211502" > > } > > }, > > "sum": "200.2020", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "16.0%" > > } > > ], > > "total": "200.2020" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Pago a 30 días." > > } > > }, > > "totals": { > > "sum": "200.20", > > "total": "200.20", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200.20", > > "percent": "16.0%", > > "amount": "32.03" > > } > > ], > > "amount": "32.03" > > } > > ], > > "sum": "32.03" > > }, > > "tax": "32.03", > > "total_with_tax": "232.23", > > "payable": "232.23" > > } > > } > > ``` > > > [accordion] Payment receipt (Comprobante de Pago) > > > > This is a payment receipt (*comprobante de pago*, or REP) issued when collecting a payment against one or more invoices that were issued with the PPD (*Pago en Parcialidades o Diferido*) payment method. It is modelled as a GOBL [`bill.Payment`](https://docs.gobl.org/draft-0/bill/payment) document rather than an invoice, and must be processed through the SAT issue payment workflow. > > > > Notice: > > > > * the `$schema` is set to `bill/payment` and the `type` to `receipt`, > > * each `lines[].document` references an invoice being settled by this payment, identified by its `series`, `code`, and the SAT UUID (`sat-uuid`) stamp of the original CFDI, > > * the amounts on each line follow a strict convention: > > * **`payable`** is always the **total** amount payable on the referenced invoice across **all** installments, > > * **`advances`** is the **total** already paid in **previous** installments (omit it, or set `0`, on the first installment), > > * **`amount`** is the portion of the invoice settled by **this** payment, > > * **`installment`** is the ordinal of this payment against the invoice, > > * **`due`** is calculated **automatically** from the other fields; you don't need to set it yourself, > > * the third line (invoice `LMC` `0023`) illustrates a later installment that doesn't fully settle the invoice: `payable` `1000.00`, `advances` `500.00` already paid, `amount` `250.00` paid now, leaving a positive `due` of `250.00` for a future receipt, > > * lines carry the tax breakdown of the invoice being paid, including retained taxes, > > * the single `methods` entry describes how the payment was received; `gobl build` maps the `credit-transfer` key to the [`mx-cfdi-payment-means`](https://docs.gobl.org/addons/mx-cfdi-v4#payment-means) extension `03`, > > * other extensions that are set automatically on running `gobl build`: the document [`mx-cfdi-doc-type`](https://docs.gobl.org/addons/mx-cfdi-v4#document-type) is set to `P` and the customer's [`mx-cfdi-use`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-use-code) to `CP01`, > > * this particular example also carries a `preceding` block, which implies that this receipt **substitutes** one previously issued — `gobl build` fills in the [`mx-cfdi-rel-type`](https://docs.gobl.org/addons/mx-cfdi-v4#relation-type) extension `04` (*Sustitución de los CFDI previos*) (omit the `preceding` block when the receipt is not a replacement), and, > > * there are no totals in the minimal version; running `gobl build` calculates the line taxes, the payment total, and all balances. > > > > ```json SAT Payment (Comprobante de Pago) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "type": "receipt", > > "series": "P", > > "code": "0040", > > "currency": "MXN", > > "ext": { > > "mx-cfdi-issue-place": "44100" > > }, > > "preceding": [ > > { > > "issue_date": "2023-05-31", > > "series": "P", > > "code": "0039", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b" > > } > > ] > > } > > ], > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "emails": [ > > { > > "addr": "esckemperugarte@example.com" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "86991", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "lines": [ > > { > > "document": { > > "issue_date": "2023-05-10", > > "series": "LMC", > > "code": "0021", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "0f4d2a6e-8b1c-4d3e-9f5a-7c6b5a4d3e2f" > > } > > ] > > }, > > "installment": 1, > > "payable": "9533.33", > > "amount": "9533.33", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "base": "10000.00", > > "percent": "16.0%" > > } > > ] > > }, > > { > > "code": "RVAT", > > "retained": true, > > "rates": [ > > { > > "base": "10000.00", > > "percent": "10.6667%" > > } > > ] > > }, > > { > > "code": "ISR", > > "retained": true, > > "rates": [ > > { > > "base": "10000.00", > > "percent": "10%" > > } > > ] > > } > > ] > > } > > }, > > { > > "document": { > > "issue_date": "2023-05-20", > > "series": "LMC", > > "code": "0022", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "5b9c8d7e-6f5a-4b3c-8d2e-1f0a9b8c7d6e" > > } > > ] > > }, > > "installment": 1, > > "payable": "1660.00", > > "amount": "1660.00", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "base": "1000.00", > > "percent": "16.0%" > > }, > > { > > "base": "500.00" > > } > > ] > > } > > ] > > } > > }, > > { > > "document": { > > "issue_date": "2023-03-15", > > "series": "LMC", > > "code": "0023", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d" > > } > > ] > > }, > > "installment": 3, > > "payable": "1000.00", > > "advances": "500.00", > > "amount": "250.00" > > } > > ], > > "methods": [ > > { > > "date": "2023-05-30", > > "key": "credit-transfer", > > "ref": "MX0123456789", > > "amount": "11443.33" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/payment", > > "$regime": "MX", > > "$addons": [ > > "mx-cfdi-v4" > > ], > > "type": "receipt", > > "series": "P", > > "code": "0040", > > "issue_date": "2026-07-23", > > "issue_time": "04:13:11", > > "currency": "MXN", > > "ext": { > > "mx-cfdi-doc-type": "P", > > "mx-cfdi-issue-place": "44100" > > }, > > "preceding": [ > > { > > "issue_date": "2023-05-31", > > "series": "P", > > "code": "0039", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b" > > } > > ], > > "ext": { > > "mx-cfdi-rel-type": "04" > > } > > } > > ], > > "supplier": { > > "name": "ESCUELA KEMPER URGATE", > > "tax_id": { > > "country": "MX", > > "code": "EKU9003173C9" > > }, > > "addresses": [ > > { > > "street": "Julia Navarrete No. 1430", > > "locality": "Guadalajara", > > "region": "Jalisco", > > "code": "44100", > > "country": "MX" > > } > > ], > > "emails": [ > > { > > "addr": "esckemperugarte@example.com" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601" > > } > > }, > > "customer": { > > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > > "tax_id": { > > "country": "MX", > > "code": "URE180429TM6" > > }, > > "addresses": [ > > { > > "locality": "Ciudad de Mexico", > > "region": "Ciudad de Mexico", > > "code": "86991", > > "country": "MX" > > } > > ], > > "ext": { > > "mx-cfdi-fiscal-regime": "601", > > "mx-cfdi-use": "CP01" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "document": { > > "issue_date": "2023-05-10", > > "series": "LMC", > > "code": "0021", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "0f4d2a6e-8b1c-4d3e-9f5a-7c6b5a4d3e2f" > > } > > ] > > }, > > "installment": 1, > > "payable": "9533.33", > > "amount": "9533.33", > > "due": "0.00", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "base": "10000.00", > > "percent": "16.0%", > > "amount": "1600.00" > > } > > ], > > "amount": "1600.00" > > }, > > { > > "code": "RVAT", > > "retained": true, > > "rates": [ > > { > > "base": "10000.00", > > "percent": "10.6667%", > > "amount": "1066.67" > > } > > ], > > "amount": "1066.67" > > }, > > { > > "code": "ISR", > > "retained": true, > > "rates": [ > > { > > "base": "10000.00", > > "percent": "10%", > > "amount": "1000.00" > > } > > ], > > "amount": "1000.00" > > } > > ], > > "sum": "1600.00", > > "retained": "2066.67" > > } > > }, > > { > > "i": 2, > > "document": { > > "issue_date": "2023-05-20", > > "series": "LMC", > > "code": "0022", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "5b9c8d7e-6f5a-4b3c-8d2e-1f0a9b8c7d6e" > > } > > ] > > }, > > "installment": 1, > > "payable": "1660.00", > > "amount": "1660.00", > > "due": "0.00", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "base": "1000.00", > > "percent": "16.0%", > > "amount": "160.00" > > }, > > { > > "base": "500.00", > > "amount": "0.00" > > } > > ], > > "amount": "160.00" > > } > > ], > > "sum": "160.00" > > } > > }, > > { > > "i": 3, > > "document": { > > "issue_date": "2023-03-15", > > "series": "LMC", > > "code": "0023", > > "stamps": [ > > { > > "prv": "sat-uuid", > > "val": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d" > > } > > ] > > }, > > "installment": 3, > > "payable": "1000.00", > > "advances": "500.00", > > "amount": "250.00", > > "due": "250.00" > > } > > ], > > "methods": [ > > { > > "date": "2023-05-30", > > "key": "credit-transfer", > > "ref": "MX0123456789", > > "amount": "11443.33", > > "ext": { > > "mx-cfdi-payment-means": "03" > > } > > } > > ], > > "total": "11443.33" > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. *** > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about SAT Mexico App → # Saudi Arabia Source: https://docs.invopop.com/apps/saudi-arabia Clear and report e-invoices with ZATCA's FATOORA platform > [tab] Description > > > [card] [Clearance & reporting guide](/guides/sa-zatca-clearance-reporting) > > > > View guide › > > > [card] [Supplier registration guide](/guides/sa-zatca-registration) > > > > View guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2G, B2C | > | Country | [Saudi Arabia](/compliance/saudi-arabia) | > | System | FATOORA (ZATCA) | > > Invopop's **Saudi Arabia app** connects your workspace to **ZATCA**'s **FATOORA** platform as an approved e-invoicing solution (EGS). It onboards parties, clears standard invoices and reports simplified ones. > > **Key features** > > * **Clearance** of standard tax invoices (B2B, B2G). > * **Reporting** of simplified tax invoices (B2C). > * ZATCA onboarding: OTP, compliance checks, and production CSID provisioning. > * **Multi-branch onboarding**: a single VAT number can hold several registrations, one per [supplier identity](/guides/sa-zatca-registration#multi-branch-entities), each with its own CSID and invoice chain. > * UBL 2.1 with KSA extensions, ICV/PIH chaining, and the Phase 2 QR code. > > Check out the guides below to get started: > > * [Clearance & Reporting](/guides/sa-zatca-clearance-reporting) · [Registration](/guides/sa-zatca-registration) > > ## FAQ > > Invoicing questions > > > [accordion] How does Invopop decide between clearance and reporting? > > > > From the GOBL invoice type. **Simplified** invoices (B2C) are **reported** to ZATCA; all **standard** invoices (B2B and B2G) are **cleared**. > > > [accordion] When do I submit a standard invoice (clearance) to Invopop? > > > > **Before you share it with the buyer.** Standard invoices follow the clearance model: Invopop submits the invoice to ZATCA in real time, ZATCA validates it and applies its cryptographic stamp, and the **cleared** document is returned. Only that cleared version is legally valid and shareable — so the invoice must go through Invopop before you send it on to the buyer. > > > [accordion] When do I submit a simplified invoice (reporting) to Invopop? > > > > **Within 24 hours of issuing it.** Simplified invoices follow the reporting model, so you can give the invoice to the customer straight away at the point of sale — it does **not** need ZATCA validation first, and you can share it before it ever reaches Invopop. You then have up to **24 hours from issuance** to submit it to Invopop, which forwards it to ZATCA immediately when the workflow runs. > > > [accordion] Do I need to build the ICV/PIH chain myself? > > > > No. Invopop calculates the Invoice Counter Value (ICV) and Previous Invoice Hash (PIH) internally on every submission. You only see them reflected in the generated invoice XML. > > > [accordion] How is the invoice chain created? > > > > ZATCA requires every document a party issues to form a single, unbroken cryptographic chain. Invopop maintains one chain **per party and environment** (sandbox simulation/developer vs. production are separate sequences), so each registered CSID has its own continuous counter. Two values link it together: > > > > * **ICV** starts at `1` for the first document and increments by exactly `1` for every document that follows. > > * **PIH** of the first document is the hash of the value `0` — the base case defined in ZATCA's data dictionary. Every document after that sets its PIH to the hash of the **immediately preceding document**. > > > > Each new document takes the hash of the immediately preceding document and increments ICV by 1, **irrespective of type and status**: > > > > * **Document type does not split the chain.** Standard invoices, simplified invoices, credit notes, and debit notes all share one sequence. > > * **Rejected documents still occupy their slot.** A document that ZATCA rejects keeps its ICV and hash; the next document chains off it, not off the last *accepted* one. > > > > For example, if invoice 2 is rejected, invoice 3 still uses `hash(invoice 2)` as its PIH and `ICV = 3`: > > > > | Document | ICV | PIH points to | ZATCA result | > > | - | - | - | - | > > | Invoice 1 | 1 | hash of `0` (base case) | Accepted | > > | Invoice 2 | 2 | hash(Invoice 1) | Rejected | > > | Invoice 3 | 3 | hash(Invoice 2) | Accepted | > > | Credit note 4 | 4 | hash(Invoice 3) | Accepted | > > > [accordion] Where do I find the cleared invoice? > > > > In the **Files** section of the silo entry. After a successful submission the final XML is attached as `invoice.xml` — for standard invoices this is the ZATCA-cleared, stamped document. The QR code is also stamped onto the document. > > Registering supplier questions > > > [accordion] What do I need to onboard a party with ZATCA? > > > > A workspace with the **Saudi Arabia** app enabled, and an `org/party` (the supplier) carrying: > > > > * a **company name**, > > * a Saudi **VAT registration number**, > > * an **identity** of type `CRN`, `MOM`, `MLS`, `700`, `SAG`, or `OTH`, and > > * a complete **national address** (building number, postal code, district, street, additional street, and country). > > > > During the hosted onboarding wizard the supplier provides the invoice type (`1000` standard / `0100` simplified / `1100` both), branch name, and business category — plus the FATOORA OTP. The company name and registered address are taken from the party document and shown read-only in the recap. > > > [accordion] How long is the OTP valid? > > > > **1 hour** from when it is generated in the FATOORA portal. If it expires, generate a new one and re-enter it in the wizard. > > > [accordion] What is the difference between Developer and Simulation sandbox modes? > > > > In **Developer** mode the OTP is not validated (any placeholder works) and you can only send invoices from ZATCA's fixed test VAT `399999999900003`. In **Simulation** mode the OTP must be real and you can send from any registered party. > > > [accordion] Can I test in Simulation without a real FATOORA account? > > > > No. Simulation requires a real FATOORA account and taxpayer to generate a valid OTP. Use **Developer** mode if you want to test the flow without a real account. > > More answers in our [Saudi Arabia FAQ](/faq/saudi-arabia) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app. > > Registration > > > [card] Register supplier with ZATCA > > > > 100/mo > > Validate the party, stake the claim on its VAT number and identity, and publish the ZATCA onboarding link the supplier follows. > > > [card] Unregister supplier from ZATCA > > > > Removes the party and its stored credentials from Invopop's internal systems. > > > [card] Wait for ZATCA OTP authorization > > > > Wait for the supplier to complete onboarding, run the compliance checks, and issue the production CSID. > > Clearance & Reporting > > > [card] Send invoice to ZATCA > > > > 2 > > Convert the GOBL invoice to UBL 2.1, chain it (ICV/PIH), and clear standard or report simplified invoices to ZATCA. > [tab] Workflows > > Registration > > > [accordion] Register party > > > > ```json ZATCA register supplier workflow theme={"system"} > > { > > "name": "ZATCA register supplier", > > "description": "Registers a supplier with ZATCA and provisions its production CSID", > > "schema": "org/party", > > "steps": [ > > { > > "id": "f60b2e30-6fce-11f1-b09d-79f60b032746", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "fd448bb0-6fce-11f1-b09d-79f60b032746", > > "name": "Register supplier with ZATCA", > > "provider": "gov-sa.party.register", > > "config": { > > "mode": "simulation" > > } > > }, > > { > > "id": "0064b770-6fcf-11f1-b09d-79f60b032746", > > "name": "Wait for OTP submission", > > "provider": "gov-sa.wait.authorization" > > }, > > { > > "id": "0236df60-6fcf-11f1-b09d-79f60b032746", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "04aa0240-6fcf-11f1-b09d-79f60b032746", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Clearance & Reporting > > > [accordion] Send invoice > > > > ```json ZATCA send invoice workflow theme={"system"} > > { > > "name": "ZATCA send invoice", > > "description": "Clears standard invoices and reports simplified invoices to ZATCA", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "cf001030-6fce-11f1-b09d-79f60b032746", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "4d45d610-b821-11f1-a782-f773a0732f50", > > "name": "Sign Envelope", > > "provider": "silo.close" > > }, > > { > > "id": "d0badf90-6fce-11f1-b09d-79f60b032746", > > "name": "Send invoice to ZATCA", > > "provider": "gov-sa.invoice.send" > > }, > > { > > "id": "d5f9cca0-6fce-11f1-b09d-79f60b032746", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "d9c3a5e0-6fce-11f1-b09d-79f60b032746", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > All documents are GOBL [`bill.Invoice`](https://docs.gobl.org/draft/bill/invoice) envelopes with the [ZATCA add-on](https://docs.gobl.org/addons/sa-zatca-v1), rendered to UBL 2.1 with ZATCA's KSA extensions. The model (clearance or reporting) is derived from the document itself. > > | Document | Type | Model | > | - | - | - | > | Standard tax invoice | B2B, B2G | Clearance | > | Simplified tax invoice | B2C | Reporting | > | Credit note | Any | Same as the document it corrects | > | Debit note | Any | Same as the document it corrects | > > Party onboarding runs on an [`org.Party`](https://docs.gobl.org/draft/org/party) document via the registration workflow. > > ## Example documents > > > [accordion] ZATCA supplier > > > > A supplier with the 15-digit VAT registration number (starts and ends with `3`) and the CRN commercial registration identity ZATCA requires. > > > > ```json Saudi Arabia supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > } > > ``` > > > [accordion] ZATCA customer > > > > A business customer identified by a TIN identity and a full Saudi national address. > > > > ```json Saudi Arabia customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > } > > ``` > > Every example pairs the minimal hand-authored GOBL input with the built version produced by `gobl build`. All carry the [`sa-zatca-v1`](https://docs.gobl.org/addons/sa-zatca-v1) add-on. Standard invoices are cleared; simplified invoices are reported. > > ### Standard tax invoices (clearance) > > > [accordion] Standard invoice (B2B) > > > > A standard tax invoice between two VAT-registered parties, billed at the 15% standard rate. This is the baseline document cleared with ZATCA before it is shared with the buyer. > > > > ```json Standard invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "code": "SAMPLE-001", > > "type": "standard", > > "regime": "SA", > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "code": "SAMPLE-001", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "currency": "SAR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0100000", > > "untdid-document-type": "388" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1800.00", > > "percent": "15.0%", > > "amount": "270.00" > > } > > ], > > "amount": "270.00" > > } > > ], > > "sum": "270.00" > > }, > > "tax": "270.00", > > "total_with_tax": "2070.00", > > "payable": "2070.00" > > } > > } > > ``` > > > [accordion] Standard credit note > > > > A credit note that reduces a previously cleared standard invoice. The `preceding` block links it to the original document. > > > > ```json Standard credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "a1b2c3d4-1111-4aaa-bbbb-000000000001", > > "type": "credit-note", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "series": "CN", > > "code": "CN-001", > > "regime": "SA", > > "preceding": [ > > { > > "series": "", > > "code": "SAMPLE-001", > > "issue_date": "2022-02-01", > > "reason": "Return of development services" > > } > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Refund within 14 days" > > } > > }, > > "lines": [ > > { > > "quantity": 5, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "uuid": "a1b2c3d4-1111-4aaa-bbbb-000000000001", > > "type": "credit-note", > > "series": "CN", > > "code": "CN-001", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "currency": "SAR", > > "preceding": [ > > { > > "issue_date": "2022-02-01", > > "code": "SAMPLE-001", > > "reason": "Return of development services" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0100000", > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "450.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "450.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Refund within 14 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "450.00", > > "total": "450.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "450.00", > > "percent": "15.0%", > > "amount": "67.50" > > } > > ], > > "amount": "67.50" > > } > > ], > > "sum": "67.50" > > }, > > "tax": "67.50", > > "total_with_tax": "517.50", > > "payable": "517.50" > > } > > } > > ``` > > > [accordion] Standard debit note > > > > A debit note that increases the value of a previously cleared standard invoice, referencing the original in `preceding`. > > > > ```json Standard debit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "a1b2c3d4-2222-4aaa-bbbb-000000000002", > > "type": "debit-note", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "series": "DN", > > "code": "DN-001", > > "regime": "SA", > > "preceding": [ > > { > > "series": "", > > "code": "SAMPLE-001", > > "issue_date": "2022-02-01", > > "reason": "Price adjustment for development services" > > } > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 5, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "uuid": "a1b2c3d4-2222-4aaa-bbbb-000000000002", > > "type": "debit-note", > > "series": "DN", > > "code": "DN-001", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "currency": "SAR", > > "preceding": [ > > { > > "issue_date": "2022-02-01", > > "code": "SAMPLE-001", > > "reason": "Price adjustment for development services" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0100000", > > "untdid-document-type": "383" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "450.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "450.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "450.00", > > "total": "450.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "450.00", > > "percent": "15.0%", > > "amount": "67.50" > > } > > ], > > "amount": "67.50" > > } > > ], > > "sum": "67.50" > > }, > > "tax": "67.50", > > "total_with_tax": "517.50", > > "payable": "517.50" > > } > > } > > ``` > > > [accordion] Standard export invoice > > > > An export to a customer outside the GCC, taxed at the zero rate. Exports carry an exemption reason and are reported with the export tag. > > > > ```json Standard export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852d0", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "code": "SAMPLE-EX-001", > > "type": "standard", > > "regime": "SA", > > "$tags": [ > > "export" > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Global Importers Ltd", > > "identities": [ > > { > > "type": "PAS", > > "code": "X1234567" > > } > > ], > > "addresses": [ > > { > > "street": "Sheikh Zayed Road", > > "num": "100", > > "locality": "Dubai", > > "code": "00000", > > "country": "AE" > > } > > ] > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "zero", > > "ext": { > > "untdid-tax-category": "Z", > > "cef-vatex": "VATEX-SA-32" > > } > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "export" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852d0", > > "type": "standard", > > "code": "SAMPLE-EX-001", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "currency": "SAR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0100100", > > "untdid-document-type": "388" > > }, > > "notes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "text": "Export of goods", > > "ext": { > > "untdid-tax-category": "Z" > > } > > } > > ] > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Global Importers Ltd", > > "identities": [ > > { > > "type": "PAS", > > "code": "X1234567" > > } > > ], > > "addresses": [ > > { > > "num": "100", > > "street": "Sheikh Zayed Road", > > "locality": "Dubai", > > "code": "00000", > > "country": "AE" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "cef-vatex": "VATEX-SA-32", > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "cef-vatex": "VATEX-SA-32", > > "untdid-tax-category": "Z" > > }, > > "base": "1800.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > } > > } > > ``` > > > [accordion] Standard nominal invoice > > > > A nominal (deemed) supply — goods or services provided without a monetary charge but still subject to VAT. > > > > ```json Standard nominal invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852c0", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "code": "SAMPLE-NM-001", > > "type": "standard", > > "regime": "SA", > > "$tags": [ > > "nominal" > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "nominal" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852c0", > > "type": "standard", > > "code": "SAMPLE-NM-001", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "currency": "SAR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0101000", > > "untdid-document-type": "388" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1800.00", > > "percent": "15.0%", > > "amount": "270.00" > > } > > ], > > "amount": "270.00" > > } > > ], > > "sum": "270.00" > > }, > > "tax": "270.00", > > "total_with_tax": "2070.00", > > "payable": "2070.00" > > } > > } > > ``` > > > [accordion] Standard self-billed invoice > > > > A self-billed invoice, where the customer issues the document on the supplier's behalf under a self-billing agreement. > > > > ```json Standard self-billed invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d853a1", > > "issue_date": "2024-06-15", > > "issue_time": "12:00:00", > > "code": "SAMPLE-SB-001", > > "type": "standard", > > "regime": "SA", > > "$tags": [ > > "self-billed" > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "tax_id": { > > "country": "SA", > > "code": "399999999900003" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "123456789012345" > > } > > ], > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2024-06-15", > > "period": { > > "start": "2024-06-01", > > "end": "2024-06-30" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "self-billed" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d853a1", > > "type": "standard", > > "code": "SAMPLE-SB-001", > > "issue_date": "2024-06-15", > > "issue_time": "12:00:00", > > "currency": "SAR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0100001", > > "untdid-document-type": "388" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "tax_id": { > > "country": "SA", > > "code": "399999999900003" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2024-06-15", > > "period": { > > "start": "2024-06-01", > > "end": "2024-06-30" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1800.00", > > "percent": "15.0%", > > "amount": "270.00" > > } > > ], > > "amount": "270.00" > > } > > ], > > "sum": "270.00" > > }, > > "tax": "270.00", > > "total_with_tax": "2070.00", > > "payable": "2070.00" > > } > > } > > ``` > > > [accordion] Standard third-party invoice > > > > An invoice issued by an authorised third party on behalf of the supplier. > > > > ```json Standard third-party invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852b0", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "code": "SAMPLE-TP-001", > > "type": "standard", > > "regime": "SA", > > "$tags": [ > > "third-party" > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "third-party" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852b0", > > "type": "standard", > > "code": "SAMPLE-TP-001", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "currency": "SAR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0110000", > > "untdid-document-type": "388" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1800.00", > > "percent": "15.0%", > > "amount": "270.00" > > } > > ], > > "amount": "270.00" > > } > > ], > > "sum": "270.00" > > }, > > "tax": "270.00", > > "total_with_tax": "2070.00", > > "payable": "2070.00" > > } > > } > > ``` > > > [accordion] Standard invoice in foreign currency (USD) > > > > An invoice issued in USD. The VAT amount must also be expressed in SAR, converted at the SAMA rate on the supply date. > > > > ```json Standard invoice (USD) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "currency": "USD", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "code": "SAMPLE-001", > > "regime": "SA", > > "exchange_rates": [ > > { > > "from": "USD", > > "to": "SAR", > > "amount": 3.75 > > } > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "name": "Acme Corp Saudi", > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "code": "SAMPLE-001", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "currency": "USD", > > "exchange_rates": [ > > { > > "from": "USD", > > "to": "SAR", > > "amount": "3.75" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0100000", > > "untdid-document-type": "388" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "TIN", > > "code": "123456789012345" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1800.00", > > "percent": "15.0%", > > "amount": "270.00" > > } > > ], > > "amount": "270.00" > > } > > ], > > "sum": "270.00" > > }, > > "tax": "270.00", > > "total_with_tax": "2070.00", > > "payable": "2070.00" > > } > > } > > ``` > > > [accordion] Summary credit note > > > > A summary credit note that corrects one or more preceding invoices in a single document, tagged `summary`. > > > > ```json Summary credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "8a51fd30-2a27-11ee-be56-0242ac120003", > > "issue_date": "2024-02-05", > > "issue_time": "09:30:00", > > "series": "CN", > > "code": "SAMPLE-CN-001", > > "regime": "SA", > > "type": "credit-note", > > "$tags": [ > > "summary" > > ], > > "preceding": [ > > { > > "series": "INV", > > "code": "SAMPLE-001", > > "issue_date": "2024-01-31", > > "reason": "Partial return of services after monthly close — discount applied per agreement BR-2024-AC-12", > > "type": "standard" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "Monthly summary credit note covering January 2024 adjustments." > > }, > > { > > "key": "reason", > > "text": "Customer returned 5 hours of consultancy and the office equipment delivered on 28 Jan." > > } > > ], > > "supplier": { > > "name": "Acme Corp Saudi LLC", > > "alias": "Acme SA", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "SAG", > > "code": "1010101010" > > } > > ], > > "people": [ > > { > > "name": { > > "given": "Yara", > > "surname": "Al-Harbi", > > "prefix": "Eng." > > }, > > "role": "Billing Manager" > > } > > ], > > "emails": [ > > { > > "addr": "billing@acme.sa" > > } > > ], > > "telephones": [ > > { > > "num": "+966112345678", > > "label": "office" > > } > > ], > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "CRN", > > "code": "2020202020" > > } > > ], > > "emails": [ > > { > > "addr": "ap@sample-consumer.sa" > > } > > ], > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2024-01-31", > > "period": { > > "start": "2024-01-01", > > "end": "2024-01-31" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "detail": "Refund via SEPA-equivalent local transfer", > > "credit_transfer": [ > > { > > "iban": "SA4420000001234567891234", > > "bic": "RJHISARIXXX", > > "name": "Sample Consumer LLC — Refund Account" > > } > > ] > > }, > > "terms": { > > "notes": "Refund to be processed within 14 days of receipt." > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": 5, > > "item": { > > "name": "Development services", > > "ref": "SVC-DEV-01", > > "price": "120.00", > > "unit": "h" > > }, > > "sum": "600.00", > > "discounts": [ > > { > > "percent": "10%", > > "reason": "Loyalty discount adjustment" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ], > > "total": "540.00" > > }, > > { > > "i": 2, > > "quantity": 1, > > "item": { > > "name": "Office desk return", > > "ref": "ITM-DESK-01", > > "price": "850.00", > > "unit": "one" > > }, > > "sum": "850.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ], > > "total": "850.00" > > }, > > { > > "i": 3, > > "quantity": 2, > > "item": { > > "name": "Domestic flights for cancelled visit", > > "ref": "TRV-FLT-01", > > "price": "300.00", > > "unit": "one" > > }, > > "sum": "600.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "zero", > > "ext": { > > "untdid-tax-category": "Z", > > "cef-vatex": "VATEX-SA-32" > > } > > } > > ], > > "total": "600.00" > > } > > ], > > "charges": [ > > { > > "reason": "Restocking and handling fee", > > "amount": "50.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "summary" > > ], > > "uuid": "8a51fd30-2a27-11ee-be56-0242ac120003", > > "type": "credit-note", > > "series": "CN", > > "code": "SAMPLE-CN-001", > > "issue_date": "2024-02-05", > > "issue_time": "09:30:00", > > "currency": "SAR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2024-01-31", > > "series": "INV", > > "code": "SAMPLE-001", > > "reason": "Partial return of services after monthly close — discount applied per agreement BR-2024-AC-12" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0100010", > > "untdid-document-type": "381" > > }, > > "notes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "text": "Export of goods", > > "ext": { > > "untdid-tax-category": "Z" > > } > > } > > ] > > }, > > "supplier": { > > "name": "Acme Corp Saudi LLC", > > "alias": "Acme SA", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "SAG", > > "code": "1010101010" > > } > > ], > > "people": [ > > { > > "name": { > > "prefix": "Eng.", > > "given": "Yara", > > "surname": "Al-Harbi" > > }, > > "role": "Billing Manager" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ], > > "emails": [ > > { > > "addr": "billing@acme.sa" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+966112345678" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "identities": [ > > { > > "type": "CRN", > > "code": "2020202020" > > } > > ], > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ], > > "emails": [ > > { > > "addr": "ap@sample-consumer.sa" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "ref": "SVC-DEV-01", > > "name": "Development services", > > "price": "120.00", > > "unit": "h" > > }, > > "sum": "600.00", > > "discounts": [ > > { > > "reason": "Loyalty discount adjustment", > > "percent": "10%", > > "amount": "60.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "540.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "ref": "ITM-DESK-01", > > "name": "Office desk return", > > "price": "850.00", > > "unit": "one" > > }, > > "sum": "850.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "850.00" > > }, > > { > > "i": 3, > > "quantity": "2", > > "item": { > > "ref": "TRV-FLT-01", > > "name": "Domestic flights for cancelled visit", > > "price": "300.00", > > "unit": "one" > > }, > > "sum": "600.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "cef-vatex": "VATEX-SA-32", > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "600.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "reason": "Restocking and handling fee", > > "amount": "50.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "notes": "Refund to be processed within 14 days of receipt." > > }, > > "instructions": { > > "key": "credit-transfer", > > "detail": "Refund via SEPA-equivalent local transfer", > > "credit_transfer": [ > > { > > "iban": "SA4420000001234567891234", > > "bic": "RJHISARIXXX", > > "name": "Sample Consumer LLC — Refund Account" > > } > > ], > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2024-01-31", > > "period": { > > "start": "2024-01-01", > > "end": "2024-01-31" > > } > > }, > > "totals": { > > "sum": "1990.00", > > "charge": "50.00", > > "total": "2040.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1440.00", > > "percent": "15.0%", > > "amount": "216.00" > > }, > > { > > "key": "zero", > > "ext": { > > "cef-vatex": "VATEX-SA-32", > > "untdid-tax-category": "Z" > > }, > > "base": "600.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "216.00" > > } > > ], > > "sum": "216.00" > > }, > > "tax": "216.00", > > "total_with_tax": "2256.00", > > "payable": "2256.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Monthly summary credit note covering January 2024 adjustments.", > > "ext": { > > "untdid-text-subject": "AAI" > > } > > }, > > { > > "key": "reason", > > "text": "Customer returned 5 hours of consultancy and the office equipment delivered on 28 Jan.", > > "ext": { > > "untdid-text-subject": "ACD" > > } > > } > > ] > > } > > ``` > > ### Simplified tax invoices (reporting) > > > [accordion] Simplified invoice (B2C) > > > > A simplified tax invoice for a consumer sale. It is signed and stamped locally with the Production CSID, delivered immediately, and reported to ZATCA within 24 hours. > > > > ```json Simplified invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "code": "SAMPLE-001", > > "regime": "SA", > > "type": "standard", > > "$tags": [ > > "simplified" > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "MLS", > > "code": "1234567890" > > } > > ], > > "name": "Acme Corp Saudi", > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 20, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "code": "SAMPLE-001", > > "issue_date": "2022-02-01", > > "issue_time": "12:00:00", > > "currency": "SAR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0200000", > > "untdid-document-type": "388" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "MLS", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-02-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1800.00", > > "percent": "15.0%", > > "amount": "270.00" > > } > > ], > > "amount": "270.00" > > } > > ], > > "sum": "270.00" > > }, > > "tax": "270.00", > > "total_with_tax": "2070.00", > > "payable": "2070.00" > > } > > } > > ``` > > > [accordion] Simplified credit note > > > > A credit note reducing a previously reported simplified invoice. > > > > ```json Simplified credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "a1b2c3d4-3333-4aaa-bbbb-000000000003", > > "type": "credit-note", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "series": "CN", > > "code": "CN-001", > > "regime": "SA", > > "$tags": [ > > "simplified" > > ], > > "preceding": [ > > { > > "series": "", > > "code": "SAMPLE-001", > > "issue_date": "2022-02-01", > > "reason": "Return of development services" > > } > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "MLS", > > "code": "1234567890" > > } > > ], > > "name": "Acme Corp Saudi", > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Refund within 14 days" > > } > > }, > > "lines": [ > > { > > "quantity": 5, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "a1b2c3d4-3333-4aaa-bbbb-000000000003", > > "type": "credit-note", > > "series": "CN", > > "code": "CN-001", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "currency": "SAR", > > "preceding": [ > > { > > "issue_date": "2022-02-01", > > "code": "SAMPLE-001", > > "reason": "Return of development services" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0200000", > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "MLS", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "450.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "450.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Refund within 14 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "450.00", > > "total": "450.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "450.00", > > "percent": "15.0%", > > "amount": "67.50" > > } > > ], > > "amount": "67.50" > > } > > ], > > "sum": "67.50" > > }, > > "tax": "67.50", > > "total_with_tax": "517.50", > > "payable": "517.50" > > } > > } > > ``` > > > [accordion] Simplified debit note > > > > A debit note increasing the value of a previously reported simplified invoice. > > > > ```json Simplified debit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "a1b2c3d4-4444-4aaa-bbbb-000000000004", > > "type": "debit-note", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "series": "DN", > > "code": "DN-001", > > "regime": "SA", > > "$tags": [ > > "simplified" > > ], > > "preceding": [ > > { > > "series": "", > > "code": "SAMPLE-001", > > "issue_date": "2022-02-01", > > "reason": "Price adjustment for development services" > > } > > ], > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "MLS", > > "code": "1234567890" > > } > > ], > > "name": "Acme Corp Saudi", > > "addresses": [ > > { > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "num": "1234", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "num": "5678", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > }, > > "lines": [ > > { > > "quantity": 5, > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "a1b2c3d4-4444-4aaa-bbbb-000000000004", > > "type": "debit-note", > > "series": "DN", > > "code": "DN-001", > > "issue_date": "2022-03-01", > > "issue_time": "10:00:00", > > "currency": "SAR", > > "preceding": [ > > { > > "issue_date": "2022-02-01", > > "code": "SAMPLE-001", > > "reason": "Price adjustment for development services" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0200000", > > "untdid-document-type": "383" > > } > > }, > > "supplier": { > > "name": "Acme Corp Saudi", > > "tax_id": { > > "country": "SA", > > "code": "312345678912343" > > }, > > "identities": [ > > { > > "type": "MLS", > > "code": "1234567890" > > } > > ], > > "addresses": [ > > { > > "num": "1234", > > "street": "King Fahd Road", > > "street_extra": "Al Olaya", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "12345", > > "country": "SA" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer LLC", > > "addresses": [ > > { > > "num": "5678", > > "street": "Olaya Street", > > "street_extra": "Al Malaz", > > "locality": "Riyadh", > > "region": "Riyadh", > > "code": "54321", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "450.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "450.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "date": "2022-03-01", > > "period": { > > "start": "2022-02-01", > > "end": "2022-02-28" > > } > > }, > > "totals": { > > "sum": "450.00", > > "total": "450.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "450.00", > > "percent": "15.0%", > > "amount": "67.50" > > } > > ], > > "amount": "67.50" > > } > > ], > > "sum": "67.50" > > }, > > "tax": "67.50", > > "total_with_tax": "517.50", > > "payable": "517.50" > > } > > } > > ``` > > > [accordion] Simplified zero-rated invoice > > > > A simplified invoice on zero-rated supplies, carrying explanatory tax notes for the applied rate. > > > > ```json Simplified zero-rated invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "sa-zatca-v1" > > ], > > "uuid": "8d487816-70b8-4ade-a618-9d620b73814a", > > "issue_date": "2022-09-07", > > "issue_time": "12:21:28", > > "code": "123456", > > "regime": "SA", > > "type": "standard", > > "$tags": [ > > "simplified" > > ], > > "tax": { > > "rounding": "currency", > > "notes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "text": "Medicines", > > "ext": { > > "untdid-tax-category": "Z" > > } > > } > > ] > > }, > > "supplier": { > > "tax_id": { > > "country": "SA", > > "code": "399999999900003" > > }, > > "name": "شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD", > > "identities": [ > > { > > "type": "CRN", > > "code": "1010010000" > > } > > ], > > "addresses": [ > > { > > "street": "الامير سلطان | Prince Sultan", > > "street_extra": "المربع | Al-Murabba", > > "num": "2322", > > "locality": "الرياض | Riyadh", > > "code": "23333", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Medicine | الدواء", > > "price": "50.00", > > "unit": "PCE" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "zero", > > "ext": { > > "cef-vatex": "VATEX-SA-35" > > } > > } > > ] > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Shampoo | شامبو", > > "price": "21.74", > > "unit": "PCE" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer" > > }, > > "terms": { > > "notes": "Payment due within 30 days" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "SA", > > "$addons": [ > > "eu-en16931-v2017", > > "sa-zatca-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "8d487816-70b8-4ade-a618-9d620b73814a", > > "type": "standard", > > "code": "123456", > > "issue_date": "2022-09-07", > > "issue_time": "12:21:28", > > "currency": "SAR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "sa-zatca-invoice-type": "0200000", > > "untdid-document-type": "388" > > }, > > "notes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "text": "Medicines", > > "ext": { > > "untdid-tax-category": "Z" > > } > > } > > ] > > }, > > "supplier": { > > "name": "شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD", > > "tax_id": { > > "country": "SA", > > "code": "399999999900003" > > }, > > "identities": [ > > { > > "type": "CRN", > > "code": "1010010000" > > } > > ], > > "addresses": [ > > { > > "num": "2322", > > "street": "الامير سلطان | Prince Sultan", > > "street_extra": "المربع | Al-Murabba", > > "locality": "الرياض | Riyadh", > > "code": "23333", > > "country": "SA" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Medicine | الدواء", > > "price": "50.00", > > "unit": "PCE" > > }, > > "sum": "50.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "cef-vatex": "VATEX-SA-35", > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "50.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Shampoo | شامبو", > > "price": "21.74", > > "unit": "PCE" > > }, > > "sum": "21.74", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "15.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "21.74" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Payment due within 30 days" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "totals": { > > "sum": "71.74", > > "total": "71.74", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "cef-vatex": "VATEX-SA-35", > > "untdid-tax-category": "Z" > > }, > > "base": "50.00", > > "percent": "0%", > > "amount": "0.00" > > }, > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "21.74", > > "percent": "15.0%", > > "amount": "3.26" > > } > > ], > > "amount": "3.26" > > } > > ], > > "sum": "3.26" > > }, > > "tax": "3.26", > > "total_with_tax": "75.00", > > "payable": "75.00" > > } > > } > > ``` > > > [!NOTE] > > > > Copy and paste any of these into the [GOBL builder](https://build.gobl.org) to preview and verify it. *** > [accordion] 🇸🇦 Invopop resources for Saudi Arabia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Saudi Arabia](/compliance/saudi-arabia) [Compliance timeline](/timelines/saudi-arabia) | > | Apps | [Saudi Arabia](/apps/saudi-arabia) | > | Guides | [Registration](/guides/sa-zatca-registration) [Clearance & reporting](/guides/sa-zatca-clearance-reporting) | > | FAQ | [Saudi Arabia FAQ](/faq/saudi-arabia) | > | GOBL | [Saudi Arabia Tax Regime](https://docs.gobl.org/regimes/sa) [ZATCA Addon](https://docs.gobl.org/addons/sa-zatca-v1) | > | GitHub | [gobl.sa.zatca](https://github.com/invopop/gobl.sa.zatca) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Saudi Arabia app → # SDI Italy Source: https://docs.invopop.com/apps/sdi-italy Issue and receive invoices through Italy's SDI system. > [!WARNING] > > **This app is being retired.** New integrations should use the [Italy app](/apps/italy), which reaches SDI through Invopop's own accredited channel. > [tab] Description > > > [card] [SDI Sending](/guides/it-sdi-sending) > > > > View implementation guide › > > > [card] [SDI Receiving](/guides/it-sdi-receiving) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B | > | Country | [Italy](/compliance/italy) | > > The [SDI](https://www.agenziaentrate.gov.it) (*Sistema di Interscambio*) is Italy's central hub for transmitting, validating, and delivering all electronic invoices throughout the country. It is managed by the Italian tax authority (*Agenzia delle Entrate*). > > Electronic invoicing is mandatory for all businesses in Italy. The SDI system operates using a standardized XML format called FatturaPA, which ensures all invoices contain the required information and comply with the strict validation rules established by the Italian tax authority. > > Invopop simplifies SDI integration by allowing you to work with GOBL format instead of XML, providing synchronous validation before submission, and offering a simple API integration with automatic handling of SDI notifications and status updates. Invopop has partnered with [A-Cube](https://www.acubeapi.com) to provide SDI integration services. > > **Key features** > > * **Workflow automation:** This app provides automated workflows for sending and receiving invoices through the SDI system. > * **FatturaPA XML generation:** Automatically converts GOBL documents into compliant FatturaPA XML format. > * **Real-time status updates:** Automatically handles SDI notifications and status updates, including delivery confirmations and acceptance/rejection notifications. > * **Bidirectional support:** Send invoices to SDI and receive invoices from suppliers through the same app. > * **Customer registration:** Register companies to receive invoices through SDI with a simple workflow step. > * **GOBL FatturaPA integration:** Uses the open-source [GOBL FatturaPA](https://github.com/invopop/gobl.fatturapa) library for conversions. > > Make sure to check out our [SDI Italy Sending Guide](/guides/it-sdi-sending) and [SDI Italy Receiving Guide](/guides/it-sdi-receiving) for instructions on how to issue and receive invoices. > > ## FAQ > > Invoicing questions > > > [accordion] How do I configure my workspace for Italian invoicing? > > > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > > > [accordion] How do I issue a documento commerciale (scontrino)? > > > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > > > [accordion] Where do I find Italy-specific GOBL documentation? > > > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. > > > [accordion] Why is my invoice processing taking so long? > > > > The **Send invoice to SDI** step completes as soon as SDI accepts the file — it doesn't wait for SDI's verdict. What takes time is SDI's own processing: a rejection usually arrives within minutes, but delivery confirmations can take up to 5 days. Each verdict is recorded against the invoice as a status entry, so nothing is stuck while you wait. See the [status guide](/guides/it-sdi-status) for the full lifecycle. > > > [accordion] How do I know if my invoice was delivered successfully? > > > > SDI confirms delivery with an `RC` (*ricevuta di consegna*) notification, recorded on the invoice as a status entry with the GOBL status `acknowledged`. A rejection arrives as `NS` with status `error`. Every notification and what it means is covered in the [status guide](/guides/it-sdi-status). > > > [accordion] How do I test different SDI outcomes in the sandbox? > > > > Set a reserved *codice destinatario* on the customer — for example `SIMNS00` to simulate a rejection. The sandbox simulates SDI end to end and feeds back the notifications a real exchange would produce; any ordinary code resolves to a successful delivery. The full list of reserved codes is in the [issuing guide](/guides/it-sdi-invoicing#testing-in-the-sandbox). > > > [accordion] How do I add codice fiscale and Partita IVA? > > > > Both Italian tax identifiers have their own place on a party. The *partita IVA* (VAT number) goes in `tax_id`, and the *codice fiscale* goes in `identities` under the key `it-fiscal-code`. A party may carry both. > > > > An Italian supplier always needs a *partita IVA*. An Italian customer needs at least one of the two — which one depends on who they are, covered in the [issuing guide](/guides/it-sdi-invoicing#identifying-the-customer). > > > > Here's an example showing both identifiers on a supplier: > > > > ```json Supplier with Partita IVA and Codice Fiscale theme={"system"} > > { > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "identities": [ > > { > > "key": "it-fiscal-code", > > "code": "MRTMTT91D08F205J" > > } > > ] > > } > > } > > ``` > > > [accordion] How do I invoice a customer outside Italy? > > > > Send it through SDI as usual — an Italian supplier reports the invoice there whoever the customer is. SDI has no way to deliver outside Italy, though, so it won't reach the customer that way: send them their copy yourself, normally as a PDF. It's the same invoice travelling by two routes, and only the FatturaPA file is the legal one. > > > [accordion] What if the customer has no tax ID at all? > > > > An Italian customer needs either a *partita IVA* or a *codice fiscale*. A customer outside Italy needs neither — their country is enough, so leave the code out rather than inventing a placeholder. See [identifying the customer](/guides/it-sdi-invoicing#identifying-the-customer). > > > [accordion] How do I reference a receipt (documento commerciale) in an SDI invoice? > > > > Add an item attribute to the invoice line with `type` `N.DOC.COMM` and the receipt's identifier in `text`, its progressive number in `amount` and its date in `date`. The `it-sdi-v1` addon writes each item attribute as an `AltriDatiGestionali` block (`TipoDato`, `RiferimentoTesto`, `RiferimentoNumero`, `RiferimentoData`). The `type` is limited to 10 ASCII characters. See the "Invoice after a documento commerciale" example in the [issuing guide](/guides/it-sdi-invoicing#example-invoices). > > Registering supplier questions > > > [accordion] How do I onboard a new supplier in Italy? > > > > Provide the supplier's Partita IVA and Codice Fiscale (where different) in their party configuration. No certificate upload is needed — Invopop transmits to SDI over its own accredited channel. > > > [accordion] How are supplier credentials stored in Invopop for Italy? > > > > No supplier certificates are required. Invopop exchanges documents with SDI over its own accredited channel; only the Partita IVA and routing metadata are stored. > > > [accordion] How do I register a supplier with SDI? > > > > You don't need to. SDI has no supplier registration for sending: set the supplier's Partita IVA on the party and send. Registration is only needed for *receiving* — see the [receiving invoices guide](/guides/it-sdi-reception). > > > [accordion] What certificates does SDI require to authenticate a supplier? > > > > None — Invopop exchanges documents with SDI over its own accredited channel, so suppliers don't manage any certificates. Invoices to public administrations (`FPA12`) also need a qualified electronic signature, which Invopop applies with its own seal when it sends them. > > Receiving questions > > > [accordion] How do I import received invoices in Italy? > > > > Register Invopop's recipient code (`BDCS3JD`) with the tax authority and run the registration workflow on the company's party entry. Invopop automatically receives matching invoices and routes them through the configured import workflow. See the [receiving invoices guide](/guides/it-sdi-reception). > > > [accordion] How does Invopop convert received Italian invoices into GOBL? > > > > Inbound FatturaPA XMLs are parsed via [`gobl.fatturapa`](https://github.com/invopop/gobl.fatturapa). The original signed XML is preserved as a silo entry attachment alongside the GOBL representation. > > > [accordion] How do I test receiving invoices in the sandbox? > > > > Register the company for reception in your sandbox workspace, then send a sandbox invoice addressed to it — the app loops it back to you as an inbound delivery and runs your import workflow, exactly as a real delivery would. This is the only way to receive an invoice in sandbox: there is no tax authority to register with, and no real supplier can reach it. See [receiving your own invoices](/guides/it-sdi-invoicing#receiving-your-own-invoices). > > > [accordion] What happens if a received invoice contains errors? > > > > The import step attempts to convert the FatturaPA document into [GOBL](https://docs.gobl.org). If conversion fails, the step returns `KO`, but the original file stays stored — the invoice can be re-processed later without SDI needing to redeliver it. > > > > If the invoice has significant structural issues that prevent conversion, you may need to contact the sender to request a corrected invoice. > > > [accordion] How quickly are invoices received after being sent by suppliers? > > > > Invoices are typically received within minutes after being sent by suppliers through SDI. The automatic import process in Invopop processes them as soon as they are received by our system. > > > [accordion] Can I register multiple companies to receive invoices? > > > > Yes, multiple companies can be registered to receive invoices through a single Invopop workspace. For each company, you must: > > > > 1. Register the recipient code `BDCS3JD` with the Italian tax authority for that specific company > > 2. Have its tax ID registered by running the registration workflow on the company's party entry > > 3. Use the same import workflow configured in the app settings > > > > This two-step registration process (with the tax authority and with Invopop) must be completed for each company you want to register. This is particularly useful for white-labeling scenarios where a user manages multiple entities. > > > [accordion] Can I register the same tax ID again from a different party? > > > > Yes, but only one party at a time can hold a given tax ID. Run the [unregister workflow](/guides/it-sdi-reception#unregistering-a-company) on the party that currently holds it, then register the new one. > > > > Registering a tax ID that another party already holds fails with a clear error. > > > > Sandbox and live are counted separately, so the same tax ID can be registered in both at the same time. > > > [accordion] What is the difference between registering with the tax authority and registering with Invopop? > > > > The two-step registration process serves different purposes: > > > > 1. **Registering with the Italian tax authority** - Tells SDI to route invoices addressed to your company to Invopop's channel using the *Codice Destinatario* `BDCS3JD`. > > > > 2. **Registering with Invopop** (the registration workflow) - Tells Invopop which invoices to accept and process for your workspace. > > > > Both steps are necessary: the first routes the invoices to Invopop, and the second ensures Invopop knows which workspace should receive those invoices. > > > [accordion] What format do received SDI invoices arrive in? > > > > Signed FatturaPA XML (versions 1.2.x), conforming to the Agenzia delle Entrate schema. The original file is kept attached to the entry exactly as SDI delivered it, alongside SDI's delivery metadata. > > More answers in our [Italy FAQ](/faq/italy) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send invoice to SDI > > > > 3 > > Issue GOBL invoices in the Italian SDI using the FatturaPA format. > > > [card] Register supplier with SDI > > > > 100/mo > > Register a GOBL party (customer) to receive invoices from the Italian SDI. > > > [card] Unregister party from SDI > > > > Stop a registered party from receiving invoices from the Italian SDI, freeing its tax ID to be registered again. > > > [card] Import invoice from SDI > > > > 3 > > Import invoices from the Italian SDI using the FatturaPA format. > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] SDI Italy send invoice workflow > > > > This workflow automates FatturaPA invoice generation and submission to SDI. > > > > ```json SDI issue invoice workflow theme={"system"} > > { > > "name": "SDI issue invoice", > > "description": "Issue an invoice through SDI", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "1a692ae0-cd12-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "1855b430-cd12-11ef-998c-e97f18c9212e", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "2042f860-cd12-11ef-998c-e97f18c9212e", > > "name": "Send invoice to SDI", > > "provider": "sdi-it.send", > > "summary": "Sandbox · Accepted by PA (Notifica esito)", > > "config": { > > "environment": "sandbox", > > "response": "NE" > > } > > }, > > { > > "id": "c1067e58-7b8b-11f1-8b0e-92000767c8b7", > > "name": "Archive document for legal preservation", > > "provider": "sdi-it.archive.store", > > "summary": "Preserve invoice and store its receipt", > > "config": { > > "environment": "sandbox" > > } > > }, > > { > > "id": "236965b0-cd12-11ef-998c-e97f18c9212e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Italian · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "locale": "it", > > "logo_height": 40 > > } > > }, > > { > > "id": "2b6db450-cd12-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "2d5d7660-cd12-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-sdi-send) > > > [accordion] SDI Italy register customer workflow > > > > This workflow registers a company to receive invoices through SDI. > > > > ```json SDI register customer workflow theme={"system"} > > { > > "name": "SDI register customer", > > "description": "Register a customer with SDI to receive invoices", > > "schema": "org/party", > > "steps": [ > > { > > "id": "2a34f560-fd13-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "3b5c7890-fd13-11ef-998c-e97f18c9212e", > > "name": "Register party with SDI", > > "provider": "sdi-it.register", > > "summary": "Register company as receiver", > > "config": { > > "environment": "production" > > } > > }, > > { > > "id": "c1096edb-7b8b-11f1-a196-92000767c8b7", > > "name": "Register party for e-archiving", > > "provider": "sdi-it.archive.register", > > "summary": "Register company for legal preservation", > > "config": { > > "environment": "production" > > } > > }, > > { > > "id": "4c6d8910-fd13-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "5d7e9a20-fd13-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-sdi-register-customer) > > > [accordion] SDI Italy unregister customer workflow > > > > This workflow stops a company from receiving invoices through SDI. > > > > ```json SDI unregister customer workflow theme={"system"} > > { > > "name": "SDI unregister customer", > > "description": "Unregister a customer from SDI to stop receiving invoices", > > "schema": "org/party", > > "steps": [ > > { > > "id": "b56b1f70-90e1-11f1-9fc8-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "b56e7f7c-90e1-11f1-8a81-92000767c8b7", > > "name": "Unregister party from SDI", > > "provider": "sdi-it.unregister", > > "summary": "Stop receiving invoices for this company" > > }, > > { > > "id": "b56e8088-90e1-11f1-b95f-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "cf5af04f-90e1-11f1-8a24-92000767c8b7", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-sdi-unregister-customer) > > > [accordion] SDI Italy import invoices workflow > > > > This workflow imports and processes invoices received through SDI. > > > > ```json SDI import invoice workflow theme={"system"} > > { > > "name": "SDI import invoice", > > "description": "Import an invoice received through SDI", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "6e8f0b30-fd13-11ef-998c-e97f18c9212e", > > "name": "Import invoice from SDI", > > "provider": "sdi-it.import", > > "summary": "Convert received FatturaPA to GOBL", > > "config": { > > "environment": "production" > > } > > }, > > { > > "id": "b3e17a92-7c5d-11f1-9c40-92000767c8b7", > > "name": "Archive document for legal preservation", > > "provider": "sdi-it.archive.store", > > "summary": "Preserve invoice and store its receipt", > > "config": { > > "environment": "production", > > "flow": "received" > > } > > }, > > { > > "id": "7f9a1c40-fd13-11ef-998c-e97f18c9212e", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Italian · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "locale": "it", > > "logo_height": 40 > > } > > }, > > { > > "id": "8a0b2d50-fd13-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "9b1c3e60-fd13-11ef-998c-e97f18c9212e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-sdi-import-invoices) > [tab] Documents > > Parties > > > [accordion] Supplier > > > > An Italian company with its partita IVA and the mandatory `it-sdi-fiscal-regime` extension (here `RF01`, ordinary regime). > > > > ```json Italy supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > } > > ``` > > > [accordion] Customer > > > > An Italian business customer with partita IVA and the `it-sdi-code` inbox (Codice Destinatario) used by SDI to route the invoice. > > > > ```json Italy customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Cliente Esempio SpA", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "8", > > "street": "Via Roma", > > "locality": "Torino", > > "region": "TO", > > "code": "10121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "acquisti@clienteesempio.it" > > } > > ] > > } > > ``` > > > [accordion] B2B Invoice > > > > In this example, we're issuing a standard B2B invoice from an Italian supplier to another Italian business customer. > > > > Notice: > > > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > > * the minimal version contains only essential fields; `gobl build` handles all calculations, > > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2B transactions, and, > > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > > > ```json SDI B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "intermediate" > > } > > ] > > } > > ] > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "sum": "1.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ], > > "total": "1.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "sum": "125.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "intermediate", > > "percent": "10.0%" > > } > > ], > > "total": "125.00" > > } > > ], > > "totals": { > > "sum": "126.00", > > "tax_included": "11.36", > > "total": "114.64", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > }, > > "base": "1.00", > > "amount": "0.00" > > }, > > { > > "key": "standard", > > "base": "113.64", > > "percent": "10.0%", > > "amount": "11.36" > > } > > ], > > "amount": "11.36" > > } > > ], > > "sum": "11.36" > > }, > > "tax": "11.36", > > "total_with_tax": "126.00", > > "payable": "126.00" > > } > > } > > ``` > > > [accordion] B2G Invoice > > > > In this example, we're issuing a B2G invoice from an Italian supplier to the Italian government. > > > > Notice: > > > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > > * the minimal version contains only essential fields; `gobl build` handles all calculations, > > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2G transactions, and, > > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > > > ```json SDI B2G Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": ["it-sdi-v1"], > > "$tags": ["b2g"], > > "series": "PA", > > "code": "2026-001", > > "issue_date": "2026-05-08", > > "currency": "EUR", > > "supplier": { > > "name": "Esempio Fornitore SRL", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > }, > > "addresses": [ > > { > > "num": "10", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > {"addr": "amministrazione@esempio-fornitore.it"} > > ] > > }, > > "customer": { > > "name": "Comune di Roma", > > "tax_id": { > > "country": "IT", > > "code": "02438750586" > > }, > > "addresses": [ > > { > > "num": "1", > > "street": "Piazza del Campidoglio", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "UF9DN8" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Servizi di consulenza informatica", > > "price": "150.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Licenza software annuale", > > "price": "1200.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "ext": { > > "it-sdi-payment-means": "MP05" > > }, > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "Banca Esempio SpA", > > "bic": "BPMOIT22XXX" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2026-06-07", > > "percent": "100%" > > } > > ] > > } > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "b2g" > > ], > > "type": "standard", > > "series": "PA", > > "code": "2026-001", > > "issue_date": "2026-05-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPA12" > > } > > }, > > "supplier": { > > "name": "Esempio Fornitore SRL", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "10", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "amministrazione@esempio-fornitore.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Comune di Roma", > > "tax_id": { > > "country": "IT", > > "code": "02438750586" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "UF9DN8" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Piazza del Campidoglio", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Servizi di consulenza informatica", > > "price": "150.00", > > "unit": "h" > > }, > > "sum": "3000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "3000.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Licenza software annuale", > > "price": "1200.00" > > }, > > "sum": "1200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "1200.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2026-06-07", > > "amount": "5124.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "bic": "BPMOIT22XXX", > > "name": "Banca Esempio SpA" > > } > > ], > > "ext": { > > "it-sdi-payment-means": "MP05" > > } > > } > > }, > > "totals": { > > "sum": "4200.00", > > "total": "4200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "4200.00", > > "percent": "22.0%", > > "amount": "924.00" > > } > > ], > > "amount": "924.00" > > } > > ], > > "sum": "924.00" > > }, > > "tax": "924.00", > > "total_with_tax": "5124.00", > > "payable": "5124.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > > } > > ] > > } > > ``` > > > [accordion] Simplified Invoice (Fattura Semplificata) > > > > In this example, we're issuing a simplified invoice for a €49.00 restaurant bill to a private customer identified only by their codice fiscale. > > > > Notice: > > > > * `$tags` includes `simplified`, so `gobl build` sets the format to `FSM10` and the document type to `TD07`, > > * the customer has no name or address: an Italian `tax_id` without a code, plus their codice fiscale as an `it-fiscal-code` identity, > > * prices include VAT, and the total with VAT must stay within €400, which the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon checks before the invoice is sent, and, > > * see [Simplified invoices](/guides/it-sdi-invoicing#simplified-invoices) for what else the format allows. > > > > ```json SDI Simplified Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2026-10-01", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "tax_id": { > > "country": "IT" > > }, > > "identities": [ > > { > > "key": "it-fiscal-code", > > "code": "RSSGNN60R30H501U" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Menu di lavoro", > > "price": "18.50" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "intermediate" > > } > > ] > > }, > > { > > "quantity": "2", > > "item": { > > "name": "Vino della casa", > > "price": "6.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2026-10-01", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD07", > > "it-sdi-format": "FSM10" > > } > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "tax_id": { > > "country": "IT" > > }, > > "identities": [ > > { > > "key": "it-fiscal-code", > > "code": "RSSGNN60R30H501U" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Menu di lavoro", > > "price": "18.50" > > }, > > "sum": "37.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "intermediate", > > "percent": "10.0%" > > } > > ], > > "total": "37.00" > > }, > > { > > "i": 2, > > "quantity": "2", > > "item": { > > "name": "Vino della casa", > > "price": "6.00" > > }, > > "sum": "12.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "12.00" > > } > > ], > > "totals": { > > "sum": "49.00", > > "tax_included": "5.53", > > "total": "43.47", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "33.64", > > "percent": "10.0%", > > "amount": "3.36" > > }, > > { > > "key": "standard", > > "base": "9.84", > > "percent": "22.0%", > > "amount": "2.16" > > } > > ], > > "amount": "5.53" > > } > > ], > > "sum": "5.53" > > }, > > "tax": "5.53", > > "total_with_tax": "49.00", > > "payable": "49.00" > > } > > } > > ``` > > > [accordion] Stamp Duty Invoice (Marca da Bollo) > > > > This example matches the **B2B invoice** above but adds a **€2.00 Marca da bollo** (stamp duty) as a document-level charge. > > > > **Flat-rate scheme (*forfettario*):** taxpayers using the *regime forfettario* do **not** charge VAT on their invoices. When the document total goes **above €77.47**, they must account for **imposta di bollo**—typically by adding a **€2.00** stamp duty line, as in this sample. (Thresholds and rules can change; confirm with your adviser or the Agenzia delle Entrate if in doubt.) > > > > Notice: > > > > * the `charges` array includes an entry with `"key": "stamp-duty"`, amount `"2.00"`, and reason `Imposta di bollo`, > > * the minimal version is otherwise the same as the B2B example; `gobl build` recalculates totals including the charge, > > * the built version shows `totals.charge` and a higher `payable` / `total_with_tax` than the plain B2B invoice, > > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon continues to validate the document for SDI transmission. > > > > ```json SDI Stamp duty invoice (Marca da Bollo) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "intermediate" > > } > > ] > > } > > ], > > "charges": [ > > { > > "key": "stamp-duty", > > "i": 1, > > "amount": "2.00", > > "reason": "Imposta di bollo" > > } > > ] > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "002", > > "issue_date": "2023-05-21", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Hotel California", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "num": "102", > > "street": "Via California", > > "locality": "Palermo", > > "region": "PA", > > "code": "33213", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Tassa di Soggiorno", > > "price": "1.00" > > }, > > "sum": "1.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ], > > "total": "1.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Camera Matrimoniale", > > "price": "125.00" > > }, > > "sum": "125.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "intermediate", > > "percent": "10.0%" > > } > > ], > > "total": "125.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "key": "stamp-duty", > > "reason": "Imposta di bollo", > > "amount": "2.00" > > } > > ], > > "totals": { > > "sum": "126.00", > > "charge": "2.00", > > "tax_included": "11.36", > > "total": "116.64", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > }, > > "base": "1.00", > > "amount": "0.00" > > }, > > { > > "key": "standard", > > "base": "113.64", > > "percent": "10.0%", > > "amount": "11.36" > > } > > ], > > "amount": "11.36" > > } > > ], > > "sum": "11.36" > > }, > > "tax": "11.36", > > "total_with_tax": "128.00", > > "payable": "128.00" > > } > > } > > ``` > > > [accordion] B2B Invoice with Additional Fields > > > > In this example, we're issuing a comprehensive B2B invoice with additional optional fields such as ordering information, payment details, and document references. > > > > Notice: > > > > * this invoice demonstrates advanced SDI features like CIG/CUP codes, payment methods, and bank details, > > * the minimal version includes ordering and payment details; `gobl build` calculates all totals, > > * when running `gobl build`, the system validates all additional fields according to SDI specifications and calculates totals, > > * the built version shows the complete document with all calculated fields, tax breakdowns, and properly formatted additional information, > > * additional fields like `ordering`, `payment`, and document references are important for public administration invoices (B2G), and, > > * the addon ensures all optional fields are properly validated and formatted for SDI transmission. > > > > ```json SDI B2B Invoice with additional fields theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2023-03-02", > > "currency": "EUR", > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "999999999" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2023-09-01", > > "percent": "100%" > > } > > ] > > } > > } > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2023-03-02", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD06", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "999999999" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "200.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2023-09-01", > > "amount": "244.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ], > > "ext": { > > "it-sdi-payment-means": "MP05" > > } > > } > > }, > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200.00", > > "percent": "22.0%", > > "amount": "44.00" > > } > > ], > > "amount": "44.00" > > } > > ], > > "sum": "44.00" > > }, > > "tax": "44.00", > > "total_with_tax": "244.00", > > "payable": "244.00" > > } > > } > > ``` > > > [accordion] VAT Exempt Invoice > > > > In this example, we're issuing an invoice for goods or services that are exempt from VAT (IVA). > > > > Notice: > > > > * the line item includes a tax with `"key": "exempt"` indicating this is a VAT-exempt transaction, > > * the minimal version omits the exemption code extension (`it-sdi-exempt`), which will be automatically added during `gobl build`, > > * when running `gobl build`, the system calculates totals with zero VAT and validates the exemption structure, > > * the built version shows the complete document with the exemption code extension (e.g., `"it-sdi-exempt": "N4"`) applied to the tax rate, > > * exemption codes must comply with SDI requirements—consult the [complete list of exemption reasons](https://docs.gobl.org/addons/it-sdi-v1#it-sdi-exempt) in the GOBL documentation, > > * common exemption codes include N4 (exempt), N3.1 (exports), N3.2 (intra-community supplies), and N6.x (reverse charge scenarios), and, > > * the SDI validates that exempt invoices include proper exemption codes before transmission. > > > > ```json SDI Exempt Invoice theme={"system"} > > > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "code": "INVOICE-001", > > "supplier": { > > "name": "Example IT Supplier S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "street": "Via Roma, 123", > > "locality": "Milan", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "info@supplier.it" > > } > > ] > > }, > > "customer": { > > "name": "Example IT Customer S.p.A.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "addresses": [ > > { > > "street": "Via Dante, 456", > > "locality": "Rome", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "10", > > "item": { > > "name": "Tax Exempt Service", > > "price": "100.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "code": "INVOICE-001", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Example IT Supplier S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "addresses": [ > > { > > "street": "Via Roma, 123", > > "locality": "Milan", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "info@supplier.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Example IT Customer S.p.A.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "addresses": [ > > { > > "street": "Via Dante, 456", > > "locality": "Rome", > > "code": "00100", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "10", > > "item": { > > "name": "Tax Exempt Service", > > "price": "100.00" > > }, > > "sum": "1000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > } > > } > > ], > > "total": "1000.00" > > } > > ], > > "totals": { > > "sum": "1000.00", > > "total": "1000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "it-sdi-exempt": "N4" > > }, > > "base": "1000.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1000.00", > > "payable": "1000.00" > > } > > } > > ``` > > > [accordion] Credit Note > > > > In this example, we're issuing a credit note (nota di credito) to correct or refund a previously issued invoice. > > > > Notice: > > > > * the `type` field is set to `credit-note` to indicate this is a corrective document, > > * the `preceding` field references the original invoice being corrected, > > * the minimal version contains only essential correction details; `gobl build` calculates negative amounts, > > * when running `gobl build`, the system automatically calculates negative totals, IVA refunds, validates the credit note structure, and applies SDI rules, > > * the built version shows all calculated fields including negative amounts for the refund and proper tax adjustments, > > * credit notes must be properly linked to the original invoice and transmitted through SDI, and, > > * the SDI system validates the credit note format before accepting and forwarding it to the recipient. > > > > ```json SDI Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "001", > > "issue_date": "2024-10-09", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > > "type": "standard", > > "issue_date": "2023-03-02", > > "series": "SAMPLE", > > "code": "001" > > } > > ], > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ] > > } > > } > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "$tags": [ > > "freelance" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "001", > > "issue_date": "2024-10-09", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > > "type": "standard", > > "issue_date": "2023-03-02", > > "series": "SAMPLE", > > "code": "001" > > } > > ], > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD04", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "MªF. Services", > > "tax_id": { > > "country": "IT", > > "code": "12345678903" > > }, > > "people": [ > > { > > "name": { > > "given": "GIANCARLO", > > "surname": "ROSSI" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELLA LIBERTÀ", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "registration": { > > "capital": "50000.00", > > "currency": "EUR", > > "office": "RM", > > "entry": "123456" > > }, > > "ext": { > > "it-sdi-fiscal-regime": "RF02" > > } > > }, > > "customer": { > > "name": "MARIO LEONI", > > "tax_id": { > > "country": "IT", > > "code": "09876543217" > > }, > > "people": [ > > { > > "name": { > > "prefix": "Dott.", > > "given": "MARIO", > > "surname": "LEONI" > > } > > } > > ], > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "VIALE DELI LAVORATORI", > > "locality": "ROMA", > > "region": "RM", > > "code": "00100", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "mario@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development of accounting software", > > "price": "10.00", > > "unit": "h" > > }, > > "sum": "200.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "200.00" > > } > > ], > > "payment": { > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "IT60X0542811101000000123456", > > "name": "MªF. Services" > > } > > ], > > "ext": { > > "it-sdi-payment-means": "MP05" > > } > > } > > }, > > "totals": { > > "sum": "200.00", > > "total": "200.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "200.00", > > "percent": "22.0%", > > "amount": "44.00" > > } > > ], > > "amount": "44.00" > > } > > ], > > "sum": "44.00" > > }, > > "tax": "44.00", > > "total_with_tax": "244.00", > > "payable": "244.00" > > } > > } > > ``` > > > [accordion] Invoice after a documento commerciale > > > > In this example, a retail sale was first recorded with a [Smart Receipt](/guides/it-ticket) (*documento commerciale*) and the customer later asked for an invoice. The invoice is an ordinary SDI invoice that references the receipt issued for the same sale. > > > > Notice: > > > > * the line item carries an `attributes` entry with `type` `N.DOC.COMM`, the receipt's AdE document number in `text`, its progressive number in `amount`, and the receipt date in `date`, > > * the `it-sdi-v1` addon converts each item attribute into an `AltriDatiGestionali` block: `type` becomes `TipoDato`, `text` becomes `RiferimentoTesto`, `amount` becomes `RiferimentoNumero`, and `date` becomes `RiferimentoData`, which is the layout the AdE describes for invoices preceded by a receipt, > > * `type` is limited to 10 ASCII characters and `text` to 60 characters, and `amount` is rendered with at least two decimals, so `7816` arrives at SDI as `7816.00`, > > * the receipt's document number is the `ade-ref` stamp the Smart Receipts app adds to the receipt's header after the AdE accepts it, > > * `issue_date` is the day of the sale, because FatturaPA's `Data` comes from `issue_date` (`op_date` is not written to the XML), and without further tags `gobl build` sets the document type to `TD01`, > > * the Smart Receipt itself is not changed by this invoice, and your own VAT records must remove the invoiced amount from that day's *corrispettivi*. See [Invoice requested after a receipt](/guides/it-ticket#invoice-requested-after-a-receipt) for the full sequence. > > > > ```json SDI invoice after a documento commerciale theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2025-05-22", > > "op_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > }, > > "addresses": [ > > { > > "num": "12", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "50123", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "attributes": [ > > { > > "type": "N.DOC.COMM", > > "text": "ACUBE2025/0000-7816", > > "amount": "7816", > > "date": "2025-05-20" > > } > > ] > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "003", > > "issue_date": "2025-05-22", > > "op_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12" > > } > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > }, > > "addresses": [ > > { > > "num": "12", > > "street": "Via Roma", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Mela S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "13029381004" > > }, > > "inboxes": [ > > { > > "key": "it-sdi-code", > > "code": "M5UXCR5" > > } > > ], > > "addresses": [ > > { > > "num": "23", > > "street": "Via dei Mille", > > "locality": "Firenze", > > "region": "FI", > > "code": "50123", > > "country": "IT" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "attributes": [ > > { > > "type": "N.DOC.COMM", > > "text": "ACUBE2025/0000-7816", > > "amount": "7816", > > "date": "2025-05-20" > > } > > ], > > "price": "137.50" > > }, > > "sum": "412.50", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "412.50" > > } > > ], > > "totals": { > > "sum": "412.50", > > "tax_included": "74.39", > > "total": "338.11", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "338.11", > > "percent": "22.0%", > > "amount": "74.39" > > } > > ], > > "amount": "74.39" > > } > > ], > > "sum": "74.39" > > }, > > "tax": "74.39", > > "total_with_tax": "412.50", > > "payable": "412.50" > > } > > } > > ``` > > See also the [stamp duty (Marca da Bollo) regulation](/compliance/italy#regulation) for details on when the €2 *imposta di bollo* applies. *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about SDI Italy App → # Slack Source: https://docs.invopop.com/apps/slack Send notifications from your workflow via Slack > [tab] Description > > > [card] [Slack](/guides/slack) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Notify | > > Invopop's Slack app helps you keep your team updated by sending automated messages to a Slack channel of your choice. For instance, you might want to receive a message when one of your job executions fails, or get notified when invoices are successfully processed. > > You can connect multiple Slack channels to your workspace, allowing you to send notifications to different teams or departments based on your workflow requirements. > > **Key features** > > * **Workflow automation:** Send automated notifications to Slack channels as part of your document processing workflows. > * **Multiple channel support:** Connect and send messages to multiple Slack channels from a single workspace. > * **Error notifications:** Get real-time alerts when workflow steps fail, helping you quickly identify and resolve issues. > * **Custom messages:** Customize message content to include relevant information about your document processing jobs. > * **Easy integration:** Simple setup process that requires only a Slack account with full membership or admin role. > > Make sure to check out our [Slack Guide](/guides/slack) for instructions on how to configure channels and set up your workflows. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send a Slack Message > > > > Send slack messages with a bot or your own account. > [tab] Workflows > > The Slack app fits into your existing workflows. Typically, you'll add the `Send a Slack Message` step in your error handling flow to receive notifications when workflow steps fail, or in your main flow to notify your team about successful document processing. > > For example, you can add a Slack notification step in the error handling area of your workflow to receive messages like `Job fe094ad0-3e12-11ef-bfd5-15fe9005edf3 failed!` when a step encounters an error. > > See the [Slack Guide](/guides/slack) for detailed setup instructions and configuration options. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Slack App → # Smart receipts Italy Source: https://docs.invopop.com/apps/smart-receipts-italy Issue documento commerciale in Italy > [tab] Description > > > [card] [Register suppliers](/guides/it-ticket-supplier) > > > > Supplier registration guide › > > > [card] [Issue receipts](/guides/it-ticket) > > > > Issuing guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2C | > | Country | [Italy](/compliance/italy) | > > The [AdE](https://www.agenziaentrate.gov.it) (*Agenzia delle Entrate*) is Italy's tax authority responsible for managing tax collection and fiscal compliance. The *documento commerciale* (also known as *scontrino elettronico*) is a digital fiscal document that records sales transactions and transmits them to the AdE. > > Italian law requires businesses to transmit sales data digitally through either a certified *Registratore Telematico* (RT) or the [AdE's online portal](https://www.agenziaentrate.gov.it/portale/aree-tematiche/fatturazione-elettronica). Smart Receipts streamlines this process by providing a secure interface to relay your sales data to the AdE through a local provider. > > Important distinctions for the *Documento Commerciale*: > > * It is not an invoice (*fattura*) - invoices require detailed buyer information and follow different tax rules. > * It does not replace transport documents (*documento di trasporto*). > * It is not a simple internal receipt - it serves an official fiscal function requiring AdE transmission. > * It must include VAT at the time of sale - deferred VAT payment is not permitted. > > The AdE portal provides functionality to create tickets, void them entirely, and process refunds at the item level. Invopop's Smart Receipts implementation supports all these operations, allowing you to manage your electronic tickets programmatically through our API or manually via the Console. > > > [!WARNING] > > > > Smart Receipts (AdE CF) is **not** a substitute for [SDI](/guides/it-sdi-sending). SDI, using the FatturaPA format, is the main channel for issuing electronic invoices in Italy. AdE CF should only be used when customer information is not available, like in online B2C scenarios. > > **Key features** > > * **Workflow automation:** This app provides automated workflows for issuing receipts, voiding receipts, and processing refunds through the AdE system. > * **Real-time transmission:** Receipts are transmitted to the AdE in real-time, ensuring compliance with Italian e-receipt regulations. > * **Legally compliant PDF receipts:** Receipts are generated with all mandatory fields and AdE document numbers, as required by Italian fiscal legislation. > * **Supplier registration:** Register suppliers with AdE credentials to enable receipt issuance on their behalf. > * **Item-level refunds:** Process refunds at the item level using corrective invoices. > * **GOBL integration:** Uses the open-source [GOBL](https://gobl.org) format with the `it-ticket-v1` addon for validation and compliance. > > Make sure to check out our [Supplier registration guide](/guides/it-ticket-supplier) for onboarding suppliers, and the [Issuing guide](/guides/it-ticket) for instructions on how to issue receipts and set up your workflows. > > ## FAQ > > Invoicing questions > > > [accordion] How do I configure my workspace for Italian invoicing? > > > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > > > [accordion] How do I issue a documento commerciale (scontrino)? > > > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > > > [accordion] Where do I find Italy-specific GOBL documentation? > > > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. > > > [accordion] How do I correct mistakes in an issued AdE CF invoice? > > > > You cannot modify an AdE CF invoice after issuing it. Instead you must: > > > > 1. Void the incorrect invoice using the "Void AdE CF Invoices" workflow > > 2. Issue a new invoice with the correct information > > > [accordion] Do I still need to add a series and code to the invoice? > > > > We recommend adding a series and code to the invoice so that you can keep track internally even though the AdE will generate a document number. > > > [accordion] Is AdE CF a substitute for SDI? > > > > AdE CF is **not** a substitute for [SDI](/guides/it-sdi-invoicing). SDI is the main channel for issuing electronic invoices in Italy; Invopop issues FatturaPA documents through it. AdE CF should only be used when customer information is not available, like in online B2C scenarios. > > > [accordion] What GOBL fields are required for Smart Receipts? > > > > Use the standard GOBL invoice with the simplified tag. No customer tax ID is required. The `it-ticket-v1` addon handles the AdE CF-specific fields. Each receipt gets a unique Lottery Code if the lottery functionality is enabled. > > > [accordion] A customer asked for an invoice after I issued their receipt. What do I do? > > > > Leave the receipt as it is and issue a regular SDI invoice for the sale through the [Italy app](/guides/it-sdi-invoicing). Reference the receipt on each line with an item attribute (`type` `N.DOC.COMM`, the receipt's `ade-ref` number in `text`, its progressive number in `amount` and its date in `date`), which the `it-sdi-v1` addon converts into the `AltriDatiGestionali` block the AdE expects. Invopop does not change the daily totals already transmitted, so remove the invoiced amount from your own *corrispettivi* records. See [Invoice requested after a receipt](/guides/it-ticket#invoice-requested-after-a-receipt). > > Registering supplier questions > > > [accordion] How do I onboard a new supplier in Italy? > > > > Provide the supplier's Partita IVA and Codice Fiscale (where different) in their party configuration. No certificate upload is needed — Invopop transmits to SDI over its own accredited channel. > > > [accordion] How are supplier credentials stored in Invopop for Italy? > > > > No supplier certificates are required. Invopop exchanges documents with SDI over its own accredited channel; only the Partita IVA and routing metadata are stored. > > > [accordion] How do I register a supplier with Smart Receipts? > > > > Create the supplier party with its Partita IVA and run the Smart Receipts Register Supplier workflow. The workflow returns a signed registration link in the silo entry's meta. Open the link (or share it with the supplier) and submit the supplier's AdE credentials. Once the form is accepted, the post-registration workflow runs and the supplier can start issuing receipts. See the [supplier registration guide](/guides/it-ticket-supplier) for the full steps. > > > [accordion] What credentials does Smart Receipts require to authenticate a supplier? > > > > The supplier's own Agenzia delle Entrate portal credentials: the password and PIN they use at ivaservizi.agenziaentrate.gov.it, together with their Partita IVA and *codice fiscale*. Only a representative of the supplier can generate these. They are submitted through the registration link and passed securely to our local partner, who uses them to transmit receipts to the AdE on the supplier's behalf. Invopop stores the *codice fiscale* on the party but never stores the password or PIN. > > > [accordion] How often do the supplier's AdE credentials need to be renewed? > > > > Every 90 days. The supplier must first renew the credentials on the AdE portal, then resubmit them through the same registration link (or via the API `PUT` to the link) so receipt issuance is not interrupted. If they aren't renewed in time, issuing fails with the fault code `invalid-credentials` until the supplier resubmits them. > > Receiving questions > > > [accordion] How do I import received invoices in Italy? > > > > Register Invopop's recipient code (`BDCS3JD`) with the tax authority and run the registration workflow on the company's party entry. Invopop automatically receives matching invoices and routes them through the configured import workflow. See the [receiving invoices guide](/guides/it-sdi-reception). > > > [accordion] How does Invopop convert received Italian invoices into GOBL? > > > > Inbound FatturaPA XMLs are parsed via [`gobl.fatturapa`](https://github.com/invopop/gobl.fatturapa). The original signed XML is preserved as a silo entry attachment alongside the GOBL representation. > > Reporting questions > > > [accordion] How often must I submit Smart Receipts reports? > > > > Per receipt, in real time — there is no periodic batch. Invopop transmits each receipt to AdE CF as it is issued. End-of-day totals are aggregated automatically by Agenzia delle Entrate from individual transmissions. > > > [accordion] What format does Smart Receipts expect for periodic reports? > > > > No periodic format — per-receipt JSON sent to AdE CF's REST endpoint. Daily/monthly aggregations are derived automatically by Agenzia delle Entrate. > > More answers in our [Italy FAQ](/faq/italy) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Send receipt to AdE > > > > 3 > > Issue GOBL invoices to the Italian AdE using their receipt (documento commerciale) format. > > > [card] Void receipt with AdE > > > > 3 > > Void a receipt previously sent to the Italian AdE. > > > [card] Register supplier with AdE > > > > 100/mo > > Register a GOBL party to issue receipts in the Italian AdE. > > > [card] Unregister supplier from AdE > > > > Revoke a GOBL party's ability to issue receipts in the Italian AdE. > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] Smart Receipts issue receipt workflow > > > > This workflow automates Italian documento commerciale processing and transmission to AdE. > > > > ```json Smart Receipts issue receipt workflow theme={"system"} > > { > > "name": "Smart Receipts issue receipt", > > "description": "Issue an Italian documento commerciale via AdE", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "0b0bdb00-25b5-11f0-864a-193f213df097", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "04427d60-25b5-11f0-864a-193f213df097", > > "name": "Send receipt to AdE", > > "provider": "ticket-it.send" > > }, > > { > > "id": "9e973e00-2b2d-11f0-984e-0542d5f28f0b", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Italian · A4", > > "config": { > > "logo_height": 40, > > "locale": "it", > > "date_format": "%Y-%m-%d", > > "layout": "A4" > > } > > }, > > { > > "id": "112326b0-25b5-11f0-864a-193f213df097", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "194a66a0-25b5-11f0-864a-193f213df097", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-ticket-send) > > > [accordion] Smart Receipts void receipt workflow > > > > This workflow voids receipts that were issued in error through the AdE system. > > > > ```json Smart Receipts void receipt workflow theme={"system"} > > { > > "name": "Smart Receipts void receipt", > > "description": "Void an Italian documento commerciale on AdE", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "02a62be0-2b2e-11f0-984e-0542d5f28f0b", > > "name": "Void receipt with AdE", > > "provider": "ticket-it.void" > > }, > > { > > "id": "1583e220-2b2e-11f0-984e-0542d5f28f0b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "25c98860-2b2e-11f0-984e-0542d5f28f0b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-ticket-void-receipt) > > > [accordion] Smart Receipts register supplier workflow > > > > This workflow registers a supplier with AdE credentials to enable receipt issuance. > > > > ```json Smart Receipts register supplier workflow theme={"system"} > > { > > "name": "Smart Receipts register supplier", > > "description": "Register a supplier with AdE", > > "schema": "org/party", > > "steps": [ > > { > > "id": "1a1be400-2b32-11f0-984e-0542d5f28f0b", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "de116bb0-25b4-11f0-864a-193f213df097", > > "name": "Register supplier with AdE", > > "provider": "ticket-it.register" > > }, > > { > > "id": "e0a1b380-25b4-11f0-864a-193f213df097", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > } > > ], > > "rescue": [ > > { > > "id": "1deb1470-2b32-11f0-984e-0542d5f28f0b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-ticket-register-supplier) > > > [accordion] Smart Receipts unregister supplier workflow > > > > This workflow revokes a supplier's receipt issuance and removes their stored registration details. > > > > ```json Smart Receipts unregister supplier workflow theme={"system"} > > { > > "name": "Smart Receipts unregister supplier", > > "description": "Unregister a supplier from AdE to stop issuing receipts", > > "schema": "org/party", > > "steps": [ > > { > > "id": "8c00e272-ded1-4600-8e86-24e0ffb8c0b2", > > "name": "Unregister supplier from AdE", > > "provider": "ticket-it.deregister", > > "summary": "Stop issuing receipts for this supplier" > > }, > > { > > "id": "c8a3aa22-4f06-48a8-9a81-f89b281de700", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "26ff28ea-3a4a-4c04-b415-4ed6d8bb8cad", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=it-ticket-unregister-supplier) > [tab] Documents > > > [accordion] B2C Invoice > > > > This example shows a simple B2C invoice from an Italian supplier (Documento Commerciale). Key points to note: > > > > * The minimal version in the first tab contains only the essential fields required to create the invoice > > * The [`it-ticket-v1`](https://docs.gobl.org/addons/it-ticket-v1) addon ensures validation using AdE CF v1 rules built into [GOBL](https://docs.gobl.org) > > * Extensions (`ext`) fields specify values that cannot be determined otherwise: > > * Items have an extension identifying them as goods or services > > * VAT exemptions require an Italian exemption code > > * The `prices_include` field indicates that item prices include VAT > > * The `payment.advances` entry records the total as paid by card. Without it, the receipt is reported to the AdE as fully uncollected (*corrispettivo non riscosso*) > > * When running `gobl build`, the system automatically calculates totals, line item sums, IVA breakdowns, and normalizes the document according to Smart Receipts requirements > > * The built version in the second tab shows the normalized document with all calculated fields including line indices, sums, and total amounts > > > > ```json Documento Commerciale theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["it-ticket-v1"], > > "series": "XXIT", > > "code": "001", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "type": "standard", > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Cleaning services", > > "price": "125.00", > > "ext": { > > "it-ticket-product": "services" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "ext": { > > "it-ticket-exempt": "N3" > > } > > } > > ] > > }, > > { > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "ext": { > > "it-ticket-product": "goods" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "key": "card", > > "description": "Card payment", > > "percent": "100%" > > } > > ] > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-ticket-v1" > > ], > > "type": "standard", > > "series": "XXIT", > > "code": "001", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Cleaning services", > > "price": "125.00", > > "ext": { > > "it-ticket-product": "services" > > } > > }, > > "sum": "125.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "it-ticket-exempt": "N3" > > } > > } > > ], > > "total": "125.00" > > }, > > { > > "i": 2, > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "ext": { > > "it-ticket-product": "goods" > > } > > }, > > "sum": "412.50", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "412.50" > > } > > ], > > "payment": { > > "advances": [ > > { > > "key": "card", > > "description": "Card payment", > > "percent": "100%", > > "amount": "537.50" > > } > > ] > > }, > > "totals": { > > "sum": "537.50", > > "tax_included": "74.39", > > "total": "463.11", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "it-ticket-exempt": "N3" > > }, > > "base": "125.00", > > "amount": "0.00" > > }, > > { > > "key": "standard", > > "base": "338.11", > > "percent": "22.0%", > > "amount": "74.39" > > } > > ], > > "amount": "74.39" > > } > > ], > > "sum": "74.39" > > }, > > "tax": "74.39", > > "total_with_tax": "537.50", > > "payable": "537.50", > > "advance": "537.50", > > "due": "0.00" > > } > > } > > ``` > > > [accordion] B2C Invoice Complete > > > > After the AdE (Agenzia delle Entrate) accepts the invoice, they add a reference to each line item. This reference, stored in the [`it-ticket-line-ref`](https://docs.gobl.org/addons/it-ticket-v1#ade-line-reference) extension, is essential for processing refunds. > > > > Notice: > > > > * This example shows a complete invoice with line references added by the AdE after acceptance > > * The minimal version contains the basic invoice structure before AdE processing > > * When running `gobl build`, the system calculates all totals and normalizes the document > > * The built version shows the complete document with AdE-assigned line references, calculated totals, and all automatically generated fields > > * These line references are required for creating corrective invoices and processing refunds > > * The complete invoice represents the final state after successful submission to and acceptance by the AdE > > > > ```json Documento Commerciale complete theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-ticket-v1" > > ], > > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > > "type": "standard", > > "series": "XXIT", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Cleaning services", > > "price": "125.00", > > "ext": { > > "it-ticket-product": "services" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "ext": { > > "it-ticket-exempt": "N3" > > } > > } > > ], > > "ext": { > > "it-ticket-line-ref": "557647" > > } > > }, > > { > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "ext": { > > "it-ticket-product": "goods" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ], > > "ext": { > > "it-ticket-line-ref": "557647" > > } > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-ticket-v1" > > ], > > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > > "type": "standard", > > "series": "XXIT", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Cleaning services", > > "price": "125.00", > > "ext": { > > "it-ticket-product": "services" > > } > > }, > > "sum": "125.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "it-ticket-exempt": "N3" > > } > > } > > ], > > "total": "125.00", > > "ext": { > > "it-ticket-line-ref": "557647" > > } > > }, > > { > > "i": 2, > > "quantity": "3", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "ext": { > > "it-ticket-product": "goods" > > } > > }, > > "sum": "412.50", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "412.50", > > "ext": { > > "it-ticket-line-ref": "557647" > > } > > } > > ], > > "totals": { > > "sum": "537.50", > > "tax_included": "74.39", > > "total": "463.11", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "it-ticket-exempt": "N3" > > }, > > "base": "125.00", > > "amount": "0.00" > > }, > > { > > "key": "standard", > > "base": "338.11", > > "percent": "22.0%", > > "amount": "74.39" > > } > > ], > > "amount": "74.39" > > } > > ], > > "sum": "74.39" > > }, > > "tax": "74.39", > > "total_with_tax": "537.50", > > "payable": "537.50" > > } > > } > > ``` > > > [accordion] Corrective Invoice > > > > When a customer requests a refund for specific items, you can process it by issuing a corrective invoice. Since this is still considered sending an invoice, you can use the same workflow as before. > > > > To create a corrective invoice, take the original [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) and: > > > > 1. Set the `type` field to `corrective` > > 2. Add a reference to the original invoice using the `preceding` object > > 3. Include the original document number stamp from the first invoice > > 4. Keep the lines and quantities you want to refund > > > > Notice: > > > > * The minimal version in the first tab contains only essential correction details including references to the original invoice > > * The corrective invoice preserves the [`it-ticket-line-ref`](https://docs.gobl.org/addons/it-ticket-v1#ade-line-reference) extension from the original invoice for proper tracking > > * When running `gobl build`, the system automatically calculates negative amounts for refunds, validates the corrective structure, and applies AdE rules > > * The built version in the second tab shows the normalized document with calculated negative totals, tax refunds, and all automatically generated fields > > * The corrective invoice references the original invoice using the `preceding` object and maintains line item references for accurate tracking > > * This example shows a corrective invoice that refunds two units of "Cleaning Products" from the original invoice > > > > ```json Corrective Documento Commerciale theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-ticket-v1" > > ], > > "type": "corrective", > > "series": "REFUND", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > > "type": "standard", > > "issue_date": "2025-05-20", > > "series": "XXIT", > > "code": "001", > > "stamps": [ > > { > > "prv": "ade-ref", > > "val": "ACUBE2025/0000-7816" > > } > > ] > > } > > ], > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > } > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "ext": { > > "it-ticket-product": "goods" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ], > > "ext": { > > "it-ticket-line-ref": "557647" > > } > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "it-ticket-v1" > > ], > > "type": "corrective", > > "series": "REFUND", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > > "type": "standard", > > "issue_date": "2025-05-20", > > "series": "XXIT", > > "code": "001", > > "stamps": [ > > { > > "prv": "ade-ref", > > "val": "ACUBE2025/0000-7816" > > } > > ] > > } > > ], > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Cleaning SRL", > > "tax_id": { > > "country": "IT", > > "code": "74230430451" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Cleaning products", > > "price": "137.50", > > "ext": { > > "it-ticket-product": "goods" > > } > > }, > > "sum": "275.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%" > > } > > ], > > "total": "275.00", > > "ext": { > > "it-ticket-line-ref": "557647" > > } > > } > > ], > > "totals": { > > "sum": "275.00", > > "tax_included": "49.59", > > "total": "225.41", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "225.41", > > "percent": "22.0%", > > "amount": "49.59" > > } > > ], > > "amount": "49.59" > > } > > ], > > "sum": "49.59" > > }, > > "tax": "49.59", > > "total_with_tax": "275.00", > > "payable": "275.00" > > } > > } > > ``` *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Smart Receipts Italy App → # Spain Source: https://docs.invopop.com/apps/spain Manage all Spanish tax-agency integrations. > [!NOTE] > > We're progressively moving towards a country-based approach to our apps, which is why you will find these steps under the "Spain" app. You can expect our current VERI\*FACTU functionality to be grouped under this app in the future. We will ensure no changes will be required for your existing workflows. > [tab] Description > > > [card] [TicketBAI Invoicing](/guides/es-ticketbai) > > > > View guide › > > > [card] [SII Invoicing](/guides/es-sii) > > > > View guide › > > > [card] [NO VERI\*FACTU Invoicing Guide](/guides/es-noverifactu) > > > > View guide › > > > [card] [Facturae](/guides/es-facturae) > > > > View guide › > > > [card] [TicketBAI Suppliers](/guides/es-ticketbai-supplier) > > > > View guide › > > > [card] [SII Suppliers](/guides/es-sii-supplier) > > > > View guide › > > > [card] [Tax ID Lookup](/guides/es-lookup) > > > > View guide › > > > [card] [NO VERI\*FACTU Suppliers](/guides/es-noverifactu-supplier) > > > > View guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B | > | Country | [Spain](/compliance/spain) | > > Invopop's **Spain app** provides integration with Spanish tax agencies, centralizing all compliance requirements for electronic invoicing and tax reporting in Spain. > > | Feature | TicketBAI | SII | > | - | - | - | > | **Scope** | Basque Country (Álava, Gipuzkoa, Bizkaia) | Rest of Spain (AEAT) | > | **Workflow automation** | Issue invoices and onboard suppliers | Report invoices and onboard suppliers | > | **Compliant documents** | XML generation and PDF with QR codes | Invoice reporting to AEAT via SII API ([with limitations](#sii-implementation-scope)) | > | **Supplier registration** | Registration wizard and agreement signing | Registration wizard and agreement signing | > | **White-label** | Issue on behalf of clients or directly | Report on behalf of clients or directly | > | **Tax ID verification** | Via AEAT Lookup | Via AEAT Lookup | > > Check out the guides below to get started: > > * [TicketBAI invoicing guide](/guides/es-ticketbai) · [TicketBAI supplier onboarding](/guides/es-ticketbai-supplier) > * [NO VERI\*FACTU invoicing guide](/guides/es-noverifactu) · [NO VERI\*FACTU supplier onboarding](/guides/es-noverifactu-supplier) > * [SII invoicing guide](/guides/es-sii) · [SII supplier onboarding](/guides/es-sii-supplier) > * [Spanish Tax ID Lookup guide](/guides/es-lookup) · [Facturae guide](/guides/es-facturae) > > ## FAQ > > Invoicing questions > > > [accordion] Should I send credit notes with positive or negative values? > > > > You should send the credit note with the same sign as the original invoice. > > > > In Spain, unlike other countries, credit notes must be submitted to Hacienda with inverse values. Invopop handles this conversion automatically before transforming the credit note into a "factura rectificativa" (corrective invoice). > > > > This means you only need to send the credit note following international standards (with same sign as the invoice). Invopop will automatically adapt it when submitting to Hacienda. > > > > For reference, see the [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) documentation with `type` set to `credit-note`. > > > [accordion] Where do I find Spain-specific GOBL documentation? > > > > See the [Spain tax regime in GOBL](https://docs.gobl.org/regimes/es) for tax categories, NIF rules, and Spanish-specific extensions. Subsystem-specific addons live alongside: [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1), [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1), [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3). > > > [accordion] What is the deadline for submitting invoices to SII? > > > > Issued invoices must be reported within 4 calendar days from the date of issuance — and always before the 16th day of the month following the one in which the VAT liability arises. Saturdays, Sundays, and national holidays are excluded from the count. Received invoices follow the same 4-day rule but starting from the date the invoice is recorded in the books. > > > [accordion] How do I correct an invoice already submitted to SII? > > > > SII corrections are submitted as modification records (`A1`) referencing the original entry, rather than by deleting and re-sending. In practice, after fixing the underlying [GOBL](https://docs.gobl.org) document, run the SII workflow again — Invopop detects that a previous submission exists for the same invoice and emits the modification record automatically. > > > [accordion] What's the workflow for issuing TicketBAI invoices? > > > > Build a GOBL invoice with the `es-tbai-v1` addon, send it through the TicketBAI Issue Invoice workflow. Invopop signs with its *sello de empresa* certificate, generates the chained XML, and submits to the relevant Diputación Foral (Bizkaia, Gipuzkoa, or Álava). > > > [accordion] Why don't TicketBAI QR codes work in the sandbox environment? > > > > This is expected. QR codes generated in the TicketBAI sandbox environment are intentionally non-functional to prevent sandbox invoices from being mistaken for real ones. > > > > To verify that a sandbox QR code is correct, upload the PDF or a QR image to the foral tax authority's test verification page: [pruebatuz.bizkaia.eus](https://pruebatuz.bizkaia.eus/B4PEQR0C/testQr.xhtml?idioma=es). > > > [accordion] What are the most common TicketBAI errors and how do I fix them? > > > > These are the errors we see most often when submitting invoices to the Diputaciones Forales: > > > > | Code | Error | Meaning and fix | > > | - | - | - | > > | `B4_2000001` / `B4_2000002` | XML fails XSD validation | Typically an invoice `code` longer than 20 characters. Some are `cvc-pattern` failures, meaning a field doesn't match the expected format. Fix the offending field and resend in a new document. | > > | `N3_0000002` | Supplier not identified, or legal name incorrect | The NIF or legal name isn't registered with that region's tax agency, often after a change of legal name. Update the supplier's details with the agency, then resend. | > > | `503` | Service unavailable | The agency's service is temporarily down. Retry later. | > > | `B4_2000016` | Credit note has no series | Credit notes need a non-empty `series`. Add one and resend. | > > | `008` | Signature verification error | Usually reported after the fact by the Diputación Foral, even though the invoice was accepted at submission. It's often caused on the tax agency's side. Issue a new invoice rather than trying to correct the original. | > > | `004` / `012` | Software registration verification error | The supplier's TicketBAI registration isn't complete, for example when the final onboarding confirmation hasn't been done. Finish the [supplier registration](/guides/es-ticketbai-supplier) before issuing invoices. | > > > > Because TicketBAI documents are chained, a rejected invoice can't be edited in place. Correct the problem in a new document and send it again. > > Registering supplier questions > > > [accordion] What are the most common reasons for failing supplier approval? > > > > We reject agreements when: > > > > * The uploaded document is not signed (they upload the unsigned template). > > * Users upload a handwritten signature without an ID. > > * The electronic signature does not belong to the legal representative (or to the *autónomo* themselves). > > * A company's agreement is signed with a personal certificate (e.g. the FNMT's *Certificado Electrónico de Ciudadano*) instead of a representative certificate (e.g. the FNMT's [*Certificado Electrónico de Representante*](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) for that company. > > * The agreement is missing a date or location. > > * The name is entered as an email address. > > > > The job will state the reason for rejection. > > > [accordion] What happens if a supplier does not complete their registration within the allotted wait time? > > > > A KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a reminder to the supplier through a webhook. > > > > The registration link will not expire and the entity will still be able to upload their registration documents which will be validated. Should you choose to run this workflow again using this supplier, the supplier will be accepted or rejected immediately because the required documentation has already been provided and validated. > > > [accordion] What happens if a supplier validation is rejected? > > > > If the uploaded agreement documents were rejected, a KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a notification to the supplier through a webhook within the **Error Handling** section. > > > > Afterwards, if you wish to re-register the supplier with new documents, you must: > > > > 1. Unregister the supplier using the **Unregister Supplier workflow**. > > 2. Re-run the Register supplier workflow. > > > > This will restart the entire registration process. When uploading documents, the previously submitted agreement will appear selected by default. Simply choose a new file and click `Continue` to override the old one. See the image below for reference: > > > > ![Overriding the previously submitted agreement](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-update-agreement.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a20bb8dd02df632d114e0519f4d34899) > > > > Overriding the previously submitted agreement > > > [accordion] What is the minimum information required to register a supplier? > > > > In order to complete the representation agreement you will need to provide the following information: > > > > **Company** > > > > 1. Name > > 2. NIF > > 3. Address > > > > **Legal representative** > > > > 1. Full name > > 2. Government ID type and number > > 3. Address > > > > ```json Spain supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "people": [ > > { > > "name": { > > "given": "Juan", > > "surname": "Pérez González" > > }, > > "identities": [ > > { > > "key": "national", > > "code": "123456789A" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Calle Ejemplo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ] > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > } > > ``` > > > > If the entity is a self-employed individual (*autónomo*), only the information requested in the **Legal representative** section is required. > > > > ```json Spain autónomo supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Juan Pérez González", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "autonomo@example.com" > > } > > ] > > } > > ``` > > > [accordion] What methods are available to sign the PDF supplier agreements? > > > > The supplier can add their electronic signature to the PDF document ([instructions](https://helpx.adobe.com/acrobat/using/signing-pdfs.html)), or sign with a handwritten signature (we recommend using [Adobe's online service](https://www.adobe.com/acrobat/online/sign-pdf.html)). > > > [accordion] What is the file size limit for the documents provided in the supplier registration flow? > > > > Individual documents are limited to a maximum size of 10MB. Uploads exceeding this size will result in an error. > > > [accordion] How do I register a supplier with SII? > > > > Run the SII Register Supplier workflow. The supplier signs the representation agreement and Invopop registers as their *colaborador social* with AEAT. Invopop's own certificate is then used for SII submissions on their behalf. > > > [accordion] What certificates does SII require to authenticate a supplier? > > > > SII web services accept any AEAT-recognized certificate. Invopop signs submissions with its *certificado de representante de persona jurídica*, acting under the colaborador social arrangement — suppliers do not upload their own certificates. > > > [accordion] How do I register a supplier with TicketBAI? > > > > Run the TicketBAI Register Supplier workflow. The legal representative signs the agreement (electronic or handwritten + ID); the supplier's foral territory determines which Diputación Foral endpoint Invopop will submit to. > > > [accordion] What certificates does TicketBAI require to authenticate a supplier? > > > > None — Invopop uses its own *certificado sello de empresa* (one of the three TicketBAI-permitted types). Suppliers do not need to register with the foral tax authority or upload any certificate. > > Reporting questions > > > [accordion] How often must I submit SII reports? > > > > Continuously, every issued or received invoice must be reported within 4 calendar days (excluding weekends and holidays), and always before the 16th of the following month. There is no daily cadence; submissions happen as documents are processed. > > > [accordion] What format does SII expect for periodic reports? > > > > SOAP web services with XML payloads — distinct schemas for issued (`SuministroFactEmitidas`), received (`SuministroFactRecibidas`), investment goods, and intra-EU operations. Each call carries up to 10,000 records signed with the issuer's (or representative's) certificate. > > More answers in our [Spain FAQ](/faq/spain) section > [tab] Limitations > > ### SII implementation scope > > > [!NOTE] > > > > Our SII implementation is under active development and focuses on core functionality for the most common use cases. If these limitations affect your business requirements, please contact us to discuss your specific needs and our implementation roadmap. > > The current SII integration provides a foundational implementation covering the primary VAT registry books required for most businesses operating in Spain. Understanding what is and isn't supported will help you determine if this solution meets your compliance needs. > > #### Supported registry books > > We currently support the two most commonly used VAT registry books: > > * ***Libro de Registro de Facturas Expedidas*** (Issued Invoices Registry) > * ***Libro de Registro de Facturas Recibidas*** (Received Invoices Registry) - [with specific limitations](#received-invoices-limitations) > > #### Unsupported registry books > > The following VAT registry books are **not supported** at the moment: > > * ***Libro de Registro de Bienes de Inversión*** (Investment Goods Registry) > * ***Libro de Registro de Determinadas Operaciones Intracomunitarias*** (Specific Intra-Community Operations Registry) > * Other registries such as cash payments (*pagos en metálico*), travel agency operations (*operaciones de agencias de viajes*), etc. > > #### Received invoices limitations > > When reporting to the **Libro de Registro de Facturas Recibidas**, the following key limitations apply: > > 1. **Deductible VAT matching:** The deductible VAT amount (*cuota deducible*) always equals the charged VAT amount (*cuota repercutida*). Invoices where the deductible VAT is lower than the charged VAT cannot be reported. > > 2. **Investment goods flag:** Invoices cannot be marked as investment goods (*bienes de inversión*) within the received invoices registry. > > 3. **Deduction period alignment:** The deduction period must match the settlement period. Deduction periods that differ from the liquidation periods cannot be specified. > > These represent the primary limitations in the current implementation. > > #### Regional endpoints > > Currently, only the **AEAT (Agencia Estatal de Administración Tributaria)** endpoint is supported for SII reporting. This covers businesses operating under the standard Spanish tax framework. > > Support for the **Canary Islands**, **Navarra** and the **Basque Country** regional endpoints is coming soon. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > AEAT Lookup actions > > > [card] Verify Spanish Tax ID > > > > 1 > > Verify that a Spanish tax ID (NIF/CIF) exists in the AEAT census. For companies, this confirms the tax ID is valid. For individuals, it also verifies that the name matches the tax ID on record. > > > [card] Verify & correct tax details > > > > 1 > > Verify the tax ID and normalize names using AEAT data. For companies, it sets the official name; for individuals, it applies the AEAT-returned format. > > Facturae actions > > > [card] Generate Facturae XML > > > > 1 > > Convert GOBL invoices into Spanish Facturae 3.2.2 XML files. > > TicketBAI actions > > > [card] Send invoice to TicketBAI > > > > 1 > > Convert GOBL Invoices into TicketBAI XML format and send to the tax agency in Spain. > > > [card] Generate TicketBAI XML > > > > 1 > > Generate a TicketBAI XML document from a GOBL invoice. > > > [card] Cancel invoice in TicketBAI > > > > Send a cancel request for a previously sent TicketBAI invoice. > > > [card] Register supplier with TicketBAI > > > > 100/mo > > Register TicketBAI parties before issuing invoices on their behalf. > > > [card] Wait for TicketBAI supplier agreement upload > > > > Block the job while waiting for the end-user to complete their registration steps. > > > [card] Wait for TicketBAI supplier approval > > > > Wait for approval that the uploaded documentation is correct. > > > [card] Unregister supplier with TicketBAI > > > > Disables a previously registered party from issuing invoices. > > SII actions > > > [card] Record Issued Invoice with SII > > > > 2 > > Record issued invoices in the SII system. > > > [card] Record Received Invoice with SII > > > > 2 > > Record received invoices in the SII system. > > > [card] Register supplier with SII > > > > 150/mo > > Register SII parties before reporting invoices on their behalf. > > > [card] Wait for SII supplier agreement upload > > > > Block the job while waiting for the end-user to complete their registration steps. > > > [card] Wait for SII supplier approval > > > > Wait for approval that the uploaded documentation is correct. > > > [card] Unregister supplier with SII > > > > Disables a previously registered party from reporting invoices. > > NO VERI\*FACTU actions > > > [card] Generate invoice for NO VERI\*FACTU > > > > 1 > > Generate and digitally sign an invoicing record XML from a GOBL invoice. > > > [card] Generate cancellation for NO VERI\*FACTU > > > > 1 > > Generate and digitally sign a cancellation record for a previously recorded invoice. > > > [card] Generate event for NO VERI\*FACTU > > > > 1 > > Generate and digitally sign an event record XML from a GOBL status. > > > [card] Record for NO VERI\*FACTU > > > > 1 > > Persist a signed record in the database for regulatory compliance. > > > [card] Build status for NO VERI\*FACTU > > > > 1 > > Build a GOBL status event document and upload it as a silo entry. > > > [card] Register supplier with NO VERI\*FACTU > > > > 100/mo > > Register a party for NO VERI\*FACTU mode. > > > [card] Unregister supplier from NO VERI\*FACTU > > > > Remove a party's NO VERI\*FACTU registration. > [tab] Workflows > > TicketBAI invoice workflows > > > [accordion] TicketBAI issue invoice > > > > ```json TicketBAI issue invoice workflow theme={"system"} > > { > > "name": "TicketBAI issue invoice", > > "description": "Issue a TicketBAI invoice and generate PDF with QR", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "dd319d60-8bc1-11ef-96af-b55bf69bb0b8", > > "name": "Add sequential code", > > "config": { > > "name": "TicketBAI Invoice", > > "start": 1, > > "prefix": "F", > > "padding": 6 > > }, > > "summary": "Dynamic · TicketBAI · F000001", > > "provider": "sequence.enumerate" > > }, > > { > > "id": "ba77d5b0-7b3a-11ef-bffc-d9a10ebf9f89", > > "name": "Set state", > > "config": { > > "state": "processing" > > }, > > "summary": "Set state to `processing`{.state .processing}", > > "provider": "silo.state" > > }, > > { > > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "fc618ea0-a757-11ef-8377-c15ac3014ffb", > > "name": "Generate TicketBAI XML", > > "provider": "gov-es.ticketbai.generate" > > }, > > { > > "id": "0448df60-a758-11ef-8377-c15ac3014ffb", > > "name": "Send invoice to TicketBAI", > > "provider": "gov-es.ticketbai.send" > > }, > > { > > "id": "c61adaa0-7b55-11ef-bffc-d9a10ebf9f89", > > "name": "Generate PDF", > > "config": { > > "locale": "es", > > "date_format": "%Y-%m-%d", > > "logo_height": 40 > > }, > > "summary": "Spanish · A4", > > "provider": "pdf" > > }, > > { > > "id": "d8693d70-7b3a-11ef-bffc-d9a10ebf9f89", > > "name": "Set state", > > "config": { > > "state": "sent" > > }, > > "summary": "Set state to `sent`{.state .sent}", > > "provider": "silo.state" > > } > > ], > > "rescue": [ > > { > > "id": "dd889490-7b3a-11ef-bffc-d9a10ebf9f89", > > "name": "Set state", > > "config": { > > "state": "error" > > }, > > "summary": "Set state to `error`{.state .error}", > > "provider": "silo.state" > > } > > ] > > } > > ``` > > > [accordion] TicketBAI cancel invoice > > > > ```json TicketBAI cancel invoice workflow theme={"system"} > > { > > "name": "TicketBAI cancel invoice", > > "description": "Cancel an invoice via TicketBAI", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "2f897e30-3c9c-11f0-8690-a921c0418914", > > "name": "Cancel invoice in TicketBAI", > > "provider": "gov-es.ticketbai.cancel" > > }, > > { > > "id": "334ffc10-3c9c-11f0-8690-a921c0418914", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "384cfe20-3c9c-11f0-8690-a921c0418914", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > TicketBAI party workflows > > > [accordion] TicketBAI register party > > > > ```json TicketBAI register supplier workflow theme={"system"} > > { > > "name": "TicketBAI register supplier", > > "description": "Register a supplier with TicketBAI", > > "schema": "org/party", > > "steps": [ > > { > > "id": "554c7040-66d7-11f0-a392-dfb6c99d6698", > > "name": "Register supplier with TicketBAI", > > "provider": "gov-es.ticketbai.register" > > }, > > { > > "id": "62148880-66d7-11f0-a392-dfb6c99d6698", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "5b924600-66d7-11f0-a392-dfb6c99d6698", > > "name": "Wait for TicketBAI supplier agreement upload", > > "provider": "gov-es.ticketbai.wait.upload" > > }, > > { > > "id": "6bec1080-66d7-11f0-a392-dfb6c99d6698", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > }, > > { > > "id": "670d1dc0-66d7-11f0-a392-dfb6c99d6698", > > "name": "Wait for TicketBAI supplier approval", > > "provider": "gov-es.ticketbai.wait.approval" > > } > > ], > > "rescue": [ > > { > > "id": "76c13260-66d7-11f0-a392-dfb6c99d6698", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] TicketBAI unregister party > > > > ```json TicketBAI unregister supplier workflow theme={"system"} > > { > > "name": "TicketBAI unregister supplier", > > "description": "Unregister a supplier from TicketBAI", > > "schema": "org/party", > > "steps": [ > > { > > "id": "8a613610-67ba-11f0-bcaf-170efff782a9", > > "name": "Unregister supplier from TicketBAI", > > "provider": "gov-es.ticketbai.unregister" > > }, > > { > > "id": "96a6b0d0-67ba-11f0-bcaf-170efff782a9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e8d2a6b0-67bb-11f0-bcaf-170efff782a9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Facturae workflows > > > [accordion] Facturae generate invoice > > > > ```json Facturae generate invoice workflow theme={"system"} > > { > > "name": "Facturae generate invoice", > > "description": "Generate a Facturae XML invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "dc2d4780-0be4-11f1-99f1-2d47ed7bc202", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · Facturae · 000001", > > "config": { > > "name": "Facturae", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "e2d8e3f0-0be4-11f1-99f1-2d47ed7bc202", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "ef9897c0-0be4-11f1-99f1-2d47ed7bc202", > > "name": "Generate Facturae XML", > > "provider": "gov-es.facturae.generate", > > "summary": "Generate Facturae", > > "config": { > > "add_timestamp": false > > } > > } > > ], > > "rescue": [ > > { > > "id": "d64537b0-8f42-11f1-a600-732c445d0f9d", > > "name": "Set State", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > SII invoice workflows > > > [accordion] SII issue invoice > > > > ```json SII issue invoice workflow theme={"system"} > > { > > "name": "SII issue invoice", > > "description": "Record an issued invoice with SII and generate PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "59f4dee0-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "ec41cce0-0fc3-11f0-8a81-7911b3ecee3c", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · SII · 000001", > > "config": { > > "name": "SII", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "61661540-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Record issued invoice in SII", > > "provider": "gov-es.sii.record.issued" > > }, > > { > > "id": "65312700-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "es", > > "logo_height": 60 > > } > > }, > > { > > "id": "6abb4de0-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "798b1d00-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] SII record received invoice > > > > ```json SII record received invoice workflow theme={"system"} > > { > > "name": "SII record received invoice", > > "description": "Record a received invoice with SII", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "59f4dee0-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "ec41cce0-0fc3-11f0-8a81-7911b3ecee3c", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · SII · 000001", > > "config": { > > "name": "SII", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "61661540-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Record received invoice in SII", > > "provider": "gov-es.sii.record.received" > > }, > > { > > "id": "6abb4de0-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "798b1d00-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > SII party workflows > > > [accordion] SII register party > > > > ```json SII register supplier workflow theme={"system"} > > { > > "name": "SII register supplier", > > "description": "Register a supplier with SII", > > "schema": "org/party", > > "steps": [ > > { > > "id": "52f5d190-831c-11f0-9ba3-7d4deb7b9d0e", > > "name": "Register supplier with SII", > > "provider": "gov-es.sii.register" > > }, > > { > > "id": "5bfc9c10-831c-11f0-9ba3-7d4deb7b9d0e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "627c94a0-831c-11f0-9ba3-7d4deb7b9d0e", > > "name": "Wait for SII supplier agreement upload", > > "provider": "gov-es.sii.wait.upload" > > }, > > { > > "id": "6f84ea30-831c-11f0-9ba3-7d4deb7b9d0e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > }, > > { > > "id": "78dabf10-831c-11f0-9ba3-7d4deb7b9d0e", > > "name": "Wait for SII supplier approval", > > "provider": "gov-es.sii.wait.approval" > > } > > ], > > "rescue": [ > > { > > "id": "846415c0-831c-11f0-9ba3-7d4deb7b9d0e", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `rejected`{.state .rejected}", > > "config": { > > "state": "rejected" > > } > > }, > > { > > "id": "d0e996c0-d9db-11f0-9b9a-5143ba8c831d", > > "name": "Unregister supplier from SII", > > "provider": "gov-es.sii.unregister" > > } > > ] > > } > > ``` > > > [accordion] SII unregister party > > > > ```json SII unregister supplier workflow theme={"system"} > > { > > "name": "SII unregister supplier", > > "description": "Unregister a supplier from SII", > > "schema": "org/party", > > "steps": [ > > { > > "id": "8a613610-67ba-11f0-bcaf-170efff782a9", > > "name": "Unregister supplier from SII", > > "provider": "gov-es.sii.unregister" > > }, > > { > > "id": "96a6b0d0-67ba-11f0-bcaf-170efff782a9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e8d2a6b0-67bb-11f0-bcaf-170efff782a9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > NO VERI\*FACTU invoice workflows > > > [accordion] NO VERI\*FACTU issue invoice > > > > ```json NO VERI*FACTU issue invoice workflow theme={"system"} > > { > > "name": "NO VERI*FACTU issue invoice", > > "description": "Issue an invoice via NO VERI*FACTU and generate PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "a1b2c3d0-0001-11f1-a000-000000000001", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > }, > > "next": [] > > }, > > { > > "id": "a1b2c3d0-0001-11f1-a000-000000000002", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · NO VERI*FACTU · 000001", > > "config": { > > "name": "NoVerifactu", > > "padding": 6, > > "start": 1 > > }, > > "next": [] > > }, > > { > > "id": "a1b2c3d0-0001-11f1-a000-000000000003", > > "name": "Sign envelope", > > "provider": "silo.close", > > "next": [] > > }, > > { > > "id": "5bb35ae0-3ca4-11f1-90b7-0d81b4010093", > > "name": "Generate invoice for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.generate.invoice", > > "next": [] > > }, > > { > > "id": "64c2d7f0-3ca4-11f1-90b7-0d81b4010093", > > "name": "Record for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.record", > > "next": [] > > }, > > { > > "id": "a1b2c3d0-0001-11f1-a000-000000000006", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "es", > > "logo_height": 60 > > }, > > "next": [] > > }, > > { > > "id": "a1b2c3d0-0001-11f1-a000-000000000007", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > }, > > "next": [] > > } > > ], > > "rescue": [ > > { > > "id": "a1b2c3d0-0001-11f1-a000-000000000008", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > }, > > "next": [] > > } > > ] > > } > > ``` > > > [accordion] NO VERI\*FACTU cancel invoice > > > > ```json NO VERI*FACTU cancel invoice workflow theme={"system"} > > { > > "name": "NO VERI*FACTU cancel invoice", > > "description": "Cancel an invoice via NO VERI*FACTU", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "b2c3d4e0-0002-11f1-a000-000000000005", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "9f500280-3ca4-11f1-90b7-0d81b4010093", > > "name": "Generate cancellation for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.generate.cancel" > > }, > > { > > "id": "a6eeb180-3ca4-11f1-90b7-0d81b4010093", > > "name": "Record for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.record" > > }, > > { > > "id": "b2c3d4e0-0002-11f1-a000-000000000003", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "b2c3d4e0-0002-11f1-a000-000000000004", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > NO VERI\*FACTU party workflows > > > [accordion] NO VERI\*FACTU register supplier > > > > ```json NO VERI*FACTU register supplier workflow theme={"system"} > > { > > "name": "NO VERI*FACTU register supplier", > > "description": "Register a supplier with NO VERI*FACTU, generate the start-of-mode event, and subscribe to summary events", > > "schema": "org/party", > > "steps": [ > > { > > "id": "c21b4130-3a65-11f1-a475-db4c42dd4e99", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > }, > > "next": [] > > }, > > { > > "id": "78e845e0-3ca3-11f1-90b7-0d81b4010093", > > "name": "Register supplier with NO VERI*FACTU", > > "provider": "gov-es.noverifactu.register", > > "next": [] > > }, > > { > > "id": "8857fe80-3ca3-11f1-90b7-0d81b4010093", > > "name": "Build status for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.build.status", > > "next": [], > > "summary": "Build status: 01 - Start of NO VERI*FACTU mode", > > "config": { > > "event_type": "01" > > } > > }, > > { > > "id": "d16d34a0-3a91-11f1-a472-21be9722e465", > > "name": "Create a job", > > "provider": "transform.job.create", > > "summary": "Send to NO VERI*FACTU process event (bill/status)", > > "config": { > > "silo_entry_meta_key": "", > > "workflow_id": "" > > }, > > "next": [] > > }, > > { > > "id": "03cb3000-3a92-11f1-a472-21be9722e465", > > "name": "Subscribe to periodic execution", > > "provider": "cron.subscribe", > > "summary": "Every 6 hours", > > "config": { > > "workflow_id": "", > > "interval": "hourly", > > "factor": 6 > > }, > > "next": [] > > }, > > { > > "id": "c3d4e5f0-0003-11f1-a000-000000000002", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > }, > > "next": [] > > } > > ], > > "rescue": [ > > { > > "id": "c3d4e5f0-0003-11f1-a000-000000000005", > > "name": "Unregister supplier from NO VERI*FACTU", > > "provider": "gov-es.noverifactu.unregister", > > "next": [] > > }, > > { > > "id": "c3d4e5f0-0003-11f1-a000-000000000006", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `rejected`{.state .rejected}", > > "config": { > > "state": "rejected" > > }, > > "next": [] > > } > > ] > > } > > ``` > > > [accordion] NO VERI\*FACTU unregister supplier > > > > ```json NO VERI*FACTU unregister supplier workflow theme={"system"} > > { > > "name": "NO VERI*FACTU unregister supplier", > > "description": "Unregister a supplier from NO VERI*FACTU and generate the end-of-mode event", > > "schema": "org/party", > > "steps": [ > > { > > "id": "d4e5f6a0-0004-11f1-a000-000000000007", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "3e4bd770-3a92-11f1-a472-21be9722e465", > > "name": "Unsubscribe from periodic execution", > > "provider": "cron.unsubscribe" > > }, > > { > > "id": "f46dfa20-3ca3-11f1-90b7-0d81b4010093", > > "name": "Build status for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.build.status", > > "summary": "Build status: 02 - End of NO VERI*FACTU mode", > > "config": { > > "event_type": "02" > > } > > }, > > { > > "id": "2fbe2590-3caf-11f1-ae77-65667068cb42", > > "name": "Create a job", > > "provider": "transform.job.create", > > "summary": "Send to NO VERI*FACTU process event (bill/status)", > > "config": { > > "silo_entry_meta_key": "", > > "workflow_id": "" > > } > > }, > > { > > "id": "9a9235e0-3cb0-11f1-ae77-65667068cb42", > > "name": "Unregister supplier from NO VERI*FACTU", > > "provider": "gov-es.noverifactu.unregister" > > }, > > { > > "id": "d4e5f6a0-0004-11f1-a000-000000000004", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "d4e5f6a0-0004-11f1-a000-000000000006", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > NO VERI\*FACTU event workflows > > > [accordion] NO VERI\*FACTU process event > > > > ```json NO VERI*FACTU process event workflow theme={"system"} > > { > > "name": "NO VERI*FACTU process event", > > "description": "Generate and store a NO VERI*FACTU event record", > > "schema": "bill/status", > > "steps": [ > > { > > "id": "e5f6a7b0-0005-11f1-a000-000000000004", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "bbf19740-3a6b-11f1-9a44-6748aa5d4a91", > > "name": "Modify silo entry", > > "provider": "silo.modify", > > "summary": "Default series to \"NVF\"", > > "config": { > > "jq": ".series //= \"NVF\"", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "a1b2c3d0-0001-11f1-a000-000000000002", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · NO VERI*FACTU · 000001", > > "config": { > > "name": "NoVerifactu", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "e5f6a7b0-0005-11f1-a000-000000000006", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "f8df5470-3c97-11f1-8c73-6dd226144d30", > > "name": "Generate event for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.generate.event" > > }, > > { > > "id": "050b05a0-3c98-11f1-8c73-6dd226144d30", > > "name": "Record for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.record" > > }, > > { > > "id": "e5f6a7b0-0005-11f1-a000-000000000005", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e5f6a7b0-0005-11f1-a000-000000000003", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] NO VERI\*FACTU summary event > > > > ```json NO VERI*FACTU summary event workflow theme={"system"} > > { > > "name": "NO VERI*FACTU summary event", > > "description": "Build a NO VERI*FACTU summary event (cron-driven)", > > "schema": "org/party", > > "steps": [ > > { > > "id": "f6a7b8c0-0006-11f1-a000-000000000001", > > "name": "Build status for NO VERI*FACTU", > > "provider": "gov-es.noverifactu.build.status", > > "summary": "Build status: 10 - Summary event", > > "config": { > > "event_type": "10" > > } > > }, > > { > > "id": "4f527c60-3a95-11f1-a472-21be9722e465", > > "name": "Create a job", > > "provider": "transform.job.create", > > "summary": "Send to NO VERI*FACTU process event (bill/status)", > > "config": { > > "silo_entry_meta_key": "", > > "workflow_id": "" > > } > > } > > ], > > "rescue": [ > > { > > "id": "f6a7b8c0-0006-11f1-a000-000000000003", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > > [accordion] Supplier > > > > A Spanish company with its NIF and the legal representative required for supplier registration. > > > > ```json Spain supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "people": [ > > { > > "name": { > > "given": "Juan", > > "surname": "Pérez González" > > }, > > "identities": [ > > { > > "key": "national", > > "code": "123456789A" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Calle Ejemplo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ] > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > } > > ``` > > > [accordion] Customer > > > > A Spanish business customer identified by NIF with a full address. > > > > ```json Spain customer example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Cliente Ejemplo SA", > > "tax_id": { > > "country": "ES", > > "code": "A58818501" > > }, > > "addresses": [ > > { > > "num": "12", > > "street": "Gran Vía", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28013", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "compras@clienteejemplo.es" > > } > > ] > > } > > ``` > > TicketBAI example documents > > > [accordion] B2B Invoice > > > > In this example, we're issuing a standard B2B invoice from a Basque supplier to a customer in Madrid. > > > > Scenario details: > > > > * The supplier is based out of Bilbao in Bizkaia, using the sandbox data provided by TicketBAI. > > * The customer is in Madrid. > > * They're selling software development services with standard VAT. > > * The series for the invoice is "F1". > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the invoice, > > * we're applying the [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1) addon to ensure GOBL's TicketBAI validation checks are applied, > > * there is no `currency` nor `issue_date`, as these will be assigned automatically, > > * there is no invoice `code` as this will be assigned by the workflow, > > * TicketBAI **requires** a general note, so we've added one at the bottom, > > * when running `gobl build`, the system automatically calculates totals, assigns the `$regime` to `ES`, sets the [`es-tbai-region`](https://docs.gobl.org/addons/es-tbai-v1#region-code) extension to `BI` (Bizkaia) based on the supplier's address, applies the standard VAT rate (21%), and assigns the [`es-tbai-product`](https://docs.gobl.org/addons/es-tbai-v1#ticketbai-product-key) extension to `services` based on the item unit, > > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json TicketBAI B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["es-tbai-v1"], > > "series": "F1", > > "supplier": { > > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > > "tax_id": { > > "country": "ES", > > "code": "A99805194" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "San Frantzisko", > > "locality": "Bilbo", > > "region": "Bizkaia", > > "code": "48003", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Receive One S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "Invoice for development services" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-tbai-v1" > > ], > > "type": "standard", > > "series": "F1", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-tbai-region": "BI" > > } > > }, > > "supplier": { > > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > > "tax_id": { > > "country": "ES", > > "code": "A99805194" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "San Frantzisko", > > "locality": "Bilbo", > > "region": "Bizkaia", > > "code": "48003", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Receive One S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-tbai-product": "services", > > "es-tbai-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-tbai-product": "services", > > "es-tbai-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Invoice for development services" > > } > > ] > > } > > ``` > > > [accordion] B2C Simplified Invoice > > > > In this example, we're issuing a simplified B2C invoice from a Basque supplier for an in-person sale. > > > > Scenario details: > > > > * The supplier is based out of Bilbao in Bizkaia, using the sandbox data provided by TicketBAI. > > * There is no customer. > > * Physical goods are being sold with a standard VAT rate. > > * The series for the invoice is "FS1". > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the simplified invoice, > > * there is no `customer` object, > > * the `tax` object contains the `prices_include` value set to `VAT`, which will ensure all totals will be calculated assuming that prices include VAT, > > * the line item includes a [`es-tbai-product`](https://docs.gobl.org/addons/es-tbai-v1#ticketbai-product-key) extension with the value `goods`, > > * TicketBAI **requires** a general note, in this case we've added a generic message, > > * when running `gobl build`, the system automatically calculates the tax-included totals (splitting the €25.10 price into €20.74 base + €4.36 VAT), assigns the `$regime` to `ES`, sets the [`es-tbai-region`](https://docs.gobl.org/addons/es-tbai-v1#region-code) extension to `BI` (Bizkaia), applies the standard VAT rate (21%), and normalizes all fields, > > * the built version in the second tab shows the normalized document with calculated totals including tax-included calculations, line item sums, tax breakdowns, and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json TicketBAI B2C Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["es-tbai-v1"], > > "$tags": ["simplified"], > > "series": "FS1", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > > "tax_id": { > > "country": "ES", > > "code": "A99805194" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "San Frantzisko", > > "locality": "Bilbo", > > "region": "Bizkaia", > > "code": "48003", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Advanced screwdriver set", > > "price": "25.10", > > "ext": { > > "es-tbai-product": "goods" > > } > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "In person sale" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-tbai-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "FS1", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "es-tbai-region": "BI", > > "es-tbai-simplified": "S" > > } > > }, > > "supplier": { > > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > > "tax_id": { > > "country": "ES", > > "code": "A99805194" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "San Frantzisko", > > "locality": "Bilbo", > > "region": "Bizkaia", > > "code": "48003", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Advanced screwdriver set", > > "price": "25.10", > > "ext": { > > "es-tbai-product": "goods" > > } > > }, > > "sum": "25.10", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-tbai-product": "services", > > "es-tbai-regime": "01" > > } > > } > > ], > > "total": "25.10" > > } > > ], > > "totals": { > > "sum": "25.10", > > "tax_included": "4.36", > > "total": "20.74", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-tbai-product": "services", > > "es-tbai-regime": "01" > > }, > > "base": "20.74", > > "percent": "21.0%", > > "amount": "4.36" > > } > > ], > > "amount": "4.36" > > } > > ], > > "sum": "4.36" > > }, > > "tax": "4.36", > > "total_with_tax": "25.10", > > "payable": "25.10" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "In person sale" > > } > > ] > > } > > ``` > > > [accordion] Credit Note (Factura Rectificativa) > > > > In this example, we're issuing a rectifying invoice that credits part of a previously issued TicketBAI invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, which produces a factura rectificativa "por diferencias" — the lines describe the amounts being credited rather than restating the full corrected invoice, > > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, > > * the preceding entry carries the [`es-tbai-correction`](https://docs.gobl.org/addons/es-tbai-v1#correction-code) extension set to `R1` (correction due to legal grounds, art. 80.1, 80.2, and 80.6 of the Spanish VAT law); codes `R2`–`R4` cover other correction causes, > > * TicketBAI **requires** a general note, so we've added one at the bottom, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json TicketBAI Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": ["es-tbai-v1"], > > "type": "credit-note", > > "series": "R1", > > "preceding": [ > > { > > "type": "standard", > > "series": "F1", > > "code": "0042", > > "issue_date": "2025-03-10", > > "ext": { > > "es-tbai-correction": "R1" > > } > > } > > ], > > "supplier": { > > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > > "tax_id": { > > "country": "ES", > > "code": "A99805194" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "San Frantzisko", > > "locality": "Bilbo", > > "region": "Bizkaia", > > "code": "48003", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Receive One S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "Credit note for services not delivered" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-tbai-v1" > > ], > > "type": "credit-note", > > "series": "R1", > > "issue_date": "2026-07-21", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-03-10", > > "series": "F1", > > "code": "0042", > > "ext": { > > "es-tbai-correction": "R1" > > } > > } > > ], > > "tax": { > > "ext": { > > "es-tbai-region": "BI" > > } > > }, > > "supplier": { > > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > > "tax_id": { > > "country": "ES", > > "code": "A99805194" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "San Frantzisko", > > "locality": "Bilbo", > > "region": "Bizkaia", > > "code": "48003", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Receive One S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "5", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "450.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-tbai-product": "services", > > "es-tbai-regime": "01" > > } > > } > > ], > > "total": "450.00" > > } > > ], > > "totals": { > > "sum": "450.00", > > "total": "450.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-tbai-product": "services", > > "es-tbai-regime": "01" > > }, > > "base": "450.00", > > "percent": "21.0%", > > "amount": "94.50" > > } > > ], > > "amount": "94.50" > > } > > ], > > "sum": "94.50" > > }, > > "tax": "94.50", > > "total_with_tax": "544.50", > > "payable": "544.50" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Credit note for services not delivered" > > } > > ] > > } > > ``` > > Facturae example documents > > > [accordion] Facturae B2G Invoice > > > > A standard Facturae invoice from a Spanish supplier to a Spanish public sector customer. > > > > Notice: > > > > * the [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3) addon is required, > > * the `es-facturae-doc-type` and `es-facturae-invoice-class` tax extensions are set automatically by the addon when the document is built or uploaded — the built version shows the derived values, > > * both supplier and customer must have full address details and valid Spanish tax IDs. > > > > ```json Facturae B2G Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "code": "TEST01001F", > > "issue_date": "2021-12-08", > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2021-12-30", > > "percent": "100%" > > } > > ], > > "notes": "Some kind of payment term note" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "ES25 0188 2570 7185 4470 4761", > > "name": "Bankrandom" > > } > > ] > > } > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "type": "standard", > > "code": "TEST01001F", > > "issue_date": "2021-12-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-facturae-doc-type": "FC", > > "es-facturae-invoice-class": "OO" > > } > > }, > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "sum": "4000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "4000.00" > > }, > > { > > "i": 2, > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "sum": "202.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "202.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2021-12-30", > > "amount": "5084.42", > > "percent": "100%" > > } > > ], > > "notes": "Some kind of payment term note" > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "ES25 0188 2570 7185 4470 4761", > > "name": "Bankrandom" > > } > > ] > > } > > }, > > "totals": { > > "sum": "4202.00", > > "total": "4202.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "4202.00", > > "percent": "21.0%", > > "amount": "882.42" > > } > > ], > > "amount": "882.42" > > } > > ], > > "sum": "882.42" > > }, > > "tax": "882.42", > > "total_with_tax": "5084.42", > > "payable": "5084.42" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > > [accordion] Facturae Credit Note > > > > A corrective invoice (credit note) referencing a previous Facturae invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, > > * a `preceding` entry references the original invoice with the `es-facturae-correction` code, > > * the addon derives the `es-facturae-invoice-class` extension as `OR` (rectificativa) during build — you don't need to set it by hand. > > > > ```json Facturae Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "type": "credit-note", > > "code": "TEST01001R", > > "issue_date": "2021-12-08", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2021-12-08", > > "code": "TEST01001F", > > "ext": { > > "es-facturae-correction": "01" > > } > > } > > ], > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "type": "credit-note", > > "code": "TEST01001R", > > "issue_date": "2021-12-08", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2021-12-08", > > "code": "TEST01001F", > > "ext": { > > "es-facturae-correction": "01" > > } > > } > > ], > > "tax": { > > "ext": { > > "es-facturae-doc-type": "FC", > > "es-facturae-invoice-class": "OR" > > } > > }, > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Moniward Sl", > > "tax_id": { > > "country": "ES", > > "code": "B77436020" > > }, > > "addresses": [ > > { > > "num": "35", > > "street": "Plaza Horno", > > "locality": "Nombela", > > "region": "Toledo", > > "code": "45083", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "bfn25xf3p@lycos.co.uk" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Operations and development - day rate", > > "price": "200.00" > > }, > > "sum": "4000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "4000.00" > > }, > > { > > "i": 2, > > "quantity": "2", > > "item": { > > "name": "Additional Overtime", > > "price": "101.00" > > }, > > "sum": "202.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "202.00" > > } > > ], > > "totals": { > > "sum": "4202.00", > > "total": "4202.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "4202.00", > > "percent": "21.0%", > > "amount": "882.42" > > } > > ], > > "amount": "882.42" > > } > > ], > > "sum": "882.42" > > }, > > "tax": "882.42", > > "total_with_tax": "5084.42", > > "payable": "5084.42" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Thank you for your custom!" > > } > > ] > > } > > ``` > > > [accordion] Facturae FACe Invoice (with Administrative Centers) > > > > An invoice addressed to a public administration via the FACe platform, including the three required DIR3 administrative centers. > > > > Notice: > > > > * the customer includes an identity with `scope: "tax"` for the **Oficina Contable** (DIR3 code `01`), > > * `delivery.receiver` includes the **Órgano Gestor** identity (DIR3 code `02`), > > * `ordering.buyer` includes the **Unidad Tramitadora** identity (DIR3 code `03`), > > * each public body publishes their DIR3 codes — look them up in the [DIR3 directory](https://administracionelectronica.gob.es/ctt/dir3). > > > > ```json Facturae FACe Invoice (B2G with Admin Centers) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "code": "TEST01002F", > > "issue_date": "2021-12-08", > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Ayuntamiento de Madrid", > > "tax_id": { > > "country": "ES", > > "code": "P2807900B" > > }, > > "identities": [ > > { > > "scope": "tax", > > "code": "L01280796" > > } > > ], > > "addresses": [ > > { > > "num": "4", > > "street": "Plaza de la Villa", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28005", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "facturacion@madrid.es" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Services rendered", > > "price": "200.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "ordering": { > > "buyer": { > > "name": "Departamento de Compras", > > "identities": [ > > { > > "code": "LA0007408" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Gran Vía", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28013", > > "country": "ES" > > } > > ] > > } > > }, > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2021-12-30", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "ES25 0188 2570 7185 4470 4761", > > "name": "Bankrandom" > > } > > ] > > } > > }, > > "delivery": { > > "receiver": { > > "name": "Concejalía de Hacienda", > > "identities": [ > > { > > "code": "LA0007407" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Calle Alcalá", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28014", > > "country": "ES" > > } > > ] > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-facturae-v3" > > ], > > "type": "standard", > > "code": "TEST01002F", > > "issue_date": "2021-12-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-facturae-doc-type": "FC", > > "es-facturae-invoice-class": "OO" > > } > > }, > > "supplier": { > > "name": "Hypeprop Sl", > > "alias": "Hypeprop", > > "tax_id": { > > "country": "ES", > > "code": "B23103039" > > }, > > "people": [ > > { > > "name": { > > "given": "Paloma", > > "surname": "Araujo" > > } > > } > > ], > > "addresses": [ > > { > > "num": "74", > > "street": "Campo Real", > > "locality": "Torrejón De La Calzada", > > "region": "Madrid", > > "code": "28023", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "rxazy27xfc@iname.com" > > } > > ], > > "telephones": [ > > { > > "label": "office", > > "num": "+34910730028" > > } > > ] > > }, > > "customer": { > > "name": "Ayuntamiento de Madrid", > > "tax_id": { > > "country": "ES", > > "code": "P2807900B" > > }, > > "identities": [ > > { > > "scope": "tax", > > "code": "L01280796" > > } > > ], > > "addresses": [ > > { > > "num": "4", > > "street": "Plaza de la Villa", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28005", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "facturacion@madrid.es" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Services rendered", > > "price": "200.00" > > }, > > "sum": "4000.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%" > > } > > ], > > "total": "4000.00" > > } > > ], > > "ordering": { > > "buyer": { > > "name": "Departamento de Compras", > > "identities": [ > > { > > "code": "LA0007408" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Gran Vía", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28013", > > "country": "ES" > > } > > ] > > } > > }, > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2021-12-30", > > "amount": "4840.00", > > "percent": "100%" > > } > > ] > > }, > > "instructions": { > > "key": "credit-transfer", > > "credit_transfer": [ > > { > > "iban": "ES25 0188 2570 7185 4470 4761", > > "name": "Bankrandom" > > } > > ] > > } > > }, > > "delivery": { > > "receiver": { > > "name": "Concejalía de Hacienda", > > "identities": [ > > { > > "code": "LA0007407" > > } > > ], > > "addresses": [ > > { > > "num": "3", > > "street": "Calle Alcalá", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28014", > > "country": "ES" > > } > > ] > > } > > }, > > "totals": { > > "sum": "4000.00", > > "total": "4000.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "base": "4000.00", > > "percent": "21.0%", > > "amount": "840.00" > > } > > ], > > "amount": "840.00" > > } > > ], > > "sum": "840.00" > > }, > > "tax": "840.00", > > "total_with_tax": "4840.00", > > "payable": "4840.00" > > } > > } > > ``` > > SII example documents > > > [accordion] B2C Simplified Invoice > > > > Simplified invoices are used for B2C transactions when the customer is not a business. The transaction amount should be under €400 (VAT included) with some [exceptions](https://sede.agenciatributaria.gob.es/Sede/iva/facturacion-registro/facturacion-iva/tipos-factura.html) in which this threshold is increased to €3,000. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the simplified invoice, > > * to create a simplified SII invoice, include the `simplified` tag in your GOBL document with the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon, > > * when running `gobl build`, the system automatically calculates totals, assigns the `$regime` to `ES`, sets the [`es-sii-doc-type`](https://docs.gobl.org/addons/es-sii-v1#invoice-type) extension to `F2` (Simplified invoice), applies the standard VAT rate (21%), and normalizes all fields, > > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2C Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F2" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > > [accordion] B2B Standard Invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The transaction amount is €400 VAT included or above, or the customer requires a full invoice. > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the standard B2B invoice, > > * to create a regular SII invoice, include the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon and ensure the `customer` field contains valid tax identification details, > > * the `supplier` must be previously registered with the tax authority and the `customer` NIF or VAT ID must be valid, > > * when running `gobl build`, the system automatically calculates totals, assigns the `$regime` to `ES`, sets the [`es-sii-doc-type`](https://docs.gobl.org/addons/es-sii-v1#invoice-type) extension to `F1` (Standard invoice), applies the standard VAT rate (21%), and normalizes all fields, > > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > } > > } > > ``` > > > [accordion] B2B Services EU Client (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the reverse charge invoice, > > * to create a reverse charge SII invoice, use the tax key `reverse-charge` in your invoice lines, > > * you also need to set the items `key` to `services`, which will generate a breakdown by operation type required for this type of invoices, > > * with reverse charge, no VAT is charged by the supplier; the customer accounts for VAT in their own country, > > * the `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system, > > * when running `gobl build`, the system automatically sets the operation type to `S2` (Subject and Not Exempt - With reverse charge) when reporting the document to SII, applies the reverse charge tax treatment, and normalizes all fields, > > * the built version in the second tab shows the normalized document with the reverse charge configuration, operation type breakdown, and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2B Invoice Services (EU) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "key": "services", > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with reverse charge" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "key": "services", > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "es-sii-product": "services", > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "es-sii-product": "services", > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with reverse charge" > > } > > ] > > } > > ``` > > > [accordion] B2B Goods EU Client (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country (Spain) and subject to VAT in the destination country. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the intra-community supply invoice, > > * to create an intra-community supply SII invoice, use the tax key `intra-community` in your invoice lines, > > * you also need to set the items `key` to `goods`, which will report to SII a breakdown by operation type required for this type of invoices, > > * with intra-community supplies, no VAT is charged in Spain; the customer accounts for VAT in their destination country, > > * the `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system, > > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-exempt`](https://docs.gobl.org/addons/es-sii-v1#exemption-reason) extension to `E5` ([Artículo 25 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a25)) and the [`es-sii-regime`](https://docs.gobl.org/addons/es-sii-v1#special-regime-or-relevance-key) extension to `02` (Export), > > * the built version in the second tab shows the normalized document with the intra-community configuration, exemption codes, operation type breakdown, and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2B Invoice Goods (EU) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "key": "goods", > > "name": "Goods", > > "price": "90.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "es-sii-regime": "02" > > } > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a intra-community" > > } > > ] > > } > > > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "key": "goods", > > "name": "Goods", > > "price": "90.00" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "es-sii-exempt": "E5", > > "es-sii-product": "goods", > > "es-sii-regime": "02" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "es-sii-exempt": "E5", > > "es-sii-product": "goods", > > "es-sii-regime": "02" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a intra-community" > > } > > ] > > } > > ``` > > > [accordion] B2B Services Non-EU Client (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the outside scope invoice, > > * to create an outside scope SII invoice, use the tax key `outside-scope` in your invoice lines, > > * services provided to non-EU customers are generally outside the scope of Spanish VAT, > > * the `supplier` must be previously registered with the tax authority; customer tax identification is optional but recommended for record-keeping purposes, > > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-oot`](https://docs.gobl.org/addons/es-sii-v1#type-of-operation-outside-scope) extension to `location` and normalizes all fields, > > * the built version in the second tab shows the normalized document with the outside scope configuration and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2B invoice services (non-EU) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "key": "services", > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a outside-scope tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-11-05", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "key": "services", > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "es-sii-outside-scope": "location", > > "es-sii-product": "services", > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "es-sii-outside-scope": "location", > > "es-sii-product": "services", > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a outside-scope tax" > > } > > ] > > } > > ``` > > > [accordion] B2B Goods Non-EU Client (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the export invoice, > > * to create an export SII invoice, use the tax key `export` in your invoice lines, > > * exported goods are exempt from Spanish VAT, > > * the `supplier` must be previously registered with the tax authority; customer tax identification is optional but recommended for record-keeping purposes, > > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-exempt`](https://docs.gobl.org/addons/es-sii-v1#exemption-reason) extension to `E2` ([Artículo 21 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a21)) and the [`es-sii-regime`](https://docs.gobl.org/addons/es-sii-v1#special-regime-or-relevance-key) extension to `02` (Export), > > * the built version in the second tab shows the normalized document with the export configuration, exemption codes, and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2B Invoice Goods (No EU) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "key": "goods", > > "name": "Goods", > > "price": "90.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with an export" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-11-05", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "key": "goods", > > "name": "Goods", > > "price": "90.00" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "es-sii-exempt": "E2", > > "es-sii-product": "goods", > > "es-sii-regime": "02" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "es-sii-exempt": "E2", > > "es-sii-product": "goods", > > "es-sii-regime": "02" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with an export" > > } > > ] > > } > > ``` > > > [accordion] B2B Exempt E1 Invoice > > > > Exempt `E1` invoices are used for B2B transactions that are exempt from VAT pursuant to [Artículo 20 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a20), which covers exemptions in internal operations. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the exempt E1 invoice, > > * to create an exempt E1 SII invoice, use the tax key `exempt` in your invoice lines, > > * exempt operations are not subject to VAT but must still be reported, > > * the `supplier` must be previously registered with the tax authority and the `customer` NIF must be valid, > > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-exempt`](https://docs.gobl.org/addons/es-sii-v1#exemption-reason) extension to `E1` and normalizes all fields, > > * the built version in the second tab shows the normalized document with the exempt E1 configuration and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2B Exempt E1 Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a exempt tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-07-08", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "es-sii-exempt": "E1", > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "es-sii-exempt": "E1", > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a exempt tax" > > } > > ] > > } > > ``` > > > [accordion] B2C One-Stop-Shop Invoice > > > > One-Stop-Shop (OSS) invoices are used for B2C distance sales of goods and electronically supplied services to consumers in other EU member states when the supplier is registered under the OSS scheme. > > > > Notice: > > > > * the minimal version in the first tab contains only the essential fields required to create the OSS invoice, > > * to create an OSS SII invoice, include the `simplified` tag in your GOBL document with the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon, give the `customer` an address in the destination member state without a tax ID, and set `country` on each line's VAT to that state with the `es-sii-regime` extension `17`, > > * OSS allows suppliers to register for VAT in one EU member state and account for VAT on all EU distance sales through that single registration, > > * the `supplier` must be previously registered with the tax authority and enrolled in the OSS scheme, > > * when running `gobl build`, the invoice will be treated as a simplified invoice ([`es-sii-doc-type`](https://docs.gobl.org/addons/es-sii-v1#invoice-type) extension set to `F2`), VAT is calculated at the destination country's rate, and the operation is reported as not subject to Spanish VAT under the OSS regime, > > * the built version in the second tab shows the normalized document with the OSS configuration and automatically generated fields, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json SII B2C One Stop Shop Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "SAMPLE", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Anna Müller", > > "addresses": [ > > { > > "num": "12", > > "street": "Rosenthaler Straße", > > "locality": "Berlin", > > "code": "10119", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "anna.mueller@example.de" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Wireless headphones", > > "price": "149.00", > > "unit": "item" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "country": "DE", > > "rate": "standard", > > "ext": { > > "es-sii-regime": "17" > > } > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-11-06", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F2" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Anna Müller", > > "addresses": [ > > { > > "num": "12", > > "street": "Rosenthaler Straße", > > "locality": "Berlin", > > "code": "10119", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "anna.mueller@example.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Wireless headphones", > > "price": "149.00", > > "unit": "item" > > }, > > "sum": "298.00", > > "taxes": [ > > { > > "cat": "VAT", > > "country": "DE", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "es-sii-outside-scope": "location", > > "es-sii-regime": "17" > > } > > } > > ], > > "total": "298.00" > > } > > ], > > "totals": { > > "sum": "298.00", > > "total": "298.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "country": "DE", > > "key": "standard", > > "ext": { > > "es-sii-outside-scope": "location", > > "es-sii-regime": "17" > > }, > > "base": "298.00", > > "percent": "19%", > > "amount": "56.62" > > } > > ], > > "amount": "56.62" > > } > > ], > > "sum": "56.62" > > }, > > "tax": "56.62", > > "total_with_tax": "354.62", > > "payable": "354.62" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > > } > > ] > > } > > ``` > > > [accordion] B2C Hotel + IEET (Catalonia tourist tax) > > > > The Catalan tourist tax (IEET, *Impost sobre les Estades en Establiments Turístics*) is a regional tax administered by the Agència Tributària de Catalunya — not the AEAT — so it is **not** reported as a tax to SII. Hotels declare it directly to the Generalitat through the quarterly Modelo 950. > > > > Notice: > > > > * model the IEET as a document-level [`charge`](https://docs.gobl.org/draft-0/bill/invoice#charge) with `key: "tax"`, which keeps it out of the VAT base while still appearing as a separate line on the guest's invoice as required by Art. 35 of Llei 5/2017, > > * do not model the IEET as a `VAT` tax line — it is a fixed amount per night, not a percentage, and the AEAT does not collect it, > > * the `reason` field on the charge is what the guest sees on the invoice; include the establishment type, location, nights, and rate so the breakdown is unambiguous, > > * accommodation is invoiced with reduced VAT (10%) on the room base; the IEET charge is added on top of `total_with_tax` to produce `payable`, > > * the quarterly Modelo 950 to the Generalitat is independent of individual invoices, but structuring the IEET as a typed charge lets hotels query their GOBL invoices for the data they need to file it. > > > > ```json B2C Hotel + IEET (Catalonia tourist tax) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-sii-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "SAMPLE", > > "issue_date": "2026-05-06", > > "supplier": { > > "name": "Hotel Barcelona Example SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "locality": "Barcelona", > > "code": "08001", > > "country": "ES" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "3", > > "item": { > > "name": "Double room — 3 nights", > > "price": "180.00", > > "unit": "day" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > } > > ], > > "charges": [ > > { > > "key": "tax", > > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > > "amount": "10.20" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-05-06", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-sii-doc-type": "F2" > > } > > }, > > "supplier": { > > "name": "Hotel Barcelona Example SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "locality": "Barcelona", > > "code": "08001", > > "country": "ES" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "3", > > "item": { > > "name": "Double room — 3 nights", > > "price": "180.00", > > "unit": "day" > > }, > > "sum": "540.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "10.0%", > > "ext": { > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "540.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "key": "tax", > > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > > "amount": "10.20" > > } > > ], > > "totals": { > > "sum": "540.00", > > "charge": "10.20", > > "total": "550.20", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "540.00", > > "percent": "10.0%", > > "amount": "54.00" > > } > > ], > > "amount": "54.00" > > } > > ], > > "sum": "54.00" > > }, > > "tax": "54.00", > > "total_with_tax": "604.20", > > "payable": "604.20" > > } > > } > > ``` > > > [accordion] Replacement Invoice (Factura de canje) > > > > A replacement invoice (factura de canje) substitutes one or more previously issued simplified invoices with a full invoice — typically when a consumer later asks for a complete invoice with their tax details. > > > > Notice: > > > > * the `type` stays `standard` and the `replacement` tag is set under `tax.tags`, which the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon maps to the SII document type `F3`, > > * the `preceding` array references the simplified invoice being replaced by `series`, `code`, and `issue_date`, > > * unlike a corrective invoice, a replacement is not a rectification — the amounts are simply restated on a full invoice with the customer identified, and, > > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > > > ```json Factura de canje theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "standard", > > "tax": { > > "tags": [ > > "replacement" > > ] > > }, > > "series": "FC", > > "issue_date": "2026-02-26", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-02-20", > > "series": "FS", > > "code": "001" > > } > > ], > > "supplier": { > > "name": "Easor Software Solutions S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B24830515" > > }, > > "addresses": [ > > { > > "num": "532", > > "street": "Avenida Diagonal", > > "locality": "Barcelona", > > "region": "Barcelona", > > "code": "08006", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Cliente Ejemplo S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Servicio de consultoría", > > "price": "500.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "$tags": [ > > "replacement" > > ], > > "type": "standard", > > "series": "FC", > > "issue_date": "2026-02-26", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-02-20", > > "series": "FS", > > "code": "001" > > } > > ], > > "tax": { > > "ext": { > > "es-sii-doc-type": "F3" > > } > > }, > > "supplier": { > > "name": "Easor Software Solutions S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B24830515" > > }, > > "addresses": [ > > { > > "num": "532", > > "street": "Avenida Diagonal", > > "locality": "Barcelona", > > "region": "Barcelona", > > "code": "08006", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Cliente Ejemplo S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Servicio de consultoría", > > "price": "500.00" > > }, > > "sum": "500.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "500.00" > > } > > ], > > "totals": { > > "sum": "500.00", > > "total": "500.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "500.00", > > "percent": "21.0%", > > "amount": "105.00" > > } > > ], > > "amount": "105.00" > > } > > ], > > "sum": "105.00" > > }, > > "tax": "105.00", > > "total_with_tax": "605.00", > > "payable": "605.00" > > } > > } > > ``` > > > [accordion] Credit Note > > > > ```json SII Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "credit-note", > > "series": "CN", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-11-13", > > "series": "SAMPLE", > > "code": "004" > > } > > ], > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "credit-note", > > "series": "CN", > > "issue_date": "2026-07-21", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-11-13", > > "series": "SAMPLE", > > "code": "004" > > } > > ], > > "tax": { > > "ext": { > > "es-sii-correction-type": "I", > > "es-sii-doc-type": "R1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > > [accordion] Corrective Invoice > > > > ```json SII Corrective Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "corrective", > > "series": "CO", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2024-11-13", > > "series": "SAMPLE", > > "code": "004", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%" > > } > > ] > > } > > ] > > } > > } > > ], > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-sii-v1" > > ], > > "type": "corrective", > > "series": "CO", > > "issue_date": "2026-07-21", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2024-11-13", > > "series": "SAMPLE", > > "code": "004", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > } > > } > > ], > > "tax": { > > "ext": { > > "es-sii-correction-type": "S", > > "es-sii-doc-type": "R1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-sii-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-sii-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > Copy and paste these documents into the [GOBL builder](https://build.gobl.org) in order to preview and verify them. > [tab] API Endpoints > > The following API Endpoints are available when you enable this app: > > * [Verify Tax ID](/api-ref/apps/gov-es/lookup) > * [Generate Agreement PDF](/api-ref/apps/gov-es/agreement-fetch) > * [Upload Agreement PDF](/api-ref/apps/gov-es/agreement-upload) > * [Upload Identity Image](/api-ref/apps/gov-es/identity-upload) > * [Confirm](/api-ref/apps/gov-es/confirm) *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Spain App → # Stripe Source: https://docs.invopop.com/apps/stripe Import and process invoices and credit notes from Stripe > [tab] Description > > > [card] [Stripe Guide](/guides/stripe) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Integrations | > > The Stripe integration allows you to automatically generate tax-compliant invoices and credit notes from your [Stripe](https://stripe.com/) dashboard. When a Stripe invoice or credit note reaches the [finalized status](https://support.stripe.com/questions/invoice-states), the integration automatically creates a new job in your selected Invopop workflow. > > The integration consists of two components: > > 1. An Invopop app within your Stripe dashboard (installed from the [Stripe App Marketplace](https://marketplace.stripe.com/apps/invopop)) > 2. An app in your Invopop console > > The job will extract the invoice data from Stripe and execute the workflow actions, such as converting it to any e-invoice format and submitting it to your local tax authority. > > **Key features** > > * **Automatic import:** Finalized Stripe invoices and credit notes are automatically imported into Invopop and saved to the `Sales` folder. > * **Workflow automation:** Process imported invoices through your configured workflows to generate compliant invoices, PDFs, and submit to tax authorities. > * **Real-time processing:** Track invoice status directly in your Stripe dashboard with the Invopop panel in the right sidebar. > * **Historical import:** Import historical invoices issued before connecting Invopop by clicking Process this invoice in the Stripe dashboard. > * **Import filters:** Choose which invoices are imported with simple conditions on customer country, email or total, or an advanced jq expression. > * **Error handling:** Retry failed jobs directly from Stripe. Documents already signed in Invopop must be corrected from the console instead. > * **Multi-format support:** Convert Stripe invoices to any e-invoice format supported by Invopop, including country-specific formats like VERI\*FACTU (Spain), XRechnung (Germany), and more. > > Make sure to check out our [Stripe Guide](/guides/stripe) for instructions on how to install the app, connect your accounts, configure workflows, and monitor invoice processing. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Import invoice from Stripe > > > > Import invoice and credit note data from Stripe into Invopop. > > > [card] Download PDF from Stripe > > > > Download the PDF Stripe generated for the invoice and attach it to the document. > > > [card] Process invoice payment with Stripe > > > > Processes payment for an invoice through Stripe > > > [card] Assign virtual IBAN > > > > Adds to the Payment Instructions the Virtual IBAN assigned to the customer > [tab] Workflows > > The following workflows are available to make your integration easier. Use them as templates to build upon. > > > [accordion] Stripe - Basic PDF invoice workflow > > > > This workflow syncs with Stripe to generate a PDF invoice on finalized sales. > > > > ```json Stripe PDF invoice workflow theme={"system"} > > { > > "name": "Stripe PDF invoice", > > "description": "Sync from Stripe and generate a PDF", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "7dd8e370-139b-11f0-b939-af2e8ae705ac", > > "name": "Import invoice from Stripe", > > "provider": "stripe.import" > > }, > > { > > "id": "95a82a10-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "84cf92a0-139b-11f0-b939-af2e8ae705ac", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "86a5b230-139b-11f0-b939-af2e8ae705ac", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "es", > > "logo_height": 40 > > } > > }, > > { > > "id": "8b321820-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "90f4b420-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=stripe-invoice) > > > [accordion] Stripe - VERI\*FACTU invoice workflow > > > > This workflow syncs with Stripe to issue a VERI\*FACTU invoice on finalized sales in Spain. > > > > ```json Stripe VERI*FACTU invoice workflow theme={"system"} > > { > > "name": "Stripe VERI*FACTU invoice", > > "description": "Sync from Stripe and issue a VERI*FACTU invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "7dd8e370-139b-11f0-b939-af2e8ae705ac", > > "name": "Import invoice from Stripe", > > "provider": "stripe.import" > > }, > > { > > "id": "95a82a10-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "794f78d0-139d-11f0-9ab7-c391120166e0", > > "name": "Modify silo entry", > > "provider": "silo.modify", > > "summary": "Add `es-verifactu-v1` addon and \"Factura\" note", > > "config": { > > "addons": [ > > "es-verifactu-v1" > > ], > > "allow_invalid_json": false, > > "data": { > > "doc": { > > "notes": [ > > { > > "key": "general", > > "text": "Factura" > > } > > ] > > } > > }, > > "expr": "", > > "merge_type": "application/merge-patch+json", > > "sign": false, > > "tags": [] > > } > > }, > > { > > "id": "84cf92a0-139b-11f0-b939-af2e8ae705ac", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "fc307c60-139b-11f0-b939-af2e8ae705ac", > > "name": "Generate VERI*FACTU", > > "provider": "verifactu.generate" > > }, > > { > > "id": "fe479c90-139b-11f0-b939-af2e8ae705ac", > > "name": "Send invoice to VERI*FACTU", > > "provider": "verifactu.send" > > }, > > { > > "id": "86a5b230-139b-11f0-b939-af2e8ae705ac", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "es", > > "logo_height": 40 > > } > > }, > > { > > "id": "8b321820-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "90f4b420-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=stripe-verifactu) > > > [accordion] Stripe - Peppol invoice workflow > > > > This workflow syncs with Stripe and sends the invoice over the Peppol network, looking the customer's participant ID up at run time. Register your supplier on Peppol first — see the [Peppol guide](/guides/peppol). > > > > ```json Stripe Peppol invoice workflow theme={"system"} > > { > > "name": "Stripe Peppol invoice", > > "description": "Sync from Stripe and send via Peppol", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ab0b8c40-d4e7-11f0-9e5d-e1650cc9a3d1", > > "name": "Import invoice from Stripe", > > "provider": "stripe.import" > > }, > > { > > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "dcb86010-d4e7-11f0-9bd8-c3ca8212c614", > > "name": "Add supplier Peppol ID", > > "provider": "silo.modify", > > "summary": "Add supplier Peppol inbox", > > "config": { > > "merge_type": "application/jq", > > "scope": "doc", > > "jq": ".supplier.inboxes =\n(\n (.supplier.inboxes // []) as $inboxes\n |\n if ($inboxes | any(.key == \"peppol\")) then\n $inboxes\n else\n $inboxes + [\n {\n key: \"peppol\",\n \"scheme\": \"\",\n \"code\": \"\"\n }\n ]\n end\n)\n" > > } > > }, > > { > > "id": "00e00280-d66f-11f0-8fc4-ff91328c62f5", > > "name": "Add purchase order number", > > "provider": "silo.modify", > > "summary": "Add purchase order number", > > "config": { > > "jq": "if (.ordering.code == null) and ((.ordering.purchases // [])[0].code == null) then \n.ordering.purchases[0].code = \"NA\"\nend", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "b54b7000-d779-11f0-8eaf-79de543fb8d0", > > "name": "Move negative line items to discounts", > > "provider": "silo.modify", > > "summary": "Move negative line items to discounts", > > "config": { > > "jq": ". as $doc\n|\n# Select lines that are negative\n($doc.lines | map(select(.item.price|tonumber < 0))) as $neg\n|\n# Select lines that are positive\n($doc.lines | map(select(.item.price|tonumber >= 0))) as $pos\n|\n# Convert negative lines to discount entries\n($neg | map({\n reason: .item.name,\n amount: ((.total|tonumber) * -1 | tostring),\n taxes: .taxes\n})) as $discounts\n|\n$doc\n| .lines = $pos\n| .discounts = $discounts\n", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "896013d0-d515-11f0-a832-01ce614dcba6", > > "name": "Include payment means when empty", > > "provider": "silo.modify", > > "summary": "Include payment means when empty", > > "config": { > > "addons": [ > > "eu-en16931-v2017" > > ], > > "jq": "if (.payment.instructions // null) == null then\n .\nelse\n (\n\n . as $doc\n | .payment |= (\n . // {}\n |\n .instructions.key |= (split(\"+\")[0])\n |\n .terms //= {\n due_dates: [\n {\n date: (\n $doc.issue_date\n | strptime(\"%Y-%m-%d\")\n | .[1] += 1 # add 1 month\n | mktime\n | strftime(\"%Y-%m-%d\")\n ),\n percent: \"100%\"\n }\n ]\n }\n )\n\n # ↑↑↑ end of modifications ↑↑↑\n )\nend\n", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "6c96aac0-d4e8-11f0-9bd8-c3ca8212c614", > > "name": "Lookup Peppol participant", > > "provider": "peppol.lookup", > > "summary": "Lookup customer", > > "config": { > > "party": "customer" > > } > > }, > > { > > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "fc5aa8d0-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol BIS Billing UBL Invoice/CreditNote V3", > > "config": { > > "doc_type": "bis-invoice-v3", > > "private": false > > } > > }, > > { > > "id": "075442a0-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Send Peppol document", > > "provider": "peppol.send" > > }, > > { > > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "97ced0a0-d4e8-11f0-985d-3b44fe520da3", > > "name": "Send email", > > "provider": "email.send", > > "summary": "", > > "config": { > > "add_invoice_customer": false, > > "add_invoice_supplier": false, > > "add_party": false, > > "attach": "", > > "body": "VGhpcyBpbnZvaWNlICh7ey5mdWxsX2NvZGV9fSkgZmFpbGVkIHdpdGggZXJyb3I6IHt7LmZhdWx0c319", > > "connection_id": "default", > > "subject": "The invoice failed - check invopop", > > "zip_attachments": false > > } > > }, > > { > > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Add to my workspace →](https://console.invopop.com/redirect/workflows/new?template=stripe-peppol) > > > [accordion] Stripe - France send invoice workflow > > > > This workflow syncs with Stripe, then forwards the invoice to the PPF when the customer is registered in the French directory, or records it for e-reporting when they are not. There is no one-click template for it yet — copy the JSON into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice). > > > > ```json Example Stripe France workflow theme={"system"} > > { > > "name": "Stripe France send invoice", > > "description": "Sync from Stripe and forward to PPF or record for reporting", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ab0b8c40-d4e7-11f0-9e5d-e1650cc9a3d1", > > "name": "Import invoice from Stripe", > > "provider": "stripe.import" > > }, > > { > > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "eea78ac0-26f0-11f1-9156-e518ebabd527", > > "name": "Add billing mode", > > "provider": "silo.modify", > > "notes": "S2 (already-paid) ONLY when fully paid (totals.advance == total_with_tax); else S1. S2 also adds payment.terms due_dates (BR-FR-CO-09). Reads .totals.advance (NOT the old .advances bug).", > > "summary": "Modifications configured", > > "config": { > > "jq": ".tax.ext = (.tax.ext // {})\n| .tax.point = \"issue\"\n| if ((.totals.advance // null) != null and (.totals.advance == .totals.total_with_tax)) then\n .tax.ext[\"fr-ctc-billing-mode\"] = \"S2\"\n | .payment = (.payment // {})\n | .payment.terms = (.payment.terms // {\"due_dates\":[{\"date\":.issue_date,\"percent\":\"100%\"}]})\n else\n .tax.ext[\"fr-ctc-billing-mode\"] = \"S1\"\n end", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "4f427d80-a44d-11f0-b23b-fd08a0f26c87", > > "name": "Add VATEX", > > "provider": "silo.modify", > > "summary": "Modifications configured", > > "config": { > > "jq": ".lines |= map(\n .taxes |= map(\n (.ext[\"untdid-tax-category\"]? as $cat\n | if $cat then\n {\n key: {\n \"AE\": \"reverse-charge\",\n \"E\": \"export\",\n \"G\": \"export\",\n \"O\": \"outside-scope\",\n \"K\": \"intra-community\"\n }[$cat],\n vatex: {\n \"AE\": \"VATEX-EU-AE\",\n \"G\": \"VATEX-EU-G\",\n \"O\": \"VATEX-EU-O\",\n \"K\": \"VATEX-EU-IC\"\n }[$cat]\n } as $m\n\n | if $m.key then .key = $m.key else . end\n | if $m.vatex then\n .ext = ((.ext // {}) + {\"cef-vatex\": $m.vatex})\n else\n .\n end\n else\n .\n end\n )\n )\n)", > > "merge_type": "application/jq", > > "scope": "doc", > > "sign": false > > } > > }, > > { > > "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5", > > "name": "Add bank details", > > "provider": "silo.modify", > > "notes": "Normalizes the payment key to SEPA credit transfer format", > > "summary": "Modifications configured", > > "config": { > > "allow_invalid_json": false, > > "data": { > > "doc": { > > "payment": { > > "instructions": { > > "credit_transfer": [ > > { > > "bic": "", > > "iban": "" > > } > > ], > > "key": "credit-transfer" > > } > > } > > } > > }, > > "expr": "(doc?.payment?.instructions == nil || doc?.payment?.instructions?.key == \"credit-transfer\")\n&& doc?.payment?.terms?.due_dates != nil", > > "merge_type": "application/merge-patch+json", > > "sign": false > > } > > }, > > { > > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "86a5b230-139b-11f0-b939-af2e8ae705ac", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "French · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "fr", > > "logo_height": 40 > > } > > }, > > { > > "id": "de2407b0-5e94-11f1-90fe-f3d836f89160", > > "name": "Lookup in Directory", > > "provider": "gov-fr.directory.lookup", > > "next": [ > > { > > "status": "NA", > > "code": "found", > > "steps": [ > > { > > "id": "3ffd50e0-5e95-11f1-90fe-f3d836f89160", > > "name": "Add flow2 addon", > > "provider": "silo.modify", > > "summary": "Modifications configured", > > "config": { > > "addons": [ > > "fr-ctc-flow2-v1" > > ] > > } > > }, > > { > > "id": "1f8bf500-5e95-11f1-90fe-f3d836f89160", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol France CIUS UBL Invoice/CreditNote", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "peppol-fr-cius", > > "private": false > > } > > }, > > { > > "id": "9e22f4a0-485f-11f1-86b7-9745cc4d2380", > > "name": "Record document for e-invoicing", > > "provider": "gov-fr.directory.record" > > }, > > { > > "id": "285c9450-5e95-11f1-90fe-f3d836f89160", > > "name": "Send Peppol Document", > > "provider": "peppol.send" > > }, > > { > > "id": "2d6926c0-5e95-11f1-90fe-f3d836f89160", > > "name": "Forward document to PPF", > > "provider": "gov-fr.directory.forward" > > } > > ] > > }, > > { > > "status": "NA", > > "code": "not-found", > > "steps": [ > > { > > "id": "5cff2420-7470-11f1-9deb-cda1ffc5317f", > > "name": "Add flow10 addon", > > "provider": "silo.modify", > > "summary": "Modifications configured", > > "config": { > > "addons": [ > > "fr-ctc-flow10-v1" > > ] > > } > > }, > > { > > "id": "3a023fc0-5e95-11f1-90fe-f3d836f89160", > > "name": "Record document for reporting", > > "provider": "gov-fr.reporting.record" > > }, > > { > > "id": "aaf85b90-6996-11f1-8722-e7a7821bd54f", > > "name": "Verify invoice can be sent", > > "provider": "peppol.has.inboxes", > > "next": [ > > { > > "status": "NA", > > "code": "true", > > "steps": [ > > { > > "id": "afcc78e0-6996-11f1-8722-e7a7821bd54f", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol BIS Billing UBL Invoice/CreditNote V3", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "bis-invoice-v3", > > "private": false > > } > > }, > > { > > "id": "b798c790-6996-11f1-8722-e7a7821bd54f", > > "name": "Send Peppol document", > > "provider": "peppol.send" > > } > > ] > > }, > > { > > "status": "NA", > > "code": "false" > > } > > ] > > } > > ] > > } > > ] > > }, > > { > > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > > [Read the country notes →](/guides/stripe#country-workflows) *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Stripe App → # SW Sapien Source: https://docs.invopop.com/apps/sw-sapien Bulk download and import CFDIs from Mexico's SAT using SW Sapien's Efisco service. > [!WARNING] > > The SW Sapien app is not available by default. Contact us if you are interested in using it. > [tab] Description > > > [card] [SW Sapien](/guides/mx-sat-receiving) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | Issued, Received | > | Country | [Mexico](/compliance/mexico) | > > The **SW Sapien app** connects Invopop to [SW Sapien's](https://sw.com.mx/) Efisco service to bulk download CFDI documents from the SAT (Servicio de Administración Tributaria). Instead of managing sensitive e.firma (FIEL) certificates or building brittle web-scraping solutions, this app delegates the complexity of SAT authentication and download to a trusted third-party provider. > > > [!NOTE] > > > > This app handles CFDI **download** only. Once downloaded, each CFDI is passed to the [SAT Mexico app](/apps/sat-mexico) for conversion to [GOBL](https://docs.gobl.org) format via a separate workflow. > > #### Key features > > * **Bulk CFDI download:** Request and download CFDIs for a given date range, both issued and received, through SW Sapien's Efisco API. > * **Automatic job dispatch:** For each downloaded CFDI, the app uploads the file and creates a workflow job that triggers the conversion process. > * **Periodic execution:** Combine with the [Cron app](/apps/cron) to schedule automatic daily (or other interval) imports. > * **Flexible document types:** Configure whether to import received invoices, issued invoices, or both. > * **No sensitive certificate management:** Authentication with SAT is handled entirely by SW Sapien, so e.firma (FIEL) certificates never need to be stored in Invopop. > > Check out our [Mexico: Receiving invoices guide](/guides/mx-sat-receiving) for step-by-step setup instructions. The app also supports importing issued invoices; refer to the configuration options below for details. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Register Efisco Party > > > > 150/mo > > Initiate the registration of a party with SW Sapien's Efisco service, generating a link for uploading the e.firma (FIEL) certificate. > > > [card] Import CFDIs from Efisco > > > > 3 > > Request CFDI downloads from SW Sapien's Efisco service for a specified date range, wait for completion, and dispatch individual conversion jobs for each CFDI. > [tab] Workflows > > The following templates help you get started quickly. Use them as is or as a base for your own flows. > > > [accordion] SW Sapien register party > > > > Initiate the registration of a party with SW Sapien's Efisco service to enable CFDI downloads. > > > > ```json SW Sapien register party workflow theme={"system"} > > { > > "name": "SW Sapien register party", > > "description": "Register a party with SW Sapien Efisco to enable CFDI downloads", > > "schema": "org/party", > > "steps": [ > > { > > "id": "aaa044b0-14cc-11f1-85d2-9d77c04210bc", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "ae845cb0-14cc-11f1-85d2-9d77c04210bc", > > "name": "Register supplier with Efisco", > > "provider": "sw-sapien.efisco.register" > > } > > ], > > "rescue": [ > > { > > "id": "a3b4c5d0-4d5e-11f0-e004-7d8e9f0a1b2c", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] SW Sapien import CFDIs > > > > Download CFDIs from SAT via SW Sapien's Efisco service and dispatch a conversion job for each document. This workflow is designed to be executed periodically using the [Cron app](/apps/cron). > > > > ```json SW Sapien bulk import CFDIs workflow theme={"system"} > > { > > "name": "SW Sapien bulk import CFDIs", > > "description": "Bulk-import CFDIs from SAT via SW Sapien Efisco", > > "schema": "org/party", > > "steps": [ > > { > > "id": "28b5e810-14cc-11f1-85d2-9d77c04210bc", > > "name": "Bulk import CFDIs from Efisco", > > "provider": "sw-sapien.efisco.import", > > "summary": "Received → no workflow", > > "config": { > > "document_type": "Recepcion", > > "workflow_id": "" > > } > > } > > ], > > "rescue": [ > > { > > "id": "a7b8c9d0-2b3c-11f0-c002-5b6c7d8e9f0a", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] SAT convert CFDI > > > > Convert an individual CFDI to [GOBL](https://docs.gobl.org) format using the [SAT Mexico app](/apps/sat-mexico). > > > > ```json SAT import CFDI workflow theme={"system"} > > { > > "name": "SAT import CFDI", > > "description": "Import a CFDI received through SAT and validate it", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "6346e330-14cc-11f1-85d2-9d77c04210bc", > > "name": "Import CFDI from SAT", > > "provider": "sat-mx.import" > > }, > > { > > "id": "1a3cd312-cba9-11f1-816e-9200076f684c", > > "name": "Validate CFDI with SAT", > > "provider": "sat-mx.validate" > > }, > > { > > "id": "74f01110-14cc-11f1-85d2-9d77c04210bc", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `received`{.state .received}", > > "config": { > > "state": "received" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e5f6a7b0-1a2b-11f0-b001-4a5b6c7d8e9f", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` *** > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about SW Sapien App → # Tables Source: https://docs.invopop.com/apps/tables Store, query, and transform structured data in SQL tables connected to your workflows. > [tab] Description > > > [card] [Tables](/guides/tables) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Databases | > | Scope | All | > > The **Tables app** gives each workspace a managed SQL database for storing structured data alongside your documents. Create tables, load them from your own SQL or from other steps in a workflow, browse and query them from a built-in editor, and move data in and out of your GOBL documents as part of any workflow. > > Each workspace that enables Tables gets a single **database**, backed by [Turso](https://turso.tech) (a managed libSQL/SQLite service). Inside it you create **tables** with typed columns and constraints (primary keys, `UNIQUE`, `NOT NULL`, defaults). Every table automatically includes an auto-incrementing `id` primary key and an optional `silo_entry_id` column that links a row back to the GOBL document it came from. > > Data moves between tables and documents using [JQ](https://jqlang.org) queries that you configure on each workflow step, so you control exactly how columns map onto GOBL fields and back. You can test your queries in the [online JQ playground](https://play.jqlang.org/) before saving them. > > To get started quickly, Tables ships with ready-made **templates** that create invoice tables: from a single flat table (one row per invoice), to one row per line item with an aggregating view, to a fully normalized set of supplier, customer, invoice, and line-item tables with a view that reassembles them. Each template comes with a suggested import query and an `ordering_code` uniqueness constraint to keep rows idempotent. > > #### Key features > > * **Workflow automation:** Import, export, merge, and batch actions plug into your workflows as steps, moving data between tables and GOBL documents automatically. > * **Managed SQL database:** Each workspace gets its own libSQL/SQLite database, with no infrastructure to run or maintain. > * **Flexible mapping with JQ:** Map table columns onto GOBL fields, and GOBL fields back onto columns, with JQ queries you can test and refine. > * **Built-in SQL editor:** Browse tables, inspect schemas, and run ad-hoc SQL queries directly from the app. > * **Table templates:** Start from prebuilt invoice schemas (flat, multi-row, or normalized multi-table), each with a suggested import query. > * **Bulk processing:** Fan out a workflow over every row in a table, running one job per row for high-volume imports. > * **Direct access:** Generate database credentials to connect and load data from your own tools. > > Make sure to check out our [Tables guide](/guides/tables) for step-by-step instructions on creating tables, loading data, and wiring the actions into your workflows. > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Import > > > > Build a GOBL document from a stored table row and save it as a silo entry. > > > [card] Export > > > > Write data from a GOBL document into a table row, inserting a new row or updating an existing one. > > > [card] Merge > > > > Enrich a GOBL document with values looked up from a matching table row. > > > [card] Create batch > > > > Run a workflow once for every row in a table, with an optional SQL filter. > [tab] Workflows > > Use these sample workflows as a starting point for your own. > > > [!NOTE] > > > > The `jq`, `key_jq`, and `patch_jq` values are base64-encoded, exactly as the workflow stores them (the app's step configuration screen encodes them for you). The plain-text queries are shown in the [Tables guide](/guides/tables). > > > [accordion] Tables import and export invoice > > > > Build a GOBL invoice from a table row, sign it and generate a PDF, then record key fields back into a reporting table (upserting on `silo_entry_id` so re-runs update the same row). Trigger it per row, for example from a `Create batch` step, passing the table name and row key. > > > > ```json Import and export invoice workflow theme={"system"} > > { > > "name": "Import and export invoice", > > "description": "Build a GOBL invoice from a table row, then record it in a reporting table", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "a1b2c3d0-0000-11f0-a000-000000000001", > > "name": "Import from table", > > "provider": "tables.import", > > "summary": "Build `bill/invoice` from a row", > > "config": { > > "schema": "bill/invoice", > > "scope": "doc", > > "jq": "e3NlcmllcywgY29kZSwgaXNzdWVfZGF0ZSwgY3VycmVuY3ksIHN1cHBsaWVyOiB7bmFtZTogLnN1cHBsaWVyX25hbWUsIHRheF9pZDoge2NvdW50cnk6IC5zdXBwbGllcl9jb3VudHJ5LCBjb2RlOiAuc3VwcGxpZXJfdGF4X2NvZGV9fSwgY3VzdG9tZXI6IHtuYW1lOiAuY3VzdG9tZXJfbmFtZSwgdGF4X2lkOiB7Y291bnRyeTogLmN1c3RvbWVyX2NvdW50cnksIGNvZGU6IC5jdXN0b21lcl90YXhfY29kZX19LCBsaW5lczogW3txdWFudGl0eSwgaXRlbToge25hbWU6IC5pdGVtX25hbWUsIHByaWNlOiAuaXRlbV9wcmljZX0sIHRheGVzOiBbe2NhdDogIlZBVCIsIHJhdGU6IC50YXhfcmF0ZX1dfV19" > > } > > }, > > { > > "id": "a1b2c3d0-0000-11f0-a000-000000000002", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { "state": "processing" } > > }, > > { > > "id": "a1b2c3d0-0000-11f0-a000-000000000003", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "a1b2c3d0-0000-11f0-a000-000000000004", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "English", > > "config": { "locale": "en" } > > }, > > { > > "id": "a1b2c3d0-0000-11f0-a000-000000000005", > > "name": "Export to table", > > "provider": "tables.export", > > "summary": "Upsert into `invoices`", > > "config": { > > "table": "invoices", > > "scope": "doc", > > "jq": "e3NpbG9fZW50cnlfaWQ6IHNpbG9fZW50cnlfaWQsIGNvZGU6IC5jb2RlLCBpc3N1ZV9kYXRlOiAuaXNzdWVfZGF0ZSwgY3VycmVuY3k6IC5jdXJyZW5jeSwgdG90YWw6IC50b3RhbHMucGF5YWJsZX0=", > > "upsert_key": ["silo_entry_id"] > > } > > }, > > { > > "id": "a1b2c3d0-0000-11f0-a000-000000000006", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { "state": "sent" } > > } > > ], > > "rescue": [ > > { > > "id": "a1b2c3d0-0000-11f0-a000-0000000000ff", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { "state": "error" } > > } > > ] > > } > > ``` > > > [accordion] Tables merge invoice data > > > > Look up a matching row and patch its values into the invoice being processed, for example a customer's default payment terms. > > > > ```json Merge table data into invoice workflow theme={"system"} > > { > > "name": "Merge table data into invoice", > > "description": "Enrich a GOBL invoice with reference data looked up from a table", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "c1d2e3f0-0000-11f0-c000-000000000001", > > "name": "Merge from table", > > "provider": "tables.merge", > > "summary": "Look up `customers` by tax code", > > "config": { > > "table": "customers", > > "scope": "doc", > > "key_jq": "e2N1c3RvbWVyX2NvZGU6IC5jdXN0b21lci50YXhfaWQuY29kZX0=", > > "patch_jq": "LiArIHtwYXltZW50OiB7dGVybXM6IHtrZXk6ICRyb3cucGF5bWVudF90ZXJtc319fQ==", > > "required": false > > } > > }, > > { > > "id": "c1d2e3f0-0000-11f0-c000-000000000002", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `enriched`{.state .enriched}", > > "config": { "state": "enriched" } > > } > > ], > > "rescue": [ > > { > > "id": "c1d2e3f0-0000-11f0-c000-0000000000ff", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { "state": "error" } > > } > > ] > > } > > ``` *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Tables app → # UN/CEFACT CII Source: https://docs.invopop.com/apps/uncefact-cii Convert GOBL to the UN/CEFACT CII format. > [tab] Description > > > [card] UN/CEFACT CII > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Format | > > **UN/CEFACT CII (Cross Industry Invoice)** is a key document within the family of Supply Chain "Cross-Industry" messages that are exchanged globally between trading partners. > > UN/CEFACT CII is part of a group of messages in supply chain procedures called the [Cross-Industry family of deliverables](https://unece.org/trade/documents/2008/11/brs-cross-industry-common-requirements) which are all based on the principle of a maximum data set, are integrated into the Supply Chain Reference Data Model, and are fully interoperable with each other. > > The standard has achieved significant adoption in Europe. UN/CEFACT CII was chosen in 2016 as one of two obligatory standards within the European Union for public procurement, meaning that every public agency within the EU is obliged to accept this standard for electronic invoicing. The standard is typically implemented in XML format using the Supply Chain Reference Data Model (SCRDM). > > **Key features** > > Supported CII syntaxes: > > * `EU` · Peppol BIS Billing CII Invoice V3 > * `EU` · EN 16931 CII Invoice > * `FR` · Factur-X CII V1 > * `DE` · ZUGFeRD V2 > * `DE` · XRechnung V3 > * `FR` · Chorus Pro V1 > > **Embedded attachments:** the generate action can embed the invoice PDF and any supporting documents uploaded to the silo entry with the `attachment` category directly in the CII XML. See [embed attachments in UBL and CII documents](/guides/file-uploads#embed-attachments-in-ubl-and-cii-documents). > [tab] Actions > > > [card] Generate CII document > > > > 1 > > Generate a UN/CEFACT CII XML Invoice. > > > [card] Import CII document > > > > 1 > > Import a UN/CEFACT CII document like an invoice, and convert to GOBL. > > > [card] Import Factur-X PDF > > > > 1 > > Extract the embedded CII XML from a Factur-X or ZUGFeRD PDF/A-3 and convert it to GOBL. > > > [card] Embed Factur-X/ZUGFeRD > > > > Embed the generated CII XML into the PDF to produce a Factur-X or ZUGFeRD hybrid document. > [tab] Documents > > Sample invoices demonstrating various UN/CEFACT CII implementations across different countries and use cases. > > > [accordion] ZUGFeRD B2C Invoice (Germany) > > > > Standard ZUGFeRD invoice for business-to-consumer transactions with embedded XML in PDF format. > > > > ```json ZUGFeRD B2C Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-zugferd-v2" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "supplier": { > > "name": "Provide One GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "addresses": [ > > { > > "num": "16", > > "street": "Dietmar-Hopp-Allee", > > "locality": "Walldorf", > > "code": "69190", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1927.80" > > } > > ], > > "instructions": { > > "key": "card" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-zugferd-v2" > > ], > > "$tags": [ > > "simplified" > > ], > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2022-02-01", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "addresses": [ > > { > > "num": "16", > > "street": "Dietmar-Hopp-Allee", > > "locality": "Walldorf", > > "code": "69190", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1927.80" > > } > > ], > > "instructions": { > > "key": "card", > > "ext": { > > "untdid-payment-means": "48" > > } > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "19%", > > "amount": "307.80" > > } > > ], > > "amount": "307.80" > > } > > ], > > "sum": "307.80" > > }, > > "tax": "307.80", > > "total_with_tax": "1927.80", > > "payable": "1927.80", > > "advance": "1927.80", > > "due": "0.00" > > } > > } > > ``` > > > [accordion] ZUGFeRD B2B Invoice with Additional Fields (Germany) > > > > Comprehensive ZUGFeRD invoice demonstrating additional optional fields such as ordering information, payment terms, delivery details, and discounts. > > > > ```json ZUGFeRD B2B Invoice with additional fields theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-zugferd-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2024-02-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "people": [ > > { > > "name": { > > "given": "John", > > "surname": "Doe" > > } > > } > > ], > > "addresses": [ > > { > > "num": "16", > > "street": "Dietmar-Hopp-Allee", > > "locality": "Walldorf", > > "code": "69190", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+49100200300" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "282741168" > > }, > > "addresses": [ > > { > > "num": "25", > > "street": "Werner-Heisenberg-Allee", > > "locality": "München", > > "code": "80939", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ], > > "discounts": [ > > { > > "reason": "Promotion discount", > > "amount": "10.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "ext": { > > "untdid-allowance": "88" > > } > > } > > ], > > "charges": [ > > { > > "reason": "Freight", > > "amount": "11.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ], > > "ordering": { > > "code": "PO4711", > > "period": { > > "start": "2013-03-10", > > "end": "2013-04-10" > > }, > > "contracts": [ > > { > > "code": "2013-05" > > } > > ], > > "receiving": [ > > { > > "code": "3544" > > } > > ], > > "despatch": [ > > { > > "code": "5433" > > } > > ] > > }, > > "payment": { > > "payee": { > > "name": "Ebeneser Scrooge AS", > > "identities": [ > > { > > "label": "CompanyID", > > "code": "989823401" > > }, > > { > > "label": "0088", > > "code": "2298740918237" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2013-07-20", > > "percent": "100%" > > } > > ], > > "notes": "2 % discount if paid within 2 days\n Penalty percentage 10% from due date" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ref": "0003434323213231", > > "credit_transfer": [ > > { > > "iban": "NO9386011117947", > > "bic": "DNBANOKK" > > } > > ], > > "card": { > > "last4": "1234", > > "holder": "John Doe" > > }, > > "direct_debit": { > > "ref": "1234567890", > > "creditor": "987654321", > > "account": "DE89370400440532013000" > > }, > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "receiver": { > > "addresses": [ > > { > > "street": "Deliverystreet 2", > > "street_extra": "Side door", > > "locality": "DeliveryCity", > > "region": "RegionD", > > "code": "523427", > > "country": "NO" > > } > > ] > > }, > > "identities": [ > > { > > "label": "0088", > > "code": "6754238987643" > > } > > ], > > "date": "2024-02-10" > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017", > > "de-zugferd-v2" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "001", > > "issue_date": "2024-02-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One GmbH", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > }, > > "people": [ > > { > > "name": { > > "given": "John", > > "surname": "Doe" > > } > > } > > ], > > "addresses": [ > > { > > "num": "16", > > "street": "Dietmar-Hopp-Allee", > > "locality": "Walldorf", > > "code": "69190", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "telephones": [ > > { > > "num": "+49100200300" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "282741168" > > }, > > "addresses": [ > > { > > "num": "25", > > "street": "Werner-Heisenberg-Allee", > > "locality": "München", > > "code": "80939", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "discounts": [ > > { > > "i": 1, > > "reason": "Promotion discount", > > "amount": "10.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "ext": { > > "untdid-allowance": "88" > > } > > } > > ], > > "charges": [ > > { > > "i": 1, > > "reason": "Freight", > > "amount": "11.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ], > > "ordering": { > > "code": "PO4711", > > "period": { > > "start": "2013-03-10", > > "end": "2013-04-10" > > }, > > "contracts": [ > > { > > "code": "2013-05" > > } > > ], > > "receiving": [ > > { > > "code": "3544" > > } > > ], > > "despatch": [ > > { > > "code": "5433" > > } > > ] > > }, > > "payment": { > > "payee": { > > "name": "Ebeneser Scrooge AS", > > "identities": [ > > { > > "label": "CompanyID", > > "code": "989823401" > > }, > > { > > "label": "0088", > > "code": "2298740918237" > > } > > ] > > }, > > "terms": { > > "due_dates": [ > > { > > "date": "2013-07-20", > > "amount": "2143.19", > > "percent": "100%" > > } > > ], > > "notes": "2 % discount if paid within 2 days\n Penalty percentage 10% from due date" > > }, > > "instructions": { > > "key": "credit-transfer", > > "ref": "0003434323213231", > > "credit_transfer": [ > > { > > "iban": "NO9386011117947", > > "bic": "DNBANOKK" > > } > > ], > > "card": { > > "last4": "1234", > > "holder": "John Doe" > > }, > > "direct_debit": { > > "ref": "1234567890", > > "creditor": "987654321", > > "account": "DE89370400440532013000" > > }, > > "ext": { > > "untdid-payment-means": "30" > > } > > } > > }, > > "delivery": { > > "receiver": { > > "addresses": [ > > { > > "street": "Deliverystreet 2", > > "street_extra": "Side door", > > "locality": "DeliveryCity", > > "region": "RegionD", > > "code": "523427", > > "country": "NO" > > } > > ] > > }, > > "identities": [ > > { > > "label": "0088", > > "code": "6754238987643" > > } > > ], > > "date": "2024-02-10" > > }, > > "totals": { > > "sum": "1800.00", > > "discount": "10.00", > > "charge": "11.00", > > "total": "1801.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1801.00", > > "percent": "19%", > > "amount": "342.19" > > } > > ], > > "amount": "342.19" > > } > > ], > > "sum": "342.19" > > }, > > "tax": "342.19", > > "total_with_tax": "2143.19", > > "payable": "2143.19" > > } > > } > > ``` > > > [accordion] Factur-X B2B Invoice (France) > > > > Factur-X invoice for business-to-business transactions. Factur-X is the French implementation of the same standard as ZUGFeRD. > > > > ```json Factur-X B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "fr-ctc-flow2-v1", > > "fr-facturx-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-ctc-billing-mode": "S2" > > } > > }, > > "supplier": { > > "name": "Provide One SARL", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "498927917" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Avenue des Ternes", > > "locality": "Paris", > > "code": "75017", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ] > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%" > > } > > ], > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2025-06-18", > > "amount": "1944.00" > > } > > ] > > }, > > "instructions": { > > "key": "card", > > "card": {} > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-ctc-flow2-v1", > > "fr-facturx-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "fr-ctc-billing-mode": "S2", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One SARL", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734", > > "ext": { > > "iso-scheme-id": "0009" > > } > > }, > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "498927917", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:498927917" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "498927917" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Avenue des Ternes", > > "locality": "Paris", > > "code": "75017", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer SAS", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345", > > "ext": { > > "iso-scheme-id": "0009" > > } > > }, > > { > > "scope": "legal", > > "type": "SIREN", > > "code": "356000000", > > "ext": { > > "iso-scheme-id": "0002" > > } > > } > > ], > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0225:356000000" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0225", > > "code": "356000000" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "terms": { > > "key": "due-date", > > "due_dates": [ > > { > > "date": "2025-06-18", > > "amount": "1944.00" > > } > > ] > > }, > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1944.00" > > } > > ], > > "instructions": { > > "key": "card", > > "card": {}, > > "ext": { > > "untdid-payment-means": "48" > > } > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "20%", > > "amount": "324.00" > > } > > ], > > "amount": "324.00" > > } > > ], > > "sum": "324.00" > > }, > > "tax": "324.00", > > "total_with_tax": "1944.00", > > "payable": "1944.00", > > "advance": "1944.00", > > "due": "0.00" > > }, > > "notes": [ > > { > > "key": "payment", > > "text": "Conditions de paiement selon les conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMT" > > } > > }, > > { > > "key": "payment-method", > > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > > "ext": { > > "untdid-text-subject": "PMD" > > } > > }, > > { > > "key": "payment-term", > > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > > "ext": { > > "untdid-text-subject": "AAB" > > } > > } > > ] > > } > > ``` > > > [accordion] Chorus Pro B2G Invoice (France) > > > > Chorus Pro invoice for business-to-government transactions in France, used for public procurement. > > > > ```json Chorus Pro B2G Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-choruspro-v1" > > ], > > "uuid": "019783e7-33b1-7000-a1a5-6139e214b447", > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345" > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "standard" > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1944.00" > > } > > ], > > "instructions": { > > "key": "card" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "FR", > > "$addons": [ > > "eu-en16931-v2017", > > "fr-choruspro-v1" > > ], > > "uuid": "019783e7-33b1-7000-a1a5-6139e214b447", > > "type": "standard", > > "series": "SAMPLE", > > "code": "2345", > > "issue_date": "2025-06-18", > > "currency": "EUR", > > "tax": { > > "ext": { > > "fr-choruspro-framework": "A1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One Inc.", > > "tax_id": { > > "country": "FR", > > "code": "43498927917" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "49892791768734", > > "ext": { > > "iso-scheme-id": "0009" > > } > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "1" > > } > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "FR", > > "code": "39356000000" > > }, > > "identities": [ > > { > > "type": "SIRET", > > "code": "35600000012345", > > "ext": { > > "iso-scheme-id": "0009" > > } > > } > > ], > > "addresses": [ > > { > > "num": "1", > > "street": "Rue Sundacsakn", > > "locality": "Saint-Germain-En-Laye", > > "code": "75050", > > "country": "FR" > > } > > ], > > "emails": [ > > { > > "addr": "email@sample.com" > > } > > ], > > "ext": { > > "fr-choruspro-scheme": "1" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "20%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > } > > ], > > "payment": { > > "advances": [ > > { > > "description": "Paid in full", > > "percent": "100%", > > "amount": "1944.00" > > } > > ], > > "instructions": { > > "key": "card", > > "ext": { > > "untdid-payment-means": "48" > > } > > } > > }, > > "totals": { > > "sum": "1620.00", > > "total": "1620.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1620.00", > > "percent": "20%", > > "amount": "324.00" > > } > > ], > > "amount": "324.00" > > } > > ], > > "sum": "324.00" > > }, > > "tax": "324.00", > > "total_with_tax": "1944.00", > > "payable": "1944.00", > > "advance": "1944.00", > > "due": "0.00" > > } > > } > > ``` # VERI*FACTU Spain Source: https://docs.invopop.com/apps/verifactu-spain Convert and send invoices to the Spanish tax authorities using the VERI*FACTU system. > [tab] Description > > > [card] [VERI\*FACTU invoicing guide](/guides/es-verifactu) > > > > View implementation guide › > > > [card] [VERI\*FACTU supplier guide](/guides/es-verifactu-supplier) > > > > View implementation guide › > > | | | > | - | - | > | Developer | [Invopop](https://invopop.com) | > | Category | Government | > | Scope | B2B, B2C | > | Country | [Spain](/compliance/spain) | > > Invopop's **VERI\*FACTU app** is designed to support full compliance with Spain’s VERI\*FACTU e-invoicing regulation. It provides endpoints and workflows to automate supplier onboarding, document upload, identity verification, and invoice generation, enabling businesses and intermediaries to issue e-invoices in accordance with Spanish law. > > **Key features** > > 1. **Workflow automation:** this app makes several workflow actions available to issue invoices and onboard suppliers. > 2. **Legally compliant PDF invoices:** VERI\*FACTU requires QR codes to consult the status of a document with the AEAT. This app will automatically generate compliant PDF invoices. > 3. **VERI\*FACTU XML generation:** this app will generate a legally compliant XML which is included as an attachment in the Silo Entry and sent to the tax agency when issuing an invoice. > 4. **Supplier registration & verification:** this app will generate a registration link where suppliers will upload their identity documents and sign an agreement to issue invoices under their name (also available through the API). > 5. **White-label:** the process allows issuance on behalf of clients (white-label) or directly as an organization, according to user needs. > 6. **QR code:** Generates the VERI\*FACTU QR code according to the AEAT specifications. > > Make sure to check out our VERI\*FACTU implementation guides for instructions on how to [issue invoices](/guides/es-verifactu) and [onboard suppliers](/guides/es-verifactu-supplier). > > ## FAQ > > Invoicing questions > > > [accordion] Should I send credit notes with positive or negative values? > > > > You should send the credit note with the same sign as the original invoice. > > > > In Spain, unlike other countries, credit notes must be submitted to Hacienda with inverse values. Invopop handles this conversion automatically before transforming the credit note into a "factura rectificativa" (corrective invoice). > > > > This means you only need to send the credit note following international standards (with same sign as the invoice). Invopop will automatically adapt it when submitting to Hacienda. > > > > For reference, see the [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) documentation with `type` set to `credit-note`. > > > [accordion] Where do I find Spain-specific GOBL documentation? > > > > See the [Spain tax regime in GOBL](https://docs.gobl.org/regimes/es) for tax categories, NIF rules, and Spanish-specific extensions. Subsystem-specific addons live alongside: [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1), [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1), [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3). > > > [accordion] When should I cancel invoices in VERI\*FACTU? > > > > In VERI\*FACTU, you should only cancel an invoice if it hasn't been handed to the customer nor accepted by the tax authority. Different from a credit note or a corrective, canceling an invoice doesn't produce a second document, which means you don't have a paper to hand to your customer to show the cancellation. That's why, if the invoice has been handed to the customer, we recommend issuing a credit note instead. > > > [accordion] What should I do if an invoice is rejected by VERI\*FACTU? > > > > The response from VERI\*FACTU should contain all the details you need to be able to decide what changes need to be made to the [GOBL](https://docs.gobl.org) document in order to be processed correctly. Make the changes either via the Invopop API or console directly on the same document, and simply resend to the VERI\*FACTU workflow. > > > > Invopop will ensure that the correct substitution document is generated by checking previous attempts and including the correct codes in the new request. > > > [accordion] Once a VERI\*FACTU invoice is issued, can I get the QR code image url? > > > > We do not provide the QR code image itself. The QR code is a visual representation of a URL that you need to generate on your own if you're creating custom PDFs or need it for any other purpose. > > > > The full requirements are in the AEAT [VERI\*FACTU QR specification](https://www.agenciatributaria.es/static_files/AEAT_Desarrolladores/EEDD/IVA/VERI-FACTU/DetalleEspecificacTecnCodigoQRfactura.pdf) PDF document in Spanish. Here you can read that: > > > > > The "QR" code must have a size between 30x30 and 40x40 millimeters and follow the specifications of the ISO/IEC 18004:2015 standard. For the generation of the "QR" code, the M (medium) error correction level shall be used. > > > > Generate your own QR code image as follows: > > > > **1. Obtain the VERI\*FACTU URL** > > > > * **API**: fetch the entry and get `data -> head -> stamps -> verifactu-qr`. > > * **Console**: in the invoice entry click on the kebab `···` menu and select **View Headers**. > > > > **2. Generate the QR image** > > > > Use the VERI\*FACTU URL in a library capable of generating ISO/IEC 18004:2015 QR images (Invopop uses [go-qr](https://github.com/piglig/go-qr)) > > > > **3. Store or use the image** > > > > Store or embed the image in your PDF. You can [see how we generate QR images](https://github.com/invopop/gobl.html/blob/main/components/images/images.go) in our open source gobl.html library. > > > [accordion] What is the VERI\*FACTU chain? > > > > VERI\*FACTU requires every request to be linked with a fingerprint or hash. During the "Generate VERI\*FACTU" and "Cancel VERI\*FACTU" actions, Invopop will automatically find the last request made for the same supplier, and incorporate the chained data into the new request. > > > > It's important to understand that VERI\*FACTU focuses on requests, and not individual documents; a single invoice may have multiple entries in the chain if it has been processed multiple times due to incorrect details, cancellations, or substitutions. > > > > Invopop guarantees the chain is never broken using database transactions and retries in the case of collisions. > > > [accordion] What are the most common errors when submitting invoices to VERI\*FACTU? > > > > The most common errors are related to format issues or invalid extensions, which are already handled in Invopop through the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon validations. These prevent most of the typical problems before they reach the submission stage. > > > > Among the errors that aren't yet validated on our side, the five most frequent ones are: > > > > * `4104: Error en la cabecera: el valor del campo NIF del bloque ObligadoEmision no está identificado.` → The issuer's name must match what's registered for that NIF (tax ID). > > * `4102: El XML no cumple el esquema. Falta informar campo obligatorio.` → Usually occurs when a required field is missing in the XML, often within the Desglose (taxes) section. > > * `1110: El NIF no está identificado en el censo de la AEAT.` → The provided NIF (tax ID) isn't found in the AEAT registry (often due to typos or testing data). > > * `3000: Registro de facturación duplicado.` → Triggered when issuing the same invoice series/code twice. > > * `2001: El NIF del bloque Destinatarios no está identificado en el censo de la AEAT.` → Similar to 1110, but applies to the NIF (tax ID) of the customer. > > > [accordion] In my VERI\*FACTU's XML, DescripcionOperacion is being populated with line item descriptions, how do I change this? > > > > You can set your own description using the notes object in the invoice. The key used for the description needs to be set to general. For example: > > > > ``` > > "notes": [ > > { > > "key": "general", > > "text": "This will appear as DescripcionOperacion" > > } > > ] > > ``` > > > > We generate a default description if the note is not provided which is what you are currently seeing. This default description will neatly cut off before it reaches a length of 500 characters as that is the limit the AEAT imposes. > > > [accordion] What \$tags are supported in GOBL with the 'es-verifactu-v1' addon? > > > > | Key | Text | > > | - | - | > > | `reverse-charge` | Reverse Charge / Inversión del sujeto pasivo. | > > | `simplified-scheme` | Factura expedida por contribuyente en régimen simplificado. | > > | `self-billed` | Facturación por el destinatario. | > > | `travel-agency` | Régimen especial de las agencias de viajes. | > > | `second-hand-goods` | Régimen especial de los bienes usados. | > > | `art` | Régimen especial de los objetos de arte. | > > | `antiques` | Régimen especial de las antigüedades y objetos de colección. | > > | `cash-basis` | Régimen especial del criterio de caja. | > > > [accordion] How do I invoice a line with no VAT in Spain (exempt, not subject, reverse charge or 0%)? > > > > In Spanish VAT there are several legally distinct reasons why a line carries no tax, and VERI\*FACTU requires you to state which one applies. In GOBL you do this with the `key` field of the line's tax combo. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon derives everything else from it. > > > > Pick the key that matches the reason there is no VAT: > > > > | Situation | `key` | Default extension set by the addon | When to use it | > > | - | - | - | - | > > | Exempt under art. 20 LIVA | `exempt` | `es-verifactu-exempt: E1` | Healthcare, education, financial and insurance services, residential rental, second-hand property, games of chance subject to the gaming tax, and the other domestic exemptions in art. 20. | > > | Exempt for another legal reason | `exempt` + `es-verifactu-exempt: E6` | — | Exemptions whose legal basis is outside arts. 20–25. Rare. | > > | Export of goods | `export` | `es-verifactu-exempt: E2`, `es-verifactu-regime: 02` | Goods leaving the EU, including shipments to the Canary Islands, Ceuta and Melilla. Set `E3` for supplies assimilated to exports (ships, aircraft, diplomatic missions) or `E4` for goods in free zones and customs warehouses. | > > | Intra-community supply of goods | `intra-community` | `es-verifactu-exempt: E5` | Goods transported to another EU member state for a customer with a valid VAT number in that state. | > > | Not subject – place of supply | `outside-scope` | `es-verifactu-op-class: N2` | Services to business customers established outside Spain, services localised in the Canary Islands, Ceuta or Melilla, goods that never enter Spain. | > > | Not subject – art. 7, 14 and others | `outside-scope` + `es-verifactu-op-class: N1` | — | Transfer of a going concern, free samples and low-value promotional items, compensation and penalties, refundable deposits, pass-through amounts collected for third parties. | > > | Domestic reverse charge | `reverse-charge` | `es-verifactu-op-class: S2` | Construction and rehabilitation works between businesses, scrap and waste metals, property transfers where the exemption is waived, B2B sales of phones, consoles and laptops to resellers. The invoice must state *Inversión del sujeto pasivo*. | > > > > Do not include `rate` or `percent` on any of these lines. None of these keys admits a rate, so a combo such as `key: exempt` with `rate: general` fails validation (`GOBL-TAX-COMBO-03`) before the invoice is sent. The addon also rejects a combo that carries both an operation class and an exemption code, and requires an operation class on any combo with a percent. > > > > **Examples** > > > > An exempt healthcare service: > > > > ```json theme={"system"} > > { > > "cat": "VAT", > > "key": "exempt" > > } > > ``` > > > > An exempt operation with a legal basis outside art. 20: > > > > ```json theme={"system"} > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { "es-verifactu-exempt": "E6" } > > } > > ``` > > > > Consulting for a business customer in Germany: > > > > ```json theme={"system"} > > { > > "cat": "VAT", > > "key": "outside-scope" > > } > > ``` > > > > Late-payment interest charged to a Spanish customer: > > > > ```json theme={"system"} > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { "es-verifactu-op-class": "N1" } > > } > > ``` > > > > Construction work for a Spanish business, with the customer self-assessing: > > > > ```json theme={"system"} > > { > > "cat": "VAT", > > "key": "reverse-charge" > > } > > ``` > > > > The customer's tax ID does not change the classification: a line with `rate: standard` is taxed at 21% and marked `S1` even when the customer is German. The only automatic case is a tax combo whose `country` field is not `ES`, meaning you are charging another country's VAT on the line. The addon then marks it `N2` for VERI\*FACTU and drops any exemption code, because the operation is not subject to Spanish VAT. > > > > **Is there a 0% rate?** > > > > Not one you can use today. GOBL accepts `key: zero`, which classifies the line as subject and not exempt (`S1`) at 0%, but Spain has no 0% VAT rate in force: the temporary 0% on basic foodstuffs ended on 30 September 2024, and the AEAT validates the rate against the operation date and rejects 0% on later invoices. If your system has a product configured at 0%, it is almost certainly modelling one of the cases in the table above and should be mapped to that key instead. > > > > **Prepaid credit, gift cards and advances** > > > > These are not exempt and should not use any of the keys above. Credit that can only be spent on one kind of supply at a known rate is taxed when sold, as a normal `rate: standard` line. Credit that can be spent on goods or services at different rates is outside the scope of VAT when sold and is taxed on redemption instead; no invoice for a supply is issued at the time of the top-up. Advance payments for a specific future supply are taxed when received, at the rate of that supply. > > > > **Who decides which key applies?** > > > > The classification is a tax determination for the issuer and their advisor. GOBL validates that what you send is internally consistent and will be accepted by the AEAT, but it cannot tell you whether a given product is exempt, not subject or taxed. The same reason must also appear on the printed invoice: an exempt line needs a reference to its legal basis, and a reverse-charge line needs the *Inversión del sujeto pasivo* mention. > > Registering supplier questions > > > [accordion] What are the most common reasons for failing supplier approval? > > > > We reject agreements when: > > > > * The uploaded document is not signed (they upload the unsigned template). > > * Users upload a handwritten signature without an ID. > > * The electronic signature does not belong to the legal representative (or to the *autónomo* themselves). > > * A company's agreement is signed with a personal certificate (e.g. the FNMT's *Certificado Electrónico de Ciudadano*) instead of a representative certificate (e.g. the FNMT's [*Certificado Electrónico de Representante*](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) for that company. > > * The agreement is missing a date or location. > > * The name is entered as an email address. > > > > The job will state the reason for rejection. > > > [accordion] What happens if a supplier does not complete their registration within the allotted wait time? > > > > A KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a reminder to the supplier through a webhook. > > > > The registration link will not expire and the entity will still be able to upload their registration documents which will be validated. Should you choose to run this workflow again using this supplier, the supplier will be accepted or rejected immediately because the required documentation has already been provided and validated. > > > [accordion] What happens if a supplier validation is rejected? > > > > If the uploaded agreement documents were rejected, a KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a notification to the supplier through a webhook within the **Error Handling** section. > > > > Afterwards, if you wish to re-register the supplier with new documents, you must: > > > > 1. Unregister the supplier using the **Unregister Supplier workflow**. > > 2. Re-run the Register supplier workflow. > > > > This will restart the entire registration process. When uploading documents, the previously submitted agreement will appear selected by default. Simply choose a new file and click `Continue` to override the old one. See the image below for reference: > > > > ![Overriding the previously submitted agreement](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-update-agreement.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a20bb8dd02df632d114e0519f4d34899) > > > > Overriding the previously submitted agreement > > > [accordion] What is the minimum information required to register a supplier? > > > > In order to complete the representation agreement you will need to provide the following information: > > > > **Company** > > > > 1. Name > > 2. NIF > > 3. Address > > > > **Legal representative** > > > > 1. Full name > > 2. Government ID type and number > > 3. Address > > > > ```json Spain supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "people": [ > > { > > "name": { > > "given": "Juan", > > "surname": "Pérez González" > > }, > > "identities": [ > > { > > "key": "national", > > "code": "123456789A" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Calle Ejemplo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ] > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > } > > ``` > > > > If the entity is a self-employed individual (*autónomo*), only the information requested in the **Legal representative** section is required. > > > > ```json Spain autónomo supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Juan Pérez González", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "autonomo@example.com" > > } > > ] > > } > > ``` > > > [accordion] What methods are available to sign the PDF supplier agreements? > > > > The supplier can add their electronic signature to the PDF document ([instructions](https://helpx.adobe.com/acrobat/using/signing-pdfs.html)), or sign with a handwritten signature (we recommend using [Adobe's online service](https://www.adobe.com/acrobat/online/sign-pdf.html)). > > > [accordion] What is the file size limit for the documents provided in the supplier registration flow? > > > > Individual documents are limited to a maximum size of 10MB. Uploads exceeding this size will result in an error. > > > [accordion] How do I register a supplier with VERI\*FACTU? > > > > Run the VERI\*FACTU Register Supplier workflow. The legal representative signs the PDF agreement (electronic or handwritten signature with ID) and Invopop registers the supplier with AEAT for invoicing on their behalf. > > More answers in our [Spain FAQ](/faq/spain) section > [tab] Actions > > The following workflow actions will be available once you install and enable this app: > > > [card] Generate VERI\*FACTU XML > > > > 1 > > Convert GOBL Invoices into VERI\*FACTU XML format used in Spain. > > > [card] Send invoice to VERI\*FACTU > > > > 1 > > Send a previously generated VERI\*FACTU document to the tax agency in Spain. > > > [card] Cancel invoice in VERI\*FACTU > > > > Send a cancel request for previously sent VERI\*FACTU Invoice. > > > [card] Register supplier with VERI\*FACTU > > > > 100/mo > > Register VERI\*FACTU parties before issuing invoices on their behalf. > > > [card] Wait for VERI\*FACTU supplier agreement upload > > > > Block the job while waiting for the end-user to complete their registration steps. > > > [card] Wait for VERI\*FACTU supplier approval > > > > Wait for approval that the uploaded documentation is correct. > > > [card] Unregister supplier from VERI\*FACTU > > > > Disables a previously registered party from issuing invoices. > [tab] Workflows > > Invoice workflows > > > [accordion] VERI\*FACTU issue invoice > > > > ```json VERI*FACTU issue invoice workflow theme={"system"} > > { > > "name": "VERI*FACTU issue invoice", > > "description": "Issue a VERI*FACTU invoice and generate PDF with QR", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "59f4dee0-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "ec41cce0-0fc3-11f0-8a81-7911b3ecee3c", > > "name": "Add sequential code", > > "provider": "sequence.enumerate", > > "summary": "Dynamic · VERI*FACTU · 000001", > > "config": { > > "name": "Verifactu", > > "padding": 6, > > "start": 1 > > } > > }, > > { > > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "ef2ce710-bc8e-11ef-8ca1-573cbe7db4cd", > > "name": "Generate VERI*FACTU XML", > > "provider": "verifactu.generate" > > }, > > { > > "id": "61661540-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Send invoice to VERI*FACTU", > > "provider": "verifactu.send" > > }, > > { > > "id": "65312700-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "es", > > "logo_height": 60 > > } > > }, > > { > > "id": "6abb4de0-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "798b1d00-bc8f-11ef-8ca1-573cbe7db4cd", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > > [accordion] VERI\*FACTU cancel invoice > > > > ```json VERI*FACTU cancel invoice workflow theme={"system"} > > { > > "name": "VERI*FACTU cancel invoice", > > "description": "Cancel an invoice via VERI*FACTU", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "2f897e30-3c9c-11f0-8690-a921c0418914", > > "name": "Cancel invoice in VERI*FACTU", > > "provider": "verifactu.cancel" > > }, > > { > > "id": "334ffc10-3c9c-11f0-8690-a921c0418914", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "384cfe20-3c9c-11f0-8690-a921c0418914", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Party workflows > > > [accordion] VERI\*FACTU register supplier > > > > ```json VERI*FACTU register supplier workflow theme={"system"} > > { > > "name": "VERI*FACTU register supplier", > > "description": "Register a supplier with VERI*FACTU", > > "schema": "org/party", > > "steps": [ > > { > > "id": "74b9cf20-da92-11f0-864b-8d842f7d4ab2", > > "name": "Verify Spanish Tax ID", > > "provider": "gov-es.lookup.verify" > > }, > > { > > "id": "554c7040-66d7-11f0-a392-dfb6c99d6698", > > "name": "Register supplier with VERI*FACTU", > > "provider": "verifactu.register", > > "next": [] > > }, > > { > > "id": "62148880-66d7-11f0-a392-dfb6c99d6698", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > }, > > "next": [] > > }, > > { > > "id": "5b924600-66d7-11f0-a392-dfb6c99d6698", > > "name": "Wait for VERI*FACTU supplier agreement upload", > > "provider": "verifactu.wait.upload", > > "next": [] > > }, > > { > > "id": "6bec1080-66d7-11f0-a392-dfb6c99d6698", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `registered`{.state .registered}", > > "config": { > > "state": "registered" > > }, > > "next": [] > > }, > > { > > "id": "670d1dc0-66d7-11f0-a392-dfb6c99d6698", > > "name": "Wait for VERI*FACTU supplier approval", > > "provider": "verifactu.wait.approval", > > "next": [] > > } > > ], > > "rescue": [ > > { > > "id": "4be625f0-da6d-11f0-864b-8d842f7d4ab2", > > "name": "Unregister supplier from VERI*FACTU", > > "provider": "verifactu.unregister" > > }, > > { > > "id": "535bf030-da6d-11f0-864b-8d842f7d4ab2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `rejected`{.state .rejected}", > > "config": { > > "state": "rejected" > > } > > } > > ] > > } > > ``` > > > [accordion] Unregister VERI\*FACTU supplier > > > > ```json VERI*FACTU unregister supplier workflow theme={"system"} > > { > > "name": "VERI*FACTU unregister supplier", > > "description": "Unregister a supplier from VERI*FACTU", > > "schema": "org/party", > > "steps": [ > > { > > "id": "8a613610-67ba-11f0-bcaf-170efff782a9", > > "name": "Unregister supplier from VERI*FACTU", > > "provider": "verifactu.unregister" > > }, > > { > > "id": "96a6b0d0-67ba-11f0-bcaf-170efff782a9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `void`{.state .void}", > > "config": { > > "state": "void" > > } > > } > > ], > > "rescue": [ > > { > > "id": "e8d2a6b0-67bb-11f0-bcaf-170efff782a9", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [tab] Documents > > Invoices: > > > [accordion] B2C Simplified Invoice > > > > Simplified invoices are used for B2C transactions when the customer is not a business. The transaction amount should be under €400 (VAT included) with some [exceptions](https://sede.agenciatributaria.gob.es/Sede/iva/facturacion-registro/facturacion-iva/tipos-factura.html) in which this threshold is increased to €3,000. > > > > To create a simplified VERI\*FACTU invoice, include the `simplified` tag in your GOBL document with the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon. > > > > ```json B2C Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1800.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F2" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a standard tax" > > } > > ] > > } > > ``` > > > [accordion] B2B Standard Invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The transaction amount is €400 VAT included or above, or the customer requires a full invoice. > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > To create a regular VERI\*FACTU invoice, include the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon and ensure the `customer` field contains valid tax identification details. The addon will automatically set the document type to `F1` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > > [!NOTE] > > > > > > The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` NIF or VAT ID must be valid. > > > > ```json B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "004", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1800.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a exempt tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "004", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a exempt tax" > > } > > ] > > } > > ``` > > > [accordion] B2B Services EU Client (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge VERI\*FACTU invoice, use the tax key `reverse-charge` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the operation class to `S2` (Subject and Not Exempt - With reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json B2B Intra-community Services invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000001", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge" > > } > > ], > > "total": "1800.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with reverse charge" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000001", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "es-verifactu-op-class": "S2", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "es-verifactu-op-class": "S2", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with reverse charge" > > } > > ] > > } > > ``` > > > [accordion] B2B Goods EU Client (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country (Spain) and subject to VAT in the destination country. > > > > To create an intra-community supply VERI\*FACTU invoice, use the tax key `intra-community` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E5` ([Artículo 25 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a25)) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies, no VAT is charged in Spain. The customer accounts for VAT in their destination country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Intra-community goods invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000003", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Goods", > > "price": "90.00" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community" > > } > > ], > > "total": "1800.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a intra-community" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000003", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "DE", > > "code": "111111125" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Goods", > > "price": "90.00" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "es-verifactu-exempt": "E5", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "es-verifactu-exempt": "E5", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a intra-community" > > } > > ] > > } > > ``` > > > [accordion] B2B Services International Client (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope VERI\*FACTU invoice, use the tax key `outside-scope` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the operation class to `N2` (Not Subject - Due to location rules) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of Spanish VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json B2B International Services invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000002", > > "issue_date": "2025-11-17", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope" > > } > > ], > > "total": "1800.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a outside-scope tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000002", > > "issue_date": "2025-11-17", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "es-verifactu-op-class": "N2", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "es-verifactu-op-class": "N2", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a outside-scope tax" > > } > > ] > > } > > ``` > > > [accordion] B2B Goods International Client (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export VERI\*FACTU invoice, use the tax key `export` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E2` ([Artículo 21 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a21)) and regime code to `02` (Export) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from Spanish VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json B2B International Goods invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000004", > > "issue_date": "2025-11-17", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Goods", > > "price": "90.00" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export" > > } > > ], > > "total": "1800.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a export" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "sett/000004", > > "issue_date": "2025-11-17", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "SG", > > "code": "199912345R" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Goods", > > "price": "90.00" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "es-verifactu-exempt": "E2", > > "es-verifactu-regime": "02" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "es-verifactu-exempt": "E2", > > "es-verifactu-regime": "02" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a export" > > } > > ] > > } > > ``` > > > [accordion] B2B Exempt E1 Invoice > > > > Exempt `E1` invoices are used for B2B transactions that are exempt from VAT pursuant to [Artículo 20 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a20), which covers exemptions in internal operations. > > > > To create an exempt E1 VERI\*FACTU invoice, use the tax key `exempt` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E1` when the silo entry is built. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` NIF must be valid. > > > > ```json B2B Exempt E1 Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "004", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt" > > } > > ], > > "total": "1800.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a exempt tax" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "004", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "es-verifactu-exempt": "E1", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "es-verifactu-exempt": "E1", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1800.00", > > "payable": "1800.00" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "This is a sample invoice with a exempt tax" > > } > > ] > > } > > ``` > > > [accordion] B2C One-Stop-Shop Invoice > > > > One-Stop-Shop (OSS) invoices are used for B2C distance sales of goods and electronically supplied services to consumers in other EU member states when the supplier is registered under the OSS scheme. > > > > To create an OSS VERI\*FACTU invoice, include the `simplified` tag in your GOBL document with the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon, give the `customer` an address in the destination member state without a tax ID, and set `country` on each line's VAT to that state with the `es-verifactu-regime` extension `17`. The invoice is treated as a simplified invoice (document type `F2`), VAT is calculated at the destination country's rate, and the operation is reported as not subject to Spanish VAT under the OSS regime. > > > > > [!NOTE] > > > > > > OSS allows suppliers to register for VAT in one EU member state and account for VAT on all EU distance sales through that single registration. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and enrolled in the OSS scheme. > > > > ```json B2C One Stop Shop Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "004", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Anna Müller", > > "addresses": [ > > { > > "num": "12", > > "street": "Rosenthaler Straße", > > "locality": "Berlin", > > "code": "10119", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "anna.mueller@example.de" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Wireless headphones", > > "price": "149.00", > > "unit": "item" > > }, > > "sum": "298.00", > > "taxes": [ > > { > > "cat": "VAT", > > "country": "DE", > > "rate": "standard", > > "ext": { > > "es-verifactu-regime": "17" > > } > > } > > ], > > "total": "298.00" > > } > > ], > > "notes": [ > > { > > "key": "general", > > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "code": "004", > > "issue_date": "2024-11-13", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F2" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Anna Müller", > > "addresses": [ > > { > > "num": "12", > > "street": "Rosenthaler Straße", > > "locality": "Berlin", > > "code": "10119", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "anna.mueller@example.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Wireless headphones", > > "price": "149.00", > > "unit": "item" > > }, > > "sum": "298.00", > > "taxes": [ > > { > > "cat": "VAT", > > "country": "DE", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "es-verifactu-op-class": "N2", > > "es-verifactu-regime": "17" > > } > > } > > ], > > "total": "298.00" > > } > > ], > > "totals": { > > "sum": "298.00", > > "total": "298.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "country": "DE", > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "N2", > > "es-verifactu-regime": "17" > > }, > > "base": "298.00", > > "percent": "19%", > > "amount": "56.62" > > } > > ], > > "amount": "56.62" > > } > > ], > > "sum": "56.62" > > }, > > "tax": "56.62", > > "total_with_tax": "354.62", > > "payable": "354.62" > > }, > > "notes": [ > > { > > "key": "general", > > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > > } > > ] > > } > > ``` > > > [accordion] Credit note (rectificativa por diferencias) > > > > ```json Rectificativa por diferencias theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", > > "type": "credit-note", > > "series": "CN", > > "issue_date": "2025-05-29", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "issue_date": "2024-11-13", > > "series": "SAMPLE", > > "code": "004" > > } > > ], > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1800.00" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", > > "type": "credit-note", > > "series": "CN", > > "issue_date": "2025-05-29", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "issue_date": "2024-11-13", > > "series": "SAMPLE", > > "code": "004" > > } > > ], > > "tax": { > > "ext": { > > "es-verifactu-correction-type": "I", > > "es-verifactu-doc-type": "R1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > } > > } > > ``` > > > [accordion] Corrective invoice (rectificativa por sustitución) > > > > ```json Rectificativa por sustitución theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "corrective", > > "series": "CO", > > "issue_date": "2025-05-29", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "issue_date": "2024-11-13", > > "series": "SAMPLE", > > "code": "004", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > } > > } > > ], > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1800.00" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "corrective", > > "series": "CO", > > "issue_date": "2025-05-29", > > "currency": "EUR", > > "preceding": [ > > { > > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > > "type": "standard", > > "issue_date": "2024-11-13", > > "series": "SAMPLE", > > "code": "004", > > "tax": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > } > > } > > ], > > "tax": { > > "ext": { > > "es-verifactu-correction-type": "S", > > "es-verifactu-doc-type": "R1" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "1800.00" > > } > > ], > > "totals": { > > "sum": "1800.00", > > "total": "1800.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "1800.00", > > "percent": "21.0%", > > "amount": "378.00" > > } > > ], > > "amount": "378.00" > > } > > ], > > "sum": "378.00" > > }, > > "tax": "378.00", > > "total_with_tax": "2178.00", > > "payable": "2178.00" > > } > > } > > ``` > > > [accordion] Replacement invoice (factura de canje) > > > > ```json Factura de canje theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "type": "standard", > > "tax": { > > "tags": [ > > "replacement" > > ] > > }, > > "series": "FC", > > "issue_date": "2026-02-26", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-02-20", > > "series": "FS", > > "code": "001" > > } > > ], > > "supplier": { > > "name": "Easor Software Solutions S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B24830515" > > }, > > "addresses": [ > > { > > "num": "532", > > "street": "Avenida Diagonal", > > "locality": "Barcelona", > > "region": "Barcelona", > > "code": "08006", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Cliente Ejemplo S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "quantity": "1", > > "item": { > > "name": "Servicio de consultoría", > > "price": "500.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "$tags": [ > > "replacement" > > ], > > "type": "standard", > > "series": "FC", > > "issue_date": "2026-02-26", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2026-02-20", > > "series": "FS", > > "code": "001" > > } > > ], > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F3" > > } > > }, > > "supplier": { > > "name": "Easor Software Solutions S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B24830515" > > }, > > "addresses": [ > > { > > "num": "532", > > "street": "Avenida Diagonal", > > "locality": "Barcelona", > > "region": "Barcelona", > > "code": "08006", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "Cliente Ejemplo S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B63272603" > > } > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Servicio de consultoría", > > "price": "500.00" > > }, > > "sum": "500.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "500.00" > > } > > ], > > "totals": { > > "sum": "500.00", > > "total": "500.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "500.00", > > "percent": "21.0%", > > "amount": "105.00" > > } > > ], > > "amount": "105.00" > > } > > ], > > "sum": "105.00" > > }, > > "tax": "105.00", > > "total_with_tax": "605.00", > > "payable": "605.00" > > } > > } > > ``` > > > [accordion] B2C Hotel + IEET (Catalonia tourist tax) > > > > The Catalan tourist tax (IEET, *Impost sobre les Estades en Establiments Turístics*) is a regional tax administered by the Agència Tributària de Catalunya — not the AEAT — so it is **not** classified as a tax in the VERI\*FACTU record. Hotels declare it directly to the Generalitat through the quarterly Modelo 950. > > > > Model the IEET as a document-level [`charge`](https://docs.gobl.org/draft-0/bill/invoice#charge) with `key: "tax"`. This keeps it outside the VAT base (Art. 35 of Llei 5/2017 requires it to be shown separately from the consideration) and lets it flow into the invoice's `ImporteTotal` for VERI\*FACTU without being reported as a tax category. > > > > > [!NOTE] > > > > > > Do not model the IEET as a `VAT` tax line — it is a fixed amount per night, not a percentage, and should not be reported to the AEAT. The `reason` field on the charge is what appears on the guest's invoice, so include the establishment type, location, nights, and rate for a clear breakdown. > > > > ```json B2C Hotel + IEET (Catalonia tourist tax) theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "series": "SAMPLE", > > "issue_date": "2026-05-06", > > "supplier": { > > "name": "Hotel Barcelona Example SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "locality": "Barcelona", > > "code": "08001", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "John Smith", > > "addresses": [ > > { > > "locality": "London", > > "country": "GB" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "3", > > "item": { > > "name": "Double room — 3 nights", > > "price": "180.00", > > "unit": "day" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > } > > ], > > "charges": [ > > { > > "key": "tax", > > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > > "amount": "10.20" > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "es-verifactu-v1" > > ], > > "$tags": [ > > "simplified" > > ], > > "type": "standard", > > "series": "SAMPLE", > > "issue_date": "2026-05-06", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F2" > > } > > }, > > "supplier": { > > "name": "Hotel Barcelona Example SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "locality": "Barcelona", > > "code": "08001", > > "country": "ES" > > } > > ] > > }, > > "customer": { > > "name": "John Smith", > > "addresses": [ > > { > > "locality": "London", > > "country": "GB" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "3", > > "item": { > > "name": "Double room — 3 nights", > > "price": "180.00", > > "unit": "day" > > }, > > "sum": "540.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "10.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > } > > } > > ], > > "total": "540.00" > > } > > ], > > "charges": [ > > { > > "i": 1, > > "key": "tax", > > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > > "amount": "10.20" > > } > > ], > > "totals": { > > "sum": "540.00", > > "charge": "10.20", > > "total": "550.20", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01" > > }, > > "base": "540.00", > > "percent": "10.0%", > > "amount": "54.00" > > } > > ], > > "amount": "54.00" > > } > > ], > > "sum": "54.00" > > }, > > "tax": "54.00", > > "total_with_tax": "604.20", > > "payable": "604.20" > > } > > } > > ``` > > Suppliers: > > > [accordion] Spanish company > > > > To register a company supplier in Spain you must provide: > > > > * **Company information**: name, NIF (tax identification number), and address > > * **Legal representative information**: full name, government ID type and number (DNI, NIE, or passport), and address > > > > The legal representative is the person authorized to sign the representation agreement on behalf of the company. > > > > > [!NOTE] > > > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > > > ```json Spain supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "people": [ > > { > > "name": { > > "given": "Juan", > > "surname": "Pérez González" > > }, > > "identities": [ > > { > > "key": "national", > > "code": "123456789A" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Calle Ejemplo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ] > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > } > > ``` > > > [accordion] Spanish autónomo > > > > An *autónomo* is a self-employed individual in Spain who operates as a sole proprietor. To register them, a NIF (tax id number) with the corresponding full name and address must be provided. > > > > Unlike company suppliers, autónomos do not require separate legal representative information since the individual is the authorized signatory. > > > > > [!NOTE] > > > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > > > ```json Spain autónomo supplier example theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/org/party", > > "name": "Juan Pérez González", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "autonomo@example.com" > > } > > ] > > } > > ``` *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the VERI\*FACTU Spain App → # Invopop CLI Source: https://docs.invopop.com/cli/index Install the Invopop command-line tool, sign in with your account, and check, store and send documents from your terminal or through an AI assistant. The Invopop CLI is a small program you run in your terminal. It lets you do most of what the [Console](/console/index) does without opening a browser: check an invoice, send it through a workflow, look up a job, or reserve the next invoice number. It is also the easiest way to let an AI assistant such as Claude Code work in your workspace on your behalf. You don't need to be a developer to use it. If you can open a terminal and paste a line of text, you can use the CLI. ![Terminal window showing the Invopop CLI help screen with the commands access, auth, ping, sequence, silo, skill and transform](https://mintcdn.com/invopop/OUTewR_WU6t2KZ8F/assets/other/cli.png?fit=max\&auto=format\&n=OUTewR_WU6t2KZ8F\&q=85\&s=c594ee3f4ce43e85abb3b99d906da471) The output of invopop --help, listing the available commands > [!NOTE] > > The CLI is open source at [github.com/invopop/cli](https://github.com/invopop/cli). Everything it does goes through the same public API as the Console, so it can only do what your account is allowed to do. ## Install > [tab] macOS and Linux (Homebrew) > > If you have [Homebrew](https://brew.sh), this is the simplest option and keeps the CLI up to date with your other tools. > > ```bash theme={"system"} > brew install invopop/tap/invopop > ``` > > Homebrew builds the CLI from source the first time, so the install can take a minute. > [tab] Download a release > > Download the file for your computer from the [releases page](https://github.com/invopop/cli/releases). Builds are available for macOS, Linux and Windows. Unpack it and move the `invopop` program somewhere on your `PATH`. > [tab] Go > > ```bash theme={"system"} > go install github.com/invopop/cli/cmd/invopop@latest > ``` Check that it worked with `invopop --help`. You should see the list of commands. ## Sign in The login command opens your browser so you can sign in with the same account you use for the Console. The browser then shows a short code to paste back into the terminal, and the CLI asks which of your workspaces to use by default. ```bash theme={"system"} invopop auth login ``` From then on every command runs in that workspace with the same permissions you have in the Console. The CLI keeps you signed in for a week and renews its access on its own. ```bash theme={"system"} invopop auth status # who you are and which workspace is active invopop auth workspace # pick a different default workspace invopop auth logout ``` If you belong to several workspaces, name one directly with its slug. Use `sandbox/` plus the slug for a sandbox, since live and sandbox workspaces can share a name. To run a single command elsewhere without changing your default, add `-w`: ```bash theme={"system"} invopop auth workspace sandbox/my-company invopop -w my-company silo entries list ``` > [!NOTE] > > Sandbox and live workspaces use exactly the same commands. Check `invopop auth status` before doing anything in a live workspace. > [accordion] Using an API key instead of signing in > > For scripts that run without a person present, use an [API key](/console/api-keys) from the Console instead. Put it in the `INVOPOP_TOKEN` environment variable or pass it with `--token`. An API key already belongs to one workspace, so it cannot be combined with `-w`. ## Everyday tasks The CLI works with [GOBL](https://docs.gobl.org) documents, the same format the API uses, written in JSON or in YAML. Save this as `invoice.yaml` to follow along. There are no totals because Invopop calculates them for you. ```yaml invoice.yaml theme={"system"} $schema: "https://gobl.org/draft-0/bill/invoice" currency: "EUR" issue_date: "2026-10-14" series: "SAMPLE" code: "0001" supplier: name: "My Company S.L." tax_id: country: "ES" code: "B98602642" customer: name: "Customer Ltd" tax_id: country: "ES" code: "A58818501" lines: - quantity: 1 item: name: "Consulting services" price: "100.00" taxes: - cat: "VAT" rate: "standard" ``` **Check a document.** This fills in the totals, validates the document against the rules of the country involved and prints the result. Nothing is stored, so run it as often as you like. If something is wrong, such as an invalid tax ID, you get a message saying which field to fix. ```bash theme={"system"} invopop silo build --file invoice.yaml ``` **Store a document.** Every stored document is a *silo entry*. The response includes an `id` you'll need later. Giving the entry a `--key` of your own, such as the invoice number in your system, lets you find it again by that key and makes the command safe to repeat. ```bash theme={"system"} invopop silo entries create --file invoice.yaml --key my-invoice-0001 invopop silo entries fetch-key my-invoice-0001 ``` **Send it through a workflow.** Workflows are the sequences of steps you set up in the Console. List them to find the `id` you want, then create a *job*, which runs one entry through one workflow. With `--wait`, the CLI waits up to that many seconds and shows you the outcome, including a `faults` list if a step failed. You can also pass `--file` instead of an entry ID and the CLI stores the document for you. ```bash theme={"system"} invopop transform workflows list invopop transform jobs create --workflow-id WORKFLOW_ID --silo-entry-id ENTRY_ID --wait 30 ``` **Download a generated file.** Workflows often attach files to the entry, such as the invoice PDF or the XML sent to the tax authority. Fetch the entry to see its `files`, then download one. This is the one command that writes to disk instead of printing JSON. ```bash theme={"system"} invopop silo entries fetch ENTRY_ID invopop silo files download ENTRY_ID FILE_ID ``` **Reserve invoice numbers.** If Invopop manages your numbering, each call hands out the next unused number in a [series](/console/series). ```bash theme={"system"} invopop sequence series list invopop sequence entries create SERIES_ID ``` Results always come back as JSON, so they are easy to read, paste into a support ticket or pass to another tool. Every command accepts `--help` for the full list of options. ## Use with AI agents Because every command is a line of text with JSON output, an assistant such as [Claude Code](https://claude.com/claude-code) can drive the CLI just as a person would. You describe what you want in plain language and the agent works out which commands to run. The agent never gets a key of its own. It uses your sign-in, so it can only do what you are allowed to do, in the workspace you chose. You stay in charge of logging in: the agent cannot complete the browser sign-in for you and should never ask for the code the browser shows. The CLI ships with a skill that teaches Claude Code how Invopop works. Install it, then type `/invopop` in Claude Code followed by what you need, for example "check whether invoice.yaml is valid and tell me what's wrong". ```bash theme={"system"} invopop skill install ``` > [!TIP] > > Start in a sandbox workspace, and ask the agent to run `invopop silo build` and show you the result before it sends anything. Documents sent from a live workspace are real and may be legally binding. Any other assistant that can run terminal commands can use the CLI in the same way. Print the skill with `invopop skill show` and paste it into that tool's instructions. For agents that call the API directly, see the [agent primer](/llms). # E-invoicing in the Americas Source: https://docs.invopop.com/compliance/americas Clearance-based continuous transaction control (CTC) models dominate the American continent and each country operates its own tax authority infrastructure ## Executive summary The Americas share a distinctive approach to e-invoicing: every country in the region operates a **clearance model**, also known as [continuous transaction control (CTC)](/compliance/glossary). Under this architecture, each invoice must be submitted to the national tax authority and formally authorized before it becomes legally valid. No invoice can reach a customer until the government has approved the transaction, giving tax authorities real-time visibility into all business activity. Unlike Europe or Asia-Pacific, there is no shared international standard across the Americas. Each country has developed its own XML format, tax authority infrastructure, and certification process. Brazil uses NF-e and NFS-e through SEFAZ, Mexico relies on CFDI through the SAT, Colombia issues FEV through DIAN, and Argentina uses Factura Electrónica through ARCA. Colombia is the only country in the region that has adopted an international format — OASIS UBL 2.1. The region's e-invoicing systems are among the most mature in the world. Brazil and Mexico have had mandatory e-invoicing since 2008 and 2014 respectively, making Latin America the global pioneer of clearance-based models. Newer entrants like Chile and Peru are following the same pattern. ## Common standards and formats Each country in the Americas uses a **country-specific XML schema** rather than an international standard like UBL or Peppol. | Country | Format | Tax authority | | - | - | - | | Argentina | XML (ARCA schema) | [ARCA](https://www.afip.gob.ar) | | Brazil | Local XML (NF-e, NFS-e, NFC-e, NFCom, CT-e, MDF-e) | [RFB / SEFAZ](https://www.gov.br/receitafederal/pt-br) | | Chile | DTE XML | [SII](https://homer.sii.cl) | | Colombia | OASIS UBL 2.1 (DIAN schema) | [DIAN](https://www.dian.gov.co) | | Mexico | CFDI (XML) | [SAT](https://sat.gob.mx) | | Peru | UBL 2.1 (SUNAT schema) | [SUNAT](https://www.sunat.gob.pe) | Colombia stands out as the only country in the region to adopt the OASIS UBL standard, applying a DIAN-specific schema on top. ## Compliance model All six countries use the **clearance model (CTC)**. This is the defining characteristic of e-invoicing in the Americas. Under CTC, the tax authority acts as an intermediary between supplier and buyer. The typical flow is: 1. The supplier generates an invoice in the required XML format. 2. The invoice is submitted electronically to the tax authority (or an authorized intermediary). 3. The tax authority validates the invoice and returns an authorization code. 4. Only after authorization does the invoice become legally valid and deliverable to the buyer. Because every invoice passes through the tax authority in real time, **e-reporting is fully integrated into the invoicing process**. There are no separate periodic reporting submissions — each issued invoice automatically serves as a tax report. Mexico adds a unique layer to this model by using **PACs (Proveedores Autorizados de Certificación)**, authorized private intermediaries that validate and certify invoices before forwarding them to SAT. ## Invopop countries in this region [Argentina](/compliance/argentina) Factura Electrónica, ARCA ![Argentina flag](https://assets.invopop.com/flags/ar.svg) [Brazil](/compliance/brazil) NF-e / NFS-e / NFC-e, SEFAZ ![Brazil flag](https://assets.invopop.com/flags/br.svg) [Chile](/compliance/chile) DTE, SII ![Chile flag](https://assets.invopop.com/flags/cl.svg) [Colombia](/compliance/colombia) FEV (UBL 2.1), DIAN ![Colombia flag](https://assets.invopop.com/flags/co.svg) [Mexico](/compliance/mexico) CFDI, SAT ![Mexico flag](https://assets.invopop.com/flags/mx.svg) [Peru](/compliance/peru) UBL 2.1, SUNAT ![Peru flag](https://assets.invopop.com/flags/pe.svg) # Invoicing compliance in Argentina Source: https://docs.invopop.com/compliance/argentina Argentina's mandatory e-invoicing requirements, Factura Electrónica implementation, and e-reporting obligations for B2B, B2C, and B2G transactions > [card] [Argentina's e-invoicing regulation timeline](/timelines/argentina) > > View current and upcoming regulation → > [accordion] 🇦🇷 Invopop resources for Argentina > > | | | > | - | - | > | Compliance | [Invoicing compliance in Argentina](/compliance/argentina) [Compliance timeline](/timelines/argentina) | > | Apps | [Argentina](/apps/argentina) | > | Guides | [ARCA supplier onboarding](/guides/ar-arca-suppliers) [ARCA invoices](/guides/ar-arca-invoices) | > | FAQ | [Argentina FAQ](/faq/argentina) | > | GOBL | [Argentina Tax Regime](https://docs.gobl.org/regimes/ar) [Argentina ARCA Addon](https://docs.gobl.org/addons/ar-arca-v4) | ## Executive summary Argentina operates a mandatory electronic invoicing system through **ARCA (Agencia de Recaudación y Control Aduanero)**, formerly known as AFIP until November 2024, the national tax and customs authority. The system uses a **clearance model** (also known as continuous transaction control or CTC), where each invoice must be submitted to ARCA for validation and authorization in real time before it becomes legally valid. The Argentine e-invoicing system requires all registered taxpayers to issue electronic invoices (facturas electrónicas). Being a registered taxpayer means you hold a **CUIT (Clave Única de Identificación Tributaria)**, Argentina's tax identification number, and have a **Clave Fiscal**, a digital key used to access ARCA services online. Taxpayers can issue e-invoices either through ARCA's web portal or by integrating with **WSFE (Webservices de Factura Electrónica)**, ARCA's web service infrastructure. E-invoices are generated in **XML format** conforming to ARCA's prescribed schema (not a global standard like UBL). Each invoice requires a **CAE (Código de Autorización Electrónico)**, a 14-digit authorization code issued by ARCA that validates the invoice and must be included on the invoice for it to be legally valid. The system covers B2B, B2C, B2G, and tourism transactions across various invoice types (A, B, C, E, T, and others). E-reporting in Argentina is fully integrated into the electronic invoicing system — see [E-reporting](#e-reporting) below. ## Invoicing in Argentina > [accordion] Factura Electrónica A (B2B, VAT-registered businesses) > > Factura A is used by VAT-registered businesses (Responsables Inscriptos) when selling to other VAT-registered entities. These invoices include detailed VAT breakdowns and allow the buyer to claim input VAT credits. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | XML (ARCA schema) | > | **Infrastructure** | [ARCA](https://www.afip.gob.ar) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Code** | 001 (Invoice), 002 (Debit Note), 003 (Credit Note) | > | **Scope & Deadline** | Mandatory for all registered taxpayers | > | **Agency** | [ARCA](https://www.afip.gob.ar) | > | **Invopop Support** | Available - [ARCA Supplier onboarding](/guides/ar-arca-suppliers), [ARCA Invoices](/guides/ar-arca-invoices) | > [accordion] Factura Electrónica B (B2C, non-VAT-registered clients) > > Factura B is used when selling to non-VAT-registered clients (final consumers or Monotributistas). VAT is included in the price but not separately detailed for input credit purposes. > > | | | > | - | - | > | **Models** | B2C, B2B | > | **Format** | XML (ARCA schema) | > | **Infrastructure** | [ARCA](https://www.afip.gob.ar) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Code** | 006 (Invoice), 007 (Debit Note), 008 (Credit Note) | > | **Scope & Deadline** | Mandatory for all registered taxpayers | > | **Agency** | [ARCA](https://www.afip.gob.ar) | > | **Invopop Support** | Available - [ARCA Supplier onboarding](/guides/ar-arca-suppliers), [ARCA Invoices](/guides/ar-arca-invoices) | > [accordion] Factura Electrónica C (Monotributistas) > > Factura C is used by taxpayers under the Simplified Regime (Monotributo), a simplified tax scheme for small businesses and self-employed individuals. These invoices do not discriminate VAT. > > | | | > | - | - | > | **Models** | B2C, B2B | > | **Format** | XML (ARCA schema) | > | **Infrastructure** | [ARCA](https://www.afip.gob.ar) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Code** | 011 (Invoice), 012 (Debit Note), 013 (Credit Note) | > | **Scope & Deadline** | Mandatory for Monotributistas | > | **Agency** | [ARCA](https://www.afip.gob.ar) | > | **Invopop Support** | Available - [ARCA Supplier onboarding](/guides/ar-arca-suppliers), [ARCA Invoices](/guides/ar-arca-invoices) | > [accordion] Factura Electrónica E (Exports) > > Factura E is used for export operations of goods and services. When exporting services that meet certain conditions, ARCA treats them like goods exports, meaning the taxpayer is exempt from VAT and can claim back VAT paid on local purchases. > > | | | > | - | - | > | **Models** | B2B (Export) | > | **Format** | XML (ARCA schema) | > | **Infrastructure** | [ARCA](https://www.afip.gob.ar) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Code** | 019 (Invoice), 020 (Debit Note), 021 (Credit Note) | > | **Scope & Deadline** | Mandatory for export operations | > | **Agency** | [ARCA](https://www.afip.gob.ar) | > | **Invopop Support** | Available - [ARCA Supplier onboarding](/guides/ar-arca-suppliers), [ARCA Invoices](/guides/ar-arca-invoices) | > [accordion] Factura Electrónica T (Tourism) > > Factura T is issued by hotels and tourism providers to non-resident tourists. It is dispatched through ARCA's WSCT (Web Service de Comprobantes T) service, and ARCA automatically reimburses the 21% VAT on qualifying accommodation items so the tourist pays only the net amount. > > | | | > | - | - | > | **Models** | Tourism (B2C, foreign consumers) | > | **Format** | XML (ARCA WSCT schema) | > | **Infrastructure** | [ARCA](https://www.afip.gob.ar) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Code** | 195 (Invoice), 196 (Debit Note), 197 (Credit Note) | > | **Scope & Deadline** | Hotels and tourism providers serving non-resident tourists | > | **Agency** | [ARCA](https://www.afip.gob.ar) | > | **Invopop Support** | Available - [ARCA Supplier onboarding](/guides/ar-arca-suppliers), [ARCA Invoices](/guides/ar-arca-invoices) | ## E-reporting E-reporting is fully integrated into Argentina's electronic invoicing system rather than being a separate process. Under the clearance model, every electronic invoice is generated, submitted to ARCA, validated, and authorized in real time. Only upon receiving the CAE (Código de Autorización Electrónico) is the invoice legally valid and simultaneously reported to the tax authority. This means **issuing an e-invoice automatically fulfills reporting obligations** without requiring separate periodic submissions. This real-time architecture gives ARCA continuous visibility into all business transactions, enabling automated VAT reconciliation and streamlined audits. ## Regulation > [accordion] Invoice numbering system > > Argentine invoices use a two-part numbering system: **XXXXX-YYYYYYYY** > > * **Punto de Venta (POS)**: A 5-digit code linked to the electronic invoicing method (e.g., Web Service, ARCA portal). Each POS has its own independent sequence and is listed in an official ARCA table. > * **Sequential Number**: An 8-digit code starting from `00000001` and increasing by 1 with each invoice. The sequence must be continuous with no skipped or repeated numbers. > > The invoice type (A, B, C, etc.) and POS together define the invoice series. For example: > > * Factura A from POS 0001: `00001-00000001` > * Factura B from POS 0002: `00002-00000001` > [accordion] Invoice classification > > | Letter | Issuer | Recipient | > | - | - | - | > | **A** | IVA Registered | Other IVA Registered; or IVA Non-Registered | > | **B** | IVA Registered | Final consumers; IVA exempt; non-responsible; Monotributo; "Non-categorized" | > | **C** | IVA Non-Registered, IVA Exempt, Monotributo | Anyone | > | **E** | Any obligated subject | Foreign importers (export operations, including special customs area) | > | **T** | Hotels and tourism providers | Non-resident tourists (accommodation and travel services) | > > Each letter class uses an **independent numbering sequence**. > [accordion] Main tax types in Argentina > > **IVA (VAT - Impuesto al Valor Agregado)** > > VAT is the primary tax applied to most goods and services. Different rates (alícuotas) apply based on the nature of the product or service: > > | **ARCA code** | **Rate** | **Description** | > | - | - | - | > | 3 | 0% | VAT-exempt sales (exports, exempt activities) | > | 8 | 5% | Special reduced rate | > | 9 | 2.5% | Special reduced rate | > | 4 | 10.5% | Reduced rate (construction, agriculture) | > | 5 | 21% | Standard VAT rate | > | 6 | 27% | Higher rate (utilities, telecom services) | > > Only taxpayers registered as *Responsables Inscriptos* can deduct VAT on their purchases. When VAT is deductible, each invoice line should include the base amount, the alícuota code, the applicable VAT rate percentage, and the resulting tax amount. > > **Other Tax Types** > > | **Tax** | **Description** | **Applies To** | > | - | - | - | > | **IIBB** | Gross income tax (provincial) | Varies by province and activity | > | **Ganancias** | Income tax | Based on net profit | > | **Impuestos Internos** | Internal taxes | Alcohol, tobacco, luxury goods | > > GOBL supports these tax types in its [Argentina tax regime](https://docs.gobl.org/regimes/ar). > [accordion] Recent regulatory changes (2025-2026) > > **Consumer Tax Transparency Regime (General Resolution 5614/2024)** > > Starting January 1, 2025, large companies must itemize VAT and other indirect national taxes on electronic invoices. All other taxpayers must comply by April 1, 2025. > > **Foreign Currency Invoicing (General Resolution 5616/2024)** > > Exchange rate information must be included in electronic invoices of types A, B, C, and E. Implementation timeline: > > * January 15, 2025: WebService technical manuals available > * March 5, 2025: Mobile Invoicing system and electronic receipt platforms updated > * April 15, 2025: Mandatory use of WebService technical manuals > [accordion] Legally required invoice content > > * **CUIT** of both issuer and receiver > * **Invoice number** (Punto de Venta + Sequential Number) > * **CAE (Código de Autorización Electrónico)**: 14-digit authorization code from ARCA > * **VAT Status** (*Tipo de Contribuyente*) of both parties > * **Date and place of issuance** > * **Product/service descriptions** with quantities and unit prices > * **Tax breakdown** (IVA, IIBB if applicable, etc.) with appropriate alícuota codes > * **Total amounts** with separate display of net, taxes, and gross > * **QR code** generated according to ARCA specifications > * **Economic activity code** of the issuer > > For export invoices (Factura E), additional information about the destination country and export regime may be required. > [accordion] Archival period > > Electronic invoices must be archived for a minimum of **10 years** in Argentina. This requirement applies to **both the issuer and the receiver**. The archive must include: > > * The original electronic invoice (XML format) > * The CAE authorization code > * Digital signature and timestamp > * Audit logs of submissions > > Electronic storage is allowed, and the data must reside in Argentina. The archived e-invoices must maintain integrity (unaltered original XML with its digital signature and CAE) and be available for inspection by ARCA upon request. The electronic archive is legally equivalent to a paper original. > [accordion] WSFE web services > > ARCA provides web service infrastructure for automated invoice submission. Currently available web services include: > > * **wsfev1** (Web Service de Factura Electrónica V1): For invoices A, B, C, and M without item detail, supporting CAE and CAEA > * **wsmtxca** (Web Service Factura Electrónica): For invoices A and B with item details, supporting CAE and CAEA > * **wsfexv1** (Web Service de Factura Electrónica de Exportación V1): For type E (export) invoices > * **wsct** (Web Service de Comprobantes T): For type T tourism invoices issued to non-resident tourists > > Authentication requires the WSAA (Webservice de Autenticación y Autorización) to obtain a Ticket de Acceso (TA), which uses an X.509 digital certificate issued by ARCA's Certifying Authority. > [accordion] Exemptions from issuing invoices > > * Government agencies (national, provincial, municipal) that are not state-owned enterprises. > > * Postal/courier services (only for stamp sales and meter-based services). > > * Public telephone companies (only for token/card-based access). > > * Financial entities regulated under Law 21.526 (banks, etc.) — except for specific operations like real estate rentals, safe deposit boxes, and data processing services for third parties. > > * Public passenger transport companies (bus, train, taxi, remis) when access is via numbered tickets/tokens — but taxi/remis drivers must issue full invoices if the customer requests one or if the operation is IVA-taxable. > > * Agricultural producers/cooperatives when the buyer is obligated to issue the supporting document. > > * Entertainment/amusement venues when access is via numbered tickets. > > * Lottery/betting concessionaires (only for that activity). > > * Corporate directors, syndics, and similar officers (only for fees received from the entity, backed by the entity's own receipt). > > * Judicial fee recipients (attorneys, experts, etc.) — only for judicially awarded fees. > > * Non-profit entities under Income Tax Law art. 20 (e), (f), (g), (m). > > * Parking meter token/card sellers. > > * Dependent workers and domestic service providers. > > * Non-IVA-registered subjects making cash-only sales to final consumers under ARS \$10 (or lower provincial threshold), who do not have fiscal controllers. > > * Credit/debit card system issuers/administrators. > > * Individuals renting a single property for ≤ ARS \$1,500/month. > > * Vending machine operators (subject to specific technical requirements for the machine's counter and sealing). > > * Airport concessionaires (for aerodrome usage fees on domestic/international flights). > > > [!NOTE] > > > > Even exempt subjects must comply with invoice obligations from other laws (commercial, civil, accounting, etc.). If they are required to use Fiscal Controllers, they must do so regardless of this exemption. ## FAQ Compliance questions > [accordion] What is a CUIT and Clave Fiscal? > > * **CUIT** (Clave Única de Identificación Tributaria) is Argentina's tax identification number. Every registered taxpayer must have a CUIT to issue electronic invoices. > * **Clave Fiscal** is a digital key used to access ARCA's online services, including the certificate management portal. You need it to generate digital certificates for electronic invoicing. > > Both are obtained through ARCA when you register as a taxpayer. > [accordion] What is the difference between Responsable Inscripto and Monotributista? > > These are two different tax regimes in Argentina: > > **Responsable Inscripto** (Registered Taxpayer): > > * Standard tax regime for most businesses > * Must charge and collect VAT separately > * Can issue Factura A (to other registered taxpayers) and Factura B (to consumers) > * Must file monthly VAT and income tax returns > > **Monotributista**: > > * Simplified tax regime for small businesses and self-employed individuals > * Pays a fixed monthly amount covering VAT and income tax > * Can only issue Factura C > * Cannot deduct VAT on purchases > > Your choice of regime determines which invoice types you can issue. > [accordion] What VAT rates are used in Argentina? > > Argentina has several VAT rates (alícuotas): > > | AFIP Code | Rate | Description | > | - | - | - | > | 3 | 0% | VAT-exempt sales (exports, exempt activities) | > | 9 | 2.5% | Special reduced rate | > | 8 | 5% | Special reduced rate | > | 4 | 10.5% | Reduced rate (construction, agriculture) | > | 5 | 21% | Standard VAT rate (most goods and services) | > | 6 | 27% | Higher rate (utilities, telecom services) | > > The standard rate is 21%, which applies to most goods and services. GOBL's [Argentina tax regime](https://docs.gobl.org/regimes/ar) supports all of these rates. > [accordion] What does it mean that Argentina has a clearance model for invoicing? > > A clearance model (also called real-time validation or continuous transaction control) is a regulatory architecture in which each invoice must be electronically submitted to the tax authority and formally approved before it becomes legally valid. > > In Argentina's case, the issuer submits invoice data to ARCA, which validates it and returns a CAE (Código de Autorización Electrónico). Only with this authorization code can the invoice be legally issued to the customer. This architecture gives ARCA real-time visibility into all business transactions, preventing fraud and enabling automated tax compliance verification. > [accordion] What is the difference between AFIP and ARCA? > > AFIP (Administración Federal de Ingresos Públicos) was Argentina's national tax authority until November 2024. It was then renamed to ARCA (Agencia de Recaudación y Control Aduanero). The organization's functions and systems remain the same—only the name has changed. You may still see references to AFIP in older documentation and systems. > [accordion] What is a CAE code and why is it required? > > The CAE (Código de Autorización Electrónico) is a 14-digit authorization code issued by ARCA that validates an invoice. Every electronic invoice must receive a CAE before it becomes legally valid. The CAE must be displayed on the invoice along with its expiration date (typically 15 days from issuance). > > Without a CAE, an invoice is not legally valid in Argentina, and the issuer cannot claim it as a deductible expense or VAT credit. > [accordion] What invoice types are supported in Argentina? > > Argentina has several invoice types based on the tax classification of both the issuer and the customer: > > * **Factura A**: Issued by registered taxpayers (Responsable Inscripto) to other registered taxpayers. VAT is broken down separately. > * **Factura B**: Issued by registered taxpayers to final consumers, exempt entities, and non-categorized subjects. VAT is included in the total price. > * **Factura C**: Issued by monotributistas (simplified tax regime) to any type of customer. No VAT breakdown. > * **Factura E**: Used for export operations of goods and services (support coming soon). > * **Factura T**: Issued by hotels and tourism providers to non-resident tourists. ARCA automatically reimburses the 21% VAT on qualifying accommodation items. > > Invopop supports all of these invoice types through the Argentina app, except Factura E, which is coming soon. > [accordion] Can I issue invoices with a date in the past? > > Argentine regulations require invoices to be submitted to ARCA promptly after the transaction occurs. While ARCA may accept invoices with recent past dates, it's best practice to issue invoices in real time or as close to the transaction date as possible. > > For recording operation dates that differ from the issue date, use GOBL's `op_date` field to store the actual transaction date while keeping `issue_date` as the current date. > [accordion] When should I issue a Factura A vs Factura B? > > As a Responsable Inscripto (registered taxpayer): > > **Issue Factura A when your customer is:** > > * Another Responsable Inscripto > * A Monotributista > * Any entity that needs to claim VAT credits > > **Issue Factura B when your customer is:** > > * A final consumer (Consumidor Final) > * An exempt entity (Exento) > * A non-categorized subject > * A foreign tourist > > The key difference is that Factura A breaks down VAT separately (allowing the buyer to claim input VAT credits), while Factura B includes VAT in the total price. > [accordion] What is required to issue invoices under ARCA? > > The supplier party (issuer) must have an active CUIT, a Clave Fiscal at security level 3 or higher, and a valid ARCA digital certificate generated specifically for electronic invoicing (separate from the one used for AFIP web access). More available in our [Argentina FAQ](/faq/argentina) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Argentina's regulation → # E-invoicing in Asia Source: https://docs.invopop.com/compliance/asia Overview of e-invoicing compliance across Asia, where Peppol is the unifying standard and countries are adopting phased mandates through 2025 and 2026 ## Executive summary Asia's e-invoicing landscape is built around the **[Peppol](/apps/peppol) network**, the same international standard used across Europe and Oceania. Singapore led the way by becoming the first Peppol Authority outside Europe in 2018. This gives businesses in the region built-in cross-border interoperability with all other Peppol-connected jurisdictions worldwide. Malaysia also has a Peppol Authority (MDEC), but its mandate runs on MyInvois, a clearance platform of the tax authority. The region's approach differs from the Americas' clearance model. Rather than requiring government pre-approval for every invoice, Asian countries are adopting **reporting models** where structured invoice data flows to the tax authority in near real time alongside the buyer. Singapore's [five-corner model](/compliance/glossary) is the defining architecture: the supplier and buyer exchange invoices through their respective Peppol Access Points, while the tax authority (IRAS) receives a copy of every transaction as the "fifth corner." Mandates are rolling out in phases through 2025 and 2026, starting with voluntary GST registrants and progressively extending to all registered businesses. ## Common standards and formats **Peppol** is the shared standard across Asia, providing a unified network for invoice exchange and cross-border interoperability. | Country | Format | Network | Tax authority | | - | - | - | - | | Malaysia | UBL 2.1 (MyInvois), PINT-MY on Peppol | MyInvois clearance. Peppol is optional for delivery | [LHDN](https://www.hasil.gov.my/en/e-invois/) | | Singapore | PINT-SG / BIS Billing 3.0 (UBL 2.1 XML) | Peppol | [IRAS](https://www.iras.gov.sg) / [IMDA](https://www.imda.gov.sg) | Singapore uses the **PINT-SG** format, a Singapore-specific adaptation of OASIS UBL 2.1 XML that includes local requirements such as GST registration numbers, PayNow/GIRO payment methods, and IRAS validation rules. This format is progressively replacing the earlier Singapore BIS Billing 3.0 specification. ## Compliance model The region uses a **five-corner Peppol model** for e-invoicing and e-reporting. In this model: 1. The supplier sends an invoice through their Peppol Access Point. 2. The Access Point routes the invoice to the buyer's Access Point using the Peppol network. 3. The tax authority (such as IRAS in Singapore) receives a copy of the transaction as the fifth corner. This approach combines e-invoicing and e-reporting into a single flow. However, unlike the Americas' clearance model, invoices do not require government pre-approval to be legally valid. The tax authority receives data for monitoring and compliance purposes without acting as a gatekeeper. **Malaysia** uses a different model. The supplier submits every e-invoice to MyInvois, the platform of the tax authority (LHDN), for real-time validation. Then the supplier shares the validated e-invoice with the buyer, by any channel, including Peppol. Singapore also maintains a separate **GST F5** quarterly return requirement. Both the real-time Peppol reporting and the periodic aggregate return coexist — filing GST F5 remains mandatory even for businesses transmitting invoices via InvoiceNow. ## Invopop countries in this region [Malaysia](/compliance/malaysia) MyInvois clearance, phased 2024-2026 ![Malaysia flag](https://assets.invopop.com/flags/my.svg) [Singapore](/compliance/singapore) Peppol five-corner, PINT-SG ![Singapore flag](https://assets.invopop.com/flags/sg.svg) # Invoicing compliance in Australia Source: https://docs.invopop.com/compliance/australia Australia's Peppol eInvoicing uses a 4-corner network and the PINT A-NZ format. Federal entities must receive e-invoices since 2022, and B2B is voluntary > [card] [Australia's e-invoicing regulation timeline](/timelines/australia) > > View current and upcoming regulation → > [accordion] 🇦🇺 Invopop resources for Australia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Australia](/compliance/australia) [Compliance timeline](/timelines/australia) | > | Apps | [Peppol](/apps/peppol) (PINT A-NZ is work in progress) | > | FAQ | [Australia FAQ](/faq/australia) | > | GOBL | [Australia tax regime](https://github.com/invopop/gobl/tree/main/regimes/au) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [!WARNING] > > Invopop support for Australia (Peppol PINT A-NZ) is work in progress. The information below is for reference. For availability and onboarding, contact us at [support@invopop.com](mailto:support@invopop.com). ## Executive summary There is no central government platform, no clearance and no real-time reporting. The Australian Taxation Office (ATO) is the **Australian Peppol Authority**. It sets the Australian rules for Peppol and accredits service providers, but it does not receive a copy of the invoices. The only mandate applies to government buyers, not to suppliers: 1. Since **1 July 2022**, federal government entities, called **non-corporate Commonwealth entities** (NCEs), must be able to receive e-invoices. 2. The government is making eInvoicing the **default** for NCEs. The targets are 30% of received invoices through eInvoicing by **1 July 2026**, and automated processing and sending by **December 2026**. For businesses, e-invoicing is **voluntary**. The government consulted on a B2B mandate in 2020 and 2021, but it did not enact the results. E-invoicing does not apply to consumer sales (B2C). All invoices on the network use **PINT A-NZ**, the Peppol International (PINT) specification for Australia and New Zealand, in UBL 2.1. It has been mandatory since 15 May 2025. The Australian Business Number (**ABN**) identifies each business. The GST rate is **10%**. ## Invoicing in Australia Australia uses the standard 4-corner Peppol model. The supplier's accredited service provider finds the buyer's SMP through the SML. The SMP tells it which document types the buyer accepts and where to deliver them. Then it sends the invoice to the buyer's service provider. The same flow applies to businesses and to government buyers. ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant IS as Supplier participant SP as Supplier's service provider participant SML as SML participant SMP as Buyer's SMP participant BP as Buyer's service provider participant BY as Buyer IS->>SP: Invoice data SP->>SML: Find the SMP for the buyer's Peppol ID SML-->>SP: Buyer's SMP SP->>SMP: Check that the buyer accepts PINT A-NZ SMP-->>SP: Buyer's access point SP->>BP: Send the invoice (PINT A-NZ) BP-->>SP: Delivery receipt BP->>BY: Deliver the invoice ``` **1. Invoice created** The supplier's system sends the invoice data to its service provider. The service provider builds the invoice in PINT A-NZ and validates it. **2. Look up the buyer** The service provider uses the SML to find the SMP of the buyer's Peppol ID, usually `0151:`. **3. Buyer's access point** The SMP confirms that the buyer accepts PINT A-NZ and returns the address of the buyer's access point. **4. Send the invoice** The service provider sends the invoice over Peppol to the buyer's service provider. **5. Delivery receipt** The buyer's service provider confirms delivery. **6. Deliver the invoice** The buyer's service provider passes the invoice to the buyer. The buyer can send back a Peppol invoice response, for example accepted, rejected or paid. > [accordion] Invoicing businesses (B2B) > > E-invoicing between businesses is voluntary. A business that wants to send or receive e-invoices connects to Peppol through an accredited service provider. The ATO reports more than 400,000 businesses on the Peppol network. > > | | | > | - | - | > | **Scope** | B2B, voluntary | > | **Format** | PINT A-NZ Billing (UBL 2.1) | > | **Compliance** | E-invoicing, no reporting | > | **Model** | Decentralized 4-corner Peppol network | > | **Effective date** | Available now. No mandate | > | **Agency** | Australian Taxation Office (ATO), as Australian Peppol Authority | > | **Invopop support** | Work in progress | > [accordion] Invoicing the federal government (B2G) > > Non-corporate Commonwealth entities (NCEs) must be able to receive e-invoices since 1 July 2022. Under the eInvoicing default policy, they aim to receive 30% of their invoices through Peppol by 1 July 2026. They must also process and send e-invoices automatically by December 2026. Corporate Commonwealth entities are not in scope yet. Most agencies in several states and territories, and more than 30 councils, can also receive e-invoices. > > An NCE must pay a correctly rendered e-invoice within **5 calendar days**, when both parties use Peppol and agree to use it. Other invoices have 20 calendar days. If the NCE pays late, it pays interest to the supplier. > > | | | > | - | - | > | **Scope** | B2G, federal government entities (NCEs) | > | **Format** | PINT A-NZ Billing (UBL 2.1) | > | **Compliance** | E-invoicing | > | **Model** | Decentralized 4-corner Peppol network | > | **Effective date** | Reception: **1 July 2022**. Default: **1 July 2026** (30%) and **December 2026** (automation) | > | **Agency** | ATO (Peppol Authority), Department of Finance (payment policy) | > | **Invopop support** | Work in progress | > [accordion] Consumer sales (B2C) > > E-invoicing does not apply to sales to consumers. The GST tax invoice rules still apply when a customer asks for a tax invoice. ## E-reporting Australia has no e-reporting for invoices. The Peppol network does not send invoice data to the ATO. Businesses report GST through their usual periodic returns. ## Scenarios These scenarios show what the Australian rules allow. Invopop support for Australia is coming soon. > [accordion] Invoice a federal government entity (B2G) > > Send a PINT A-NZ Billing invoice over Peppol to the entity's Peppol ID, usually `0151:`. The invoice must have a buyer reference or a purchase order reference. An NCE pays a correctly rendered e-invoice within 5 calendar days, when both parties use Peppol and agree to use it. Other invoices get a 20-day term. > [accordion] Invoice another Australian business (B2B) > > E-invoicing is voluntary. If both businesses are on the Peppol network, the supplier's service provider sends the invoice to the buyer's service provider. If the supplier is registered for GST and issues a tax invoice, the invoice shows the supplier's ABN and the GST amount. From a total price of \$1,000, it must also show the buyer's identity or ABN. > [accordion] Sell to a foreign buyer (export) > > A foreign buyer on Peppol can receive a PINT A-NZ invoice only if its SMP accepts that document type. Check this before you send. A foreign buyer can use a Peppol ID scheme from its own country. A GST-free export uses the tax category `G`. > [accordion] Foreign supplier that invoices an Australian buyer > > A foreign supplier can send a PINT A-NZ invoice through its own Peppol service provider. A supplier that is not registered for GST cannot issue a tax invoice. It uses the tax category `O`. > [accordion] Self-billing (RCTI) > > The buyer issues a recipient created tax invoice (RCTI) with PINT A-NZ Self-billing (`urn:peppol:pint:selfbilling-1@aunz-1`). RCTIs are allowed for the classes of supplies that the Commissioner determines. Service providers can choose to support PINT A-NZ Self-billing. > [accordion] Correct an invoice (credit note) > > Send a PINT A-NZ credit note. It carries the adjustment note that the GST rules require when the price or the GST amount changes. > [accordion] Mixed supplies on one invoice > > Each invoice line has its own tax category: `S` for a taxable supply (10%), `Z` for a GST-free supply and `E` for an input-taxed supply. > [accordion] Invoice in a foreign currency > > The invoice can use a foreign currency. It then also gives the tax accounting currency and the GST total in that currency. > [accordion] Supplier with a GST branch > > A GST branch adds a 3-digit branch number to the ABN on the invoice. > [accordion] Buyer accepts or rejects an invoice > > The buyer's service provider can send an Invoice Response to the supplier, for example to accept or reject the invoice. The network also carries message level responses (MLR) for technical errors. ## Regulation > [accordion] Invoice format and content > > Australian e-invoices use **PINT A-NZ Billing** (version 1.1.3), with customization ID `urn:peppol:pint:billing-1@aunz-1` and profile `urn:peppol:bis:billing`. The earlier A-NZ Peppol BIS Billing 3.0 is no longer on the network: it was removed on 31 March 2026. Some Australian rules apply: > > * The tax scheme is `GST`. > * The tax categories are `S` (standard, 10%), `Z` (GST-free), `E` (input-taxed), `G` (GST-free export) and `O` (supplier not registered for GST). > * The legal entity ID of an Australian party is its ABN (scheme `0151`). > * The invoice must have a buyer reference or a purchase order reference. > * A supplier that is not registered for GST cannot issue a tax invoice. > > A tax invoice must show the supplier's identity and ABN, what is supplied, the issue date and the GST amount. From a total price of \$1,000, it must also show the buyer's identity or ABN. PINT A-NZ can carry all of these, but each business stays responsible for the legal content. > > For self-billing, called a **recipient created tax invoice** (RCTI), the buyer issues the invoice with **PINT A-NZ Self-billing** (`urn:peppol:pint:selfbilling-1@aunz-1`). Service providers can choose to support it. > [accordion] Who must comply > > * **Non-corporate Commonwealth entities (NCEs)**: must receive e-invoices, and move to eInvoicing as the default by December 2026. > * **Suppliers to NCEs**: no legal obligation. A correctly rendered e-invoice gets the 5-day payment term, when both parties use Peppol and agree to use it. > * **Other businesses**: voluntary. > * **Consumers (B2C)**: out of scope. > [accordion] GST rates > > | Rate | Percentage | Application | > | - | - | - | > | Standard | **10%** | Most goods and services | > | GST-free | **0%** | GST-free supplies, such as exports | > | Input-taxed | **0%** | Input-taxed supplies | > > The Australian Business Number (ABN) has 11 digits. A GST branch adds a 3-digit branch number to the ABN on the invoice. > [accordion] Service providers and identifiers > > Only a service provider that the ATO accredits can operate a Peppol access point in Australia. Accreditation covers OpenPeppol membership, a legal agreement, due diligence, security requirements and testing. Australia and New Zealand recognize each other's accreditation. > > The Peppol ID of an Australian business is usually its ABN, with scheme `0151` (for example `0151:65631636556`). The service provider must check the identity of each business before it registers it, for example against the Australian Business Register. No invoice-level digital signature is required. > [accordion] Archiving > > Keep GST records, including tax invoices, for at least 5 years after the transaction. The records must be in English, or in a form that converts to English. > [accordion] Penalties > > There are no e-invoicing penalties for suppliers, because there is no supplier mandate. A federal entity that pays an invoice late pays interest to the supplier. > [accordion] More information > > * [ATO, eInvoicing](https://www.ato.gov.au/businesses-and-organisations/einvoicing): the Australian Peppol Authority > * [ATO, eInvoicing for government](https://www.ato.gov.au/businesses-and-organisations/einvoicing/einvoicing-for-government): the NCE mandate and the eInvoicing default targets > * [ATO Software Developers, eInvoicing](https://softwaredevelopers.ato.gov.au/eInvoicing): accreditation of service providers > * [PINT A-NZ specifications](https://docs.peppol.eu/poac/aunz/): billing and self-billing > * [A-NZ Peppol guidance notes](https://github.com/A-NZ-PEPPOL/Guidance-documents): identifiers, tax categories, end-user identification > * [Department of Finance, RMG 417](https://www.finance.gov.au/publications/resource-management-guides/supplier-pay-time-or-pay-interest-policy-rmg-417): payment terms for federal entities > * [OpenPeppol, Australia country profile](https://peppol.org/learn-more/country-profiles/australia/) ## FAQ > [accordion] Is e-invoicing mandatory in Australia? > > Only for federal government buyers. Since 1 July 2022, non-corporate Commonwealth entities (NCEs) must be able to receive e-invoices. For businesses, e-invoicing is voluntary. There is no mandate for suppliers. > [accordion] Is the Business eInvoicing Right (BER) in force? > > No. Treasury consulted on a Business eInvoicing Right in December 2021, and on a B2B mandate in 2020. The government did not enact either of them. > [accordion] Does the ATO receive a copy of my invoices? > > No. Australia uses a decentralized 4-corner Peppol network. The invoice goes from the supplier's service provider to the buyer's service provider. The ATO is the Australian Peppol Authority, but it does not receive the invoices. There is no clearance and no e-reporting. > [accordion] Which format do Australian e-invoices use? > > PINT A-NZ Billing (version 1.1.3), in UBL 2.1, with customization ID `urn:peppol:pint:billing-1@aunz-1`. It is the only mandatory specification since 15 May 2025. The earlier A-NZ Peppol BIS Billing 3.0 left the network on 31 March 2026. > [accordion] What is the Peppol ID of an Australian business? > > Usually its Australian Business Number (ABN), with scheme `0151`, for example `0151:65631636556`. The service provider must check the identity of each business before it registers it, for example against the Australian Business Register. > [accordion] Who can send and receive e-invoices on the Australian network? > > Only a service provider that the ATO accredits can operate a Peppol access point in Australia. Australia and New Zealand recognize each other's accreditation. > [accordion] Do I need a digital signature on the invoice? > > No. No rule asks for an electronic signature on the invoice. The Peppol network secures the transport with the certificates of the service providers. > [accordion] Does e-invoicing apply to consumer (B2C) sales? > > No. E-invoicing does not apply to sales to consumers. The GST tax invoice rules still apply when a customer asks for a tax invoice. > [accordion] What does a federal government buyer need on the invoice? > > A buyer reference or a purchase order reference. PINT A-NZ requires one of the two. An NCE pays a correctly rendered e-invoice within 5 calendar days, when both parties use Peppol and agree to use it. Other invoices get a 20-day term. > [accordion] How long must I keep my invoices? > > At least 5 years after the transaction. The records must be in English, or in a form that converts to English. > [accordion] Are there penalties for not using e-invoicing? > > No. There is no supplier mandate, so there are no e-invoicing penalties for suppliers. A federal entity that pays an invoice late pays interest to the supplier. > [accordion] Does Invopop support e-invoicing in Australia? > > Invopop support for Australia is coming soon. For availability, contact us at [support@invopop.com](mailto:support@invopop.com). More available in our [Australia FAQ](/faq/australia) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Australia's regulation → # Invoicing compliance in Belgium Source: https://docs.invopop.com/compliance/belgium Belgium's mandatory e-invoicing requirements, Peppol implementation, and upcoming e-reporting obligations for B2B and B2G transactions > [card] [Belgium's e-invoicing regulation timeline](/timelines/belgium) > > View current and upcoming regulation → > [accordion] 🇧🇪 Invopop resources for Belgium > > | | | > | - | - | > | Compliance | [Invoicing compliance in Belgium](/compliance/belgium) [Compliance timeline](/timelines/belgium) | > | Apps | [Peppol](/apps/peppol) [OASIS UBL](/apps/oasis-ubl) [UN/CEFACT CII](/apps/uncefact-cii) | > | Guides | [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-belgium) | > | FAQ | [Belgium FAQ](/faq/belgium) | > | GOBL | [Belgium Tax Regime](https://docs.gobl.org/regimes/be) [EN 16931-1:2017 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) [gobl.cii](https://github.com/invopop/gobl.cii) | ## Executive summary Since January 1, 2026, electronic invoicing is **mandatory for domestic B2B transactions** in Belgium (the B2G mandate was already in effect). **Key requirements:** * **Format**: Invoices must follow the European EN 16931 standard, with Peppol BIS in UBL format as the default and preferred format. * **Network**: Peppol is the default channel for transmitting electronic invoices. * **Technical capability**: All taxpayers must have the technical capability to issue and receive e-invoices via Peppol, even when using alternative platforms. * **PDF invoices**: Sending a PDF invoice by email or via a platform is no longer enough to be compliant. By 2028, Belgium plans to move to a Peppol-based five-corner model with near real-time e-reporting — see [E-reporting](#e-reporting) below. Invopop provides Peppol integration solutions through its apps and integrations with platforms like Stripe, Chargebee, and NetSuite to ensure compliance. ## Invoicing in Belgium Belgium is evolving toward full digitalization of invoicing, with B2G Peppol enforcements already in place, with upcoming requirements for B2B in 2026 through 2028 when e-reporting becomes mandatory through a Peppol-based five-corner model. > [accordion] Peppol Network (B2B, B2G) > > > [!WARNING] > > > > Peppol is mandatory for companies from January 1st, 2026. > > Belgium’s e-reporting and fiscalization regulation enforcement requires businesses to use the Peppol network to issue invoices. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | Peppol BIS | > | **Infrastructure** | Peppol | > | **Model** | Peppol | > | **Scope & Deadline** | All B2B invoices from **Jan 1, 2026**; mandatory for suppliers to public authorities. | > | **Agency** | [Service Public Fédéral Finances](https://finances.belgium.be) | > | **Invopop Support** | [Peppol](/apps/peppol) | > > > [card] [Peppol](/apps/peppol) > > > > Connect the app to get you covered → ## E-reporting Belgium plans to adopt a Peppol-based five-corner model in 2028, integrating e-invoicing with near real-time e-reporting. This new system will replace the annual customer listing report and is designed to reduce the country’s VAT gap, currently estimated at around €4.8 billion per year. Businesses will be able to comply using either certified e-invoicing service providers or adapted ERP, invoicing, or accounting software, though participation through service providers will not be mandatory. ## Regulation > [accordion] Legally required invoice content > > Belgium is adopting the Peppol BIS 3.0 standard which is fully compliant with the EU [EN 16931 Standard](https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467108950/EN+16931+compliance). > > Peppol BIS 3.0 documents that are created and sent must comply with all the rules that are defined for the CORE invoice or the CIUS specification that it is based on. A CIUS is a usage specification that can't break the CORE standard. In the case of Belgium, the CIUS is the Peppol BIS 3.0 standard which extends the CORE standard. > > Invopop helps you generate compliant Peppol BIS 3.0 (UBL) invoices from a single open source format called [GOBL](https://docs.gobl.org), performing all the necessary validations and conversions to support compliant EN 16931 (CORE) + Peppol BIS 3.0 (CIUS) invoices and other document types. > [accordion] Exceptions to the 2026 e-invoicing mandate > > The obligation does not apply to: > > * Foreign taxpayers not established in Belgium (even if VAT registered in Belgium) > * Belgian entities exclusively engaged in exempt transactions (Article 44 VAT Code) – e.g., financial, medical, educational, social, sport, cultural sectors. > * Bankrupt VAT-taxpayers (with still active VAT number) > * A Belgian entity required to file regular periodic VAT returns and provide a Belgian VAT number. Thus if the customer doesn’t, the obligation may not apply. > * A transaction must be subject to Belgian VAT (local taxable supply). The obligation does not apply for: > * Transactions exempt under Article 44 VAT Code. > * Transactions deemed to take place for VAT purposes in another Member State or outside the EU. > [accordion] Peppol registration & proof of ownership > > Peppol requires Invopop to collect proof of ownership for regulatory compliance. As outlined in [Section 3.3 End user Identification of the Internal Regulations II document](https://openpeppol.atlassian.net/wiki/spaces/AF/pages/3963191334/Internal+Regulations), key details such as VAT number, address, contact information, and company name must be provided and validated during registration. > > The mandatory fields for Peppol registration are: > > * Company name (fiscal name) > * VAT number (tax ID) > * Complete company address > * Contact information > * Peppol participant ID > * Proof of ownership document > > Proof of ownership can be: > > * An invoice with direct debit authorization > * Any official document that proves you represent the company > * Business registration certificate ## FAQ Compliance questions Belgium > [accordion] Is B2B e-invoicing in Belgium mandatory? > > Since 1 January 2026 B2B transactions are mandatory where both parties are Belgian VAT-registered. B2G has been mandatory since 2024. B2C and cross-border B2B are out of scope for the current mandate. > [accordion] Who can issue invoices in Belgium? > > Any entity with a Belgian KBO/BCE enterprise number (and a VAT number where applicable). > [accordion] What are the legal obligations for receiving invoices in Belgium? > > From 1 January 2026, Belgian VAT-registered recipients must be reachable via Peppol. Received invoices must be archived in their original structured format for 7 years. Peppol > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. More available in our [Belgium FAQ](/faq/belgium) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Belgium's regulation → # Invoicing compliance in Brazil Source: https://docs.invopop.com/compliance/brazil Brazil's mandatory e-invoicing requirements, Notas Fiscais implementation, and e-reporting obligations for B2B and B2G transactions > [card] [Brazil's e-invoicing regulation timeline](/timelines/brazil) > > View current and upcoming regulation → > [accordion] 🇧🇷 Invopop resources for Brazil > > | | | > | - | - | > | Compliance | [Invoicing compliance in Brazil](/compliance/brazil) [Compliance timeline](/timelines/brazil) | > | Apps | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > | Guides | [Supplier registration](/guides/br-dfe-supplier) [Issuing invoices](/guides/br-dfe) | > | FAQ | [Brazil FAQ](/faq/brazil) | > | GOBL | [Brazil Tax Regime](https://docs.gobl.org/regimes/br) [Brazil NF-e Addon](https://docs.gobl.org/addons/br-nfe-v4) [Brazil NFS-e Addon](https://docs.gobl.org/addons/br-nfse-v1) | ## Executive summary Brazil operates a sophisticated, mandatory electronic invoicing system that covers different document types through **SEFAZ (Secretaria da Fazenda)**, the state tax authority infrastructure. The system has been mandatory since 2008 and uses a **clearance model** (also known as continuous transaction control or CTC), where each invoice must be electronically submitted to tax authorities and formally authorized before it becomes legally valid. This real-time validation ensures that businesses cannot dispatch goods, book revenue, or send invoices to customers until the government has approved the transaction. The Brazilian e-invoicing system encompasses multiple document types for different transaction scenarios. **NF-e (Nota Fiscal Eletrônica)** is used for B2B and B2G sales of goods and products, requiring authorization before shipping. **NFC-e (Nota Fiscal de Consumidor Eletrônica)** covers B2C retail transactions for face-to-face sales or home delivery. **NFS-e (Nota Fiscal de Serviços Eletrônica)** handles B2B and B2G service transactions, with tax assessed by municipalities. **NFCom** applies to telecommunications and communication services, mandatory since November 2025. Additionally, **CT-e (Conhecimento de Transporte Eletrônico)** and **MDF-e (Manifesto Eletrônico de Documentos Fiscais)** cover transportation of goods and grouping of multiple fiscal documents, respectively. Brazil operates a comprehensive e-reporting system through **SPED (Sistema Público de Escrituração Digital)**, which collects financial, accounting, tax, and labor information from Brazilian companies. Invopop covers Brazilian invoicing through the **Documentos Fiscais Eletrônicos Brazil** app, supporting NF-e, NFS-e, and NFC-e documents. The platform also offers integrations with Stripe and Chargebee, enabling businesses to issue compliant invoices directly from their merchant or ERP platforms while automatically handling the complex SEFAZ authorization process. ## Invoicing in Brazil > [accordion] NFC-e (B2C) > > The Nota Fiscal de Consumidor Eletrônica (NFC-e) is used for face-to-face retail sales or for home delivery to the final consumer (individual or legal entity). > > | | | > | - | - | > | **Models** | B2C | > | **Format** | Local XML | > | **Infrastructure** | [SEFAZ](https://www.nfe.fazenda.gov.br/portal/principal.aspx) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | Mandatory since 2008 | > | **Agency** | [RFB](https://www.gov.br/receitafederal/pt-br) | > | **Invopop Support** | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > > > [card] [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) > > > > Get covered → > [accordion] NF-e (B2B, goods & products) > > The Nota Fiscal Eletrônica (NF-e) is used for the sale of goods or products which are reported to the tax authority before shipping. The administration will issue an authorization code that must be printed on the PDF of each invoice. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | Local XML | > | **Infrastructure** | [SEFAZ](https://www.nfe.fazenda.gov.br/portal/principal.aspx) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | Mandatory since 2008 | > | **Agency** | [RFB](https://www.gov.br/receitafederal/pt-br) | > | **Invopop Support** | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > > > [card] [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) > > > > Get covered → > [accordion] NFS-e (B2B, services) > > > [!NOTE] > > > > Since January 2026 the NFS-e tax format follows a national standard, replacing municipal formats. > > The Nota Fiscal de Serviços Eletrônica (NFS-e) is used for service transactions. Tax is assessed by municipalities which then return a code which calculates the tax. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | Local XML | > | **Infrastructure** | [SEFAZ](https://www.nfe.fazenda.gov.br/portal/principal.aspx) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | Mandatory since 2008 | > | **Agency** | [RFB](https://www.gov.br/receitafederal/pt-br) | > | **Invopop Support** | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > > > [card] [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) > > > > Get covered → > [accordion] NFCom (B2B, telecommunications) > > The Nota Fiscal de Serviços de Comunicação Eletrônica (NFCom) is used by companies in the telecommunications (mobile, fixed, broadband) and communication (broadcasting, newspapers, etc.) industries. > > | | | > | - | - | > | **Models** | B2C, B2B | > | **Format** | Local XML | > | **Infrastructure** | [SEFAZ](https://www.nfe.fazenda.gov.br/portal/principal.aspx) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | Mandatory since November 2025 | > | **Agency** | [RFB](https://www.gov.br/receitafederal/pt-br) | > | **Invopop Support** | [Request support](https://www.invopop.com/contact) | > [accordion] CTe & MDF-e (B2B, delivery notes) > > The Conhecimento de Transporte Eletrônico (CT-e) is used for the transportation of goods. MDF-e (Manifesto Eletrônico de Documentos Fiscais) groups multiple fiscal documents (like NF-e or CT-e) when a single vehicle transports goods covered by different invoices or transport documents. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | Local XML | > | **Infrastructure** | [SEFAZ](https://www.nfe.fazenda.gov.br/portal/principal.aspx) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | CT-e Mandatory since 2010, MDF-e since 2014 | > | **Agency** | [RFB](https://www.gov.br/receitafederal/pt-br) | > | **Invopop Support** | [Request support](https://www.invopop.com/contact) | ## E-reporting Brazil has a comprehensive e-reporting system through its SPED (Sistema Público de Escrituração Digital - Public System of Digital Bookkeeping) framework. > [accordion] SPED > > The SPED system is a reporting system that collects all financial, accounting, tax and labor information from Brazilian companies, composed of 12 modules, with 7 ancillary obligations and 5 fiscal documents (listed in the e-invoicing section). > > | | | > | - | - | > | **Format** | Structured plaintext files | > | **Scope & deadline** | HR and payroll (eSocial), yearly bookkeeping (ECD), digital tax return (ECF), monthly reporting of tax documents to federal authorities (EFD), to state tax authorities (EFD-ICMS/IPI) and social security contributions (EFD-ReInf). For banks e-Financeira is a compliance obligation as well. | > | **Invopop support** | No | ## Regulation > [accordion] Archival period > > Electronic invoices in Brazil must be archived for a minimum of five years. This applies to all types of e-invoices, which must be stored in the required XML format. > [accordion] What does it mean that Brazil has a clearance model for invoicing? > > A clearance model (sometimes called real-time validation or pre-clearance) is a regulatory architecture in which each invoice must be electronically submitted to the tax authority and formally approved before it becomes legally valid. The government acts as an intermediary between the supplier and the buyer and the invoice will only be valid with state authorization. Only after authorization can you dispatch goods, book revenue or send an invoice to the customer. ## FAQ Compliance questions Brazil > [accordion] Is issuing B2C invoices mandatory in Brazil? > > Yes — invoicing is mandatory for all transactions in Brazil, including B2C (NFC-e for retail goods, NFS-e for services). > [accordion] Who can issue invoices in Brazil? > > Any entity with a CNPJ (legal entity) or CPF (individual) registered in Brazil. State and municipal registrations (Inscrição Estadual / Municipal) are also required depending on whether the supplier issues NF-e (state) or NFS-e (municipal) documents. NF-e > [accordion] What are the NF-e mandate timelines in Brazil? > > NF-e (model 55) for goods has been mandatory since 2008 — phased in by sector and turnover. NFC-e (model 65, retail B2C) replaced the paper Cupom Fiscal in most states between 2014 and 2020. Both are now required for any commercial circulation of goods. > [accordion] Are there special supplier obligations under NF-e? > > The supplier needs an active state Inscrição Estadual, a CNAE that authorizes goods circulation, and an A1 certificate matching the issuing CNPJ. Some states (SP, RJ, MG) require additional credenciamento before NF-e issuance. NFS-e > [accordion] How does ISS tax work in Brazil? > > ISS (Imposto Sobre Serviços) is not treated as a standard transactional tax calculated on top of a net amount. Instead, it is an **informative tax embedded in the final price**—the invoice only reports what portion of the total corresponds to ISS. > > In GOBL, ISS is flagged as an "informative" tax category. This means: > > * ISS must be added to the GOBL invoice like any other tax, with the proper percentage. > * The tax amount is not added to the price; it represents the portion of the total that corresponds to ISS. > * The NFS-e document displays ISS as informational data, reflecting what was already embedded in the final price. > * **Do not use `prices_include` with ISS**—since ISS is informative, it should not be treated as a price-inclusive tax. > [accordion] Should I change my integration for the 2026 NFS-e federal tax format regulation? > > It is not necessary, any fields pertaining to the previous municipal tax implementation will be ignored and the invoice will already have all the data to be compliant. However, it is always recommended to remove ignored fields to avoid confusion and keep your documents clean. > [accordion] What are the issuer requirements under NFS-e? > > ISS is a municipal tax, so the supplier must be registered as a taxpayer (Inscrição Municipal) with the municipality where their establishment is based, whichever system they issue through. NFS-e are then issued either through the municipality's own system or through the national Emissor Nacional: MEI and Simples Nacional ME/EPP suppliers must use the Emissor Nacional, and other suppliers follow whichever system their municipality adopted. The Emissor Nacional authorizes suppliers based on the municipality's taxpayer registry, so the municipal registration is still required there. The system is chosen when [registering the supplier](/guides/br-dfe-supplier#choose-the-nfs-e-system). Special tax regimes (Simples Nacional, MEI, ISS estimado) impose additional fields and rates. More available in our [Brazil FAQ](/faq/brazil) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Brazil's regulation → # Invoicing compliance in Chile Source: https://docs.invopop.com/compliance/chile Chile's e-invoicing and e-reporting obligations for consumer, business and government transactions > [!NOTE] > > Invopop support for Chile is coming soon (SII). For inquiries, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Chile's regulation → # Invoicing compliance in Colombia Source: https://docs.invopop.com/compliance/colombia Colombia's mandatory e-invoicing requirements, FEV implementation, and e-reporting obligations for B2B and B2G transactions > [card] [Colombia's e-invoicing regulation timeline](/timelines/colombia) > > View current and upcoming regulation → > [accordion] 🇨🇴 Invopop resources for Colombia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Colombia](/compliance/colombia) [Compliance timeline](/timelines/colombia) | > | Apps | [Colombia](/apps/colombia) | > | Guides | [Supplier registration](/guides/co-dian-registration) [Issuing invoices](/guides/co-dian-invoicing) | > | FAQ | [Colombia FAQ](/faq/colombia) | > | GOBL | [Colombia Tax Regime](https://docs.gobl.org/regimes/co) [Colombia DIAN Addon](https://docs.gobl.org/addons/co-dian-v2) | ## Executive summary Colombia operates a mandatory e-invoicing system through **DIAN (Dirección de Impuestos y Aduanas Nacionales)**, the national tax and customs authority. The system uses a **clearance model** (also known as continuous transaction control or CTC), where each invoice must be submitted to DIAN, digitally signed, and validated in real time before it becomes legally valid. The Colombian e-invoicing system centers on **FEV (Factura Electrónica de Venta)**, the official electronic invoice format used for B2B and B2G transactions. FEV has been mandatory for all B2B invoices since 2020 and uses the **OASIS UBL format** (UBL 2.1 DIAN schema). Since 2024, **Documento Equivalente Electrónico** has been required for B2C transactions, bringing retail and point-of-sale transactions under the electronic invoicing system as well. E-reporting in Colombia is fully integrated into the FEV system — see [E-reporting](#e-reporting) below. Invopop provides coverage for Colombian invoicing through the **Colombia** app, supporting FEV documents for B2B and B2G transactions. The platform also offers integrations with Stripe and Chargebee, enabling businesses to issue compliant invoices directly from their merchant or ERP platforms while automatically handling the complex DIAN authorization process. ## Invoicing in Colombia > [accordion] Factura Electrónica de Venta (B2B, B2G) > > Colombia's official electronic invoice, FEV, is a fiscal and legal document that records the sale of goods or services in a digital format, with tax validity equivalent to a paper invoice. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | OASIS UBL (UBL 2.1 DIAN schema) | > | **Infrastructure** | [DIAN](https://www.dian.gov.co) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | Since 2020, all B2B invoices are required | > | **Agency** | [DIAN](https://www.dian.gov.co) | > | **Invopop Support** | [Colombia App](/apps/colombia) | > > > [card] [Colombia](/apps/colombia) > > > > Connect the app to get you covered → > [accordion] Documento Equivalente Electrónico (B2C) > > Historically, retailers issued paper POS receipts instead of full electronic invoices. Since 2024 DIAN requires these to be electronic as well — effectively bringing B2C transactions under the electronic invoicing system. > > | | | > | - | - | > | **Models** | B2C | > | **Format** | OASIS UBL (UBL 2.1 DIAN schema) | > | **Infrastructure** | [DIAN](https://www.dian.gov.co) | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | Since 2024 B2C invoices are required | > | **Agency** | [DIAN](https://www.dian.gov.co) | > | **Invopop Support** | No, but you can issue equivalent FEV simplified invoices | ## E-reporting E-reporting is fully integrated into the Factura Electrónica de Venta (FEV) system rather than being a separate process. Under the clearance model, every electronic invoice is generated, digitally signed, transmitted, and validated by DIAN in real time, and only upon validation is it legally issued and simultaneously reported to the tax authority. This means there are no separate periodic submissions, **issuing the FEV automatically fulfills reporting obligations**. ## Regulation > [accordion] Main special tax types for Colombia > > 1. VAT (IVA: Impuesto sobre el Valor Añadido) > > * Standard: 19% > > * Reduced: 5% > > 2. IC (Impuesto al Consumo) > > * From 4% to 16% depending on the product or service > > 3. ICA (Impuesto de Industria y Comercio) > 4. INC (Impuesto Nacional al Consumo) > 5. ReteIVA (Retención en la fuente por el Impuesto al Valor Agregado) > 6. ReteICA (Retención en la fuente por el Impuesto de Industria y Comercio) > 7. Retefuente (Retención en la fuente por el Impuesto de la Renta) > > GOBL supports these tax types in its [Colombia tax regime](https://docs.gobl.org/regimes/co#tax-categories). > [accordion] Archival period > > Invoices must be archived for a minimum of **five years** in Colombia, starting from January 1 of the year following the document's issuance or receipt. This requirement applies to **both the issuer and the receiver**, and it is crucial to store the original electronic invoice (XML format), digital signature, and validation response securely. > [accordion] RADIAN FEV invoices as negotiable instruments > > Colombia’s unique RADIAN system combines e-invoicing with the legal and financial framework of negotiable instruments, enabling immediate use of invoices for liquidity and credit operations. Upon buyer acceptance, the invoice can be registered in RADIAN, giving it the status of a “título valor electrónico”. This allows invoices to be factored (sold to a financial institution before due date), used as collateral for loans, or legally enforced for payment in a way similar to traditional paper invoices or promissory notes. ### Compliance questions > [accordion] Who must issue electronic invoices in Colombia? > > All businesses selling goods or services in Colombia. The FEV (Factura Electrónica de Venta) has been mandatory for B2B and B2G invoices since 2020, and since 2024 B2C transactions must be documented with the Documento Equivalente Electrónico, bringing retail and point-of-sale receipts under the electronic system as well. > [accordion] What format does the DIAN require for electronic invoices? > > OASIS UBL 2.1 following the DIAN schema. Colombia operates a clearance model (continuous transaction control): each invoice is digitally signed, submitted to the DIAN, and validated in real time. On validation, the invoice receives a CUFE (Código Único de Factura Electrónica) that makes it legally valid. > [accordion] Do I need to report invoices to the DIAN separately? > > No. E-reporting is fully integrated into the FEV clearance flow — an invoice is reported to the tax authority at the moment the DIAN validates it. There are no separate periodic invoice submissions. > [accordion] How long must invoices be archived in Colombia? > > A minimum of five years, counted from January 1 of the year following issuance or receipt. The obligation applies to both the issuer and the receiver, and covers the original XML, its digital signature, and the DIAN validation response. > [accordion] What is RADIAN? > > RADIAN is the DIAN registry that turns validated invoices into negotiable instruments. Once the buyer accepts an invoice, it can be registered in RADIAN as a "título valor electrónico", allowing it to be factored, used as loan collateral, or legally enforced for payment. > [accordion] Does Invopop support the Documento Equivalente Electrónico (B2C)? > > Not currently. For B2C transactions you can issue equivalent simplified FEV invoices instead, which are fully supported through the [Colombia app](/apps/colombia). More available in our [Colombia FAQ](/faq/colombia) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Colombia's regulation → # Invoicing compliance in Croatia Source: https://docs.invopop.com/compliance/croatia Croatia's Fiskalizacija 2.0 (eRačun): domestic B2B and B2G e-invoicing over a national 4-corner network with reporting of each invoice to the tax authority, Peppol for foreign suppliers to public bodies, and B2C receipt fiscalization > [card] [Croatia's e-invoicing regulation timeline](/timelines/croatia) > > View current and upcoming regulation → > [accordion] 🇭🇷 Invopop resources for Croatia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Croatia](/compliance/croatia) [Compliance timeline](/timelines/croatia) | > | Apps | [Peppol](/apps/peppol) (B2G from foreign suppliers) | > | FAQ | [Croatia FAQ](/faq/croatia) | > | GOBL | [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [!NOTE] > > Invopop support for Fiskalizacija 2.0 (eRačun) is coming soon. The information below is for reference. Today, a foreign supplier can send invoices to Croatian public bodies over Peppol with the [Peppol app](/apps/peppol). For inquiries, contact us at [support@invopop.com](mailto:support@invopop.com). ## Executive summary Croatia's **Fiskalizacija 2.0 (eRačun)** became mandatory on 1 January 2026. The Fiscalization Act (NN 89/25) sets two separate obligations for businesses established in Croatia: 1. **Exchange** a structured e-invoice with the recipient over Croatia's own 4-corner network. The network uses the same technology as Peppol, but it has its own directory and its own invoice profile. 2. **Report** each invoice to the tax authority's Fiscalization System (**CIS**). The supplier reports it at issue, and the recipient reports it within 5 working days. Later, the supplier reports the payment and the recipient reports a rejection. Invoices follow the European **EN 16931** standard with a Croatian profile (**HR CIUS**). A plain Peppol BIS Billing 3.0 invoice does not meet this profile, so it is not valid for a domestic Croatian transaction. VAT-registered Croatian businesses must issue and receive e-invoices from January 2026. Businesses that are not VAT-registered must receive them from January 2026 and issue them from January 2027. The obligation covers only domestic transactions between parties established in Croatia. [Consumer sales](#consumer-sales-b2c) stay on the older receipt system, which prints a code and a QR on the receipt. [Invoices to public bodies (B2G)](#invoicing-public-bodies-b2g) have their own law. The route depends on where the supplier is established: * A **Croatian supplier** sends the invoice over the Croatian network, the same way as to a business, and reports it to CIS. * A **foreign supplier** sends the invoice over **Peppol**, in Peppol BIS Billing 3.0. The standard VAT rate is **25%**, with reduced rates of **13%** and **5%**. ## Invoicing in Croatia Croatia runs two independent systems. Invoices between Croatian businesses, and from Croatian businesses to public bodies, travel over Croatia's own 4-corner network and are reported to CIS. Consumer sales use no network: the point of sale signs each receipt and reports it straight to CIS. The two systems share the tax authority backend, but nothing else. **Sending and receiving e-invoices (B2B, B2G)** The supplier's certified service provider, locally called an **information intermediary** (*informacijski posrednik*), finds the recipient in the national directory (**AMS**). It then delivers the invoice to the recipient's access point. For a public body, that access point is the central platform that FINA runs. Each side reports the invoice to CIS separately from the exchange. ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant IS as Supplier participant SP as Supplier's intermediary participant AMS as Directory (AMS) participant RP as Recipient's access point participant TA as Tax authority (CIS) IS->>SP: Invoice data SP->>AMS: Look up the recipient AMS-->>SP: Recipient's access point SP->>RP: Send the invoice (HR CIUS) RP-->>SP: Delivery receipt SP->>TA: Report as issued RP->>TA: Report as received ``` **1. Invoice created** The supplier's system sends the invoice data to its intermediary. The intermediary builds the invoice in the Croatian EN 16931 profile (HR CIUS). **2. Look up the recipient** The intermediary asks the national directory (AMS) where the recipient receives invoices. **3. Recipient's access point** AMS returns the recipient's access point. For a public body, this is FINA's central platform. **4. Send the invoice** The intermediary sends the invoice to that access point over the 4-corner network. **5. Delivery receipt** The recipient's access point confirms delivery to the supplier's intermediary. **6. Report as issued** Separately from the exchange, the supplier reports the invoice to CIS as issued. **7. Report as received** The recipient reports the same invoice to CIS as received, within 5 working days. > [!NOTE] > > **Foreign suppliers do not use this flow.** The Fiscalization Act does not require a supplier established outside Croatia to exchange e-invoices. To invoice a Croatian public body, a foreign supplier sends a Peppol BIS Billing 3.0 invoice over Peppol. See [Invoicing public bodies (B2G)](#invoicing-public-bodies-b2g). **Consumer sales (B2C)** There is no invoice exchange for a consumer sale. The point of sale system signs the receipt locally and reports it straight to the tax authority in real time. ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant POS as Point of sale participant SP as Service provider participant TA as Tax authority (CIS) POS->>SP: Sale data SP->>SP: Sign locally SP->>TA: Send receipt request TA-->>SP: JIR (or error) SP-->>POS: Receipt with JIR, ZKI and QR ``` **1. Sale created** The point of sale sends the sale data to the service provider. **2. Compute the security code** The service provider computes the ZKI by signing the receipt locally with the business's certificate. **3. Report to the tax authority** The service provider sends the signed receipt request to the tax authority's Fiscalization System (CIS). **4. Receive the JIR** CIS returns the JIR, a unique receipt identifier, or an error. **5. Print the receipt** The point of sale prints the receipt with the JIR, the ZKI and a QR code. > [accordion] Sending and receiving e-invoices (B2B) > > Certified intermediaries exchange domestic invoices over a 4-corner network. They use Croatia's own directory (AMS) to find the recipient. The invoice must use the Croatian EN 16931 profile and have a product classification code (KPD) on each line. Each recipient has one receiving address in AMS. > > | | | > | - | - | > | **Scope** | B2B between businesses established in Croatia | > | **Format** | UBL 2.1 or CII, in the Croatian EN 16931 profile (HR CIUS) | > | **Compliance** | E-invoicing | > | **Model** | Decentralized 4-corner network on Croatia's own directory | > | **Effective date** | Issue and receive: **January 2026** for VAT-registered businesses. Issue: **January 2027** for all others | > | **Agency** | Porezna uprava (tax authority) | > | **Invopop support** | Coming soon | > [accordion] Reporting to the tax authority > > Separately from the exchange, the supplier and the recipient each report the invoice to the tax authority's Fiscalization System (CIS). A qualified certificate signs each report. Unlike a consumer receipt, the report gives no code to print. CIS accepts the report or returns an error. > > | | | > | - | - | > | **Scope** | B2B and B2G invoices of businesses established in Croatia | > | **Channel** | Direct report to the tax authority, separate from the exchange | > | **Deadline** | Supplier at issue. Recipient within 5 working days of receipt | > | **Effective date** | Mandatory since **January 2026** | > | **Agency** | Porezna uprava (tax authority) | > | **Invopop support** | Coming soon | > [accordion] Consumer sales (B2C) > > Consumer sales stay on the older receipt system. This is a separate connection to the same tax authority backend. The point of sale signs each receipt and sends it to CIS in real time. It then prints the receipt with an identifier, a security code and a QR code. Since the new law, this applies to all payment methods, not only cash. > > | | | > | - | - | > | **Scope** | B2C | > | **Format** | Receipt fiscalization (prints an identifier, a security code and a QR) | > | **Channel** | Real-time report to the tax authority | > | **Effective date** | In force. Covers all payment methods since January 2026 | > | **Agency** | Porezna uprava (tax authority) | > | **Invopop support** | Coming soon | ## Invoicing public bodies (B2G) B2G e-invoicing has been mandatory in Croatia since July 2019. The Act on e-invoicing in public procurement (NN 94/18) governs it, and Fiskalizacija 2.0 did not replace it. Public bodies receive e-invoices through a central platform that the Financial Agency (**FINA**) runs, called **e-Račun za državu**. The supplier's place of establishment decides which network it uses. > [tab] Croatian supplier > > A supplier established in Croatia invoices a public body the same way as a business: > > 1. Its intermediary builds the invoice in the Croatian profile (HR CIUS). > 2. The intermediary finds the public body in AMS. The public body's access point is FINA's central platform. > 3. The intermediary sends the invoice over the Croatian 4-corner network. > 4. The supplier and the public body each report the invoice to CIS. > > A plain Peppol invoice does not meet these rules. A supplier can also register on FINA's e-Račun za državu service to send invoices to public bodies directly. The reporting obligation still applies. > [tab] Foreign supplier > > A supplier established outside Croatia sends the invoice over Peppol. FINA runs a Peppol access point, and every public body on the central platform is reachable through it. > > * **Format**: Peppol BIS Billing 3.0 (EN 16931). > * **Recipient ID**: `9934:` followed by the public body's OIB. > * **Reporting**: the Fiscalization Act does not require a supplier with no seat, residence or habitual residence in Croatia to report the invoice. > > Invopop sends these invoices with the [Peppol app](/apps/peppol). | | | | - | - | | **Scope** | B2G | | **Law** | Act on e-invoicing in public procurement (NN 94/18), plus the Fiscalization Act (NN 89/25) for reporting | | **Platform** | FINA central platform (e-Račun za državu) | | **Network** | Croatian 4-corner network for Croatian suppliers. Peppol for foreign suppliers | | **Format** | HR CIUS for Croatian suppliers. Peppol BIS Billing 3.0 for foreign suppliers | | **Effective date** | Mandatory since **July 2019**. Reporting since **January 2026** | | **Agency** | FINA (platform) and Porezna uprava (reporting) | | **Invopop support** | Foreign suppliers: [Peppol app](/apps/peppol). Croatian suppliers: coming soon | ## E-reporting After the invoice itself, businesses report what happens to it. The supplier reports the payment of an outgoing invoice. The recipient reports the rejection of an incoming invoice. Both reports are due by the 20th of the following month. A recipient that rejects an invoice cannot deduct its VAT. These reports set the status of the invoice (paid or rejected) in the tax authority's portal. A recipient rejects an invoice with an application response message to the supplier, and then reports the rejection to CIS. Sometimes a recipient has no address in AMS, so the supplier cannot send an e-invoice. The supplier then issues the invoice in another form and reports the supply to CIS. ## Regulation > [accordion] Invoice format and content > > Croatian e-invoices follow the European **EN 16931** standard through a national profile (**HR CIUS**), in UBL 2.1 or CII format. Some Croatian rules apply: > > * Each invoice line must have a product classification code (KPD). Credit notes and prepayment invoices do not need it. > * Units of measure, currencies, document types and VAT categories use the standard European code lists. > * All amounts reported to CIS must be in euros (EUR), also for an invoice in another currency. > * A self-billed invoice uses document type 389 and business process P12. > > The legal invoice is the structured XML file. No PDF layout is required. A readable copy is optional. > [accordion] Who must comply > > The obligation applies to VAT-registered persons, income and profit taxpayers, and public bodies that are established in Croatia. It covers only domestic transactions, where both parties have their seat, residence or habitual residence in Croatia. > > * **VAT-registered businesses**: issue and receive e-invoices from January 2026. > * **Businesses that are not VAT-registered**: receive from January 2026, issue from January 2027. They can use the free **MIKROeRAČUN** app from the tax authority. > * **Foreign businesses**: outside the Fiscalization Act. For a Croatian business customer, they issue the invoice on paper or in another form that the VAT rules accept. For a public body, they use Peppol. > [accordion] VAT rates > > Croatia adopted the euro in 2023 and applies the standard EU VAT framework. > > | Rate | Percentage | Application | > | - | - | - | > | Standard | **25%** | Most goods and services | > | Reduced | **13%** | Selected goods and services | > | Reduced | **5%** | Selected goods and services | > > The tax number (OIB) identifies each business. Cash payments on a business invoice are limited to EUR 700. > [accordion] Certificates and service providers > > A qualified certificate that carries the business's OIB signs the exchange and the reports. Any EU trust service provider can issue it. The tax authority does not issue it. A company that sends or reports invoices for other businesses must be certified by the tax authority as an **information intermediary**. It does not have to be established in Croatia, and several foreign providers are on the official list. > > A business can also report to CIS itself through the tax authority's **FiskAplikacija**. It can give an intermediary or an accountant the authorization to report for it. > [accordion] Archiving > > Keep e-invoices for 6 years in their original structured form. > [accordion] Penalties > > Fines go up to EUR 66,360 for companies. Software providers are responsible for the compliance of their software. No grace period applies: the rules have applied since January 2026. > [accordion] More information > > * [Porezna uprava](https://porezna.gov.hr/fiskalizacija): Croatian tax authority, fiscalization documentation > * [Fiscalization of eRačun, FAQ](https://porezna-uprava.gov.hr/hr/fiskalizacija-eracuna-8049/8049): official answers from the tax authority, in Croatian > * [List of information intermediaries](https://porezna-uprava.gov.hr/hr/popis-informacijskih-posrednika/8019): certified service providers > * [FINA, e-invoices in public procurement](https://www.fina.hr/javne-usluge/e-racun-u-javnoj-nabavi/upute-za-obveznike-javne-nabave-u-sustavu-razmjene-e-racuna): how suppliers send e-invoices to public bodies, in Croatian > * [FINA, sending e-invoices through Peppol](https://www.fina.hr/eng/public-services/e-invoice/sending-einvoices-through-peppol-network): the Peppol route for foreign suppliers > * [European Commission, eInvoicing in Croatia](https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467108879/eInvoicing+in+Croatia) ## FAQ Compliance questions > [accordion] Is e-invoicing mandatory in Croatia? > > Yes. Under Fiskalizacija 2.0 (eRačun), VAT-registered businesses established in Croatia must issue and receive structured e-invoices since January 2026. They must also report each invoice to the tax authority. Businesses that are not VAT-registered must receive e-invoices since January 2026 and issue them from January 2027. > [accordion] What are the two obligations under Fiskalizacija 2.0? > > First, exchange a structured e-invoice with the recipient over Croatia's 4-corner network. Second, report each invoice to the tax authority's Fiscalization System (CIS), separately from the exchange. The payment or the rejection of the invoice is reported later. > [accordion] Does Fiskalizacija 2.0 apply to foreign companies? > > No. The obligation covers only domestic transactions between businesses with their seat, residence or habitual residence in Croatia. A foreign supplier issues invoices to Croatian businesses on paper or in another form that the VAT rules accept. To invoice a Croatian public body, a foreign supplier uses Peppol. > [accordion] Can I send B2G invoices to Croatian public bodies over Peppol? > > Only if your business is established outside Croatia. A foreign supplier sends a Peppol BIS Billing 3.0 invoice to FINA's Peppol access point, with the recipient ID `9934:` plus the public body's OIB. A Croatian supplier sends the invoice over the Croatian network in the HR CIUS profile, the same way as to a business. It also reports the invoice to the tax authority. > [accordion] Can I use a plain Peppol invoice in Croatia? > > Not for a domestic Croatian transaction. Croatia uses the European EN 16931 standard with its own national profile (HR CIUS), and a Peppol BIS Billing 3.0 invoice does not meet it. Croatia's network uses the same technology as Peppol, but it is a separate network with its own directory. The only Peppol route is from a foreign supplier to a public body. > [accordion] When must a received invoice be reported? > > The recipient reports a received invoice to the tax authority within 5 working days. The supplier reports it at issue. Payments of outgoing invoices and rejections of incoming invoices are reported by the 20th of the following month. > [accordion] How are consumer (B2C) sales handled? > > Consumer sales stay on the older receipt system, a separate connection to the same tax authority backend. The point of sale signs each receipt, reports it in real time, and prints it with an identifier, a security code and a QR code. Since January 2026, this applies to all payment methods, not only cash. > [accordion] How long must invoices be kept in Croatia? > > Keep e-invoices for 6 years in their original structured form. > [accordion] What are the penalties for non-compliance? > > Fines go up to EUR 66,360 for companies. Software providers are responsible for the compliance of their software. No grace period applies. > [accordion] What VAT rates apply in Croatia? > > A standard rate of 25%, with reduced rates of 13% and 5%. Croatia uses the euro. More available in our [Croatia FAQ](/faq/croatia) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Croatia's regulation → # Invoicing compliance in Denmark Source: https://docs.invopop.com/compliance/denmark Denmark's mandatory e-invoicing requirements, NemHandel, OIOUBL, Peppol BIS, and digital bookkeeping obligations > [card] [Denmark's e-invoicing regulation timeline](/timelines/denmark) > > View current and upcoming regulation → > [accordion] 🇩🇰 Invopop resources for Denmark > > | | | > | - | - | > | Compliance | [Invoicing compliance in Denmark](/compliance/denmark) [Compliance timeline](/timelines/denmark) | > | Apps | [Denmark](/apps/denmark) [Peppol](/apps/peppol) | > | Guides | [Supplier registration guide](/guides/dk-nemhandel-supplier) [Issuing invoices guide](/guides/dk-nemhandel) [Receiving invoices guide](/guides/dk-nemhandel-receiving) [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-denmark) | > | FAQ | [Denmark FAQ](/faq/denmark) | > | GOBL | [Danish OIOUBL 2.1 Addon](https://docs.gobl.org/addons/dk-oioubl-v2) [Denmark Tax Regime](https://docs.gobl.org/regimes/dk) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.dk.oioubl](https://github.com/invopop/gobl.dk.oioubl) [gobl.ubl](https://github.com/invopop/gobl.ubl) | ## Executive summary Denmark was the first country in Europe to mandate B2G e-invoicing, effective February 2005, and now is adopting broader B2B digitalization. The country operates a mature e-invoicing infrastructure through **NemHandel** and **Peppol**, using **OIOUBL 2.1** and **Peppol BIS Billing 3.0** as accepted formats. The January 2026 [cancellation of OIOUBL 3.0](https://www.vatupdate.com/2026/02/09/denmark-cancels-oioubl-3-0-and-unveils-new-unified-e-invoicing-strategy/) signals a strategic pivot toward Peppol as the single unified standard. [NemHandel / Peppol](#nemhandel-peppol-b2g) is mandatory for all invoices to public authorities. [Digital Bookkeeping Act](#digital-bookkeeping-act-b2b) requires all businesses to use certified digital bookkeeping systems capable of sending and receiving structured e-invoices in Peppol BIS 3.0 and OIOUBL formats, with rollout completing in 2026. There is currently **no B2B e-invoicing transmission mandate** in Denmark — the Bookkeeping Act creates a capability requirement, not a usage mandate. A domestic e-reporting obligation is expected by approximately 2028. Denmark has a single flat **25% VAT rate (moms)** with no reduced rates, and uses a post-audit compliance model with no real-time reporting to tax authorities. ## Invoicing in Denmark Denmark's e-invoicing framework is built on NemHandel and Peppol, paired with a Bookkeeping Act that requires all businesses to be e-invoicing-capable. The framework applies uniformly across Denmark (excluding Greenland and the Faroe Islands, which have their own independent tax systems). * [NemHandel / Peppol](#nemhandel-peppol-b2g) mandatory since February 2005 for all invoices to Danish public authorities. * [Digital Bookkeeping Act](#digital-bookkeeping-act-b2b) requires certified digital bookkeeping systems capable of e-invoicing, phased in through 2026 for all businesses with turnover above DKK 300,000. > [accordion] NemHandel / Peppol (B2G) > > > [!NOTE] > > > > Denmark has no B2B e-invoicing transmission mandate as of 2026. The Bookkeeping Act requires e-invoicing-capable systems but does not mandate that every B2B invoice is sent electronically. A domestic e-reporting obligation is expected by approximately 2028. > > Suppliers invoicing Danish public authorities must submit electronic invoices via NemHandel or the Peppol network — paper invoices are rejected. Public entities are identified by an **EAN/GLN number** in the NemHandelsregisteret (NHR), which is integrated with the Peppol SML. Accepted formats are **OIOUBL 2.1** and **Peppol BIS Billing 3.0**. NemHandel is managed by the Danish Business Authority (Erhvervsstyrelsen), Denmark's Peppol Authority. > > | | | > | - | - | > | **Scope** | B2G | > | **Format** | OIOUBL 2.1, Peppol BIS Billing 3.0 | > | **Compliance** | e-invoicing | > | **Infrastructure** | NemHandel / Peppol (four-corner model) | > | **Model** | Decentralized (access point network) | > | **Effective date** | Mandatory since **February 2005** | > | **Agency** | [Erhvervsstyrelsen (ERST)](https://erhvervsstyrelsen.dk) / [Digitaliseringsstyrelsen](https://digst.dk) | > | **Invopop support** | [Denmark App](/apps/denmark), [Peppol App](/apps/peppol) | > > > [card] [Denmark](/apps/denmark) > > > > Connect the app to send OIOUBL invoices over NemHandel → > > > [card] [Peppol](/apps/peppol) > > > > Connect the app to send invoices to Danish public authorities → > [accordion] Digital Bookkeeping Act (B2B) > > > [!WARNING] > > > > The Digital Bookkeeping Act is being phased in through 2026. All businesses with annual turnover exceeding DKK 300,000 must use a compliant digital bookkeeping system from January 1, 2026. > > Denmark's 2022 Bookkeeping Act requires businesses to use certified digital bookkeeping systems capable of sending and receiving structured e-invoices in Peppol BIS 3.0 and OIOUBL formats. This is a **capability mandate**: systems must support e-invoicing, but there is no requirement that every invoice is transmitted electronically. Systems must also support SAF-T exports on demand and perform automated weekly backups to a secure, EU/EEA-hosted server. > > | | | > | - | - | > | **Scope** | B2B, B2G (capability requirement, not transmission mandate) | > | **Format** | Peppol BIS Billing 3.0, OIOUBL 2.1 | > | **Compliance** | Digital bookkeeping and e-invoicing readiness | > | **Infrastructure** | Peppol / NemHandel | > | **Model** | Post-audit with SAF-T on demand | > | **Effective date** | Phased rollout, completing **January 1, 2026** for most businesses | > | **Agency** | [Erhvervsstyrelsen (ERST)](https://erhvervsstyrelsen.dk) | > | **Invopop support** | [Denmark App](/apps/denmark), [Peppol App](/apps/peppol), upcoming SAF-T support. | > > > [card] [Denmark](/apps/denmark) > > > > Connect the app to send and receive e-invoices over NemHandel → > > > [card] [Peppol](/apps/peppol) > > > > Connect the app to get you covered → ## E-reporting There is no real-time reporting to tax authorities — SAF-T exports are provided on demand during SKAT inspections. Formal system certification is not required, though an ISAE 3402 audit declaration based on a SKAT template is recommended for documentation. Non-compliance triggers fines starting at DKK 10,000, escalating for repeated violations. ## Regulation > [accordion] Legally required invoice content > > Danish invoice requirements implement EU VAT Directive Article 226 through the Momsloven (Danish VAT Act) and Momsbekendtgørelsen (Ministerial Order on VAT). A full invoice is required for B2B sales of DKK 3,000 or more (incl. VAT) and B2C sales exceeding DKK 5,000. > > **Full Invoice** > > * **Supplier's full name and address**, and **CVR number** (8-digit business registration number; formatted as DK + 8 digits for EU VAT purposes). > * **Buyer's full name and address**. For intra-EU B2B transactions, the buyer's VAT number must also be included. > * **Sequential invoice number** — unique and part of an ongoing series. > * **Invoice date** (date of issue). > * **Delivery / supply date** if different from the invoice date. > * **Clear description** of the goods delivered or services provided, including quantity and unit price excluding VAT. > * **Any discounts** not already included in the unit price. > * **Taxable base** — total price excluding VAT. > * **VAT rate** applied (25%). > * **VAT amount** in DKK or EUR. If the invoice is in another currency, the total Danish VAT must additionally be stated in DKK or EUR, along with the exchange rate used. > * **Total amount including VAT**. > * For **reverse charge** transactions: a reference to the applicable provision and the customer's VAT number. > * For **VAT-exempt or zero-rated supplies**: a reference to the applicable VAT Act provision (e.g. "0% VAT — intra-Community supply, Momslovens §34"). > > **Simplified Invoice** > > Permitted for B2B sales below DKK 3,000 or B2C sales up to DKK 5,000: > > * Supplier's name, address, and CVR number. > * Invoice date. > * Description of goods or services. > * Total amount including VAT and VAT rate, or the statement "moms inkluderet" (VAT included). > [accordion] Archival period > > Under the **Bogføringsloven** (Danish Bookkeeping Act), all accounting records — including invoices, receipts, and supporting documentation — must be retained for **5 years from the end of the financial year** to which they relate. Records must be stored in a structured, machine-readable format that cannot be altered, backdated, or deleted. The Act requires automated weekly backups to a secure server hosted within the EU/EEA by an independent third party. > > Note that certain sectors or EU-funded projects may require longer retention under specific grant terms or sectoral regulations. > [accordion] Main VAT types for Denmark > > Denmark levies a single flat VAT rate with no reduced rates — one of the simplest VAT structures in the EU. > > 1. **Moms (Merværdiafgift) — Standard rate: 25%** > * Applies to all taxable goods and services. There are no reduced rates. > 2. **Zero-rated supplies (0%, with input VAT recovery)** under Momslovens §§34–36: > * Exports of goods outside the EU > * Intra-Community supplies of goods to VAT-registered buyers in other EU member states > * International passenger transport > * Certain seagoing vessels and aircraft > * Newspapers and periodicals (below a certain threshold of advertising content) > 3. **VAT-exempt supplies** (no VAT charged, no input VAT deduction) under Momslovens §13: > * Healthcare and medical services > * Education > * Financial and insurance services > * Domestic passenger transport (taxis, buses, scheduled domestic aviation) > * Postal services (universal service obligation) > * Residential letting > * Cultural activities (theatre, concerts, museums) > * Gambling and lottery > > Denmark does **not** apply VAT in Greenland or the Faroe Islands. Transactions between Denmark proper and these territories are treated as exports/imports. > [accordion] OIOUBL format and the cancellation of OIOUBL 3.0 > > **OIOUBL** (Offentlig Information Online – Universal Business Language) is Denmark's national e-invoicing standard, based on **OASIS UBL 2.0**. The current version, **OIOUBL 2.1**, has been in mandatory use since May 2022 and constitutes Denmark's Core Invoice Usage Specification (CIUS) under EN 16931. It supports invoices, credit notes, reminders, and additional business documents with Danish-specific fields beyond the base Peppol BIS format. > > Both OIOUBL 2.1 and **Peppol BIS Billing 3.0** are accepted for B2G transactions. Updated Schematron validation rules (v1.17) become mandatory from **May 15, 2026**. > > **OIOUBL 3.0**, published as a release candidate in November 2024, was **formally cancelled on January 14, 2026** by Erhvervsstyrelsen. The decision followed feedback from service providers that maintaining two parallel standards was operationally unsustainable. Denmark is now converging on a single Peppol-aligned standard — likely based on Peppol PINT or a Danish National CIUS of EN 16931. Further details will be published by Erhvervsstyrelsen once the technical specification is finalized. > [accordion] POS fiscalization requirements > > Denmark introduced **electronic sales registration (ESR) requirements** effective **January 1, 2024**, targeting businesses with annual turnover between DKK 50,000 and DKK 10 million in specific sectors: cafés, pubs, nightclubs, restaurants, fast food establishments, ice cream parlors, grill bars, and grocery stores/kiosks. Approximately 12,500 businesses are affected. > > POS systems in scope must: > > * Record all transactions in an immutable electronic journal. > * Store data in **SAF-T format**. > * Digitally sign transactions using an **OCES certificate**. > * Separate sales totals by payment method. > > There is **no real-time reporting** to tax authorities — SAF-T exports are provided on demand during SKAT inspections. Formal system certification is not required, though an ISAE 3402 audit declaration based on a SKAT template is recommended for documentation. Non-compliance triggers fines starting at **DKK 10,000**, escalating for repeated violations. > [accordion] Greenland and the Faroe Islands > > Denmark's VAT law and e-invoicing regulations apply to **Denmark proper only**. Both Greenland and the Faroe Islands are autonomous territories within the Kingdom of Denmark with independent tax legislation. > > **Greenland** is not part of the EU (it withdrew from the EEC in 1985). It has **no VAT or sales tax**. Corporate income tax is 31.8%. Supplies from Denmark to Greenland are treated as exports (zero-rated for Danish VAT); supplies from Greenland to Denmark are imports subject to 25% moms. Greenland is not subject to the Danish Bookkeeping Act or NemHandel requirements. > > **The Faroe Islands** never joined the EU and operate their own VAT system called **MVG** (meirvirðisgjald), levied at 25% and administered by the Faroese tax authority **TAKS** (Skattistovan). Corporate tax is 18%. The Faroe Islands have no mandatory e-invoicing requirements and are not subject to Danish bookkeeping legislation. ### Compliance questions Denmark > [accordion] Am I required to issue B2B or B2C e-invoices in Denmark? > > No. As of 2026, Denmark has **no B2B or B2C e-invoicing transmission mandate**. The [Digital Bookkeeping Act](/compliance/denmark#digital-bookkeeping-act-b2b) requires businesses to use certified systems that are *capable* of sending and receiving structured e-invoices (Peppol BIS 3.0 and OIOUBL), but it does not require that every invoice is actually sent electronically. You must be ready to e-invoice, but you are not yet obligated to do so for B2B or B2C transactions. > > E-invoicing is only mandatory for **B2G** — all invoices to Danish public authorities must be submitted electronically via NemHandel or the Peppol network. A domestic e-reporting obligation covering B2B is expected by approximately 2028. NemHandel > [accordion] Is OIOUBL still the right format now that OIOUBL 3.0 has been cancelled? > > Yes. **OIOUBL 2.1** remains Denmark's national e-invoicing standard and is accepted alongside Peppol BIS Billing 3.0 for invoicing public authorities. What Erhvervsstyrelsen cancelled in January 2026 was **OIOUBL 3.0**, the planned successor that never left its release-candidate stage. Denmark is converging on a single Peppol-aligned standard in the longer term, but until that is specified and rolled out, OIOUBL 2.1 stays in mandatory use — with updated schematron validation rules (v1.17) applying from May 15, 2026, which the Denmark app already validates against. > [accordion] Do I have to use NemHandel to invoice Danish public authorities? > > Danish public authorities only accept electronic invoices, delivered over **NemHandel** or the **Peppol network** — paper and PDF invoices are rejected. Public entities are identified by their **EAN/GLN number** in the NemHandelsregisteret (NHR). The [Denmark app](/apps/denmark) delivers OIOUBL 2.1 invoices over NemHandel; for Peppol BIS delivery, the [Peppol app](/apps/peppol) covers the same receivers through the Peppol network. Peppol > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. More available in our [Denmark FAQ](/faq/denmark) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Denmark's regulation → # E-invoicing in Europe Source: https://docs.invopop.com/compliance/europe Overview of e-invoicing compliance across Europe, where EN 16931 and Peppol provide a common foundation but countries vary widely in compliance models ## Executive summary Europe is the most diverse e-invoicing region in the world. While the EU provides a common legal and technical foundation through **[EN 16931](/compliance/glossary)** and **[EU Directive 2014/55/EU](https://eur-lex.europa.eu/eli/dir/2014/55/oj)**, each country has adopted a different compliance model — from Italy's full clearance system to Belgium and Norway's decentralized Peppol exchange, and France's unique five-corner platform architecture. The **[Peppol](/apps/peppol) network** is the most widely adopted infrastructure, used for B2G invoicing in most EU countries and increasingly mandated for B2B transactions. EN 16931, the European Norm defining the semantic data model for electronic invoices, provides the interoperability backbone. On top of these shared foundations, countries layer their own formats (FatturaPA in Italy, XRechnung in Germany, Factur-X in France) and reporting requirements (SII in Spain, SAF-T in Norway and Portugal, myDATA in Greece). The period from 2026 to 2028 represents the most significant wave of B2B e-invoicing mandates in European history. France, Germany, Belgium, Greece, Poland, and Norway all have major milestones in this window. Looking further ahead, the EU's **VAT in the Digital Age (ViDA)** initiative is expected to introduce harmonized digital reporting requirements across all member states by approximately 2030. ## Common standards and formats ### EN 16931 [EN 16931](/compliance/glossary) is the European Norm that defines the semantic data model for electronic invoices. It acts as the interoperability backbone across all EU member states, ensuring that invoices can be understood regardless of the specific format used. EU Directive 2014/55/EU mandates that all public authorities in the EU must accept e-invoices conforming to EN 16931. ### Peppol The [Peppol network](/apps/peppol) provides the decentralized infrastructure for exchanging electronic documents. Businesses connect through certified Access Points that handle routing and delivery. Peppol is used for B2G invoicing in most EU countries and is becoming the default network for B2B transactions in France, Belgium, and the Nordic countries. ### Country-specific formats While EN 16931 provides the semantic foundation, countries implement it through different syntaxes and extensions: Indicates upcoming GOBL support | Country | B2B | B2G | | - | - | - | | Austria | — | Peppol BIS 3.0 e-Rechnung | | Belgium | Peppol BIS 3.0 | Peppol BIS 3.0 | | Croatia | HR-FISK 2.0 | HR-FISK 2.0 Peppol BIS 3.0 (foreign suppliers) | | Cyprus | — | Peppol BIS 3.0 | | Denmark | Peppol BIS 3.0 | Peppol BIS 3.0 OIOUBL | | Estonia | Peppol BIS 3.0 | Peppol BIS 3.0 | | Finland | Peppol BIS 3.0 Finvoice | Peppol BIS 3.0 Finvoice | | France | Peppol BIS 3.0 Factur-X UN/CEFACT CII | Peppol BIS 3.0 Factur-X UN/CEFACT CII | | Germany | XRechnung ZUGFeRD | XRechnung Peppol BIS 3.0 | | Greece | myDATA | myDATA Peppol BIS 3.0 | | Ireland | — | Peppol BIS 3.0 | | Italy | FatturaPA | FatturaPA Peppol BIS 3.0 | | Lithuania | — | Peppol BIS 3.0 | | Luxembourg | — | Peppol BIS 3.0 | | Netherlands | Peppol BIS 3.0 | Peppol BIS 3.0 SI-UBL 2.0 | | Norway | EHF Billing 3.0 Peppol BIS 3.0 | EHF Billing 3.0 Peppol BIS 3.0 | | Poland | KSeF FA(3) | KSeF FA(3) Peppol BIS 3.0 | | Portugal | — | Peppol BIS 3.0 | | Slovakia | Peppol BIS 3.0 | Peppol BIS 3.0 | | Sweden | Peppol BIS 3.0 | Peppol BIS 3.0 | ## Compliance models Europe has the widest diversity of compliance models of any region. The same transaction type (B2B) can follow entirely different regulatory architectures depending on the country. **Italy** operates a full [clearance model](/compliance/glossary) through the SDI (Sistema di Interscambio). Every invoice must be submitted to SDI, which validates it and routes it to the buyer. The invoice is only legally valid after SDI approval. This model has been mandatory for all businesses since 2019 and is the closest European equivalent to the Latin American approach. **France** is building a unique architecture where businesses connect through certified **Plateformes Agréées (PAs)**. Each PA looks up the buyer in the state Annuaire directory and routes the invoice to the buyer's PA over Peppol. In parallel, the PA submits the invoice data to a government data concentrator for VAT reporting. This creates a [five-corner model](/compliance/glossary) that integrates e-invoicing and e-reporting into a single flow. **Belgium**, **Norway**, and **Denmark** use the Peppol network as their primary e-invoicing infrastructure. Invoices flow directly between business Access Points without passing through a government clearance hub. Tax authorities receive data through separate reporting mechanisms or plan to add a fifth-corner reporting layer. **Finland** runs two networks. Most Finnish e-invoices travel on a domestic network of e-invoice operators and banks, as Finvoice or TEAPPSXML. Peppol is the second network. Public bodies receive on both, and there is no clearance hub on either network. **Germany** requires XRechnung for B2G (via Peppol) but is transitioning B2B to mandatory structured e-invoice acceptance (January 2025) followed by mandatory issuance (2027-2028). **Portugal** uses the ATCUD validation code system alongside SAF-T reporting. **Greece** combines Peppol for B2G with the myDATA real-time reporting platform. **Spain** layers VERI\*FACTU, TicketBAI, Facturae, and SII across different regions and company sizes. ## Key dates | Country | Milestone | | - | - | | Belgium | B2B Peppol mandatory — January 1, 2026 | | Croatia | Fiskalizacija 2.0 (eRačun) B2B e-invoicing and reporting mandatory for VAT-registered businesses — January 1, 2026 | | Croatia | E-invoice issuance for businesses that are not VAT-registered — January 1, 2027 | | France | B2B mandatory acceptance + large/medium issuance — September 2026 | | France | B2B mandatory issuance for all — September 2027 | | Germany | B2B mandatory e-invoice receipt — January 2025 (already effective) | | Germany | B2B mandatory issuance (prior-year turnover more than €800k) — January 2027 | | Germany | B2B mandatory issuance for all — January 2028 | | Greece | Mandatory for companies with revenue more than €1M — February 2026 | | Greece | Mandatory for all businesses — October 2026 | | Norway | B2B mandatory e-invoice sending proposed — January 2028 | | Poland | KSeF mandatory for large taxpayers — February 2026 | | Poland | KSeF mandatory for others — April 2026; micro-enterprises — January 2027 | | Portugal | B2B ATCUD/QR mandatory — January 1, 2026 | | Romania | RO e-Factura transmission deadline becomes 5 working days: January 1, 2026 | | Slovakia | B2B and B2G e-invoicing and reporting mandatory — January 1, 2027 | | Spain | VERI\*FACTU mandatory for businesses — October 2028 (postponed from January 2027, announced by the AEAT on 5 October 2026) | The 2026-2028 window is the critical period for European e-invoicing. Nearly every country is implementing or expanding B2B mandates during this time. ### VAT in the Digital Age (ViDA) Looking beyond individual country mandates, the EU's **ViDA** initiative aims to introduce harmonized Digital Reporting Requirements (DRRs) across all member states. Expected around 2030, ViDA will likely require real-time or near-real-time digital reporting based on EN 16931. Several countries — notably Germany — are explicitly designing their current systems with ViDA alignment in mind. ## Invopop countries in this region [Belgium](/compliance/belgium) Peppol BIS 3.0, B2B from 2026 ![Belgium flag](https://assets.invopop.com/flags/be.svg) [Croatia](/compliance/croatia) Fiskalizacija 2.0 (eRačun), B2G Peppol for foreign suppliers ![Croatia flag](https://assets.invopop.com/flags/hr.svg) [Denmark](/compliance/denmark) Peppol BIS 3.0, e-bookkeeping ![Denmark flag](https://assets.invopop.com/flags/dk.svg) [Finland](/compliance/finland) Finvoice, Peppol BIS 3.0 ![Finland flag](https://assets.invopop.com/flags/fi.svg) [France](/compliance/france) Peppol five-corner model, PA ![France flag](https://assets.invopop.com/flags/fr.svg) [Germany](/compliance/germany) XRechnung / ZUGFeRD ![Germany flag](https://assets.invopop.com/flags/de.svg) [Greece](/compliance/greece) EN 16931, myDATA reporting ![Greece flag](https://assets.invopop.com/flags/gr.svg) [Hungary](/compliance/hungary) Transitioning to Peppol ![Hungary flag](https://assets.invopop.com/flags/hu.svg) [Italy](/compliance/italy) FatturaPA via SDI ![Italy flag](https://assets.invopop.com/flags/it.svg) [Norway](/compliance/norway) Peppol BIS Billing 3.0, SAF-T ![Norway flag](https://assets.invopop.com/flags/no.svg) [Poland](/compliance/poland) KSeF, phased 2026-2027 ![Poland flag](https://assets.invopop.com/flags/pl.svg) [Portugal](/compliance/portugal) ATCUD/QR validation, SAF-T ![Portugal flag](https://assets.invopop.com/flags/pt.svg) [Romania](/compliance/romania) RO e-Factura clearance ![Romania flag](https://assets.invopop.com/flags/ro.svg) [Slovakia](/compliance/slovakia) Peppol BIS 3.0, B2B from 2027 ![Slovakia flag](https://assets.invopop.com/flags/sk.svg) [Spain](/compliance/spain) VERI\*FACTU, TicketBAI, SII ![Spain flag](https://assets.invopop.com/flags/es.svg) # Invoicing compliance in Finland Source: https://docs.invopop.com/compliance/finland Finland's e-invoicing under Act 241/2019: B2G reception of EN 16931 invoices, a B2B right to request e-invoices, the domestic operator network with Finvoice and TEAPPSXML, and Peppol BIS Billing 3.0 > [card] [Finland's e-invoicing regulation timeline](/timelines/finland) > > View current and upcoming regulation → > [accordion] 🇫🇮 Invopop resources for Finland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Finland](/compliance/finland) [Compliance timeline](/timelines/finland) | > | Apps | [Finland](/apps/finland) [Peppol](/apps/peppol) | > | Guides | [Supplier registration](/guides/fi-finvoice-supplier) [Issuing invoices](/guides/fi-finvoice) [Receiving invoices](/guides/fi-finvoice-receiving) [Peppol guide](/guides/peppol) | > | FAQ | [Finland FAQ](/faq/finland) | > | GOBL | [Finland Tax Regime](https://docs.gobl.org/regimes/fi) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.fi.finvoice](https://github.com/invopop/gobl.fi.finvoice) [gobl.ubl](https://github.com/invopop/gobl.ubl) | ## Executive summary Finland has no government clearance platform and no e-reporting. The Act on Electronic Invoicing by Contracting Entities and Traders (**Act 241/2019**) implements EU Directive 2014/55/EU and sets two rules. [B2G reception](#public-bodies-b2g): public contracting entities must receive and process e-invoices. Central government has done so since **1 April 2019**, and all other contracting entities since **1 April 2020**. Since **1 April 2021**, the state receives only invoices that follow the European standard **EN 16931**. Paper invoices and PDFs sent by email are not e-invoices. [Right to request an e-invoice (B2B)](#right-to-request-e-invoicing-b2b): since **1 April 2020**, a public buyer or a business can ask another one for its invoices as e-invoices. The rule covers businesses with an annual turnover above **EUR 10,000**, on both sides. There is no B2B transmission mandate. There is **no B2C e-invoicing mandate**. E-invoices travel on two networks that run side by side: * The [domestic operator network](#domestic-operator-network-finvoice-and-teappsxml): Finnish **e-invoice operators** and banks exchange invoices as **Finvoice 3.0** or **TEAPPSXML 3.0**. The national e-invoice address register lists about 370,000 Business IDs. * [Peppol](#peppol-network): **Peppol BIS Billing 3.0** (UBL 2.1), supervised by the Finnish State Treasury (**Valtiokonttori**) as the national Peppol Authority. Finland applies VAT (ALV) at **25.5%**, with reduced rates of **13.5%** and **10%**. The EU's **VAT in the Digital Age (ViDA)** directive brings digital reporting for intra-EU supplies from **1 July 2030**. ## Invoicing in Finland The sender's service provider delivers each invoice to the receiver's service provider. On the domestic network, the sender needs the receiver's **e-invoice address** and **operator ID**. On Peppol, the sender needs the receiver's Peppol ID. The national register at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi) lists both, so one lookup shows how a receiver is reachable. * [Public bodies (B2G)](#public-bodies-b2g) receive EN 16931 e-invoices on the domestic network or on Peppol. * [Right to request e-invoicing (B2B)](#right-to-request-e-invoicing-b2b) lets businesses above the EUR 10,000 turnover threshold ask for e-invoices. * [Domestic operator network](#domestic-operator-network-finvoice-and-teappsxml) carries Finvoice and TEAPPSXML between operators and banks. * [Peppol network](#peppol-network) carries Peppol BIS Billing 3.0, with a `0216` Peppol ID for Finnish organisations. Invopop covers both networks. The [Finland app](/apps/finland) sends on the domestic network through Invopop's partner operator. The [Peppol app](/apps/peppol) sends on Peppol. The diagram below shows an invoice on the domestic network: ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant S as Supplier participant IV as Invopop participant AX as Operator participant RO as Buyer's operator participant B as Buyer S->>IV: Invoice (GOBL) IV->>AX: Check how the buyer is reachable IV->>AX: Submit the e-invoice AX->>RO: Deliver in the buyer's format RO->>B: Finvoice or TEAPPSXML alt Buyer on Peppol only AX-->>IV: Not reachable on this network Note over IV,B: Invoice through the Peppol app instead end ``` **1. Invoice creation** The supplier's system sends the invoice to Invopop as a GOBL document. **2. Check the buyer** Invopop asks the operator how it would reach the buyer. Invopop refuses the invoice if the buyer cannot get a true e-invoice, for example if the operator would print it on paper. **3. Submit to the operator** Invopop generates an EN 16931 e-invoice and submits it to the operator. The operator validates it against the European standard. **4. Deliver between operators** The operator sends the invoice to the buyer's operator or bank, in the format that operator uses. **5. Buyer receives** The buyer gets the invoice as Finvoice or TEAPPSXML in its financial system. **6. Buyers reachable only on Peppol** If the buyer is only on Peppol, the operator cannot reach it, and Invopop returns an error. Invoice those buyers through the [Peppol app](/apps/peppol). > [accordion] Public bodies (B2G) > > Under Act 241/2019, public contracting entities must receive and process e-invoices. Central government has done so since **1 April 2019**, and all other contracting entities since **1 April 2020**. Since **1 April 2021**, the state receives only invoices that follow EN 16931. Operators validate invoices against the standard and reject the ones that fail. > > The state accepts EN 16931 content in **Finvoice 3.0**, **TEAPPSXML 3.0**, **Peppol BIS Billing 3.0** (UBL 2.1) or **CII**. Suppliers reach government agencies through the domestic network, where the state e-invoice operator is **Posti Messaging**, or on Peppol. Finland has no central invoice hub. The state does not accept invoices attached to an email. > > Government agencies ask for their own references in the invoice XML. These are an order number that starts with `V1`, an agreement number that starts with `VSK1` and a posting reference that starts with `TK1`. Peppol ordering has applied to central government purchases since 1 April 2024. > > | | | > | - | - | > | **Scope** | B2G | > | **Format** | Finvoice 3.0, TEAPPSXML 3.0, Peppol BIS Billing 3.0, CII (EN 16931 content) | > | **Compliance** | e-invoicing | > | **Infrastructure** | Domestic operator network or Peppol | > | **Model** | Decentralized, no central platform | > | **Effective date** | **1 April 2019** (central government), **1 April 2020** (all contracting entities), EN 16931 only from **1 April 2021** | > | **Agency** | Valtiokonttori (Finnish State Treasury) | > | **Invopop support** | [Finland app](/apps/finland) and [Peppol app](/apps/peppol) | > [accordion] Right to request e-invoicing (B2B) > > > [!NOTE] > > > > Finland has no B2B e-invoicing transmission mandate. In 2026, the State Treasury consulted on options for a wider e-invoicing obligation and sent the results to the ministries. No bill exists yet. > > Section 4 of Act 241/2019 lets a public buyer or a business get its invoices as e-invoices, on request, from another one. The act defines a business as one with an annual turnover above **EUR 10,000**. The rule applies to both sides, so a supplier at or below that turnover does not have to issue an e-invoice on request. The right does not apply to private persons. > > | | | > | - | - | > | **Scope** | B2B (on request) | > | **Format** | EN 16931 e-invoice: Finvoice 3.0, TEAPPSXML 3.0 or Peppol BIS Billing 3.0 | > | **Trigger** | A request from a business or public buyer. Both parties above EUR 10,000 turnover | > | **Effective date** | **1 April 2020** | > | **Invopop support** | [Finland app](/apps/finland) for the domestic network, [Peppol app](/apps/peppol) for buyers on Peppol | > [accordion] Domestic operator network: Finvoice and TEAPPSXML > > > [!NOTE] > > > > Invopop reaches buyers on this network through the [Finland app](/apps/finland). The app sends through Invopop's partner operator, which delivers in the format the buyer's operator expects. > > Most Finnish e-invoices travel on a network of **e-invoice operators** and banks. Each company contracts with one operator or bank. The operators then exchange invoices with each other. The operators and banks own the national **e-invoice address register** (*Verkkolaskuosoitteisto*, at verkkolaskuosoite.fi), and TIEKE, the Finnish Information Society Development Centre, maintains it. In 2025, the register listed about 370,000 Business IDs, and operators carried 353.2 million invoices. > > A domestic address has two parts. The **e-invoice address** is usually an **OVT code**: `0037`, the 8-digit Business ID without the hyphen, and an optional suffix of up to 5 characters. The **operator ID** names the operator or bank that receives for the company, as an OVT code or a bank BIC. A sender needs both. > > **Finvoice** is the format of the Finnish banks, published by Finance Finland (*Finanssiala*). Banks also use it for consumer e-invoices to online banking. **TEAPPSXML** is an operator format owned by Tieto. Version 3.0 of both formats can carry EN 16931 content. > > | | | | > | - | - | - | > | **Format** | Finvoice 3.0 | TEAPPSXML 3.0 | > | **Owner** | Finance Finland | Tieto | > | **Syntax** | National XML | National XML | > | **Transport** | Banks and e-invoice operators | E-invoice operators | > | **Scope** | Domestic B2B, B2G and consumer e-invoices | Domestic B2B and B2G | > | **Invopop support** | [Finland app](/apps/finland) | [Finland app](/apps/finland) | > [accordion] Peppol network > > Peppol is the second network in Finland. It is used for invoices to public bodies, for cross-border invoices, and between businesses that are on Peppol. The **Finnish State Treasury (Valtiokonttori)** has been the national Peppol Authority since 2022. It supervises the Peppol service providers that serve Finnish organisations and runs the national Peppol address directory. The directory is part of verkkolaskuosoite.fi, and all Finnish public sector organisations must be in it. Most Finnish e-invoice operators are also Peppol service providers. > > Finnish organisations must use their **OVT code** as their Peppol ID, with the scheme `0216`, for example `0216:003712345678`. The older Finnish schemes `0037`, `0212`, `0213` and `0215` were removed from Peppol at the end of 2024. > > | | | > | - | - | > | **Scope** | B2G, B2B | > | **Format** | Peppol BIS Billing 3.0 (UBL 2.1) | > | **Compliance** | e-invoicing | > | **Infrastructure** | Peppol network | > | **Model** | Four-corner model | > | **Peppol ID** | `0216:` | > | **Agency** | Valtiokonttori (Finnish State Treasury), national Peppol Authority | > | **Invopop support** | [Peppol app](/apps/peppol) | > > > [card] [Peppol](/apps/peppol) > > > > Connect the app to send invoices to Finnish receivers on Peppol → ## E-reporting Finland has no real-time or periodic e-reporting of invoice data. Businesses declare VAT in the periodic VAT return to the Finnish Tax Administration (Verohallinto). The EU's ViDA directive brings digital reporting for intra-EU supplies from **1 July 2030**. Finland has not published its national rules for it yet. ## Regulation > [accordion] Legally required invoice content > > Finnish invoice content rules are in Chapter 22 of the VAT Act (*Arvonlisäverolaki*, 1501/1993), which implements the EU VAT Directive. > > **Full invoice** > > * **Date of issue** and a **unique sequential number**. > * **Supplier's VAT number** (or Business ID), **name and address**. > * **Buyer's name and address**. For intra-EU B2B supplies and reverse charge, the buyer's VAT number too. > * **Quantity and nature** of the goods, or the nature of the services. > * **Date of supply**, if different from the invoice date. > * **Taxable amount** per VAT rate, the **unit price** excluding VAT, and any discounts. > * **VAT rate** and **VAT amount** in euros. > * For **reverse charge**, exempt or zero-rated supplies: a reference to the provision or the phrase that applies. > > **Simplified invoice** > > A simplified invoice is allowed when the total is **EUR 400** or less, and for retail and similar sales to private persons. It is not allowed for intra-EU supplies of goods, distance sales or reverse charge supplies. It shows the date of issue, the supplier's name and VAT number, the goods or services, and the VAT per rate. A correction must refer to the original invoice. > > A self-billed invoice is allowed if the supplier and buyer agree, and the supplier can approve each invoice. > [accordion] Identifiers > > | Identifier | Format | Use | > | - | - | - | > | **Business ID** (*Y-tunnus*) | 7 digits, a hyphen and a check digit, for example `1234567-8` | Company identifier | > | **VAT number** | `FI` and the 8 digits without the hyphen, for example `FI12345678` | VAT identification | > | **OVT code** | `0037`, the 8-digit Business ID and an optional suffix of up to 5 characters, for example `003712345678` | E-invoice address | > | **Peppol ID** | `0216:` and the OVT code, for example `0216:003712345678` | Peppol address | > | **Operator ID** | The operator's OVT code or the bank's BIC | Names the receiver's operator on the domestic network | > [accordion] VAT rates > > Finland applies EU VAT rules under the VAT Act, administered by Verohallinto. > > | Rate | Percentage | Application | > | - | - | - | > | Standard | **25.5%** | Most goods and services (since 1 September 2024) | > | Reduced | **13.5%** | Food, restaurant and catering services, books, medicines, passenger transport, accommodation, cultural, entertainment and sports events (since 1 January 2026, before that 14%) | > | Reduced | **10%** | Newspapers and magazines | > | Zero-rated | **0%** | Intra-EU supplies of goods to VAT-registered buyers, exports and other international trade | > [accordion] Service providers and certificates > > Finland has no state licence for e-invoice operators. The operators coordinate in the e-invoice forum that TIEKE runs. Peppol service providers that serve Finnish organisations follow the requirements of the Finnish Peppol Authority. These include a check that the customer's Business ID is in the national business register. > > No qualified electronic signature is required on an invoice. The supplier and the buyer can choose any control process that gives a reliable audit trail between the invoice and the supply. The invoice must stay authentic, complete and readable for the whole retention period. > [accordion] Archival period > > The Accounting Act (*Kirjanpitolaki*, 1336/1997) sets the retention periods. Invoices and other vouchers must be kept for at least **6 years** from the end of the year in which the financial year ended. Financial statements and ledgers must be kept for at least **10 years** from the end of the financial year. The VAT Act asks for invoices to be available to the Tax Administration without undue delay. Invoices about investments in real estate must be kept for **13 years**. > [accordion] Penalties > > Act 241/2019 has no penalty clause. A business can fail to issue invoices, or fail to put the required information on them, after a request from Verohallinto. The Tax Administration can then impose a **penalty charge for negligence** of up to **EUR 5,000**. > [accordion] More information > > * [Act 241/2019 on electronic invoicing](https://www.finlex.fi/fi/lainsaadanto/2019/241): Finlex, in Finnish > * [Valtiokonttori, invoicing the state](https://www.valtiokonttori.fi/en/services/government-e-invoices/invoicing-the-state/): state e-invoicing rules > * [Valtiokonttori, Peppol Authority](https://www.valtiokonttori.fi/en/services/public-administration-services/the-state-treasury-is-the-finnish-peppol-authority/): Peppol requirements for Finland > * [Verohallinto, VAT invoice requirements](https://www.vero.fi/en/detailed-guidance/guidance/48090/vat-invoice-requirements/): invoice content and retention > * [Finance Finland, Finvoice standard](https://www.finanssiala.fi/en/topics/finvoice-standard/): Finvoice specifications > * [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi): e-invoice address and Peppol ID lookup > * [GOBL Finland regime](https://docs.gobl.org/regimes/fi): VAT rates and Business ID format > * [GOBL EU EN 16931 addon](https://docs.gobl.org/addons/eu-en16931-v2017): UNTDID tax category and document type mapping ## FAQ Compliance questions Finland > [accordion] Is e-invoicing mandatory in Finland? > > For public buyers, yes. Under Act 241/2019, central government has received e-invoices since 1 April 2019, and all other contracting entities since 1 April 2020. Since 1 April 2021, the state receives only invoices that follow EN 16931. Between businesses there is no transmission mandate, but a business can ask its supplier for e-invoices. There is no B2C mandate. > [accordion] What is Finland's B2B 'right to request' e-invoicing? > > Since 1 April 2020, a public buyer or a business can ask another public buyer or business for its invoices as e-invoices. The act defines a business as one with an annual turnover above EUR 10,000. The rule applies to both sides, so a supplier at or below that turnover does not have to issue an e-invoice on request. The right does not apply to private persons. > [accordion] Which Peppol ID does a Finnish company use? > > Its OVT code with the scheme `0216`, for example `0216:003712345678`. The OVT code is `0037`, the 8-digit Business ID without the hyphen, and an optional suffix of up to 5 characters. The Finnish Peppol Authority allows no other scheme for Finnish organisations. > [accordion] What VAT rates apply in Finland? > > The general rate is 25.5%. The reduced rate of 13.5% applies to food, restaurant services, books, medicines, passenger transport, accommodation and events, since 1 January 2026. The reduced rate of 10% applies to newspapers and magazines. Intra-EU supplies of goods to VAT-registered buyers and exports are zero-rated. > [accordion] How long must invoices be archived in Finland? > > The Accounting Act (*Kirjanpitolaki*, 1336/1997) sets the periods. Invoices and other vouchers must be kept for at least 6 years from the end of the year in which the financial year ended. Financial statements must be kept for at least 10 years. Invoices must stay authentic, complete and readable for the whole period. Invoices about investments in real estate must be kept for 13 years. > [accordion] Does an invoice need an electronic signature in Finland? > > No. The supplier and the buyer can choose any control process that gives a reliable audit trail between the invoice and the supply. Finvoice > [accordion] What is Finvoice? > > Finvoice is the Finnish XML e-invoicing format, published by Finance Finland (*Finanssiala*), the association of Finnish banks. Version 3.0 can carry EN 16931 content, and it is a main format on Finland's domestic operator network. You do not produce Finvoice documents yourself. Send a GOBL invoice, and the receiver gets it in the format its operator expects. > [accordion] What are TEAPPSXML and the e-invoice address? > > TEAPPSXML is the other national e-invoice format, owned by Tieto and used between operators. To reach a company on the domestic network, you need two values from the national register at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). The e-invoice address is usually the company's OVT code. The operator ID names the operator or bank that receives for the company. > [accordion] Do I need to choose between the domestic network and Peppol? > > Yes, each network has its own app. Finland runs two e-invoicing networks side by side. The domestic operator network carries most invoices, and its address register lists about 370,000 Business IDs. Peppol is the second network. The [Finland app](/apps/finland) delivers on the domestic network, and the [Peppol app](/apps/peppol) on Peppol. To see which app a receiver needs, look them up at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi), which lists addresses on both networks. Peppol > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. More available in our [Finland FAQ](/faq/finland) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Finland's regulation → # Invoicing compliance in France Source: https://docs.invopop.com/compliance/france France's mandatory e-invoicing and e-reporting framework — Plateforme Agréée model, Annuaire, PPF, Chorus Pro, and the September 2026 mandate. [![Plateforme Agréée — Facturation électronique — République Française](https://mintcdn.com/invopop/ItVK3IIlLSlJLW5W/assets/guides/fr-pa-logo.png?fit=max\&auto=format\&n=ItVK3IIlLSlJLW5W\&q=85\&s=395cd8581d9e65966d1948ba5afafe0d)](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) Invopop is an [**officially approved Plateforme Agréée (PA)**](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. > [card] [France's e-invoicing regulation timeline](/timelines/france) > > View current and upcoming regulation → > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | ## Executive summary France's B2B e-invoicing reform runs on a **five-corner model**: businesses connect through a certified **Plateforme Agréée (PA)**, which routes each invoice over the Peppol network to the buyer's PA, while the PA also forwards the mandated dataset to the **PPF** (*Portail Public de Facturation*) — the government data concentrator that stores VAT data per transaction. PAs look up routing through the **Annuaire**, France's national directory of e-invoicing endpoints. Different transaction types follow different rules: * **B2G** has been mandatory since 2020 via [Chorus Pro](#chorus-pro-b2g). * **B2B** is being rolled out in phases: voluntary pilot in 2025, mandatory **receive** for everyone plus mandatory **issuance** for large and medium-sized companies on 1 September 2026, mandatory issuance for all businesses on 1 September 2027. * **B2C** is exempt from e-invoicing but is subject to **e-reporting** to the PPF. * **Cross-border B2B** is also out of scope for e-invoicing and reported via e-reporting. Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. Coverage: | | App / Guide | | - | - | | B2G via Chorus Pro | French companies: [Public sector guide](/guides/fr-pa-b2g) · Foreign entities: [Chorus Pro France](/apps/choruspro-france) | | B2B PA — registration, invoicing, status | [PA guide](/guides/fr-pa) | | B2C and cross-border e-reporting | [PA reporting guide](/guides/fr-pa-reporting) (in development) | Stripe and Chargebee integrations let merchants and ERPs issue compliant invoices with the PA routing handled automatically. ## E-invoicing > [!NOTE] > > E-invoicing applies to domestic B2B (via a Plateforme Agréée) and B2G (via Chorus Pro). > [accordion] Plateforme Agréée (B2B) > > Each business connects through a certified PA. The PA looks up the buyer in the Annuaire and routes the invoice over Peppol to the buyer's PA, while forwarding a simplified **F1 invoice** to the PPF as the fifth corner. > > | | | > | - | - | > | **Models** | B2B | > | **Status** | Mandatory (phased — see below) | > | **Format** | UBL (Peppol France CIUS), CII, Factur-X (PDF/A-3 with embedded CII) | > | **Infrastructure** | Peppol + Annuaire + PPF | > | **Model** | Five-corner | > | **Scope & deadline** | 1 Sept 2026: all businesses must receive; large and medium-sized companies must issue. 1 Sept 2027: all businesses must issue. | > | **Agency** | [Direction Générale des Finances Publiques](https://www.economie.gouv.fr/dgfip) (DGFiP) | > | **Invopop support** | [PA guide](/guides/fr-pa) | > > > [card] [Peppol](/apps/peppol) > > > > Get covered → > > > [card] [PA guide](/guides/fr-pa) > > > > Get covered → > [accordion] Chorus Pro (B2G) > > B2G e-invoicing has been mandatory in France since 2020. All suppliers invoicing French public entities submit electronic invoices through Chorus Pro. > > | | | > | - | - | > | **Models** | B2G | > | **Status** | Mandatory since 2020 | > | **Format** | EN 16931 with Chorus Pro extensions (CII) | > | **Infrastructure** | [Chorus Pro](https://portail.chorus-pro.gouv.fr/) | > | **Model** | Centralized | > | **Agency** | [Direction Générale des Finances Publiques](https://www.economie.gouv.fr/dgfip) (DGFiP) | > | **Invopop support** | [Public sector guide](/guides/fr-pa-b2g) for French companies · [Chorus Pro guide](/guides/fr-chorus-pro) for foreign entities | > > > [card] [Chorus Pro France](/apps/choruspro-france) > > > > Get covered → ## E-reporting > [!NOTE] > > E-reporting applies to B2C sales, cross-border B2B, and any flow where one party is not registered in the Annuaire — i.e. everything that is out of scope for e-invoicing. For e-reporting use cases, a PA aggregates transaction and payment data and submits periodic reports (the **Flux 10** dataset) to the PPF on a cadence tied to the party's VAT regime. The regulation splits this into two distinct obligations — **transaction data** and **payment data** — which apply to different cases and follow different deadlines. E-reporting becomes mandatory on the same dates as e-invoicing issuance: 1 Sept 2026 for large and medium-sized companies, 1 Sept 2027 for all businesses. Non-established taxable persons are an exception: their obligation to e-report acquisitions is postponed to 1 September 2027 regardless of the size of the business. ### When e-reporting applies **E-reporting of transactions** is required for all cross-border B2B and B2C sales, regardless of how VAT is accounted for. **E-reporting of payments** is required only for **supplies of services**, where VAT becomes due when the payment is collected (*encaissement*). It does **not** apply when: * The business has opted to **pay VAT on debits** (*sur les débits*): VAT is already accounted for when the invoice is issued, so the invoice itself serves as the payment record. This waiver does not apply to **advance payments** or **agricultural transactions**, where VAT falls due on receipt of payment and so must still be reported. * The transaction is subject to **reverse charge**: the customer accounts for the VAT, so the supplier has no payment VAT to report. > [!NOTE] > > The debit-option waiver affects **payment reporting only**. Transaction data must be reported in all cases. ### Reporting flows Each recorded document is classified into one of four Flux 10 data blocks, based on whether it is a cross-border B2B or a domestic B2C operation, and whether it carries transaction or payment data: | Flow | Reports | Applies to | | - | - | - | | `10.1` | Transaction | Cross-border B2B invoices | | `10.2` | Payment | Payments against cross-border B2B invoices | | `10.3` | Transaction | B2C transactions | | `10.4` | Payment | B2C payments | ### What each report must contain The field-level mapping including required extensions, document-type codes, permitted VAT rates and party identifier schemes is maintained in the GOBL add-on documentation: > [card] [GOBL fr-ctc-flow10-v1 add-on](https://docs.gobl.org/addons/fr-ctc-flow10-v1) > > Scenario-by-scenario data requirements → ### How Invopop processes reporting * **Aggregation**: data is consolidated per declarant at **SIREN level** and by the declarant's role in each transaction (seller or buyer). * **Cadence**: submission frequency follows the declarant's VAT regime. Because transaction and payment data can fall on different deadlines, they are submitted as separate reports. See the [PA reporting guide](/guides/fr-pa-reporting) for the registration, recording and submission workflow. > [accordion] PPF (Portail Public de Facturation) > > | | | > | - | - | > | **Format** | GOBL with the [`fr-ctc-flow10-v1`](https://docs.gobl.org/addons/fr-ctc-flow10-v1) add-on | > | **Cadence** | Determined by VAT regime — ten-day, monthly, or bimonthly | > | **Scope & deadline** | 1 Sept 2026 for large and medium-sized companies, 1 Sept 2027 for all businesses | > | **Invopop support** | In development — see [reporting guide](/guides/fr-pa-reporting) | > [accordion] Submission cadence by VAT regime > > Transaction and payment data are reported on a cadence set by the declarant's VAT regime. > > | VAT regime | Transaction data | Payment data | > | - | - | - | > | *Réel normal mensuel* | Ten-day period | Monthly | > | *Réel normal trimestriel* | Monthly | Monthly | > | *Réel simplifié* | Monthly | Monthly | > | *Franchise en base* | Bimonthly | Bimonthly | ## Regulation > [accordion] Legally required invoice content > > According to [Article 242 nonies A of Annexe II of the Code général des impôts](https://bofip.impots.gouv.fr/bofip/140-PGP.html) and [Article 289 CGI](https://www.service-public.fr/professionnels-entreprises/vosdroits/F31808), invoices must contain the following mandatory elements: > > **Standard invoice** > > * **Supplier identification**: full name or business name, address, and SIREN/SIRET number. > * **Client identification**: full name or business name and address. > * **VAT identification numbers** of both the supplier and the client. For invoices totaling €150 HT (excluding tax) or less, the client's VAT number is not required. > * **Invoice number**: unique, based on a chronological and continuous sequence. Separate numbering series are permitted when justified by business conditions (for example, different sites or different invoicing methods). > * **Issue date** of the invoice. > * **Date of delivery or service completion**, if different from the invoice date. > * **Description of goods or services**: for each line, the precise denomination, quantity, and unit price excluding tax. > * **Applicable VAT rate(s)** for each line, or the legal basis for exemption when VAT does not apply. > * **Discounts, rebates, and allowances** acquired at the time of the transaction and directly linked to it. > * **Total amount excluding tax**, the total VAT amount broken down by rate, and the total amount including tax. > * **Payment terms**: due date, conditions of payment, and the applicable late payment penalty rate. > * **Late payment indemnity**: the fixed compensation for recovery costs (currently €40). > * **Early payment discount** (escompte): the rate if applicable, or a mention that no discount is offered. > > For specific transactions, additional mentions are required: > > * **VAT exemption**: reference to the applicable legal provision (for example, Article 262 ter I CGI for intra-EU supplies, or Article 283-2 CGI for reverse charge). > * **Self-billing**: the mention "autofacturation" when the client issues the invoice on behalf of the supplier. > * **Margin scheme**: the mention "Régime particulier - Biens d'occasion" or equivalent when applicable. > * **New vehicles**: specific characteristics as defined in Article 298 sexies CGI. > > Invoices must be issued **on the date of delivery or service completion**. For recurring or continuous supplies, they may be issued periodically. > > **Simplified invoice (≤ €150 HT)** > > For transactions totaling €150 HT or less, the client's VAT identification number is not required. All other standard mentions still apply. > [accordion] Invoice numbering > > Under [Article 242 nonies A of the CGI](https://www.assistant-juridique.fr/numeroter_facture.jsp), invoice numbering in France must follow three principles: > > * **Uniqueness**: each invoice must carry a number that is never reused within the same accounting period. > * **Chronological order**: numbers must follow the actual order of issuance. An invoice dated January 15 cannot have a lower number than one dated January 10. > * **Continuity**: the sequence must be uninterrupted with no gaps. Skipping from invoice 130 to 132 is prohibited. > > Businesses may use multiple numbering series when justified by operational needs, such as different invoicing methods (electronic versus paper), different client categories, or different sites. Each series must independently respect the three principles above. > > Common formats include: > > * Prefix with sequential number: `F-0001`, `F-0002` > * Year with sequential number: `2026-001`, `2026-002` > * Year, month, and sequential number: `2026-03-001`, `2026-03-002` > > Failure to comply with numbering rules can result in fines up to 50% of the invoice amount for a missing number, and gaps in the sequence may be treated as evidence of concealment. > [accordion] Credit notes (factures d'avoir) > > Under [Article 289 CGI](https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006309596), any document modifying an initial invoice must reference it specifically and unambiguously. A credit note must include: > > * All the mandatory mentions required for a standard invoice. > * A clear reference to the original invoice number(s) being corrected. > * The nature and amount of the correction. > * The corrected VAT amount. > > Credit notes are issued for returns, post-sale discounts, billing errors, or other adjustments that reduce the originally invoiced amount. > [accordion] Self-billing (autofacturation) > > [Article 289 CGI](https://www.lexbase.fr/texte-de-loi/autre-version/L0371IWN.html) allows a client or third party to issue invoices on behalf of a supplier under a formal invoicing mandate (mandat de facturation). Requirements include: > > * A prior written agreement between the parties. > * Each invoice is issued in the name and on behalf of the supplier. > * The supplier must accept each invoice (explicit or tacit acceptance as agreed). > * The mention "autofacturation" must appear on the invoice. > * The supplier retains full responsibility for the accuracy of the tax information. > [accordion] Archiving and audit trail > > **Retention period.** Under [Article L123-22 of the Code de commerce](https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000006219327), all accounting documents and supporting records, including invoices, must be retained for **ten years** from the close of the fiscal year to which they relate. The tax administration requires a minimum of **six years** (Article L102 B of the Livre des procédures fiscales), but since the commercial obligation is longer, businesses must respect the ten-year period. > > **Original form and probative value.** Invoices issued or received electronically must be stored **in their original electronic format** for the tax retention period (Article L102 B LPF) — a PDF rendering or data extract is not the invoice of record. Throughout retention the archive must preserve **authenticity of origin, integrity of content, and legibility**. French practice relies on probative-value archiving systems (coffre-fort numérique) per **NF Z 42-013 / ISO 14641**; storage may be located in France or another EU member state provided the administration has guaranteed online access (Article L102 C LPF). > > **Authenticity and integrity methods (Article 289 VII CGI).** Every invoice must be covered by one of four mechanisms: > > 1. A **piste d'audit fiable** (reliable audit trail): documented, permanent business controls establishing a verifiable link between each invoice and the underlying supply of goods or services. > 2. A **qualified electronic signature or seal**. > 3. A compliant **EDI** exchange (Article 289 bis conditions). > 4. Since the reform, use of the **Article 289 bis e-invoicing procedure** itself — domestic B2B invoices exchanged through a Plateforme Agréée satisfy the requirement by construction. > > In practice the piste d'audit fiable remains necessary for flows outside the PA mandate — B2C, cross-border invoices, and any paper or unstructured PDF invoicing during the transition. > > **Who is the archive of record.** The reform does not transfer the archiving obligation to the platform: **supplier and buyer each remain legally responsible** for retaining their own invoices for the full period. A PA may offer compliant archiving as an additional service, but routing invoices through a PA does not by itself discharge the retention obligation. > [accordion] VAT rates for France > > **Metropolitan France** > > | Rate | Percentage | Examples | > | - | - | - | > | Standard | 20% | Most goods and services | > | Intermediate | 10% | Restaurants, hotels, passenger transport, some renovations, certain medications | > | Reduced | 5.5% | Basic foodstuffs, books, non-alcoholic beverages, medical devices, cultural and sports tickets | > | Super-reduced | 2.1% | Newspapers, magazines, certain reimbursable medications, some cultural events | > > **Overseas departments (Guadeloupe, Martinique, Réunion)** > > | Rate | Percentage | > | - | - | > | Standard | 8.5% | > | Reduced | 2.1% | > > VAT is not currently applicable in **Guyane** and **Mayotte**. > [accordion] Tax authority > > The **Direction Générale des Finances Publiques (DGFIP)** is the French public finance directorate responsible for tax collection and enforcement. It oversees the implementation of e-invoicing and e-reporting requirements in France. > > Website: [https://www.economie.gouv.fr/dgfip](https://www.economie.gouv.fr/dgfip) > [accordion] Implementation timeline > > France's phased rollout for B2B e-invoicing and e-reporting: > > * **2025**: Voluntary pilot phase > * **1 September 2026**: > * All businesses must be able to receive e-invoices > * Large and medium-sized companies must issue e-invoices > * E-reporting of issued transactions (B2C sales and cross-border B2B) becomes mandatory for these companies > * **1 September 2027**: > * All remaining businesses (small and micro-businesses) must issue e-invoices > * E-reporting of issued transactions becomes mandatory for all businesses > * Non-established taxable persons must start e-reporting of acquisitions, regardless of business size (postponed from 1 September 2026) > > The implementation has been delayed multiple times to ensure businesses and platforms are adequately prepared. > [accordion] Related resources > > * [France delays mandatory e-invoicing to March 2026](https://www.invopop.com/blog/france-e-invoicing-delayed-march-2026) - 18 September, 2023 > * [Electronic invoicing in France](https://www.invopop.com/blog/electronic-invoicing-in-france) - 14 February, 2023 > * [Government article in English](https://entreprendre.service-public.gouv.fr/actualites/A15683?lang=en) - 29 August, 2025 ## FAQ Compliance questions France > [accordion] When does mandatory B2B e-invoicing start in France? > > 1 September 2026 for receiving (all businesses) and issuing for large/mid-size companies. 1 September 2027 extends issuing to SMEs and micro-businesses. B2G via Chorus Pro has been mandatory since 2017–2020 (phased by company size). Chorus Pro > [accordion] When is Chorus Pro mandatory in France? > > For all B2G transactions with French public administrations — phased in by supplier size from 2017, fully mandatory since 2020. Once an invoice is destined for a public entity, Chorus Pro is the only legal channel. > [accordion] What is required to issue invoices under Chorus Pro? > > Suppliers must register on Chorus Pro's portal and obtain credentials. Foreign businesses without a SIRET can register with their local tax ID but must verify acceptance with the receiving administration on a case-by-case basis. PA (Plateforme Agréée) > [accordion] How are credit notes and corrections handled? > > E-invoices cannot be deleted or retracted. Instead a credit note or corrected invoice is sent referencing the original. > [accordion] Are there special supplier obligations under France PA? > > The supplier must be registered in the Annuaire (the DGFiP-maintained directory of B2B participants) via an approved PA. Once registered, Invopop becomes the supplier's PA for sending and receiving over Peppol. > [accordion] Do SMEs have to register in the Annuaire before their e-invoicing mandate applies? > > Yes. From 1 September 2026 every French business, regardless of size, must be able to receive e-invoices, which requires an Annuaire registration through a PA. SMEs and micro-businesses are not required to issue e-invoices or e-report until 1 September 2027 — those obligations follow the company's size band, so registering to receive does not bring them forward. Until then they can be [registered for receiving only](/guides/fr-pa-registration#registering-without-e-reporting). > [accordion] What's the difference between e-invoicing and e-reporting? > > **E-invoicing** transmits the invoice itself between trading parties via Peppol, with the PPF receiving the regulated dataset as a fifth corner. **E-reporting** is a periodic submission to the PPF covering transactions out of scope for e-invoicing — B2C, cross-border B2B, and any flow where the counterparty is not in the Annuaire. > [accordion] Do I need to act if I'm B2C-only? > > Yes — B2C is exempt from e-invoicing but is subject to e-reporting. From 1 September 2026 (large and medium-sized companies) or 1 September 2027 (all businesses), B2C transactions must be reported periodically to the PPF. > [accordion] Do I have to e-report imports? > > If the supply is taxable under French reverse charge (i.e. VAT is paid on import), the transaction must be e-reported. > [accordion] When should I e-report payment data? > > Report payment data only when VAT is due on receipt of payment, such as for services under "cash VAT" (TVA sur les encaissements). > [accordion] Does this apply to foreign businesses without a Fixed Establishment (FE) in France? > > E-invoicing does not apply. If the business is liable to French VAT, e-reporting applies to the relevant flows. E-reporting for reverse-charge VAT and intra-EU acquisitions is deferred until 1 September 2027. Peppol > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. More available in our [France FAQ](/faq/france) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about France's regulation → # Invoicing compliance in Germany Source: https://docs.invopop.com/compliance/germany Germany's mandatory e-invoicing requirements, XRechnung and ZUGFeRD implementation, and upcoming e-reporting obligations for B2B and B2G transactions > [card] [Germany's e-invoicing regulation timeline](/timelines/germany) > > View current and upcoming regulation → > [accordion] 🇩🇪 Invopop resources for Germany > > | | | > | - | - | > | Compliance | [Invoicing compliance in Germany](/compliance/germany) [Compliance timeline](/timelines/germany) | > | Apps | [OASIS UBL](/apps/oasis-ubl) [ZUGFeRD](/apps/uncefact-cii) | > | Guides | [XRechnung & ZUGFeRD guide](/guides/de-ubl) [Chargebee guide](/guides/cb-germany) | > | FAQ | [Germany FAQ](/faq/germany) | > | GOBL | [Germany Tax Regime](https://docs.gobl.org/regimes/de) [German XRechnung Addon](https://docs.gobl.org/addons/de-xrechnung-v3) [German ZUGFeRD Addon](https://docs.gobl.org/addons/de-zugferd-v2) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | ## Executive summary Germany distinguishes clearly between B2G and B2B electronic invoicing. For B2G, the **XRechnung** format—based on **EN 16931** and implemented in **UBL** or **CII** syntax—has been mandatory since November 2020 for all invoices to public authorities, typically exchanged via the **Peppol network**. For B2B, businesses must be able to receive structured e-invoices compliant with EN 16931, while issuing such invoices will become mandatory from Jan 2027 for companies with prior-year turnover above €800,000, and from January 2028 for all businesses in domestic B2B transactions. Small-amount invoices of €250 or less (VAT included), passenger transport tickets, and most VAT-exempt supplies stay outside the obligation and can still be issued on paper or as PDF. **ZUGFeRD**, a hybrid PDF + XML format aligned with EN 16931 and equivalent to France’s Factur-X, is accepted alongside XRechnung. Germany is preparing for EU-wide Digital Reporting Requirements (ViDA), expected around 2030, which will introduce VAT e-reporting requirements based on EN 16931 data. Structured invoices must be **archived in their original XML format** for **eight years**, in compliance with **GoBD** rules ensuring data integrity, readability, and domestic accessibility. Invopop provides coverage for German invoicing through the **OASIS UBL** and **ZUGFeRD** apps, supporting both XRechnung and ZUGFeRD formats. The platform also offers integrations with Stripe and Chargebee, enabling businesses to issue compliant invoices directly from their merchant or ERP platforms while automatically handling format compliance and Peppol network routing when required. ## Invoicing in Germany Electronic invoicing is well established and regulated, with a clear distinction between B2G and B2B/B2C transactions. For B2G, the XRechnung format is mandatory for invoices to public authorities, and these are primarily exchanged via the Peppol network or authorized access points. Since January 2025, all German businesses must be able to receive structured e-invoices compliant with EN 16931; B2C invoicing remains unregulated in format. Under the recently passed Wachstumschancengesetz (Growth Opportunities Act), Germany will implement a phased rollout for domestic B2B invoicing in structured electronic formats. For more information, check the ZUGFeRD section below. > [accordion] XRechnung (B2G) > > XRechnung is Germany’s standard for e-invoices in public procurement (B2G, called E-Rechnungen), though it can also be used for B2B transactions. It’s part of the implementation of the EU directive 2014/55/EU, which requires all contracting authorities in the EU to accept electronic invoices in a structured XML file. It can be implemented using two different syntaxes, CII and UBL. > > | | | > | - | - | > | **Models** | B2G (primary use) or B2B | > | **Format** | OASIS UBL and UN/CEFACT CII | > | **Infrastructure** | [Peppol](/apps/peppol) | > | **Model** | Hybrid | > | **Scope & Deadline** | B2G Since Nov. 2020 | > | **Agency** | [BMI](https://www.bmi.bund.de/) | > | **Invopop Support** | [OASIS UBL](/apps/oasis-ubl) [UN/CEFACT CII](/apps/uncefact-cii) | > [accordion] ZUGFeRD (B2B) > > ZUGFeRD is a German standard for electronic invoicing designed to bridge the gap between traditional invoices and digital formats. ZUGFeRD combines a standard PDF/A-3 invoice with an embedded XML file containing the structured data. This hybrid approach is well suited for B2B transactions, as it allows both people and accounting software to work with the same document. It is fully aligned with the European Norm EN 16931. It is worth noting that ZUGFeRD and Factur-X are a joint project between Germany and France, and their content is identical. > > | | | > | - | - | > | **Models** | B2B (primary use) | > | **Format** | PDF/A-3 with embedded UN/CEFACT CII XML | > | **Infrastructure** | Direct exchange (email, portals) | > | **Model** | Post-audit | > | **Scope & Deadline** | B2B issuance mandatory from Jan 2027 (prior-year turnover above €800,000), Jan 2028 for all businesses. Invoices of €250 or less are exempt | > | **Agency** | [FeRD](https://www.ferd-net.de/) | > | **Invopop Support** | [UN/CEFACT CII](/apps/uncefact-cii) | ## E-reporting Germany is aligning with the EU's ViDA directive, which projects Digital Reporting Requirements (DRRs). Digital reporting obligation is likely around 2030 or later for Germany, though exact timelines and legal details are not yet fixed. The forthcoming reporting model would require EN 16931 compliant data enabling tax authorities to access invoice‑level data for VAT monitoring and fraud prevention. ## Regulation > [accordion] Archival requirements > > In July 2025, the Ministry of Finance made public how structured e-invoices must be archived: > > * Only the XML must be archived (even if it's a ZUGFeRD hybrid) the embedded XML is the tax‑binding element. PDFs are optional if a readable view can be generated. > * Invoices must be stored in the XML format received (CII or UBL), even if converted internally, to satisfy audit requirements. > * Data generally must remain in Germany and must comply with GoBD. > * Germany shortened the invoice archival period from 10 to 8 years. > [accordion] Transition period and exemptions > > The B2B issuing obligation is phased in. The €800,000 turnover threshold only applies during the transition: > > * **Until 31 December 2026:** any business can still issue paper invoices. Other electronic formats, such as plain PDF, are allowed if the customer agrees. > * **During 2027:** only businesses with a prior-year turnover of €800,000 or less can keep issuing paper or non-structured electronic invoices. > * **From 1 January 2028:** every domestic B2B invoice must be a structured e-invoice (XRechnung or ZUGFeRD), regardless of turnover, unless one of the exemptions below applies. > > Some invoices are excluded from the obligation altogether and can still be issued as regular invoices, such as paper or PDF. The BMF letter of 15 October 2024 lists them as: > > * **Small-amount invoices** (*Kleinbetragsrechnungen*) with a total of €250 or less, VAT included (§ 33 UStDV). The limit applies to each invoice separately, so a business that otherwise has to e-invoice can still send a PDF for an invoice of €250 or less. > * **Passenger transport tickets** (§ 34 UStDV). > * **Tax-exempt supplies** under § 4 Nr. 8 to 29 UStG. > > The receiving obligation has no exemptions: every German business has had to be able to receive e-invoices since 1 January 2025. > [accordion] Other requirements > > Germany’s e‑invoicing compliance is strict and technical, especially around invoice content, format, and archiving: > > * Legally required invoice elements: seller/buyer tax IDs, invoice number, date, line‑item details, VAT breakdowns, and references to contracts or purchase orders if applicable. Missing or incorrect data can make an invoice legally invalid. > * Structured formats: For B2G, this is XRechnung; for future B2B mandates, invoices will need to be EN 16931-compliant (XRechnung or ZUGFeRD). PDFs without an XML attachment are insufficient for mandated channels. > * Archiving: All invoices, whether received or issued, must be retained digitally and unaltered for 8 years in a compliant system. ## FAQ Compliance questions Germany > [accordion] When does mandatory B2B e-invoicing start in Germany? > > Receiving capability has been mandatory since 1 January 2025. Issuing becomes mandatory on 1 January 2027 for companies with prior-year turnover above €800k, and 1 January 2028 for everyone else. B2G has been mandatory since 2020. > > The €800k threshold only applies during the transition. Until the end of 2026 any business can still send paper invoices, and PDF invoices if the customer agrees. In 2027 only businesses at or below €800k can keep doing so. From 2028 every domestic B2B invoice above €250 must be an e-invoice, regardless of turnover. > [accordion] Are any invoices exempt from mandatory e-invoicing in Germany? > > Yes. Small-amount invoices (*Kleinbetragsrechnungen*) with a total of €250 or less, VAT included, can still be issued as regular invoices, such as paper or PDF (§ 33 UStDV). The limit applies to each invoice separately, so a business that otherwise has to e-invoice can still send a PDF for an invoice of €250 or less. Above €250, a structured e-invoice (XRechnung or ZUGFeRD) is required. > > Passenger transport tickets (§ 34 UStDV) and supplies that are tax-exempt under § 4 Nr. 8 to 29 UStG are also excluded, as listed in the BMF letter of 15 October 2024. These exemptions only cover issuing: every German business must still be able to receive e-invoices. > [accordion] Is there a legal mandate to use Peppol? > > There is no legal mandate to use Peppol in Germany. The requirement is to issue and receive invoices in a structured, EN 16931-compliant format (like XRechnung or ZUGFeRD). > > In practice, Peppol is by far the most widely used network, because it is the standardized, government‑endorsed way to exchange XRechnung invoices electronically with German public authorities and, increasingly, with large businesses. Using Peppol ensures: > > * Interoperability with virtually all public sector recipients. > * Compliance with format and technical rules without having to negotiate separate connections or portals. > * Access via certified Peppol Access Points, which handle validation and delivery. > * Other delivery channels exist (email, portal upload), but they are often less convenient, less standardized, and may not scale for high-volume or cross-border invoicing. So, while Peppol isn't legally required, almost everyone uses it in practice for compliance and efficiency. > [accordion] Are there any issuing timing requirements in Germany? > > Timing is linked to contractual and procedural deadlines, not a specific law that defines a universal submission window. However, in the context of B2G many authorities specify invoice submission within 10 days of service completion in their contracts or portals, so it's best to issue the invoice as early as possible. > > In the case of B2B the general VAT rule states that the invoice must be issued within 15 days after the end of the month in which the supply was made, if the transaction is subject to VAT and involves another taxable business. This 15-day window is critical because late issuance can make VAT reporting inconsistent between supplier and customer and it may also affect the buyer's right to input VAT deduction. > [accordion] Who can act as a supplier in Germany? > > Any entity with a Steuernummer (tax number) or USt-IdNr (VAT ID). Foreign suppliers selling into German B2G need a valid VAT ID and a Leitweg-ID provided by the recipient. > [accordion] Are there special supplier obligations under Peppol in Germany? > > For B2G, the supplier must include the recipient's Leitweg-ID (the German B2G routing identifier) in the BuyerReference field. For B2B, no extra obligations beyond the standard Peppol participant registration. > [accordion] What are the legal obligations for receiving invoices in Germany? > > Since 1 January 2025, every German VAT-registered business must accept structured e-invoices (XRechnung, ZUGFeRD ≥ EN 16931). Archival in original format for 8 years (§ 14b UStG) — the structured XML is the legal record, the PDF is supplementary. > [accordion] What periodic reporting obligations exist in Germany? > > Monthly or quarterly Umsatzsteuer-Voranmeldung (USt-VA) and the annual Umsatzsteuerjahreserklärung. Cross-border B2B sales also require Zusammenfassende Meldung (EC sales list). E-reporting tied to e-invoicing is expected from 2028 but not yet legislated. Peppol > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. More available in our [Germany FAQ](/faq/germany) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Germany's regulation → # Regulatory definitions Source: https://docs.invopop.com/compliance/glossary A glossary of the main terms used in e-invoicing and e-reporting regulations, standards and tax authority platforms. This section clarifies terms as they are defined or used in relevant laws and official technical standards. It serves as a reference for understanding the legal and compliance context that governs invoicing, reporting, and certification requirements. The [Global](#global) section covers the vocabulary shared across jurisdictions — models, standards, networks and record-keeping obligations. The country sections that follow cover the local systems, formats and identifiers, and link to the corresponding [compliance](/compliance/europe) page or [app](/apps) where one exists. ## Global ### Models and architecture | | | | - | - | | **Centralized model** | E-invoicing model where every invoice is routed through a single state-run hub that all taxpayers must use (Italy's SDI, Poland's KSeF) | | **Clearance model** | Regulatory architecture where invoices must be validated and approved by the tax authority before becoming legally valid — the cleared document, not the original, is the legal invoice | | **CTC** | Continuous Transaction Control, umbrella term for regimes where transaction data reaches the tax authority at or near the moment of the transaction instead of in a periodic return | | **DCTCE** | Decentralized CTC and Exchange, model where accredited service providers exchange the invoice over a network and report the data to the tax authority in parallel — the basis of France's Plateforme Agréée model, Croatia's Fiskalizacija 2.0 and the EU's ViDA design | | **Post-audit model** | Traditional model where invoices are exchanged directly between the parties and the tax authority checks them after the fact, during an audit | | **RTIR** | Real-Time Invoice Reporting, where the supplier issues and delivers the invoice itself and reports it to the tax authority immediately or within a short deadline — unlike clearance, no prior approval is needed | | **Two-corner model** | Direct exchange between supplier and buyer, with no intermediary | | **Three-corner model** | Exchange where supplier and buyer both connect to the same shared platform | | **Four-corner model** | Exchange where supplier and buyer each use their own service provider, and the two providers interoperate over a shared network such as [Peppol](/apps/peppol) | | **Five-corner model** | A four-corner network with the tax authority as a fifth corner receiving a copy of each transaction (Singapore's InvoiceNow, Belgium from 2028) | | **Hybrid model** | Approach where a single file carries both a human-readable PDF and the structured XML embedded inside it (Factur-X, ZUGFeRD) | | **E-invoicing** | Issuing, sending and receiving invoices as structured data that the recipient can process automatically — a PDF or a scanned image is not an e-invoice | | **E-reporting** | Obligation to send transaction, invoice or payment data to the tax authority, separately from delivering the invoice to the buyer | | **Fiscalization** | Legal and technical controls — certified software, signed records, receipt codes, cash registers — that make sales tamper-evident, historically aimed at the retail sector | | **Mandate** | Legal obligation, with a defined scope and effective date, to issue or receive e-invoices or to report transaction data | | **Grace period** | Window after a mandate takes effect during which penalties are suspended so businesses can adapt (Poland during 2026) | | **VAT gap** | Difference between the VAT theoretically due and the VAT actually collected — the usual policy justification for a CTC mandate | | **Interoperability** | Ability of two systems to exchange documents without a bespoke agreement, achieved through a shared semantic model, syntax and transport | ### Legislation and policy | | | | - | - | | **Directive 2014/55/EU** | EU directive requiring public bodies to receive and process EN 16931-compliant e-invoices — the origin of the B2G mandates across the EU | | **DRR** | Digital Reporting Requirements, the EU's term for the e-reporting obligations introduced by ViDA | | **ViDA** | VAT in the Digital Age, the EU package that harmonizes digital reporting and e-invoicing, lets member states mandate domestic B2B e-invoicing without a derogation, and introduces intra-EU digital reporting from around July 2030 | | **Derogation** | Formal authorization a member state needed from the EU Council to mandate e-invoicing before ViDA removed the requirement | | **B2B** | Business-to-Business transactions | | **B2C** | Business-to-Consumer transactions | | **B2G** | Business-to-Government transactions | | **Tax authority** | Government agency responsible for tax collection and compliance | | **Tax regime** | The jurisdiction's tax rules and regulations applied to documents | ### Standards and formats | | | | - | - | | **EN 16931** | European standard that defines the semantic data model for electronic invoices, ensuring interoperability across EU countries (see [EN 16931-1:2017 Addon](https://docs.gobl.org/addons/eu-en16931-v2017)) | | **CORE invoice** | The unrestricted EN 16931 semantic model, before a country or network narrows it. A CIUS restricts it; an extension adds to it | | **CIUS** | Core Invoice Usage Specification — a usage profile that restricts EN 16931 for a specific country or context without breaking compliance (Peppol BIS, Croatia's HR CIUS, Romania's CIUS-RO) | | **Extension** | Specification that adds requirements beyond the EN 16931 core model where the core is not sufficient (ZATCA's KSA extensions) | | **Semantic model** | The set of business terms an invoice must carry and their meaning, independent of the file format used to express them | | **Syntax** | The concrete XML grammar that carries the semantic model, normally OASIS UBL 2.1 or UN/CEFACT CII | | **UBL** | Universal Business Language, OASIS standard for electronic documents (see [OASIS UBL](/apps/oasis-ubl)) | | **CII (UN/CEFACT)** | Cross Industry Invoice format (see [UN/CEFACT CII](/apps/uncefact-cii)) | | **BIS (Peppol)** | Business Interoperability Specification, the Peppol document specifications that define what may be sent over the network (see [Peppol](/apps/peppol)) | | **Peppol BIS Billing 3.0** | Peppol's CIUS of EN 16931 in UBL syntax, and the default billing specification on the Peppol network (see [Peppol](/apps/peppol)) | | **PINT** | Peppol International Invoice, the newer Peppol model designed for use beyond Europe, with country profiles such as PINT-SG (Singapore), PINT A-NZ (Australia and New Zealand) and PINT AE (United Arab Emirates) | | **Factur-X** | Franco-German hybrid format pairing a PDF/A-3 with embedded CII XML, aligned with EN 16931 and identical to Germany's ZUGFeRD | | **SAF-T** | Standard Audit File for Tax, the OECD's XML format for exporting accounting and invoicing data to a tax authority — implemented in Portugal, Norway, Romania, Poland (as JPK) and required on demand under Denmark's bookkeeping rules | | **Schema validation** | Process of checking a document against the XSD of its syntax and the business rules of the applicable specification (for example the EN 16931 `BR-` rules) | | **Validation error** | Issue reported when a document fails schema, business rule or tax authority validation, usually blocking clearance or delivery | | **Codelist** | Controlled vocabulary a standard requires a field to draw from, such as UNTDID document type codes, VAT category codes or units of measure | ### Networks and identifiers | | | | - | - | | **Peppol** | Open four-corner network and set of specifications governed by OpenPeppol for exchanging invoices, orders and other business documents (see [Peppol](/apps/peppol)) | | **Access Point** | Certified service provider that connects a business to an electronic document network, sending on the supplier's behalf and receiving on the buyer's (see [Peppol](/apps/peppol)) | | **Corners (C1–C4)** | The four roles in a four-corner exchange: the sender (C1), the sender's service provider (C2), the receiver's service provider (C3) and the receiver (C4) | | **Peppol Authority** | National or domain body that accredits and supervises the service providers in its jurisdiction (Valtiokonttori in Finland, DFØ in Norway, IMDA in Singapore, Erhvervsstyrelsen in Denmark) | | **SMP** | Service Metadata Publisher, the registry that records which document types a participant can receive and where to deliver them | | **SML** | Service Metadata Locator, the DNS-based lookup that resolves which SMP holds a given participant's capabilities | | **AS4** | Messaging protocol used to transport documents securely between access points on the Peppol network | | **Participant** | Entity registered to send or receive documents through an electronic network (see [Peppol](/apps/peppol)) | | **Participant identifier** | Scheme-qualified identifier that addresses a participant on the network, such as a GLN under scheme `0088` or a VAT number under a national scheme | | **EAS code** | Electronic Address Scheme code that states which identifier scheme a participant identifier belongs to | | **MLR** | Message Level Response, the technical acknowledgement confirming a document was received and passed validation | | **Invoice response** | Business-level message in which the buyer accepts, conditionally accepts or rejects a received invoice | | **Registration** | Process of enrolling an entity and its identifiers with a network, platform or tax authority so it can issue or receive documents | | **Onboarding** | Process of getting a supplier or customer through registration, certificate issuance and testing before live issuance | | **Proof of Ownership** | Documentation proving that whoever registers a business on a network is entitled to represent it, required by Peppol's Internal Regulations | ### Documents, controls and record-keeping | | | | - | - | | **Correction** | Process of fixing errors in previously issued documents. Most regimes forbid editing the original and require a corrective document or a cancellation record instead | | **Credit Note** | A document issued to correct or cancel a previously issued invoice | | **Debit Note** | A document issued to increase the amount owed from a previous invoice | | **Cancellation** | Withdrawal of a document that has already been cleared or reported, usually within a deadline and sometimes requiring the buyer's consent | | **Simplified invoice** | Reduced-content invoice permitted below a value threshold, typically without the buyer's tax details — the receipt of most regimes | | **Self-billing** | Arrangement where the buyer issues the invoice on the supplier's behalf under a prior agreement, with the supplier remaining liable for its content | | **Tax point** | The date that fixes which period a transaction belongs to and which rate applies — often the date of supply rather than the invoice date | | **Reverse charge** | Mechanism that shifts liability for VAT to the buyer, so the supplier invoices without tax and the buyer self-assesses it | | **Digital Signature** | Cryptographic signature that binds a document to its issuer and proves it has not been altered since | | **Qualified certificate** | Certificate issued by a trust service provider under eIDAS, or by the tax authority itself, used to sign fiscal documents and authenticate to the platform | | **Hash chain** | Technique that links each fiscal record to a hash of the previous one, so removing or altering a record breaks the sequence (VERI\*FACTU, TicketBAI, ZATCA's Previous Invoice Hash) | | **QR Code** | Quick Response code printed on or attached to a document, encoding the identifiers needed for a buyer or inspector to verify the record with the tax authority | | **Offline mode** | Procedure for issuing a legally valid document while the tax authority platform is unreachable, with a deadline for submitting it afterwards (Poland's offline24, VERI\*FACTU, Croatia) | | **Integrity, authenticity and legibility** | The three properties EU VAT law requires be guaranteed for an invoice throughout its life, whatever the technical means used | | **Retention period** | Legally defined number of years — typically between six and eleven — for which documents must be kept, readable and available for inspection | | **Archiving** | Storing documents in their original structured form for the retention period, often with additional requirements on location and probative value | | **Audit trail** | Record of what happened to a document — submissions, responses, corrections — that lets an auditor reconstruct events after the fact | ## Argentina | | | | - | - | | **AFIP** | Administración Federal de Ingresos Públicos, the former name of ARCA until November 2024 | | **ARCA** | Agencia de Recaudación y Control Aduanero, Argentina's national tax and customs authority | | **CAE** | Código de Autorización Electrónico, the 14-digit authorization code ARCA returns for each invoice — without it the invoice is not legally valid | | **CAEA** | Código de Autorización Electrónico Anticipado, an authorization code issued in advance for taxpayers that cannot clear each invoice in real time | | **Clave Fiscal** | Personal digital key used to access ARCA's online services | | **CUIT** | Clave Única de Identificación Tributaria, Argentina's tax identification number | | **Invoice letter classes** | Argentina classifies invoices by letter — A between VAT-registered businesses, B to final consumers, C from Monotributistas, E for exports, T for tourism — each with its own numbering sequence (see [Argentina compliance](/compliance/argentina)) | | **IVA** | Impuesto al Valor Agregado, Argentine VAT, applied at a standard 21% with reduced and increased rates | | **IIBB** | Ingresos Brutos, a provincial gross income tax that varies by province and activity | | **Monotributo** | Simplified tax regime for small businesses and the self-employed; a taxpayer under it is a Monotributista and issues Factura C | | **Punto de Venta** | The 5-digit point-of-sale code that prefixes the invoice number, each with its own independent sequence | | **Responsable Inscripto** | VAT-registered taxpayer entitled to deduct input VAT and to issue Factura A | | **WSAA** | Webservice de Autenticación y Autorización, the service that issues the access ticket for ARCA's web services using an X.509 certificate | | **WSFE** | Webservices de Factura Electrónica, ARCA's web service infrastructure, including `wsfev1`, `wsmtxca`, `wsfexv1` and `wsct` (see [ARCA supplier onboarding](/guides/ar-arca-suppliers)) | ## Australia and New Zealand | | | | - | - | | **ABN** | Australian Business Number, used as the Peppol participant identifier for Australian businesses under scheme `0151` | | **ATO** | Australian Taxation Office, Australia's Peppol Authority | | **MBIE** | Ministry of Business, Innovation and Employment, New Zealand's Peppol Authority | | **NZBN** | New Zealand Business Number, used as the Peppol participant identifier for New Zealand businesses | | **PINT A-NZ** | The joint Australia and New Zealand Peppol invoice specification, replacing the earlier A-NZ BIS Billing 3.0 | ## Belgium | | | | - | - | | **Article 44 VAT Code** | Belgian VAT exemption article that places entities engaged exclusively in exempt transactions outside the scope of the 2026 e-invoicing mandate | | **Customer listing** | Belgium's annual report of domestic customers, which the planned near real-time e-reporting will replace | | **FPS Finance** | Federal Public Service Finance (SPF Finances / FOD Financiën), the Belgian tax administration | | **Peppol mandate** | Belgium's requirement, in force since 1 January 2026, that domestic B2B invoices be exchanged as structured e-invoices, with Peppol BIS in UBL as the default channel and format (see [Belgium compliance](/compliance/belgium)) | ## Brazil | | | | - | - | | **Chave de acesso** | The 44-digit access key that uniquely identifies each authorized Brazilian fiscal document | | **CNPJ** | Cadastro Nacional da Pessoa Jurídica, the Brazilian company tax identifier; individuals use a CPF | | **CT-e** | Conhecimento de Transporte Eletrônico, the electronic bill of lading for freight services | | **DANFE** | Documento Auxiliar da Nota Fiscal Eletrônica, the printable representation of an NF-e used to accompany goods in transit | | **DF-e** | Documentos Fiscais Eletrônicos, the umbrella term for Brazil's family of electronic fiscal documents (see [Documentos Fiscais Eletrônicos](/apps/documentos-fiscais-electronicos-brazil)) | | **IBS and CBS** | The new consumption taxes created by Brazil's 2023 tax reform, progressively replacing ICMS and ISS (IBS) and PIS/COFINS (CBS); fiscal document layouts are being extended to carry them | | **MDF-e** | Manifesto Eletrônico de Documentos Fiscais, the manifest grouping the transport documents of a single trip | | **NF-e** | Nota Fiscal Eletrônica, Brazilian electronic invoice for B2B and B2G sales of goods | | **NFC-e** | Nota Fiscal de Consumidor Eletrônica, Brazilian electronic invoice for B2C retail transactions | | **NFCom** | Nota Fiscal de Serviços de Comunicação Eletrônica, Brazilian electronic invoice for telecommunications and communication services | | **NFS-e** | Nota Fiscal de Serviços Eletrônica, Brazilian electronic invoice for B2B and B2G service transactions | | **RFB** | Receita Federal do Brasil, the Brazilian Federal Revenue Service | | **SEFAZ** | Secretaria da Fazenda, Brazilian state tax authority infrastructure managing electronic invoicing | | **SPED** | Sistema Público de Escrituração Digital, Brazil's comprehensive e-reporting system collecting financial, accounting, tax, and labor information | ## Chile | | | | - | - | | **Boleta electrónica** | Chilean electronic receipt used for consumer sales | | **CAF** | Código de Autorización de Folios, the file of pre-authorized document numbers the SII issues to a taxpayer before it can issue documents | | **DTE** | Documento Tributario Electrónico, the umbrella term for Chile's electronic tax documents | | **Folio** | An individual document number drawn from an authorized CAF range | | **RUT** | Rol Único Tributario, the Chilean tax identification number | | **SII** | Servicio de Impuestos Internos, the Chilean tax authority | ## Colombia | | | | - | - | | **CUFE** | Código Único de Facturación Electrónica, the unique code derived from the invoice content that identifies each FEV | | **DIAN** | Dirección de Impuestos y Aduanas Nacionales, the Colombian tax and customs authority (see [Colombia](/apps/colombia)) | | **Documento Equivalente Electrónico** | Colombian electronic document required for B2C transactions since 2024 | | **Documento soporte** | Support document a buyer issues to substantiate purchases from suppliers not obliged to issue an FEV | | **FEV** | Factura Electrónica de Venta, Colombia's official electronic invoice format for B2B and B2G transactions | | **Habilitación** | DIAN's authorization process, which a supplier and its software must pass in the test environment before issuing live documents | | **Municipal Code** | Five-digit code used in Colombia instead of postal code to specify the municipality | | **Nómina electrónica** | Colombia's electronic payroll document, reported to DIAN alongside invoicing | | **Proveedor tecnológico** | Technology provider authorized by DIAN to issue and validate documents on a taxpayer's behalf | | **RADIAN** | Colombian system combining e-invoicing with negotiable instruments, enabling invoices to be used as financial instruments | | **Título Valor Electrónico** | Electronic negotiable instrument status given to invoices in Colombia's RADIAN system | ## Croatia | | | | - | - | | **AMS** | Adresar metapodatkovnih servisa, the national directory that tells a sender's access point where a recipient receives e-invoices | | **CIS** | The tax authority's Fiscalization System, which receives every issued and received invoice as well as consumer receipts | | **eRačun** | The Croatian e-invoice, and the common name for the Fiskalizacija 2.0 framework | | **FINA** | Financijska agencija, the state agency that runs the central platform where public bodies receive e-invoices (e-Račun za državu), including its Peppol access point | | **Fiskalizacija 2.0** | Croatia's framework, mandatory since January 2026, that combines structured e-invoice exchange over a 4-corner network with reporting of each invoice to CIS (see [Croatia compliance](/compliance/croatia)) | | **HR CIUS** | The Croatian EN 16931 profile that a domestic invoice must follow, which a plain Peppol invoice does not satisfy | | **Information intermediary** | Service provider certified by the tax authority to send or report invoices on behalf of others | | **JIR** | Jedinstveni identifikator računa, the unique receipt identifier CIS returns for a fiscalized consumer receipt | | **KPD** | Product classification code required on each invoice line | | **OIB** | Osobni identifikacijski broj, the Croatian tax identification number | | **Porezna uprava** | The Croatian tax authority | | **ZKI** | Zaštitni kod izdavatelja, the issuer's security code computed locally by signing the receipt with the business's certificate | ## Denmark | | | | - | - | | **Bogføringsloven** | The Danish Bookkeeping Act, whose digital bookkeeping requirements oblige businesses to use certified systems capable of sending and receiving e-invoices | | **CVR number** | Central Business Register number, the Danish company identifier | | **EAN/GLN number** | The 13-digit location number that identifies a Danish public entity as an invoice recipient | | **Erhvervsstyrelsen** | The Danish Business Authority (ERST), which manages NemHandel and acts as Denmark's Peppol Authority | | **Moms** | Merværdiafgift, Danish VAT, a single flat 25% rate with no reduced rates | | **MVG** | Meirvirðisgjald, the separate Faroese VAT administered by TAKS — the Faroe Islands and Greenland fall outside Danish invoicing rules | | **NemHandel** | Denmark's national e-document infrastructure, used alongside Peppol for invoices to public authorities (see [Denmark](/apps/denmark)) | | **NHR** | NemHandelsregisteret, the NemHandel registry of recipients, integrated with the Peppol SML | | **OCES certificate** | Public certificate standard used to sign transactions and authenticate to Danish public infrastructure | | **OIOUBL** | Offentlig Information Online UBL, Denmark's national UBL profile; version 2.1 remains in use after OIOUBL 3.0 was cancelled in January 2026 | ## Finland | | | | - | - | | **Act 241/2019** | The Act on Electronic Invoicing to Public Procurers and Contracting Entities, which implements Directive 2014/55/EU in Finland | | **ALV** | Arvonlisävero, Finnish VAT, applied at a standard 25.5% with reduced rates of 13.5% and 10% | | **Finvoice** | The dominant proprietary domestic invoice format, delivered over the Finnish bank network and aligned with EN 16931 | | **Operator** | Accredited network or bank operator that delivers invoices on the domestic Finnish network and resolves how a buyer is reachable | | **Right to request** | Statutory right of a business with turnover above EUR 10,000 to require its suppliers to issue e-invoices, in the absence of a blanket B2B mandate | | **TEAPPSXML** | Proprietary operator format used mainly between larger Finnish enterprises and public administration | | **Valtiokonttori** | The Finnish State Treasury, Finland's Peppol Authority since 2022 | | **Verohallinto** | The Finnish Tax Administration | | **Y-tunnus** | The Finnish business identity code | ## France | | | | - | - | | **Annuaire** | French state directory used by Plateformes Agréées to route invoices to buyers | | **Article 289 bis CGI** | The provision of the Code général des impôts that establishes the e-invoicing procedure, and one of the accepted ways to guarantee invoice authenticity and integrity | | **Chorus Pro** | French government platform for B2G electronic invoicing, mandatory for invoicing public entities (see [Chorus Pro France](/apps/choruspro-france)) | | **Data Concentrator** | French government system that stores VAT data for each transaction as part of e-reporting | | **DGFIP** | Direction Générale des Finances Publiques, the French public finance directorate responsible for tax collection | | **Factur-X** | Hybrid PDF/A-3 with embedded CII XML, one of the three formats a Plateforme Agréée handles alongside UBL and CII (see [PA invoicing](/guides/fr-pa-invoicing)) | | **Flux 10** | The e-reporting dataset a PA aggregates and submits to the PPF, split into four blocks covering cross-border B2B and domestic B2C transaction and payment data | | **NF Z 42-013** | French standard (with ISO 14641) for probative-value archiving systems used to store invoices for the retention period | | **PA** | Plateforme Agréée, certified platform in France that routes invoices through Peppol and submits data to the data concentrator (see [PA Guide](/guides/fr-pa)) | | **PDP** | Plateforme de Dématérialisation Partenaire, former name of the *Plateforme Agréée* | | **PPF** | Portail Public de Facturation, French public invoicing portal part of the PA system | | **SIREN / SIRET** | The nine-digit company identifier and its fourteen-digit establishment-level extension, used to identify parties and to aggregate e-reporting data | ## Germany | | | | - | - | | **E-Rechnung** | The German legal term for a structured electronic invoice that meets EN 16931 — a PDF does not qualify | | **GoBD** | German rules (Grundsätze zur ordnungsmäßigen Führung und Aufbewahrung von Büchern, Aufzeichnungen und Unterlagen in elektronischer Form) ensuring data integrity, readability, and domestic accessibility for archived documents | | **Leitweg-ID** | Routing identifier that addresses a specific German public authority in an XRechnung invoice | | **UStG § 14** | The provision of the German VAT Act that defines invoice requirements and the B2B e-invoicing obligation | | **Wachstumschancengesetz** | The 2024 Growth Opportunities Act that introduced Germany's phased B2B e-invoicing mandate | | **XRechnung** | Germany's standard for e-invoices in public procurement (B2G), based on EN 16931 and implemented in UBL or CII syntax (see [XRechnung guide](/guides/de-ubl)) | | **ZRE and OZG-RE** | The federal invoice receipt platforms for direct federal administration (ZRE) and for other public bodies covered by the Online Access Act (OZG-RE) | | **ZUGFeRD** | German hybrid format combining PDF/A-3 with embedded XML, aligned with EN 16931 and equivalent to France's Factur-X (see [ZUGFeRD guide](/guides/de-ubl)) | ## Greece | | | | - | - | | **AADE** | Ανεξάρτητη Αρχή Δημοσίων Εσόδων, the Greek name of the IAPR | | **Classifications** | The income and expense classification codes myDATA requires alongside the invoice data | | **IAPR** | Independent Authority for Public Revenue, the Greek tax authority managing myDATA (see [myDATA issuing invoices guide](/guides/gr-iapr)) | | **MARK** | Unique identifier assigned by myDATA to validated invoices in Greece | | **myDATA** | My Digital Accounting and Tax Application, Greece's electronic invoicing and reporting platform | | **Provider** | Accredited Greek e-invoicing service provider (πάροχος) that stamps invoices and transmits them to myDATA on the issuer's behalf (see [Ilyda Greece](/apps/ilyda-greece)) | | **UID** | Unique document identifier derived from the invoice data and submitted to myDATA alongside the MARK | ## Hungary | | | | - | - | | **Adószám** | The Hungarian tax number, whose first eight digits identify the taxpayer | | **eÁFA** | NAV's system for preparing and submitting VAT returns from invoice-level data, including a machine-to-machine channel | | **NAV** | Nemzeti Adó- és Vámhivatal, the Hungarian National Tax and Customs Administration | | **Online Számla** | NAV's real-time invoice reporting platform, to which invoice data must be reported immediately after issue | ## Italy | | | | - | - | | **CIG and CUP** | Tender identification code (CIG) and project code (CUP) that must be quoted on invoices to Italian public bodies | | **Codice Destinatario** | Seven-digit alphanumeric recipient code used in Italy's SDI system to route invoices to the correct recipient | | **Conservazione sostitutiva** | Italy's certified digital archiving process, which preserves invoices with legal probative value for ten years | | **Documento Commerciale** | Italian digital fiscal document for B2C transactions that records sales and transmits them to the tax authority (see [Smart Receipts Italy](/apps/smart-receipts-italy)) | | **Esterometro** | The reporting of cross-border transactions, now carried out by sending the documents through SDI rather than as a separate return | | **FatturaPA** | Italian standardized XML format for electronic invoicing used in B2B and B2G transactions | | **Imposta di Bollo** | Stamp duty that must be flagged and paid on invoices above EUR 77.47 that carry no VAT | | **SDI** | Sistema di Interscambio (also written SdI), Italy's central hub for transmitting, validating, and delivering electronic invoices (see [SDI Italy](/apps/sdi-italy)) | | **Split payment** | Mechanism where a public body pays the supplier the net amount and remits the VAT directly to the treasury | | **Unique Code** | Six-character alphanumeric code (also known as IPA code) used in Italy to identify specific government agency offices for B2G invoices | ## Malaysia | | | | - | - | | **Consolidated e-invoice** | Monthly aggregate document permitted for transaction types where an individual e-invoice is not required | | **IRBM** | Inland Revenue Board of Malaysia (Lembaga Hasil Dalam Negeri, LHDN), the Malaysian tax authority | | **MyInvois** | IRBM's portal and API that validates every e-invoice and returns a unique identifier and a QR code | | **Self-billed e-invoice** | Document the buyer issues in place of the supplier, used for imports and for purchases from suppliers outside the mandate | | **TIN** | Tax Identification Number, the Malaysian taxpayer identifier | ## Mexico | | | | - | - | | **Cancelación** | Mexico's cancellation flow, which requires a reason code and, in most cases, the buyer's acceptance | | **Carta Porte** | Complement attached to a CFDI to document the transport of goods | | **CFDI** | Comprobante Fiscal Digital por Internet, Mexico's standardized electronic invoicing format, currently at version 4.0 | | **CIF** | Constancia de Situación Fiscal, the tax status certificate that provides a party's exact registered name, tax regime and postal code | | **Complemento** | Additional structured section attached to a CFDI for a specific scenario, such as Carta Porte or a payment receipt | | **Complemento de Pago** | Payment receipt complement (REP) issued when an invoice is settled later or in instalments | | **CSD** | Certificado de Sello Digital, digital seal certificate required for Mexican CFDI invoices (see [CFDI supplier registration guide](/guides/mx-sat-supplier)) | | **e.firma** | The taxpayer's advanced electronic signature certificate, used to authenticate to SAT services and to obtain a CSD | | **Folio fiscal** | The UUID assigned to a CFDI when it is stamped, and the identifier used to verify or cancel it | | **PAC** | Proveedor Autorizado de Certificación, Authorized Certification Provider required to validate and certify Mexican CFDI invoices | | **Régimen fiscal** | The tax regime code that must be declared for both the issuer and the receiver of a CFDI | | **RFC** | Registro Federal de Contribuyentes, Mexican tax identification number | | **SAT** | Servicio de Administración Tributaria, Mexico's tax authority managing the CFDI system (see [SAT Mexico](/apps/sat-mexico)) | | **Timbre fiscal digital** | The digital stamp a PAC adds to a CFDI to certify it, completing the clearance step | ## Norway | | | | - | - | | **Bokføringsloven** | The Norwegian Bookkeeping Act, which sets invoice content and retention requirements | | **DFØ** | Direktoratet for forvaltning og økonomistyring, Norway's Peppol Authority | | **EHF** | Elektronisk HandelsFormat, Norway's national invoice standard; EHF 3.0 is a rebranding of Peppol BIS Billing 3.0 rather than a separate format | | **ELMA** | Norway's national Peppol SMP registry of invoice recipients | | **Merverdiavgiftsloven** | The Norwegian VAT Act | | **mva-meldingen** | Norway's VAT return, modernized in 2022 and aligned with the SAF-T standard tax codes | | **SAF-T Financial** | Norway's mandatory accounting export, required on demand from enterprises with a bookkeeping obligation | | **Skatteetaten** | The Norwegian Tax Administration, which prepared the proposed B2B e-invoicing mandate | | **VOEC** | VAT On E-Commerce, the simplified registration scheme for foreign sellers of low-value goods to Norwegian consumers | ## Peru | | | | - | - | | **CDR** | Constancia de Recepción, the acceptance response returned by SUNAT or an OSE for a submitted document | | **CPE** | Comprobante de Pago Electrónico, the umbrella term for Peru's electronic payment vouchers, including facturas, boletas and credit and debit notes | | **OSE** | Operador de Servicios Electrónicos, a private operator authorized to validate electronic documents on SUNAT's behalf | | **RUC** | Registro Único de Contribuyentes, the Peruvian taxpayer identification number | | **SEE** | Sistema de Emisión Electrónica, the framework of channels through which a taxpayer may issue electronic documents | | **SUNAT** | Superintendencia Nacional de Aduanas y de Administración Tributaria, the Peruvian tax and customs authority | ## Poland | | | | - | - | | **FA(3)** | The current version of Poland's national invoice XML schema, used by KSeF 2.0 | | **JPK** | Jednolity Plik Kontrolny, Poland's SAF-T implementation, including the JPK\_V7 return that combines the VAT declaration with its underlying records | | **KSeF** | Krajowy System e-Faktur, Poland's mandatory clearance-based electronic invoicing system (see [Poland](/apps/poland)) | | **KSeF certificate** | Certificate authenticating a company to KSeF: type 1 for API access from an ERP, type 2 for the QR codes printed on offline invoices | | **KSeF number** | The identifier KSeF assigns to an invoice once it clears — the moment the invoice is considered legally issued | | **NIP** | Numer Identyfikacji Podatkowej, the Polish tax identification number | | **offline24** | KSeF procedure allowing an invoice to be issued immediately and uploaded by the end of the next business day | | **PEF** | Platforma Elektronicznego Fakturowania, Poland's B2G invoicing platform, synchronized with KSeF | | **Token** | Authorization credential used to grant a system access to the KSeF API | | **UPO** | Urzędowe Poświadczenie Odbioru, the official confirmation of receipt returned when KSeF accepts a document | ## Portugal | | | | - | - | | **AT** | Autoridade Tributária, the Portuguese Tax Authority (see [AT Portugal](/apps/at-portugal)) | | **ATCUD** | Unique document code printed on each invoice, built from the AT validation code for the document series and the sequential number within it | | **Certified software** | Invoicing software approved by the AT and identified by its certificate number, which every issuer above the legal thresholds must use | | **Fatura simplificada** | Portugal's simplified invoice, permitted below the legal value thresholds | | **NIF** | Número de Identificação Fiscal, the Portuguese tax identification number | | **SAF-T (PT)** | The Portuguese SAF-T variant, used both for periodic invoicing data and for the annual accounting file | | **Series registration** | Obligation to register each document series with the AT in advance and receive the validation code that feeds the ATCUD (see [series registration](/api-ref/apps/at-pt/series-register)) | ## Romania | | | | - | - | | **ANAF** | Agenția Națională de Administrare Fiscală, the Romanian tax authority | | **CIUS-RO** | The Romanian EN 16931 profile that domestic invoices must follow | | **RO e-Factura** | Romania's clearance platform, through which invoices are submitted, sealed by the Ministry of Finance and made available to the buyer | | **RO e-Transport** | System for declaring movements of goods and obtaining the UIT code that must accompany them | | **RO e-TVA** | The pre-filled VAT return ANAF compiles from e-Factura and other reported data | | **SPV** | Spațiul Privat Virtual, the taxpayer portal used to access ANAF's services | ## Saudi Arabia | | | | - | - | | **CSID** | Cryptographic Stamp Identifier, the ZATCA-issued credential a solution uses to stamp invoices, obtained first as a compliance CSID and then as a production CSID | | **EGS** | E-invoice Generation Solution, the compliant unit that generates, stamps and submits invoices to Fatoora | | **Fatoora** | ZATCA's e-invoicing platform, which clears standard tax invoices in real time and receives simplified tax invoices within 24 hours (see [Saudi Arabia](/apps/saudi-arabia)) | | **ICV** | Invoice Counter Value, the monotonically increasing counter each invoice must carry | | **KSA extensions** | ZATCA's extensions to UBL 2.1 that carry the Saudi-specific fields and the cryptographic stamp | | **PIH** | Previous Invoice Hash, the hash of the preceding invoice that chains the sequence together | | **Simplified tax invoice** | The B2C document, issued and delivered at the point of sale and reported to ZATCA within 24 hours (see [clearance and reporting guide](/guides/sa-zatca-clearance-reporting)) | | **Standard tax invoice** | The B2B and B2G document, which ZATCA must clear and stamp before it can be shared with the buyer | | **Waves** | The phased rollout groups by which ZATCA brings taxpayers into the integration phase, based on revenue thresholds | | **ZATCA** | Zakat, Tax and Customs Authority, the Saudi tax authority operating Fatoora | ## Singapore | | | | - | - | | **GST F5** | The periodic aggregate GST return all GST-registered businesses file through IRAS's myTax Portal | | **IAF** | IRAS Audit File, the accounting data export IRAS may require for an audit | | **IMDA** | Infocomm Media Development Authority, which governs the InvoiceNow network and accredits its access points | | **InvoiceNow** | Singapore's nationwide Peppol-based e-invoicing network, extended into a five-corner model where IRAS receives a copy of each covered transaction | | **IRAS** | Inland Revenue Authority of Singapore, responsible for GST enforcement and the e-reporting requirement | | **IRSP** | InvoiceNow-Ready Solution Provider, a solution pre-certified as able to connect to the network | | **PINT-SG** | Singapore's PINT profile, progressively replacing Singapore BIS Billing 3.0 | | **UEN** | Unique Entity Number, the Singapore business identifier used on the network and for GST | ## Spain | | | | - | - | | **AEAT** | Agencia Estatal de Administración Tributaria, the Spanish Tax Agency | | **FACe** | Spanish centralized government platform for submitting B2G invoices in Facturae format | | **FACeB2B** | The platform for exchanging Facturae invoices between private businesses, notably in subcontracting chains | | **Facturae** | Spain's national XML invoice format, used for B2G invoicing and central to the upcoming B2B mandate (see [Facturae Spain](/apps/facturae-spain)) | | **Ley Antifraude** | Law 11/2021, the anti-fraud law that introduced the requirements behind VERI\*FACTU | | **Ley Crea y Crece** | Law 18/2022, which establishes Spain's upcoming mandatory B2B electronic invoicing | | **LROE** | Libro Registro de Operaciones Económicas, the ledger that accompanies TicketBAI in Bizkaia | | **NaTicket** | Upcoming electronic invoicing system for Navarra, Spain, based on TicketBAI and VERI\*FACTU | | **NIF** | Número de Identificación Fiscal, the Spanish tax identification number, taking the form of a DNI for residents and a NIE for foreign individuals | | **RD 1007/2023** | The royal decree approving the regulation that sets the requirements for invoicing systems under VERI\*FACTU | | **Registro de facturación** | The billing record a compliant system generates for each invoice — an issuance record or a cancellation record — chained by hash and optionally sent to the AEAT | | **SIF** | Sistema Informático de Facturación, the invoicing system subject to the VERI\*FACTU requirements, backed by a responsible declaration from its producer | | **SII** | Suministro Inmediato de Información, Spain's near-real-time VAT reporting system for large companies | | **Solución Pública de Facturación Electrónica** | The public e-invoicing solution that will act as the repository for invoices under the B2B mandate | | **TBAI** | TicketBAI identifier, unique code assigned to each invoice in the Basque Country's TicketBAI system | | **TicketBAI** | Electronic invoicing and anti-fraud system used in the Basque Country (Álava, Bizkaia, Gipuzkoa), Spain | | **VERI\*FACTU** | Spain's e-reporting and fiscalization system requiring digitally signed invoices with QR codes for B2C, B2B, and B2G transactions (see [VERI\*FACTU Spain](/apps/verifactu-spain)) | ## United Arab Emirates | | | | - | - | | **ASP** | Accredited Service Provider, the only channel through which UAE invoices may be exchanged and reported | | **FTA** | Federal Tax Authority, responsible for VAT administration in the UAE | | **PINT AE** | The UAE's Peppol PINT profile and data dictionary for electronic invoices | | **TRN** | Tax Registration Number, the UAE taxpayer identifier | # Invoicing compliance in Greece Source: https://docs.invopop.com/compliance/greece Greece's mandatory e-invoicing requirements, EN 16931 implementation, and myDATA e-reporting obligations for B2B, B2C, and B2G transactions > [card] [Greece's e-invoicing regulation timeline](/timelines/greece) > > View current and upcoming regulation → > [accordion] 🇬🇷 Invopop resources for Greece > > | | | > | - | - | > | Compliance | [Invoicing compliance in Greece](/compliance/greece) [Compliance timeline](/timelines/greece) | > | Apps | [ILYDA Greece](/apps/ilyda-greece) | > | Guides | [Supplier registration](/guides/gr-iapr-supplier) [Issuing invoices](/guides/gr-iapr) | > | FAQ | [Greece FAQ](/faq/greece) | > | GOBL | [Greece Tax Regime](https://docs.gobl.org/regimes/gr) [Greece myDATA addon](https://docs.gobl.org/addons/gr-mydata-v1) | ## Executive summary Greece mandates e-reporting through the **myDATA** (My Digital Accounting and Tax Application) platform, managed by the Independent Authority for Public Revenue (IAPR). This system requires businesses to report invoices and accounting data in real time, ensuring compliance with Greek tax regulations and enabling automatic generation of electronic accounting books. Invopop has partnered with ILYDA to issue invoices in Greece. Each supplier must be registered with ILYDA to issue invoices on their behalf. Mandatory B2B e-invoicing arrives in February 2026 for companies with revenues over €1 million, and in October 2026 for everyone else — see the [regulation timeline](/timelines/greece) for details. Greece's e-invoicing system is based on the **EN 16931** standard with CIUS restrictions, requiring invoices in XML format. The system uses a hybrid infrastructure model combining public and private platforms, with centralized validation and tracking through myDATA. Invopop covers Greek invoicing through the ILYDA Greece app, as well as integrations with platforms like Stripe and Chargebee. This allows businesses to issue compliant EN 16931 invoices efficiently and manage white-label (B2B2B) operations. ## Invoicing in Greece The [myDATA](https://www.aade.gr/en/mydata) (My Digital Accounting and Tax Application) platform is Greece’s standardized electronic invoicing and bookkeeping system, managed by the Independent Authority for Public Revenue ([IAPR](https://www.aade.gr/en)). This system enables businesses to report invoices and accounting data in real time, ensuring compliance with Greek tax regulations. Starting in February 2026, companies with revenues exceeding €1 million in the 2023 fiscal year in Greece will be required to issue electronic invoices for the sale of goods and provision of services within the country, as well as for transactions with companies from third countries (outside the European Union). All other businesses will follow on October 1, 2026. Consult our [Greece's e-invoicing regulation timeline](/timelines/greece) for an overview of upcoming regulation in Greece. > [accordion] EN 16931 (B2C, B2B, B2G) > > EN 16931 is the European standard that defines the semantic data model for electronic invoices. It establishes a common structure and set of data elements to ensure interoperability across countries, systems, and sectors within the EU. The standard allows implementations in syntaxes like UBL or CII. Its goal is to simplify cross-border trade, reduce administrative costs, and support the digital transformation of public and private procurement across Europe. > > | | | > | - | - | > | **Models** | B2C, B2B, B2G | > | **Format** | EN 16931 + CIUS (XML) | > | **Infrastructure** | Hybrid: public and private platforms | > | **Model** | Centralized | > | **Scope & Deadline** | February 2026 for companies > €1M, Oct 2026 for all other businesses. | > | **Agency** | [IAPR](https://www.aade.gr/en) | > | **Invopop Support** | [ILYDA Greece App](/apps/ilyda-greece) | > > > [card] [ILYDA Greece](/apps/ilyda-greece) > > > > Get covered in Greece → ## E-reporting E-reporting is the mandatory electronic submission of invoice data to tax authorities, usually in real time, for compliance and audit purposes. This enables tax administrations to monitor transactions and ensure VAT control as part of broader continuous transaction control (CTC) systems. All companies resident in Greece (or in any event subject to local accounting requirements) have to comply with the system, with no threshold foreseen. The taxable person with a turnover of less than EUR 50,000 or issuing less than 50 invoices per year will be able to use a special data entry form, which allows them to manually upload invoice data on the myDATA web portal. > [accordion] myDATA (B2C, B2B, B2G) > > myDATA is Greece's real-time electronic invoicing and reporting platform that digitizes accounting data for B2G, B2B, and B2C transactions. Companies must send transaction and accounting data to myDATA, which validates it and assigns a unique identifier (MARK). The system automatically generates electronic accounting books (a detailed book and a summary book) and is crucial for tax compliance. > > | | | > | - | - | > | **Format** | EN 16931 + CIUS (XML) | > | **Scope & deadline** | myDATA reporting was phased in from 2021; since January 1, 2024, all companies must declare their sales invoices in real time, uploading tax transactions and delivery notes to myDATA. | > | **Invopop support** | [ILYDA Greece App](/apps/ilyda-greece) | > > > [card] [ILYDA Greece](/apps/ilyda-greece) > > > > Get covered in Greece → ## Regulation > [accordion] What is the process for public procurement? > > The main eInvoice process flow scenario for public procurement is the following: > > 1. Preparation of eInvoice data by the supplier/contractor and transmission to an eInvoicing service provider. > 2. The eInvoicing service provider validates invoice data before submitting it, using the respective Interoperability Centre services. > 3. The eInvoicing service provider reports and registers the eInvoice, for taxation reasons, to the myDATA application, a digital financial information application for taxation operated by the Independent Authority of Public Revenue in Greece. > 4. The eInvoicing service provider prepares the eInvoice based on the European standard semantic model, the national specification that derives from the Joint Ministerial Decisions, and the Peppol Business Interoperability Specification. > 5. The eInvoicing service provider submits the eInvoice to the access point of the Interoperability Centre through the Peppol network. > 6. The Interoperability Centre receives and validates the eInvoice, according to the European and national rules for eInvoicing, > 7. The Interoperability Centre routes the eInvoice to the competent contracting authority or competent IT system of the public body, > 8. The competent contracting authority and financial service handle the invoice according to their internal procurement and payment practices using one of the IT systems or web application mentioned in the previous section. The competent authorities send the appropriate messages regarding the status of the processing of the eInvoice through the Interoperability Centre and the eInvoicing service providers to the supplier/contractor. > [accordion] What is the archival period for invoices in Greece > > Greece requires archiving invoices during 5 years. > [accordion] Supplier onboarding process > > Invopop has partnered with ILYDA to issue invoices in Greece. Each supplier must be registered with ILYDA to issue invoices on their behalf. This involves: > > * Authorizing ILYDA as an electronic invoicing provider in Taxisnet. > * Declaring ILYDA as invoice issuer in myDATA. > * Signing a service provision agreement with ILYDA. > * Please contact us via Slack or [support@invopop.com](mailto:support@invopop.com) whenever you need to onboard a new supplier. We will walk you through the process. > > Supplier registration is only possible in production. In the sandbox environment, your invoices must use a supplier with the tax ID code set to `177472438` which is the TIN of the test supplier pre-enabled in that environment. ## FAQ **Compliance questions** Greece > [accordion] When does mandatory e-invoicing start in Greece? > > B2G has been mandatory since 2023 (phased in by company size). B2B reporting through myDATA has been mandatory for all transactions since 2021. Full structured B2B e-invoicing is being phased in following EU ViDA timelines. > [accordion] Who can act as a supplier in Greece? > > Any entity with a Greek AFM (tax ID) registered with the IAPR. Foreign businesses operating in Greece need a Greek fiscal representative or a non-resident AFM. > [accordion] What are the legal obligations for receiving invoices in Greece? > > Recipients must classify each received invoice in myDATA (καταχώρηση) within the deadline matching their books. Standard archival is 5 years. > [accordion] What periodic reporting obligations exist in Greece? > > Monthly or quarterly VAT (Φ2) declarations, plus the annual VAT clearing return (Φ1). Withholding taxes have their own schedule. myDATA classification of issued and received invoices is continuous and feeds the periodic returns. > [accordion] What invoice types are available for myDATA? > > Greece's myDATA system uses a detailed set of invoice type codes that classify every transaction reported to the tax authority (IAPR). Each type has a numeric code (like `1.1` or `11.1`) and describes the nature of the transaction — whether it's a standard sale, a service, a credit note, a retail receipt, and so on. > > When using GOBL, many of these types are assigned automatically based on the invoice type and tags you set. For the rest, you can set the `gr-mydata-invoice-type` extension directly in the tax section of your invoice, using type `other`. > > ### Sales Invoices (1.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `1.1` | Sales Invoice | `standard` | `goods` | > | `1.2` | Sales Invoice / Intra-community Supplies | `standard` | `goods`, `export`, `eu` | > | `1.3` | Sales Invoice / Third Country Supplies | `standard` | `goods`, `export` | > | `1.4` | Sales Invoice / Sale on Behalf of Third Parties | `standard` | `goods`, `self-billed` | > | `1.5` | Sales Invoice / Clearance of Sales on Behalf of Third Parties | `other` | — | > | `1.6` | Sales Invoice / Supplemental Accounting Source Document | `other` | — | > > ### Service Invoices (2.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `2.1` | Service Rendered Invoice | `standard` | *(default)* or `services` | > | `2.2` | Intra-community Service Rendered Invoice | `standard` | `services`, `export`, `eu` | > | `2.3` | Third Country Service Rendered Invoice | `standard` | `services`, `export` | > | `2.4` | Service Rendered Invoice / Supplemental Accounting Source Document | `other` | — | > > ### Credit Invoices (5.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `5.1` | Credit Invoice / Associated | `credit-note` | — | > | `5.2` | Credit Invoice / Non-Associated | `other` | — | > > ### Retail / Simplified (11.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `11.1` | Retail Sales Receipt (ΑΛΠ) | `standard` | `goods`, `simplified` | > | `11.2` | Service Rendered Receipt (ΑΠΥ) | `standard` | `services`, `simplified` | > | `11.3` | Simplified Invoice | `standard` | `simplified` | > | `11.4` | Retail Sales Credit Note | `credit-note` | `simplified` | > | `11.5` | Retail Sales Receipt on Behalf of Third Parties | `standard` | `goods`, `simplified`, `self-billed` | > > Additional codes exist for proof of expenditure (3.x), self-delivery / self-supply (6.x), contracts and rents (7.x, 8.x, 15.x, 16.x), expense / purchase records (13.x, 14.x), and accounting entries (17.x). > [accordion] What if my business already uses another myDATA provider? > > Greek regulation does not allow two myDATA providers to operate simultaneously for the same VAT number. If your business currently uses a different provider, you will need to switch to Invopop's provider (ILYDA) before issuing invoices through the platform. > > The regulatory restriction applies to simultaneous use of multiple providers, not to changing from one to another. See the [myDATA supplier registration guide](/guides/gr-iapr-supplier) for details on the onboarding process, or contact us via Slack or [support@invopop.com](mailto:support@invopop.com). > [accordion] Are there special supplier obligations under myDATA? > > Each AFM can have only one active myDATA provider at a time — switching providers requires deregistering the previous one in Taxisnet. The supplier must also declare its issuance branch (κλειδί χρήστη) and issuance series (σειρά). > [accordion] What are the legal obligations for receiving invoices through myDATA? > > Recipients must classify (χαρακτηρισμός) every issued invoice that lists them as counterpart, by the periodic return deadline. Failure to classify exposes the recipient to fines and discrepancies in IAPR's automated VAT reconciliation. > [accordion] What reporting obligations does myDATA impose? > > Continuous: every issued invoice transmitted in real time, every received invoice classified. Supplementary monthly/quarterly aggregations (e.g., E3 income statements) reconcile to myDATA totals automatically — discrepancies trigger IAPR queries. More answers in our [Greece FAQ](/faq/greece) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Greece's regulation → # Invoicing compliance in Hungary Source: https://docs.invopop.com/compliance/hungary Hungary's e-invoicing and e-reporting obligations for consumer, business and government transactions > [!NOTE] > > Invopop support for Hungary is coming soon (NAV Online Számla). For inquiries, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Hungary's regulation → # Invoicing compliance in Italy Source: https://docs.invopop.com/compliance/italy Italy's mandatory e-invoicing requirements, FatturaPA and Documento Commerciale implementation, and e-reporting obligations for B2B, B2C, and B2G transactions > [card] [Italy's e-invoicing regulation timeline](/timelines/italy) > > View current and upcoming regulation → > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | ## Executive summary Italy mandates electronic invoicing for all businesses through the **Sistema di Interscambio (SDI)**, the government's central hub for transmitting, validating, and delivering electronic invoices. The system uses **FatturaPA**, a standardized XML format that ensures compliance with validation rules set by the Italian tax authority (Agenzia delle Entrate). **B2B and B2G transactions** must be issued through SDI using the FatturaPA format. **B2C transactions** have two options: they can use the **Documento Commerciale** (a digital fiscal receipt that transmits sales data directly to the tax authority) or route through SDI—though the SDI option still requires the customer's tax information in the FatturaPA format. SDI uses a Recipient Code—a seven-digit alphanumeric identifier—to route invoices to the correct recipient. For B2G transactions, invoices must also include a Unique Code (IPA code) to identify the specific government agency office. The system provides real-time validation and delivery confirmation. Italy's e-reporting system is embedded within its mandatory electronic invoicing regime. All issued invoices and receipts are forwarded to the AdE, giving tax authorities immediate visibility of every transaction. Invopop simplifies SDI integration by allowing you to work with [GOBL](https://docs.gobl.org) format instead of XML, providing synchronous validation before submission, and offering a simple API integration with automatic handling of SDI notifications and status updates. Invopop covers Italy through its dedicated [Italy](/apps/italy) and [Smart Receipts Italy](/apps/smart-receipts-italy) apps, as well as integrations with platforms like [Stripe](/apps/stripe) and [Chargebee](/apps/chargebee). ## Invoicing in Italy > [accordion] FatturaPA (B2B and B2G) > > FatturaPA is the Italian standard for electronic invoicing. It is an XML-based format that is used to issue and receive invoices. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | FatturaPA (XML) | > | **Infrastructure** | SDI | > | **Model** | Clearance | > | **Scope & Deadline** | B2G mandatory since 2015; all B2B since 1 January 2019 | > | **Agency** | [Agenzia delle Entrate](https://www.agenziaentrate.gov.it) | > | **Invopop support** | [Italy App](/apps/italy) | > > > [card] [Italy](/apps/italy) > > > > Connect the app to get you covered → > [accordion] Documento Commerciale (B2C) > > The **Documento Commerciale** is a digital fiscal document that records sales transactions and transmits them to the Agenzia delle Entrate (AdE). This digital receipt replaces traditional paper receipts while maintaining full fiscal compliance and serves as official proof of purchase for your customers. Italian law requires businesses to transmit sales data digitally through either a certified Registratore Telematico (RT) or the AdE’s online portal. > > | | | > | - | - | > | **Models** | B2C | > | **Format** | Documento Commerciale (XML) | > | **Infrastructure** | Agenzia delle Entrate (AdE) | > | **Model** | Clearance | > | **Scope & Deadline** | Mandatory for retail (B2C) sales since 2019 (telematic receipts) | > | **Agency** | [Agenzia delle Entrate](https://www.agenziaentrate.gov.it) | > | **Invopop support** | [Smart Receipts Italy App](/apps/smart-receipts-italy) | > > > [card] [Smart Receipts Italy](/apps/smart-receipts-italy) > > > > Connect the app to get you covered → ## E-reporting Italy operates a full real-time e-reporting system embedded within its mandatory electronic invoicing regime. All B2B, B2C, and B2G invoices are issued in FatturaPA XML and transmitted through the Sistema di Interscambio (SdI), which forwards data directly to the Agenzia delle Entrate, giving tax authorities immediate visibility of every transaction. Retail sales are covered through the *documento commerciale*, whose daily totals are automatically sent by certified cash registers. Since July 2022, cross-border transactions must be reported via SdI using special invoice types (TD17–TD19), completing Italy’s real-time coverage of domestic and foreign sales. If you are issuing FatturaPA invoices and Documento Commerciale receipts, you are already covered by the e-reporting system. ## Regulation > [accordion] Legally required invoice content > > **Complete (B2B) Invoice** > > Mandatory information for electronic invoices includes: > > * Invoice issue date > * Unique, sequential invoice number > * Issuer data (i.e., company, business, or trading name; first and last name; residence or domicile) > * Customer data (i.e., company, business, or trading name; first and last name; residence or domicile) > * Customer’s VAT identification number or, in the case of a taxable person established in another EU member state, the VAT identification number issued by that state > * Description, quantity, and price of the goods or services involved in the transaction > * Date on which the goods or services were supplied > * Date on which payment was made, if different from the invoice date > * VAT rate and taxable amount > * Recipient code (i.e., a seven-digit, alphanumeric identifier used to ensure the proper delivery of an electronic invoice to a business or professional) > > **Simplified Invoice** > > A simplified invoice (*fattura semplificata*, art. 21-bis DPR 633/72) is allowed for sales of up to €400 including VAT and for credit and debit notes. It must include at least: > > * Invoice issue date > * Unique, sequential invoice number > * Issuer data (i.e., company, business, or trading name; first and last name; residence or domicile) > * Issuer's VAT number > * Customer data, or for a customer established in Italy only their tax code or VAT number, or for a business in another EU country only its VAT number > * Description of the goods or services > * Total amount and the VAT included in it, or the data needed to calculate it > * For a credit or debit note, a reference to the invoice it corrects and the details it changes > > See [Simplified invoices](/guides/it-sdi-invoicing#simplified-invoices) for how to issue one with Invopop. > > **B2G Invoice** > > In addition to the above, B2G invoices must include the following: > > * **Unique code**\ > This is a six-character, alphanumeric code that uniquely identifies a specific government agency and ensures the e-invoice is routed correctly. A single public entity can have multiple unique codes, each assigned to a different office within the organisation. It’s also known as a “unique office code” or “IPA code” (referring to the Index of Public Administrations \[IPA]). The unique code is mandatory. > * **CIG code**\ > This is a 10-digit, alphanumeric code used to identify an offer. It must be indicated on the invoice, unless an exemption from the traceability requirement applies, as provided for by Law No. 136 of 13 August 2010. > * **CUP code**\ > This is a 15-character, alphanumeric code that identifies a public investment project. It should only be entered if specifically requested by the company. > [accordion] Archival period > > Italy has strict rules for storing electronic invoices. Businesses must: > > **Storage requirements:** > > * Keep e-invoice records for at least 10 years from the last entry > * Ensure invoices cannot be changed during this time > * Group invoices into digital archive packages with a digital signature and timestamp > > **Administrative requirements:** > > * Designate a Conservation Manager (someone responsible for managing the archives) > * Create a Conservation Manual (a document explaining how records are stored) > > **Deadline:** > > * Complete the archiving process within three months after the annual income tax return is due > [accordion] Main special tax types for Italy > > 1. VAT > > * Standard: 22% > > * Reduced: 10% > > * Reduced(2): 5% > > * Super-reduced: 4% > > * Zero: 0% > > 2. IRPEF (Income tax) > > * Up to €28,000: 23% > > * €28,001–50,000 (incl. first bracket): 35%. > > * Above €50,001: 43%. > > 3. IRES (Corporate Income Tax) > > * 24% > > 4. INPS (National Social Security Institute) > * 9.19% on the income up to a ceiling of €55,448 of income > * 10.19% on the excess above the maximum amount. > 5. ENASARCO (Contribution to the National Welfare Board for Sales Agents and Representatives) > 6. Other Social Security Contributions > [accordion] Stamp duty (Marca da Bollo) > > The **Imposta di Bollo** (stamp duty), commonly known as *Marca da Bollo*, is a fixed **€2.00** tax applied to invoices that are **exempt from VAT** and whose total exceeds **€77.47**. It is essentially an alternative to VAT: when VAT is not charged, the stamp duty applies instead. Invoices that include VAT, or that fall below the €77.47 threshold, are not subject to stamp duty. > > In the FatturaPA XML sent through SDI, stamp duty is represented via the `` block, with `` set to `SI` and `` indicating the amount. In GOBL, this is modeled as a document-level charge with `"key": "stamp-duty"` — see our [stamp duty invoice example](/apps/italy#documents) for a working sample. > > There are two common configurations: the supplier can either **charge the €2 to the customer** (adding it to the invoice total) or **absorb the cost** themselves (the stamp duty is still declared but not passed on). Regardless of who bears the cost, payment is made **quarterly** via the F24 form, with the Agenzia delle Entrate providing a pre-filled draft based on the stamp duty amounts declared in submitted invoices. > > This is particularly relevant for taxpayers under the ***regime forfettario*** (flat-rate scheme), who do not charge VAT on their invoices. When their invoice total exceeds €77.47, the *Marca da Bollo* must be applied. Some transactions are exempt from stamp duty altogether, such as intra-Community supplies of goods. ## FAQ Compliance questions Italy > [accordion] When did mandatory e-invoicing start in Italy? > > 1 January 2019 for all B2B and B2C transactions between resident parties (B2G has been mandatory since 2014). 1 July 2022 extended the mandate to flat-rate scheme contributors. Cross-border B2B is reported via SDI (the esterometro was retired in 2022). > [accordion] Who can act as a supplier in Italy? > > Any entity with an Italian Partita IVA (VAT number) — companies, professionals, and flat-rate scheme contributors. Codice Fiscale alone is not sufficient for invoicing through SDI. > [accordion] What are the legal obligations for receiving invoices in Italy? > > All resident businesses must receive electronic invoices through SDI — it's the only legal channel. Invoices must be archived in their structured FatturaPA XML form for 10 years. > [accordion] What periodic reporting obligations exist in Italy? > > Quarterly VAT (LIPE), annual VAT return (Modello IVA), Esterometro (cross-border B2B summary, replaced by SDI direct submission since 2022), and Modello 730/Redditi for personal returns. SDI clearance handles the per-invoice reporting layer. SDI > [accordion] Is electronic invoicing mandatory in Italy? > > Yes, electronic invoicing through SDI is mandatory in Italy for B2G, B2B, and B2C transactions. > > All invoices must be issued in FatturaPA format and transmitted through the SDI (*Sistema di Interscambio*) platform. > [accordion] How can I correct an invoice in SDI? > > There are two main ways to correct an invoice in the Italian SDI system: > > 1. Issue a credit note (Nota di Credito - TD04) to fully or partially cancel the original invoice. > 2. Issue a debit note (Nota di Debito - TD05) to integrate/correct the original invoice with additional charges. > > The corrective document must reference the original invoice number and date. > > An invoice *rejected* by SDI is different: it has no legal existence, so correct it and send a fresh one rather than issuing a credit note. > [accordion] Are there special supplier obligations under SDI? > > The supplier must have an active Partita IVA registered with the Agenzia delle Entrate. Invopop transmits on the supplier's behalf over its own accredited channel — no individual supplier certificate is required. > [accordion] What are the legal obligations for receiving invoices through SDI? > > Recipients must register a Codice Destinatario (recipient code) with the Agenzia delle Entrate. Once registered, all incoming invoices route through SDI to the registered channel. Archival in original XML for 10 years. > [accordion] Is keeping my own copy of the invoices enough to satisfy Italian archiving rules? > > No. Italian law requires long-term preservation through a certified process (*conservazione a norma*), which has to follow the rules set by the authorities — in practice, an accredited provider. Invopop preserves the exact XML exchanged with SDI and attaches the preservation receipt to the invoice; see the [archiving guide](/guides/it-sdi-archiving). Smart Receipts > [accordion] When should I use AdE CF Smart Receipts? > > For B2C transactions where the customer's Codice Fiscale or Partita IVA is unknown — typical retail or online checkouts. AdE CF generates a Documento Commerciale (commercial receipt) instead of a FatturaPA. Once the customer's tax ID is known, regular SDI invoicing must be used. > [accordion] Are there special supplier obligations under Smart Receipts? > > The supplier must have a Partita IVA and operate in a sector that issues commercial receipts (retail, hospitality, etc.). They need to register with Agenzia delle Entrate as an AdE CF issuer before going live. > [accordion] What reporting obligations do Smart Receipts impose? > > Each documento commerciale is transmitted in real time through the AdE CF service; the Agenzia delle Entrate derives daily corrispettivi totals automatically, replacing the historical *registratore di cassa* daily total. More available in our [Italy FAQ](/faq/italy) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Italy's regulation → # Invoicing compliance in Malaysia Source: https://docs.invopop.com/compliance/malaysia Malaysia's MyInvois: real-time clearance of B2B, B2G and B2C e-invoices by LHDN since August 2024. Peppol PINT-MY is an optional delivery channel. > [card] [Malaysia's e-invoicing regulation timeline](/timelines/malaysia) > > View current and upcoming regulation → > [accordion] 🇲🇾 Invopop resources for Malaysia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Malaysia](/compliance/malaysia) [Compliance timeline](/timelines/malaysia) | > | FAQ | [Malaysia FAQ](/faq/malaysia) | > [!NOTE] > > Invopop support for Malaysia (MyInvois) is coming soon. The information below is for reference. For inquiries, contact us at [support@invopop.com](mailto:support@invopop.com). ## Executive summary Malaysia uses **MyInvois**, a clearance platform that the Inland Revenue Board of Malaysia (IRBM, locally called **LHDN**) runs. The supplier must submit each e-invoice to MyInvois for validation before it shares the invoice with the buyer. The legal basis is section 82C of the Income Tax Act 1967. IRBM sets the operating rules in two guidelines, the **e-Invoice Guideline** and the **e-Invoice Specific Guideline**, and updates them often. The mandate covers B2B, B2G and B2C transactions. It came in four phases, based on annual turnover in financial year 2022: * **1 August 2024**: turnover above RM100 million. * **1 January 2025**: turnover above RM25 million, up to RM100 million. * **1 July 2025**: turnover above RM5 million, up to RM25 million. * **1 January 2026**: turnover up to RM5 million. * **1 July 2026**: businesses that started between 2023 and 2025 with turnover of at least RM3 million, and all businesses that start from 2026. Taxpayers with annual turnover **below RM3 million are exempt**, with some exceptions for companies in a group. For the Phase 4 businesses, a relaxation period runs **until 31 December 2027**. MyInvois validates the invoice but does not deliver it. The supplier shares the validated e-invoice with the buyer by any channel. **Peppol** is one optional channel, with the Malaysian profile **PINT-MY**. It does not replace the submission to MyInvois. Malaysia has **no VAT and no GST**. The transaction taxes are Sales Tax and Service Tax (SST). ## Invoicing in Malaysia The supplier, or a provider for the supplier, submits the e-invoice to MyInvois in UBL 2.1. MyInvois validates it in less than 2 seconds and returns a unique identifier, a validation link and a QR code. The supplier then shares the validated e-invoice with the buyer. ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant S as Supplier participant P as Supplier's provider participant M as MyInvois (LHDN) participant B as Buyer S->>P: Invoice data P->>M: Submit the e-invoice (UBL 2.1) M->>M: Validate M-->>P: Unique identifier, validation link and QR code M-->>B: Notification P->>B: Share the validated e-invoice ``` **1. Invoice created** The supplier's system sends the invoice data to its provider, or the supplier enters it in the MyInvois Portal. **2. Submit the e-invoice** The provider builds a UBL 2.1 document in XML or JSON, signs it and submits it to the MyInvois API. **3. Validate** MyInvois checks the structure, the codes, the tax numbers and the signature. **4. Validation result** If the e-invoice is valid, MyInvois returns a Unique Identifier Number, a validation link and a QR code. **5. Notification** MyInvois notifies the buyer that a validated e-invoice exists. **6. Share with the buyer** The supplier sends the validated e-invoice, or a readable copy with the QR code, to the buyer. It can use email, a portal or Peppol. > [accordion] MyInvois e-invoicing (B2B, B2G) > > Every in-scope sale to a business or a public body needs a validated e-invoice. Invoices to public bodies follow the same flow as B2B invoices. Four document types exist: invoice, credit note, debit note and refund note. Each has a self-billed version. > > | | | > | - | - | > | **Scope** | B2B, B2G | > | **Format** | UBL 2.1, in XML or JSON | > | **Compliance** | Real-time clearance | > | **Channel** | MyInvois API or MyInvois Portal | > | **Deadline** | At the time of the sale | > | **Effective date** | Phased from **1 August 2024** to **1 July 2026** | > | **Agency** | Inland Revenue Board of Malaysia (IRBM / LHDN) | > | **Invopop support** | Coming soon | > [accordion] Consumer sales (B2C) > > A consumer can ask for an individual e-invoice. If the consumer does not ask for one, the supplier can put all its receipts of the month in one **consolidated e-invoice**. The supplier submits it within 7 calendar days after the end of the month. The consumer keeps the normal receipt. > > Consolidation is not allowed for some transactions. From 1 January 2026, this includes any single transaction above **RM10,000**, in all industries. Other exclusions are motor vehicles, flight tickets, construction contracts, electricity and telecommunication services. > > | | | > | - | - | > | **Scope** | B2C | > | **Format** | UBL 2.1, in XML or JSON | > | **Compliance** | Individual e-invoice on request, or a monthly consolidated e-invoice | > | **Deadline** | Consolidated e-invoice within 7 days after the end of the month | > | **Effective date** | Same phases as B2B | > | **Agency** | Inland Revenue Board of Malaysia (IRBM / LHDN) | > | **Invopop support** | Coming soon | > [accordion] Peppol (PINT-MY) > > Malaysia is also a Peppol country. The Malaysia Digital Economy Corporation (**MDEC**) is the Peppol Authority. It publishes **PINT-MY**, the Malaysian profile of Peppol International (PINT). Peppol is a delivery channel between supplier and buyer, not a replacement for MyInvois. A Peppol invoice carries the unique identifier from MyInvois after validation. > > Only a provider that MDEC accredits can run a Peppol access point in Malaysia. The accreditation is valid for 12 months and can be renewed. > > | | | > | - | - | > | **Scope** | B2B, B2G (optional delivery channel) | > | **Format** | PINT-MY (UBL 2.1) | > | **Infrastructure** | Peppol network, through MDEC-accredited providers | > | **Agency** | MDEC (Peppol Authority) | > | **Invopop support** | Not available. Invopop is not an MDEC-accredited provider | > [accordion] What is out of scope > > These taxpayers are exempt: > > * Taxpayers with annual turnover **below RM3 million**, unless a group company is at or above RM3 million. > * Foreign diplomatic offices. > * Individuals who do not carry on a business. > * Statutory and local authorities, for statutory collections. > > These payments need no e-invoice: employment income, pensions and alimony, zakat, some dividends, and securities and derivatives traded on an exchange. ## E-reporting MyInvois is the only reporting channel. Malaysia has no SAF-T file and no separate real-time reporting system. IRBM shares validated e-invoice data with the Royal Malaysian Customs Department. The consolidated e-invoice for consumer sales works as a monthly report of those sales. ## Regulation > [accordion] Invoice format and content > > A Malaysian e-invoice is a UBL 2.1 document in XML or JSON. The guideline lists **55 data fields**, in eight groups, with more fields for some cross-border cases. The document types are: > > | Code | Type | Self-billed code | > | - | - | - | > | 01 | Invoice | 11 | > | 02 | Credit note | 12 | > | 03 | Debit note | 13 | > | 04 | Refund note | 14 | > > The readable copy of an e-invoice must show a **QR code** that links to the validation page on MyInvois. Invoices in foreign currencies are allowed. > [accordion] Identifiers > > Each party has a **TIN** (tax identification number) and a second identifier. Examples are the business registration number (BRN), the MyKad number or a passport number. IRBM validates the TIN and the BRN from 1 August 2026. > > Some general TINs replace a real TIN in defined cases: > > | General TIN | Use | > | - | - | > | `EI00000000010` | General public, for example the buyer in a consolidated e-invoice | > | `EI00000000020` | Foreign buyer, for example in an export | > | `EI00000000030` | Foreign supplier, in a self-billed e-invoice | > | `EI00000000040` | Public bodies and exempt institutions that have no TIN | > [accordion] Taxes > > Malaysia repealed GST in 2018 and has no VAT. The e-invoice shows the tax type with these codes: > > | Code | Tax type | > | - | - | > | 01 | Sales Tax | > | 02 | Service Tax | > | 03 | Tourism Tax | > | 04 | High-Value Goods Tax | > | 05 | Sales Tax on Low Value Goods | > | 06 | Not Applicable | > | E | Tax exemption | > > The scope of SST became wider on 1 July 2025. > [accordion] Corrections and self-billing > > The supplier can cancel a validated e-invoice within **72 hours**. In the same period, the buyer can ask for a rejection, with a reason. After 72 hours, only a credit note, a debit note or a refund note can change the e-invoice. > > In some cases the buyer must issue a **self-billed** e-invoice. Examples are purchases from foreign suppliers, payments to agents and dealers, e-commerce transactions and payments to individuals who do not carry on a business. > [accordion] Providers and certificates > > MyInvois has no certification scheme for technology providers. A taxpayer, or an intermediary that the taxpayer appoints in the MyInvois Portal, gets API credentials in the portal. > > Signed documents use an X.509 certificate from a Malaysian licensed certification authority. The certificate can belong to the taxpayer or to the intermediary. > [accordion] Relaxation period > > IRBM gave each phase a six month relaxation period. For Phase 4, the relaxation period lasts until **31 December 2027**. During this period, a taxpayer can put all its transactions in consolidated e-invoices, use a free product description and refuse requests for individual e-invoices. > [accordion] Penalties > > If a taxpayer does not issue an e-invoice, it commits an offence under section 120(1)(d) of the Income Tax Act 1967. The fine is **RM200 to RM20,000**, or up to **6 months** in prison, or both, for each non-compliance. > [accordion] More information > > * [LHDN, e-Invoice](https://www.hasil.gov.my/en/e-invois/): official hub, with the guidelines and FAQs > * [LHDN, e-Invoice guidelines](https://www.hasil.gov.my/en/e-invois/rujukan-pelaksanaan-e-invois/garis-panduan/): current versions of the two guidelines > * [MyInvois SDK](https://sdk.myinvois.hasil.gov.my/): API, document types, code lists and samples > * [PINT-MY specification](https://docs.peppol.eu/poac/my/): Malaysian Peppol profile ## FAQ Compliance questions > [accordion] Is e-invoicing mandatory in Malaysia? > > Yes, for most taxpayers. The mandate came in four phases from 1 August 2024 to 1 January 2026, based on turnover in financial year 2022. New businesses come in on 1 July 2026. Taxpayers with annual turnover below RM3 million are exempt. > [accordion] Which transactions does MyInvois cover? > > B2B, B2G and B2C transactions. Invoices to public bodies follow the same flow as invoices to businesses. For consumer sales, the supplier can issue a monthly consolidated e-invoice, except for the transactions that must have an individual e-invoice. > [accordion] Is Peppol mandatory in Malaysia? > > No. Every in-scope e-invoice must go to MyInvois for validation. Peppol, with the PINT-MY profile, is one optional channel to share the validated e-invoice with the buyer. Only MDEC-accredited providers can run a Peppol access point in Malaysia. > [accordion] Who is exempt? > > Taxpayers with annual turnover below RM3 million, unless a group company is at or above that amount. Foreign diplomatic offices, individuals who do not carry on a business and statutory authorities for statutory collections are also exempt. > [accordion] What is the relaxation period? > > IRBM gave each phase a six month relaxation period. For Phase 4 businesses, it lasts until 31 December 2027. During this period, a taxpayer can put all its transactions in consolidated e-invoices and refuse requests for individual e-invoices. > [accordion] When can I not use a consolidated e-invoice? > > From 1 January 2026, you cannot consolidate a single transaction above RM10,000, in any industry. Some activities also need an individual e-invoice, for example sales of motor vehicles, flight tickets, construction contracts, electricity and telecommunication services. > [accordion] What are the penalties? > > If you do not issue an e-invoice, the fine is RM200 to RM20,000, or up to 6 months in prison, or both. The penalty applies to each non-compliance. > [accordion] Does Malaysia have VAT? > > No. Malaysia repealed GST in 2018. The transaction taxes are Sales Tax and Service Tax (SST). The e-invoice shows the tax type with a code from the official list. More available in our [Malaysia FAQ](/faq/malaysia) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Malaysia's regulation → # Invoicing compliance in Mexico Source: https://docs.invopop.com/compliance/mexico SAT CFDI implementation and compliance for B2B, B2C, and B2G transactions > [card] [Mexico's e-invoicing regulation timeline](/timelines/mexico) > > View current and upcoming regulation → > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | ## Executive summary Mexico mandates electronic invoicing through the **CFDI** (Comprobante Fiscal Digital por Internet) system, managed by the **SAT** (Servicio de Administración Tributaria). All taxpayers must issue electronic invoices in XML format. The system uses a clearance model: invoices must be validated and certified by an authorized certification provider (PAC) before they acquire fiscal effect, and SAT receives the certified document in real time. This continuous feed gives SAT visibility into every transaction in the economy, and is the basis for automated VAT reconciliation, pre-filled returns, and audit-by-data. CFDI 4.0 is the current schema version and applies to B2B, B2C, and B2G transactions equally. | | | | - | - | | **Scope** | B2B, B2C, B2G | | **Format** | CFDI 4.0 (XML) | | **Infrastructure** | PAC → SAT | | **Clearance model** | Real-time stamping (timbrado) before fiscal effect | | **Agency** | [SAT](https://sat.gob.mx) | | **Invopop addon** | [SAT Mexico App](/apps/sat-mexico) | | **PAC** | [SW Sapien](/apps/sw-sapien) | > [card] [SAT Mexico](/apps/sat-mexico) > > Issue CFDI documents in Mexico → ## The SAT CFDI system SAT is the tax agency in Mexico, CFDI is the invoice format required by SAT. It is an XML document that must be sealed with the issuer's Certificado de Sello Digital (CSD), submitted to a PAC for validation, and stamped by SAT through that PAC. The result is a CFDI with a fiscal folio (UUID) and a SAT digital seal. Without those, the document has no fiscal effect. There are six CFDI document types: | Type | Code | Description | Invopop coverage | | - | - | - | :-: | | Ingreso | `I` | Standard sales invoice. | Yes | | Egreso | `E` | Credit note (returns, discounts, post-sale adjustments). | Yes | | Pago | `P` | Payment receipt (REP) issued when collecting against a previously-issued PPD invoice. | Yes | | Nómina | `N` | Payroll receipt, one per employee per pay period. | No | | Traslado | `T` | Movement of goods without a sale (carries the Carta Porte complement for transport). | No | | Retenciones e Información de Pagos | `R` | Withholding declaration, uses a separate XSD schema. | No | On top of this base structure, SAT publishes **complementos** — sector-specific XML extension nodes that attach to the CFDI and are sealed under the same digital signature. Each *complemento* has its own XSD and lifecycle. The most relevant ones include Pago (mandatory for any deferred or installment invoice), Carta Porte (mandatory for most freight movements), Comercio Exterior 2.0 (exports), Nómina (payroll detail), Hidrocarburos y Petrolíferos (energy sector, mandatory since 2026), Donatarias (authorized non-profits), INE (electoral expenses), IEDU (private education), and Divisas (currency exchange operations). ### Invopop CFDI support > [accordion] Covered by Invopop > > Coverage of the Mexican CFDI ecosystem evolves continuously, and this scope reflects what the SAT Mexico app supports today. We work closely with our customers and partners to expand it: > > **Document types** > > | Type | Description | > | - | - | > | Ingreso | Standard B2B and B2C sales invoices. | > | Egreso | Credit notes for returns, discounts, and corrections. | > | Pago | Payment receipts (REP / comprobante de pago) issued as payments are collected against PPD invoices. | > > **Method of payment** > > | Code | Description | > | - | - | > | `PUE` | Pago en Una sola Exhibición (single up-front payment) | > | `PPD` | Pago en Parcialidades o Diferido (payment in installments or deferred) | > > `FormaPago` is validated against the `c_FormaPago` catalog. > > **Relationships** > > | Code | Description | > | - | - | > | `01` | Nota de crédito (credit note) | > | `02` | Nota de débito (debit note) | > | `03` | Devolución de mercancía (return) | > | `04` | Sustitución (substitution) | > | `05` | Traslados de mercancías (transport of goods) | > | `06` | Factura por traslados previos (previously-moved goods) | > | `07` | Anticipo (advance) | > > **Accounts payable** > > Convert received CFDI XML documents into GOBL format for accounts payable processing. Pairs with the SW Sapien app for bulk download from SAT. > > > [card] [SW Sapien](/apps/sw-sapien) > > > > Bulk download CFDI documents from the SAT → > > **Special invoice modes** > > | Mode | Description | > | - | - | > | CFDI Globales | Público-en-general aggregation, with periodicity (daily, weekly, biweekly, monthly, bimonthly), month, and year extensions. | > | Third-party sales | Vendido a terceros via the `seller` object on individual lines. | > | White-label / B2B2B | Invopop can issue invoices on behalf of multiple suppliers under a single platform, each with their own CSD. | > > **Operational** > > | Capability | Description | > | - | - | > | PAC integration | Through [SW Sapien](https://sw.com.mx), including supplier onboarding (CSD upload, e.firma authorization for the PAC). | > | Stamping | Timbrado and retrieval of the certified XML. | > | PDF generation | Includes QR and CFDI stamps. Configurable layout, locale, and currency/date format. | > | Sandbox environment | Register your own or any test CSDs for testing. | > [accordion] Not yet covered by Invopop > > If your operation requires a document type, complemento, or workflow that isn't currently covered, get in touch. Many of these requests already align with our roadmap, and we prioritize new development based on customer volume and demand. > > **Document types** > > | Type | Description | > | - | - | > | Nómina | Payroll receipts. | > | Traslado | Standalone transfer documents. | > | Retenciones | Uses a different XSD; not part of the CFDI 4.0 base schema. | > > **Complementos** > > | Complemento | Description | > | - | - | > | Carta Porte | Required for in-country freight movement. | > | Comercio Exterior 2.0 | Required for definitive exports. | > | Hidrocarburos y Petrolíferos | Mandatory for the energy sector since 2026. | > | Sector-specific complementos | Donatarias, INE, IEDU, Divisas, Detallista, Servicios Parciales de Construcción, Aerolíneas, Notarios, etc. | > > **Other unsupported features** > > | Item | Description | > | - | - | > | Addendas | Proprietary B2B XML extensions defined by individual buyers (Walmart, Liverpool, Pemex, automotive OEMs, etc.). Each is buyer-specific and not standardized by SAT. | > | Cancellation flow | Submission of cancellation requests with `MotivoCancelacion` codes is not currently exposed through the app. Cancellations must be handled directly with SAT or through the PAC's portal. | > | Real-time data access | For digital platforms under the May 2026 Article 30-B obligation. Separate reporting channel, not a CFDI flow. | > | Buzón Tributario | Monitoring or interaction. | > | Lista 69-B | Screening of counterparties. | > | Contabilidad electrónica and DIOT | Periodic informational filings. | ### CFDI document types Each document type has its own schema and business rules for how it relates to other documents in accounting. > [accordion] Ingreso (sales invoice) > > The standard invoice for any taxable sale of goods, provision of services, leasing, or activity that generates income. Must comply with Article 29-A of the CFF: issuer and receiver RFC, name, régimen fiscal, postal code, line-level description, unit value, totals, transferred and withheld taxes, payment method and form, and UsoCFDI declared by the receiver. > > The Ingreso CFDI is the document that triggers the obligation. Whether the cash event is recognized at the same time depends on the `MetodoPago` attribute (PUE vs PPD). > [accordion] Egreso (credit note) > > Used to reduce previously-invoiced income: returns, post-sale discounts, rebates, corrections, partial cancellations, and the application of advance payments. Always relates back to one or more Ingreso CFDIs through the `CfdiRelacionados` node. > > Common `TipoRelacion` codes for Egresos: > > * `01` — Nota de crédito de los documentos relacionados. > * `02` — Nota de débito de los documentos relacionados. > * `03` — Devolución de mercancía sobre facturas o traslados previos. > * `07` — CFDI por aplicación de anticipo. > > An Egreso does not by itself cancel the original CFDI. Cancellation is a separate action governed by the cancellation rules below. > [accordion] Pago (payment receipt) > > A CFDI of type P is required whenever a payment is collected against an invoice that was issued with `MetodoPago = PPD`. The Pago complement carries the actual payment date, currency, exchange rate, form of payment, and a list of `DoctoRelacionado` nodes referencing each invoice the payment applies to, with the partial amount, the running balance before and after, and the partiality number. > > A single REP can settle payments against multiple invoices. A single invoice paid in installments produces multiple REPs over time. > > **Deadline:** the REP must be issued no later than the fifth calendar day of the month following the one in which the payment was received (rule 2.7.1.35 of the RMF). > > **Invopop coverage:** Invopop issues type-P documents. Model the receipt as a GOBL [`bill.Payment`](https://docs.gobl.org/draft-0/bill/payment) referencing each PPD invoice being settled, and process it through the SAT payment workflow to stamp the CFDI de pago. See the [payment receipt example](/guides/mx-sat-issuing) in the issuing guide. > [accordion] Nómina (payroll) > > A CFDI carrying the Nómina complement, issued for every payment of salaries, wages, and assimilated remuneration. One per employee per pay period. > [accordion] Traslado (goods movement) > > Used when goods are moved without a sale (between warehouses, returns to suppliers, gratuitous transfers). For a Traslado document, `SubTotal` and `Total` must be zero. In nearly all real-world cases, a Traslado must carry the **Carta Porte** complement describing the route, transport mode, vehicle, operator, and goods. > [accordion] Retenciones e Información de Pagos (withholdings) — not supported > > A separate document family with its own XSD, used to declare withholdings on payments to foreign residents, dividends, interest, leasing payments, share dispositions, and certain financial instruments. ### CFDI complement types Extra blocks of information that attach to a CFDI when the operation falls under a specific sector or activity. When a complement is required, the invoice cannot be stamped without it. > [accordion] Carta Porte > > Mandatory complement for the transport of goods within Mexico by road, rail, sea, or air. Carries the route (origin and destination), transport mode, vehicle and trailer plates, the operator's identification, and a detailed manifest of the goods being moved including weight and hazardous-material classification where applicable. > > Attaches to a Traslado (type T) when a company moves its own goods, or to an Ingreso (type I) when invoicing a transport service to a third party. Currently at version 3.x with separate sub-schemas per transport mode (Autotransporte, FerroviarioTransporte, TransporteMaritimo, TransporteAereo). > [accordion] Comercio Exterior 2.0 > > Required for definitive exports involving the sale of goods (typically clave de pedimento A1). Captures the issuer's and receiver's full addresses, the foreign tax ID of the receiver, INCOTERMS, currency and exchange rate to USD, and per-line detail including harmonized tariff codes (fracciones arancelarias), customs unit of measure, and the USD value of the goods. > > Version 2.0 has been integrated with CFDI 4.0 since January 2024. Free-of-charge exports use the same complement on a Traslado document. > [accordion] Hidrocarburos y Petrolíferos v1.0 (Revision A) > > Mandatory complement for the energy sector since 2026. Applies to taxpayers commercializing hydrocarbons or refined petroleum products and is intended to give SAT real-time traceability over fuel flows. > > Carries the SAT-issued permit type and number, validated against the `c_TipoPermiso` catalog. Revision A (April 2026) added new permit types for commercialization activities along with their specific format structures and validation regular expressions. > [accordion] Donatarias > > For non-profits authorized by SAT to issue tax-deductible donation receipts (donatarias autorizadas). Carries the SAT authorization office number and the date of the official authorization or its most recent ratification published in the DOF. > > Without this complement on the CFDI, the donation cannot be deducted by the donor. > [accordion] INE > > Used by political parties, candidates, and associations subject to the Instituto Nacional Electoral's reporting obligations. Identifies the type of process (ordinary, pre-campaign, campaign), the scope (federal, local), and the entity for which the spending was made. > > Allows INE to reconcile electoral expense declarations against actual invoiced spending. > [accordion] IEDU > > Required for invoices issued by private educational institutions for tuition payments (colegiaturas) eligible for personal income tax deduction. Captures the student's CURP, the educational level (preescolar, primaria, secundaria, profesional técnico, bachillerato), the official authorization number (RVOE), and the school's RFC. > > Annual deduction caps apply per educational level. > [accordion] Divisas > > Used by exchange houses (casas de cambio) and authorized financial institutions reporting foreign currency exchange operations. Identifies the operation type (purchase or sale of foreign currency) for fiscal reporting. > [accordion] Pago > > The payment receipt complement attached to type-P documents (REPs). Carries the payment date, currency, exchange rate to MXN, and form of payment, plus a list of `DoctoRelacionado` nodes — one per invoice the payment applies to — with the original invoice's UUID, the partial amount being settled, the partiality number, and the running balance before and after. > > A single Pago complement can settle multiple invoices, and a single PPD invoice can accumulate multiple Pago complements over time as installments are paid. > [accordion] Nómina > > The payroll detail complement attached to type-N documents. Issued one per employee per pay period. > > Captures the employee's identification (RFC, CURP, NSS), employment data (start date, contract type, working day type, salary base), the period covered, and a full breakdown of perceptions (regular salary, overtime, bonuses, vacation premium, profit sharing) and deductions (ISR withholding, IMSS contributions, loan repayments, alimony). Also includes settlement payments for terminations and other special payment scenarios. ### CFDI payment types Mexican invoices declare upfront whether the customer is paying at issuance or paying later. The choice determines whether a follow-up payment receipt (REP) must be issued, and it changes when income tax and VAT are recognized. > [accordion] PUE — Pago en Una sola Exhibición (pay in full) > > The operation is settled in full at or before invoice issuance, or when payment will be received with certainty by the last calendar day of the month in which the invoice is issued. PUE invoices declare the payment method (transfer, credit card, cash, etc.) and require no follow-up document. For tax effects, income is recognized at issuance. > > If a CFDI was issued as PUE but the customer fails to pay by the last day of the issuance month, the issuer must: > > 1. Cancel the original PUE invoice (motivo 01, with substitution). > 2. Issue a new CFDI as PPD with `FormaPago = 99`, related to the original via `TipoRelacion = 04` (Sustitución de los CFDI previos). > 3. Issue REPs as payments are subsequently received. > > A difference to observe in relation to other regimes is that the trigger is calendar-based, not payment-event-based. The conservative approach is to issue PPD whenever there is any uncertainty about same-month payment. > [accordion] PPD — Pago en Parcialidades o Diferido (pay in installments) > > Use when payment will occur after the issuance month, or in two or more installments. PPD invoices must use `FormaPago = 99` (Por definir) on the original document, since the actual form of payment isn't yet known. For each payment received afterward, the issuer must produce a CFDI of type P (REP) referencing the original UUID, with the actual `FormaPago` of that specific payment, the partial amount, and the running balance. > > For tax effects, income is recognized as REPs are issued, on a cash basis. This is the mechanism that makes ISR and IVA recognition follow the actual cash event rather than the invoice issuance date — particularly relevant for RESICO contributors, whose entire tax base is computed from emitted CFDIs and REPs. > > Each REP must be issued by the fifth calendar day of the month following the one in which payment was received (rule 2.7.1.35 RMF). Missing the deadline doesn't invalidate the invoice but prevents the customer from deducting in the correct period. > > Invopop supports issuing both the PPD invoice and the subsequent REPs as payments are received. ### Party identification and reporting > [accordion] RFCs and tax identification > > PACs validate the receiver's RFC, name, fiscal régimen, and postal code against the live SAT registry at stamping time. All four must agree. The source document is the receiver's **Constancia de Situación Fiscal (CIF)**. Note that requiring the CIF document itself as a precondition for invoicing is unlawful (Article 83 § IX CFF) — the issuer needs the four data points, not the document. > > **Persona Física (13 characters)** > > Issued to individuals. Structure: 4 letters from the person's first surname, second surname, and first name + 6 digits for date of birth (YYMMDD) + 3-character homoclave assigned by SAT. > > Example: `PEJL850315ABC` for Juan Pérez López born 15 March 1985. > > **Persona Moral (12 characters)** > > Issued to companies, associations, and other legal entities. Structure: 3 letters from the entity name + 6 digits for date of constitution (YYMMDD) + 3-character homoclave. > > The shorter length is the immediate visual cue distinguishing morales from físicas. > > **Generic RFCs** > > Predefined codes used when the receiver does not have a real RFC. > > * `XAXX010101000` — generic national. Used for público en general (Mexican consumers who don't request invoices) and for nationals not yet registered with SAT. > * `XEXX010101000` — generic foreign. Used for receivers without Mexican fiscal residence. > > For both generic RFCs: > > * `RegimenFiscalReceptor` must be `616` (Sin obligaciones fiscales). > * `UsoCFDI` must be `S01` (Sin efectos fiscales). The CFDI is not deductible. > * `DomicilioFiscalReceptor` must equal `LugarExpedicion`. > * For `XEXX010101000`, the receiver's country code (per `c_Pais`) and foreign tax ID should be supplied where available. > [accordion] Postal codes > > Mexico uses standard postal codes, but CFDI 4.0 enforces three different fields with different rules. There is no separate "fiscal postal code" — it is the same postal code, validated against SAT's `c_CodigoPostal` catalog (Anexo 20) and against the receiver's CIF. > > **LugarExpedicion (issuer)** > > Postal code of the physical location where the document is issued (`mx-cfdi-issue-place` in GOBL). If invoiced from a branch, use the branch's postal code regardless of where the billing system is hosted. Drives the document's time zone (Mexico has eight) and the fiscal stimulus zone flag (border-zone IVA reduction). > > **DomicilioFiscalReceptor (receiver)** > > Postal code of the receiver's tax domicile. For real RFCs, this must match what SAT has on file. A mismatch causes the PAC to reject stamping. > > For generic RFCs (`XAXX010101000`, `XEXX010101000`), this field must equal `LugarExpedicion`. > > **Catalog gaps** > > SAT's `c_CodigoPostal` catalog is updated periodically (multiple times in 2026 alone) and does not always contain every postal code in active use. When the receiver's postal code is not in the catalog, SAT's filling guide instructs the issuer to register the closest catalog code from the place of issuance. This is one of the most common causes of stamping failures during new customer onboarding. > [accordion] Régimen fiscal (fiscal regime) > > Each issuer and receiver must declare a `RegimenFiscal` from the `c_RegimenFiscal` catalog. The catalog distinguishes regimes available to parties. The receiver's régimen also constrains which `UsoCFDI` codes are valid for that invoice — not all combinations are allowed. > > The full catalog (all supported by Invopop): > > | Code | Description | > | - | - | > | `601` | General de Ley Personas Morales | > | `603` | Personas Morales con Fines no Lucrativos | > | `605` | Sueldos y Salarios e Ingresos Asimilados a Salarios | > | `606` | Arrendamiento | > | `607` | Régimen de Enajenación o Adquisición de Bienes | > | `608` | Demás ingresos | > | `610` | Residentes en el Extranjero sin Establecimiento Permanente en México | > | `611` | Ingresos por Dividendos (socios y accionistas) | > | `612` | Personas Físicas con Actividades Empresariales y Profesionales | > | `614` | Ingresos por intereses | > | `615` | Régimen de los ingresos por obtención de premios | > | `616` | Sin obligaciones fiscales (generic RFCs only) | > | `620` | Sociedades Cooperativas de Producción que optan por diferir sus ingresos | > | `621` | Incorporación Fiscal (legacy, being phased out) | > | `622` | Actividades Agrícolas, Ganaderas, Silvícolas y Pesqueras | > | `623` | Opcional para Grupos de Sociedades | > | `624` | Coordinados | > | `625` | Régimen de las Actividades Empresariales con ingresos a través de Plataformas Tecnológicas | > | `626` | Régimen Simplificado de Confianza (RESICO) | > [accordion] Customer invoice purpose codes > > The `UsoCFDI` field declares the receiver's intended fiscal treatment of the document. The most common codes: > > | Code | Description | > | - | - | > | `G01` | Adquisición de mercancías | > | `G02` | Devoluciones, descuentos o bonificaciones | > | `G03` | Gastos en general | > | `I01`–`I08` | Construcciones, mobiliario, transporte, cómputo, telecomunicaciones, otra maquinaria | > | `D01`–`D10` | Personal deductions (medical, funeral, donations, mortgage interest, voluntary retirement, schooling). Available only to personas físicas | > | `CP01` | Pagos. Used on REPs | > | `CN01` | Nómina. Used on payroll CFDIs | > | `S01` | Sin efectos fiscales. Used for non-deductible documents and globales | > > Validation: the chosen `UsoCFDI` must be allowed for the receiver's `RegimenFiscal`. Picking the wrong combination is one of the most frequent stamping errors. ### B2C aggregation reporting Retail-style operations that don't issue per-transaction invoices to consumers must issue a periodic **factura global** aggregating all operations with público en general. > [accordion] CFDI Globales > > The `mx-cfdi-v4` addon supports this via the `global` invoice tag, with extensions for: > > | Field | Extension | Values | > | - | - | - | > | **Period** | `mx-cfdi-global-period` | daily (01), weekly (02), biweekly (03), monthly (04), bimonthly (05) | > | **Month** | `mx-cfdi-global-month` | individual months 01–12 or paired months 13–18 | > | **Year** | `mx-cfdi-global-year` | 4-digit year | > > The global is issued to `XAXX010101000` with régimen 616 and UsoCFDI S01. Purchases under MXN 100 are not required to be invoiced individually but must still be included in the global. In practice, many operations issue globals as the simpler path. ### Cancellations The issuer submits a cancellation request through SAT or a PAC, and the receiver has three business days to accept or reject the cancellation. If the receiver takes no action, the cancellation is accepted. > [accordion] Cancellation rejection/acceptance > > **The customer can reject a cancellation** > > A CFDI is not cancelled by issuer action alone. If the three day deadline passes without response, the cancellation takes effect by positive ficta. If the receiver rejects, the CFDI remains valid. > > This means a wrongly-issued invoice can remain on the issuer's books if the customer rejects the cancellation. The practical workaround is to coordinate with the customer before submitting. > > > [!NOTE] > > > > Cancellations can be requested through the SAT Mexico app, see the [CFDI cancellation guide](/guides/mx-sat-cancelling). > > **Exceptions where acceptance is not required** > Cancellation is immediate without receiver acceptance for: > > * CFDIs of type Egreso (E), Traslado (T), Retenciones (R), and Nómina (N). > * CFDIs cancelled within one business day of issuance. > * Operations with público en general (RFC `XAXX010101000`). > * CFDIs received by foreign residents. > * CFDIs with total value up to MXN 1,000 (with carve-outs for Pago, Hidrocarburos, and Carta Porte for fuels). > * CFDIs issued by financial system members. > > **Cancellation reasons** > > Every cancellation must declare a reason: > > | Code | Description | > | - | - | > | `01` | Comprobante emitido con errores con relación. The original is being replaced by a substitute CFDI; the substitute's UUID must be supplied. | > | `02` | Comprobante emitido con errores sin relación. No replacement. | > | `03` | No se llevó a cabo la operación. The transaction did not occur. | > | `04` | Operación nominativa relacionada en una factura global. The operation was included in a previous global invoice; the global's UUID must be supplied. | > [accordion] Substitution flow (motivo 01) > > > [!NOTE] > > > > The SAT Mexico app supports the substitution flow, see the [CFDI cancellation guide](/guides/mx-sat-cancelling). > > The correct sequence for replacing an erroneous CFDI: > > 1. Issue the new CFDI with `TipoRelacion = 04` (Sustitución de los CFDI previos), referencing the UUID of the document being replaced. > 2. Submit the cancellation request for the original, motivo 01, referencing the new UUID. > 3. The PAC validates whether receiver acceptance is required and routes accordingly. > > Note: while the original is referenced as substituted-by, it temporarily shows as "No cancelable." The cancellation request itself breaks the relation and moves it back to a cancellable state. > [accordion] Annual cancellation deadline > > Per Article 29-A § 4 of the CFF and rule 2.7.1.47 RMF, CFDIs must be cancelled by the last day of the month in which the annual ISR declaration for the issuance fiscal year is due: > > * Personas morales: 31 March of the following year. > * Personas físicas: 30 April of the following year. > > The First Chamber of the Supreme Court ruled this time limit unconstitutional in April 2024 (press release 098/2024), but the rule remains in operation pending legislative change. ## Compliance > [accordion] Legally required invoice content > > From Article 29-A of the CFF and the Anexo 20 filling guide: > > * RFC, name, and régimen fiscal of the issuer. > * RFC, name, régimen fiscal, and postal code of the receiver. > * Folio fiscal (UUID) and SAT digital seal. > * Issuer's CSD digital seal and the serial number of the certificate used. > * Place and date of issuance (`LugarExpedicion`, `Fecha`). > * UsoCFDI declared by the receiver. > * Per-line: quantity, unit of measure (from `c_ClaveUnidad`), description, product/service code (from `c_ClaveProdServ`), unit value, taxes itemised by rate, withholdings where applicable. > * `MetodoPago` (PUE/PPD) and `FormaPago` from `c_FormaPago`. > * `Moneda` and `TipoCambio` for non-MXN invoices. > * Pedimento number and date for first-hand sales of imported goods. > * Certification date, time, and SAT certificate serial. > > The printed representation (PDF) must additionally include: > > 1. QR code as defined in section I.D of Anexo 20. > 2. Serial numbers of the issuer's and SAT's CSDs. > 3. The legend: "Este documento es una representación impresa de un CFDI." > 4. Issuance and certification timestamps. > 5. Original string (cadena original) of the SAT certification complement. > > Source: [SAT](https://www.sat.gob.mx/minisitio/Factura/solicita_requisitos.htm) > [accordion] Archival period > > Article 30 of the Federal Tax Code requires accounting records, including CFDIs, to be retained for five years. > > * The period starts from the date the relevant tax return was filed, or should have been. > * For records covering a longer period, the five years run from the last fiscal year covered. > * If records are part of an active legal case, the period starts when the final decision is issued. > [accordion] Proveedor Autorizado de Certificación (PAC) > > A PAC (Proveedor Autorizado de Certificación) is a private company licensed by SAT to validate, seal, and forward CFDIs on behalf of issuers. The PAC is the operational gateway: an unstamped CFDI has no fiscal effect. > > Invopop uses [SW Sapien](/apps/sw-sapien) as its PAC. Suppliers authorize the PAC once via e.firma (FIEL) sign-off, after which Invopop can issue CFDIs on their behalf using their CSD. CSD certificate generation remains the supplier's responsibility — Invopop does not generate CSDs but accepts the certificate and key during onboarding. > [accordion] Buzón Tributario > > The Buzón Tributario is the official electronic mailbox SAT uses to communicate with each contributor. Cancellation requests, audit notifications, formal requirements, and (since May 2026) real-time data demands flow through it. Every contributor must keep it active and monitored. Invopop does not interact with the Buzón. > [accordion] Lista 69-B > > SAT publishes ongoing lists of taxpayers presumed to issue fake invoices (EFOS) and those who used them (EDOS). Invoices issued by an EFOS-listed supplier may be deemed non-deductible for the receiver. Companies routinely screen vendor masters against the list. > [accordion] Real-time data access (May 2026) > > Article 30-B of the CFF, introduced in the 2026 RMF, requires technology platforms (domestic and foreign) to provide SAT with continuous online access to tax and operational data, available no later than the day after each transaction. This applies to marketplaces, ride-hailing, lodging, food delivery, and digital service providers operating in Mexico. It is a separate reporting obligation from the CFDI flow. > > Invopop addresses this with [digital platform reporting](/guides/mx-sat-platform-reporting): register a platform, record each operation with the fields required by rule 2.9.21, and give SAT a private, access-controlled portal to browse, filter, and export them on demand. ## FAQ Compliance questions > [accordion] When did mandatory CFDI invoicing start in Mexico? > > CFDI 1.0 became mandatory for large taxpayers in 2011 and was extended to all taxpayers in 2014. CFDI 4.0 (the current version) replaced 3.3 on 1 April 2023. There is no entity below the mandate threshold — any taxpayer issuing an invoice must do so as a CFDI. > [accordion] Who can act as a supplier in Mexico? > > Any taxpayer registered with SAT — Persona Física (13-char RFC) or Persona Moral (12-char RFC). The supplier must have an active CSD (Certificado de Sello Digital) and a fiscal regime (`RegimenFiscal`) recorded in their CIF. > [accordion] What are the legal obligations for receiving invoices in Mexico? > > Recipients must verify each CFDI's UUID through SAT's public consultation, retain the XML for 5 years (Article 30 CFF), and accept or reject cancellation requests within 3 business days when applicable. > [accordion] What periodic reporting obligations exist in Mexico? > > Monthly provisional ISR and IVA payments (DyP) plus the annual ISR return. RESICO contributors have a fully automated monthly tax base computed from issued CFDIs and REPs. Stamping replaces invoice-level reporting. > [accordion] Can I require a customer's CIF before invoicing them? > > No. Conditioning invoicing on the receiver providing their CIF document is unlawful under Article 83 § IX of the CFF and carries fines. The data on the CIF (RFC, name, régimen, postal code) is required, but the issuer must be willing to accept those four pieces of information by other means. In practice, most B2B workflows still ask for the CIF, but it cannot be made a hard precondition. > [accordion] Why can't I cancel an invoice my customer hasn't acknowledged? > > Cancellation in Mexico is bilateral by default. The issuer submits a request, the receiver has three business days to accept or reject, and rejection keeps the CFDI valid. Issuers cannot unilaterally void an invoice that requires acceptance. The exceptions are: small amounts, certain document types, same-day cancellation, and público en general invoices. The practical recommendation is to coordinate with the customer before submitting any cancellation request, especially for high-value B2B invoices. > [accordion] Why does PPD vs PUE matter so much? > > Beyond the procedural difference, the two methods determine *when* income is recognized for ISR and IVA purposes. PUE income is recognized at issuance; PPD income is recognized as REPs are issued. Choosing the wrong method shifts tax liability into the wrong period and creates discrepancies during SAT's automated reconciliation. RESICO contributors are particularly exposed because their entire monthly tax base is computed from CFDIs and REPs. > [accordion] What's the difference between a complemento and an addenda? > > A complemento is a SAT-defined XML extension with a published XSD, sealed inside the digital signature, and validated at stamping. An addenda is a non-fiscal XML block defined unilaterally by a private buyer (Walmart, Liverpool, Pemex, automotive OEMs, etc.) and inserted into the `` node of the CFDI. SAT does not validate addenda content, but the buyer's ERP rejects payment without it. Each large enterprise customer typically defines its own addenda spec; there is no central catalog. Addendas are not currently supported by Invopop. > [accordion] Are there special supplier obligations under SAT/CFDI? > > The supplier must have an active CSD (not a FIEL — FIEL is for SAT login, CSD is for invoicing), be in good standing on Lista 69-B (not classified as EFOS), and maintain valid postal codes matching their CIF. More available in our [Mexico FAQ](/faq/mexico) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Mexico's regulation → # E-invoicing in the Middle East Source: https://docs.invopop.com/compliance/middle-east Overview of e-invoicing compliance in the Middle East, where Saudi Arabia and the UAE are pursuing different approaches — ZATCA clearance and Peppol five-corner respectively ## Executive summary The Middle East is an emerging e-invoicing region where two countries are pursuing fundamentally different compliance architectures. **Saudi Arabia** has adopted a [clearance model](/compliance/glossary) through ZATCA (Zakat, Tax and Customs Authority), similar to the approach used across Latin America. The **UAE** is taking the opposite path, adopting a [Peppol five-corner model](/compliance/glossary) aligned with the European and Asia-Pacific approach. The UAE makes e-invoicing mandatory in phases from January 2027. Despite their different architectures, Saudi Arabia and the UAE share the goal of increasing tax transparency and reducing fraud through digital transaction monitoring. ## Common standards and formats Unlike Europe (EN 16931) or the Americas (clearance CTC), the Middle East does not share a single regional standard. Each country is building its own system independently. | Country | Format | Model | Tax authority | | - | - | - | - | | Saudi Arabia | ZATCA (FATOORA) | Clearance (CTC) | [ZATCA](https://zatca.gov.sa) | | UAE | Peppol 5C | Five-corner Peppol | [Federal Tax Authority UAE](https://tax.gov.ae/en/) | ### Saudi Arabia — ZATCA clearance Saudi Arabia's e-invoicing system, known as FATOORA, requires businesses to submit invoices to ZATCA for validation before they become legally valid. This [clearance model](/compliance/glossary) gives ZATCA real-time visibility into all transactions. The system has been phased in since 2021, starting with e-invoice generation requirements and progressing to full integration with ZATCA's platform. ### UAE — Peppol five-corner The UAE is adopting the [Peppol network](/apps/peppol) with a five-corner model, where the tax authority receives a copy of every transaction alongside the buyer. This approach aligns the UAE with the architecture used by Singapore, France, and other Peppol-connected jurisdictions, providing built-in cross-border interoperability. ## Key dates | Country | Milestone | | - | - | | Saudi Arabia | ZATCA e-invoicing — supported today | | UAE | Mandatory in phases from 1 January 2027. Invopop support is planned | Saudi Arabia is supported today. UAE support is planned. ## Invopop countries in this region [Saudi Arabia](/compliance/saudi-arabia) ZATCA clearance model ![Saudi Arabia flag](https://assets.invopop.com/flags/sa.svg) [UAE](/compliance/uae) Peppol five-corner model ![UAE flag](https://assets.invopop.com/flags/ae.svg) # Invoicing compliance in New Zealand Source: https://docs.invopop.com/compliance/new-zealand New Zealand's e-invoicing and e-reporting obligations for consumer, business and government transactions > [!NOTE] > > Invopop support for New Zealand is coming soon (Peppol PINT A-NZ). For inquiries, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about New Zealand's regulation → # Invoicing compliance in Norway Source: https://docs.invopop.com/compliance/norway Norway's mandatory B2G e-invoicing, Peppol BIS Billing 3.0 requirements, SAF-T framework, VAT reporting obligations, and the upcoming B2B e-invoicing mandate targeting 2028 > [card] [Norway's e-invoicing regulation timeline](/timelines/norway) > > View current and upcoming regulation → > [accordion] 🇳🇴 Invopop resources for Norway > > | | | > | - | - | > | Compliance | [Invoicing compliance in Norway](/compliance/norway) [Compliance timeline](/timelines/norway) | > | Apps | [Peppol](/apps/peppol) | > | Guides | [Norway Peppol guide](/guides/no-peppol) [Peppol guide](/guides/peppol) | > | FAQ | [Norway FAQ](/faq/norway) | > | GOBL | [Norway Tax Regime](https://docs.gobl.org/regimes/no) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) | ## Executive summary Norway is Europe's most mature Peppol adopter, with mandatory B2G e-invoicing since 2012 and a proposed B2B mandate targeting 2028. Though not an EU member, Norway voluntarily aligns with European digital standards — it uses Peppol BIS Billing 3.0 (based on EN 16931) as its national invoicing format and is actively positioning itself ahead of the EU's ViDA timeline. [Peppol BIS Billing 3.0](#b2g-e-invoicing) has been mandatory for all public sector suppliers since April 2019. Nearly 360,000 receivers are registered in ELMA, Norway's national Peppol registry, and approximately 170 million invoice transactions are processed annually. [SAF-T Financial](#saf-t) has been mandatory since January 2020 for all enterprises with a bookkeeping obligation that store accounting information electronically. Version 1.30 became mandatory from January 2025. [B2B e-invoicing](#b2b-e-invoicing-mandate) is currently voluntary but a formal mandate has been proposed, with a consultation closed in October 2025. The proposal targets mandatory sending by 2028 and mandatory receiving by 2030. ## Invoicing in Norway Norway built its e-invoicing infrastructure on Peppol, of which it was a founding participant. The national EHF (Elektronisk HandelsFormat) standard has fully converged with Peppol BIS Billing 3.0 — EHF 3.0 is not a separate format but a rebranding of Peppol BIS. All public sector invoicing runs through the Peppol eDelivery Network via certified Access Points, with ELMA serving as the national Peppol SMP registry. > [accordion] B2G e-invoicing (Peppol BIS Billing 3.0) > > Norway mandates electronic invoicing for all public procurement transactions. Suppliers to the entire public sector must submit invoices in Peppol BIS Billing 3.0 format via the Peppol network. > > | | | > | - | - | > | **Scope** | B2G | > | **Format** | Peppol BIS Billing 3.0 (EHF 3.0) | > | **Compliance** | e-invoicing | > | **Infrastructure** | Peppol eDelivery Network via certified Access Points | > | **Model** | Decentralized (Peppol) | > | **Threshold** | Applies to public procurement above NOK 100,000 (excl. VAT) | > | **Effective date** | Mandatory since **1 April 2019** (FOR-2019-04-01-444) | > | **Agency** | [DFØ](https://www.anskaffelser.no) (Norwegian Peppol Authority) / [Digdir](https://www.digdir.no) | > | **Invopop support** | [Peppol App](/apps/peppol) | > > > [card] [Peppol](/apps/peppol) > > > > Connect the app to send and receive invoices in Norway → > [accordion] B2B e-invoicing mandate (proposed) > > > [!WARNING] > > > > The B2B mandate is not yet law. A consultation closed on 31 October 2025 and final legislative decisions remain pending as of February 2026. > > The Norwegian Ministry of Finance has launched a formal evaluation of mandatory B2B e-invoicing. The proposal, prepared by Skatteetaten, would require all businesses with bookkeeping obligations to send and receive invoices in Peppol BIS Billing 3.0 format via the Peppol network. > > | | | > | - | - | > | **Scope** | B2B | > | **Format** | Peppol BIS Billing 3.0 | > | **Proposed send date** | **1 January 2028** | > | **Proposed receive date** | **1 January 2030** | > | **Exemptions** | Sole proprietors without accounting obligations and turnover below NOK 50,000; bankruptcy estates; B2C, cash sales, and exports to foreign customers | > | **Agency** | [Skatteetaten](https://www.skatteetaten.no) | ## E-reporting Norway's VAT return (mva-meldingen) was modernized on 1 January 2022, replacing the old RF-0002 form. The new return has 30 boxes (vs. the previous 19), aligned with SAF-T standard tax codes. All filing is mandatory electronic submission via Altinn or ERP API connections. > [accordion] VAT return (mva-meldingen) > > | | | > | - | - | > | **Standard frequency** | Bi-monthly (6 periods) | > | **Annual filing** | Available for businesses with turnover below NOK 1 million | > | **Primary industries** | Annually by default (agriculture, forestry, fisheries) | > | **Foreign sellers (VOEC/VOES)** | Quarterly | > | **Submission** | [Altinn](https://www.altinn.no) portal or ERP API | > | **Agency** | [Skatteetaten](https://www.skatteetaten.no) | > > Bi-monthly deadlines fall one month and ten days after each two-month period (e.g., January–February is due by April 10). Corrections must be submitted as full replacement returns rather than delta-only. ## Regulation > [accordion] SAF-T Financial > > Norway's SAF-T (Standard Audit File for Tax) framework has been mandatory since 1 January 2020 for all enterprises with a bookkeeping obligation that store accounting information electronically. SAF-T is submitted on-demand only — when requested by tax authorities during an audit — with no periodic filing requirement. > > | | | > | - | - | > | **Scope** | All bookkeeping-obligated businesses (including foreign entities with a permanent establishment in Norway) | > | **Format** | SAF-T Financial (XML) | > | **Current version** | **1.30** (mandatory from 1 January 2025) | > | **Submission** | On-demand via [Altinn](https://www.altinn.no) portal or ERP API | > | **Turnover exemption** | Annual turnover below NOK 5 million (unless accounting data is already digital) | > | **Voucher exemption** | Fewer than 600 vouchers annually using spreadsheets | > | **Agency** | [Skatteetaten](https://www.skatteetaten.no) | > > Version 1.30 introduced significant changes: removal of standard chart-of-accounts mapping (replaced by `GroupingCategory` and `GroupingCode`), new balance account structures, new VAT presentation methods, and previously voluntary elements becoming mandatory. Version 1.20 remains valid for financial year 2024 and earlier. > [accordion] SAF-T Cash Register > > A separate SAF-T component covering POS transaction data. Required for businesses subject to the Kassasystemloven (Cash Register Systems Act) — companies with bookkeeping obligations conducting cash sales above NOK 50,000 (excl. VAT) annually. > [accordion] Legally required invoice content > > Norwegian invoice content requirements derive from **Bokføringsforskriften (Bookkeeping Regulations) § 5-1-1 and § 5-1-2** and the **Merverdiavgiftsloven** (VAT Act). > > **Complete invoice** > > * Sequential invoice number and documentation date > * Seller's name and organization number with **"MVA" suffix** if VAT-registered > * Buyer identification (name plus address or organization number) > * Detailed description of goods or services > * Time and place of delivery > * Quantity and unit price > * VAT rate and amount **in NOK** (even when invoicing in foreign currency) > * Total amount including VAT > * Payment due date > * Items at different VAT rates must appear on separate lines > * Limited liability companies (AS) and public limited companies (ASA) must include the word **"Foretaksregisteret"** — including on international invoices > * For reverse-charge supplies, the invoice must indicate the mechanism applies > > **Simplified invoice** > > Permitted when the total consideration is less than **NOK 50,000 including VAT**. Requires only: > > * Seller details (name, address, MVA number) > * Description of goods or services > * Total consideration with VAT amount > [accordion] VAT rates > > Norway applies its own VAT legislation — the **Merverdiavgiftsloven** (Value Added Tax Act 2009). The VAT registration threshold is **NOK 50,000** in taxable turnover within 12 months (NOK 140,000 for charitable organizations). > > | Rate | Percentage | Application | > | - | - | - | > | Standard | **25%** | Most goods and services | > | Reduced (food) | **15%** | Foodstuffs (excl. alcohol, tobacco); water/wastewater services (from 1 July 2025) | > | Reduced (services) | **12%** | Passenger transport, hotel accommodation, cinema, museums, amusement parks, sporting events, public broadcasting | > | Special (marine) | **11.11%** | Wild marine resources — introduced 1 January 2025 | > | Zero rate | **0%** | Exports, international transport, newspapers (print/digital), books, electric vehicles (up to NOK 500,000 until 2026) | > > **Territorial notes**: Svalbard and Jan Mayen are VAT-free and fall outside the Norwegian VAT area. Exports from mainland Norway to Svalbard are zero-rated. Norwegian businesses purchasing taxable services from these territories must apply the reverse-charge mechanism. > [accordion] Archival period > > Under **Bokføringsloven (Bookkeeping Act) § 13**: > > * **5 years** after the end of the financial year for primary documentation (invoices, vouchers, ledgers, mandatory financial reporting specifications) > * **3.5 years** for secondary documentation (supporting specifications) > * **10 years** for construction and engineering project accounts and certain banking records > > Records must generally be stored in Norway. Electronic records may be stored in another EEA country, the UK, or Switzerland if Skatteetaten is notified in writing (Bokføringsforskriften § 7-5). All archived material must remain readable, printable, secured against alteration, and available to control authorities throughout the retention period. > [accordion] More information > > * [ELMA registry](https://www.elma.difi.no) — search for Norwegian Peppol receivers > * [anskaffelser.no](https://www.anskaffelser.no) — public procurement guidance and EHF specifications > * [Skatteetaten VAT](https://www.skatteetaten.no/en/business-and-organisation/vat-and-duties/vat/) — Norwegian Tax Administration VAT guidance > * [Altinn](https://www.altinn.no) — electronic filing portal for VAT returns and SAF-T ## FAQ Compliance questions Norway > [accordion] Is B2B e-invoicing in Norway mandatory? > > Not yet. B2G has been mandatory since April 2019 — all suppliers to the public sector must invoice in Peppol BIS Billing 3.0 (EHF) format via the Peppol network. A formal B2B mandate has been proposed, targeting mandatory sending by 2028 and mandatory receiving by 2030, but it is not yet law. > [accordion] Who can issue invoices in Norway? > > Any entity with a Norwegian organization number from the Brønnøysund Register Centre (shown with an "MVA" suffix when VAT-registered). Participants are registered in ELMA, Norway's national Peppol registry, through a certified Access Point such as Invopop. > [accordion] What are the legal obligations for receiving invoices in Norway? > > Public sector bodies must be able to receive Peppol BIS (EHF) invoices. For businesses, receiving via Peppol remains voluntary until the proposed 2030 mandate. Invoices and other accounting documentation must be archived for 5 years under the Bokføringsloven (Bookkeeping Act). Peppol > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. More available in our [Norway FAQ](/faq/norway) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Norway's regulation → # E-invoicing in Oceania Source: https://docs.invopop.com/compliance/oceania Overview of e-invoicing compliance in Oceania, where Australia and New Zealand share a joint Peppol PINT A-NZ profile for cross-border interoperability ## Executive summary Australia and New Zealand share a uniquely harmonized approach to e-invoicing. Both countries have adopted the **[Peppol](/apps/peppol) network** and developed a joint invoice profile — **PINT A-NZ** — that works across both jurisdictions. This trans-Tasman alignment means businesses operating in either country use the same format and network, with built-in interoperability across all Peppol-connected jurisdictions worldwide. In Australia, federal government entities must receive e-invoices since 1 July 2022, and B2B e-invoicing is voluntary. The shared PINT A-NZ profile positions Oceania as one of the most interoperable regions globally, connecting directly to the Peppol networks in Europe and Asia-Pacific. ## Common standards and formats Both countries use the same format and network infrastructure, making Oceania the most internally harmonized e-invoicing region. | Country | Format | Network | Status | | - | - | - | - | | Australia | Peppol PINT A-NZ | Peppol | B2G mandate since 2022, B2B voluntary | | New Zealand | Peppol PINT A-NZ | Peppol | Emerging — expected 2026 | **PINT A-NZ** (Peppol International Invoice — Australia/New Zealand) is a localized adaptation of the Peppol international invoice specification. It is based on OASIS UBL 2.1 XML with specific extensions for Australian and New Zealand tax requirements, including GST handling and local business identifiers (ABN in Australia, NZBN in New Zealand). ## Compliance model Oceania follows the **decentralized Peppol exchange model**. Businesses connect to the Peppol network through certified Access Points and exchange invoices directly. There is no government clearance step — invoices do not require tax authority approval before reaching the buyer. As the mandates mature, both countries may introduce a reporting layer (such as a five-corner model where the tax authority receives a copy of each transaction), but the current framework focuses on establishing the Peppol exchange infrastructure first. ## Key dates | Country | Milestone | | - | - | | Australia | Federal entities receive e-invoices since 1 July 2022. eInvoicing default by December 2026 | | New Zealand | Peppol PINT A-NZ support — coming soon | Invopop support for Peppol PINT A-NZ in Australia is work in progress. Support for New Zealand is coming soon. ## Invopop countries in this region [Australia](/compliance/australia) Peppol PINT A-NZ ![Australia flag](https://assets.invopop.com/flags/au.svg) [New Zealand](/compliance/new-zealand) Peppol PINT A-NZ ![New Zealand flag](https://assets.invopop.com/flags/nz.svg) # Invoicing compliance in Perú Source: https://docs.invopop.com/compliance/peru Perú's e-invoicing and e-reporting obligations for consumer, business and government transactions > [!NOTE] > > Invopop support for Perú is coming soon (UBL SUNAT). For inquiries, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Perú's regulation → # Invoicing compliance in Poland Source: https://docs.invopop.com/compliance/poland Poland's mandatory e-invoicing requirements, KSeF implementation, and e-reporting obligations for B2B and B2G transactions > [card] [Poland's invoicing e-regulation timeline](/timelines/poland) > > View current and upcoming regulation to ensure you are covered → > [accordion] 🇵🇱 Invopop resources for Poland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Poland](/compliance/poland) [Compliance timeline](/timelines/poland) | > | Apps | [Poland](/apps/poland) | > | Guides | [Supplier registration](/guides/pl-ksef-supplier) [Issuing invoices](/guides/pl-ksef) [Receiving invoices](/guides/pl-ksef-receiving) | > | FAQ | [Poland FAQ](/faq/poland) | > | GOBL | [Poland Tax Regime](https://docs.gobl.org/regimes/pl) [Polish KSeF FA(3) Addon](https://docs.gobl.org/addons/pl-favat-v3) | ## Executive summary Poland is transitioning to KSeF 2.0: a centralized, clearance-based system that routes B2B invoices through a single state hub. E-invoices will replace traditional PDFs as structured documents of XML code, presented in the Polish FA(3) schema. The reform aims to curb VAT fraud, improve transparency, and standardize digital invoicing across the economy. To improve adoption, KSeF offers multiple issuance channels including the [e-Faktur](https://ap.ksef.mf.gov.pl) web portal, a dedicated API for ERP integration, and an official mobile app. QR codes and a 24-hour offline mode have also been developed for easy verification and to maintain functionality during temporary network outages. Key insights: * Every Polish business is required to **receive** e-invoices from 1 February 2026. * The start date for issuing e-invoices is phased: large companies (over PLN 200M annual sales) from 1 February 2026, other taxable companies from 1 April 2026, and micro entrepreneurs from 1 January 2027. * B2C transactions are out of scope. * Cross-border transactions (B2Bi) invoices are generated through KSeF. * B2G e-invoicing continues through the PEF platform, which is now linked to KSeF. * **Penalties are suspended during 2026** (grace period). From 1 January 2027, non-compliance fines can reach up to 100% of the VAT amount shown on non-compliant invoices (or 18.7% of gross value for zero-rated transactions). ## Invoicing in Poland Poland has used e-invoicing for the public sector since 2019, and as of February 2026, the requirement extends to domestic B2B transactions. Businesses grant the required authorizations (with a KSeF token or certificate), and the system validates, transmits, and receives each e-invoice, ready to view in a company’s accounting system. Each invoice is validated by the tax authority before it reaches the customer; once cleared, it receives a unique KSeF identifier and is considered legally issued. > [accordion] KSeF (B2G, B2B) > > B2G e-invoices are issued through PEF, the public sector platform. As of the new mandate, PEF will synchronize with KSeF to apply the same validation sequences, so public entities can decide to use either portal. > > | | | > | - | - | > | **Models** | B2G, B2B | > | **Format** | FA(3) XML | > | **Infrastructure** | KSeF | > | **Model** | Clearance continuous transaction control (CTC) | > | **Scope & Deadline** | Mandatory for B2G invoices since 2019; phased from February 2026-2027 for B2B transactions | > | **Agency** | [Polish Ministry of Finance](https://efaktura.gov.pl/?) | > | **Invopop support** | [Poland App](/apps/poland) | ## E-reporting Involves sending invoice data to tax authorities in real-time or near real-time, typically as part of government initiatives to improve tax compliance and reduce VAT fraud. > [accordion] SAF-T Poland > > Known locally as JPK (Jednolity Plik Kontrolny), SAF-T is a mandatory electronic reporting system standardizing how businesses submit accounting data to the tax authorities. Companies must send XML files directly from their accounting systems, using schemas defined by the ministry. The core file, JPK\_VAT, is submitted monthly and details all VAT transactions, while other versions (e.g., JPK\_KR for general ledger, JPK\_FA for invoices) can be requested during audits. Since October 2020, the JPK\_V7 format has merged VAT reporting and return obligations into a single file, combining transactional data with declaration elements for both VAT-registered entities and smaller taxpayers. > > | | | > | - | - | > | **Format** | SAF-T (XML) | > | **Scope & deadline** | Mandatory since 2020 for all taxpayers | > | **Invopop support** | No | ## Regulation > [accordion] International transactions (B2Bi) > > For international transactions, the invoice is created and cleared in KSeF just like a domestic one. Once the invoice is validated, the tax data is recorded and it receives a KSeF ID to prove compliance. > > Because a foreign recipient without a Polish NIP (tax ID) cannot log in to KSeF, delivery takes place outside the platform. The commercial channels continue as before: via email, EDI attachment or paper. The document must include the KSeF references, in particular a QR code, so the buyer can scan the document and view a verifiable version online. > [accordion] Legally required e-invoice content > > An e-invoice contains the same business information as a traditional invoice, but must follow the FA(3) XML structure.  > > * Date and time (in the YYYY-MM-DDTHH:MM:SS format). > * **Optional**: Name of the ICT software used by the taxpayer. > * Supplier information (NIP). > * Buyer information (NIP). > * Third parties relating to the invoice if applicable (such as an e-invoicing provider). > * Information regarding transaction terms. > * KRS number: The invoice footer (“Stopka”) includes an optional “Rejestry” block for registry identifiers such as KRS and REGON. > * **Optional:** From 1 February 2026 the optional “Zalacznik” element may be used where a transaction involves a complex set of data for units of measure, quantities, or net unit prices. Attachments are part of the structured file and are limited to data closely related to tax content. Prior notification (via e-Urząd Skarbowy) is required to enable attachments, and each attachment cannot exceed 3 MB. Non-tax materials (e.g., contracts or marketing content) are not allowed as invoice attachments. > [accordion] When you're not required to issue e-invoices via KSeF > > * B2C transactions > > * Non-established businesses > > > [!NOTE] > > > > For a full list of exemptions, see the "[scope](https://ksef.podatki.gov.pl/informacje-ogolne-ksef-20/zakres-obowiazkowego-ksef/)" page on the KSeF website. > [accordion] KSeF certificates > > KSeF certificates are digital documents that authenticate a company in the KSeF portal. > > **Type 1 certificate** > > The designated individual of each company will apply for a type 1 certificate to use the KSeF API in an ERP or accounting software. Access is granted after the authorized person confirms their identity with a certified e-signature. KSeF certificates are available to download online from 1 November 2025 and will be added directly to the KSeF API from February 2026.  > > **Type 2 certificate**  > > For offline invoices, businesses send a type 2 certificate that includes two QR codes for customers to scan on their phone: one QR code for the buyer to access the invoice online, another to validate the supplier's identity.  > > > [!NOTE] > > > > For more information see the government FAQs section on [e-invoice QR codes](https://ksef.podatki.gov.pl/pytania-i-odpowiedzi-ksef-20/#:~:text=Co%20to%20jest%20kod%20QR%20i%20do%20czego%20s%C5%82u%C5%BCy%3F). > [accordion] B2C transactions (Fiscal cash registers) > > B2C transactions are excluded from the e-invoicing mandate. The Polish tax authority already receives B2C sales data from online fiscal cash registers that continuously transmit receipts to the Central Repository of Cash Registers (CRK). > > For B2B transactions, receipts that include a buyer NIP below PLN 450 remain compliant as simplified invoices until 31 December 2026. Companies will need to submit these transactions via KSeF from 2027. > [accordion] Non established businesses (no FE) > > A foreign entity is not required to issue invoices in KSeF if it has no registered office and no fixed establishment in Poland. It is also outside the mandate if it has a fixed establishment in Poland that does not participate in the specific supply. Such businesses still may opt to issue invoices through KSeF voluntarily.  > > A fixed establishment is defined as having "sufficient permanent presence with human and technical resources". As the assessment is case-by-case, the Ministry of Finance has indicated it will publish additional explanations on the fixed establishment criteria. > [accordion] Penalties and enforcement > > Poland has implemented a grace period for KSeF adoption: **no penalties or formal sanctions will be imposed during 2026**. This allows businesses time to adapt their systems and processes without financial risk. > > **Starting 1 January 2027**, the Ministry of Finance will enforce compliance with financial penalties: > > * Fines up to **100% of the VAT amount** shown on invoices not issued via KSeF when required. > * For zero-rated or VAT-exempt transactions, fines up to **18.7% of the gross invoice value**. > * Tax authorities have discretion to adjust penalties based on severity and circumstances. > > **Additional consequences:** > > * Invoices not issued through KSeF may be considered invalid for VAT deduction purposes. > * Business partners may refuse to accept non-compliant invoices. > * Tax office audits from 2027 onwards will incorporate KSeF compliance checks. > [accordion] Operational notes: QR codes, offline mode, and archiving. > > * **QR codes:** KSeF provides QR codes for B2Bi transactions to verify whether a document exists in the system and, for offline issuance, to authenticate the issuer. Offline invoices show two QR codes ("OFFLINE" and a certificate QR) until they are delivered to KSeF. > * **Offline procedures:** In addition to real-time online clearance, KSeF supports: (1) offline24 (to issue now, upload by end of the next business day), (2) scheduled maintenance offline (to upload the day after maintenance ends), and (3) emergency mode (to upload within seven business days after an official outage). > * **Retention:** Invoices accepted by KSeF are archived and available in the system for 10 years. > [accordion] Related resources > > * [Extensive FAQs](https://ksef.podatki.gov.pl/pytania-i-odpowiedzi-ksef-20?) > * [E-invoicing legislation](https://ksef.podatki.gov.pl/informacje-ogolne-ksef-20/podstawy-prawne-oraz-kluczowe-terminy?) > * [KSeF weekly video tutorials (Polish)](https://ksef.podatki.gov.pl/srody-z-ksef/) > * [Technical documentation (English)](https://ksef-test.mf.gov.pl/?) > * [Government repository (Polish)](https://ksef.podatki.gov.pl//pliki-do-pobrania-ksef-20/) > * [KSeF sandbox environment](https://ksef.podatki.gov.pl/strefa-testowa-ksef/) ## FAQ Compliance questions > [accordion] When does mandatory KSeF invoicing start in Poland? > > 1 February 2026 for taxpayers with turnover above PLN 200M, 1 April 2026 for all other businesses, and 1 January 2027 for micro entrepreneurs. B2C is optional. Foreign-only businesses without a fixed Polish establishment are out of scope. > [accordion] Who can act as a supplier in Poland? > > Any entity with a Polish NIP and active KSeF access. Large taxpayers (turnover > PLN 200M) must be onboarded by 1 February 2026, all other businesses by 1 April 2026, and micro entrepreneurs by 1 January 2027. Foreign-only entities without a Polish fixed establishment cannot use KSeF. > [accordion] What are the legal obligations for receiving invoices in Poland? > > Once KSeF is mandatory, all B2B invoices must be received through KSeF — paper or PDF rejection is no longer permitted between Polish parties. Archival is automatic in KSeF for 10 years; recipients can pull copies at any time. > [accordion] What periodic reporting obligations exist in Poland? > > JPK\_V7M (monthly) or JPK\_V7K (quarterly) consolidated VAT and SAF-T file. Once KSeF is mandatory, JPK\_V7 is expected to draw directly from KSeF data, eliminating manual reconciliation. > [accordion] What types of invoices are supported in Invopop's KSeF integration? > > Currently supported invoice types: > > * **Standard Invoices (VAT)**: Regular B2B invoices with FA(3) schema > * **Credit Notes (KOR)**: Invoice corrections and adjustments > > All invoices must include the `pl-favat-v3` addon in GOBL to ensure FA(3) schema compliance. > > > [!NOTE] > > > > Additional invoice types can be supported based on customer requirements. Contact [support](mailto:support@invopop.com) if you need specific invoice types. > [accordion] Will B2C transactions need to be reported in KSeF? > > No. B2C invoices in KSeF are optional. The mandatory requirement applies only to B2B transactions. > [accordion] Are there special supplier obligations under KSeF? > > The KSeF certificate must belong to the company account directly or to a user with both InvoiceRead and InvoiceWrite permissions in KSeF. Suppliers must declare KSeF as their issuer in the Ministry of Finance taxpayer's portal before going live. > [accordion] What are the legal obligations for receiving invoices through KSeF? > > Once KSeF is mandatory, all Polish B2B recipients must accept KSeF-issued invoices. KSeF itself archives for 10 years; recipients have no separate archival duty for the structured XML. More available in our [Poland FAQ](/faq/poland) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Poland's regulation → # Invoicing compliance in Portugal Source: https://docs.invopop.com/compliance/portugal Portugal's mandatory e-invoicing requirements, ATCUD/QR implementation, and SAF-T e-reporting obligations for B2B and B2G transactions > [card] [Portugal's e-invoicing regulation timeline](/timelines/portugal) > > View current and upcoming regulation → > [accordion] 🇵🇹 Invopop resources for Portugal > > | | | > | - | - | > | Compliance | [Invoicing compliance in Portugal](/compliance/portugal) [Compliance timeline](/timelines/portugal) | > | Apps | [AT Portugal](/apps/at-portugal) | > | Guides | [Supplier registration](/guides/pt-at-supplier) [Issuing invoices](/guides/pt-at) | > | FAQ | [Portugal FAQ](/faq/portugal) | > | GOBL | [Portugal Tax Regime](https://docs.gobl.org/regimes/pt) [Portugal SAF-T addon](https://docs.gobl.org/addons/pt-saft-v1) | ## Executive summary Portugal requires all invoices to carry an **ATCUD** validation code and a **QR code** — in force since 2023. Businesses must to use approved software that generates invoices with unique validation codes (ATCUD) assigned by the Portuguese Tax Authority (AT). Each invoice must include a QR code that links to the AT's online verification service, allowing customers and tax authorities to validate invoice authenticity. Invoicing in Portugal is based on the EN 16931 standard with CIUS restrictions, requiring businesses to notify the AT of their numbering series before issuance. The AT then validates and issues unique codes for each series, creating a centralized tracking mechanism for all invoices. Portugal also requires **SAF-T (Standard Audit File for Tax)** reporting, an XML-based format used to submit accounting and invoicing data to tax authorities. This system enables standardized digital audits and tax compliance, with mandatory reporting for B2G and B2B transactions from January 1, 2024. This article covers [ATCUD/QR invoicing requirements](#atcudqr-b2b-b2c), [SAF-T reporting](#saft-pt-b2b-b2g), and [Portuguese invoicing regulations](#regulation). Invopop covers Portuguese invoicing through its AT Portugal app, as well as integrations with platforms like Stripe and Chargebee. This allows businesses to issue compliant ATCUD invoices efficiently and manage white-label (B2B2B) operations. ## Invoicing in Portugal Portugal does not mandate a specific electronic invoice format. Instead, businesses report tax information to the Portuguese Tax Authority (AT - Autoridade Tributária e Aduaneira) either periodically through SAF-T (PT) reports or in real time via web service. > [accordion] ATCUD/QR (B2B, B2C) > > Although no format is required, all invoices must include ATCUD and a QR code. > > 1. **ATCUD (Unique Code)**: > * Businesses must register their invoice numbering series with the AT > * The AT issues a validation code for each registered series > * This code must appear on each invoice > 2. **QR Code**: > * All invoices must contain a QR code > * The QR code links to the AT's online verification service > > | | | > | - | - | > | **Models** | B2B, B2C | > | **Format** | Unspecified (paper or PDF used in practice) | > | **Infrastructure** | Hybrid: public and private platforms | > | **Model** | Centralized | > | **Scope & Deadline** | All B2B invoices from **Jan 1, 2026** | > | **Agency** | [AT Portugal](https://www.portaldasfinancas.gov.pt) | > | **Invopop Support** | [AT Portugal App](/apps/at-portugal) | > > > [card] [AT Portugal](/apps/at-portugal) > > > > Get covered → > [accordion] CIUS-PT (B2G) > > CIUS-PT is a XML-based invoice format used for B2G transactions. > > | | | > | - | - | > | **Models** | B2G | > | **Format** | CIUS-PT (XML) | > | **Infrastructure** | [BASE](https://www.base.gov.pt/base4) | > | **Scope & Deadline** | Mandatory for B2G invoices from **Jan 1, 2024** | > | **Agency** | [AT Portugal](https://www.portaldasfinancas.gov.pt) | > | **Invopop Support** | No | ## E-reporting The SAF-T (Standard Audit File for Tax) system was introduced in Portugal in 2008 to facilitate the electronic submission of VAT returns, accounting records, and transport documents. This system requires files to be generated in specific formats containing detailed information regarding commercial transactions. Taxpayers with headquarters, based or permanently established in Portugal, subject to corporate tax (IRC) or income tax (IRS) that keep organized accounting, must comply with this system. > [accordion] SAF-T (PT) (B2B, B2G) > > SAF-T (Standard Audit File for Tax) is an XML-based file format used to report accounting and invoicing data to the tax authority, enabling standardized digital audits and tax compliance. > > | | | > | - | - | > | **Format** | SAF-T PT (XML) | > | **Scope & deadline** | B2G and B2B from 1 Jan 2024 | > | **Invopop support** | Yes | > > > [card] [AT Portugal](/apps/at-portugal) > > > > Get covered → ## Regulation > [accordion] Legally required invoice content > > According to [Article 36(5) of the Código do IVA](https://info.portaldasfinancas.gov.pt/pt/informacao_fiscal/codigos_tributarios/civa_rep/Pages/iva36.aspx), all invoices must be dated, sequentially numbered, and contain the following: > > **Standard invoice** > > * **Supplier identification**: name or business name, registered address, and NIF (Número de Identificação Fiscal). > * **Customer identification**: name or business name, address, and NIF of the customer when the customer is a taxable person. For non-taxable individuals (final consumers), the NIF is only required when the customer requests it. > * **Goods or services description**: quantity and usual denomination, with enough detail to determine the applicable tax rate. Non-invoiced packaging must be listed separately with an express mention of its agreed return. > * **Unit price**: price net of tax and any other elements included in the taxable value, along with any discounts or rebates not already reflected in the unit price. > * **Applicable VAT rate(s)** and the corresponding **tax amount(s)**. When a single invoice covers items subject to different VAT rates, the description, price, and tax must be broken down separately for each rate. > * **Exemption justification**: if VAT does not apply, the invoice must state the legal basis for the exemption (for example, "IVA – regime de isenção" for Article 53 small-business exemptions). > * **Date of supply**: the date goods were delivered or services were performed, if different from the invoice issue date. Also required when advance payments are received before the operation is complete. > * **ATCUD**: the document unique code assigned through series registration with the AT. > * **QR code**: linking to the AT's online verification service. > > Invoices must be issued no later than the **fifth business day** following the date when VAT becomes due. For certain intra-EU service provisions, the deadline extends to the 15th day of the following month. > > **Simplified invoice (fatura simplificada)** > > Under [Article 40 of the Código do IVA](https://informador.pt/legislacao/lexit/codigos/direito-fiscal/codigo-do-iva/capitulo-v-liquidacao-e-pagamento-do-imposto/seccao-iii-outras-obrigacoes-dos-contribuintes/artigo-40-o-faturas-simplificadas/), simplified invoices may be issued for: > > * Retail sales to final consumers up to **€1,000** > * Other supplies of goods or services up to **€100** > > A simplified invoice must contain: > > * Supplier name or business name and NIF. > * Goods or services description and quantities. > * Price: either the net price plus VAT amount and rate, or the total price with VAT included and the applicable rate. > * Customer NIF: mandatory only when the customer is a taxable person (B2B). For final consumers, it is included only if the customer requests it. > * Exemption justification, if applicable. > * Sequential number and date of issue. > [accordion] Invoice numbering and ATCUD > > [Decreto-Lei 28/2019](https://info.portaldasfinancas.gov.pt/pt/apoio_contribuinte/Novas_regras_faturacao/Paginas/default.aspx) governs invoice processing obligations in Portugal, including numbering rules and the ATCUD system. > > **Numbering rules** > > * Invoices must be issued within one or more series, dated and numbered sequentially and continuously. > * Each series must run for at least one fiscal year. > * The series identifier must be unique per establishment and/or software program, and cannot be reused for the same document type by the same taxpayer. > * Separate series are required for different document types (invoices, credit notes, receipts, and so on). > > **Series registration** > > Before issuing invoices, businesses must communicate each documentary series to the AT through the e-fatura portal. The communication must include: > > * The series identifier > * The document type > * The starting sequential number > * The expected date the series will begin use > > **ATCUD composition** > > The AT assigns a validation code (minimum eight characters) for each registered series. The ATCUD is formed by concatenating: > > 1. The series validation code > 2. A hyphen > 3. The sequential document number > > The ATCUD must appear on the invoice in the format: `ATCUD:XXXXXXXX-NNNNNNNN`. > [accordion] Certified invoicing software > > All businesses in Portugal must use invoicing software certified by the AT. [Decreto-Lei 28/2019](https://risema.pt/decreto-lei-n-o-28-2019-de-15-02-2019/) establishes that: > > * Software must be registered and approved by the AT before use. > * Each invoice must include a digital signature hash generated by the certified software, creating a chain of integrity across documents. > * The software must support the generation of ATCUD codes and QR codes on all tax-relevant documents. > * Businesses using the AT's free online invoicing portal are also considered compliant. > [accordion] Self-billing (autofaturação) > > When the customer issues an invoice on behalf of the supplier, [Article 36(11) of the Código do IVA](https://ztlm.eu/autofaturacao-acordo-escrito-e-obrigatorio-segundo-o-codigo-do-iva/) requires a **prior written agreement** between the parties. The agreement must include: > > * Full identification of both parties (name, NIF, address) > * An express statement that the customer will issue invoices on the supplier's behalf > * A description of the covered operations > * Express acceptance by the supplier > * Period of validity and revocation conditions > * Signatures of both parties > > The agreement must be communicated to the AT through the e-fatura portal and retained for ten years. > [accordion] B2G invoicing > > eInvoicing for public procurement is managed through [BASE](https://www.base.gov.pt/base4), a central platform that provides solutions like acinGov and saphetygov for electronic invoicing. While the FE-AP platform can be used to receive invoices, its use is not mandatory, leading to various methods for sending invoices, including web-based services, direct electronic connections, third-party portals, or email. > [accordion] Archival period > > Business owners must keep transaction records for **ten years**. If the tax settlement period is longer than ten years, records must be maintained until the end of the settlement period. > > More information can be found on the [Tax and Customs Authority PDF](https://info.portaldasfinancas.gov.pt/pt/informacao_fiscal/legislacao/instrucoes_administrativas/Documents/Oficio_Circulado_30213_2019.pdf) (in Portuguese). > [accordion] VAT rates for Portugal > > 1. VAT > > * General rate: 23% > * PT-AC: 16% > * PT-MA: 22% > * Intermediate rate: 13% > * PT-AC: 9% > * PT-MA: 12% > * Reduced rate: 6% > * PT-AC: 4% > * PT-MA: 4% > > Read more about [taxation in Portugal](https://en.wikipedia.org/wiki/Taxation_in_Portugal). > [accordion] When you're not required to issue invoices > > Under [Article 39 of the Código do IVA](https://info.portaldasfinancas.gov.pt/pt/informacao_fiscal/codigos_tributarios/civa/Pages/iva39.aspx), invoice issuance is waived when all of the following conditions are met: the customer is a private individual not using the goods or services for commercial, industrial, or professional activity, and the transaction is paid in cash. > > The exemption applies to: > > * Retail sales by retailers or street vendors. > * Sales through vending machines. > * Services where access is via a numbered receipt, admission ticket, transport ticket, or other printed bearer document proving payment. > * Other service provisions valued under €10. > > Even when exempt, retailers and service providers must still issue an invoice when: > > * The customer is a VAT-taxable person. > * A non-taxable customer requests one. > > Exempt businesses must still issue pre-numbered sales receipts or use electronic cash registers that document all operations. > [accordion] QR code requirements for ATCUD/QR > > Refer to the [QR code technical specification](https://info.portaldasfinancas.gov.pt/pt/docs/Conteudos_1pagina/Documents/QR_Code_Technical_Specifications.pdf) published by the Autoridade Tributária (AT). > > When using our "Generate PDF" action, Invopop complies with the requirements by the AT in producing PDF invoices with the QR code. ## FAQ Compliance questions > [accordion] What invoicing rules apply across all systems in Portugal? > > All invoices issued in Portugal must include a unique sequential number, a series identifier, an ATCUD code (Article 35-A CIVA), and a QR code (Portaria 195/2020). Software must be certified by the Autoridade Tributária — Invopop is certified. > [accordion] Who can act as a supplier in Portugal? > > Any entity with a Portuguese NIF — companies, sole traders, and freelancers. NIFs starting with 1, 2, or 3 are individuals (autónomos); NIFs starting with 5 are legal entities, which require additional registration metadata (share capital, commercial registry). > [accordion] What are the legal obligations for receiving invoices in Portugal? > > Recipients must verify the QR/ATCUD on each invoice via AT's e-fatura portal and retain the document for 10 years (Article 123 CIVA). Auto-classification of received invoices into expense categories happens through e-fatura. > [accordion] What periodic reporting obligations exist in Portugal? > > Monthly or quarterly IVA periódica plus the annual IES (Informação Empresarial Simplificada). Invoice-level data is reported continuously through real-time submission or monthly SAF-T export — both feed AT's e-fatura system automatically. > [accordion] What is supplier registration information in invoices and other documents? > > Supplier registration information includes the company's share capital, the commercial registry office, and optionally the NIF used during registration. Portuguese law requires this information to appear on all printed fiscal documents, including PDFs. > > **When is it mandatory?** > > Registration information is mandatory for companies and legal entities. However, self-employed individuals and freelancers (whose NIF starts with 1, 2, or 3) are exempt from this requirement, as they typically do not have formal registration details. > > **What about the "other" field?** > > The `other` field is optional and can be used to specify the NIF of the company when it was registered if different from the current one. > [accordion] Are there special supplier obligations under AT? > > The supplier must use certified billing software, register their issuance series with AT, and choose a reporting model (monthly SAF-T or real-time). Self-employed taxpayers (NIF starting 1/2/3) are exempt from supplier registration metadata; companies must declare share capital and commercial registry. > [accordion] What reporting obligations does AT impose? > > Either real-time per-invoice transmission or monthly SAF-T export by the 5th of the following month (uploaded by the supplier). Both satisfy the reporting obligation under Portaria 195/2020 — the choice is operational. More available in our [Portugal FAQ](/faq/portugal) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Portugal's regulation → # Invoicing compliance in Romania Source: https://docs.invopop.com/compliance/romania Romania's RO e-Factura: a national clearance platform for B2G, B2B and B2C invoices, with a 5 working day transmission deadline > [card] [Romania's e-invoicing regulation timeline](/timelines/romania) > > View current and upcoming regulation → > [accordion] 🇷🇴 Invopop resources for Romania > > | | | > | - | - | > | Compliance | [Invoicing compliance in Romania](/compliance/romania) [Compliance timeline](/timelines/romania) | > | FAQ | [Romania FAQ](/faq/romania) | > [!NOTE] > > Invopop support for Romania (RO e-Factura) is coming soon. The information below is for reference. For inquiries, contact us at [support@invopop.com](mailto:support@invopop.com). ## Executive summary Romania uses **RO e-Factura**, a national clearance platform. The Ministry of Finance and the tax authority (**ANAF**) run it. Businesses reach it through **SPV** (*Spațiul Privat Virtual*), ANAF's online portal, or through its API. The platform validates each invoice and applies an electronic seal from the Ministry of Finance. The sealed XML file is the legal invoice. The main law is **OUG 120/2021**, as amended. The obligation came in phases: * **B2G**: mandatory since **1 July 2022**. * **B2B**: reporting since **1 January 2024**, full clearance since **1 July 2024**. * **B2C**: reporting of invoices to consumers since **1 January 2025**. * **Deadline**: since **1 January 2026**, the supplier must send each invoice within **5 working days** of issue. The obligation applies to taxable persons established in Romania. Exports and intra-Community supplies are out of scope. Invoices use **UBL 2.1** with the Romanian profile of EN 16931, called **CIUS-RO**. The standard VAT rate is **21%**, and the reduced rate is **11%**, since 1 August 2025. ## Invoicing in Romania RO e-Factura works like a central hub. The supplier, or a provider for the supplier, uploads the invoice to the platform. The platform validates it, seals it and makes it available to the buyer in SPV. There is no directory and no network of access points. ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant S as Supplier participant P as Supplier's provider participant EF as RO e-Factura (ANAF) participant B as Buyer S->>P: Invoice data P->>EF: Upload the invoice (CIUS-RO XML) EF->>EF: Validate and seal EF-->>P: Status (ok or nok) and sealed XML EF-->>B: Sealed invoice available in SPV ``` **1. Invoice created** The supplier's system sends the invoice data to its provider, or the supplier prepares the XML itself. **2. Upload the invoice** The provider builds a UBL 2.1 invoice in the CIUS-RO profile and uploads it to RO e-Factura, within 5 working days of issue. **3. Validate and seal** The platform checks the invoice against the national rules. If the invoice is valid, the platform applies the Ministry of Finance seal. **4. Status and sealed XML** The platform returns the status. `ok` means the invoice is sealed and valid. `nok` means it failed validation and comes with an error file. The supplier can download the sealed XML. **5. Delivery to the buyer** The sealed invoice appears in the buyer's SPV, and the buyer downloads it from there. > [accordion] Domestic e-invoicing (B2B) > > Invoices between taxable persons established in Romania go through RO e-Factura. The platform is the only delivery channel: the buyer gets the invoice from SPV. The buyer must not book an invoice that did not go through the system. > > | | | > | - | - | > | **Scope** | B2B (domestic) | > | **Format** | UBL 2.1 in the CIUS-RO profile (CII D16B is also accepted) | > | **Compliance** | Clearance | > | **Model** | Centralized. The national platform validates, seals and delivers | > | **Deadline** | 5 working days from issue | > | **Effective date** | Reporting since **1 January 2024**, clearance since **1 July 2024** | > | **Agency** | Ministry of Finance and ANAF | > | **Invopop support** | Coming soon | > [accordion] Public bodies (B2G) > > Invoices to public institutions use the same upload as B2B invoices. RO e-Factura sends them on to the public institution. The Ministry of Finance publishes the list of fiscal codes of public institutions. > > | | | > | - | - | > | **Scope** | B2G | > | **Format** | UBL 2.1 in the CIUS-RO profile | > | **Compliance** | Clearance | > | **Effective date** | Mandatory since **1 July 2022** | > | **Agency** | Ministry of Finance and ANAF | > | **Invopop support** | Coming soon | > [accordion] Consumer invoices (B2C) > > When a supplier issues an invoice (*factură*) to a consumer, it must report the invoice to RO e-Factura. The platform only receives the report. The supplier still gives the invoice to the consumer in the usual way. The consumer's personal ID number (CNP) identifies the buyer. If the supplier does not have the CNP, it uses 13 zeros. > > A receipt from a fiscal cash register (**bon fiscal**) is a different document. Its data reaches ANAF through the cash register. A bon fiscal that meets the conditions of a simplified invoice does not go to RO e-Factura. > > | | | > | - | - | > | **Scope** | B2C (only when the supplier issues an invoice) | > | **Format** | UBL 2.1 in the CIUS-RO profile | > | **Compliance** | Reporting. The supplier delivers the invoice to the consumer | > | **Effective date** | Mandatory since **1 January 2025**. Penalties since **1 July 2025** | > | **Agency** | Ministry of Finance and ANAF | > | **Invopop support** | Coming soon | > [accordion] What is out of scope > > * **Exports** and **intra-Community supplies**. > * **Fiscal cash register receipts** (bon fiscal) that meet the conditions of a simplified invoice. > > Since 1 January 2026, invoices to buyers that are registered for VAT in Romania but not established there are in scope. The supplier reports them to RO e-Factura and also delivers them in the usual way. Since 1 June 2026, individuals who work under their personal ID number (CNP) and farmers under the special regime can use the system voluntarily. ## E-reporting > [!NOTE] > > **B2C invoice or bon fiscal?** These are two different documents, and only one goes to RO e-Factura. > > * **B2C invoice** (*factură*): the supplier issues an invoice to a consumer. The supplier reports it to RO e-Factura in UBL 2.1 (CIUS-RO). The consumer's personal ID number (CNP) identifies the buyer, or 13 zeros if the supplier does not have it. The supplier gives the invoice to the consumer in the usual way. > * **Bon fiscal**: a receipt from a fiscal cash register, under OUG 28/1999. Its data reaches ANAF through the cash register. A bon fiscal that meets the conditions of a simplified invoice does not go to RO e-Factura. > > A retail sale that ends with a bon fiscal only stays outside RO e-Factura. The B2C reporting obligation starts only when the supplier issues a *factură*. Romania has other reporting obligations next to RO e-Factura. They do not change the invoice flow. * **e-TVA**: ANAF prepares a pre-filled VAT return from the invoice data. Since 2026, it is for information only. * **RO e-Transport**: a separate system that gives a code (UIT) to road shipments of goods. ## Regulation > [accordion] Invoice format and content > > A Romanian e-invoice is a structured XML file in **UBL 2.1**, with the customization ID of the **CIUS-RO 1.0.1** profile. CII (D16B) is also accepted. The platform checks each invoice against the European EN 16931 rules and the national **BR-RO** rules. Some national rules: > > * The allowed invoice type codes are 380 (commercial invoice), 389 (self-billed invoice), 384 (corrective invoice), 381 (credit note) and 751 (invoice for accounting purposes). > * The invoice number must contain at least one digit. > * If the invoice is in another currency, the VAT amounts must also show in RON. > * Addresses use ISO 3166-2:RO county codes. In Bucharest (`RO-B`), the city is the sector, from `Sector 1` to `Sector 6`. > * Amounts have at most 2 decimals. Attachments are limited to 3 MB in total. > > The supplier must issue the invoice by the 15th of the month after the supply. The 5 working days to send it count from the issue date. The PDF has no legal value. Only the sealed XML is the legal invoice. > [accordion] Corrections and self-billing > > ANAF cannot cancel an invoice after it seals it. To correct an invoice, the supplier issues a credit note (type 381) or a corrective invoice (type 384) that references the original invoice. Negative lines are allowed. > > Self-billing is allowed. The buyer issues the invoice in the supplier's name, with type code 389. > > There is no accept or reject step for the buyer. The platform statuses show only whether the invoice passed validation. The buyer settles a dispute directly with the supplier. > [accordion] VAT rates > > Romania applies the EU VAT framework. The current rates apply since 1 August 2025. > > | Rate | Percentage | Application | > | - | - | - | > | Standard | **21%** | Most goods and services | > | Reduced | **11%** | Selected goods and services | > [accordion] Providers and certificates > > Romania has no certification scheme for e-invoicing providers. A provider connects to the public API of RO e-Factura. It uses a qualified certificate for electronic signature, which belongs to a natural person. Each business authorizes the provider in SPV to act for its tax number (CIF). > > The taxpayer does not sign the invoice. The Ministry of Finance applies its seal after validation. > [accordion] Availability and downtime > > Sealed invoices stay available for download from the platform for **60 days**. After that, ANAF archives them, and a copy is available only on request. > > If the platform is not available for at least 24 hours, the obligation to send invoices stops until the service starts again. ANAF and the Ministry of Finance publish announced outages on their websites. > [accordion] Penalties > > * **Late transmission**: RON 5,000 to 10,000 for large taxpayers, RON 2,500 to 5,000 for medium taxpayers and RON 1,000 to 2,500 for small taxpayers. > * **Invoice issued outside the system**: a fine of 15% of the invoice value for the supplier. > * **Invoice booked outside the system**: a fine of 15% of the invoice value for the buyer, and the buyer cannot deduct the VAT. > [accordion] More information > > * [Ministry of Finance, RO e-Factura technical information](https://mfinante.gov.ro/ro/web/efactura/informatii-tehnice): API, schematron, validators and sample files, in Romanian > * [ANAF, online invoice validator](https://www.anaf.ro/uploadxmi/): checks an invoice XML with no account > * [OUG 120/2021](https://legislatie.just.ro/Public/DetaliiDocument/247243): the main law on RO e-Factura, in Romanian > * [European Commission, eInvoicing in Romania](https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467108898/eInvoicing+in+Romania) ## FAQ Compliance questions > [accordion] Is e-invoicing mandatory in Romania? > > Yes. Taxable persons established in Romania must send their domestic invoices to RO e-Factura. It is mandatory for invoices to public bodies (B2G) since July 2022 and for invoices to businesses (B2B) since July 2024. Invoices to consumers (B2C) must be reported since January 2025. > [accordion] Is RO e-Factura part of the Peppol network? > > No. RO e-Factura is a national clearance platform that the Ministry of Finance and ANAF run. Every domestic invoice goes to this one platform through its API or through SPV. There is no Peppol directory and no network of access points in the domestic flow. > [accordion] What is the deadline to send an invoice to RO e-Factura? > > 5 working days from the issue date, since 1 January 2026. Before that date, the deadline was 5 calendar days. The supplier must issue the invoice by the 15th of the month after the supply. > [accordion] Does RO e-Factura apply to consumer (B2C) sales? > > Yes, when the supplier issues an invoice to the consumer. The supplier reports the invoice to RO e-Factura and gives it to the consumer in the usual way. A fiscal cash register receipt (bon fiscal) that meets the conditions of a simplified invoice does not go to RO e-Factura. > [accordion] What is the difference between a bon fiscal and a B2C invoice? > > A B2C invoice (*factură*) is an invoice that the supplier issues to a consumer. The supplier reports it to RO e-Factura and gives it to the consumer. A bon fiscal is a receipt from a fiscal cash register, under OUG 28/1999. Its data reaches ANAF through the cash register, not through RO e-Factura. A bon fiscal that meets the conditions of a simplified invoice does not go to RO e-Factura. > [accordion] Which transactions are out of scope? > > Exports and intra-Community supplies are out of scope. Qualifying fiscal cash register receipts are also out of scope. Since January 2026, invoices to buyers that are registered for VAT in Romania but not established there are in scope. > [accordion] Does a foreign provider need a certification to connect? > > No. Romania has no certification scheme for e-invoicing providers. A provider uses a qualified certificate for electronic signature. Each business authorizes the provider in SPV to act for its tax number (CIF). > [accordion] What are the penalties? > > A late transmission costs RON 1,000 to 10,000, based on the size of the taxpayer. An invoice issued outside the system costs the supplier 15% of its value. A buyer that books an invoice from outside the system also pays 15% of its value and cannot deduct the VAT. More available in our [Romania FAQ](/faq/romania) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Romania's regulation → # Invoicing compliance in Saudi Arabia Source: https://docs.invopop.com/compliance/saudi-arabia Saudi Arabia's ZATCA Fatoora e-invoicing obligations for business and consumer transactions > [!NOTE] > > Invopop supports Saudi Arabia (ZATCA) e-invoicing. See the [Clearance & Reporting](/guides/sa-zatca-clearance-reporting) and [Registration](/guides/sa-zatca-registration) guides to get started. > [card] [Saudi Arabia's e-invoicing regulation timeline](/timelines/saudi-arabia) > > View current and upcoming regulation → > [accordion] 🇸🇦 Invopop resources for Saudi Arabia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Saudi Arabia](/compliance/saudi-arabia) [Compliance timeline](/timelines/saudi-arabia) | > | Apps | [Saudi Arabia](/apps/saudi-arabia) | > | Guides | [Registration](/guides/sa-zatca-registration) [Clearance & reporting](/guides/sa-zatca-clearance-reporting) | > | FAQ | [Saudi Arabia FAQ](/faq/saudi-arabia) | > | GOBL | [Saudi Arabia Tax Regime](https://docs.gobl.org/regimes/sa) [ZATCA Addon](https://docs.gobl.org/addons/sa-zatca-v1) | > | GitHub | [gobl.sa.zatca](https://github.com/invopop/gobl.sa.zatca) | ## Executive summary Saudi Arabia mandates electronic invoicing through the **Fatoora** system, operated by **ZATCA** (Zakat, Tax and Customs Authority). All VAT-registered taxpayers must issue invoices in XML format from a compliant solution that connects to ZATCA. **Standard tax invoices** (B2B, B2G) follow a clearance model, where ZATCA digitally stamps the document before it's shared with the buyer. **Simplified tax invoices** (B2C) follow a reporting model, where the document is issued at the point of sale and reported to ZATCA within 24 hours. **Key requirements:** * **Format**: UBL 2.1 XML with ZATCA's KSA extensions. * **Clearance (B2B, B2G)**: standard invoices are stamped by ZATCA in real time before they reach the buyer. * **Reporting (B2C)**: simplified invoices are issued at the point of sale and reported to ZATCA within 24 hours. * **Security**: each invoice carries a ZATCA-issued cryptographic stamp (CSID), a QR code, an Invoice Counter Value (ICV) and a Previous Invoice Hash (PIH). Invopop provides ZATCA/Fatoora integration through its [Saudi Arabia app](/apps/saudi-arabia) to ensure compliance. ## Invoicing in Saudi Arabia ZATCA operates the **Fatoora** platform, which VAT-registered taxpayers use to clear standard tax invoices in real time and report simplified tax invoices within 24 hours of issuance. The invoice is a UBL 2.1 XML document with ZATCA-specific extensions: in the clearance flow it is cryptographically stamped by ZATCA itself; in the reporting flow the stamp is applied by Invopop using the supplier's ZATCA-issued certificate. The mandate covers all **resident VAT-registered taxable persons**, plus any third party issuing invoices on their behalf — non-resident taxable persons are out of scope. > [accordion] Clearance (standard tax invoices — B2B, B2G) > > Required where the buyer is a VAT-registered business or a government entity, carrying the full set of mandatory fields. The issuer submits the XML to ZATCA in real time; ZATCA validates, applies its own cryptographic stamp, and returns the cleared invoice. Only the cleared document is legally valid and shareable with the buyer. > > | | | > | - | - | > | **Models** | B2B, B2G | > | **Format** | UBL 2.1 XML with KSA extensions | > | **Infrastructure** | Fatoora | > | **Model** | Clearance (real-time) | > | **Scope & Deadline** | Resident VAT-registered taxpayers; rolling out in waves (see [timeline](/timelines/saudi-arabia)). | > | **Agency** | [ZATCA](https://zatca.gov.sa) | > | **Invopop Support** | [Saudi Arabia](/apps/saudi-arabia) | > > > [card] [Saudi Arabia](/apps/saudi-arabia) > > > > Connect the app to get you covered → > [accordion] Reporting (simplified tax invoices — B2C) > > Used for transactions with end consumers; the buyer's VAT details are not required and the field set is reduced. The issuer signs and delivers the invoice to the buyer immediately at the point of sale, then **reports** it to ZATCA within 24 hours. > > | | | > | - | - | > | **Models** | B2C | > | **Format** | UBL 2.1 XML with KSA extensions | > | **Infrastructure** | Fatoora | > | **Model** | Reporting (within 24h) | > | **Scope & Deadline** | Resident VAT-registered taxpayers; rolling out in waves (see [timeline](/timelines/saudi-arabia)). | > | **Agency** | [ZATCA](https://zatca.gov.sa) | > | **Invopop Support** | [Saudi Arabia](/apps/saudi-arabia) | > > > [card] [Saudi Arabia](/apps/saudi-arabia) > > > > Connect the app to get you covered → ## Implementation phases ZATCA introduced e-invoicing in two phases. > [accordion] Phase 1: invoice generation (since 2021) > > Mandatory for all VAT-registered residents since 4 December 2021. Required taxpayers to: > > * Issue invoices and notes in a structured electronic format from a compliant solution. > * Stop issuing handwritten or manually edited invoices. > * Include a QR code on simplified tax invoices. > > Phase 1 did not require integration with ZATCA's platform, the obligation was to generate compliant electronic documents and store them. > [accordion] Phase 2: Integration (from 2023) > > The integration phase started on 1 January 2023 and is rolling out to taxpayers in **waves** based on their VAT-taxable revenue. In addition to Phase 1 requirements, Phase 2 introduces: > > * Integration of the issuer's solution with the Fatoora platform via API. > * Cryptographic stamping with a ZATCA-issued certificate (CSID). > * Real-time clearance of standard invoices and 24-hour reporting of simplified invoices. > * An expanded QR code carrying the seller's VAT registration number, cryptographic signature and invoice hash. > * UBL 2.1 XML in line with ZATCA's *Electronic Invoice XML Implementation Standard*. > > Onboarding has progressed through waves at descending revenue thresholds. The most recent announcements: > > | Wave | VAT-taxable revenue threshold | Reference year(s) | Integration deadline | > | - | - | - | - | > | 23 | > SAR 750,000 | 2022, 2023 or 2024 | 31 March 2026 | > | 24 | > SAR 375,000 | 2022, 2023 or 2024 | 30 June 2026 | > > Wave 24 effectively brings every VAT-registered business under the mandatory VAT registration threshold (SAR 375,000) into scope. ZATCA notifies taxpayers in each wave at least six months before their go-live date. ## Compliance > [accordion] Legally required invoice content > > From ZATCA's *Detailed Guidelines for E-Invoicing* and the *E-Invoicing Implementation Resolution*: > > **Standard tax invoice (B2B, B2G)** > > * Seller name, address, VAT registration number, and one of the following identities: MOMRAH, MHRSD, 700, MISA or Commercial Registration number. > * Buyer name, address, and either a VAT registration number or one of the following identities: Tax Identification Number, Commercial Registration number, MOMRAH, MHRSD, 700, MISA, National ID, GCC, Iqama Number or Passport ID. > * Invoice issue date and supply date if different. > * Sequential invoice number and UUID. > * Line-item description, quantity, unit price and any discounts. > * VAT rate and VAT amount per line. > * VAT-exclusive subtotal, VAT total and VAT-inclusive total, expressed in SAR. > * QR code with the eight Phase 2 TLV tags. > * Invoice Counter Value (ICV) and Previous Invoice Hash (PIH). > * ZATCA's clearance stamp. > > **Simplified tax invoice (B2C)** > > The simplified invoice carries a reduced field set: seller details, issue date, line items, VAT breakdown, totals in SAR, QR code, UUID, ICV, PIH and the issuer's cryptographic stamp. Buyer details are not required, except in specific cases set by the VAT Implementing Regulation. > > Source: [ZATCA E-Invoicing](https://zatca.gov.sa/en/E-Invoicing/Pages/default.aspx). > [accordion] Currency > > Invoices are issued in **Saudi Riyal (SAR)**. Foreign-currency invoices are permitted, but the VAT amount must also be shown in SAR, converted using the SAMA (Saudi Central Bank) exchange rate on the supply date. > [accordion] VAT rates > > Saudi Arabia's standard VAT rate is **15%**, in force since 1 July 2020 (raised from the original 5%). > > * **Standard rate**: 15% — applies to most goods and services. > * **Zero-rated**: exports outside the GCC, qualifying international transport, qualifying medicines and medical equipment, investment-grade gold, silver and platinum (≥99% purity), private education and healthcare, and the supply of qualified military goods. > * **Exempt**: certain margin-based financial services and residential real-estate rentals. > > Source: [ZATCA VAT rules and regulations](https://zatca.gov.sa/en/RulesRegulations/VAT/Pages/default.aspx). > [accordion] Cancellations and corrections > > Issued invoices cannot be cancelled or edited once they have been cleared (standard) or reported (simplified). Any correction must be made by issuing a **credit note** (reduction) or **debit note** (increase) that references the original invoice's number, date and reason for correction. > > Notes follow the same clearance or reporting flow as the document type they correct. > [accordion] Archival period > > The VAT Implementing Regulation requires invoices and supporting records to be retained for **at least 6 years** from the end of the relevant tax period. Records must be **stored within Saudi Arabia**; digital archives must reside on servers located in the Kingdom, and originals must not be deleted or altered. > [accordion] Who must comply > > The obligation applies to all **resident taxable persons** registered for VAT in Saudi Arabia, including any third party issuing invoices on their behalf (e.g. billing service providers). > > Non-resident taxable persons are out of scope of the e-invoicing mandate, even where they are otherwise registered for VAT. ## Reference documents ZATCA publishes the full regulatory and technical specification on its e-invoicing site: * [E-Invoicing landing page](https://zatca.gov.sa/en/E-Invoicing/Pages/default.aspx) * [Roll-out phases](https://zatca.gov.sa/en/E-Invoicing/Introduction/Pages/Roll-out-phases.aspx) * [E-Invoicing Implementation Resolution](https://zatca.gov.sa/en/E-Invoicing/Introduction/LawsAndRegulations/Documents/E-Invoicing%20Implementation%20Resolution_EN.pdf) * [Detailed Guidelines for E-Invoicing](https://zatca.gov.sa/en/E-Invoicing/Introduction/Guidelines/Documents/E-Invoicing_Detailed__Guideline.pdf) * [Electronic Invoice XML Implementation Standard](https://zatca.gov.sa/ar/E-Invoicing/SystemsDevelopers/Documents/20230519_ZATCA_Electronic_Invoice_XML_Implementation_Standard_%20vF.pdf) * [Electronic Invoice Security Features Implementation Standards](https://zatca.gov.sa/ar/E-Invoicing/SystemsDevelopers/Documents/20230519_ZATCA_Electronic_Invoice_Security_Features_Implementation_Standards_vF.pdf) *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Saudi Arabia's regulation → # Invoicing compliance in Singapore Source: https://docs.invopop.com/compliance/singapore Singapore's mandatory e-invoicing requirements, GST InvoiceNow, Peppol network adoption, and GST reporting obligations for B2B and B2G transactions > [card] [Singapore's e-invoicing regulation timeline](/timelines/singapore) > > View current and upcoming regulation → > [accordion] 🇸🇬 Invopop resources for Singapore > > | | | > | - | - | > | Compliance | [Invoicing compliance in Singapore](/compliance/singapore) [Compliance timeline](/timelines/singapore) | > | FAQ | [Singapore FAQ](/faq/singapore) | ## Executive summary Singapore's e-invoicing and reporting framework is built around InvoiceNow, a single nationwide network operated by the Infocomm Media Development Authority (IMDA) and anchored in the internationally recognized Peppol standard. Singapore has pursued a phased approach to implement its e-invoicing and reporting framework. [GST InvoiceNow Requirement](#invoicenow-b2b-b2g) is already mandatory for newly incorporated companies that voluntarily register for GST, and will progressively extend to all GST-registered businesses. It requires structured invoice data to be transmitted to IRAS (Inland Revenue Authority of Singapore) via the Peppol network, using a [five-corner model](/faq/singapore#what-is-the-five-corner-model-in-the-context-of-peppol) where IRAS is the fifth corner. [GST F5 Reporting](#gst-f5-reporting) requires all GST-registered businesses to file quarterly aggregate VAT returns via IRAS's myTax Portal. This article also provides insight and further resources to understand [invoice regulation in Singapore](#regulation). ## Invoicing in Singapore Singapore's approach to invoicing digitalization is centralized and standards-driven. The Infocomm Media Development Authority (IMDA) governs the InvoiceNow network, while the Inland Revenue Authority of Singapore (IRAS) is responsible for GST enforcement and the mandatory e-reporting dimension. Singapore became the first Peppol Authority outside Europe in 2018, giving businesses on the network built-in cross-border interoperability with all other Peppol-connected jurisdictions. * [GST InvoiceNow Requirement](#invoicenow-b2b-b2g) — mandatory for new voluntary GST registrants, rolling out to all GST-registered businesses through 2026 and beyond. * [GST F5 Reporting](#gst-f5-reporting) — quarterly aggregate GST returns required for all GST-registered businesses. > [accordion] GST InvoiceNow Requirement (B2B, B2G) > > > [!NOTE] > > > > Mandatory from 1 November 2025 for newly incorporated companies that voluntarily register for GST. > > > > Mandatory from 1 April 2026 for all new voluntary GST registrants. Extension to compulsory registrants and all existing GST-registered businesses is planned for subsequent phases (dates TBC by IRAS). > > Singapore's fiscal mandates, requiring GST-registered businesses to transmit structured invoice data to IRAS via the Peppol-based InvoiceNow network. Invoices are sent in real time through an IMDA-accredited Access Point provider. IRAS acts as the fifth corner of the network receiving a copy of every covered transaction. The system uses the **PINT-SG** format (progressively replacing Singapore BIS Billing 3.0), based on OASIS UBL 2.1 XML with Singapore-specific adaptations including GST registration numbers, PayNow/GIRO payment methods, and IRAS validation rules. > > | | | > | - | - | > | **Scope** | B2B, B2G | > | **Format** | PINT-SG / Singapore BIS Billing 3.0 (UBL 2.1 XML) | > | **Compliance** | E-invoicing and e-reporting | > | **Infrastructure** | Peppol network (decentralized, via accredited Access Points) | > | **Model** | Near real-time invoice reporting (five-corner Peppol) | > | **Effective date** | Mandatory from **1 November 2025** (new voluntary GST registrants, newly incorporated); **1 April 2026** (all new voluntary GST registrants) | > | **Agency** | [IRAS](https://www.iras.gov.sg) / [IMDA](https://www.imda.gov.sg) | > | **Invopop support** | Coming soon | ## E-reporting Involves sending invoice data or aggregate tax information to IRAS, either in near real time (via InvoiceNow) or periodically (via the GST F5 return). > [accordion] GST F5 Reporting (all GST-registered businesses) > > All GST-registered businesses must file a quarterly GST return (Form F5) via IRAS's myTax Portal, reporting aggregate totals across output tax, input tax, and net GST payable. Returns are due one month after the end of each accounting period. The GST F5 is not replaced by InvoiceNow — both obligations coexist. > > | | | > | - | - | > | **Scope** | B2C, B2B, B2G | > | **Format** | Aggregate return (15-box GST F5 form) | > | **Compliance** | E-reporting | > | **Effective date** | Mandatory for all GST-registered businesses | > | **Notes** | Monthly filing available by election. Nil returns required even with no transactions. Late filing incurs a S$200 penalty per month, up to S$10,000 per return. | > | **Agency** | [IRAS](https://www.iras.gov.sg) | > | **Invopop support** | Coming soon | ## Regulation > [accordion] Legally required invoice content > > **Full Tax Invoice (B2B — required when total exceeds S\$1,000)** > > A GST-registered supplier must issue a full tax invoice within **30 days** of the time of supply. It must contain: > > * The words "Tax Invoice" displayed prominently > * A unique, sequential serial number > * Date of issue > * Supplier's name, address, and GST registration number > * Customer's name and address > * Description of goods or services supplied > * Quantity and unit price (excluding GST) for each line item > * Any discounts or reductions applied > * The GST rate (9%) > * Total GST amount in Singapore dollars > * Total amount payable including GST > * Indication of whether each supply is standard-rated (9%), zero-rated (0%), or exempt > > **Simplified Tax Invoice (total payable S\$1,000 or less)** > > A simplified tax invoice may be issued and requires only: > > * Supplier's name, address, and GST registration number > * Date of issue > * Sequential serial number > * Description of goods or services > * Total amount payable including GST (GST need not be shown separately) > > Customer details and per-line GST breakdowns are not required on simplified invoices. > > **Credit Notes** > > Credit notes must include the words "Credit Note" prominently, the supplier's GST registration details, the reason for the credit, a reference to the original tax invoice, and the GST rate and amount credited. Credit notes that do not adjust GST must state "This is not a credit note for GST purposes." > [accordion] When you're not required to issue a tax invoice > > A GST-registered business does not need to issue a tax invoice for: > > 1. **Zero-rated supplies** (exports of goods, international services) — a commercial invoice or export documentation suffices, though GST records must still be maintained. > 2. **Exempt supplies** — including most financial services, residential property leases, and investment-grade precious metals. No tax invoice is required, and input tax on costs related to exempt supplies generally cannot be claimed. > 3. **Supplies to non-GST-registered customers** — a simplified invoice or receipt is acceptable. A full tax invoice is only required when the customer is GST-registered and requests one. > 4. **Deemed supplies** — such as gifts exceeding S\$200 in value; these are self-accounted and do not require an outward invoice. > > Even in these cases, you must issue a tax invoice if a GST-registered customer requests one for input tax claim purposes. > [accordion] Archival period > > **The archival period for invoices and accounting records in Singapore is as follows:** > > * **5 years (IRAS — GST and income tax):** > The standard minimum. Records must be retained for five years from the end of the relevant GST accounting period or Year of Assessment — even after a business ceases operations or deregisters from GST. Required under Section 67 of the Income Tax Act and Section 46 of the GST Act. > > * **5 years (ACRA — Companies Act):** > Section 199 of the Companies Act independently requires companies to retain accounting records for five years from the end of the financial year in which the transactions were completed. > > * **Longer periods in special cases:** > * **Ongoing audits or legal disputes:** Records must be retained until the matter is fully resolved. > * **Capital assets:** Supporting records for capital expenditure claims should be retained for the full duration of claiming, which may exceed five years. > > Electronic records are fully acceptable for all tax purposes with no prior IRAS approval required, provided they remain accessible, retain their original form, and are protected from tampering with a proper audit trail. > [accordion] InvoiceNow onboarding and access points > > To connect to InvoiceNow, a business requires: > > * A valid **Unique Entity Number (UEN)** > * **CorpPass** KYC certification > * A connection to an **IMDA-accredited Access Point provider** (Peppol Service Provider) > > Businesses using off-the-shelf accounting software should check IMDA's list of **InvoiceNow-Ready Solution Providers (IRSPs)** for compatible products. Businesses running in-house ERP systems should engage an accredited Access Point directly — integration typically takes 3 to 12 months. > > Financial support available: > > * **Productivity Solutions Grant (PSG):** Up to S\$30,000 > * **InvoiceNow Accelerate programme:** One year of free services for newly incorporated businesses > * Free-of-charge solution packages from select IRSPs > [accordion] GST registration and rates > > **Registration threshold:** Businesses with annual taxable turnover exceeding \*\*S$1 million** must register for GST — assessed either retrospectively (at calendar year-end) or prospectively (when turnover is expected to exceed S$1 million in the next 12 months). Late registration carries a fine of up to S\$10,000 plus a 10% surcharge on GST due from the date liability arose. > > **Current GST rates:** > > | Supply type | Rate | > | - | - | > | Standard-rated (local B2B and B2C supplies) | 9% | > | Zero-rated (exports of goods, international services) | 0% | > | Exempt (financial services, residential property, precious metals) | N/A | > > **Cross-border and digital services:** > > * **Overseas Vendor Registration (OVR) regime:** Overseas suppliers of digital services, remote services, and low-value goods (≤ S$400) to Singapore consumers must register for GST if global turnover exceeds S$1 million and Singapore B2C supplies exceed S\$100,000. > * **Reverse charge:** Partially exempt GST-registered businesses that import services must self-account for GST as if they were the supplier. > * **Import GST:** GST at 9% applies on the CIF value plus customs duty for goods imported into Singapore. The Major Exporter Scheme and Import GST Deferment Scheme provide relief for qualifying businesses. > [accordion] IRAS audits and voluntary disclosure > > IRAS conducts risk-based GST audits rather than mandatory fiscal device checks. Key compliance tools include: > > * **IRAS Audit File (IAF):** A detailed pipe-delimited or XML file generated from the general ledger, required when selected for audit. Most major accounting software supports IAF generation. > * **GST Assisted Self-Help Kit (ASK):** A voluntary self-assessment framework with three components — internal process review, pre-filing checklist, and annual review of prior submissions. Mandatory when applying for certain GST schemes (e.g., Import GST Deferment Scheme). > * **Voluntary Disclosure Programme:** Errors voluntarily disclosed within one year of the filing deadline qualify for reduced or waived penalties. Disclosure via GST ASK strengthens the case for penalty reduction. > > Penalties for non-compliance: > > * Late or incorrect GST returns: up to 200% of tax undercharged > * Inadequate record-keeping: up to S$5,000 (GST Act), S$1,000 (Income Tax Act), or S\$5,000 / 12 months' imprisonment (Companies Act) > * Non-registration: fine up to S\$10,000 plus 10% surcharge on GST owed > [accordion] More information > > * [IRAS GST InvoiceNow Requirement](https://www.iras.gov.sg/taxes/goods-services-tax-\(gst\)/gst-invoicenow-requirement) > * [IMDA InvoiceNow](https://www.imda.gov.sg/how-we-can-help/nationwide-e-invoicing-framework/invoicenow) > * [Singapore Peppol Guide](https://www.peppolguide.sg/) *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Singapore's regulation → # Invoicing compliance in Slovakia Source: https://docs.invopop.com/compliance/slovakia Slovakia's eFaktúra mandate: domestic B2B and B2G e-invoicing over Peppol from January 2027. Certified providers report every invoice to the Financial Administration. > [card] [Slovakia's e-invoicing regulation timeline](/timelines/slovakia) > > View current and upcoming regulation → > [accordion] 🇸🇰 Invopop resources for Slovakia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Slovakia](/compliance/slovakia) [Compliance timeline](/timelines/slovakia) | > | FAQ | [Slovakia FAQ](/faq/slovakia) | > | GOBL | [Slovakia Tax Regime](https://github.com/invopop/gobl/tree/main/regimes/sk) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [!WARNING] > > Invopop support for Slovakia (eFaktúra) is work in progress. The information below is provided for reference. For availability and onboarding, contact us at [support@invopop.com](mailto:support@invopop.com). ## Executive summary From **1 January 2027**, VAT payers established in Slovakia must issue structured e-invoices for their domestic business (B2B) and public sector (B2G) sales. Every business and legal entity in Slovakia must be able to receive them. The mandate, called **eFaktúra**, comes from an amendment to the Slovak VAT Act (Act 385/2025, which adds §85o to Act 222/2004). Slovakia uses the [Peppol](/apps/peppol) network. Each invoice has two obligations: 1. **Exchange** the invoice over Peppol, in the standard **Peppol BIS Billing 3.0** format. There is no Slovak profile on top of it. 2. **Report** the invoice data to the Financial Administration (Finančná správa). For every invoice, the providers on both sides send a separate tax data document to a tax authority endpoint. Businesses send and receive invoices through certified providers, locally called **digital postmen**. This adds the tax authority as a fifth corner to the usual Peppol four-corner network, similar to [France](/compliance/france). [Domestic e-invoicing](#domestic-e-invoicing-b2b-b2g) is voluntary during 2026 and mandatory from January 2027. [Cross-border](#e-reporting) transactions come into scope on **1 July 2030**. On the same day, the periodic VAT control statement ends. Consumer (B2C) sales are not in scope. The standard VAT rate is **23%**, with reduced rates of **19%** and **5%**. ## Invoicing in Slovakia Every invoice travels twice: once to the buyer over Peppol, and once, as tax data, to the Financial Administration. Both digital postmen take part. The supplier's postman reports the invoice as issued, and the buyer's postman reports it as received. ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant S as Supplier participant SP as Supplier's digital postman participant BP as Buyer's digital postman participant B as Buyer participant TA as Financial Administration S->>SP: Invoice data SP->>BP: Send over Peppol (BIS Billing 3.0) BP->>B: Deliver the invoice SP->>TA: Report as issued BP->>TA: Report as received ``` **1. Invoice created** The supplier's system sends the invoice to its digital postman, which builds a Peppol BIS Billing 3.0 invoice. **2. Send over Peppol** The supplier's postman finds the buyer on Peppol by its Slovak tax number (DIČ) and sends the invoice to the buyer's postman. **3. Deliver to the buyer** The buyer's postman delivers the invoice to the buyer's accounting system or app. **4. Report as issued** At the same time, the supplier's postman sends the invoice data to the Financial Administration as a tax data document. **5. Report as received** The buyer's postman reports the same invoice as received, within 5 days of receipt. > [accordion] Domestic e-invoicing (B2B, B2G) > > VAT payers established in Slovakia must issue an e-invoice for domestic supplies of goods and services to other businesses and to public bodies. The supplier does not need the buyer's consent. All legal entities and taxable persons must be able to receive e-invoices. This includes sole traders, the self-employed and people who rent property. In practice, each of them needs a contract with a digital postman. > > | | | > | - | - | > | **Scope** | B2B, B2G (domestic) | > | **Format** | Peppol BIS Billing 3.0 (UBL 2.1), no Slovak profile | > | **Compliance** | e-invoicing and e-reporting | > | **Infrastructure** | Peppol network through certified providers (digital postmen) | > | **Model** | Decentralized, with the tax authority as a fifth corner | > | **Effective date** | Voluntary during **2026**, mandatory from **1 January 2027** | > | **Agency** | Finančná správa SR (Financial Administration), also the Slovak Peppol Authority | > | **Invopop support** | Work in progress | > [accordion] Reporting to the Financial Administration > > The business does not file a separate report. For each invoice, the digital postmen on both sides send a **tax data document** to the Financial Administration, alongside the Peppol exchange. The supplier's side reports at issuance, and the buyer's side within 5 days of receipt. From July 2030, this near-real-time data replaces the periodic VAT control statement. > > | | | > | - | - | > | **Scope** | B2B, B2G (the supplier's and the buyer's digital postman both report) | > | **Format** | Peppol tax data document (TDD-SK) | > | **Channel** | The digital postman sends it to a tax authority endpoint on Peppol | > | **Deadline** | Supplier at issuance, buyer within 5 days of receipt | > | **Effective date** | Mandatory from **1 January 2027** | > | **Agency** | Finančná správa SR (Financial Administration) | > | **Invopop support** | Work in progress | > [accordion] What is out of scope > > These supplies do not need an e-invoice: > > * **Simplified invoices**: receipts up to EUR 100, and eKasa (cash register) receipts up to EUR 400 including VAT. > * **VAT-exempt supplies** (under §28 to §43 and §47 of the VAT Act), such as exempt rental of property. > * **Supplies between members of the same VAT group**, which are not subject to VAT. > * **Consumer (B2C) sales.** > > Suppliers must not issue e-invoices for classified supplies, for example to the Slovak intelligence services. > > Until **30 June 2030**, the obligation does not apply to companies that are registered for VAT in Slovakia but not established there. > [accordion] Invoicing outside Peppol > > Peppol through a digital postman is the default channel. If the recipient agrees, the supplier can send an e-invoice another way, for example over an existing EDI connection. The agreement can take any form, including acceptance and payment of the invoice. The invoice must still be a structured e-invoice in UBL 2.1 or UN/CEFACT CII that complies with EN 16931. A recipient who receives an invoice over Peppol must accept it there. ## E-reporting VAT payers continue to file the periodic **VAT control statement** (kontrolný výkaz) and the summary statement for intra-EU supplies until 30 June 2030. Both statements end on **1 July 2030**. From then on, invoice data reaches the Financial Administration automatically through the digital postmen. The mandate also extends to cross-border transactions, in line with the EU's VAT in the Digital Age (ViDA) initiative. ## Regulation > [accordion] Invoice format and content > > A Slovak e-invoice is a structured XML file that complies with the European **EN 16931** standard, in UBL 2.1 or UN/CEFACT CII syntax. Over Peppol, the format is **Peppol BIS Billing 3.0** (UBL). Slovakia adds no national business rules to it. > > * A PDF or a scanned image is **not** an e-invoice. A PDF, a scanned image or a payment QR code can travel as an attachment to the XML. > * The deadline to issue an invoice stays at **15 days** from the supply of goods or services. It also applies to corrective invoices. > * **Self-billing** needs a written agreement between supplier and buyer. The buyer issues the invoice and sends it through its own digital postman, with the dedicated self-billing document type. > * **Corrections**: the Financial Administration recommends a credit note, then a new invoice. A corrective invoice must reference the original invoice (BT-25). The Financial Administration and OpenPeppol are preparing support for the corrective invoice type code 384. This code is for changes that do not affect VAT or price. > [accordion] Identifiers > > Peppol identifies a Slovak business by its **DIČ** (tax identification number, 10 digits), under the participant identifier scheme **0245**. For example: `0245:1234567890`. The mandate does not use the VAT number scheme 9950. A business that is already listed under 9950 needs a new 0245 registration through a digital postman. > > The **IČ DPH** (VAT number: `SK` followed by 10 digits) goes in the invoice itself, as the VAT identifier of the supplier and the buyer. Every VAT payer has a DIČ, but not every DIČ holder has a VAT number. > [accordion] VAT rates > > Slovakia applies the EU VAT framework. The current rates apply from 1 January 2025. > > | Rate | Percentage | Application | > | - | - | - | > | Standard | **23%** | Most goods and services | > | Reduced | **19%** | Non-basic foodstuffs, electricity and certain catering services | > | Super-reduced | **5%** | Basic foodstuffs, medicines, medical devices, books and accommodation | > | Zero-rated | **0%** | Exports and intra-EU supplies to VAT-registered buyers | > [accordion] Digital postmen > > Only providers that the Financial Administration accredits, as the Slovak Peppol Authority, can act as digital postmen. A digital postman must be an OpenPeppol-certified service provider based in an EU member state, with a clean criminal record. It does not need to be Slovak. The Financial Administration publishes the list of digital postmen. > > Each business chooses its digital postman on the Financial Administration's portal, which registers the business with that postman. A business can use its postman through accounting or ERP software, or through the postman's own web or mobile app. > [accordion] Archiving > > Businesses must keep e-invoices in their **XML** form for **10 years** from the end of the calendar year they relate to. The obligation stays with the business: digital postmen have no legal duty to keep the invoices they transmit. > [accordion] Penalties > > The Financial Administration can fine a business up to **EUR 10,000** for invoice data that it does not report, reports incorrectly or reports late. For repeated violations, the fine can reach **EUR 100,000**. There is no fine for an obvious mistake that the business corrects promptly. There is also no fine for a proven failure of the digital postman. In that case, the business must report the data as soon as the postman fixes the failure. > [accordion] More information > > * [Finančná správa, eInvoicing](https://www.financnasprava.sk/en/businesses/taxes-businesses/value-added-tax/e-invoicing): official hub, digital postman lists and technical documents > * [Finančná správa, e-Faktúra (Slovak)](https://www.financnasprava.sk/sk/podnikatelia/dane/dan-z-pridanej-hodnoty/e-faktura): official hub, with the FAQ > * [Slovak Republic Tax Data Document](https://docs.peppol.eu/tdd/sk/): OpenPeppol specification for the reporting document > * [Peppol BIS Billing 3.0](https://docs.peppol.eu/poacc/billing/3.0/): invoice format specification > * [Act 222/2004 on VAT](https://www.slov-lex.sk/ezbierky/pravne-predpisy/SK/ZZ/2004/222/): Slovak VAT Act ## FAQ Compliance questions > [accordion] Is e-invoicing mandatory in Slovakia? > > Yes, from 1 January 2027. VAT payers established in Slovakia must issue e-invoices for domestic sales to businesses (B2B) and public bodies (B2G). Every business must be able to receive them. During 2026, e-invoicing is voluntary. > [accordion] Who must be able to receive e-invoices? > > Every legal entity and taxable person in Slovakia, including sole traders, the self-employed, farmers and people who rent property. In practice, each of them needs a contract with a digital postman. > [accordion] Does it apply to consumer (B2C) sales? > > No. The mandate currently covers only sales between businesses (B2B) and between businesses and public bodies (B2G). > [accordion] Does the mandate apply to foreign companies? > > Not until mid-2030. Some companies are registered for VAT in Slovakia but not established there. Until 30 June 2030, they do not have to issue or receive e-invoices through a digital postman. Cross-border transactions come into scope from 1 July 2030. > [accordion] Which transactions do not need an e-invoice? > > Simplified invoices do not need one. These are receipts up to EUR 100, and eKasa receipts up to EUR 400 including VAT. VAT-exempt supplies and supplies between members of the same VAT group also do not need one. You must not issue e-invoices for classified supplies, for example to the intelligence services. > [accordion] Do I need my customer's consent to send an e-invoice? > > No. When an e-invoice is mandatory, you do not need the recipient's consent. > [accordion] What is a digital postman? > > A certified provider that sends and receives e-invoices over Peppol for a business and reports the invoice data to the Financial Administration. The Financial Administration accredits digital postmen and publishes the list. Each business chooses its postman on the Financial Administration's portal. > [accordion] Do I still file the VAT control statement? > > Yes, until 30 June 2030. The control statement and the summary statement end on 1 July 2030. From then on, invoice data reaches the Financial Administration automatically through the digital postmen. > [accordion] How long must e-invoices be kept in Slovakia? > > For 10 years from the end of the calendar year they relate to, in their original XML form. You must keep them yourself: digital postmen do not have to keep the invoices they transmit. > [accordion] What are the penalties? > > If you do not report invoice data, or report it incorrectly or late, the fine is up to EUR 10,000. For repeated violations, it can reach EUR 100,000. There is no fine for an obvious mistake that you correct promptly, or for a proven failure of your digital postman. > [accordion] What VAT rates apply in Slovakia? > > A standard rate of 23%, with reduced rates of 19% and 5%, all in force since 1 January 2025. Slovakia uses the euro. More available in our [Slovakia FAQ](/faq/slovakia) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Slovakia's regulation → # Invoicing compliance in Spain Source: https://docs.invopop.com/compliance/spain Spain's mandatory e-invoicing requirements, VERI*FACTU, TicketBAI, and Facturae implementation, and SII e-reporting obligations for B2B and B2G transactions > [card] [Spain's e-invoicing regulation timeline](/timelines/spain) > > View current and upcoming regulation → > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | ## Executive summary In Spain, e-invoicing compliance is governed by a complex, regionally differentiated system designed to ensure transparency, prevent fraud, and align with EU digitalization standards. The country relies on multiple overlapping frameworks rather than a single unified system, reflecting both regional fiscal autonomy and incremental regulatory evolution. [VERI\*FACTU](#veri-factu-b2b) is already available and becomes mandatory in October 2028 for companies and other taxpayers not already reporting via SII or TicketBAI. The AEAT announced on 5 October 2026 that the original 2027 deadlines are being postponed to align with the Crea y Crece e-invoicing calendar. It requires digitally signed invoices and a QR code linking to AEAT verification. [Crea y Crece](#crea-y-crece-b2b) (RD 238/2026) introduces mandatory structured B2B e-invoicing through a new public/private platform system, rolling out from 6 October 2027 for businesses with turnover above €8M and from 6 October 2028 for everyone else, now that Orden HAC/1028/2026 is in force. [TicketBAI](#ticketbai-b2b) applies in the Basque Country (Álava, Bizkaia, Gipuzkoa) and mandates certified software for digitally signed XML invoices, including QR codes and unique identifiers. [Facturae](#facturae-b2g) is required for B2G transactions. XML invoices are reported through the FACe platform. [SII](#sii-large-companies) mandates near-real-time VAT reporting for large companies and select taxpayers. This article also provides insight and further resources to understand [invoice regulation in Spain](#regulation). ## Invoicing in Spain Spain’s numerous invoicing and reporting systems stems from its decentralized fiscal structure, where regions like the Basque Country and Navarra manage their own tax authorities, alongside the national AEAT. Instead of a unified reform, Spain has evolved through incremental, purpose-specific initiatives. This layered approach reflects the country’s effort to balance regional autonomy, EU digitalization mandates, and the fight against tax fraud, but it has produced a patchwork of systems that coexist under overlapping jurisdictions. * [VERI\*FACTU](#veri-factu-b2b) enforced from October 2028 (postponed from 2027), required for self-employed individuals and companies not covered by SII or TicketBAI. * [Crea y Crece](#crea-y-crece-b2b) introduces mandatory B2B e-invoicing through a new public/private platform system, rolling out in phases from 6 October 2027 (turnover above €8M) and 6 October 2028 (all others). * [TicketBAI](#ticketbai-b2b) required for issuers with tax obligations to the foral agencies of Álava, Bizkaia and Gipuzkoa. * [Facturae](#facturae-b2g) is required when businesses invoice Spanish public administrations (B2G), requiring invoices in XML format submitted through the **FACe** platform. * [SII](#sii-large-companies) mandates near-real-time reporting of invoice data to the Spanish Tax Agency (AEAT) for large companies. ### Spain > [accordion] VERI\*FACTU (B2C, B2B, B2G) > > > [!WARNING] > > > > On 5 October 2026 the AEAT announced that the pending VERI\*FACTU obligations under Real Decreto 1007/2023 will be postponed to **October 2028**, aligning them with the Crea y Crece e-invoicing mandate for businesses with annual turnover of €8M or less. The previous deadlines (1 January 2027 for companies, 1 July 2027 for other taxpayers) no longer apply once the amendment is formally approved. Companies reporting with SII or TicketBAI remain exempt from VERI\*FACTU. > > Spain’s upcoming e-reporting and fiscalization regulation requiring businesses to use approved software that records and digitally signs each invoice to ensure transparency and prevent fraud. The format requires a QR code which links to the online verification service of the AEAT. > > | | | > | - | - | > | **Scope** | B2C, B2B, B2G | > | **Format** | VERI\*FACTU (XML) | > | **Compliance** | Fiscalization and e-reporting (not e-invoicing) | > | **Infrastructure** | Hybrid: public and private platforms | > | **Model** | Real Time Invoice Reporting and fiscalization | > | **Effective date** | Mandatory for businesses issuing B2C, B2B, B2G invoices from **October 2028** (postponed from Jan 1, 2027; AEAT announcement of 5 October 2026, pending formal approval) | > | **Agency** | [AEAT](https://sede.agenciatributaria.gob.es) | > | **Invopop Support** | [VERI\*FACTU Spain App](/apps/verifactu-spain) | > > > [card] [VERI\*FACTU Spain](/apps/verifactu-spain) > > > > Connect the app to get you covered → > [accordion] Crea y Crece (B2B) > > Ley 18/2022 ("Crea y Crece") mandates structured electronic invoicing for all B2B transactions in Spain. The technical framework is set out in **Real Decreto 238/2026** (in force since 20 April 2026). The **Orden HAC/1028/2026** regulating the Solución Pública entered into force on 6 October 2026, which fixes the calendar: businesses and professionals whose VAT turnover exceeded €8M in the previous calendar year must issue and receive e-invoices from **6 October 2027**, and all others from **6 October 2028**. Invoice and payment state reporting follows the same dates, except for self-employed individuals and income-attribution entities, who have until **6 October 2029**. Private exchange platforms must meet their specific obligations from 6 October 2027. During their first 12 months, large companies must attach a legible PDF to each e-invoice. > > Invoices must follow the EN 16931 semantic model, carry a unique identifier, and be signed with an advanced electronic signature. They are exchanged either through the AEAT's new free **Solución Pública de Facturación Electrónica** or through interoperable private platforms — which must additionally send a UBL "copia fiel" of each invoice to the Solución Pública at the moment of issuance. Recipients must report acceptance/rejection and effective payment within 4 calendar days (excluding Saturdays, Sundays, and national holidays). > > Crea y Crece is distinct from VERI\*FACTU: VERI\*FACTU regulates invoicing software and tax-agency reporting; Crea y Crece regulates how B2B invoices are exchanged between businesses. Since the AEAT announcement of 5 October 2026, both calendars are being aligned: VERI\*FACTU obligations are postponed to October 2028 to coincide with the Crea y Crece deadline for businesses with turnover of €8M or less, and a later amendment will converge their scope and technical requirements. > > | | | > | - | - | > | **Scope** | B2B | > | **Format** | EN 16931–compliant: Facturae, UBL (incl. Peppol BIS), CII, EDIFACT | > | **Compliance** | E-invoicing and invoice-state reporting | > | **Infrastructure** | AEAT Solución Pública + interconnected private platforms | > | **Model** | Decentralised exchange with mandatory UBL copy to AEAT | > | **Effective date** | **6 Oct 2027** for businesses with turnover > €8M; **6 Oct 2028** for all others; state reporting for individuals from 6 Oct 2029 | > | **Agency** | [AEAT](https://sede.agenciatributaria.gob.es) (technical), Ministerio de Economía / Ministerio de Hacienda (regulatory) | > | **Invopop support** | TBD | > [accordion] Facturae (B2G) > > Facturae is the Spanish XML-based format for electronic invoices used in B2G transactions. It requires a digital signature and aligns with EN 16931 (EU) for electronic invoicing. Invoices in Facturae format are submitted at [FACe](https://face.gob.es/es), a centralized government platform. Note that the supplier must issue a VERI\*FACTU or TicketBAI invoice **in addition** to the Facturae invoice. > > | | | > | - | - | > | **Scope** | B2G | > | **Format** | Facturae | > | **Compliance** | e-invoicing and e-reporting | > | **Infrastructure** | [FACe](https://face.gob.es/es) | > | **Model** | Centralized | > | **Effective date** | Mandatory for companies issuing invoices to public authorities since 2015 | > | **Agency** | [Agencia Estatal de Administración Tributaria](https://sede.agenciatributaria.gob.es) (AEAT) | > | **Invopop support** | [Facturae Spain App](/apps/facturae-spain) (invoicing, reporting done through FACe) | > > > [card] [Facturae Spain](/apps/facturae-spain) > > > > Connect the app to get you covered → > [!NOTE] > > Companies reporting to TicketBAI or SII are exempt from issuing VERI\*FACTU ### Álava, Gipuzkoa and Bizkaia Spain’s Haciendas Forales are the provincial tax authorities of the Basque Country (Álava, Bizkaia, and Gipuzkoa), which possess unique fiscal autonomy under the Spanish Constitution. These provinces manage variations of the TicketBAI standard which Invopop simplifies. Read our comprehensive article [What is the TicketBAI regulation in Euskadi?](https://www.invopop.com/blog/what-is-ticketbai) for more information. > [accordion] TicketBAI (B2C, B2B, B2G) > > TicketBAI is the Basque Country’s electronic invoicing and anti-fraud system. It requires businesses to use certified software that generates a digitally signed XML file for every invoice and automatically sends it to the corresponding provincial tax authority (Álava, Bizkaia, or Gipuzkoa). Each invoice must also include a QR code and TBAI identifier, allowing verification by both customers and tax inspectors. Full compliance now mandatory across the Basque Country. > > | | | > | - | - | > | **Scope** | B2C, B2B, B2G | > | **Format** | TicketBAI (XML) | > | **Infrastructure** | Hybrid system: Public solution and private platforms | > | **Compliance** | e-invoicing and e-reporting | > | **Model** | Real Time Invoice Reporting | > | **Region** | Álava, Bizkaia and Gipuzkoa | > | **Effective date** | Since January 1st, 2022 | > | **Agencies** | [Agencia Foral de Gipuzkoa](https://www.gipuzkoa.eus/es/web/ogasuna/ticketbai) [Hacienda Foral de Álava](https://web.araba.eus/es/hacienda/ticketbai) [Hacienda Foral de Bizkaia](https://www.batuz.eus/es/inicio) | > | **Invopop support** | [Spain App](/apps/spain) (TicketBAI) | > > > [card] [TicketBAI (Spain app)](/apps/spain) > > > > Connect the app to get you covered → ### Navarra Upcoming format/reporting announced in September 2025 by the tax authorities of Navarra. The government has not published information about this implementation, but has stated that it will be based on TicketBAI and VERI\*FACTU. Details and Invopop support will be announced once the technical specification is made available. > [accordion] NaTicket (B2C, B2B, B2G) > > Upcoming format/reporting announced in September 2025 by the tax authorities of Navarra. The government has not published information about this implementation, but has stated that it will be based on TicketBAI and VERI\*FACTU. Details and Invopop support will be announced once the technical specification is made available. ## E-reporting Involves sending invoice data to tax authorities in real-time or near real-time, typically as part of government initiatives to improve tax compliance and reduce VAT fraud. > [accordion] SII (large companies) > > SII allows AEAT to receive VAT-related information almost in real time. It aims to reduce errors in VAT declarations, improve fraud detection, and streamline administrative reporting. Obligatory for large companies with an annual turnover > €6 million and optional for smaller companies that want faster reconciliation with the Tax Agency. > > | | | > | - | - | > | **Scope** | B2C, B2B, B2G | > | **Format** | SII (XML) | > | **Compliance** | Fiscalization and e-reporting | > | **Effective date** | Mandatory since 2017 | > | **Notes** | Applies to large companies (turnover exceeding €6,010,121.04 in the previous year), VAT groups, and those registered in the REDEME (Monthly VAT Refund Register). | > | **Agency** | [AEAT](https://sede.agenciatributaria.gob.es) | > | **Invopop support** | [Spain App](/apps/spain) | > > > [card] [Spain](/apps/spain) > > > > Connect the app to get SII support → ## Regulation > [accordion] Legally required invoice content > > **Complete (B2B) Invoice** > > * Invoice number and series (where applicable). The numbering of invoices within each series shall be consecutive. > * Series for the following invoices are mandatory: > * Those issued by the customers or by third parties (each needs its own series). > * Correction invoices (Credit/Debit notes). > * In forced collection proceedings, invoices issued by winning bidders who are business owners or professionals . > * Issue date. > * Full name or complete business name of both the party issuing the invoice and the customer. > * Tax ID Number assigned by the Spanish tax authorities or another EU Member State. The customer's Tax ID Number must also be included when: > * It's a tax-exempt sale of goods between EU countries. > * The customer is responsible for paying the tax on the transaction. > * The transaction takes place within the Spanish tax territory (TAI), and the business owner or professional issuing the invoice is considered to be based in that territory. > * Address of both the party issuing the invoice and the customer. > * Description of the goods or services, including all information needed to calculate the taxable amount, such as the unit price before tax, and any discounts or reductions not already included in that unit price. > * The tax rate or rates applied to the transactions. > * The tax amount being charged, which must be shown separately. > * The date when the transactions took place or when advance payment was received, if different from the invoice date. > * In sales of new vehicles, the first use date and the distance traveled or hours of navigation or flight up to delivery. > * If any of the following apply, it must be mentioned: tax-exempt transaction, customer issues the invoice, reverse charge (customer pays the tax), Travel Agency special scheme, or second-hand goods special scheme > > **Simplified Invoice** > > * Number and, if relevant, series. > * Date of issue. > * Date of the transaction if different from the issue date. > * Tax ID Number (NIF) and full name or business name of the issuer. > * Description of the goods delivered or services provided. > * Tax rate, and optionally the phrase "VAT included" > * Total amount. > * For correction invoices, reference to the invoice being corrected. > * If any of the following apply, it must be mentioned: tax-exempt transaction, customer issues the invoice, reverse charge (customer pays the tax), Travel Agency special scheme, or second-hand goods special scheme. > > The tax authority may require additional information in certain situations, but this can never exceed what's required for a complete invoice. In certain situations it may authorize that simplified invoices that don't include some of the above requirements. These authorizations must be properly published. > [accordion] When you're not required to issue invoices > > You don't have to issue invoices in the following scenarios: > > 1. **Tax-exempt transactions** under [Article 20 of Law 37/1992](https://www.boe.es/buscar/act.php?id=BOE-A-1992-28740), **with some exceptions**: you still need to invoice for healthcare and hospital services, property sales, and goods exempt because you couldn't claim back the VAT you paid. > > 2. **If you're under the [Equivalence Surcharge Regime](https://sede.agenciatributaria.gob.es/Sede/iva/regimenes-tributacion-iva/regimen-especial-recargo-equivalencia/que-consiste-regimen-especial-recargo-equivalencia.html)** (a special VAT system). However, you must invoice for property sales that aren't tax-exempt (unless they're part of enforcing a guarantee). > > 3. **If you're under the [Simplified Tax Regime](https://sede.agenciatributaria.gob.es/Sede/iva/regimenes-tributacion-iva/regimen-simplificado.html)**, unless your tax is calculated based on how much you earn. You still need to invoice when selling fixed assets. > > 4. **Other cases where the Tax Agency gives you permission** - they might waive the invoice requirement for certain industries or specific companies to keep business running smoothly. > > **Important:** Even in these four cases, you must issue an invoice if: > > * Your customer is a business/professional or a private individual who needs it for tax purposes > > * You're selling to another EU country > > * You're exporting goods > > * Your customer is a government body or a legal entity that isn't acting as a business > > 5. **If you're in farming, livestock, or fishing under the special regime for those sectors**. You'll need to issue an "agricultural receipt" for compensation reimbursements if you bought from others in the same regime. You always need to invoice for property sales. > > 6. **Financial and insurance transactions** - no matter who you're dealing with, even other businesses. **Exception:** you do need to invoice for taxable transactions (that aren't exempt) in mainland Spain, the Balearic Islands, or another EU country. > [accordion] Archival period > > **The archival period of invoices dictated by the AEAT is the following:** > > * **4 years:** > This is the minimum general requirement for most invoices for tax purposes. Starting from the date for filing the corresponding tax return, according to General Tax Law 58/2003. > > * **6 years:** > Commercial regulations require you to keep business documentation for 6 years, including invoices, correspondence, and supporting documents, under Article 30 of the Commercial Code. > > * **10 years (or longer):** > Some special cases require longer retention periods: > * **Capital assets/investments:** Must be kept for up to 10 years. > * **Public grants:** Invoices related to EU public funding may need to be kept for up to 10 years, depending on European regulations. > * **Legal disputes or inspections:** You may need to keep invoices longer if there's an ongoing lawsuit or tax inspection, such as in cases of tax fraud. > [accordion] VERI\*FACTU self certification process > > There is no official certification for VERI\*FACTU from the AEAT (the Spanish tax agency). Instead, each developer, company, or provider that implements an invoicing software must provide an electronically signed declaration where they certify that their system meets all the requirements established in the regulations. This document is binding and must be kept available for the Tax Authority. > > The AEAT requires that this declaration be available and always visible within the system itself, and it must include certain control elements such as the installation number, issuer data, software version, and system ID. > > If you are a white label user of Invopop (you issue invoices in the name of third parties), you are required to display a link to this "declaración responsable" in your software. Here is [the template from the AEAT](https://sede.agenciatributaria.gob.es/static_files/Sede/Tema/IVA/Verifactu/EjemplosDeclaracionResponsable\(V0.5.1\).pdf), and our own for your reference: [Declaración responsable VERI\*FACTU - Invopop](https://drive.google.com/file/d/1IR2EuavoEi8E3hlAM4u-XTIFbalxxKzj/view). Some of our customers have asked us if it is necessary to mention Invopop in their *declaración responable*. It is not required, but we appreciate it. > [accordion] VERI\*FACTU representation agreement > > The Spanish Tax Agency (AEAT) requires that companies formally authorize Invopop to issue invoices on their behalf. To comply with this regulation, the supplier’s legal representative must sign an agreement granting Invopop the necessary consent to generate and manage invoices in their name. This signed authorization ensures that all invoicing activities carried out by Invopop are legally valid and recognized by the AEAT. > > For this process, the supplier can sign the agreement PDF with a valid digital certificate, such as one issued by the FNMT, or a handwritten signature with a company stamp (sello de empresa), in which case the user must provide a valid ID such as DNI, NIE or passport. In the case of self-employed individuals (autónomos) a company stamp is not required. > > [View the representation agreeement process](/guides/es-verifactu-supplier#onboard-suppliers-through-the-supplier-registration-wizard). > [accordion] NIF structure in Spain > > **Autónomo (Self-employed individual)** > > An autónomo's NIF is simply their DNI or NIE: > > * **DNI** (Documento Nacional de Identidad) — for Spanish nationals. Format: 8 digits + 1 letter (e.g., `12345678A`) > * **NIE** (Número de Identidad de Extranjero) — for foreign residents. Format: 1 letter + 7 digits + 1 letter (e.g., `X1234567A`) > > Since an autónomo operates as a natural person (not a separate legal entity), their personal ID number is their tax number. There's no distinction between the person and the business. > > **Company (Sociedad / Legal entity)** > > A company has a CIF (Código de Identificación Fiscal), which is now technically also called a NIF but for legal entities. Format: 1 letter + 7 digits + 1 control character (letter or digit) (e.g., `B12345678`) > > The first letter indicates the type of entity: > > * **A** — Sociedad Anónima (S.A.) > * **B** — Sociedad Limitada (S.L.) — the most common > * **C** — Sociedad Colectiva > * **G** — Associations / Foundations > * **N** — Foreign entities > * **P** — Local government bodies > * **Q/S** — Public bodies > [accordion] Main special tax types for Spain > > 1. VAT (IVA: Impuesto sobre el Valor Añadido) > > * Standard: 21% > > * Reduced: 10% > > * Super-reduced: 4% > > * Each of these can include an Equivalence Surcharge for retailers (eqs). > > * Variants exist for special sectors, e.g., agriculture, modules. > > 2. IGIC (Impuesto General Indirecto Canario) > > * Zero: 0% > > * Reduced: 3%. > > * General: 7,00% > > * Incremented: 9,5% and 15,0% > > * Special: 20% > > 2. IPSI (Ceuta & Melilla) > > * General: 4% Melilla, 3% Ceuta > > * Reduced: 0,5% > > * Incremented: 10% > > 3. IRPF Rates (Personal Income Tax) > > * Professional rates: 15% > * Professional starting rate: 7.0% > * Rental or Interest Capital: 19.0% > * Modules Rate: 1% > [accordion] More information > > Our blog posts are comprehensively researched and a great source of information regarding electronic invoicing, reporting and fiscalization. We recommend the following reads: > > * [What is the TicketBAI regulation in Euskadi?](https://www.invopop.com/blog/what-is-ticketbai) > * [Verifactu: Spain’s E-Invoicing System Explained](https://www.invopop.com/blog/verifactu-invoicing-system) > * [Spain publishes draft for B2B e-invoicing system](https://www.invopop.com/blog/spain-draft-royal-decree-b2b-e-invoicing) > * [Spain publishes consultation on B2B e-invoicing](https://www.invopop.com/blog/spain-consultation-b2b-e-invoicing) > * [Electronic invoicing in Spain](https://www.invopop.com/blog/electronic-invoicing-in-spain) ## FAQ Compliance questions Spain > [accordion] What is Ley Crea y Crece? > > Crea y Crece (Ley 18/2022, "Law on the Creation and Growth of Companies") is a Spanish law introducing **mandatory B2B electronic invoicing** for all businesses and professionals established in Spain. > > Its primary policy goal is **combating late payments**. Spain has one of the longest average payment periods in the EU (\~80 days), and the law forces structured, traceable data on every B2B invoice, plus mandatory **invoice status reporting** (acceptance, rejection, payment date) so payment behavior becomes visible and measurable. > > Key parameters as they stand now: > > * **Scope**: domestic B2B transactions where the recipient is a business or professional established in Spain. > * **Architecture**: hybrid — a free public AEAT platform plus interoperable private platforms. > * **Format**: EN 16931-compliant UBL is mandatory for the public solution and for *copias fieles* submitted from private platforms; Facturae, UBL, CII and EDIFACT are accepted between private platforms. > * **Timeline**: Royal Decree 238/2026 was published 31 March 2026 and Orden HAC/1028/2026 entered into force on 6 October 2026, starting the clocks — e-invoicing is mandatory from **6 October 2027** for companies with turnover >€8M and from **6 October 2028** for everyone else. Invoice-state reporting follows the same dates, deferred to **6 October 2029** for sole traders and IRPF income-attribution entities. > > This regulation aims to transform invoicing from "PDF by email" into a structured, reportable, interoperable network. > [accordion] Who can issue invoices in Spain? > > Any entity with a Spanish NIF — companies, autónomos, and foreign entities with Spanish fiscal presence. Foreign-only entities issuing into Spain must operate through their local fiscal representation or a non-resident NIF. > [accordion] What periodic reporting obligations exist in Spain? > > Quarterly or monthly VAT (Modelo 303), annual recap (Modelo 390), recapitulative intra-EU declaration (Modelo 349), and the annual third-party transactions return (Modelo 347). Crea y Crece (from October 2027, phased by company size) adds invoice status reporting (acceptance, rejection, payment date) on top. Facturae > [accordion] When is Facturae mandatory in Spain? > > Mandatory for B2G transactions with Spanish public administrations above €5,000 since 2015 (Ley 25/2013). Voluntary for B2B today; becomes broadly mandatory under Crea y Crece from 6 October 2027 for businesses with turnover above €8M and from 6 October 2028 for all others. > [accordion] Are there special supplier obligations under Facturae? > > For B2G submissions, the supplier needs a valid digital certificate recognized by FACe (Cl\@ve, FNMT, etc.). For Invopop-generated XAdES signatures the certificate is Invopop's own; suppliers using their own signing flow upload theirs. > [accordion] What are the legal obligations for receiving Facturae invoices? > > Spanish public administrations must accept Facturae through FACe or a regional equivalent (e-FACT in Cataluña, FACeB2B for B2B). Private sector recipients have no Facturae-specific obligations beyond the standard 4-year archival. No-VERI\*FACTU > [accordion] What is the No-VERI\*FACTU mode? > > "No-VERI\*FACTU" is the alternative compliance mode under the same Spanish billing-software regulation (Reglamento de Sistemas Informáticos de Facturación). Invoices are *not* sent to AEAT in real time; instead they are registered locally in the certified system and may be inspected on demand. Suitable for businesses that prefer to keep records private unless asked. > [accordion] Are there special supplier obligations under No-VERI\*FACTU? > > Same fiscal residence requirements as VERI\*FACTU. Additionally, the supplier must be able to produce the chained register on AEAT request; Invopop retains it on their behalf for the legally required period. SII > [accordion] Who is required to report through SII? > > SII (*Suministro Inmediato de Información*) is mandatory for taxpayers that file VAT on a monthly basis. In practice this includes companies with annual turnover above €6,010,121.04, members of VAT groups (REGE), and businesses registered in the monthly VAT refund register (REDEME). Other taxpayers can opt in voluntarily. > [accordion] Are there special supplier requirements under SII? > > The supplier must be a Spanish-resident taxpayer subject to SII (turnover > €6M, REGE, or REDEME) or have voluntarily opted in. They must hold a digital certificate for AEAT or appoint Invopop as their representative via signed agreement. > [accordion] What reporting obligations does SII impose? > > Issued and received invoices must be reported within 4 calendar days. Subsequent corrections, cancellations, and intra-EU operations have additional bookkeeping streams (Libro de Bienes de Inversión, Libro de Operaciones Intracomunitarias). TicketBAI > [accordion] Do I need a digital certificate or any registration with TicketBAI? > > No, you don't need to register with TicketBAI, or upload any digital certificates to Invopop. As a certified billing provider, Invopop will sign all invoices with our own digital certificate. > > TicketBAI allows three types of certificates; Invopop uses the *certificado sello de empresa* which allows us to sign e-invoices on behalf of our customers, saving you the burden of registering and uploading certificates yourself. > [accordion] What is the deadline for uploading TicketBAI invoices from the time the sale is made? > > * Bizkaia: by the end of each quarter, except for companies under SII (turnover above 6 million euros), which must report within 4 days. > * Gipuzkoa and Álava: The submission must be done immediately after generating the invoice. > [accordion] What is needed to issue TicketBAI? > > The supplier must have fiscal residence in one of the three foral territories (Bizkaia, Gipuzkoa, Álava) and sign a representation agreement allowing Invopop to issue on their behalf. No supplier-side certificate required. VERI\*FACTU > [accordion] Has VERI\*FACTU been delayed until 2028? > > Yes. On 5 October 2026 the AEAT published an informative note announcing that the pending obligations of Real Decreto 1007/2023 (the VERI\*FACTU regulation) will be postponed to **October 2028**. The goal is to align the VERI\*FACTU calendar with the Crea y Crece e-invoicing mandate for businesses and professionals with annual turnover of €8M or less, both legally and technically, and to take into account future ViDA digital reporting requirements. > > The previously announced dates (1 January 2027 for companies and 1 July 2027 for self-employed individuals) therefore no longer apply once the amending regulation is formally approved. The AEAT has stated that the technical guarantees of RD 1007/2023 (integrity, conservation, accessibility, legibility, traceability and unalterability of records) will be kept substantially equivalent, so systems already compliant with VERI\*FACTU remain valid. > [accordion] Is VERI\*FACTU compliance mandatory in Spain? > > VERI\*FACTU will be mandatory from October 2028 for companies and other taxpayers (mainly self-employed individuals), following the postponement announced by the AEAT on 5 October 2026. Companies reporting with SII (large companies) or TicketBAI are exempt from reporting with VERI\*FACTU. The system is already operational and can be adopted voluntarily today. > [accordion] Do VERI\*FACTU invoices need to be printed? > > VERI\*FACTU invoices don't necessarily need to be printed because they are issued with electronic invoicing systems such as Invopop. Source: [AEAT FAQ](https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu/preguntas-frecuentes/posibilidad-remision-informacion-factura-parte-receptor.html?faqId=9e9e77fe52572910VgnVCM100000dc381e0aRCRD). > [accordion] Can invoices have an issue date in the past in VERI\*FACTU? > > Yes, VERI\*FACTU allows issue dates to be in the past, as long as they are after October 28, 2024. The issue date can't be set with a date in the future. The AEAT is not strict about the validation, but it's best to keep your intentions clear. [GOBL](https://docs.gobl.org) gives you alternative fields such as `op_date` and `value_date` to store details about your invoicing operation. > [accordion] What if a customer exceeds the simplified invoice limit (400€) and is not registered in the taxpayer census? > > Spanish fiscal law requires the customer to be identified with an ID document (preferably official). Set the `es-verifactu-identity-type` extension to `07` ("Not registered in census" / "No censado"), which maps to the `IDOtro` field in VERI\*FACTU. > > Here is an example of a customer identity block in [GOBL](https://docs.gobl.org): > > ```json theme={"system"} > "customer": { > "name": "Consumer", > "identities": [ > { > "label": "NIE", > "country": "ES", > "code": "Z1111111S", > "ext": { > "es-verifactu-identity-type": "07" > } > } > ] > } > ``` > > For the full list of identity type codes, see the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon documentation. > [accordion] Are there special supplier obligations under VERI\*FACTU? > > Suppliers must use a certified billing system (Invopop is one). Each supplier must sign a representation agreement allowing Invopop to issue invoices on their behalf — without a digital certificate from the supplier's side. More available in our [Spain FAQ](/faq/spain) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Spain's regulation → # Invoicing compliance in UAE Source: https://docs.invopop.com/compliance/uae The UAE Electronic Invoicing System: mandatory B2B and B2G e-invoicing in Peppol PINT AE through Accredited Service Providers, with reporting of each invoice to the Federal Tax Authority, phased from January 2027 > [card] [UAE's e-invoicing regulation timeline](/timelines/uae) > > View current and upcoming regulation → > [accordion] 🇦🇪 Invopop resources for the UAE > > | | | > | - | - | > | Compliance | [Invoicing compliance in the UAE](/compliance/uae) [Compliance timeline](/timelines/uae) | > | FAQ | [UAE FAQ](/faq/uae) | > | GOBL | [UAE tax regime (source)](https://github.com/invopop/gobl/tree/main/regimes/ae) | > [!WARNING] > > Invopop support for the UAE Electronic Invoicing System is planned and not available yet. Invopop is not an Accredited Service Provider in the UAE today, and it cannot send or receive PINT AE invoices yet. The information below is for reference. For availability, contact us at [support@invopop.com](mailto:support@invopop.com). ## Executive summary The UAE **Electronic Invoicing System** makes structured e-invoices mandatory for every business that conducts business in the UAE. It applies with or without VAT registration, and to businesses that are not established in the UAE. Ministerial Decisions No. 243 and No. 244 of 2025 set the rules and the phases. The system uses a **five-corner Peppol model**. The Ministry of Finance calls it **DCTCE** (Decentralized Continuous Transaction Control and Exchange). Two things happen for each invoice: 1. **Exchange.** The supplier's service provider sends the invoice to the buyer's service provider over Peppol. 2. **Report.** Both service providers send a **Tax Data Document** to the Federal Tax Authority (FTA), the fifth corner. The FTA does not approve the invoice before delivery. Only an **Accredited Service Provider** (ASP) that the Ministry of Finance approves can exchange and report. Each business appoints one ASP for both sending and receiving. The invoice format is **PINT AE**, the UAE version of the Peppol International (PINT) invoice, in UBL 2.1 XML. The e-invoice is XML only, with no QR code. Mandatory use starts in phases. Businesses with revenue of AED 50 million or more go live on **1 January 2027**. Other businesses go live on **1 July 2027**, and government entities on **1 October 2027**. Consumer sales (B2C) are out of scope. The standard VAT rate is **5%**. ## Invoicing in UAE The supplier sends its invoice data to its ASP. The ASP builds the PINT AE invoice, sends it to the buyer's ASP and reports it to the FTA. The buyer's ASP checks the invoice, gives it to the buyer and also reports it to the FTA. Each ASP gets a confirmation back from the FTA. ```mermaid actions={false} theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#bcdccb','signalColor':'#0f7a45','signalTextColor':'#103830','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#0f7a45','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram autonumber participant S as Supplier participant SA as Supplier's ASP participant BA as Buyer's ASP participant B as Buyer participant FTA as Tax authority (FTA) S->>SA: Invoice data SA->>BA: Send the invoice (PINT AE) SA->>FTA: Report as issued BA-->>SA: Confirmation BA->>B: Deliver the invoice BA->>FTA: Report as received FTA-->>SA: Reporting confirmation FTA-->>BA: Reporting confirmation ``` **1. Invoice created** The supplier sends the invoice data to its ASP in a format they agree on. **2. Send the invoice** The ASP checks the data, builds the PINT AE invoice and sends it to the buyer's ASP over Peppol. **3. Report as issued** At the same time, the supplier's ASP sends a Tax Data Document to the FTA. **4. Confirmation** The buyer's ASP checks the invoice and sends a confirmation to the supplier's ASP. **5. Deliver the invoice** The buyer's ASP gives the invoice to the buyer in a format they agree on. **6. Report as received** The buyer's ASP sends its own Tax Data Document to the FTA. If the invoice failed the check, it reports the failure. **7. Reporting confirmation to the supplier** The FTA confirms the report to the supplier's ASP, which tells the supplier. **8. Reporting confirmation to the buyer** The FTA confirms the report to the buyer's ASP, which tells the buyer. > [!NOTE] > > **Some invoices go only to the FTA.** This applies to a deemed supply, an export to a buyer with no Peppol ID, and a buyer that is not subject to UAE e-invoicing. The supplier's ASP reports the invoice to the FTA and does not send it to a buyer's ASP. The invoice then carries a fixed buyer address, for example `0235:9900000099` for an export. > [accordion] Sending and receiving e-invoices (B2B and B2G) > > ASPs exchange invoices over Peppol. Invoices to government entities use the same network and the same format as invoices to businesses. The obligation also covers invoices from government entities and between them. > > | | | > | - | - | > | **Scope** | B2B, B2G, G2B and G2G | > | **Format** | Peppol PINT AE, UBL 2.1 XML | > | **Compliance** | E-invoicing | > | **Model** | Five-corner Peppol (DCTCE) through Accredited Service Providers | > | **Effective date** | Voluntary from **July 2026**. Mandatory from **January 2027**, **July 2027** or **October 2027**, by phase | > | **Agency** | Ministry of Finance (rules, ASP accreditation) and Federal Tax Authority (registration, reporting) | > | **Invopop support** | Planned | > [accordion] Reporting to the tax authority > > The supplier's ASP and the buyer's ASP each report every invoice to the FTA with a **Tax Data Document**. The report includes key data and a full copy of the invoice. The report travels over Peppol to the FTA's service provider. > > | | | > | - | - | > | **Scope** | Every e-invoice and e-credit note in scope | > | **Channel** | Peppol, from each ASP to the FTA | > | **Timing** | At the same time as the exchange | > | **Effective date** | Same as the e-invoicing phases | > | **Agency** | Federal Tax Authority | > | **Invopop support** | Planned | > [accordion] Consumer sales (B2C) > > Sales to consumers are out of scope until the Minister decides otherwise. A business that makes only consumer sales is also out of scope. The normal VAT rules for tax invoices still apply to these sales. > > | | | > | - | - | > | **Scope** | B2C | > | **Compliance** | Not required | > | **Invopop support** | Not applicable | ## E-reporting There is no separate periodic report for e-invoices. The Tax Data Document that each ASP sends for each invoice is the reporting. Buyers and suppliers get a confirmation from their ASP when the report reaches the FTA. ## Regulation > [accordion] Who must comply > > Every person that conducts business in the UAE must issue and receive e-invoices for every business transaction, unless an exclusion applies. VAT registration does not matter. A business that is not established in the UAE and must issue UAE tax invoices issues them as e-invoices. > > The main exclusions are: > > * Sovereign activities of government entities that do not compete with the private sector. > * International passenger flights with an electronic ticket, and airline services linked to them. > * International air cargo with an airway bill, for 24 months only. > * Financial services that are exempt from VAT, or zero-rated as exports of exempt services. > * Consumer sales (B2C). > > Transactions between members of the same VAT group get a 24-month grace period from 1 January 2027. > [accordion] Invoice format and content > > The e-invoice is an XML file in **PINT AE** format. It has no QR code and no barcode. A PDF copy of the invoice cannot go as an attachment. > > * **Specification identifier**: `urn:peppol:pint:billing-1@ae-1`. Self-billed invoices use `urn:peppol:pint:selfbilling-1@ae-1`. > * **Document types**: `380` tax invoice and `381` tax credit note. `480` commercial invoice and `81` credit note, for sales that need no tax invoice. `389` and `261` for self-billing. > * **Transaction type**: an 8-digit code of `0` and `1` flags. The flags mark Free Zone, deemed supply, margin scheme, summary invoice, continuous supply, disclosed agent billing, e-commerce and export. > * **AED amounts**: each line of a tax invoice shows two line values in AED: the VAT amount of the line and the amount payable for the line. This also applies to an invoice in another currency. > * **Legal registration**: the supplier gives its registration number and its type: `TL` trade license, `EID` Emirates ID, `PAS` passport or `CD` Cabinet Decision. > * **Corrections**: only a credit note can correct an invoice. Negative invoices are not allowed. Each credit note has a reason code. > > If the buyer is not live on the system yet, the supplier also issues a regular tax invoice, for example a PDF. > [accordion] Identifiers > > The Peppol ID of a UAE business is `0235:` followed by its 10-digit **Tax Identification Number** (TIN). The TIN is the first 10 digits of the 15-digit Tax Registration Number (TRN). > > A business that is registered with the FTA for any tax already has a TIN. A business with no tax registration must register with the FTA to get one. Each member of a tax group uses its own TIN, not the TIN of the group representative. > [accordion] VAT rates > > | Rate | Percentage | Application | > | - | - | - | > | Standard | **5%** | Most goods and services | > | Zero | **0%** | Qualifying exports and some healthcare, education and real estate supplies | > | Exempt | Not applicable | Some financial services, some real estate services and local passenger transport | > > Some domestic sales between VAT-registered businesses use the reverse charge: electronic devices, precious metals and stones, oil, gas, hydrocarbons and metal scrap. The invoice then shows no VAT and states the reason. > [accordion] Service providers and certificates > > Only an **Accredited Service Provider** (ASP) can exchange and report e-invoices. The Ministry of Finance approves ASPs and publishes the list. An ASP must be a certified Peppol service provider and have a UAE license, UAE tax registration, UAE insurance and security certifications. > > A business onboards in the FTA's **EmaraTax** portal. It selects its ASP there, and the ASP verifies the business with the FTA and creates its Peppol ID. The e-invoice has no digital signature, and the business uploads no certificate. The ASP holds the Peppol certificate. > [accordion] Deadlines and system failures > > The supplier issues and sends the e-invoice within 14 days. The count starts on the date of the transaction or of the payment, whichever comes first. VAT-registered suppliers also follow the VAT invoice deadlines. > > If the system fails, the supplier and the buyer each tell the FTA within 2 business days. > [accordion] Archiving > > Keep e-invoices and their data for 5 years after the tax period. Keep real estate records for 7 years. Add 4 years during a dispute or a tax audit. Storage can be outside the UAE if the FTA can get the records when it asks. An ASP can store them for the business, but the business stays responsible. > [accordion] Penalties > > Cabinet Decision No. 106 of 2025 sets these penalties: > > | Violation | Penalty | > | - | - | > | No system in place or no ASP by the deadline | AED 5,000 for each month or part of a month | > | E-invoice or e-credit note not issued on time | AED 100 each, up to AED 5,000 each month | > | System failure not reported to the FTA on time | AED 1,000 for each day | > | Changes in FTA data not reported to the ASP on time | AED 1,000 for each day | > > These penalties do not apply to businesses that use the system voluntarily before their phase date. > [accordion] More information > > * [Ministry of Finance, eInvoicing](https://mof.gov.ae/en/about-us/initiatives/einvoicing/): laws, guidelines and mandatory fields > * [UAE Electronic Invoicing Guidelines v1.1](https://mof.gov.ae/wp-content/uploads/2026/06/UAE-Electronic-Invoicing-Guidelines_V-1.1-01June2026.pdf): the main guide from the Ministry of Finance > * [List of Accredited Service Providers](https://mof.gov.ae/en/about-us/initiatives/einvoicing/pre-approved-einvoicing-service-providers/): approved ASPs and their contacts > * [Peppol PINT AE specifications](https://docs.peppol.eu/poac/ae/): invoice, self-billing and Tax Data Document formats > * [Federal Tax Authority](https://tax.gov.ae/en/): registration and EmaraTax *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about UAE's regulation → # API keys Source: https://docs.invopop.com/console/api-keys Create workspace-scoped API keys in Admin and choose exactly which services each key can read or administer. API keys authenticate requests to the Invopop API. Every key belongs to a single workspace and carries its own set of permissions, so an integration only gets access to the services it actually needs. Keys are managed in [Admin](https://access.invopop.com). The Console shows the keys of the current workspace under **Configuration → API keys**, and the Manage API keys button on that page takes you to the **API keys** section of Admin, where keys are created, reviewed and revoked. ## Create an API key 1. Open [Admin](https://access.invopop.com) and select **API keys** in the sidebar, or click Manage API keys from the Console. 2. Click New API key. 3. Choose the **workspace** the key will act on. A key never has access to more than one workspace, so sandbox and live environments always use different keys. 4. Give the key a **name** for future reference and, optionally, a **description** of its use case. 5. Tick the permissions the key needs for each service (see [Permissions](#permissions) below). 6. Click Create API key. ![New API key form in Admin showing the workspace, name, description and per-service Read and Admin checkboxes](https://mintcdn.com/invopop/380gS3yI1XhUygNx/assets/guides/sandbox-to-live-api-key.png?fit=max\&auto=format\&n=380gS3yI1XhUygNx\&q=85\&s=b365c90294903f4f30ba661b0adc5078) The token is displayed once, immediately after creation. For security reasons Invopop does not store it, so copy it to a safe place now. If it is lost, revoke the key and create a new one. > [!TIP] > > Invopop uses JSON Web Tokens. If you're interested in seeing the contents, head over to [JWT.io](https://jwt.io) and paste your token to see what's > inside. ## Permissions Permissions are granted per service and per resource. Each resource has two checkboxes: * **Read** allows the key to list and fetch the resource. * **Admin** allows the key to create, update and delete the resource as well as read it. | Service | Resources | What it covers | | - | - | - | | All services | Everything | Blanket access to everything in the workspace, present and future, including services added later. | | Access | Workspace, Enrollments | The workspace's own record and its enrollments in apps. | | Transform | Workflows, Jobs | Workflows and the jobs that run documents through them. | | Silo | Entries | The documents stored in the workspace. | Give each key only what it needs. A key that only submits invoices needs **Admin** on Silo entries and Transform jobs, and nothing else. A reporting or monitoring integration usually needs **Read** only. Use **All services** only for keys that genuinely need to do everything, such as a full back-office integration. The Admin list groups every key by workspace, with separate sections for live and sandbox workspaces, and shows the permission level of each key: **admin**, **read**, or **No permissions** for a key with nothing ticked. Review this list periodically and revoke keys that are no longer in use. ## Use the token Tokens must be included in the `Authorization` HTTP header in all requests as a type `Bearer`. Test everything is working correctly using the [ping](/api-ref/utils/ping) endpoint and curl: ```bash theme={"system"} $ curl -H "Authorization: Bearer [token]" https://api.invopop.com/utils/v1/ping {"ping":"pong"} ``` A successful ping confirms the token is valid. If a request to another endpoint is rejected with a permission error, check the key's permissions in Admin. ## Related resources | | | | - | - | | API Reference | [Authentication](/api-ref/authentication) [Ping](/api-ref/utils/ping) | | Related Guides | [Authentication Guide](/guides/authentication) | # Apps Source: https://docs.invopop.com/console/apps Add country support and features to your workflows ![Apps list](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/apps.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=30023e077a00189b540e7db8f9a698d9) Apps extend your workspace functionality by adding country-specific compliance features, document formats, notification services, storage integrations, and more. Each app provides specific capabilities that you can use in your workflows to process documents according to local regulations or integrate with external services. ## Getting started In a freshly started workspace, no apps are enabled by default. You must enable apps before you can use their features in your workflows. The apps list is divided into two sections: * **Enabled apps**: Apps that are currently active in your workspace * **Discover apps**: Available apps that you can enable ## Enabling an app To enable an app, click on the **Enable** button. Once enabled, the app appears in the enabled apps section and becomes available for configuration. ## Configuring apps After enabling an app, configure it with the necessary settings, credentials, or parameters required for it to function. Each app's configuration page provides specific instructions for the required settings. > [!TIP] > > Enable only the apps you need for your workflows. You can enable additional apps at any time as your requirements change. ## Globally useful apps * [PDF Generator](/apps/pdf-generator) generate legally compliant PDFs from your GOBL sources. * [Email](/apps/email) send emails from your workflows, with or without attachments. * [Slack](/apps/slack) Send notifications from your workflow via Slack. [View more in our apps section](/apps/) ## API Reference * [PDF Generator - Preview](/api-ref/apps/pdf/preview) * [Peppol - Ownership Upload](/api-ref/apps/peppol/ownership-upload) * [VERI\*FACTU - Agreement Fetch](/api-ref/apps/verifactu/agreement-fetch) * [VERI\*FACTU - Agreement Upload](/api-ref/apps/verifactu/agreement-upload) * [VERI\*FACTU - Identity Upload](/api-ref/apps/verifactu/identity-upload) * [VERI\*FACTU - Confirm](/api-ref/apps/verifactu/confirm) # Document contents Source: https://docs.invopop.com/console/doc-content Files, Activity, Meta and GOBL Envelope ## Introduction Every document stored in the Invopop Console is represented internally by a signed GOBL Envelope plus companion data (files, activity logs, relationships, metadata, and signatures). The Document Content view lets you inspect the full lifecycle and structure of a document so you can: * Verify integrity (signatures, hashes, states) * Understand changes over time (activity timeline) * Access generated artifacts (PDF, XML, JSON, regulatory payloads) * Explore related documents (credit notes, corrections, substitutions) * See enriched metadata (regime addons, workflow states, custom keys) Use this page whenever you need to audit a document, debug a workflow result, or prepare regulatory / customer inquiries. For the business document inside the envelope — the schemas, their type values and the properties that reference other documents — see [Document schemas](/console/doc-schemas). ## Envelope Every stored document is a GOBL [envelope](https://docs.gobl.org/draft-0/envelope): a wrapper that adds metadata and digital signatures around the business document. It has four top-level properties. | Property | Contents | | - | - | | `$schema` | The schema ID of the envelope itself. | | `head` | Envelope metadata — see below. | | `doc` | The business document, carrying its own `$schema`. See [Document schemas](/console/doc-schemas). | | `sigs` | JSON Web Signatures over the header, proving integrity and authenticity. | ### Header The header holds envelope-level metadata, not business data. Document properties such as `type`, `series` and `code` live inside `doc`. | Header property | Contents | | - | - | | `uuid` | Permanent identifier for the envelope. Other documents reference it by this value. | | `dig` | Digest of the canonical document, the value the signatures attest to. | | `stamps` | Identifiers returned by an authority or network after submission, such as a VERI\*FACTU hash or a SAT UUID. | | `links` | URLs to related resources, such as an alternative rendering of the document. | | `tags`, `meta`, `notes` | Free-form labels, key-value data and comments for your own use. | ## Files The Files tab lists generated or attached artifacts: Common File Types: * PDF: Human-readable rendition (may include mandatory QR, stamp, legends). * XML / Structured: Regulatory submission payloads (Facturae, FatturaPA, KSeF FA(3), CFDI, UBL, CII). * JSON: Original or transformed GOBL snapshot. * Auxiliary: Attachments (agreement, identity docs, shipping notes, images). * Signature logs or hash chains. Metadata shown often includes size, checksum (SHA256), creation timestamps, and MIME type. Use checksums to verify external copies match stored originals. Workflow Interactions: * Generation steps (e.g. “Generate PDF”, “Generate VERI\*FACTU XML”) append files. * Cancellation / correction workflows may add new XML replacing or referencing prior versions. * Archival workflows create summarized CSV/SAF-T exports and attach them. Retention: * Files are immutable once attached; regeneration creates a new file or updates version counters (depending on workflow design). * Never delete compliance artifacts—retain for audit lifetimes (often 5–10 years). ## Activity A chronological log of significant actions affecting the document: Common Events: * Creation (entry uploaded) * Workflow job started / completed / errored * State transitions (Draft → Sent → Paid / Void / Error) * Signature applied or verified * Attachment added * External submission (e.g. SDI, AEAT, PAC, KSeF) * Cancellation or correction accepted * Reconciliation (payment posted) Use Activity to debug failed workflows: * Inspect failed step name and error code. * Identify if a retry subsequently succeeded. * Confirm ordering for chained regimes (e.g. hash chain continuity, sequence increments). Audit Integrity: * Each event is timestamped (UTC) and references the job/workflow ID. * Non-destructive: Past events remain even after corrections. ## Related The Related tab lists the documents Invopop has linked to the current envelope, resolved from the UUID references the documents carry. Which property carries each reference depends on the schema — see [document references](/console/doc-references). | Typical relation | What you will see | | - | - | | Credit or debit note → invoice | The correcting document alongside the original, which stays valid. | | Corrective invoice → invoice | The replacement alongside the document it superseded. | | Payment → invoices | Every invoice the payment settles, including CFDI payment complements. | | Status → invoice | Each lifecycle event recorded against the invoice. | | Party → its documents | Every invoice issued for or by that supplier or customer. | Use this tab to confirm that both halves of a correction or refund are consistent, and to gather a full chain — original, adjustments and replacements — when exporting for an audit. > [!WARNING] > > Related lookups run in one direction. A supplier's Related tab lists its invoices, but an invoice does not show a link back to the supplier. A referenced party must also be signed before its documents appear. See the [related documents guide](/guides/related-docs). ## Meta Structured metadata and key-value pairs attached to the envelope that provide enhanced context: Examples: * Regime Addons: `es-verifactu-v1`, `pt-saft-v4`. * Submission Protocols: `submission.protocol`, `ksef.hash`, `cfdi.uuid`. * Signature Fingerprints: `signature.sha256`, `chain.previous_hash`. * Workflow Tracking: `workflow.id`, `job.id`, `attempt`. * Payment Resolution: `payment.status`, `payment.last_checked`. * Custom Business Fields: department code, cost center, channel. Usage: * Workflows read/write meta fields to govern conditional logic (e.g. skip generation if `pdf.generated == true`). * API clients can filter entries by meta values for reporting. Guidelines: * Keep keys namespaced to avoid collisions (`verifactu.*`, `ksef.*`, `cfdi.*`, `custom.*`). * Avoid overwriting critical regulatory fields—append new versions or maintain snapshots. ## Signatures JSON Web Signatures of the header. Signature blocks attest to document integrity and authenticity. Depending on regime and workflow: Contents: * Signer identity (certificate thumbprint, key ID). * Timestamp at signing. * Hash or digest algorithm (e.g. SHA256). * Envelope canonicalization details. * Previous hash (for chaining sequences or regulatory chain requirements). * Optional signature version or compliance profile. Verification: * Console may display a validity indicator (✔ Valid / ⚠ Warning / ✖ Invalid). * Invalid signatures often result from post-sign modification of core fields or mismatched hashing algorithm settings. Chain Integrity: * For regimes requiring chained documents (Portugal hash chain, VERI\*FACTU request chain, Brazilian NF-e sequences), each signature references the preceding hash to prevent tampering. * Cancellations and corrections may generate new signature entries, preserving prior ones. Best Practices: * Sign after finalizing monetary and tax details. * Regenerate PDF only after signature (so signature metadata can appear in the rendered document footer/header if required). * For multi-sign flows (organization + intermediary) ensure ordering is consistent; verify both before submission. *** ## Quick troubleshooting guide | Symptom | Likely Cause | Resolution | | - | - | - | | Totals mismatch | Line rounding vs tax calculation inconsistency | Recompute sums; ensure currency precision matches regime defaults. | | Missing PDF | Workflow skipped Render step | Trigger a regeneration workflow; check if a condition prevented generation. | | Signature invalid | Envelope mutated post-sign | Re-sign with updated envelope; avoid editing signed fields directly. | | Missing related credit note | Credit workflow failed | Inspect Activity for failed job; re-run correction workflow. | | Protocol absent | Submission workflow incomplete | Confirm external API connectivity; retry transmission step. | ## Recommended review flow 1. Open the Envelope: confirm the document's `type`, regime, series and code, and the entry's state. 2. Inspect Signatures: validate all present and valid. 3. Review Meta: ensure protocol/UUID and tax chain metadata. 4. Check Files: required artifacts (PDF + submission XML) present. 5. Scan Activity: look for errors or retries. 6. Inspect Related: confirm corrections or cancellations linked. 7. Export or archive if the document reached terminal state (Sent, Paid, Void, Corrected, Archived). ## Glossary * Envelope: Structured wrapper for the business document and signatures. * Addon: Extension enabling regime-specific transformations. * Protocol / UUID / Hash: External authority identifier proving successful submission. * Preceding: Reference block pointing to an original or prior document. * Chain: Sequential cryptographic linkage between documents for integrity. *** If you need deeper technical detail, consult API references for Silo Entries and Workflow Jobs; this page focuses on Console interpretation and manual audit steps. ## Related resources | | | | - | - | | API Reference | [Fetch an entry](/api-ref/silo/entries/fetch-an-entry) [Fetch a file](/api-ref/silo/entries/files-fetch) [Find related entries](/api-ref/silo/entries/find-related) [Fetch a job](/api-ref/transform/jobs/fetch-a-job) | # Correct an invoice Source: https://docs.invopop.com/console/doc-correct Correct issued invoices from the Console > [!TIP] > > We have [a step by step guide](/guides/correct-invoice) to help you correct invoices from the API and the Console When you make a mistake on an invoice, you need to fix it properly to stay legal and keep good records. The most common method is a **credit note**, which cancels, refunds, or adjusts an invoice. It links back to the original and changes the amount without erasing it. **Debit notes** request additional money you forgot to charge, but most businesses rarely use these. Instead, they just send a new invoice for the extra charges. **Corrective invoices** are only available in certain countries like Spain and Poland. They create a new invoice to replace the old one, and you'd use them where adjusting the charged amount wouldn't work, like getting the customer's name or tax ID wrong. **When do you need corrections?** You might need to fix an invoice if you charged the wrong amount, got customer details wrong, the tax authorities partially accepted the document (possible in regimes like Spain), goods were returned or damaged, or you forgot required information. Whatever method you use to fix the mistake, it must connect back to the original invoice so you have a complete record of what happened. ### How to correct an invoice 1. In the [Console](https://console.invopop.com), click on **Invoices** in the left sidebar. 2. Select the invoice you want to correct. > [!WARNING] > > The invoice must be issued before a correction can be made. 3. Click on the **Correct** button in the top-right corner. This will open the **Correction** dialog. ![Correction dialog](https://mintcdn.com/invopop/jZtQhVN-rHjaNLJC/assets/guides/correct-invoice.png?fit=max\&auto=format\&n=jZtQhVN-rHjaNLJC\&q=85\&s=315e2520e247a589b46e6c9f1b55e662) The available fields will depend on the `$regime` of your document, but will always include a `Series` and a `Type`: * **Series:** usually corrective documents will have a different series from your standard documents or invoices. A common pattern is replacing the standard series with `CN` (standing for `credit-note`). * **Type:** the options available depend on the regime, but will often include `debit-note` and `credit-note`. Unless you have a specific accounting need, it is often a better practice to avoid issuing a debit note by issuing a full refund through a credit note and then issuing a new invoice. Finally click on the Correct button and you will have a corrective invoice that you should send to the tax authority through a workflow, as you would do with a standard invoice. ## Correction types by regime The **Correct** dialog only offers the types the document's regime and addons permit. | Regime | Available types | Notes | | - | - | - | | Spain | `credit-note`, `corrective`, `debit-note` | VERI\*FACTU, TicketBAI and SII map corrections onto the R1–R5 rectification codes. | | France | `credit-note`, `corrective` | Both methods are recognised for invoice corrections. | | Italy | `credit-note`, `debit-note` | SDI reports these as document types TD04 and TD05. | | Portugal | `credit-note`, `debit-note` | SAF-T requires the series name to carry a document type prefix. | | Poland | `credit-note` | KSeF's FA VAT addon accepts credit notes only. | | Mexico | `credit-note` | Requires the original invoice's SAT UUID stamp. | | Colombia | `credit-note`, `debit-note` | Requires the original invoice's CUFE code. | | Greece, Belgium, Norway, Switzerland, UAE | `credit-note` | | | United States, India | `credit-note`, `debit-note` | | Regimes not listed here place no constraint of their own, so the types on offer come from whichever addon is applied to the document. ## FAQ > [accordion] Should I use a credit note or a corrective invoice? > > Use a credit note when the amount charged was wrong, goods were returned, or you need to refund part or all of an invoice. The original document stays valid and the credit note extends it. This is the correction method regimes accept most widely. > > Use a corrective invoice when the error is in a field that cannot be fixed by adjusting a value — the customer's name, their tax ID, or the issue date — and the original must be replaced outright. Corrective invoices are only available in some regimes, so check the [correction types table](#correction-types-by-regime) first. ## Related resources | | | | - | - | | Related Guides | [Correct an Invoice](/guides/correct-invoice) | | API Reference | [Create an entry (POST)](/api-ref/silo/entries/create-an-entry-post) [Create an entry (PUT)](/api-ref/silo/entries/create-an-entry-put) | # Create documents Source: https://docs.invopop.com/console/doc-create From the console and the API ### Creating a new document When you enter a document section (Invoices, Orders, Deliveries, Payments, Parties and Items), on the top right corner you will see a `New [document type]` button. Clicking on it displays the document editor. This view has two modes: **Code view** and **Form view**, switchable using the toggle in the upper-right corner. ### Code view ![Invoice editor](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/invoice-create-dev.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=02f6344395f94e965dafac7bfa291ce8) In code view, the editor presents the document as a JSON object. This mode is intended for users who prefer to work directly with the underlying structure of the invoice. * **JSON Editor:** When creating a new document, the editor loads a minimal boilerplate invoice object. Any missing or incomplete fields are highlighted with red squiggles. These markers correspond to validation issues—either required fields that have not been filled in or values that do not meet schema rules. * **Build Button:** The **Build** action validates the JSON against the defined GOBL schema. If the document is valid, the system enriches it with any required calculated or default data. You will only be able to save the invoice if the document is built and valid. * **Error & Warning Drawer:** A collapsible drawer appears at the bottom of the screen. It lists any errors or warnings identified in the current document, including missing properties, invalid values, or schema mismatches. Each entry links directly to the relevant line in the JSON. The drawer can be hidden when not needed. *** ### Form view ![Invoice editor](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/invoice-create-form.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=62da11360ab720c9a9c4a7ca60200343) Switching to form view displays the same data into a structured, user-friendly layout with input fields. Form view ensures that the document can be created without interacting with code, code view gives full control to those who prefer manual editing. ## Related resources | | | | - | - | | API Reference | [Create an entry (POST)](/api-ref/silo/entries/create-an-entry-post) [Create an entry (PUT)](/api-ref/silo/entries/create-an-entry-put) | | Related Guides | [PDF Invoice Guide](/guides/pdf-invoice) | # Edit documents Source: https://docs.invopop.com/console/doc-edit Edit documents through the console ## When to edit documents The most common reason to edit a document is to fix errors or mistakes in the data before submitting it to a tax authority. You might discover these issues during review, or they may come to light after a tax authority rejects the document. > [!WARNING] > > Once a document has been issued or sent to a tax authority, you should not edit it directly. Instead, use the [correction workflow](/console/doc-correct) to issue a credit note, debit note, or corrective invoice. ## Understanding document validation GOBL validates documents against a strict schema, which means you will rarely encounter validation errors during editing. When validation issues do occur, they typically indicate: * Missing required fields * Invalid data formats or values * Schema mismatches The document editor highlights these issues with visual indicators, making it easy to identify and fix problems before submission. ## Editing rejected documents Most editing scenarios occur when a tax authority rejects a document. Common rejection reasons include: * Incorrect tax identification numbers * Dates outside the allowed range * Missing or incorrect mandatory fields * Calculation errors * Formatting issues specific to the tax regime ## Removing signatures and stamps To edit a signed or stamped document, you need to remove its signatures first. The console provides a straightforward way to do this: 1. Open the document you want to edit 2. Click the **Edit** button in the top-right corner 3. If the document has signatures or stamps, you'll see an option to remove them ![Remove signatures dialog](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/doc-edit-remove-sig.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=390bf3b4270606e50b40b2b0f08409ae) > [!NOTE] > > Removing signatures does not delete the original signed version. The system preserves the complete document history, including all signed and stamped versions. ## How editing works When you remove signatures to edit a document, the system creates a new unsigned version behind the scenes. This process: * Preserves the original signed or stamped document in the document's history * Creates a new editable version that you can modify * Maintains a complete audit trail of all document versions You can then make the necessary corrections using the same editor interface used for creating documents. The editor supports both **Code view** and **Form view**, just like when creating new documents. For more details about the editor interface, see [Creating documents](/console/doc-create). ## After editing Once you've made your corrections: 1. **Review your changes**: Use the editor's validation features to ensure the document is correct 2. **Build the document**: Click **Build** to validate the document against the GOBL schema and enrich it with calculated data 3. **Save the document**: Save your changes to store the updated version 4. **Resubmit**: Send the corrected document through your desired workflow to resubmit it to the tax authority The system tracks all versions of the document, so you can always review the history and see what changed between versions. ## Related resources | | | | - | - | | API Reference | [Update an entry](/api-ref/silo/entries/update-an-entry) [Fetch an entry](/api-ref/silo/entries/fetch-an-entry) | # Document references Source: https://docs.invopop.com/console/doc-references How documents point at each other by envelope UUID, and which property carries each reference. Documents point at each other by envelope UUID. Provide your own UUIDs if you want to use internal identifiers, or leave the field blank and Invopop will generate one. Each schema carries those references in its own properties. | Reference | Property | | - | - | | Credit or debit note → invoice | `preceding` reference on the correcting document. The original stays valid. | | Corrective invoice → invoice | `preceding` reference. The corrective document replaces the original. | | Payment → invoices | A `document` reference on each `lines` entry, naming the document being settled. | | Status → document | A `doc` reference on each `lines` entry, naming the document the event concerns. | | Invoice → order or despatch advice | `ordering.purchases`, `ordering.sales`, `ordering.despatch` and `ordering.receiving` references to the earlier documents. | | Document → party or item | UUID reference on the embedded `supplier`, `customer` or line `item`. | ## Regimes that require more Some regimes require more than a reference to the original document. | Regime | Requirement | | - | - | | Colombia | Credit notes must carry the original invoice's CUFE code. | | Spain | VERI\*FACTU credit notes must reproduce a breakdown of the original invoice's taxes. | | Mexico | Corrections must carry the original invoice's SAT UUID stamp. | | Greece | Corrections must carry the original invoice's IAPR mark. | Correcting from the Console or the API builds these references for you — see [Correct an invoice](/console/doc-correct). ## Seeing what is linked To see which documents Invopop has actually linked to a given entry, use its **Related** tab, described in [Document contents](/console/doc-content#related). > [!WARNING] > > Related lookups run in one direction. A supplier's Related tab lists its invoices, but an invoice does not show a link back to the supplier. A referenced party must also be signed before its documents appear. ## Related resources | | | | - | - | | Console | [Document schemas](/console/doc-schemas) [Document contents](/console/doc-content) [Correct an invoice](/console/doc-correct) | | Related Guides | [Related documents](/guides/related-docs) | | API Reference | [Find related entries](/api-ref/silo/entries/find-related) | # Replicate documents Source: https://docs.invopop.com/console/doc-replicate Replicate documents through the console Document replication creates a new document based on an existing one. This is useful when you need to create similar documents without manually re-entering all the information. When you replicate a document, the system creates a copy with: * A new unique identifier (UUID) * For invoices: the code removed and the issue date set to the current date * All other data from the source document preserved You can then modify the replicated document as needed before saving it. ## When to replicate documents Replication saves time when creating documents that share most of their content with existing documents. Here are common scenarios where replication is helpful: * **Recurring services with variable quantities.** For example, a maintenance contract where the base fee is identical each month, but hours or consumables change slightly. * **Seasonal or cyclical orders.** Clients who reorder the same products periodically (quarterly restocking, annual service packages). The base invoice mirrors prior cycles; only dates or quantities shift. * **Template for similar customers.** If several clients receive a comparable service package with minor price or detail differences, starting from a proven invoice avoids rebuilding the structure from scratch. ## How to replicate a document ![Replicate document](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/doc-replicate.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=5185c49c37fcc0bd10a32a419de26e53) 1. Open the document you want to replicate 2. Click the **Replicate** button in the document actions menu 3. The system creates a new document with the same content 4. Edit the replicated document as needed 5. Save the new document > [!NOTE] > > The replicated document is independent from the source document. Changes you make to one do not affect the other. ## After replication Once you've replicated a document: 1. **Review the content** to make sure all relevant information from the source document is present. 2. **Update variable fields** such as quantities, dates, amounts, or other fields that need to change. 3. **Verify customer details** to make sure addresses, names, and tax IDs are correct. 4. **Build the document** to validate and enrich the document with calculated data. 5. **Save** the document or send it through your workflow. > [!TIP] > > Use replication to maintain consistency across similar documents while reducing manual data entry and the risk of errors. ## Related resources | | | | - | - | | API Reference | [Create an entry (POST)](/api-ref/silo/entries/create-an-entry-post) [Create an entry (PUT)](/api-ref/silo/entries/create-an-entry-put) | # Document schemas Source: https://docs.invopop.com/console/doc-schemas The GOBL schemas Invopop supports and the properties they share. Invopop stores every business document as a [GOBL](https://docs.gobl.org) envelope. The envelope wraps the document payload with headers and digital signatures, and the payload's `$schema` property declares which document type it is. A document's schema determines which properties are valid, which workflow templates can process it, and which apps and tax regimes will accept it. ## Supported schemas | Schema | Console section | Purpose | | - | - | - | | `bill/invoice` | [Invoices](/console/schema-invoice) | A payment claim for goods or services supplied under agreed conditions. The most widely used schema and the basis of most workflows. | | `bill/order` | [Orders](/console/schema-order) | The opening step of an order-to-invoice process, where a buyer requests goods or services from a seller. | | `bill/delivery` | [Deliveries](/console/schema-delivery) | The movement of goods, or occasionally services, between parties. | | `bill/payment` | [Payments](/console/schema-payment) | Links one or more invoices to a payment transaction. | | `bill/status` | [Statuses](/console/schema-status) | A lifecycle event reported against a document, such as an acknowledgement, approval or refusal. | | `org/party` | [Parties](/console/schema-party) | A legal entity or individual involved in a transaction, stored independently so it can be registered with a tax authority or network. | | `org/item` | [Items](/console/schema-item) | A product or service offered for sale, stored independently to keep a consistent catalogue across documents. | Every document is wrapped in a signed [envelope](https://docs.gobl.org/draft-0/envelope) whose `doc` property carries the business document. The envelope and its header hold metadata about the document rather than business data, and are covered in [Document contents](/console/doc-content). ## Shared properties The four billing schemas — invoice, order, delivery and payment — share a common set of properties. | Property | Notes | | - | - | | `$regime` | The tax regime the document belongs to, as an ISO country code. Determines default currency, tax categories and which correction types are available. | | `$addons` | Regime or format extensions applied to the document, such as `es-verifactu-v1` or `pt-saft-v1`. Addons add their own normalisation, validation and extension keys. | | `$tags` | Modifiers that change how the document is interpreted. See [invoice tags](/console/schema-invoice#tags). | | `type` | The subtype within the schema. Each schema has its own set of values, listed on its own page. | | `series`, `code` | The document's identifier. `code` is required before a document can be signed, and is usually generated from a [series](/console/series). | | `issue_date`, `issue_time` | When the document was issued. Defaults to today, and to the current time where the regime requires it. | | `supplier`, `customer` | The parties to the transaction, as [party](/console/schema-party) objects. `customer` may be omitted on simplified invoices. | | `preceding` | References to documents this one replaces or extends. See [document references](/console/doc-references). | | `lines` | The items, charges or referenced documents that make up the document body. | | `meta` | Semi-structured data that has no home in the document body. | ## FAQ > [accordion] Can I change a document's schema or type after it has been signed? > > No. Signing fixes the document's digest, and both the schema and the type form part of the signed payload. Issue a correction against the original instead, or [replicate](/console/doc-replicate) it into a new document if it was never issued. > [accordion] Can one workflow process more than one schema? > > Yes. A workflow can branch on the schema of the incoming entry, which is how regimes with overlapping flows are handled — France's invoicing workflows accept both invoices and status documents. See [workflows and document schemas](/console/workflow-intro#workflows-and-document-schemas). ## Related resources | | | | - | - | | Console | [Document references](/console/doc-references) [Document contents](/console/doc-content) [Document states](/console/doc-states) [Create documents](/console/doc-create) [Series](/console/series) | | API Reference | [Create an entry (POST)](/api-ref/silo/entries/create-an-entry-post) [Create an entry (PUT)](/api-ref/silo/entries/create-an-entry-put) [Fetch all entries](/api-ref/silo/entries/fetch-all-entries) | | GOBL | [Envelope schema](https://docs.gobl.org/draft-0/envelope) [Invoicing use cases](https://docs.gobl.org/use-cases/invoicing) | # Document states Source: https://docs.invopop.com/console/doc-states Learn how document states track workflow events and label documents throughout their lifecycle. ![States](https://mintcdn.com/invopop/DBtzkCRWVGMog966/assets/console/states.png?fit=max\&auto=format\&n=DBtzkCRWVGMog966\&q=85\&s=b8dfa3d0ce64256116fd48aaaca677f0) States are labels that do not reflect the internal state of the document. This decoupling means the state system provides metadata about workflow events, not assertions about the document's validity or integrity. Instead, states help you track the history of what happened to your document through a job run. For example, if a job encounters an error but doesn't explicitly set a state label, the document's state won't be marked as `Error`, even though the document may actually be affected. The state label only changes when you explicitly change it through the "Set state" workflow step or [through the API](/api-ref/silo/entries/update-an-entry#response-state) (though `Empty` and `Invalid` are exceptions to this rule). We provide the following states to label the document throughout its lifecycle. Here they are described in order to assist you in selecting appropriate states for your documents (via API or workflows). | | | | - | - | | **Invalid** | This state cannot be selected. It is set by the system when a GOBL document is uploaded through the API with the `allow_invalid` option, or is received through a network such as Peppol or SDI which allow receiving invoices. | | **Empty** | Initial creation state before processing | | **Draft** | Mainly used to mark documents that will require further changes. | | **Processing** | Mainly used to indicate the document is being processed. Typically, the **Set state** step will be placed at the beginning of a workflow and changed later in the workflow, such as `Sent` or `Error` depending on the outcome. | | **Registered** | When a party has been granted invoice issuing entitlements, or a document has been registered for reporting. | | **Completed** | Generic label for completion of a process. | | **Sent** | Document has been successfully transmitted (e.g., to tax authority or customer) | | **Received** | Document has been successfully received (e.g., receiving a document in your Peppol inbox). | | **Error** | Processing failed with an error, often placed in the error handling area of a workflow. | | **Rejected** | Rejected by the tax authority or by a third party (e.g., Peppol participant) | | **Paid** | Document (invoice or receipt) has been marked as paid | | **Void** | Document or party has been cancelled or voided | In the API these two system labels are not values of the entry's `state` property. A freshly created entry has no `state` key at all, which the Console shows as **Empty**, and a document stored with `allow_invalid` carries `invalid: true` and its `faults` on the entry, which the Console shows as **Invalid**. States you set yourself appear as lowercase keys, for example `state: "paid"`. The Activity tab in the Console shows a chronological log of all state transitions and significant events affecting the document. > [!TIP] > > Think of silo entry states as workflow markers. They are a way for your system and team to track a document's progress in your workflow. Invopop provides workflow templates that include recommended points where the silo entry state may be updated, but these are just guidelines. You're free to modify or override them as needed, as these values have no impact on actual document processing, delivery, or government validation. # Platform Source: https://docs.invopop.com/console/index Manage documents, configure workflows, connect Apps and collaborate with your team, from a single place. ## Console The web interface of Invopop's API. Manage documents, configure and monitor workflow execution, and connect apps. > [card] [Documents](/console/doc-schemas) > > Create and process business documents from our web interface. > [card] [Workflows](/console/workflow-intro) > > Automate and streamline processes related to document handling. > [card] [Workflow History (Jobs)](/console/workflow-history) > > Jobs log workflow process steps so you can debug and verify workflow runs. > [card] [Apps](/console/apps) > > Power your workspace with regime, format, notification and transformation features. > [card] [API Keys](/console/api-keys) > > Create and manage API Keys for your workspace. ## Admin Organization-level settings for workspaces, team management, billing, and account security. > [card] [Workspaces](/admin/workspace-configure) > > Configure workspaces for your organization. > [card] [Billing](/admin/billing-account) > > Set up payment methods to subscribe to Invopop. > [card] [Members](/admin/member-invite) > > Manage who has access to your workspaces. > [card] [Account](/admin/acc-info) > > Your profile and security. > [card] Apps > > Coming soon! ## Utilities > [card] [Invopop CLI](/cli/index) > > Check, store and send documents from your terminal, or hand the work to an AI assistant. # Delivery schema Source: https://docs.invopop.com/console/schema-delivery The bill/delivery schema and its type values, covering despatch advices, delivery notes, waybills and receipts. [`bill/delivery`](https://docs.gobl.org/draft-0/bill/delivery) describes the delivery of goods, or potentially also services, between parties. Deliveries track the physical or digital transfer of items. Deliveries carry the [shared billing properties](/console/doc-schemas#shared-properties) alongside the type values below. ## Types Invopop defaults to `advice` when no type is given. | Type | Meaning | | - | - | | `advice` | A despatch advice sent by the supplier setting out how an order is to be delivered. | | `note` | A delivery note accompanying a shipment, listing the items included. | | `waybill` | A carrier's document with details and instructions for a consignment. | | `receipt` | A delivery receipt signed by the recipient confirming that goods arrived. | | `other` | A custom type for use with extensions. Disables regime and addon scenarios. | ## Regime requirements Deliveries are reported to the tax authority under Portugal's SAF-T regime, which also covers returns and global transport documents. The series name must carry the document type prefix the AT expects. ## Related resources | | | | - | - | | Apps | [Portugal AT](/apps/at-portugal) | | Console | [Create documents](/console/doc-create) [Document references](/console/doc-references) | | GOBL | [Delivery schema](https://docs.gobl.org/draft-0/bill/delivery) | # Invoice schema Source: https://docs.invopop.com/console/schema-invoice The bill/invoice schema, its type values, and the tags that change how an invoice is interpreted. [`bill/invoice`](https://docs.gobl.org/draft-0/bill/invoice) represents a payment claim for goods or services supplied under conditions agreed between the supplier and the customer. It is the most widely used schema and the basis of most workflows. Invoices carry the [shared billing properties](/console/doc-schemas#shared-properties) alongside the type and tag values below. ## Types An invoice's `type` sets its legal meaning. Invopop defaults to `standard` when no type is given. | Type | Meaning | | - | - | | `standard` | A regular commercial invoice between a supplier and a customer. | | `proforma` | A preview sent for the customer's validation before the final invoice. Tax authorities do not treat it as a fiscal document, but approving one can still create a contractual obligation. | | `credit-note` | A partial or complete refund of a preceding document. A credit note *extends* the original, which remains valid. This is the most widely accepted correction method. | | `debit-note` | Additional charges added to a preceding document, for example an omitted shipping cost. Valid but rarely used — issuing a new invoice is usually cleaner. | | `corrective` | A new document that *replaces* the preceding one entirely. Used for material errors in fields that cannot be adjusted by value, such as the customer's name, tax ID or the issue date. | | `other` | A custom type for use with extensions. Selecting it disables the scenarios defined by regimes and addons, so it is not recommended for general use. | > [!NOTE] > > The correction types available to a document depend on its regime and addons. See [correction types by regime](/console/doc-correct#correction-types-by-regime). ## Tags Tags sit alongside `type` and describe circumstances that change how the invoice must be handled. Regimes and addons map them onto their own document classifications. | Tag | Effect | | - | - | | `simplified` | B2C invoice issued without the customer's fiscal details. Local authorities usually cap the amount. | | `reverse-charge` | The customer, not the supplier, accounts for the tax. | | `self-billed` | The customer or a third party issues the invoice on the supplier's behalf. | | `customer-rates` | Tax rates are determined by the customer's location rather than the supplier's. Typically used for digital goods and services. | | `partial` | Not the final invoice for the transaction, for example a staged invoice on a construction project. | | `prepayment` | Charges amounts in advance; the amounts are deducted from the final invoice. | | `factoring` | The invoice has been assigned to a third party for collection. | | `bypass` | Skips tax and total calculation while still normalising and validating. Reserved for importing historical data where original calculations must be preserved. | Regimes and addons also add their own tags. For how tags and types combine into regime-specific document classifications, see [invoice scenarios](https://docs.gobl.org/use-cases/invoicing#invoice-scenarios) in the GOBL docs. ## FAQ > [accordion] Is a simplified invoice a separate document type? > > No. `simplified` is a tag, not a type. A simplified invoice is a `bill/invoice` with `simplified` in its `$tags` array, which allows the `customer` block to be omitted. Each regime decides how to classify the resulting document and what value limits apply. > [accordion] What is the difference between a simplified invoice and a receipt? > > The key difference lies in *what* each document proves. > > A **receipt** confirms that a **payment has been made**. It is produced by a payment or cash-register device (for example, a card reader or POS terminal) and serves as proof of transaction settlement. > > An **invoice** documents the **sale of goods or services**. It is issued by a billing system (such as a POS, PMS, or ERP) and includes a breakdown of items, taxes, and totals. > > A **simplified invoice** is a type of invoice commonly used for **B2C transactions** and usually **does not include customer identification details**. > > **Example:** > In a restaurant, the printed bill showing the items and taxes is the *simplified invoice*. After you pay by card, the slip produced by the card reader is the *receipt*. The first documents the sale; the second documents the payment. > > From a regulatory perspective: > > * **Fiscalization rules** typically apply to **payment recording devices** (cash registers, card readers) → *receipts* > * **E-invoicing and e-reporting rules** apply to **billing systems** (POS, PMS, ERP) → *invoices* > > In some countries, these systems overlap; in others (like Italy), they are separate or mutually exclusive. This is why businesses often require **both** a fiscalization provider and an e-invoicing provider to remain fully compliant. ## Related resources | | | | - | - | | Console | [Create documents](/console/doc-create) [Correct an invoice](/console/doc-correct) [Document references](/console/doc-references) | | Related Guides | [Correct an invoice](/guides/correct-invoice) [PDF invoice](/guides/pdf-invoice) | | GOBL | [Invoice schema](https://docs.gobl.org/draft-0/bill/invoice) [Invoicing use cases](https://docs.gobl.org/use-cases/invoicing) | # Item schema Source: https://docs.invopop.com/console/schema-item The org/item schema, describing the products and services that document lines refer to. [`org/item`](https://docs.gobl.org/draft-0/org/item) describes a single product or service. Items appear inside invoice, order and delivery lines, and can also be stored as documents in their own right to keep a consistent catalogue across documents. Minimal use is a name and a price. Fuller use adds descriptions, supplier references, SKUs and units. ## Properties | Property | Notes | | - | - | | `name`, `description` | What is being sold. `name` is required. | | `ref` | Your general-purpose reference, SKU or article code. Easier to use than `identities`. | | `key` | An optional classification key, used by some regimes. | | `identities` | Further coded identifiers, each with a type agreed between supplier and customer. | | `price`, `currency` | Unit price and its currency. | | `alt_prices` | Equivalent prices in other currencies. | | `unit` | Unit of measure. | | `origin` | Country of origin, required by some customs and reporting formats. | | `images` | Images of the product. | | `attributes` | Additional descriptive key-value pairs. | | `ext`, `meta` | Regime-specific extension keys and internal data. | ## Related resources | | | | - | - | | Console | [Create documents](/console/doc-create) [Document references](/console/doc-references) | | GOBL | [Item schema](https://docs.gobl.org/draft-0/org/item) | # Order schema Source: https://docs.invopop.com/console/schema-order The bill/order schema and its type values, covering purchase orders, sales orders and quotes. [`bill/order`](https://docs.gobl.org/draft-0/bill/order) covers the opening part of an order-to-invoice process, where a buyer requests goods or services from a seller. It handles the request and confirmation stages before an invoice exists. Orders carry the [shared billing properties](/console/doc-schemas#shared-properties) alongside the type values below. ## Types Invopop defaults to `purchase` when no type is given. | Type | Meaning | | - | - | | `purchase` | A purchase order sent by a buyer to a seller requesting goods or services. | | `sale` | A sales order sent by a seller to a buyer confirming the sale. | | `quote` | A quote sent by a seller to a buyer giving a price for goods or services. | ## Regime requirements Orders are reported to the tax authority under Portugal's SAF-T regime, where the series name must carry the document type prefix the AT expects. ## Related resources | | | | - | - | | Apps | [Portugal AT](/apps/at-portugal) | | Console | [Create documents](/console/doc-create) [Document references](/console/doc-references) | | GOBL | [Order schema](https://docs.gobl.org/draft-0/bill/order) | # Party schema Source: https://docs.invopop.com/console/schema-party The org/party schema, describing the legal entities and individuals involved in a transaction. [`org/party`](https://docs.gobl.org/draft-0/org/party) represents a person or business entity involved in a business transaction. Parties appear embedded in billing documents as the `supplier` and `customer`, and can also be stored as documents in their own right. Storing a party separately lets you register it with a tax authority or network, and lets Invopop link every document that references it. ## Properties | Property | Notes | | - | - | | `name`, `alias`, `label` | Legal name, trading name, and a role label such as `Supplier`. | | `tax_id` | Country and tax code. Validated against the regime's rules. | | `identities` | Additional registered identifiers, such as a SIREN or a national ID. | | `endpoints`, `inboxes` | Routing addresses for networks such as Peppol. | | `addresses`, `emails`, `telephones`, `websites` | Contact details. | | `people` | Named contacts within the organisation. | | `registration` | Commercial register details, required by some regimes. | | `logos` | Images used when rendering the document. | | `ext`, `meta` | Regime-specific extension keys and internal data. | ## Registration Party documents drive supplier and customer registration across most regimes and networks, including VERI\*FACTU, TicketBAI, KSeF, SDI and Peppol. A registration workflow sends the party to the authority or network and records the outcome on the entry. Each regime's supplier guide covers what its registration requires. > [!NOTE] > > A party must be signed before documents that reference it will appear on its **Related** tab, and the lookup only runs in that direction. See the [related documents guide](/guides/related-docs). ## Related resources | | | | - | - | | Related Guides | [Related documents](/guides/related-docs) | | Console | [Document references](/console/doc-references) [Create documents](/console/doc-create) | | GOBL | [Party schema](https://docs.gobl.org/draft-0/org/party) [Person schema](https://docs.gobl.org/draft-0/org/person) | # Payment schema Source: https://docs.invopop.com/console/schema-payment The bill/payment schema and its type values, linking invoices to the transactions that settle them. [`bill/payment`](https://docs.gobl.org/draft-0/bill/payment) links one or more invoices with a payment transaction. Each `lines` entry references a document being settled, so a single payment can cover several invoices. Payments carry the [shared billing properties](/console/doc-schemas#shared-properties) alongside the type values below. ## Types Invopop defaults to `receipt` when no type is given. | Type | Direction | Meaning | | - | - | - | | `receipt` | Supplier → customer | Confirms that funds have been received. Required by some regimes in order to report the payment of specific invoices. | | `request` | Supplier → customer | Requests a transfer of funds for specific documents. | | `advice` | Customer → supplier | Remittance advice confirming that payment for the referenced documents has been made. | ## Regime requirements Payments carry regulatory weight in several regimes, so they are often more than a bookkeeping record. | Regime | Requirement | | - | - | | Mexico | SAT payment complements must be issued for invoices paid in instalments or after issue. | | Portugal | SAF-T receipts are reported to the AT. | | France | Payment lifecycle events (codes 211 and 212) are sent as payment documents rather than statuses. | ## Related resources | | | | - | - | | Related Guides | [SAT issuing](/guides/mx-sat-issuing) [France statuses](/guides/fr-pa-status) | | Apps | [Portugal AT](/apps/at-portugal) | | Console | [Document references](/console/doc-references) | | GOBL | [Payment schema](https://docs.gobl.org/draft-0/bill/payment) | # Status schema Source: https://docs.invopop.com/console/schema-status The bill/status schema, used to report lifecycle events such as acknowledgements, approvals and refusals against a document. [`bill/status`](https://docs.gobl.org/draft-0/bill/status) reports a lifecycle event against one or more existing documents — an acknowledgement, an approval, a refusal. Each `lines` entry names the document it concerns and the status being reported. Invopop usually creates status documents from workflow steps and from inbound network messages, so you rarely author them by hand. ## Types | Type | Meaning | | - | - | | `response` | A reply to a submitted document, used for two-way communication between customer and supplier. | | `update` | Issued by the supplier and shared with the customer, a government agency, or both. | | `system` | An event not tied to a single document but recorded for compliance purposes. | ## Status line keys Each `lines` entry carries a `key` naming the event being reported. | Key | Meaning | | - | - | | `issued` | Document submitted, pending review by the recipient. | | `acknowledged` | A readable document was received and can be submitted for processing. | | `processing` | The referenced document or transaction is being processed. | | `querying` | The buyer will not accept the document without further information from the seller. | | `accepted` | Final approval given; the next step is payment. | | `rejected` | The buyer will not process the document further, though not necessarily rejecting the commercial transaction. | | `paid` | Payment initiated, or receipt of payment acknowledged. Used only where a [payment document](/console/schema-payment) cannot be. | | `error` | A technical issue with the document caused it to be rejected. | | `other` | Determined by other codes or details on the line. | A rejection or a partial approval must also carry a `reason`, and may carry an `action` suggesting what the recipient should do next. > [!NOTE] > > Statuses have their own Console section. Where a regime tracks its own lifecycle flow, the statuses also appear in that app's dashboard — France lists them on the **E-Invoicing Flow 6** tab. ## Regime requirements France's Chorus Pro Flow 6 lifecycle codes are the fullest worked example: each CDV `ProcessConditionCode` maps onto a status document, except the payment codes which use [`bill/payment`](/console/schema-payment) instead. Spain's NO VERI\*FACTU workflows also send status documents for supplier registration and summary events. ## Related resources | | | | - | - | | Related Guides | [France statuses](/guides/fr-pa-status) [France invoicing](/guides/fr-pa-invoicing) | | Console | [Document references](/console/doc-references) [Document states](/console/doc-states) | | GOBL | [Status schema](https://docs.gobl.org/draft-0/bill/status) | # Search Source: https://docs.invopop.com/console/search Search documents ![Search results](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/search.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=491e7f8573ffce283d7a78369bf9b158) You can search for documents in your workspace by clicking on the search field, or by typing / (slash) anywhere within the console. Doing this will bring up the search results panel. ## Search results The **Search Results** command-based search modal displays all documents that match the search. When a term is entered into the search bar, the system retrieves and lists relevant documents. The interface is keyboard-friendly, so you can use the ▼ and ▲ arrow keys to navigate through the results and press Enter to open the selected document. ## Related resources | | | | - | - | | API Reference | [Search entries](/api-ref/silo/entries/search-entries) | # Series Source: https://docs.invopop.com/console/series A series is a placeholder for a counter with number formatting details to be able to generate a code. ## Overview **Series** allow users to configure numbering templates for any document that requires unique sequential identifiers (such as invoices). Each series defines how numbers are formatted, including prefixes, suffixes, and zero-padding rules. For example, a series configured with the options on the left produces identifiers like those in the right box: | | | | - | - | | Prefix | `ES-` | | Padding | `5` | | Start number | `1` | | Code | `INV` | ``` INV-ES-00001 INV-ES-00002 INV-ES-00003 ``` ## Create a new series ![Create series form](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/series-create.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=9b5e20444149bf41a124f5581555762a) | **Field** | **Description** | **API Property** | | - | - | - | | **Name** | Human-readable label identifying the series. | `name` | | **Code** (Optional) | Internal or business code used to categorize series. | `code` | | **Prefix** (Optional) | Text placed before the numeric portion of the generated code. | `prefix` | | **Padding** | Total number of digits in the numeric sequence. Zeros are added to the left when necessary. | `padding` | | **Start Number** | The first number to be issued in the sequence. | `start` | | **Suffix** (Optional) | Text appended after the numeric part. | `suffix` | | **Description** (Optional) | Free text for internal documentation or identification. | `description` | ## Preview panel On the right side of the form, the UI displays a **live preview** of the resulting code based on the current field values. For example: ``` INV-ES-00001 ``` Here you can verify the final output format before saving. ## Using your series You will be able to use the series you've created from the API or through the "Add sequential code" step in your workflow. This will ensure your invoice numbers remain numbered correctly, as many regimes require not only unique invoice identifiers but also sequential numbering. ### 'Add sequential code' workflow step ![](https://mintcdn.com/invopop/H_oChJH7Z1ZQfhZp/assets/console/add-dynamic-sequence.png?fit=max\&auto=format\&n=H_oChJH7Z1ZQfhZp\&q=85\&s=d8671ba13a23193287ff136a4caed49e) This workflow step allows you to use previously created Series, or to use a new numbering sequence tied specifically to the Tax ID and the series of the originating document. If "Dynamic sequence" is selected, the document must have a `series` defined. ## Tips * Use **prefixes** for country or business unit codes (e.g., `ES-`, `FR-`, `US-`). * Adjust **padding** to maintain consistent visual width across codes, and make sure you choose a length adequate for your invoicing volume. * **Start Number** will usually be `1`, unless you are continuing a series. * **Code** and **Description** fields are for human readability and internal organization. ## Related resources | | | | - | - | | API Reference | [Sequences - Introduction](/api-ref/sequences/introduction) [Series - Overview](/api-ref/sequences/series/overview) [Series - Fetch all series](/api-ref/sequences/series/fetch-all-series) [Series - Create a series](/api-ref/sequences/series/create-a-series) [Series - Fetch a series](/api-ref/sequences/series/fetch-a-series) [Entries - Overview](/api-ref/sequences/entries/overview) [Entries - Fetch all series entries](/api-ref/sequences/entries/fetch-all-series-entries) [Entries - Create a series entry](/api-ref/sequences/entries/create-a-series-entry) [Entries - Fetch a series entry](/api-ref/sequences/entries/fetch-a-series-entry) | | Related Guides | [Series Guide](/guides/series) | ## FAQ > [accordion] Job fails with 'series required when code\_id not present' > > This happens because you have not defined a `series` in your document. This is used to determine which dynamic sequence to assign in the "Add sequential code" workflow step. > [accordion] Should I use a different series for each document type? > > Many jurisdictions require separate numbering series for different document types; e.g., one for standard invoices and another for credit notes. Even when it’s not mandatory, keeping distinct series is simply good practice and makes administration easier, so we recommend this approach. # Workflow conditions Source: https://docs.invopop.com/console/workflow-conditions Configure a workflow in Invopop to process documents. Conditions create blocks that execute when a given *status* and *code* (optional) match the response of a workflow step. There are two status signals (`OK` and `KO`) plus `Any`, which matches regardless of the status. * **OK**: when a workflow step completes as expected. * **KO**: when there was an error in the step's execution. * **Any**: will match both `OK` and `KO`. Codes are generally text or numbers returned by providers. Only some steps will return codes along with their status signals. For example, the *Send invoice to VERI\*FACTU* step will return the error code as [specified by the AEAT](https://prewww2.aeat.es/static_files/common/internet/dep/aplicaciones/es/aeat/tikeV1.0/cont/ws/errores.properties) along with the `KO` status signal. Since GOBL already handles many of the validations in tax authorities lists, we recommend only implementing conditions which happen in your workflow with certain regularity and which should be handled automatically. As an example, we will handle the case where a supplier is not registered in the taxpayer census by the AEAT: **1. Add a condition on the step** On the desired step, click on the menu button `...` and select **Add condition**. ![Add condition](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=63fcf8884e4f75550fa05a70c43416e9) **2. Configure the condition** ![Add match conditions](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition-match.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=541ad082b478643dbace2929512414f4) Configure the matching conditions in the popover: 1. **Status**: `KO`. 2. **Code**: `4107` (Tax ID not identified in the taxpayer census). 3. **End workflow here**: `✔` (the workflow will stop executing after this block). **3. Add an action to the condition block** ![Add condition action](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition-action.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=f4d4253fadab0e42c4a831d44fd7bacc) Click on "Select an action" and handle the condition as you wish. In this case, we are choosing to send a Slack message (e.g. for manual intervention). ## Related resources | | | | - | - | | API Reference | [Create a workflow](/api-ref/transform/workflows/create-a-workflow) [Update a workflow](/api-ref/transform/workflows/update-a-workflow) [Fetch a workflow](/api-ref/transform/workflows/fetch-a-workflow) | | Related Guides | [Workflows Guide](/guides/workflows) | # How to create a workflow Source: https://docs.invopop.com/console/workflow-create Configure a workflow in Invopop to process documents. Although workflows can be created via the API, we strongly recommend using the [Invopop Console](https://console.invopop.com) for an easier set up. In the **Workflows** section click on **+ Create workflow**. You will see a template selection screen. The first two items are blank workflows for each document type: ![Parts of a workflow](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-template-empty.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=16d2558750ad5f0e36850e18b9fed24d) * **Empty Invoice workflow**: for sales or expenses. * **Empty Party workflow**: for suppliers or customers. Choose [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) for this example and then click **Load Template**. Give your workflow a name and description by filling the fields on the right sidebar. Add steps to your new workflow by tapping on the **+ Add step** button and selecting an action from the right. Some steps will require configuration in order to function correctly. The "developer mode" ![Developer mode switch](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/workflow-switcher.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=16f39a7bca8b93c60e0e3a42bbf1136a) switch at the top right of the canvas can be used to display the JSON representation of the workflow. This makes it easy to copy and paste workflows from examples or other workspaces. Make sure to return to the visual editor view to ensure the document is validated. ## Creating conditions Conditions create blocks that execute when a given *status* and *code* (optional) match the response of a workflow step. There are two status signals (`OK` and `KO`) plus `Any`, which matches regardless of the status. * **OK**: when a workflow step completes as expected. * **KO**: when there was an error in the step's execution. * **Any**: will match both `OK` and `KO`. Codes are generally text or numbers returned by providers. Only some steps will return codes along with their status signals. For example, the *Send invoice to VERI\*FACTU* step will return the error code as [specified by the AEAT](https://prewww2.aeat.es/static_files/common/internet/dep/aplicaciones/es/aeat/tikeV1.0/cont/ws/errores.properties) along with the `KO` status signal. Since GOBL already handles many of the validations in tax authorities lists, we recommend only implementing conditions which happen in your workflow with certain regularity and which should be handled automatically. As an example, we will handle the case where a supplier is not registered in the taxpayer census by the AEAT: **1. Add a condition on the step** On the desired step, click on the menu button `...` and select **Add condition**. ![Add condition](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=63fcf8884e4f75550fa05a70c43416e9) **2. Configure the condition** ![Add match conditions](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition-match.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=541ad082b478643dbace2929512414f4) Configure the matching conditions in the popover: 1. **Status**: `KO`. 2. **Code**: `4107` (Tax ID not identified in the taxpayer census). 3. **End workflow here**: `✔` (the workflow will stop executing after this block). **3. Add an action to the condition block** ![Add condition action](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition-action.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=f4d4253fadab0e42c4a831d44fd7bacc) Click on "Select an action" and handle the condition as you wish. In this case, we are choosing to send a Slack message (e.g. for manual intervention). ## Running a workflow Workflows in Invopop can be executed through the following methods: * Manually via the Invopop Console * Via API calls to the [create job endpoint](/api-ref/transform/jobs/create-a-job-put) * Automatically by an embedded application. Workflows are executed on *silo entries* (such as invoices or suppliers). This action creates a *job*. When a job is run, the silo entry will be updated with any changes or attachments generated during processing. The status of a job can be seen in the silo entry's activity tab, or in the **Workflows** → **History** section accessible from the left sidebar. ## Error handling Any step that causes an error (`KO`) from which the job can't recover, and is not handled through a condition, will trigger the error handling flow. To enable this section, tap on Handle Errors at the bottom of the workflow creation screen, then add steps into this area which you want to execute when the job fails (often times setting the entry's state to `Error` and possibly sending a notification). ## FAQ > [accordion] How do I update deprecated workflow steps? > > If your step conditions display a **This step contains deprecated conditions** warning, your workflow will continue working normally, but we recommend updating your workflow so that you can modify it without unexpected behavior. > > Steps under deprecated conditions will display with a warning symbol ⚠️ with the label "Go to \[action name]". Click on the menu button `...` and select "Replace", and then select the replacement action from the sidebar. So, for example, if the deprecated step is labelled "Go to Set state", replace this step with "Set state" and choose the same configuration as the original step (which you should find further down within the same workflow). > > Once all deprecated steps are replaced, locate the referenced action(s) and delete. ## Related resources | | | | - | - | | API Reference | [Create a workflow](/api-ref/transform/workflows/create-a-workflow) [Fetch all workflows](/api-ref/transform/workflows/fetch-all-workflows) [Create a job (POST)](/api-ref/transform/jobs/create-a-job-post) [Create a job (PUT)](/api-ref/transform/jobs/create-a-job-put) | | Related Guides | [Workflows Guide](/guides/workflows) | # Customize workflow templates Source: https://docs.invopop.com/console/workflow-edit Update workflow definitions, steps and triggers. > [!NOTE] > > Coming soon. # Workflow history Source: https://docs.invopop.com/console/workflow-history Monitor and inspect jobs, the execution steps of workflow runs. The **Workflow History** provides a complete log of all workflow executions in your workspace. Use it to audit activity, trace issues, and verify that automated processes ran as expected. ## Job history list ![Job history view showing workflow executions](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/job-history.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=57bbf6d6d352e197609631eda75e441d) At the top of the page, use **filters** to narrow the list of executions: * **Job ID** — Search for a specific job ID * **Workflow** — Filter by workflow name * **Status** — Display jobs that are running, completed or completed with errors These controls help you locate specific jobs or focus on executions relevant to your debugging session. The **main table** displays each workflow execution with the following information: * **Started at** — UTC timestamp when the job began. * **Job ID** — Unique identifier for the run. Use the copy button to share when reporting issues or cross-referencing logs. * **Workflow** — Name and version of the workflow that was executed. This helps distinguish between different automation paths or schema versions. * **Duration** — Total time the job took to complete. Short values indicate normal behavior, while longer durations usually indicate long running processes such as waiting for a supplier to register. Our workflow steps have expected durations, and if a step takes longer than expected it will `KO` and the job will fail. * **Status** — Visual indicator showing whether a job is running (yellow), completed successfully (green) or ended with an error (red). > [!NOTE] > > Each job shows the specific workflow version that processed it. This helps you correlate workflow changes with job outcomes. For more information, see [Workflow versions](/console/workflow-versions). ## Job detail Click any job in the history table to view its execution details. This view provides a step-by-step trace of the workflow run, showing how the workflow progressed, which actions were taken, and where any failures occurred. ![Job execution details view](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/job-detail.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=41b94ba3030300113e6dd0435e8856a4) ### Summary information At the top of the details view, a summary panel displays key metadata: | Field | Description | | - | - | | **Status** | Final outcome of the job run (completed, completed with errors, or failed) | | **Started at** | UTC timestamp when execution began | | **Duration** | Total processing time | | **Job ID** | Unique identifier with a copy button for sharing | | **Workflow ID** | Identifier of the workflow definition used. Clicking ↗ will take you to the specific [workflow version](/console/workflow-versions) used to execute this job. | | **Silo Entry ID** | Reference to the underlying data record processed by the workflow. Clicking ↗ will take you to the entry processed by this job. | Use the Run again button to re-execute the same job, useful for iterative reprocessing after fixing issues. ### Reading the execution trace Below the summary, each workflow step is listed in execution order. Every step shows: * **Status** — Last known status text for this job. Can be one of the following: | | | | - | - | | `RUN` | attempting to execute the task. | | `QUEUED` | processor requested more time, job is queued. | | `ERR` | recoverable error, can try again. | | `OK` | job completed successfully. | | `SKIP` | not executed, reason will be stated. | | `KO` | unrecoverable failure ("knocked out"). | * **Intent ID** — Unique identifier for the step execution * **Log output** — Detailed execution logs (expandable for failed steps) ### Identifying failures When a step fails, expand its log output to see: * **RUN** — When the step started executing * **KO** — When the step failed * **Error message** — Specific validation errors, API responses, or other failure details Use this information to understand what went wrong. Common issues include: * Missing required fields in the document data * Validation errors from tax authorities or service providers * Network or API connectivity problems * Configuration errors in workflow steps ### Fixing issues After identifying the failure: 1. Review the error message to understand what's missing or incorrect 2. Check the document data or workflow configuration 3. Make the necessary corrections 4. Use Run again to test the fix 5. Verify the job completes successfully This view is essential for diagnosing validation errors, signature issues, or logic faults in your workflows. The step-by-step trace and detailed logs make it straightforward to identify exactly where and why a workflow failed. ## Related resources | | | | - | - | | API Reference | [Fetch a job](/api-ref/transform/jobs/fetch-a-job) [Fetch a job by key](/api-ref/transform/jobs/fetch-a-job-by-key) | | Related Guides | [Workflows Guide](/guides/workflows) | # Workflows overview Source: https://docs.invopop.com/console/workflow-intro Configure a workflow in Invopop to process documents. ## What is a workflow? A workflow in Invopop is a sequence of steps executed for each incoming job. Each step is powered by the provider of a service. Examples of services include: * Generating PDFs * Forwarding invoices to tax agencies * Modifying documents * Sending emails * Posting webhooks * Sending documents to ERPs or other systems Workflows automate and streamline your document and invoicing processes. Invopop ensures each step is executed reliably, with built-in retries and error handling. The steps are executed sequentially (the next step only executes after the previous one has completed) so you don't need to handle asynchronous responses. ## Anatomy of a workflow ![Parts of a workflow](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-anatomy.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=b1d787ee924d2623051737618f9b71cf) A workflow is composed of two main areas: * **Main flow:** defines the standard sequence of steps that the workflow follows under normal conditions. It represents the intended execution path, showing how tasks progress when the steps execute correctly (`OK`) and when exceptions or errors are handled within conditions. * **Error handling flow** defines the sequence of steps when an unhandled error or exception occurs. It allows you to specify alternative actions, recovery logic, or notifications to ensure the process can handle unexpected conditions gracefully. Keep in mind the error handling flow is executed if a step does not handle its own error through a condition. Both flows are composed of *steps* which can contain *conditions*. * **Steps** are actions performed with the entry being processed, such as sending the document to a tax authority, generating a PDF, or sending a notification to the customer or issuer. * **Conditions** determine the logic that directs how a workflow proceeds. They evaluate the *status* and *code* outcome of a given step, and if there's a match, it will execute the steps contained within that condition. If the status of a condition is `KO`, the *error handling flow* won't be executed as this would be a *handled error*. ## Workflows and document schemas Each workflow is built for a particular document schema, and the steps available to it depend on that schema and on the regime and addons in play. When you create a workflow you pick a template matched to the schema you intend to send it. A single workflow can handle more than one schema when a regime's flows overlap — France's invoicing workflows accept both invoices and status documents, branching on the schema of the incoming entry. See [Document schemas](/console/doc-schemas). ## Related resources | | | | - | - | | API Reference | [Create a workflow](/api-ref/transform/workflows/create-a-workflow) [Fetch all workflows](/api-ref/transform/workflows/fetch-all-workflows) [Fetch a workflow](/api-ref/transform/workflows/fetch-a-workflow) [Update a workflow](/api-ref/transform/workflows/update-a-workflow) [Create a job (POST)](/api-ref/transform/jobs/create-a-job-post) [Create a job (PUT)](/api-ref/transform/jobs/create-a-job-put) | | Related Guides | [Workflows Guide](/guides/workflows) | # Workflow versions Source: https://docs.invopop.com/console/workflow-versions View and manage workflow versions ## Understanding workflow versions Workflow versions provide a complete history of your workflow changes and allow you to track which version was used for each job execution. When you create or modify a workflow, your changes are saved as a draft. A new version is only created when you publish the workflow. This versioning system helps you: * Track changes over time * Identify which workflow version processed specific documents * Revert to previous versions if needed * Maintain a clear audit trail of workflow modifications ## Drafts vs. published versions When you create a new workflow or save modifications to an existing one, your changes are saved as a draft. Drafts allow you to experiment and refine your workflow without affecting active job processing. ![Workflow versions menu showing draft and published versions](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/workflow-versions-menu.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a26e9475daa1bc771816f7becef489f3) A new version is created only when you publish a workflow. Publishing makes the workflow active and available for processing new jobs. Each published version is immutable, meaning it cannot be changed once published. This ensures that jobs processed with a specific version always use the exact workflow configuration that was active at that time. ## Viewing workflow versions You can view all existing workflow versions in the workflow information sidepanel. This panel appears automatically when: * You first open a workflow * You click on the workflow's canvas area (when no steps are selected) The sidepanel displays all versions in chronological order, with the most recent version at the top. Each version shows: * Version number * Publication date and time * Whether it's the current active version ## Identifying workflow versions in job history When you inspect a document's activity or job history, you can see the specific workflow version that was used to process that job. This information helps you: * Debug issues by understanding which workflow configuration was active * Track which version processed specific documents * Correlate workflow changes with job outcomes ![Job history showing workflow version information](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/job-history-workflow-id.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=8a547548891464c1036325745495fb7e) ## Restoring previous versions If you need to undo changes or revert to a previous workflow configuration, you can restore any previous version. This is useful when: * Recent changes caused unexpected behavior * You want to roll back to a known working configuration * You need to compare different workflow versions ![Workflow version preview with restore option](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/workflow-versions-preview.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=d6bc42f640a8fb2558d822f85293e919) When viewing a previous version, it appears with a checkered background to visually distinguish it from the current version. This helps you understand that you're viewing historical workflow data. ### How to restore a version 1. Open the workflow information sidepanel 2. Select the version you want to restore 3. Click **Restore as Draft** to create a new draft based on that version 4. Review the restored workflow configuration 5. Make any additional changes if needed 6. Click **Publish** to create a new version > [!NOTE] > > Restoring a version creates a new draft, not a new version. You must publish the draft to create a new version that will be used for processing jobs. ### Returning to the current version If you're viewing a previous version and want to return to the latest version, click **Back to Vx (current)**, where "x" represents the current version number. This immediately switches your view back to the active workflow version. ## Related resources | | | | - | - | | API Reference | [Fetch a workflow](/api-ref/transform/workflows/fetch-a-workflow) [Fetch all workflows](/api-ref/transform/workflows/fetch-all-workflows) | | Related Guides | [Workflows Guide](/guides/workflows) | # Argentina FAQ Source: https://docs.invopop.com/faq/argentina Frequently asked questions about invoicing compliance in Argentina ### Compliance questions > [accordion] What is a CUIT and Clave Fiscal? > > * **CUIT** (Clave Única de Identificación Tributaria) is Argentina's tax identification number. Every registered taxpayer must have a CUIT to issue electronic invoices. > * **Clave Fiscal** is a digital key used to access ARCA's online services, including the certificate management portal. You need it to generate digital certificates for electronic invoicing. > > Both are obtained through ARCA when you register as a taxpayer. > [accordion] What is the difference between Responsable Inscripto and Monotributista? > > These are two different tax regimes in Argentina: > > **Responsable Inscripto** (Registered Taxpayer): > > * Standard tax regime for most businesses > * Must charge and collect VAT separately > * Can issue Factura A (to other registered taxpayers) and Factura B (to consumers) > * Must file monthly VAT and income tax returns > > **Monotributista**: > > * Simplified tax regime for small businesses and self-employed individuals > * Pays a fixed monthly amount covering VAT and income tax > * Can only issue Factura C > * Cannot deduct VAT on purchases > > Your choice of regime determines which invoice types you can issue. > [accordion] What VAT rates are used in Argentina? > > Argentina has several VAT rates (alícuotas): > > | AFIP Code | Rate | Description | > | - | - | - | > | 3 | 0% | VAT-exempt sales (exports, exempt activities) | > | 9 | 2.5% | Special reduced rate | > | 8 | 5% | Special reduced rate | > | 4 | 10.5% | Reduced rate (construction, agriculture) | > | 5 | 21% | Standard VAT rate (most goods and services) | > | 6 | 27% | Higher rate (utilities, telecom services) | > > The standard rate is 21%, which applies to most goods and services. GOBL's [Argentina tax regime](https://docs.gobl.org/regimes/ar) supports all of these rates. > [accordion] What does it mean that Argentina has a clearance model for invoicing? > > A clearance model (also called real-time validation or continuous transaction control) is a regulatory architecture in which each invoice must be electronically submitted to the tax authority and formally approved before it becomes legally valid. > > In Argentina's case, the issuer submits invoice data to ARCA, which validates it and returns a CAE (Código de Autorización Electrónico). Only with this authorization code can the invoice be legally issued to the customer. This architecture gives ARCA real-time visibility into all business transactions, preventing fraud and enabling automated tax compliance verification. > [accordion] What is the difference between AFIP and ARCA? > > AFIP (Administración Federal de Ingresos Públicos) was Argentina's national tax authority until November 2024. It was then renamed to ARCA (Agencia de Recaudación y Control Aduanero). The organization's functions and systems remain the same—only the name has changed. You may still see references to AFIP in older documentation and systems. > [accordion] What is a CAE code and why is it required? > > The CAE (Código de Autorización Electrónico) is a 14-digit authorization code issued by ARCA that validates an invoice. Every electronic invoice must receive a CAE before it becomes legally valid. The CAE must be displayed on the invoice along with its expiration date (typically 15 days from issuance). > > Without a CAE, an invoice is not legally valid in Argentina, and the issuer cannot claim it as a deductible expense or VAT credit. > [accordion] What invoice types are supported in Argentina? > > Argentina has several invoice types based on the tax classification of both the issuer and the customer: > > * **Factura A**: Issued by registered taxpayers (Responsable Inscripto) to other registered taxpayers. VAT is broken down separately. > * **Factura B**: Issued by registered taxpayers to final consumers, exempt entities, and non-categorized subjects. VAT is included in the total price. > * **Factura C**: Issued by monotributistas (simplified tax regime) to any type of customer. No VAT breakdown. > * **Factura E**: Used for export operations of goods and services (support coming soon). > * **Factura T**: Issued by hotels and tourism providers to non-resident tourists. ARCA automatically reimburses the 21% VAT on qualifying accommodation items. > > Invopop supports all of these invoice types through the Argentina app, except Factura E, which is coming soon. > [accordion] Can I issue invoices with a date in the past? > > Argentine regulations require invoices to be submitted to ARCA promptly after the transaction occurs. While ARCA may accept invoices with recent past dates, it's best practice to issue invoices in real time or as close to the transaction date as possible. > > For recording operation dates that differ from the issue date, use GOBL's `op_date` field to store the actual transaction date while keeping `issue_date` as the current date. > [accordion] When should I issue a Factura A vs Factura B? > > As a Responsable Inscripto (registered taxpayer): > > **Issue Factura A when your customer is:** > > * Another Responsable Inscripto > * A Monotributista > * Any entity that needs to claim VAT credits > > **Issue Factura B when your customer is:** > > * A final consumer (Consumidor Final) > * An exempt entity (Exento) > * A non-categorized subject > * A foreign tourist > > The key difference is that Factura A breaks down VAT separately (allowing the buyer to claim input VAT credits), while Factura B includes VAT in the total price. > [accordion] What is required to issue invoices under ARCA? > > The supplier party (issuer) must have an active CUIT, a Clave Fiscal at security level 3 or higher, and a valid ARCA digital certificate generated specifically for electronic invoicing (separate from the one used for AFIP web access). ### Invoicing questions > [accordion] What invoice types are commonly used in Argentina? > > Factura A (B2B between Responsables Inscriptos), Factura B (consumers and exempt entities), Factura C (Monotributistas to anyone), Factura E (exports) and Factura T (tourism services to non-resident tourists). Type is determined by the issuer's tax regime and the customer's classification — Invopop selects the right one automatically when both are set. > [accordion] How are ARCA invoices delivered? > > Most ARCA-cleared invoices are delivered as PDFs with the CAE printed on them, though the underlying XML is also available on request. Invopop can convert the XML into [GOBL](https://docs.gobl.org) for downstream processing; PDF-only documents need OCR or manual capture. > [accordion] How does invoice numbering work in Argentina? > > Argentine invoices use a two-part numbering system: **XXXXX-YYYYYYYY** > > * **Punto de Venta (POS)**: A 5-digit code (e.g., 00001) that identifies the point of sale or electronic invoicing method. > * **Sequential Number**: An 8-digit code (e.g., 00000001) that increases by 1 with each invoice. > > The sequence must be continuous with no skipped or repeated numbers. Each invoice type (A, B, C) and POS combination has its own independent sequence. For example, Factura A from POS 0001 starts at `00001-00000001`, while Factura B from the same POS would also start at `00001-00000001`. > > Invopop automatically manages sequential numbering for each punto de venta. > [accordion] What is a Punto de Venta (point of sale)? > > A Punto de Venta (POS) is a 5-digit code that identifies where invoices are issued from. In electronic invoicing, it represents the electronic invoicing method or channel (e.g., Web Service, ARCA portal). > > Each POS has its own independent invoice sequence for each invoice type. You must register your punto de venta with ARCA before you can issue invoices through it in production. In the sandbox environment, you can use test punto de venta numbers without registration. > [accordion] Do I need different puntos de venta for different invoice types? > > No, you can use the same punto de venta for different invoice types (Factura A, B, C, etc.). However, each invoice type will have its own independent sequential numbering within that punto de venta. > > For example, using POS 00001: > > * Factura A: 00001-00000001, 00001-00000002, 00001-00000003... > * Factura B: 00001-00000001, 00001-00000002, 00001-00000003... > [accordion] What is WSFE and how does Invopop use it? > > WSFE (Web Services de Factura Electrónica) is ARCA's web service infrastructure for automated invoice submission. ARCA provides several web services: > > * **wsfev1**: For invoices A, B, C, and M without item detail > * **wsmtxca**: For invoices A and B with item details > * **wsfexv1**: For type E (export) invoices > * **wsct**: For type T (tourism) invoices issued to non-resident tourists > > Invopop integrates with these services to automatically submit your invoices to ARCA and receive CAE authorization codes in real time. > [accordion] What happens if ARCA rejects my invoice? > > If ARCA rejects an invoice, you'll receive an error message explaining the reason for rejection. Common reasons include: > > * Invalid or unregistered CUIT > * Missing required fields > * Incorrect tax calculations > * Sequential numbering errors > * Invalid punto de venta > > Review the error message, correct the issue in your GOBL document, and resubmit the invoice. The rejected invoice does not count toward your sequential numbering, so you can use the same number after correction. > [accordion] Where do I find Argentina-specific GOBL documentation? > > See the [Argentina tax regime in GOBL](https://docs.gobl.org/regimes/ar) for tax IDs, tax categories, and AFIP/ARCA-specific extensions. The [`ar-arca-v1`](https://docs.gobl.org/addons/ar-arca-v1) addon documents required fields for invoice submission to ARCA. ### Registering supplier questions > [accordion] Do I need to upload digital certificates to Invopop? > > Yes, to issue invoices through ARCA's web services, you need to upload your ARCA digital certificate to Invopop. This certificate is issued by ARCA and is used to authenticate your requests to their system. > > The registration process involves: > > 1. Generating a certificate signing request (CSR) with ARCA > 2. Downloading the certificate and private key > 3. Uploading them to Invopop through the supplier registration flow > > See our [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers) for detailed instructions. > [accordion] What information is required to register a supplier? > > To register a supplier for ARCA invoicing, you need: > > **Company Information:** > > * Legal name (Razón Social) > * CUIT (tax ID) > * Fiscal address > * Economic activity code > * Tax classification (Responsable Inscripto or Monotributista) > > **Digital Certificates:** > > * ARCA digital certificate (.crt file) > * Private key (.key file) > * Key password (if applicable) > > See our [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers) for detailed registration instructions. > [accordion] How long does supplier registration take? > > The supplier registration process typically takes a few minutes once the supplier has their digital certificates ready. The steps are: > > 1. Generate a registration link in Invopop > 2. Supplier uploads their certificate and key > 3. System validates the credentials with ARCA > 4. Registration is complete > > The longest part is usually obtaining the digital certificate from ARCA, which can take a few days if the supplier hasn't done it before. > [accordion] Can I register multiple puntos de venta for one supplier? > > Yes, a single supplier can have multiple puntos de venta. Each punto de venta operates independently with its own sequential numbering for each invoice type. > > When registering a supplier, you specify which punto de venta to use. You must register each punto de venta with ARCA in production before using it to issue invoices. > [accordion] What happens if a supplier's certificate expires? > > Digital certificates issued by ARCA have an expiration date. When a certificate is about to expire, the supplier must generate a new one through ARCA's portal and upload it to Invopop. > > To update an expired certificate: > > 1. Obtain a new certificate from ARCA > 2. Use the supplier registration workflow to upload the new certificate > 3. The new certificate will replace the old one > > It's recommended to renew certificates before they expire to avoid disruption to your invoicing process. > [accordion] Does Invopop support white-label invoicing in Argentina? > > Yes, Invopop supports white-label (B2B2B) operations in Argentina. This means you can issue invoices on behalf of your clients using their CUIT and digital certificates. > > This is particularly useful for platforms and software providers who want to offer invoicing services to their customers without requiring them to integrate directly with ARCA. > > Each supplier (your client) needs to complete the registration process with their own certificates, and then you can issue invoices on their behalf through Invopop's workflows. > [accordion] What certificates are required to integrate with ARCA? > > An ARCA digital certificate, consisting of a `.crt` X.509 certificate and the matching `.key` private key. Both files are uploaded together; the certificate must be valid (not expired, not revoked) and authorized for the ARCA web services you intend to use — WSFE for Factura A, B and C, WSFEX for Factura E, and WSCT for Factura T. > [accordion] How do I onboard a new supplier in Argentina? > > Generate a registration link via the ARCA Register Supplier workflow, send it to the supplier, and have them upload their ARCA digital certificate and private key. Once validated, the supplier is ready to issue. See the [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers). > [accordion] How are supplier credentials stored in Invopop for Argentina? > > The ARCA digital certificate (`.crt`) and private key (`.key`) are stored encrypted. Invopop only uses them to authenticate ARCA web service requests (WSFE and WSCT) on the supplier's behalf and never returns the key in API responses. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Argentina's regulation → # Australia FAQ Source: https://docs.invopop.com/faq/australia Frequently asked questions about invoicing compliance in Australia ### Compliance questions > [accordion] Is e-invoicing mandatory in Australia? > > Only for federal government buyers. Since 1 July 2022, non-corporate Commonwealth entities (NCEs) must be able to receive e-invoices. For businesses, e-invoicing is voluntary. There is no mandate for suppliers. > [accordion] Is the Business eInvoicing Right (BER) in force? > > No. Treasury consulted on a Business eInvoicing Right in December 2021, and on a B2B mandate in 2020. The government did not enact either of them. > [accordion] Does the ATO receive a copy of my invoices? > > No. Australia uses a decentralized 4-corner Peppol network. The invoice goes from the supplier's service provider to the buyer's service provider. The ATO is the Australian Peppol Authority, but it does not receive the invoices. There is no clearance and no e-reporting. > [accordion] Which format do Australian e-invoices use? > > PINT A-NZ Billing (version 1.1.3), in UBL 2.1, with customization ID `urn:peppol:pint:billing-1@aunz-1`. It is the only mandatory specification since 15 May 2025. The earlier A-NZ Peppol BIS Billing 3.0 left the network on 31 March 2026. > [accordion] What is the Peppol ID of an Australian business? > > Usually its Australian Business Number (ABN), with scheme `0151`, for example `0151:65631636556`. The service provider must check the identity of each business before it registers it, for example against the Australian Business Register. > [accordion] Who can send and receive e-invoices on the Australian network? > > Only a service provider that the ATO accredits can operate a Peppol access point in Australia. Australia and New Zealand recognize each other's accreditation. > [accordion] Do I need a digital signature on the invoice? > > No. No rule asks for an electronic signature on the invoice. The Peppol network secures the transport with the certificates of the service providers. > [accordion] Does e-invoicing apply to consumer (B2C) sales? > > No. E-invoicing does not apply to sales to consumers. The GST tax invoice rules still apply when a customer asks for a tax invoice. > [accordion] What does a federal government buyer need on the invoice? > > A buyer reference or a purchase order reference. PINT A-NZ requires one of the two. An NCE pays a correctly rendered e-invoice within 5 calendar days, when both parties use Peppol and agree to use it. Other invoices get a 20-day term. > [accordion] How long must I keep my invoices? > > At least 5 years after the transaction. The records must be in English, or in a form that converts to English. > [accordion] Are there penalties for not using e-invoicing? > > No. There is no supplier mandate, so there are no e-invoicing penalties for suppliers. A federal entity that pays an invoice late pays interest to the supplier. > [accordion] Does Invopop support e-invoicing in Australia? > > Invopop support for Australia is coming soon. For availability, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Australia's regulation → # Belgium FAQ Source: https://docs.invopop.com/faq/belgium Frequently asked questions about invoicing compliance in Belgium ### Compliance questions **Belgium** > [accordion] Is B2B e-invoicing in Belgium mandatory? > > Since 1 January 2026 B2B transactions are mandatory where both parties are Belgian VAT-registered. B2G has been mandatory since 2024. B2C and cross-border B2B are out of scope for the current mandate. > [accordion] Who can issue invoices in Belgium? > > Any entity with a Belgian KBO/BCE enterprise number (and a VAT number where applicable). > [accordion] What are the legal obligations for receiving invoices in Belgium? > > From 1 January 2026, Belgian VAT-registered recipients must be reachable via Peppol. Received invoices must be archived in their original structured format for 7 years. **Peppol** > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. ### Invoicing questions **Belgium** > [accordion] How do I configure my workspace for Belgian invoicing? > > Install the Peppol app, register your supplier with its KBO/BCE-based participant ID (scheme `0208`), and use a workflow that generates a Peppol BIS Billing 3.0 document and sends it via the Lookup → Send actions. > [accordion] Do invoices need to be sent to the tax authority? > > In Belgium specifically there is no need to send a copy to the tax authority until the e-reporting mandate comes into effect in Jan 2028. > [accordion] Where do I find Belgium-specific GOBL documentation? > > See the [Belgium tax regime in GOBL](https://docs.gobl.org/regimes/be) for tax IDs and category codes. The Peppol BIS Billing 3.0 mapping is shared across EU members and comes from the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon. > [accordion] What is the difference between scheme 0208 and 9925 in Belgium? > > Belgium uses two Peppol scheme identifiers: > > * **`0208` (KBO/BCE enterprise number)** — This is the **preferred and default** scheme for Belgium. It corresponds to the company's KBO/BCE number (Kruispuntbank van Ondernemingen / Banque-Carrefour des Entreprises), which is the official Belgian business register. Most Belgian companies are registered in Peppol under this scheme. > * **`9925` (BE VAT number)** — This is an older, alternative scheme based on the Belgian VAT number. It is typically used by entities that have a Belgian VAT number but are not registered in the KBO/BCE — for example, foreign companies with a Belgian VAT registration. > > **When you should use `0208`:** Always use `0208` as your first choice when sending invoices to Belgian companies. This is the standard identifier and what the vast majority of Belgian businesses are registered under. > > **When `9925` may be needed:** If you get a "receiver not found" error when sending to a Belgian company using `0208`, and you have confirmed the company exists in the [Peppol Directory](https://directory.peppol.eu), check whether they are registered under `9925` instead. This is uncommon but does happen. > > To specify the scheme when sending, include the customer's Peppol inbox in your GOBL document: > > ```json theme={"system"} > "customer": { > "name": "Example Company", > "tax_id": { > "country": "BE", > "code": "0123456789" > }, > "inboxes": [ > { > "key": "peppol", > "scheme": "9925", > "code": "BE0123456789" > } > ] > } > ``` > > Note that when using `9925`, the code must include the `BE` prefix (e.g. `BE0123456789`), whereas `0208` uses the raw KBO/BCE number without a prefix. > > > [!TIP] > > > > Use the **Lookup Participant ID** workflow step to verify a recipient's Peppol registration before sending. If a lookup with `0208` fails, try again with `9925`. **Peppol** > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. ### Registering supplier questions **Belgium** > [accordion] How do I onboard a new supplier in Belgium? > > Run the Register Participant workflow with the supplier's KBO/BCE number (scheme `0208`), the same as onboarding a supplier in any other country. If the supplier is already registered with another Peppol provider and you'd rather bring that registration over than register fresh, see [Migrating a participant from another provider](/guides/peppol#migrating-a-participant-from-another-provider). **Peppol** > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. ### Receiving questions **Peppol** > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Belgium's regulation → # Brazil FAQ Source: https://docs.invopop.com/faq/brazil Frequently asked questions about invoicing compliance in Brazil ### Compliance questions **Brazil** > [accordion] Is issuing B2C invoices mandatory in Brazil? > > Yes — invoicing is mandatory for all transactions in Brazil, including B2C (NFC-e for retail goods, NFS-e for services). > [accordion] Who can issue invoices in Brazil? > > Any entity with a CNPJ (legal entity) or CPF (individual) registered in Brazil. State and municipal registrations (Inscrição Estadual / Municipal) are also required depending on whether the supplier issues NF-e (state) or NFS-e (municipal) documents. **NF-e** > [accordion] What are the NF-e mandate timelines in Brazil? > > NF-e (model 55) for goods has been mandatory since 2008 — phased in by sector and turnover. NFC-e (model 65, retail B2C) replaced the paper Cupom Fiscal in most states between 2014 and 2020. Both are now required for any commercial circulation of goods. > [accordion] Are there special supplier obligations under NF-e? > > The supplier needs an active state Inscrição Estadual, a CNAE that authorizes goods circulation, and an A1 certificate matching the issuing CNPJ. Some states (SP, RJ, MG) require additional credenciamento before NF-e issuance. **NFS-e** > [accordion] How does ISS tax work in Brazil? > > ISS (Imposto Sobre Serviços) is not treated as a standard transactional tax calculated on top of a net amount. Instead, it is an **informative tax embedded in the final price**—the invoice only reports what portion of the total corresponds to ISS. > > In GOBL, ISS is flagged as an "informative" tax category. This means: > > * ISS must be added to the GOBL invoice like any other tax, with the proper percentage. > * The tax amount is not added to the price; it represents the portion of the total that corresponds to ISS. > * The NFS-e document displays ISS as informational data, reflecting what was already embedded in the final price. > * **Do not use `prices_include` with ISS**—since ISS is informative, it should not be treated as a price-inclusive tax. > [accordion] Should I change my integration for the 2026 NFS-e federal tax format regulation? > > It is not necessary, any fields pertaining to the previous municipal tax implementation will be ignored and the invoice will already have all the data to be compliant. However, it is always recommended to remove ignored fields to avoid confusion and keep your documents clean. > [accordion] What are the issuer requirements under NFS-e? > > ISS is a municipal tax, so the supplier must be registered as a taxpayer (Inscrição Municipal) with the municipality where their establishment is based, whichever system they issue through. NFS-e are then issued either through the municipality's own system or through the national Emissor Nacional: MEI and Simples Nacional ME/EPP suppliers must use the Emissor Nacional, and other suppliers follow whichever system their municipality adopted. The Emissor Nacional authorizes suppliers based on the municipality's taxpayer registry, so the municipal registration is still required there. The system is chosen when [registering the supplier](/guides/br-dfe-supplier#choose-the-nfs-e-system). Special tax regimes (Simples Nacional, MEI, ISS estimado) impose additional fields and rates. ### Invoicing questions **Brazil** > [accordion] What type of Documentos Fiscais does Invopop support? > > Invopop supports NF-e, NFS-e and NFC-e documents. Transport documents (MDF-e and CT-e) are not currently supported. > [accordion] Where can I find the mapping of GOBL fields to DF-e documents? > > For further details on how GOBL prepares data for conversion, see: > > * The [Brazil Regime GOBL Reference](https://docs.gobl.org/regimes/br). > * The [NFS-e Addon GOBL Reference](https://docs.gobl.org/addons/br-nfse-v1). > * The [NF-e Addon GOBL Reference](https://docs.gobl.org/addons/br-nfe-v4). **NF-e** > [accordion] Can I issue an NF-e to a foreign customer? > > Yes. A foreign customer that does not have a Brazilian CNPJ or CPF can be identified by providing a country-qualified `identity` (e.g. a passport number) on the customer party. The `identity.country` must be an ISO country code other than `BR`. > > When a foreign customer is used: > > * the `tax_id` block can be omitted, > * the customer address `country` is required and must not be `BR` (it is auto-filled from the identity country if missing), > * the `state` field and the `br-ibge-municipality` extension are not required, as they only apply to Brazilian parties. > > Example customer block for a foreign buyer: > > ```json theme={"system"} > "customer": { > "name": "Acme International Inc.", > "identities": [ > { > "key": "passport", > "country": "US", > "code": "US-FOREIGN-123" > } > ], > "addresses": [ > { > "num": "500", > "street": "Market Street", > "locality": "San Francisco", > "code": "94105", > "country": "US" > } > ] > } > ``` > [accordion] What's the workflow for issuing NF-e invoices? > > Build a GOBL invoice with the `br-nfe-v4` addon, send it through the Issue NF-e workflow. Invopop signs with the supplier's A1 cert, transmits to the issuer's state SEFAZ, receives the protocolo de autorização, and exposes the authorized XML and DANFE PDF. > [accordion] How do I retrieve the NF-e access key and authorization protocol? > > After a successful issuance, SEFAZ returns two identifiers that Invopop stores as envelope stamps on the silo entry under `data.head.stamps`: > > * `sefaz-key` — the 44-digit NF-e access key (*chave de acesso*) that uniquely identifies the document. > * `sefaz-auth` — the authorization protocol number (*número do protocolo*) confirming SEFAZ acceptance. > > Use them to reconcile your records, build the DANFE QR code, or query SEFAZ directly. > > ```json theme={"system"} > "stamps": [ > { "provider": "sefaz-key", "value": "35240114200166000187550010000000071123456789" }, > { "provider": "sefaz-auth", "value": "135240000123456" } > ] > ``` > [accordion] What are the required and optional fields for NF-e invoices in Brazil? > > NF-e (`br-nfe-v4`) covers electronic invoices for the circulation of **goods** in Brazil. It maps to two fiscal models: > > * **Model 55 — NF-e**: B2B or business-to-government transactions > * **Model 65 — NFC-e**: B2C consumer transactions (simplified) > > #### Notation > > * ✅ **Required** — validation will fail if missing > * ⬜ **Optional** — can be omitted > * 🔧 **Auto-normalized** — set automatically if not provided > > ### Invoice Header > > | Field | Required | Notes | > | - | - | - | > | `$schema` | auto | `https://gobl.org/draft-0/bill/invoice` | > | `$addons` | ✅ | `["br-nfe-v4"]` | > | `$tags` | ⬜ | Use `["simplified"]` for NFC-e (model 65) | > | `uuid` | ⬜ | Auto-generated if absent | > | `type` | ⬜ | Defaults to `standard` | > | `series` | ✅ | Pattern: `^(?:0\|[1-9]{1}[0-9]{0,2})$` | > | `code` | ⬜ | Required to sign the document. | > | `issue_date` | ✅ | ISO date, e.g. `"2024-11-15"` | > | `currency` | ✅ | Must be `"BRL"` | > | `tax` | ✅ | See Tax Extensions | > | `notes` | ✅ | At least one note with `key: "reason"` required | > | `lines` | ✅ | At least one line item | > | `charges` | ⬜ | Document-level charges | > | `discounts` | ⬜ | Document-level discounts | > | `supplier` | ✅ | See Supplier | > | `customer` | ✅ model 55 ⬜ model 65 | See Customer | > | `payment` | ✅ if not fully paid | See Payment | > | `ordering` | ⬜ | | > | `delivery` | ⬜ | | > > ### Tax Extensions > > | Extension | Required | Values | > | - | - | - | > | `tax.ext.br-nfe-model` | ✅ | `"55"` (NF-e, B2B) or `"65"` (NFC-e, B2C) | > | `tax.ext.br-nfe-presence` | ✅ | See table below. Restricted by model. | > | `tax.ext.br-nfe-regime` | ⬜ | `"1"`=Simples Nacional, `"2"`=Simples Nacional Excess, `"3"`=Normal | > | `tax.ext.br-nfe-fiscal-incentive` | ⬜ | `"1"`=Has incentive, `"2"`=No incentive | > > **`br-nfe-presence` allowed values:** > > | Code | Description | NF-e (55) | NFC-e (65) | > | - | - | - | - | > | `0` | N/A | ✅ | ❌ | > | `1` | In-person | ✅ | ✅ | > | `2` | Internet | ✅ | ❌ | > | `3` | Tele-service | ✅ | ❌ | > | `4` | Home delivery | ❌ | ✅ | > | `5` | Off-site | ✅ | ❌ | > | `9` | Others | ✅ | ❌ | > > ```json theme={"system"} > "tax": { > "ext": { > "br-nfe-model": "55", > "br-nfe-presence": "1" > } > } > ``` > > ### Notes > > At least one note with `key: "reason"` is **required**. It maps to the NF-e `natOp` field (nature of the operation). > > ### Supplier > > | Field | Required | Notes | > | - | - | - | > | `name` | ✅ | | > | `tax_id.country` | ✅ | `"BR"` | > | `tax_id.code` | ✅ | CNPJ (14 digits) or CPF (11 digits), Mod11 validated | > | `identities[].key: "br-nfe-state-reg"` | ✅ | State Registration (Inscrição Estadual) | > | `addresses` | ✅ | At least one | > | `addresses[].country` | ✅ 🔧 | ISO country code. Auto-filled from `tax_id.country` if missing. | > | `ext.br-ibge-municipality` | ✅ | 7-digit IBGE municipality code | > > ### Customer (Model 55 — required, Model 65 — optional) > > Brazilian customers must provide a Brazilian `tax_id`. Foreign customers can issue an NF-e by providing a country-qualified `identity` (e.g. a passport number) instead of a `tax_id`. > > | Field | Required | Notes | > | - | - | - | > | `tax_id.country` | ✅ for BR customers | `"BR"` | > | `tax_id.code` | ✅ when `tax_id` is present | CNPJ or CPF | > | `identities[]` with non-BR `country` | ✅ for foreign customers without a `tax_id` | E.g. `{ "key": "passport", "country": "US", "code": "US-FOREIGN-123" }` | > | `addresses` | ✅ | | > | `addresses[].country` | ✅ 🔧 | ISO country code. Auto-filled from the `tax_id` country or the first identity that declares a country. | > | `addresses[].state` | ✅ for BR customers | Must be a valid Brazilian state acronym (e.g. `SP`). Not required for foreign customers. | > | `ext.br-ibge-municipality` | ✅ for BR customers | 7-digit IBGE code. Not required for foreign customers. | > > ### Line items > > Required tax categories per line: `ICMS`, `PIS`, `COFINS`. `IPI` is optional. > > | Extension | Required | Notes | > | - | - | - | > | `line.ext.br-nfe-cfop` | ✅ model 55 ⬜ model 65 | CFOP (Código Fiscal de Operações e Prestações) code identifying the fiscal nature of the operation, e.g. `"5102"` for in-state resale. Required on every line of an NF-e (model 55). | > > Optional item identities: `item.identities[].key: "ncm" | "gtin" | "gtin+taxable"`. > > ### Payment > > Required when the invoice is not fully paid. Must include `payment.instructions.key`. Payment-means mapping is auto-set unless `key: "other"`. **NFS-e** > [accordion] What's the workflow for issuing NFS-e invoices? > > Build a GOBL invoice with the `br-nfse-v1` addon and send it through the Issue NFS-e workflow. Until the federal NFS-e (DPS) takes over in 2026, Invopop routes per-municipality — the workflow handles the underlying API differences transparently. > [accordion] How do I configure Chargebee or Stripe imports for Brazilian invoices with ISS? > > Billing platforms like Chargebee and Stripe are not aware of ISS particularities and tend to wrongly treat ISS as a typical tax included in the price. This causes `invalid-prices-include` errors during import because that pricing model is not compatible with how ISS works for NFS-e. > > The correct setup is: > > 1. **Do not configure ISS as a tax** in your billing platform (Chargebee, Stripe, etc.). > 2. Prices in your billing platform should already be the **final public prices** with ISS embedded. > 3. Add a **Modify Silo Entry** step to your import workflow that injects the ISS tax with the desired percentage into the GOBL invoice. > > This workflow approach ensures ISS is properly added to the GOBL invoice as an informative tax category before submission to the Brazilian tax authority, while avoiding the pricing conflicts that occur when billing platforms try to handle ISS as a standard tax. > [accordion] What are the required and optional fields for NFS-e invoices in Brazil? > > NFS-e (`br-nfse-v1`) covers electronic service invoices (*Notas Fiscais de Serviços Eletrônicas*) in Brazil. Service invoices are regulated at the **municipal** level, so several fields carry municipality-specific codes. The addon implements the ABRASF national standard (v2.04). > > ### Invoice Header > > | Field | Required | Notes | > | - | - | - | > | `$addons` | ✅ | `["br-nfse-v1"]` | > | `series` | ✅ | Any non-empty string | > | `code` | ⬜ | Required to sign the document | > | `issue_date` | ✅ | ISO date | > | `currency` | ✅ | Must be `"BRL"` | > | `lines` | ✅ | At least one line item | > | `charges` | ❌ | Not supported by NFS-e | > | `discounts` | ❌ | Not supported by NFS-e | > | `supplier` | ✅ | See Supplier | > > ### Supplier > > | Field | Required | Notes | > | - | - | - | > | `name` | ✅ | | > | `tax_id.country` | ✅ | `"BR"` | > | `tax_id.code` | ✅ | CNPJ or CPF | > | `identities[].key: "br-nfse-municipal-reg"` | ✅ | Municipal Registration | > | `addresses` | ✅ | | > | `ext.br-ibge-municipality` | ✅ | 7-digit IBGE municipality code | > | `ext.br-nfse-simples` | ✅ | `"1"` opt-in, `"2"` opt-out | > | `ext.br-nfse-fiscal-incentive` | ✅ | `"1"` has incentive, `"2"` does not (default) | > | `ext.br-nfse-special-regime` | ⬜ | Special regime values | > > ### Customer > > Optional. When provided, `ext.br-ibge-municipality` is required if addresses are present. > > ### Line items > > Required item extension: `item.ext.br-nfse-service` (municipality service code). > > Optional item extensions: `item.ext.br-nfse-cnae`, plus the all-or-none trio `item.ext.br-nfse-{operation,tax-status,tax-class}`. > > Required tax category per line: `ISS`. ISS extension `taxes[ISS].ext.br-nfse-iss-liability` defaults to `"1"` (Liable). ### Registering supplier questions **Brazil** > [accordion] How do I onboard a new supplier in Brazil? > > Upload the supplier's A1 digital certificate (PFX or P12) plus password through the registration workflow. Invopop validates it against the relevant SEFAZ or municipal endpoint and activates the supplier for issuing. > [accordion] How are supplier credentials stored in Invopop for Brazil? > > A1 certificates (X.509 + private key, exported as PKCS#12) and their passwords are stored encrypted. Invopop uses them to sign documents and authenticate to the relevant SEFAZ or municipal endpoint on the supplier's behalf. **NF-e** > [accordion] How do I register a supplier with NF-e? > > Upload the A1 certificate plus its password through the Register Supplier workflow, providing the supplier's CNPJ and Inscrição Estadual. Invopop validates the certificate against SEFAZ and activates the supplier for the corresponding UF. > [accordion] What certificates does NF-e require to authenticate a supplier? > > An ICP-Brasil A1 certificate issued to the supplier's CNPJ (or CPF for individuals). Format: PKCS#12 (.pfx/.p12) containing the X.509 cert and matching private key. Validity is typically 1 year. **NFS-e** > [accordion] How do I register a supplier with NFS-e? > > Upload the supplier's A1 certificate plus the Inscrição Municipal for the relevant city. The federal DPS (2026) consolidates registration; until then, separate enrollment per municipality may be required for high-volume issuance. > [accordion] What certificates does NFS-e require to authenticate a supplier? > > Most municipalities accept the same ICP-Brasil A1 certificate used for NF-e. A few require A3 (smartcard/USB token) — Invopop currently supports A1 only. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Brazil's regulation → # Chile FAQ Source: https://docs.invopop.com/faq/chile Frequently asked questions about invoicing compliance in Chile > [accordion] Documentation in progress > > FAQ content for Chile is being prepared. For specific questions, please contact [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Chile's regulation → # Colombia FAQ Source: https://docs.invopop.com/faq/colombia Frequently asked questions about invoicing compliance in Colombia ### Compliance questions > [accordion] Who must issue electronic invoices in Colombia? > > All businesses selling goods or services in Colombia. The FEV (Factura Electrónica de Venta) has been mandatory for B2B and B2G invoices since 2020, and since 2024 B2C transactions must be documented with the Documento Equivalente Electrónico, bringing retail and point-of-sale receipts under the electronic system as well. > [accordion] What format does the DIAN require for electronic invoices? > > OASIS UBL 2.1 following the DIAN schema. Colombia operates a clearance model (continuous transaction control): each invoice is digitally signed, submitted to the DIAN, and validated in real time. On validation, the invoice receives a CUFE (Código Único de Factura Electrónica) that makes it legally valid. > [accordion] Do I need to report invoices to the DIAN separately? > > No. E-reporting is fully integrated into the FEV clearance flow — an invoice is reported to the tax authority at the moment the DIAN validates it. There are no separate periodic invoice submissions. > [accordion] How long must invoices be archived in Colombia? > > A minimum of five years, counted from January 1 of the year following issuance or receipt. The obligation applies to both the issuer and the receiver, and covers the original XML, its digital signature, and the DIAN validation response. > [accordion] What is RADIAN? > > RADIAN is the DIAN registry that turns validated invoices into negotiable instruments. Once the buyer accepts an invoice, it can be registered in RADIAN as a "título valor electrónico", allowing it to be factored, used as loan collateral, or legally enforced for payment. > [accordion] Does Invopop support the Documento Equivalente Electrónico (B2C)? > > Not currently. For B2C transactions you can issue equivalent simplified FEV invoices instead, which are fully supported through the [Colombia app](/apps/colombia). ### Invoicing questions > [accordion] My GOBL document for a Colombian invoice fails to build because of the postal code > > The DIAN expects a 5-digit [municipal code](https://www.dian.gov.co/atencionciudadano/formulariosinstructivos/Formularios/2007/Codigos_municipios_2007.pdf), not a 6-digit postal code, in the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension of the supplier and of customers identified by a Colombian NIT. For example, use `11001` for Bogotá. > [accordion] How does Invopop issue invoices in Colombia? > > Through [Alegra](https://www.alegra.com), an authorized DIAN technology provider. The [send workflow](/guides/co-dian-invoicing) signs the GOBL envelope, clears it with the DIAN, stamps the CUFE and QR code, and generates a compliant PDF. > [accordion] What does a GOBL invoice need to be accepted by the DIAN? > > Set `$schema` to `https://gobl.org/draft-0/bill/invoice`, the supplier's `tax_id.country` to `CO`, and include the supplier's DIAN municipality code via the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension in its `ext`. Customers identified by a Colombian NIT need the extension too; foreign customers and `simplified` B2C invoices don't (see [When is the municipality code required?](/guides/co-dian-invoicing#when-is-the-municipality-code-required)). See the [GOBL Colombia tax regime](https://github.com/invopop/gobl/blob/main/regimes/co/README.md) for the full field reference and examples. > [accordion] Do foreign or consumer customers need a municipality code? > > No. The [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension is only required on customers identified by a Colombian NIT, that is, with `tax_id.country` set to `CO` and a `tax_id.code`. Foreign customers, `simplified` B2C invoices without a customer, and consumers identified only by a cédula build without it. Invopop can't derive the code from the NIT, so collect it for each Colombian business customer. > [accordion] Which taxes can appear on a Colombian invoice? > > VAT (IVA, 19% standard or 5% reduced), consumption taxes (IC, INC), the industry and commerce tax (ICA), and the retained taxes ReteIVA, ReteICA, and Retefuente. A single invoice may need to combine up to three value added and retained taxes, all supported by the [GOBL Colombia tax regime](https://docs.gobl.org/regimes/co#tax-categories). > [accordion] Which document types can I issue in Colombia? > > Invoices, credit notes, and debit notes. Credit and debit notes reference the corrected invoice in the `preceding` array; debit notes require every preceding entry to carry the `dian-cude` stamp of the original invoice. > [accordion] What are the sandbox limitations for Colombia? > > Only Alegra's NIT (`9005590882`) can be the supplier. Invoices use series `SETP` with codes `990000000`–`995000000` (shared across users, so avoid common codes) and today's date in Colombia. > [accordion] Why was my invoice rejected for its series or number? > > The series, code, and issue date must fall within an active DIAN numbering resolution. Resolutions are refreshed automatically, so a rejection usually means the range isn't linked to Alegra yet, or it expired or ran out and the supplier needs a new one. See [Numbering resolutions](/guides/co-dian-registration#numbering-resolutions). ### Registering supplier questions > [accordion] What does a supplier need before issuing invoices in Colombia? > > The supplier must be registered with the DIAN with an active RUT (Registro Único Tributario), complete the DIAN habilitación, and hold a valid billing numbering range authorization. The [supplier registration guide](/guides/co-dian-registration) walks through each step. > [accordion] How do I register a supplier in Colombia? > > Upload a GOBL party with the supplier's name, NIT (with verification digit), and email, then run the registration workflow. It publishes an enablement portal link under `registration-link` in the entry's meta; the supplier's legal representative completes the DIAN enablement there, and the workflow finishes once the DIAN accepts it. See the [supplier registration guide](/guides/co-dian-registration). > [accordion] What is the DIAN habilitación? > > A one-time DIAN certification required before issuing real invoices. The supplier submits a TestSetId from the DIAN portal through the hosted portal, Alegra sends the test documents, and the supplier is enabled once the DIAN accepts them. > [accordion] The enablement failed: how do I know why? > > The [enablement status](/api-ref/apps/gov-co/enablement-get) only says `failed`. The DIAN's reason is in the faults of the registration job: check the entry's job history in the Console, [fetch the job](/api-ref/transform/jobs/fetch-a-job) via the API, or receive it in a [Send Webhook](/guides/webhooks) step in the workflow's error handling flow. Fix the cause and re-run the registration workflow to start again. See [Failed enablement](/guides/co-dian-registration#failed-enablement). > [accordion] Do I need to register suppliers in the sandbox? > > Yes, but only Alegra's NIT (`9005590882`) can be registered. The enablement is simulated: enter the TestSetId `a70562e0-631e-4ceb-aa65-36887b57dc17` for an instant acceptance. Other outcomes are in the [sandbox section](/guides/co-dian-registration#sandbox) of the guide. > [accordion] Does the billing numbering range authorization expire? > > Yes. Authorizations are valid for 2 years and also end when their numbers run out. Before a range with unused numbers expires, the supplier can extend it ([extension request](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-Habilitacion-F.pdf)); once it's used up, they request a new one ([new authorization](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-AutorizacionF.pdf)). Updated resolutions are picked up automatically. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Colombia's regulation → # Croatia FAQ Source: https://docs.invopop.com/faq/croatia Frequently asked questions about invoicing compliance in Croatia ### Compliance questions > [accordion] Is e-invoicing mandatory in Croatia? > > Yes. Under Fiskalizacija 2.0 (eRačun), VAT-registered businesses established in Croatia must issue and receive structured e-invoices since January 2026. They must also report each invoice to the tax authority. Businesses that are not VAT-registered must receive e-invoices since January 2026 and issue them from January 2027. > [accordion] What are the two obligations under Fiskalizacija 2.0? > > First, exchange a structured e-invoice with the recipient over Croatia's 4-corner network. Second, report each invoice to the tax authority's Fiscalization System (CIS), separately from the exchange. The payment or the rejection of the invoice is reported later. > [accordion] Does Fiskalizacija 2.0 apply to foreign companies? > > No. The obligation covers only domestic transactions between businesses with their seat, residence or habitual residence in Croatia. A foreign supplier issues invoices to Croatian businesses on paper or in another form that the VAT rules accept. To invoice a Croatian public body, a foreign supplier uses Peppol. > [accordion] Can I send B2G invoices to Croatian public bodies over Peppol? > > Only if your business is established outside Croatia. A foreign supplier sends a Peppol BIS Billing 3.0 invoice to FINA's Peppol access point, with the recipient ID `9934:` plus the public body's OIB. A Croatian supplier sends the invoice over the Croatian network in the HR CIUS profile, the same way as to a business. It also reports the invoice to the tax authority. > [accordion] Can I use a plain Peppol invoice in Croatia? > > Not for a domestic Croatian transaction. Croatia uses the European EN 16931 standard with its own national profile (HR CIUS), and a Peppol BIS Billing 3.0 invoice does not meet it. Croatia's network uses the same technology as Peppol, but it is a separate network with its own directory. The only Peppol route is from a foreign supplier to a public body. > [accordion] When must a received invoice be reported? > > The recipient reports a received invoice to the tax authority within 5 working days. The supplier reports it at issue. Payments of outgoing invoices and rejections of incoming invoices are reported by the 20th of the following month. > [accordion] How are consumer (B2C) sales handled? > > Consumer sales stay on the older receipt system, a separate connection to the same tax authority backend. The point of sale signs each receipt, reports it in real time, and prints it with an identifier, a security code and a QR code. Since January 2026, this applies to all payment methods, not only cash. > [accordion] How long must invoices be kept in Croatia? > > Keep e-invoices for 6 years in their original structured form. > [accordion] What are the penalties for non-compliance? > > Fines go up to EUR 66,360 for companies. Software providers are responsible for the compliance of their software. No grace period applies. > [accordion] What VAT rates apply in Croatia? > > A standard rate of 25%, with reduced rates of 13% and 5%. Croatia uses the euro. ### Invoicing questions > [accordion] What format does a Croatian e-invoice use? > > The European EN 16931 standard with the Croatian national profile (HR CIUS), in UBL 2.1 or CII format. Each invoice line must also have a product classification code (KPD). > [accordion] What is the KPD code? > > KPD is Croatia's product classification. Each invoice line must have a KPD code. Credit notes and prepayment invoices do not need it. > [accordion] How do I find where a Croatian business receives invoices? > > Each recipient has one receiving address in the national directory (AMS). The supplier's intermediary looks up the recipient in AMS and sends the invoice to the access point that AMS returns. For a public body, that access point is FINA's central platform. > [accordion] Can I invoice in a currency other than euros? > > Yes, but all amounts reported to the tax authority must be in euros (EUR). > [accordion] How does a customer reject an invoice? > > The customer sends an application response message to the supplier. It then reports the rejection to the tax authority by the 20th of the following month. A customer that rejects an invoice cannot deduct its VAT. > [accordion] Do I need to be based in Croatia to provide e-invoicing services there? > > No. A company that sends or reports invoices for other businesses must be certified by the tax authority as an information intermediary. It does not have to be established in Croatia, and several foreign providers are on the official list. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Croatia's regulation → # Denmark FAQ Source: https://docs.invopop.com/faq/denmark Frequently asked questions about invoicing compliance in Denmark ### Compliance questions **Denmark** > [accordion] Am I required to issue B2B or B2C e-invoices in Denmark? > > No. As of 2026, Denmark has **no B2B or B2C e-invoicing transmission mandate**. The [Digital Bookkeeping Act](/compliance/denmark#digital-bookkeeping-act-b2b) requires businesses to use certified systems that are *capable* of sending and receiving structured e-invoices (Peppol BIS 3.0 and OIOUBL), but it does not require that every invoice is actually sent electronically. You must be ready to e-invoice, but you are not yet obligated to do so for B2B or B2C transactions. > > E-invoicing is only mandatory for **B2G** — all invoices to Danish public authorities must be submitted electronically via NemHandel or the Peppol network. A domestic e-reporting obligation covering B2B is expected by approximately 2028. **NemHandel** > [accordion] Is OIOUBL still the right format now that OIOUBL 3.0 has been cancelled? > > Yes. **OIOUBL 2.1** remains Denmark's national e-invoicing standard and is accepted alongside Peppol BIS Billing 3.0 for invoicing public authorities. What Erhvervsstyrelsen cancelled in January 2026 was **OIOUBL 3.0**, the planned successor that never left its release-candidate stage. Denmark is converging on a single Peppol-aligned standard in the longer term, but until that is specified and rolled out, OIOUBL 2.1 stays in mandatory use — with updated schematron validation rules (v1.17) applying from May 15, 2026, which the Denmark app already validates against. > [accordion] Do I have to use NemHandel to invoice Danish public authorities? > > Danish public authorities only accept electronic invoices, delivered over **NemHandel** or the **Peppol network** — paper and PDF invoices are rejected. Public entities are identified by their **EAN/GLN number** in the NemHandelsregisteret (NHR). The [Denmark app](/apps/denmark) delivers OIOUBL 2.1 invoices over NemHandel; for Peppol BIS delivery, the [Peppol app](/apps/peppol) covers the same receivers through the Peppol network. **Peppol** > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. ### Invoicing questions **NemHandel** > [accordion] What documents can I send over NemHandel with the Denmark app? > > Invoices and credit notes, as **OIOUBL 2.1** documents. Declare the [`dk-oioubl-v2` addon](https://docs.gobl.org/addons/dk-oioubl-v2) in `$addons` on the GOBL invoice: it layers the OIOUBL rules on top of the European EN 16931 baseline and rejects documents that would fail on the network before anything is sent. Reminders and invoice responses (OIOUBL ApplicationResponse) are not supported yet — they are planned for a follow-up release. > [accordion] How do I know an invoice was actually delivered? > > The send step doesn't report success on submission — it submits the OIOUBL document and then **waits until the network confirms delivery**. The job stays queued, re-checking the document's status when eCourier reports a change (and every few minutes on its own), and only completes when the document is delivered. If delivery fails, the job fails and your workflow's rescue steps run. > [accordion] Can I issue a VAT-exempt invoice? > > Not as "exempt". OIOUBL's tax category codelist supports standard-rated, zero-rated, and reverse-charge VAT, but has **no exempt category** on the wire. The `dk-oioubl-v2` addon rejects an exempt VAT key up front rather than silently relabelling it — state the supply as **zero-rated** instead. > [accordion] What happens if I run the send workflow twice on the same invoice? > > Nothing bad. A later run that finds the entry already delivered skips with a `Duplicated Invoice` result instead of resubmitting, so the receiver never gets the document twice. > [accordion] Can I generate the OIOUBL file without sending it? > > Yes. The convert step works on its own: it converts the GOBL invoice to OIOUBL 2.1, validates it against the official schematron, and stores the XML as an attachment on the silo entry under the `oioubl` file key. A workflow that only converts lets you inspect or download the file without submitting anything to the network. **Peppol** > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. ### Registering supplier questions **NemHandel** > [accordion] Why does registration involve signing an agreement? > > NemHandel registration runs through Invopop's partner **eCourier**, which requires a signed authorisation agreement from the supplier before it can create the supplier's NemHandel participant. That's why the registration workflow has three steps: publish the agreement for signing, wait until the supplier's representative signs it, and only then register the participant. > [accordion] Who signs the agreement, and how? > > A representative of the supplier — typically a director or other authorized signatory. The registration workflow publishes a **public signing link** on the party's silo entry; share it with the representative and they complete a short hosted wizard: confirm their details, review the agreement, and sign. If the party's `people` list carries a person with a name and role, the wizard prefills them as the signer. Integrators building their own onboarding UI can drive the same flow [over the API](/guides/dk-nemhandel-supplier#sign-the-agreement-via-the-api). > [accordion] What identifier is the party registered under? > > Its NemHandel participant identifier: the party's first GOBL `endpoints` entry if it has one (for example a `GLN:` number), otherwise the **`DK:CVR`** identifier derived from the party's Danish tax ID. NemHandel uses symbolic schemes (`DK:CVR`, `DK:SE`, `GLN`) rather than Peppol's numeric ISO 6523 codes. > [accordion] Why was my registration refused with “registered on NemHandel by a different workspace”? > > Each NemHandel participant can only be held by one Invopop workspace. If another workspace has already registered the same identifier, registration is refused — which workspace holds it is not disclosed. Re-running registration for a party your own workspace already registered is fine: it's treated as a retry, not an error. > [accordion] Can I unregister a party? > > Yes. Run the unregister workflow on the party's silo entry: it releases the NemHandel registration, removing the participant and the routing that delivered inbound documents to your workspace. To send or receive on behalf of that party again, you'll need to register it again. **Peppol** > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. ### Receiving questions **NemHandel** > [accordion] How do received invoices arrive? > > By push, not polling. When a document addressed to one of your registered parties lands on the network, eCourier notifies Invopop by webhook, and the Denmark app starts your configured import workflow for it. The import step fetches the document, parses the OIOUBL, converts it to a GOBL invoice, and creates a silo entry carrying the GOBL document, the original XML, and any binary attachments embedded in it. > [accordion] Which workflow processes inbound documents? > > The one you select in the Denmark app's configuration (**Configuration** → **Apps** → **Denmark** → **Configure**). Every inbound document is handed to that workflow, so create it before registering any party — its first step must be the app's import action, and everything after it is yours to shape: setting a state, filing into a folder, or any other processing. > [accordion] What happens to document types Invopop cannot process? > > The current release imports invoices and credit notes. If something else arrives — an OIOUBL ApplicationResponse or a Reminder — the app acknowledges it on the network once and fails the import job with a message naming the document type that arrived and the participant it was addressed to, so it's visible rather than silently retried forever. Support for these document types is planned for a follow-up release. > [accordion] Can a document be delivered twice? > > The network redelivers its webhook until it is acknowledged, but the import step only acknowledges a document after it has been fully processed — and a document that was already imported isn't imported again. A failure partway through leaves the document ready to retry rather than lost. **Peppol** > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Denmark's regulation → # Finland FAQ Source: https://docs.invopop.com/faq/finland Frequently asked questions about invoicing compliance in Finland ### Compliance questions **Finland** > [accordion] Is e-invoicing mandatory in Finland? > > For public buyers, yes. Under Act 241/2019, central government has received e-invoices since 1 April 2019, and all other contracting entities since 1 April 2020. Since 1 April 2021, the state receives only invoices that follow EN 16931. Between businesses there is no transmission mandate, but a business can ask its supplier for e-invoices. There is no B2C mandate. > [accordion] What is Finland's B2B 'right to request' e-invoicing? > > Since 1 April 2020, a public buyer or a business can ask another public buyer or business for its invoices as e-invoices. The act defines a business as one with an annual turnover above EUR 10,000. The rule applies to both sides, so a supplier at or below that turnover does not have to issue an e-invoice on request. The right does not apply to private persons. > [accordion] Which Peppol ID does a Finnish company use? > > Its OVT code with the scheme `0216`, for example `0216:003712345678`. The OVT code is `0037`, the 8-digit Business ID without the hyphen, and an optional suffix of up to 5 characters. The Finnish Peppol Authority allows no other scheme for Finnish organisations. > [accordion] What VAT rates apply in Finland? > > The general rate is 25.5%. The reduced rate of 13.5% applies to food, restaurant services, books, medicines, passenger transport, accommodation and events, since 1 January 2026. The reduced rate of 10% applies to newspapers and magazines. Intra-EU supplies of goods to VAT-registered buyers and exports are zero-rated. > [accordion] How long must invoices be archived in Finland? > > The Accounting Act (*Kirjanpitolaki*, 1336/1997) sets the periods. Invoices and other vouchers must be kept for at least 6 years from the end of the year in which the financial year ended. Financial statements must be kept for at least 10 years. Invoices must stay authentic, complete and readable for the whole period. Invoices about investments in real estate must be kept for 13 years. > [accordion] Does an invoice need an electronic signature in Finland? > > No. The supplier and the buyer can choose any control process that gives a reliable audit trail between the invoice and the supply. **Finvoice** > [accordion] What is Finvoice? > > Finvoice is the Finnish XML e-invoicing format, published by Finance Finland (*Finanssiala*), the association of Finnish banks. Version 3.0 can carry EN 16931 content, and it is a main format on Finland's domestic operator network. You do not produce Finvoice documents yourself. Send a GOBL invoice, and the receiver gets it in the format its operator expects. > [accordion] What are TEAPPSXML and the e-invoice address? > > TEAPPSXML is the other national e-invoice format, owned by Tieto and used between operators. To reach a company on the domestic network, you need two values from the national register at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). The e-invoice address is usually the company's OVT code. The operator ID names the operator or bank that receives for the company. > [accordion] Do I need to choose between the domestic network and Peppol? > > Yes, each network has its own app. Finland runs two e-invoicing networks side by side. The domestic operator network carries most invoices, and its address register lists about 370,000 Business IDs. Peppol is the second network. The [Finland app](/apps/finland) delivers on the domestic network, and the [Peppol app](/apps/peppol) on Peppol. To see which app a receiver needs, look them up at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi), which lists addresses on both networks. **Peppol** > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. ### Invoicing questions **Finland** > [accordion] Can I invoice a Finnish business that isn't reachable on Peppol? > > Yes. Most Finnish businesses receive e-invoices through the domestic operator network, and the [Finland app](/apps/finland) delivers there. You send one GOBL invoice with the receiver's e-invoice address, and it arrives in the format the receiver's operator expects. You can check which network a receiver is on at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). For a receiver only on Peppol, use the [Peppol app](/apps/peppol). **Finvoice** > [accordion] Why does every Finnish invoice need bank account details? > > Because in Finland an e-invoice doubles as a payment order. Finvoice was created by the banks (it's published by Finance Finland, the banking association) and grew out of the bank network, where the receiver approves the invoice for payment directly in their bank. That's why every Finvoice invoice, credit notes included, must carry the payment order: an IBAN, a payment reference, and a dated due date. Most Finnish receivers get their invoices as Finvoice, and one missing this data would fail on its way to the receiver, where we can't see it, so the [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) rejects it up front instead. > [accordion] Why was my invoice refused before it was sent anywhere? > > Two checks run before anything leaves the platform. The invoice is converted to Finvoice first, so anything the [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) refuses fails the job with the rule it broke: missing payment data, a party without an e-invoice address, an identifier too long for its element. Then the receiver must be reachable as a true e-invoice (`receiver-not-einvoice`): receivers only reachable on paper, by email, or through the consumer bank channels (e-lasku, suoramaksu, Netposti) are rejected up front, with the channel the operator would have used named in the error, rather than quietly delivered another way. > [accordion] My receiver's address is registered with two operators. Which one gets the invoice? > > The one you name. Set the operator ID the receiver gave you in the customer's `fi-finvoice-operator` extension, and the invoice is routed to that operator. Without it, the sending operator picks by its own preference, which may be the receiver's old operator. The value is the operator's OVT code (Apix Messaging is `003723327487`) or a bank's BIC, as listed beside the address at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). An operator the address is not registered with is not rejected, so check the pair rather than expecting an error. > [accordion] What does a submission with an unknown outcome mean? > > If the connection to the operator fails after the request may have already been written, we can't tell whether the invoice was accepted, and resubmitting could deliver it twice. The job reports the attempt with its timestamp under the `send-unconfirmed` code instead of retrying. Check with support before sending the invoice again. > [accordion] How do I invoice the Finnish state? > > Business-to-government is the segment where e-invoicing is mandatory in Finland, and the state applies its own reference conventions: order numbers must start with `V1`, agreement numbers with `VSK1`, and posting references with `TK1`, with at most one of each per invoice. Set the order number in `ordering.purchases` and the agreement number in `ordering.contracts` on the GOBL invoice. Invopop doesn't validate or normalise these prefixes, so format them exactly as the contracting authority provided them, or the state will reject the invoice. > [accordion] What happens after the invoice is accepted? > > The operator's synchronous accept is the final programmatic signal: there is no delivery status API to poll afterwards. If a receiving operator later rejects the invoice, that rejection arrives by email in production. No news after acceptance is good news. **Peppol** > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. ### Supplier questions **Finland** > [accordion] How do I register a Finnish supplier? > > Upload the supplier as a GOBL party with `tax_id.country = FI` and the Business ID (y-tunnus), then run the [Finland app](/apps/finland)'s registration workflow. Registration provisions the party its own operator account and allocates its e-invoice address — a party must be registered before it can send or receive anything. See the [supplier registration guide](/guides/fi-finvoice-supplier). > [accordion] What Peppol scheme does Finland use for participant IDs? > > Scheme `0216`, wrapping the party's OVT code — `0037` followed by the Business ID without its hyphen. Under Finland's Peppol Authority Specific Requirements, the OVT code is the mandatory participant identifier for Finnish organisations on Peppol. The `0037` at the start of the code itself is a country prefix, not the scheme. **Finvoice** > [accordion] What is a Finnish e-invoice address? > > An OVT code: `0037` followed by the party's Business ID (y-tunnus) without its hyphen, sometimes with a five-character suffix for routing inside large organisations (for example `003726174164`). On Peppol, the same code is wrapped in scheme `0216` (`0216:003726174164`). You can look any counterparty up in the national registry at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi): since 2024 it mirrors the Peppol address list too, so one lookup covers both networks. > [accordion] Which address form should I put on a party record? > > For a Finnish party, the OVT code, as an endpoint: `iso6523-actorid-upis::0216:` followed by the code. Registration adds it to the party for you. A supplier outside Finland uses its own electronic address, such as `iso6523-actorid-upis::0007:` followed by a Swedish Org.nr. Other forms circulate on the Finnish network (IBAN-style addresses from the older bank channel, operator-prefixed ones such as `TE0037…`), but for a Finnish party the OVT code is the canonical form, and the one the routing pre-check and the generated e-invoice use. > [accordion] Why hasn't my party's registration completed yet? > > Registration provisions the party its own account with the operator, and the job stays queued until every service is in force. For a Finnish party, it also waits until the operator has allocated its e-invoice address, so it never reports success on an account that can't receive yet. A supplier outside Finland only sends, so its registration completes as soon as its sending service is active. > [accordion] Can I register several Finnish parties in one workspace? > > Yes. Each party gets its own operator account, its own e-invoice address, and its own reception polling schedule. Register each one separately by running the registration workflow on its party record. **Peppol** > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. ### Receiving questions **Finvoice** > [accordion] How quickly do received invoices appear? > > Reception is polled, not pushed: each registered Finnish party's inbox at the operator is swept on a schedule, every five minutes by default. Add the time the sender's own operator takes to deliver, and an invoice normally appears within minutes, but not instantly. If you're testing, allow up to a quarter of an hour before suspecting a problem. > [accordion] What format do received invoices arrive in? > > Each received document becomes one entry in your workspace carrying the GOBL invoice, the original XML as received from the network, and a PDF rendering, whatever format the sender issued. > [accordion] What setup does receiving need? > > Two things: the Finland app must be configured with a sync workflow and an import workflow, and the Finnish party must be registered. Registration checks the workflow configuration first, so set the workflows up before running it. Once registered, polling starts automatically; received invoices simply appear as new entries processed by your import workflow. A party outside Finland is registered to send only. To receive its invoices, register it in the [Peppol app](/apps/peppol). **Peppol** > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Finland's regulation → # France FAQ Source: https://docs.invopop.com/faq/france Frequently asked questions about invoicing compliance in France ### Compliance questions **France** > [accordion] When does mandatory B2B e-invoicing start in France? > > 1 September 2026 for receiving (all businesses) and issuing for large/mid-size companies. 1 September 2027 extends issuing to SMEs and micro-businesses. B2G via Chorus Pro has been mandatory since 2017–2020 (phased by company size). **Chorus Pro** > [accordion] When is Chorus Pro mandatory in France? > > For all B2G transactions with French public administrations — phased in by supplier size from 2017, fully mandatory since 2020. Once an invoice is destined for a public entity, Chorus Pro is the only legal channel. > [accordion] What is required to issue invoices under Chorus Pro? > > Suppliers must register on Chorus Pro's portal and obtain credentials. Foreign businesses without a SIRET can register with their local tax ID but must verify acceptance with the receiving administration on a case-by-case basis. **PA (Plateforme Agréée)** > [accordion] How are credit notes and corrections handled? > > E-invoices cannot be deleted or retracted. Instead a credit note or corrected invoice is sent referencing the original. > [accordion] Are there special supplier obligations under France PA? > > The supplier must be registered in the Annuaire (the DGFiP-maintained directory of B2B participants) via an approved PA. Once registered, Invopop becomes the supplier's PA for sending and receiving over Peppol. > [accordion] Do SMEs have to register in the Annuaire before their e-invoicing mandate applies? > > Yes. From 1 September 2026 every French business, regardless of size, must be able to receive e-invoices, which requires an Annuaire registration through a PA. SMEs and micro-businesses are not required to issue e-invoices or e-report until 1 September 2027 — those obligations follow the company's size band, so registering to receive does not bring them forward. Until then they can be [registered for receiving only](/guides/fr-pa-registration#registering-without-e-reporting). > [accordion] What's the difference between e-invoicing and e-reporting? > > **E-invoicing** transmits the invoice itself between trading parties via Peppol, with the PPF receiving the regulated dataset as a fifth corner. **E-reporting** is a periodic submission to the PPF covering transactions out of scope for e-invoicing — B2C, cross-border B2B, and any flow where the counterparty is not in the Annuaire. > [accordion] Do I need to act if I'm B2C-only? > > Yes — B2C is exempt from e-invoicing but is subject to e-reporting. From 1 September 2026 (large and medium-sized companies) or 1 September 2027 (all businesses), B2C transactions must be reported periodically to the PPF. > [accordion] Do I have to e-report imports? > > If the supply is taxable under French reverse charge (i.e. VAT is paid on import), the transaction must be e-reported. > [accordion] When should I e-report payment data? > > Report payment data only when VAT is due on receipt of payment, such as for services under "cash VAT" (TVA sur les encaissements). > [accordion] Does this apply to foreign businesses without a Fixed Establishment (FE) in France? > > E-invoicing does not apply. If the business is liable to French VAT, e-reporting applies to the relevant flows. E-reporting for reverse-charge VAT and intra-EU acquisitions is deferred until 1 September 2027. **Peppol** > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. ### Invoicing questions **France** > [accordion] How do I configure my workspace for French invoicing? > > Two channels depending on the recipient: B2G uses Chorus Pro (CII format); B2B from September 2026 uses the Plateforme Agréée model (UBL, CII, or Factur-X via Peppol). Invopop is an approved PA — install the France PA app for B2B and the Chorus Pro app for B2G. > [accordion] How can I view an XML attached to a PDF? > > In Factur-X PDFs, the XML file is embedded within the PDF itself. To extract and view it, use the `Attachments` section in Adobe Acrobat Reader, or a tool like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/). **Chorus Pro** > [accordion] What invoice formats does Chorus Pro support? > > Chorus Pro primarily supports CII format based on EN16931. Invopop currently focuses on CII with plans to add additional formats in the future. > [accordion] Do I need a SIRET number to use Chorus Pro? > > French businesses need a SIRET number. Foreign businesses can use their local tax identifier, but should verify acceptance with the receiving French institution. > [accordion] Can I modify invoices after sending to Chorus Pro? > > Yes, you can modify and resubmit invoices until the receiving institution accepts them. Once accepted, invoices become locked and cannot be modified. > [accordion] How do I find my invoice in Chorus Pro? > > Use your GOBL invoice series and code combined as the invoice identifier in the Chorus Pro portal to locate your submitted invoices. > [accordion] Are there file size limits for Chorus Pro invoices? > > Chorus Pro has specific file size and format requirements. Invopop handles these automatically when generating CII XML files from your GOBL invoices. > [accordion] What GOBL fields are required for Chorus Pro? > > The recipient's SIRET (or equivalent identifier) plus a Chorus Pro service code where applicable. Invopop generates EN 16931 CII XML by default — UBL is also accepted by Chorus Pro. **PA (Plateforme Agréée)** > [accordion] Is Invopop ready for the September 2026 mandate? > > Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. Registration, invoicing, and lifecycle status are available today; e-reporting (Flow 10) is in active development. See the [PA hub readiness matrix](/guides/fr-pa) for the current state. > [accordion] What GOBL addons are required for France PA? > > The base [FR tax regime](https://docs.gobl.org/regimes/fr) plus the EN 16931 profile. For Peppol delivery, `peppol-bis-v3`. The forthcoming `fr-ctc-flow10-v1` addon covers e-reporting payloads — separate from the e-invoicing flow. > [accordion] Is a self-billed invoice a different document type in France? > > No. Most Peppol countries treat self-billing as a document type of its own, but France models it as a **standard invoice** with the `untdid-document-type` extension set to `389`. In GOBL you never set the code yourself: add the `self-billed` tag and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1#standard-self-billed) add-on applies it automatically. See [Self-billing](/guides/fr-pa-invoicing#self-billing) for the full flow. > [accordion] How do I send a debit note in France? > > A debit note that is subject to VAT and carries all the mandatory invoice information is sent as a regular invoice: set `type` to `standard` and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on sets `untdid-document-type` to `380`. Don't use `corrective` (`384`) unless the document corrects a previous invoice. A debit note that isn't an invoice is out of scope, so there is nothing to send. See the [debit note example](/guides/fr-pa-invoicing#pa-b2b-debit-note-treated-as-invoice). > [accordion] Why was my VAT-exempt invoice never sent to the PPF? > > Transactions exempt under articles 261 to 261 E of the CGI — insurance, medical care, education and the rest of that range — sit outside the e-invoicing mandate, and the PPF rejects them if you deposit one. When an invoice's whole VAT breakdown is exempt and carries a `VATEX-FR-CGI261*` code, Invopop records it but sends no F1 and raises no lifecycle status, and the dashboard shows it as Exempt. Keep issuing the invoice to your customer as usual. An invoice that mixes exempt and taxable lines is still sent normally, and so is `VATEX-FR-FRANCHISE`. See [VAT-exempt invoices](/guides/fr-pa-invoicing#vat-exempt-invoices). > [accordion] How many pops does a B2B e-invoice through France PA cost? > > Each invoice or lifecycle status sent through France PA costs **5 pops**: 1 pop for the conversion to UBL/CII, 2 pops to send it over Peppol, 1 pop to forward it to the PPF, and 1 pop for the silo entry. See [Pops & pricing](/get-started/pricing) for how pops work. > [accordion] What does the record document step check against the Annuaire? > > Before an invoice is recorded, the record step (**Record outgoing document for e-invoicing** when sending, **Record incoming document for e-invoicing** when receiving) looks up both the supplier and the customer SIREN in the Annuaire. What each party must satisfy depends on the workflow's role: > > | Role | Annuaire state | Outcome | > | - | - | - | > | Both | The SIREN has no effective entry | **Rejected** | > | Receiving | The SIREN has at least one effective entry | **Accepted** | > | Sending | The SIREN's only entry is the PPF's default line (matricule `9998`) | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches one of the SIREN's entries | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches none of the SIREN's entries | **Rejected** | > > Sandbox invoices skip the Annuaire check entirely. > [accordion] What should I do if the customer isn't registered in the Annuaire? > > Don't block the sale. An exchange where only one party has an > effective Annuaire entry is a > [non-regulated flow](/guides/fr-pa#key-concepts): it leaves > e-invoicing (flux 2) and is covered by > [e-reporting](/guides/fr-pa-reporting) (flux 10) instead. > > In practice: > > * Run a [Directory lookup](/guides/fr-lookup) against the > customer's SIREN before you generate the invoice — ideally in a > separate validation workflow run against customer data, so you > can prompt them to fix their registration ahead of time. > * If the SIREN has no effective entry, route the invoice through > your reporting workflow rather than the PA send workflow. > * If it slips through, the send workflow degrades rather than > failing: the **Verify document can be sent** step branches and > forwards the invoice to the PPF as *déposée – non transmise*. > > A missing entry is common and not necessarily an error. A SIREN > visible in the public > [annuaire-entreprises](https://annuaire-entreprises.data.gouv.fr) > registry is not the same as an effective entry in the DGFiP > Annuaire, which only covers entities in scope of the mandate. It > can also be absent because the buyer hasn't yet appointed a PA, or > because their tax records don't match. > [accordion] Should I check the Annuaire at order time or at invoice time? > > Both, for different reasons. A lookup at order or onboarding time > is a data-quality check: it lets you warn the customer and get > their SIREN or PA sorted before invoicing. A lookup at invoice > time is the one that decides the flow, because registrations are > added and withdrawn continuously and a party found at checkout may > no longer be routable days later (and vice versa). > > Treat the early result as advisory, resolve again at generation, > and store the resolved electronic address on the transaction — > the routing address isn't always the bare SIREN. See > [Directory lookup](/guides/fr-lookup). > [accordion] How do I know whether an invoice is B2G? > > You don't decide it yourself. When the invoice is recorded, Invopop looks the customer up in the Annuaire: a party whose line is routed to Chorus Pro is a public entity, and the invoice is marked B2G. The **Is B2G?** workflow step reads that answer and branches to **Send to Chorus Pro** instead of Peppol. See the [public sector guide](/guides/fr-pa-b2g). > [accordion] Do I need a Chorus Pro account to invoice French public entities? > > Not if your company has a French SIREN and is registered in the Annuaire through Invopop. Invopop holds the connection with Chorus Pro, so B2G invoices use the same [send workflow](/guides/fr-pa-b2g#setup) as any other French invoice. Only foreign entities without a French SIREN still go through the standalone [Chorus Pro app](/apps/choruspro-france), which requires Chorus Pro credentials. > [accordion] Where do I put the service code and the numéro d'engagement on a B2G invoice? > > The service code (*code service* or *code routage*) is a `private-id` identity on the customer, and the commitment number (*numéro d'engagement juridique*) is the purchase order reference in `ordering.purchases[0].code`. Both are supplied by the public entity. The [public sector guide](/guides/fr-pa-b2g#what-a-public-buyer-needs) lists every field. **Peppol** > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. ### Registering supplier questions **France** > [accordion] How do I onboard a new supplier in France? > > For B2B PA flows: register the supplier via the France PA Register Party workflow (publishes the SIREN to the Annuaire and Peppol). For Chorus Pro: register the supplier with their SIRET on Chorus Pro's portal and link credentials in the Chorus Pro app. > [accordion] How are supplier credentials stored in Invopop for France? > > France PA does not require supplier-side certificates — Peppol uses Invopop's AP cert. Chorus Pro uses an OAuth token bound to the supplier's account; the token is encrypted at rest in Invopop. **Chorus Pro** > [accordion] What happens if my supplier registration fails? > > Ensure the supplier has a valid Chorus Pro account and provided correct credentials. Contact support if registration workflow issues persist. > [accordion] What credentials does Chorus Pro require to authenticate a supplier? > > OAuth 2.0 client credentials issued by Chorus Pro after registration. Invopop stores the token encrypted; suppliers can revoke access at any time through Chorus Pro's portal. **PA (Plateforme Agréée)** > [accordion] How do I register a supplier with France PA? > > Run the France PA Register Party workflow with the supplier's SIREN. Invopop publishes them to the Annuaire and the Peppol SMP — they are then routable for both invoicing and e-reporting through Invopop. > [accordion] My company already uses another Plateforme Agréée for one flow. Can I register with Invopop for another? > > Yes. This is a common setup, for example a company handling AR with one PA and AP with another. Run the [registration workflow](/guides/fr-pa-registration) with a SIREN and suffix of your choice for the flow you want Invopop to handle, such as `434061839_AR`. Invoices and statuses addressed to an entry are delivered to the platform that registered it, so the two flows never conflict and act fully independently. > [accordion] Can a supplier keep sending invoices through Invopop but receive them through another PA? > > Yes. Keep the existing Invopop registration for sending, and have the other PA register a new `SIREN_suffix` electronic address in the Annuaire and Peppol for receiving, such as `434061839_AP`. The supplier then gives that address to their own suppliers. > > Electronic addresses work like email addresses: > > * Invoices arrive at whichever address the sender uses, and are delivered to the PA that registered it. > * Invoices you send from an address get their lifecycle status updates back at that same address. > > Invoices sent to the Invopop-registered address still reach Invopop, so make sure suppliers switch to the new one. > [accordion] Can I register a supplier to receive invoices without enabling e-reporting? > > Yes. Copy the PPF register supplier template and remove the **Register party for reporting** step. The party gets its Annuaire line and Peppol inbox and can receive invoices, but no reporting cadence starts. When its obligations begin, run the removed step against the party to complete the registration. See [Registering without e-reporting](/guides/fr-pa-registration#registering-without-e-reporting). > [accordion] What certificates does France PA require to authenticate a supplier? > > None at the supplier level. The Plateforme Agréée holds an OpenPeppol-issued mTLS certificate (Invopop's), and the PA-to-PPF channel uses additional DGFiP credentials managed by Invopop. > [accordion] Registration fails with 'Le SIREN en entrée n'existe pas...'. What does that mean? > > This error means the PPF has not yet referenced the SIREN in the annuaire de la facturation électronique. Before an accredited platform like Invopop can register a directory entry, the PPF has to list the SIREN first — even if the company is correctly registered and active with the tax administration, there may still be no directory entry for a PA to take over. > > The fix has to come from the tax administration, not from Invopop: > > 1. Confirm the business is in scope for the reform using the [PPF's questionnaire](https://www.impots.gouv.fr/facturation-electronique-qu-est-ce-que-ca-change-pour-moi). > 2. If it's in scope but still missing from the directory, have the business or its accountant contact the Service des Impôts des Entreprises (SIE) that handles it and ask for the SIREN to be referenced in the annuaire. > 3. For general questions about the reform, the DGFiP runs a free national helpline: 0 806 807 807. > > Invopop has no way to create the directory entry directly — only the SIE can. Once the supplier confirms the SIREN is referenced, re-run the [registration workflow](/guides/fr-pa-registration). > [accordion] Registration fails with 'has more than two parts, which would imply a routing code'. What does that mean? > > The party's `peppol` inbox `code` has three parts, such as `526018155_52601815500012_AP`. In the Annuaire, an address with a third part carries a routing code (*code routage*), which Invopop doesn't support. > > Use one of the supported forms instead: `SIREN`, `SIREN_SIRET`, or `SIREN_suffix`. If you need an address of your own alongside the company's other addresses, for example because you only issue invoices on its behalf, register a dedicated `SIREN_suffix` such as `526018155_PLATFORMNAME`. See [Choosing the electronic address](/guides/fr-pa-registration#choosing-the-electronic-address). > [accordion] How many pops does registering a merchant (seat) for France cost? > > It depends on the flows the merchant uses: > > * **E-invoicing (B2B)** — **150 pops** per merchant: 50 pops for the French directory (Annuaire) registration plus 100 pops for Peppol. > * **E-reporting only (B2C or international B2B)** — **50 pops** per merchant to register the party for reporting. > > Each registered merchant counts as a seat: the same seat pops are deducted on registration and again every 30 days for as long as the merchant stays registered — see [Pops & pricing](/get-started/pricing) for how seats are billed. > [accordion] How does the 5-day deadline work? > > The company has 5 business days, to answer, counted from the moment Invopop receives the request and ending at the same time of day (Paris time). For example, a request received on Friday at 15:00 expires the following Friday at 15:00. French public holidays are not taken into account. The form shows the date to answer by. > > Until then, **Wait for migration response** stays queued, and the workflow continues as soon as the company answers. If the address is still unanswered at the deadline, Invopop accepts it automatically: on the date the new PA requested when that is still possible, otherwise on the earliest possible date. Once the response is sent, the answer can't be changed. > > The deadline only applies to workspaces with a migration workflow configured. > [accordion] Which effective dates can the company choose? > > The form's calendar only offers dates from the earliest the switch can happen: at least 3 business days and 4 calendar days from the answer, whichever is later. Business days are Monday to Friday. > > If the company accepts without choosing a date, the date the new PA requested is used. If that date is already too soon, the earliest possible date is used instead, and the answer is sent as `ACWC`. > [accordion] When is a migration request complete? > > An incoming request can cover several addresses, and each address gets its own job and form. Each answer is sent to the new PA as soon as it's given, with the addresses not answered yet marked pending. > > The request is complete once every address in it has been answered and the last answer has been sent. Until then, it shows as **Received** in the [Migrations tab](/guides/fr-pa-migrations#reading-migrations). > [accordion] What does the Reason in the Migrations tab mean? > > When an address was refused, the side panel of the [Migrations tab](/guides/fr-pa-migrations#reading-migrations) shows the Reason next to the Decision. `REFUS_CLIENT` means the company refused the takeover, and `ADRESSE_INCONNUE` means the address isn't held at Invopop. Reasons from other platforms appear as they sent them. > [accordion] What happens if I don't have a migration workflow configured? > > Invopop receives and records the request, but no workflow job starts for your workspace's addresses: there is no form link, no automatic acceptance at the deadline, and no `MOBILITY_RESPONSE` is sent to the other PA. > > To answer it, add the [PPF incoming migration](/guides/fr-pa-migrations#setup) workflow and select it in the France app configuration, then contact Invopop support to have the pending request processed again. The 5-day deadline still counts from when the request first arrived, so if it has already passed, the address is accepted automatically as soon as the workflow runs. > [accordion] Does the 'Start Peppol migration' action always have to run? > > No, it's optional. Run it on the `accepted` branch when the party is registered on Peppol: its migration key is passed to the new PA, which uses it to move the party's Peppol registration. > > Without it, the response carries `NEANT`, meaning there is nothing to migrate on Peppol. The key is never sent for refused addresses. > [accordion] What outcomes does the 'Wait for migration response' action have? > > The step stays queued until the company answers or the deadline passes, then ends with one of these codes: > > * `accepted`: the address was accepted, on the requested date or another one, either by the company or automatically at the deadline. > * `rejected`: the company refused the takeover. The response is sent as `RJCT` with motif `REFUS_CLIENT`. > > Both outcomes continue to **Complete incoming migration**, which sends the answer to the other PA. A typical workflow runs **Start Peppol migration** only on the `accepted` branch. **Peppol** > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. ### Receiving questions **France** > [accordion] How do I import received invoices in France? > > Register the recipient with Invopop as their Plateforme Agréée. Inbound documents (UBL, CII, Factur-X) are converted to GOBL and stored in the Expenses folder. Chorus Pro inbound flow is separate and routes via the Chorus Pro app. > [accordion] How does Invopop convert received French invoices into GOBL? > > UBL via [`gobl.peppol`](https://github.com/invopop/gobl.peppol); CII and Factur-X via [`gobl.cii`](https://github.com/invopop/gobl.cii). The original structured XML (or PDF/A-3 with embedded XML) is preserved as a silo entry attachment. **PA (Plateforme Agréée)** > [accordion] How do I import received invoices via France PA? > > Register the recipient via Invopop as their PA. Inbound UBL/CII/Factur-X documents are routed to the configured Import workflow and become GOBL silo entries. Lifecycle status updates (CDAR) feed back to the issuer through the same channel. > [accordion] What format do received France PA invoices arrive in? > > UBL, CII, or Factur-X (PDF with embedded CII XML), all conforming to EN 16931 and the French CTC profile. Invopop preserves the original and exposes the GOBL conversion. > [accordion] Can I receive invoices at more than one platform (PDP) for the same company? > > Yes. A single company can be reachable at several destinations by registering different routing identifiers (electronic addresses) in the Annuaire — one per PDP or inbox. Invoices addressed to a given identifier are delivered to the platform registered against it, so you can route some invoices to Invopop and others to a different PDP (for example a travel-and-expense tool) for the same SIREN. > > The Annuaire supports several address formats that map to increasingly granular destinations within the same company: > > * `SIREN` — the company as a whole. > * `SIREN_SIRET` — a specific establishment. > * `SIREN_SIRET_ROUTINGCODE` — a site, department, or workflow within an establishment. > * `SIREN_SUFFIX` — a custom routing suffix. > > Give each PDP or inbox a distinct identifier and share the matching address with each issuer, so their invoices reach the intended destination. You can [look up an electronic address](/guides/fr-lookup) in the Annuaire to confirm where it currently routes. > [accordion] What is checked before a received invoice is recorded? > > An invoice arriving from another platform goes through three controls, run in the order the PPF applies them: > > * **Syntax** — the invoice XML against the Flux 2 schematron for its syntax. > * **Addressing** — both parties carry a SIREN registered in the Annuaire, the transport addresses belong to the parties the invoice names, and the invoice is addressed to a party registered in your workspace. > * **Unicity** — the invoice is not already recorded for this party, number and year. > > An invoice that passes every control is recorded on the receiving side. Only invoices are validated this way; incoming lifecycle statuses are simply recorded. > [accordion] What reason does a rejected invoice come back with? > > Each control rejects under its own CDAR motif, carried on the [`213` Rejetée](/guides/fr-pa-status#issued-by-the-platform) status returned to the platform that sent the invoice: > > * `REJ_SEMAN` — *rejet pour erreur sémantique*, when the invoice fails the Flux 2 schematron. > * `ADR_ERR` — *adresse de facturation électronique erronée*, when the addressing control fails. > * `REJ_UNI` — *rejet sur contrôle unicité*, when the invoice is already recorded. **Peppol** > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. ### Reporting questions **France** > [accordion] How do I schedule periodic reports for France? > > For TVA, file via DGFiP's portal — Invopop does not generate CA3 yet. For e-reporting (Flow 10): submit via your Plateforme Agréée — Invopop's e-reporting workflow batches transactions per period and submits to the PPF. > [accordion] What format does France expect for periodic reports? > > TVA: DGFiP's EDI-TVA XML schema. E-reporting Flow 10: a structured JSON/XML payload defined by the PPF specification (currently in beta). Invopop emits Flow 10 via the upcoming `fr-ctc-flow10-v1` GOBL addon. **PA (Plateforme Agréée)** > [accordion] How often must I submit France PA reports? > > Flow 10 e-reporting: 3× per month (every 10 days) for B2C and cross-border transactions. Lifecycle status (CDAR): per event, near real-time. Specific deadlines depend on the supplier's tax filing cadence (monthly/quarterly). > [accordion] What format does France PA expect for periodic reports? > > Flow 10 uses a JSON envelope wrapping aggregated transaction data, defined in the PPF technical specification. Lifecycle CDAR payloads are XML messages exchanged over Peppol with structured status codes. > [accordion] How many pops does e-reporting in France cost? > > Recording a transaction for e-reporting (B2C or international B2B) costs **2 pops** per invoice: 1 pop to record it and 1 pop for the silo entry. On top of that, each report submission costs **10 pops**. See [Pops & pricing](/get-started/pricing) for how pops work. > [accordion] A buyer has refused an invoice (210 Refusée). What happens next? > > A refusal cancels the invoice. It can't be corrected, re-sent, or > revived — the transaction has to be re-invoiced from scratch, and the > refusal is reported to the DGFiP. > > | Who | What they do | > | - | - | > | **Buyer** | Refuses with a reason code, and does not book the invoice (or reverses the entry if already booked). Their input VAT for the period drops accordingly. | > | **Supplier** | Reverses the invoice in their own accounts with an internal credit note (*avoir interne*), which stays internal and is never sent. Adjusts output VAT for the period. | > | **Supplier** | Fixes the underlying problem, then issues a replacement as a new invoice with a new number. The refused number is never reused. | > | **Invopop** | Records the refusal against the original invoice, passes the reason code back to you, and forwards the mandatory copy to the PPF. | > > **Refusal is not a dispute.** It is reserved for a short list of > grounds: a legal or contractual omission the platforms don't check > (a missing PO reference, for instance), a transaction the buyer > doesn't recognise, or an objective contractual block. Disagreement > over price, quantity, or delivery is a dispute — the invoice stays > in force and payable while the parties sort it out. Expect buyers to > reach for "refuse" when they mean "contest", and give them a > separate path if you're building the UI. > > **Payment terms restart.** The replacement invoice carries its own > due date, so agree explicitly with the counterparty how late-payment > penalties are treated across the gap rather than assuming the > original clock survives. > > **Most refusals are preventable.** The common grounds trace back to > the mandatory mentions: buyer SIREN, delivery address where it > differs from billing, nature of the operation, and any PO reference > the buyer requires. Getting those right on issue removes most of the > exposure. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about France's regulation → # Germany FAQ Source: https://docs.invopop.com/faq/germany Frequently asked questions about invoicing compliance in Germany ### Compliance questions **Germany** > [accordion] When does mandatory B2B e-invoicing start in Germany? > > Receiving capability has been mandatory since 1 January 2025. Issuing becomes mandatory on 1 January 2027 for companies with prior-year turnover above €800k, and 1 January 2028 for everyone else. B2G has been mandatory since 2020. > > The €800k threshold only applies during the transition. Until the end of 2026 any business can still send paper invoices, and PDF invoices if the customer agrees. In 2027 only businesses at or below €800k can keep doing so. From 2028 every domestic B2B invoice above €250 must be an e-invoice, regardless of turnover. > [accordion] Are any invoices exempt from mandatory e-invoicing in Germany? > > Yes. Small-amount invoices (*Kleinbetragsrechnungen*) with a total of €250 or less, VAT included, can still be issued as regular invoices, such as paper or PDF (§ 33 UStDV). The limit applies to each invoice separately, so a business that otherwise has to e-invoice can still send a PDF for an invoice of €250 or less. Above €250, a structured e-invoice (XRechnung or ZUGFeRD) is required. > > Passenger transport tickets (§ 34 UStDV) and supplies that are tax-exempt under § 4 Nr. 8 to 29 UStG are also excluded, as listed in the BMF letter of 15 October 2024. These exemptions only cover issuing: every German business must still be able to receive e-invoices. > [accordion] Is there a legal mandate to use Peppol? > > There is no legal mandate to use Peppol in Germany. The requirement is to issue and receive invoices in a structured, EN 16931-compliant format (like XRechnung or ZUGFeRD). > > In practice, Peppol is by far the most widely used network, because it is the standardized, government‑endorsed way to exchange XRechnung invoices electronically with German public authorities and, increasingly, with large businesses. Using Peppol ensures: > > * Interoperability with virtually all public sector recipients. > * Compliance with format and technical rules without having to negotiate separate connections or portals. > * Access via certified Peppol Access Points, which handle validation and delivery. > * Other delivery channels exist (email, portal upload), but they are often less convenient, less standardized, and may not scale for high-volume or cross-border invoicing. So, while Peppol isn't legally required, almost everyone uses it in practice for compliance and efficiency. > [accordion] Are there any issuing timing requirements in Germany? > > Timing is linked to contractual and procedural deadlines, not a specific law that defines a universal submission window. However, in the context of B2G many authorities specify invoice submission within 10 days of service completion in their contracts or portals, so it's best to issue the invoice as early as possible. > > In the case of B2B the general VAT rule states that the invoice must be issued within 15 days after the end of the month in which the supply was made, if the transaction is subject to VAT and involves another taxable business. This 15-day window is critical because late issuance can make VAT reporting inconsistent between supplier and customer and it may also affect the buyer's right to input VAT deduction. > [accordion] Who can act as a supplier in Germany? > > Any entity with a Steuernummer (tax number) or USt-IdNr (VAT ID). Foreign suppliers selling into German B2G need a valid VAT ID and a Leitweg-ID provided by the recipient. > [accordion] Are there special supplier obligations under Peppol in Germany? > > For B2G, the supplier must include the recipient's Leitweg-ID (the German B2G routing identifier) in the BuyerReference field. For B2B, no extra obligations beyond the standard Peppol participant registration. > [accordion] What are the legal obligations for receiving invoices in Germany? > > Since 1 January 2025, every German VAT-registered business must accept structured e-invoices (XRechnung, ZUGFeRD ≥ EN 16931). Archival in original format for 8 years (§ 14b UStG) — the structured XML is the legal record, the PDF is supplementary. > [accordion] What periodic reporting obligations exist in Germany? > > Monthly or quarterly Umsatzsteuer-Voranmeldung (USt-VA) and the annual Umsatzsteuerjahreserklärung. Cross-border B2B sales also require Zusammenfassende Meldung (EC sales list). E-reporting tied to e-invoicing is expected from 2028 but not yet legislated. **Peppol** > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. ### Invoicing questions **Germany** > [accordion] How do I configure my workspace for German invoicing? > > Pick a format based on the recipient: XRechnung (UBL or CII) for B2G via Peppol, ZUGFeRD/Factur-X for B2B where a human-readable PDF is also wanted. Both are EN 16931-compliant — Invopop generates either from the same GOBL invoice. > [accordion] What's the workflow for issuing Peppol invoices in Germany? > > Generate a GOBL invoice with the `de-xrechnung-v3` addon, then run the Peppol Send workflow. Invopop emits XRechnung (UBL or CII per recipient preference), looks up the recipient's Access Point, and delivers via Peppol. > [accordion] Which XRechnung syntax should I choose, UBL or CII? > > Both syntaxes are equally valid and contain the same information, so in the majority of cases the choice has no consequences. > > If you plan on sending invoices through the Peppol network, we recommend using UBL as it is the supported format. If you plan on also issuing invoices in ZUGFeRD or Factur-X, it might be more convenient to use CII, as it is the syntax also supported by ZUGFeRD and Factur-X. > [accordion] How can I view an XML attached to a PDF? > > For ZUGFeRD PDFs, the XML file is embedded within the PDF itself. To extract and view it, you can use the `Attachments` section in Adobe Acrobat Reader. > > Alternatively, you can use specialized tools like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/) to extract the XML file. > [accordion] Where do I find Germany-specific GOBL documentation? > > See the [Germany tax regime in GOBL](https://docs.gobl.org/regimes/de) for tax categories and identifiers. The XRechnung mapping lives in [`de-xrechnung-v3`](https://docs.gobl.org/addons/de-xrechnung-v3); ZUGFeRD/Factur-X share the EN 16931 CII profile. **Peppol** > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. ### Registering supplier questions **Germany** > [accordion] How do I onboard a new supplier in Germany? > > No certificate-based registration is required to issue. To send via Peppol, register the supplier as a Peppol participant (typically by USt-IdNr scheme `9930`). For ZUGFeRD/Factur-X, no registration is needed — the supplier just attaches the XML to their PDF. > [accordion] How do I register a supplier with Peppol in Germany? > > Run the Register Participant workflow with the supplier's USt-IdNr (scheme `9930`). Invopop publishes the participant in Peppol's SMP and routes outbound documents from that point onward. **Peppol** > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. ### Receiving questions **Peppol** > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Germany's regulation → # Greece FAQ Source: https://docs.invopop.com/faq/greece Frequently asked questions about invoicing compliance in Greece ### Compliance questions **Greece** > [accordion] When does mandatory e-invoicing start in Greece? > > B2G has been mandatory since 2023 (phased in by company size). B2B reporting through myDATA has been mandatory for all transactions since 2021. Full structured B2B e-invoicing is being phased in following EU ViDA timelines. > [accordion] Who can act as a supplier in Greece? > > Any entity with a Greek AFM (tax ID) registered with the IAPR. Foreign businesses operating in Greece need a Greek fiscal representative or a non-resident AFM. > [accordion] What are the legal obligations for receiving invoices in Greece? > > Recipients must classify each received invoice in myDATA (καταχώρηση) within the deadline matching their books. Standard archival is 5 years. > [accordion] What periodic reporting obligations exist in Greece? > > Monthly or quarterly VAT (Φ2) declarations, plus the annual VAT clearing return (Φ1). Withholding taxes have their own schedule. myDATA classification of issued and received invoices is continuous and feeds the periodic returns. **myDATA** > [accordion] What invoice types are available for myDATA? > > Greece's myDATA system uses a detailed set of invoice type codes that classify every transaction reported to the tax authority (IAPR). Each type has a numeric code (like `1.1` or `11.1`) and describes the nature of the transaction — whether it's a standard sale, a service, a credit note, a retail receipt, and so on. > > When using GOBL, many of these types are assigned automatically based on the invoice type and tags you set. For the rest, you can set the `gr-mydata-invoice-type` extension directly in the tax section of your invoice, using type `other`. > > ### Sales Invoices (1.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `1.1` | Sales Invoice | `standard` | `goods` | > | `1.2` | Sales Invoice / Intra-community Supplies | `standard` | `goods`, `export`, `eu` | > | `1.3` | Sales Invoice / Third Country Supplies | `standard` | `goods`, `export` | > | `1.4` | Sales Invoice / Sale on Behalf of Third Parties | `standard` | `goods`, `self-billed` | > | `1.5` | Sales Invoice / Clearance of Sales on Behalf of Third Parties | `other` | — | > | `1.6` | Sales Invoice / Supplemental Accounting Source Document | `other` | — | > > ### Service Invoices (2.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `2.1` | Service Rendered Invoice | `standard` | *(default)* or `services` | > | `2.2` | Intra-community Service Rendered Invoice | `standard` | `services`, `export`, `eu` | > | `2.3` | Third Country Service Rendered Invoice | `standard` | `services`, `export` | > | `2.4` | Service Rendered Invoice / Supplemental Accounting Source Document | `other` | — | > > ### Credit Invoices (5.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `5.1` | Credit Invoice / Associated | `credit-note` | — | > | `5.2` | Credit Invoice / Non-Associated | `other` | — | > > ### Retail / Simplified (11.x) > > | Code | Description | GOBL Type | Tags | > | - | - | - | - | > | `11.1` | Retail Sales Receipt (ΑΛΠ) | `standard` | `goods`, `simplified` | > | `11.2` | Service Rendered Receipt (ΑΠΥ) | `standard` | `services`, `simplified` | > | `11.3` | Simplified Invoice | `standard` | `simplified` | > | `11.4` | Retail Sales Credit Note | `credit-note` | `simplified` | > | `11.5` | Retail Sales Receipt on Behalf of Third Parties | `standard` | `goods`, `simplified`, `self-billed` | > > Additional codes exist for proof of expenditure (3.x), self-delivery / self-supply (6.x), contracts and rents (7.x, 8.x, 15.x, 16.x), expense / purchase records (13.x, 14.x), and accounting entries (17.x). > [accordion] What if my business already uses another myDATA provider? > > Greek regulation does not allow two myDATA providers to operate simultaneously for the same VAT number. If your business currently uses a different provider, you will need to switch to Invopop's provider (ILYDA) before issuing invoices through the platform. > > The regulatory restriction applies to simultaneous use of multiple providers, not to changing from one to another. See the [myDATA supplier registration guide](/guides/gr-iapr-supplier) for details on the onboarding process, or contact us via Slack or [support@invopop.com](mailto:support@invopop.com). > [accordion] Are there special supplier obligations under myDATA? > > Each AFM can have only one active myDATA provider at a time — switching providers requires deregistering the previous one in Taxisnet. The supplier must also declare its issuance branch (κλειδί χρήστη) and issuance series (σειρά). > [accordion] What are the legal obligations for receiving invoices through myDATA? > > Recipients must classify (χαρακτηρισμός) every issued invoice that lists them as counterpart, by the periodic return deadline. Failure to classify exposes the recipient to fines and discrepancies in IAPR's automated VAT reconciliation. > [accordion] What reporting obligations does myDATA impose? > > Continuous: every issued invoice transmitted in real time, every received invoice classified. Supplementary monthly/quarterly aggregations (e.g., E3 income statements) reconcile to myDATA totals automatically — discrepancies trigger IAPR queries. ### Invoicing questions **myDATA** > [accordion] What's the workflow for issuing myDATA invoices? > > Build a GOBL invoice with the `gr-mydata-v1` addon, run the IAPR Issue Invoice workflow. Invopop signs and transmits via ILYDA, retrieves the MARK identifier, and stores it on the silo entry. > [accordion] How do I configure my workspace for Greek invoicing? > > Install the ILYDA Greece app, register the supplier (one provider at a time per VAT — see our FAQ), and run invoices through the IAPR workflow. PDFs are generated alongside the myDATA submission. > [accordion] How are Greek invoice types specified? > > The Greek tax authority (IAPR) requires the invoice type to be specified as part of the invoice. In [GOBL](https://docs.gobl.org), this type can be set using the `gr-mydata-invoice-type` extension in the tax section and setting the [GOBL invoice type](https://docs.gobl.org/draft-0/bill/invoice) to other. > > Alternatively, GOBL will set the extension for you based on the type and the tax tags you set in your [GOBL invoice](https://docs.gobl.org/draft-0/bill/invoice). You can read more in the [GOBL Greece Tax Regime readme](https://github.com/invopop/gobl/blob/main/regimes/gr/README.md). > > If you produce a PDF version of the invoice, the invoice type label will be displayed instead of "Invoice". > [accordion] Where can I find the mapping of GOBL fields to myDATA? > > For further details on how GOBL prepares data for conversion, see the [Greek Tax Regime](https://github.com/invopop/gobl/blob/main/regimes/gr/README.md). > [accordion] Why is my credit note being rejected with 'Invoice not found' error? > > If you issue a credit note shortly after the invoice it refers to, the MyDATA system may reject it because the original invoice hasn't completed synchronization. You'll typically see an error like: > > ``` > Fatal error 301: Invoice with ΜΑΡΚ xxxx not found for VAT number xxxx > ``` > > This happens because there can be a delay between when an invoice is accepted by MyDATA and when it becomes fully available for reference by other documents like credit notes. This delay can range from a few minutes to several hours, depending on MyDATA system load. > > **Solution**: If you receive this error, retry issuing the credit note after waiting some time. You may need to wait anywhere from a few minutes to several hours for the original invoice to be fully synchronized in the MyDATA system before the credit note can successfully reference it. > [accordion] How do I issue invoices from a branch (υποκατάστημα)? > > Set the [`gr-mydata-branch`](https://docs.gobl.org/addons/gr-mydata-v1#branch-number) extension on the supplier party to the branch's establishment number from the AADE registry. When the extension is absent, invoices report the headquarters branch (`0`). The same extension works on the customer party. See the branch invoice example in the [myDATA invoicing guide](/guides/gr-iapr#send-an-invoice). > [accordion] Where do I find Greece-specific GOBL documentation? > > See the [Greece tax regime in GOBL](https://docs.gobl.org/regimes/gr) for tax categories and AFM rules. The myDATA mapping lives in [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) including all invoice type codes. ### Registering supplier questions **myDATA** > [accordion] How do I register a supplier with myDATA? > > Contact Invopop to begin the onboarding flow with ILYDA. Production registration is multi-step: the supplier authorizes ILYDA in Taxisnet, declares ILYDA as their issuer in myDATA, and signs ILYDA's service agreement, then onboards with Invopop. Sandbox uses a shared pre-registered test AFM (`177472438`) — no manual steps required. > [accordion] What credentials does myDATA require to authenticate a supplier? > > No supplier-side certificates. ILYDA submits to myDATA on the supplier's behalf using its provider credentials, authorized by the supplier through Taxisnet. The supplier holds only their Taxisnet username/password. > [accordion] How are supplier credentials stored in Invopop for Greece? > > Suppliers don't upload credentials to Invopop — ILYDA holds the IAPR submission credentials on the supplier's behalf based on the Taxisnet authorization. Only the AFM and registration metadata are stored in Invopop. > [accordion] How do I de-register a supplier from myDATA? > > The provider authorization is managed by the supplier in Taxisnet, so de-registration happens there: the supplier logs in to [myTaxisnet](https://www1.gsis.gr/taxisnet/mytaxisnet), opens the **Authorizations** ("Εξουσιοδοτήσεις") section, and revokes ILYDA's authorization — or replaces it by authorizing a different e-invoicing provider if they are migrating. There is no automated de-registration flow in Invopop, so also notify [support@invopop.com](mailto:support@invopop.com) to complete the offboarding with ILYDA. > [accordion] Is re-registering a supplier different from a new registration? > > No — the process is the same. Registration and re-registration are both handled manually through Invopop support, so a previously de-registered supplier follows the [supplier registration guide](/guides/gr-iapr-supplier) again from the start: re-authorize ILYDA in Taxisnet and send the supplier's details to [support@invopop.com](mailto:support@invopop.com). > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Greece's regulation → # Hungary FAQ Source: https://docs.invopop.com/faq/hungary Frequently asked questions about invoicing compliance in Hungary > [accordion] Coming soon > > FAQ content for Hungary is being prepared. For specific questions, please contact [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Hungary's regulation → # Italy FAQ Source: https://docs.invopop.com/faq/italy Frequently asked questions about invoicing compliance in Italy ### Compliance questions **Italy** > [accordion] When did mandatory e-invoicing start in Italy? > > 1 January 2019 for all B2B and B2C transactions between resident parties (B2G has been mandatory since 2014). 1 July 2022 extended the mandate to flat-rate scheme contributors. Cross-border B2B is reported via SDI (the esterometro was retired in 2022). > [accordion] Who can act as a supplier in Italy? > > Any entity with an Italian Partita IVA (VAT number) — companies, professionals, and flat-rate scheme contributors. Codice Fiscale alone is not sufficient for invoicing through SDI. > [accordion] What are the legal obligations for receiving invoices in Italy? > > All resident businesses must receive electronic invoices through SDI — it's the only legal channel. Invoices must be archived in their structured FatturaPA XML form for 10 years. > [accordion] What periodic reporting obligations exist in Italy? > > Quarterly VAT (LIPE), annual VAT return (Modello IVA), Esterometro (cross-border B2B summary, replaced by SDI direct submission since 2022), and Modello 730/Redditi for personal returns. SDI clearance handles the per-invoice reporting layer. **SDI** > [accordion] Is electronic invoicing mandatory in Italy? > > Yes, electronic invoicing through SDI is mandatory in Italy for B2G, B2B, and B2C transactions. > > All invoices must be issued in FatturaPA format and transmitted through the SDI (*Sistema di Interscambio*) platform. > [accordion] How can I correct an invoice in SDI? > > There are two main ways to correct an invoice in the Italian SDI system: > > 1. Issue a credit note (Nota di Credito - TD04) to fully or partially cancel the original invoice. > 2. Issue a debit note (Nota di Debito - TD05) to integrate/correct the original invoice with additional charges. > > The corrective document must reference the original invoice number and date. > > An invoice *rejected* by SDI is different: it has no legal existence, so correct it and send a fresh one rather than issuing a credit note. > [accordion] Are there special supplier obligations under SDI? > > The supplier must have an active Partita IVA registered with the Agenzia delle Entrate. Invopop transmits on the supplier's behalf over its own accredited channel — no individual supplier certificate is required. > [accordion] What are the legal obligations for receiving invoices through SDI? > > Recipients must register a Codice Destinatario (recipient code) with the Agenzia delle Entrate. Once registered, all incoming invoices route through SDI to the registered channel. Archival in original XML for 10 years. > [accordion] Is keeping my own copy of the invoices enough to satisfy Italian archiving rules? > > No. Italian law requires long-term preservation through a certified process (*conservazione a norma*), which has to follow the rules set by the authorities — in practice, an accredited provider. Invopop preserves the exact XML exchanged with SDI and attaches the preservation receipt to the invoice; see the [archiving guide](/guides/it-sdi-archiving). **Smart Receipts** > [accordion] When should I use AdE CF Smart Receipts? > > For B2C transactions where the customer's Codice Fiscale or Partita IVA is unknown — typical retail or online checkouts. AdE CF generates a Documento Commerciale (commercial receipt) instead of a FatturaPA. Once the customer's tax ID is known, regular SDI invoicing must be used. > [accordion] Are there special supplier obligations under Smart Receipts? > > The supplier must have a Partita IVA and operate in a sector that issues commercial receipts (retail, hospitality, etc.). They need to register with Agenzia delle Entrate as an AdE CF issuer before going live. > [accordion] What reporting obligations do Smart Receipts impose? > > Each documento commerciale is transmitted in real time through the AdE CF service; the Agenzia delle Entrate derives daily corrispettivi totals automatically, replacing the historical *registratore di cassa* daily total. ### Invoicing questions **Italy** > [accordion] How do I configure my workspace for Italian invoicing? > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > [accordion] How do I issue a documento commerciale (scontrino)? > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > [accordion] Where do I find Italy-specific GOBL documentation? > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. **SDI** > [accordion] Why is my invoice processing taking so long? > > The **Send invoice to SDI** step completes as soon as SDI accepts the file — it doesn't wait for SDI's verdict. What takes time is SDI's own processing: a rejection usually arrives within minutes, but delivery confirmations can take up to 5 days. Each verdict is recorded against the invoice as a status entry, so nothing is stuck while you wait. See the [status guide](/guides/it-sdi-status) for the full lifecycle. > [accordion] How do I know if my invoice was delivered successfully? > > SDI confirms delivery with an `RC` (*ricevuta di consegna*) notification, recorded on the invoice as a status entry with the GOBL status `acknowledged`. A rejection arrives as `NS` with status `error`. Every notification and what it means is covered in the [status guide](/guides/it-sdi-status). > [accordion] How do I test different SDI outcomes in the sandbox? > > Set a reserved *codice destinatario* on the customer — for example `SIMNS00` to simulate a rejection. The sandbox simulates SDI end to end and feeds back the notifications a real exchange would produce; any ordinary code resolves to a successful delivery. The full list of reserved codes is in the [issuing guide](/guides/it-sdi-invoicing#testing-in-the-sandbox). > [accordion] How do I add codice fiscale and Partita IVA? > > Both Italian tax identifiers have their own place on a party. The *partita IVA* (VAT number) goes in `tax_id`, and the *codice fiscale* goes in `identities` under the key `it-fiscal-code`. A party may carry both. > > An Italian supplier always needs a *partita IVA*. An Italian customer needs at least one of the two — which one depends on who they are, covered in the [issuing guide](/guides/it-sdi-invoicing#identifying-the-customer). > > Here's an example showing both identifiers on a supplier: > > ```json Supplier with Partita IVA and Codice Fiscale theme={"system"} > { > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "MRTMTT91D08F205J" > } > ] > } > } > ``` > [accordion] How do I invoice a customer outside Italy? > > Send it through SDI as usual — an Italian supplier reports the invoice there whoever the customer is. SDI has no way to deliver outside Italy, though, so it won't reach the customer that way: send them their copy yourself, normally as a PDF. It's the same invoice travelling by two routes, and only the FatturaPA file is the legal one. > [accordion] What if the customer has no tax ID at all? > > An Italian customer needs either a *partita IVA* or a *codice fiscale*. A customer outside Italy needs neither — their country is enough, so leave the code out rather than inventing a placeholder. See [identifying the customer](/guides/it-sdi-invoicing#identifying-the-customer). > [accordion] How do I reference a receipt (documento commerciale) in an SDI invoice? > > Add an item attribute to the invoice line with `type` `N.DOC.COMM` and the receipt's identifier in `text`, its progressive number in `amount` and its date in `date`. The `it-sdi-v1` addon writes each item attribute as an `AltriDatiGestionali` block (`TipoDato`, `RiferimentoTesto`, `RiferimentoNumero`, `RiferimentoData`). The `type` is limited to 10 ASCII characters. See the "Invoice after a documento commerciale" example in the [issuing guide](/guides/it-sdi-invoicing#example-invoices). **Smart Receipts** > [accordion] How do I correct mistakes in an issued AdE CF invoice? > > You cannot modify an AdE CF invoice after issuing it. Instead you must: > > 1. Void the incorrect invoice using the "Void AdE CF Invoices" workflow > 2. Issue a new invoice with the correct information > [accordion] Do I still need to add a series and code to the invoice? > > We recommend adding a series and code to the invoice so that you can keep track internally even though the AdE will generate a document number. > [accordion] Is AdE CF a substitute for SDI? > > AdE CF is **not** a substitute for [SDI](/guides/it-sdi-invoicing). SDI is the main channel for issuing electronic invoices in Italy; Invopop issues FatturaPA documents through it. AdE CF should only be used when customer information is not available, like in online B2C scenarios. > [accordion] What GOBL fields are required for Smart Receipts? > > Use the standard GOBL invoice with the simplified tag. No customer tax ID is required. The `it-ticket-v1` addon handles the AdE CF-specific fields. Each receipt gets a unique Lottery Code if the lottery functionality is enabled. > [accordion] A customer asked for an invoice after I issued their receipt. What do I do? > > Leave the receipt as it is and issue a regular SDI invoice for the sale through the [Italy app](/guides/it-sdi-invoicing). Reference the receipt on each line with an item attribute (`type` `N.DOC.COMM`, the receipt's `ade-ref` number in `text`, its progressive number in `amount` and its date in `date`), which the `it-sdi-v1` addon converts into the `AltriDatiGestionali` block the AdE expects. Invopop does not change the daily totals already transmitted, so remove the invoiced amount from your own *corrispettivi* records. See [Invoice requested after a receipt](/guides/it-ticket#invoice-requested-after-a-receipt). ### Registering supplier questions **Italy** > [accordion] How do I onboard a new supplier in Italy? > > Provide the supplier's Partita IVA and Codice Fiscale (where different) in their party configuration. No certificate upload is needed — Invopop transmits to SDI over its own accredited channel. > [accordion] How are supplier credentials stored in Invopop for Italy? > > No supplier certificates are required. Invopop exchanges documents with SDI over its own accredited channel; only the Partita IVA and routing metadata are stored. **SDI** > [accordion] How do I register a supplier with SDI? > > You don't need to. SDI has no supplier registration for sending: set the supplier's Partita IVA on the party and send. Registration is only needed for *receiving* — see the [receiving invoices guide](/guides/it-sdi-reception). > [accordion] What certificates does SDI require to authenticate a supplier? > > None — Invopop exchanges documents with SDI over its own accredited channel, so suppliers don't manage any certificates. Invoices to public administrations (`FPA12`) also need a qualified electronic signature, which Invopop applies with its own seal when it sends them. **Smart Receipts** > [accordion] How do I register a supplier with Smart Receipts? > > Create the supplier party with its Partita IVA and run the Smart Receipts Register Supplier workflow. The workflow returns a signed registration link in the silo entry's meta. Open the link (or share it with the supplier) and submit the supplier's AdE credentials. Once the form is accepted, the post-registration workflow runs and the supplier can start issuing receipts. See the [supplier registration guide](/guides/it-ticket-supplier) for the full steps. > [accordion] What credentials does Smart Receipts require to authenticate a supplier? > > The supplier's own Agenzia delle Entrate portal credentials: the password and PIN they use at ivaservizi.agenziaentrate.gov.it, together with their Partita IVA and *codice fiscale*. Only a representative of the supplier can generate these. They are submitted through the registration link and passed securely to our local partner, who uses them to transmit receipts to the AdE on the supplier's behalf. Invopop stores the *codice fiscale* on the party but never stores the password or PIN. > [accordion] How often do the supplier's AdE credentials need to be renewed? > > Every 90 days. The supplier must first renew the credentials on the AdE portal, then resubmit them through the same registration link (or via the API `PUT` to the link) so receipt issuance is not interrupted. If they aren't renewed in time, issuing fails with the fault code `invalid-credentials` until the supplier resubmits them. ### Receiving questions **Italy** > [accordion] How do I import received invoices in Italy? > > Register Invopop's recipient code (`BDCS3JD`) with the tax authority and run the registration workflow on the company's party entry. Invopop automatically receives matching invoices and routes them through the configured import workflow. See the [receiving invoices guide](/guides/it-sdi-reception). > [accordion] How does Invopop convert received Italian invoices into GOBL? > > Inbound FatturaPA XMLs are parsed via [`gobl.fatturapa`](https://github.com/invopop/gobl.fatturapa). The original signed XML is preserved as a silo entry attachment alongside the GOBL representation. **SDI** > [accordion] How do I test receiving invoices in the sandbox? > > Register the company for reception in your sandbox workspace, then send a sandbox invoice addressed to it — the app loops it back to you as an inbound delivery and runs your import workflow, exactly as a real delivery would. This is the only way to receive an invoice in sandbox: there is no tax authority to register with, and no real supplier can reach it. See [receiving your own invoices](/guides/it-sdi-invoicing#receiving-your-own-invoices). > [accordion] What happens if a received invoice contains errors? > > The import step attempts to convert the FatturaPA document into [GOBL](https://docs.gobl.org). If conversion fails, the step returns `KO`, but the original file stays stored — the invoice can be re-processed later without SDI needing to redeliver it. > > If the invoice has significant structural issues that prevent conversion, you may need to contact the sender to request a corrected invoice. > [accordion] How quickly are invoices received after being sent by suppliers? > > Invoices are typically received within minutes after being sent by suppliers through SDI. The automatic import process in Invopop processes them as soon as they are received by our system. > [accordion] Can I register multiple companies to receive invoices? > > Yes, multiple companies can be registered to receive invoices through a single Invopop workspace. For each company, you must: > > 1. Register the recipient code `BDCS3JD` with the Italian tax authority for that specific company > 2. Have its tax ID registered by running the registration workflow on the company's party entry > 3. Use the same import workflow configured in the app settings > > This two-step registration process (with the tax authority and with Invopop) must be completed for each company you want to register. This is particularly useful for white-labeling scenarios where a user manages multiple entities. > [accordion] Can I register the same tax ID again from a different party? > > Yes, but only one party at a time can hold a given tax ID. Run the [unregister workflow](/guides/it-sdi-reception#unregistering-a-company) on the party that currently holds it, then register the new one. > > Registering a tax ID that another party already holds fails with a clear error. > > Sandbox and live are counted separately, so the same tax ID can be registered in both at the same time. > [accordion] What is the difference between registering with the tax authority and registering with Invopop? > > The two-step registration process serves different purposes: > > 1. **Registering with the Italian tax authority** - Tells SDI to route invoices addressed to your company to Invopop's channel using the *Codice Destinatario* `BDCS3JD`. > > 2. **Registering with Invopop** (the registration workflow) - Tells Invopop which invoices to accept and process for your workspace. > > Both steps are necessary: the first routes the invoices to Invopop, and the second ensures Invopop knows which workspace should receive those invoices. > [accordion] What format do received SDI invoices arrive in? > > Signed FatturaPA XML (versions 1.2.x), conforming to the Agenzia delle Entrate schema. The original file is kept attached to the entry exactly as SDI delivered it, alongside SDI's delivery metadata. ### Reporting questions **SDI** > [accordion] How does certified archiving (conservazione a norma) work with Invopop? > > Add the **Archive document** step to your workflows, after the step that exchanges the document with SDI. It uploads the exact FatturaPA file, waits for the preservation service to confirm the document is preserved, and attaches the signed receipt to the entry. See the [archiving guide](/guides/it-sdi-archiving) for the full setup. > [accordion] Do received invoices need to be archived too? > > Yes. Italian preservation rules cover both the invoices you issue and the ones you receive, and both are preserved the same way — add the **Archive document** step after the import step in your receiving workflow. > [accordion] What happens to archived invoices when I unregister a company? > > Nothing — unregistering only stops receiving. Invoices already preserved under *conservazione a norma* stay preserved, as the law requires. **Smart Receipts** > [accordion] How often must I submit Smart Receipts reports? > > Per receipt, in real time — there is no periodic batch. Invopop transmits each receipt to AdE CF as it is issued. End-of-day totals are aggregated automatically by Agenzia delle Entrate from individual transmissions. > [accordion] What format does Smart Receipts expect for periodic reports? > > No periodic format — per-receipt JSON sent to AdE CF's REST endpoint. Daily/monthly aggregations are derived automatically by Agenzia delle Entrate. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Italy's regulation → # Malaysia FAQ Source: https://docs.invopop.com/faq/malaysia Frequently asked questions about invoicing compliance in Malaysia ### Compliance questions > [accordion] Is e-invoicing mandatory in Malaysia? > > Yes, for most taxpayers. The mandate came in four phases from 1 August 2024 to 1 January 2026, based on turnover in financial year 2022. New businesses come in on 1 July 2026. Taxpayers with annual turnover below RM3 million are exempt. > [accordion] Which transactions does MyInvois cover? > > B2B, B2G and B2C transactions. Invoices to public bodies follow the same flow as invoices to businesses. For consumer sales, the supplier can issue a monthly consolidated e-invoice, except for the transactions that must have an individual e-invoice. > [accordion] Is Peppol mandatory in Malaysia? > > No. Every in-scope e-invoice must go to MyInvois for validation. Peppol, with the PINT-MY profile, is one optional channel to share the validated e-invoice with the buyer. Only MDEC-accredited providers can run a Peppol access point in Malaysia. > [accordion] Who is exempt? > > Taxpayers with annual turnover below RM3 million, unless a group company is at or above that amount. Foreign diplomatic offices, individuals who do not carry on a business and statutory authorities for statutory collections are also exempt. > [accordion] What is the relaxation period? > > IRBM gave each phase a six month relaxation period. For Phase 4 businesses, it lasts until 31 December 2027. During this period, a taxpayer can put all its transactions in consolidated e-invoices and refuse requests for individual e-invoices. > [accordion] When can I not use a consolidated e-invoice? > > From 1 January 2026, you cannot consolidate a single transaction above RM10,000, in any industry. Some activities also need an individual e-invoice, for example sales of motor vehicles, flight tickets, construction contracts, electricity and telecommunication services. > [accordion] What are the penalties? > > If you do not issue an e-invoice, the fine is RM200 to RM20,000, or up to 6 months in prison, or both. The penalty applies to each non-compliance. > [accordion] Does Malaysia have VAT? > > No. Malaysia repealed GST in 2018. The transaction taxes are Sales Tax and Service Tax (SST). The e-invoice shows the tax type with a code from the official list. ### Invoicing questions > [accordion] What format does a Malaysian e-invoice use? > > UBL 2.1, in XML or JSON, submitted to the MyInvois API. On the Peppol network, the format is PINT-MY. The guideline lists 55 data fields for an e-invoice. > [accordion] What does MyInvois return after validation? > > A Unique Identifier Number, a validation link and a QR code. Validation usually takes less than 2 seconds. > [accordion] Can I still send a PDF to my buyer? > > Yes. You can share the validated e-invoice or a readable copy of it, such as a PDF. The readable copy must show the QR code that links to the validation page on MyInvois. > [accordion] How do I correct an e-invoice? > > You can cancel a validated e-invoice within 72 hours. After that, issue a credit note, a debit note or a refund note. A refund note is for money that goes back to the buyer. > [accordion] Can the buyer reject an e-invoice? > > The buyer can ask for a rejection within 72 hours of validation, with a reason. The request notifies the supplier. The supplier then decides whether to cancel the e-invoice in the same 72 hours. > [accordion] Which TIN do I use for a foreign buyer or a consumer? > > Use a general TIN. Use `EI00000000010` for the general public and `EI00000000020` for a foreign buyer. Use `EI00000000030` for a foreign supplier in a self-billed e-invoice, and `EI00000000040` for a public body that has no TIN. > [accordion] When must I issue a self-billed e-invoice? > > In defined cases, the buyer issues the e-invoice. Examples are purchases from foreign suppliers, payments to agents and dealers, e-commerce transactions and payments to individuals who do not carry on a business. Self-billed documents use type codes 11 to 14. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Malaysia's regulation → # Mexico FAQ Source: https://docs.invopop.com/faq/mexico Frequently asked questions about invoicing compliance in Mexico ### Compliance questions > [accordion] When did mandatory CFDI invoicing start in Mexico? > > CFDI 1.0 became mandatory for large taxpayers in 2011 and was extended to all taxpayers in 2014. CFDI 4.0 (the current version) replaced 3.3 on 1 April 2023. There is no entity below the mandate threshold — any taxpayer issuing an invoice must do so as a CFDI. > [accordion] Who can act as a supplier in Mexico? > > Any taxpayer registered with SAT — Persona Física (13-char RFC) or Persona Moral (12-char RFC). The supplier must have an active CSD (Certificado de Sello Digital) and a fiscal regime (`RegimenFiscal`) recorded in their CIF. > [accordion] What are the legal obligations for receiving invoices in Mexico? > > Recipients must verify each CFDI's UUID through SAT's public consultation, retain the XML for 5 years (Article 30 CFF), and accept or reject cancellation requests within 3 business days when applicable. > [accordion] What periodic reporting obligations exist in Mexico? > > Monthly provisional ISR and IVA payments (DyP) plus the annual ISR return. RESICO contributors have a fully automated monthly tax base computed from issued CFDIs and REPs. Stamping replaces invoice-level reporting. > [accordion] Can I require a customer's CIF before invoicing them? > > No. Conditioning invoicing on the receiver providing their CIF document is unlawful under Article 83 § IX of the CFF and carries fines. The data on the CIF (RFC, name, régimen, postal code) is required, but the issuer must be willing to accept those four pieces of information by other means. In practice, most B2B workflows still ask for the CIF, but it cannot be made a hard precondition. > [accordion] Why can't I cancel an invoice my customer hasn't acknowledged? > > Cancellation in Mexico is bilateral by default. The issuer submits a request, the receiver has three business days to accept or reject, and rejection keeps the CFDI valid. Issuers cannot unilaterally void an invoice that requires acceptance. The exceptions are: small amounts, certain document types, same-day cancellation, and público en general invoices. The practical recommendation is to coordinate with the customer before submitting any cancellation request, especially for high-value B2B invoices. > [accordion] Why does PPD vs PUE matter so much? > > Beyond the procedural difference, the two methods determine *when* income is recognized for ISR and IVA purposes. PUE income is recognized at issuance; PPD income is recognized as REPs are issued. Choosing the wrong method shifts tax liability into the wrong period and creates discrepancies during SAT's automated reconciliation. RESICO contributors are particularly exposed because their entire monthly tax base is computed from CFDIs and REPs. > [accordion] What's the difference between a complemento and an addenda? > > A complemento is a SAT-defined XML extension with a published XSD, sealed inside the digital signature, and validated at stamping. An addenda is a non-fiscal XML block defined unilaterally by a private buyer (Walmart, Liverpool, Pemex, automotive OEMs, etc.) and inserted into the `` node of the CFDI. SAT does not validate addenda content, but the buyer's ERP rejects payment without it. Each large enterprise customer typically defines its own addenda spec; there is no central catalog. Addendas are not currently supported by Invopop. > [accordion] Are there special supplier obligations under SAT/CFDI? > > The supplier must have an active CSD (not a FIEL — FIEL is for SAT login, CSD is for invoicing), be in good standing on Lista 69-B (not classified as EFOS), and maintain valid postal codes matching their CIF. ### Invoicing questions > [accordion] Do I have to issue B2C invoices in Mexico? > > Individual CFDIs are not required for sales under MXN \$100, but those sales must still be included in the global CFDI. Often issuing all invoices will simplify your operation. > [accordion] Does Invopop support the white label (B2B2B) model in Mexico? > > Yes. We obtain the supplier's CSD (digital seal) and credentials to issue invoices in that company's name. Read more in our [white label use case](/guides/white-label). > [accordion] Can I issue a PPD invoice through Invopop? > > Yes. The `mx-cfdi-v4` addon supports both PUE and PPD on the original invoice, and Invopop also issues the subsequent payment receipts (REPs / Pago / comprobante de pago) that must be emitted as payments are collected. Model each receipt as a GOBL [`bill.Payment`](https://docs.gobl.org/draft-0/bill/payment) referencing the PPD invoices being settled and run it through the SAT issue payment workflow. See the [payment receipt example](/guides/mx-sat-issuing) in the issuing guide. > [accordion] My customer paid late and now I have to cancel and re-issue? > > Yes, if the original was issued as PUE and payment is not received by the last day of the issuance month, rule 2.7.1.32 RMF requires cancelling the original and re-issuing as PPD with `FormaPago = 99`, then issuing REPs as payments come in. This is calendar-driven, not payment-event-driven, and it surprises most non-Mexican implementations. The conservative approach is to issue PPD whenever there is any uncertainty about same-month payment. > [accordion] What happens if I miss the REP deadline? > > REPs must be issued by the fifth calendar day of the month following payment receipt (rule 2.7.1.35 RMF). Missing the deadline does not invalidate the underlying invoice, but it prevents the customer from deducting the expense in the correct period and exposes the issuer to fines. This is a recurring source of friction and the reason customers will sometimes refuse to accept cancellations from a supplier with poor REP discipline. > [accordion] How do I configure my workspace for Mexican invoicing? > > Install the SAT Mexico app (uses SW Sapien as PAC) plus the SW Sapien app for credentials. Onboard each issuing supplier with their CSD certificate and `mx-cfdi-issue-place`. Run invoices through the Issue CFDI workflow. > [accordion] Where can I find the mapping of GOBL fields to CFDI? > > The library that transforms GOBL into CFDI documents is publicly available as an open-source project and can be found at [github.com/invopop/gobl.cfdi](https://github.com/invopop/gobl.cfdi). > > For further details on how GOBL prepares data for conversion, see the [Mexico Tax Regime](https://github.com/invopop/gobl/blob/main/regimes/mx/README.md). > [accordion] The PAC keeps rejecting my invoice with a postal code error > > The most common cause is a mismatch between the receiver's postal code in the CFDI and the postal code SAT has on file for that RFC. Resolution: ask the customer for their CIF (Constancia de Situación Fiscal) and use the postal code printed there, exactly. Secondary causes: > > * The postal code is real but not yet in `c_CodigoPostal`. Use the closest catalog code from the place of issuance. > * The receiver is `XAXX010101000` or `XEXX010101000` and `DomicilioFiscalReceptor` differs from `LugarExpedicion`. They must be equal for generic RFCs. > * The branch issuing the document is configured with the matriz's postal code instead of its own. > [accordion] How do I issue invoices with the 8% tax rate in border zones? > > In Mexico, a reduced VAT rate of 8% applies to transactions in border zones (northern and southern border regions). To successfully issue invoices with this rate, **both** of the following conditions must be met: > > 1. The supplier's RFC must be enabled by the SAT to invoice with the reduced rate in border zones. > 2. Both the `mx-cfdi-issue-place` field and the customer's postal code (when included) must correspond to border zones. > > If either condition is not met, the SAT will reject the invoice with an error. > [accordion] What does the CFDI40999 error mean and how do I resolve it? > > CFDI40999 is a generic "unclassified error" returned by the SAT when no other, more specific error code applies. This error can have multiple causes. > > A common scenario is invoicing in border zones with the reduced 8% VAT rate. If you receive this error in that context, verify: > > 1. **RFC registration**: The supplier's RFC must be registered in the taxpayers registry for the appropriate border region tax incentive. Without this registration, the SAT will reject all invoices with the reduced rate. See [SAT's registration requirements and procedures](https://www.sat.gob.mx/minisitio/EstimulosFiscalesFronteraNorteSur/) for more information. > 2. **Issue place postal code**: The [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue) field must contain a postal code from a municipality within a border zone. > 3. **Tax rate**: Ensure you're applying the correct percentage (typically 8%) for the border zone. > > If the error persists after verifying these points, or you're getting this error for other reasons, please reach out to our support team. > [accordion] I'm getting the error 'Access denied, supplier XXX is not registered in this workspace'. What should I do? > > This error appears when you try to issue an invoice for a supplier (identified by its RFC) that has not been registered in your workspace. Before you can issue on a supplier's behalf, its CSD certificate must be uploaded and validated through the registration flow. > > To fix it, make sure the supplier is correctly registered by following the [Register a supplier](/guides/mx-sat-supplier#register-a-supplier) steps in the supplier registration guide. > > In **Sandbox** you may also hit this error for suppliers that were registered in the past. This is due to a change in how supplier registration is now enforced before sending invoices. To resolve it, open the supplier's Silo Entry in the Console and run the registration process again from the start, completing every step. > [accordion] Why does my customer's UsoCFDI keep getting rejected? > > The UsoCFDI must be allowed for the receiver's `RegimenFiscal`. The catalog defines the valid combinations; not every code works for every régimen. For example, D01–D10 (personal deductions) are only valid for individuals, never for legal entities. RESICO contributors (régimen 626) have a restricted set. When in doubt, default to `S01` (Sin efectos fiscales) — it is always valid but produces a non-deductible invoice for the receiver. Always ask the customer which UsoCFDI they need before issuing. > [accordion] How does Invopop handle time zones for Mexican invoices? > > By default, Invopop uses Mexico City's time zone (UTC-6) when automatically setting the [`issue_date`](https://docs.gobl.org/draft-0/bill/invoice#issue-date) and [`issue_time`](https://docs.gobl.org/draft-0/bill/invoice#issue-time) fields. However, the SAT validates these fields based on the time zone of the postal code specified in [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue). > > If the issuing location is in a different time zone, the SAT may reject the invoice with an error indicating the timestamp is in the future, as it only allows up to 5 minutes ahead of the local time. > > To avoid this, explicitly set `issue_date` and `issue_time` in your GOBL invoice using the local time zone of the issuing location when operating outside Mexico City's time zone. > [accordion] My foreign-currency invoice is failing validation > > For non-MXN invoices, `TipoCambio` must be present and use the FIX rate published by Banxico in the DOF the day prior to the operation (Article 20 CFF, Article 56 Ley Aduanera). Common errors: > > * Using the day-of rate instead of the prior day's. > * Quoting the inverse (USD per MXN instead of MXN per USD). > * Setting `TipoCambio` on an MXN invoice (it must be 1 or absent). > * Rounding inconsistently between line totals and document totals — Anexo 20 has specific rounding rules. > [accordion] Where do I find Mexico-specific GOBL documentation? > > See the [Mexico tax regime in GOBL](https://docs.gobl.org/regimes/mx) for tax categories, RFC structure, and CFDI extensions. The [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon documents required fields including UsoCFDI, RegimenFiscal, and place-of-issue. ### Registering supplier questions > [accordion] Which PAC (Proveedor Autorizado de Certificación) does Invopop use? > > Invopop uses [SW Sapien](https://sw.com.mx), an Authorised Certification Provider (PAC), to sign and stamp CFDI documents for the Mexican tax authority. > [accordion] What happens if my CSD certificate is revoked? > > Without a valid CSD, the issuer cannot stamp any CFDI through any PAC. SAT can administratively revoke a CSD when it suspects fraudulent activity, repeated non-compliance, or tax debts. Operations halt until the supplier resolves the underlying cause and obtains a new CSD. CSDs also expire every four years. Suppliers should monitor CSD validity proactively; Invopop relies on the CSD uploaded during supplier registration and does not manage its lifecycle. > [accordion] How do I onboard a new supplier in Mexico? > > Generate a registration link via the SAT Mexico Register Supplier workflow. The supplier uploads their CSD certificate (`.cer` + `.key` + password) and authorizes the PAC. Once validated, the supplier is ready to issue CFDIs. > [accordion] What certificates does SAT/CFDI require to authenticate a supplier? > > A CSD (Certificado de Sello Digital) issued by SAT specifically for invoicing — distinct from the FIEL (e.firma) used for portal login. The CSD comprises a `.cer` (X.509) and `.key` (encrypted private key) with a password set at generation. Validity: 4 years. > [accordion] How are supplier credentials stored in Invopop for Mexico? > > The CSD certificate (`.cer`), private key (`.key`), and key password are stored encrypted at rest. Invopop uses them only to seal CFDIs before transmission to the PAC; the password and key are never returned in API responses. *** > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Mexico's regulation → # New Zealand FAQ Source: https://docs.invopop.com/faq/new-zealand Frequently asked questions about invoicing compliance in New Zealand > [accordion] Documentation in progress > > FAQ content for New Zealand is being prepared. For specific questions, please contact [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about New Zealand's regulation → # Norway FAQ Source: https://docs.invopop.com/faq/norway Frequently asked questions about invoicing compliance in Norway ### Compliance questions **Norway** > [accordion] Is B2B e-invoicing in Norway mandatory? > > Not yet. B2G has been mandatory since April 2019 — all suppliers to the public sector must invoice in Peppol BIS Billing 3.0 (EHF) format via the Peppol network. A formal B2B mandate has been proposed, targeting mandatory sending by 2028 and mandatory receiving by 2030, but it is not yet law. > [accordion] Who can issue invoices in Norway? > > Any entity with a Norwegian organization number from the Brønnøysund Register Centre (shown with an "MVA" suffix when VAT-registered). Participants are registered in ELMA, Norway's national Peppol registry, through a certified Access Point such as Invopop. > [accordion] What are the legal obligations for receiving invoices in Norway? > > Public sector bodies must be able to receive Peppol BIS (EHF) invoices. For businesses, receiving via Peppol remains voluntary until the proposed 2030 mandate. Invoices and other accounting documentation must be archived for 5 years under the Bokføringsloven (Bookkeeping Act). **Peppol** > [accordion] Is sending invoices via Peppol mandatory? > > Mandatory dates vary by country. Belgium requires structured B2B e-invoicing — Peppol BIS by default — from January 2026. Germany is phasing in B2B e-invoicing between 2025 and 2028. France's Factur-X via Peppol applies once the PA reform takes effect. Outside mandates, Peppol delivery is voluntary but increasingly expected for B2G and cross-border trade. > [accordion] Does a Peppol invoice need to be EN16931 compliant? > > Yes. Every document exchanged on Peppol BIS uses a UBL or CII syntax that conforms to the EN16931 European e-invoicing standard, plus the relevant Peppol BIS specification. Invopop generates compliant XML automatically when you use the Peppol app. > [accordion] Why does Peppol require proof of ownership? > > Peppol is a federated network — anyone could otherwise register a Participant ID for a company they don't represent. Proof of ownership ties the Participant ID to a verifiable contact at the company, which is what allows the registration to be published on the SML. > [accordion] What documents count as proof of ownership? > > Requirements vary by Authority. In Belgium, for example, the supplier must provide a recent extract from the Banque-Carrefour des Entreprises (KBO/BCE) plus a signed mandate. Invopop walks the registering party through the local requirements during the registration wizard. > [accordion] Are received Peppol invoices considered legally valid? > > Yes — a Peppol BIS document delivered through a certified Access Point is treated as the legal e-invoice in any country that recognises Peppol. The signed UBL or CII XML is the authoritative record; archive it alongside any human-readable rendering you generate. > [accordion] How long must I retain received Peppol invoices? > > Retention is set by each country's tax authority — typically 7 to 10 years in the EU. Invopop preserves the original XML and any generated PDF in the silo entry so you can satisfy local archival requirements wherever you operate. ### Invoicing questions **Norway** > [accordion] How do I configure my workspace for Norwegian invoicing? > > Install the Peppol app, register your supplier with their Norwegian organization number (scheme `0192`), and use a workflow that generates a Peppol BIS Billing 3.0 document and sends it via the Lookup → Send actions. > [accordion] Do invoices need to be sent to the tax authority? > > No. Norway has no clearance or e-reporting requirement for invoices — they travel directly to the customer over the Peppol network. Skatteetaten only requests accounting data on demand via SAF-T during audits. > [accordion] Where do I find Norway-specific GOBL documentation? > > See the [Norway tax regime in GOBL](https://docs.gobl.org/regimes/no) for tax IDs and category codes. The Peppol BIS Billing 3.0 mapping is shared across the network and comes from the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon. > [accordion] What is the difference between scheme 0192 and 9908 in Norway? > > Both schemes identify a company by its Norwegian organization number: > > * **`0192` (organization number)** — This is the **preferred and default** scheme for Norway. It corresponds to the company's 9-digit organization number in the Enhetsregisteret (Central Coordinating Register) at the Brønnøysund Register Centre. > * **`9908` (NO:ORGNR)** — This is the legacy scheme for the same organization number, deprecated in favor of `0192`. Some older ELMA registrations may still use it. > > **When you should use `0192`:** Always use `0192` as your first choice when sending invoices to Norwegian companies. This is the standard identifier and what the vast majority of Norwegian businesses are registered under. > > **When `9908` may be needed:** If you get a "receiver not found" error when sending to a Norwegian company using `0192`, and you have confirmed the company exists in the [Peppol Directory](https://directory.peppol.eu), check whether they are still registered under the legacy `9908` scheme. > > To specify the scheme when sending, include the customer's Peppol inbox in your GOBL document: > > ```json theme={"system"} > "customer": { > "name": "Example Company", > "tax_id": { > "country": "NO", > "code": "987654321MVA" > }, > "inboxes": [ > { > "key": "peppol", > "scheme": "0192", > "code": "987654321" > } > ] > } > ``` > > In both schemes the code is the bare 9-digit organization number, without the `NO` prefix or `MVA` suffix used in VAT numbers. > > > [!TIP] > > > > Use the **Lookup Participant ID** workflow step to verify a recipient's Peppol registration before sending. If a lookup with `0192` fails, try again with `9908`. > [accordion] How do I include Foretaksregisteret on my invoices? > > Limited liability companies (AS), public limited companies (ASA) and branches of foreign companies must show the word "Foretaksregisteret" on their sales documents — see the [invoice content requirements](/compliance/norway). Add it as a tax-scoped identity on the supplier: > > ```json theme={"system"} > "supplier": { > "name": "Fjordlys AS", > "tax_id": { > "country": "NO", > "code": "123456785MVA" > }, > "identities": [ > { > "type": "TAX", > "code": "Foretaksregisteret", > "scope": "tax" > } > ] > } > ``` > > The identity becomes a second `PartyTaxScheme` on the supplier, under scheme `TAX`, which is where the Peppol rule NO-R-002 looks for it. Sole traders (enkeltpersonforetak) aren't covered by the requirement and should leave the identity out. > > > [!TIP] > > > > NO-R-002 is a warning rather than a fatal rule, so an invoice without it still reaches the recipient and no workflow step will report the omission. > [accordion] Which VAT rates and tax categories apply in Norway? > > Norway has four positive VAT rates. All of them are category `S` in Peppol — the percentage carries the distinction, not the category code. > > | Rate | Percentage | Applies to | > | - | - | - | > | Standard | 25% | Most goods and services | > | Reduced (food) | 15% | Foodstuffs, water and wastewater services | > | Reduced (services) | 12% | Passenger transport, accommodation, cinema, museums, sporting events, public broadcasting | > | Special (marine) | 11.11% | Wild marine resources sold through a fiskesalgslag | > > Set the percentage on the line tax and tag it with the [`untdid-tax-category`](https://docs.gobl.org/addons/eu-en16931-v2017) extension: > > ```json theme={"system"} > "taxes": [ > { > "cat": "VAT", > "percent": "25.0%", > "ext": { "untdid-tax-category": "S" } > } > ] > ``` > > Supplies that carry no VAT use a different category and omit the percentage: > > | Category | Meaning | > | - | - | > | `Z` | Zero rated goods — exports, international transport, newspapers, books | > | `E` | Exempt from tax | > | `K` | VAT exempt for EEA intra-community supply of goods and services | > | `AE` | VAT reverse charge | > | `G` | Free export item, tax not charged | > > See the [Norway compliance page](/compliance/norway) for what each rate covers and the registration threshold. **Peppol** > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. ### Supplier questions **Norway** > [accordion] How do I onboard a new supplier in Norway? > > Run the Register Participant workflow with the supplier's organization number (scheme `0192`). Invopop registers the participant in ELMA, Norway's national Peppol registry, so we become the supplier's Access Point for sending and receiving. > [accordion] What if my supplier is already registered in ELMA with another Access Point? > > ELMA allows only one receiving Access Point per participant. If the company is already registered — common in Norway given the long-standing B2G mandate — the existing registration must be released or migrated to Invopop before we can receive documents on their behalf. Sending invoices does not require this migration. **Peppol** > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. ### Receiving questions **Peppol** > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Norway's regulation → # Perú FAQ Source: https://docs.invopop.com/faq/peru Frequently asked questions about invoicing compliance in Perú > [accordion] Documentation in progress > > FAQ content for Perú is being prepared. For specific questions, please contact [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Perú's regulation → # Poland FAQ Source: https://docs.invopop.com/faq/poland Frequently asked questions about invoicing compliance in Poland ### Compliance questions > [accordion] When does mandatory KSeF invoicing start in Poland? > > 1 February 2026 for taxpayers with turnover above PLN 200M, 1 April 2026 for all other businesses, and 1 January 2027 for micro entrepreneurs. B2C is optional. Foreign-only businesses without a fixed Polish establishment are out of scope. > [accordion] Who can act as a supplier in Poland? > > Any entity with a Polish NIP and active KSeF access. Large taxpayers (turnover > PLN 200M) must be onboarded by 1 February 2026, all other businesses by 1 April 2026, and micro entrepreneurs by 1 January 2027. Foreign-only entities without a Polish fixed establishment cannot use KSeF. > [accordion] What are the legal obligations for receiving invoices in Poland? > > Once KSeF is mandatory, all B2B invoices must be received through KSeF — paper or PDF rejection is no longer permitted between Polish parties. Archival is automatic in KSeF for 10 years; recipients can pull copies at any time. > [accordion] What periodic reporting obligations exist in Poland? > > JPK\_V7M (monthly) or JPK\_V7K (quarterly) consolidated VAT and SAF-T file. Once KSeF is mandatory, JPK\_V7 is expected to draw directly from KSeF data, eliminating manual reconciliation. > [accordion] What types of invoices are supported in Invopop's KSeF integration? > > Currently supported invoice types: > > * **Standard Invoices (VAT)**: Regular B2B invoices with FA(3) schema > * **Credit Notes (KOR)**: Invoice corrections and adjustments > > All invoices must include the `pl-favat-v3` addon in GOBL to ensure FA(3) schema compliance. > > > [!NOTE] > > > > Additional invoice types can be supported based on customer requirements. Contact [support](mailto:support@invopop.com) if you need specific invoice types. > [accordion] Will B2C transactions need to be reported in KSeF? > > No. B2C invoices in KSeF are optional. The mandatory requirement applies only to B2B transactions. > [accordion] Are there special supplier obligations under KSeF? > > The KSeF certificate must belong to the company account directly or to a user with both InvoiceRead and InvoiceWrite permissions in KSeF. Suppliers must declare KSeF as their issuer in the Ministry of Finance taxpayer's portal before going live. > [accordion] What are the legal obligations for receiving invoices through KSeF? > > Once KSeF is mandatory, all Polish B2B recipients must accept KSeF-issued invoices. KSeF itself archives for 10 years; recipients have no separate archival duty for the structured XML. ### Invoicing questions > [accordion] What happens when I send an invoice to a foreign recipient? > > International (cross-border) invoices are handled just like domestic invoices in KSeF: > > * The invoice is created in GOBL with the foreign recipient's details > * It's converted to FA(3) XML format and submitted to KSeF > * KSeF validates and clears the invoice, assigning a unique KSeF ID > * The invoice is registered in the KSeF system > > However, since foreign recipients cannot access KSeF, you must deliver the invoice through other channels (email, EDI, etc.). Include the KSeF QR code in the delivery for verification purposes. > [accordion] What's the difference between test, demo, and production environments? > > **Test mode** (sandbox only): Uses self-signed certificates generated automatically by Invopop. Perfect for quick testing without accessing the KSeF portal. Invoices are not sent to real KSeF servers. > > **Demo mode** (sandbox only): Connects to the official [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/). Requires manual certificate generation, simulating the full production flow in a safe test environment. > > **Production mode** (live workspace): Connects to the live [KSeF Portal](https://ap.ksef.mf.gov.pl/). Requires valid company credentials and certificates. All invoices are submitted to the official KSeF system. > > > [!TIP] > > > > Use test mode for initial integration testing, then switch to demo mode when you're ready to simulate the real certificate flow before going live. > [accordion] What KSeF applications and portals are available? > > Official KSeF applications: > > * [KSeF Taxpayer Application](https://ksef.podatki.gov.pl/aplikacja-podatnika-ksef-i-inne-narzedzia/bezplatne-narzedzie-wersja-produkcyjna/) – the main portal with all functionalities > * [KSeF Mobile Application](https://ksef.podatki.gov.pl/aplikacja-podatnika-ksef-i-inne-narzedzia/aplikacja-mobilna-ksef/) – a mobile app for on-the-go access > * [e-mikrofirma](https://login.mf.gov.pl/Account/Select?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3D09e2877e-702a-4e27-8818-9472ca964c0a%26redirect_uri%3Dhttps%253A%252F%252Furzadskarbowy.gov.pl%26response_type%3Dcode%26scope%3Dprofile%2520openid%2520DataHub.UserAccess%2520eFormsClientApi.UserAccess%2520ChatApi.UserAccess%2520offline_access%26state%3D8f196c7682654d0da49b42bfc9045e51%26code_challenge%3DSIwxyxXJpAzUgzrMW96UIH9vNc6P0-dkdc7l482AWQA%26code_challenge_method%3DS256) – a simplified portal aimed at micro-entrepreneurs > > For testing: > > * [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/) – demo environment for testing > [accordion] How do I configure my workspace for Polish invoicing? > > Install the KSeF Poland app, register your supplier (Test, Demo, or Production environment), and run invoices through the Send Invoice workflow. Each environment requires its own NIP and certificate setup. > [accordion] I get a "failed to create session (Status 403 Forbidden)" error when sending an invoice to KSeF. What does it mean? > > This error means the uploaded KSeF certificate does not have the required permissions to issue invoices. This typically happens when the certificate was uploaded by someone who is not the company administrator and only has limited permissions granted by the main company account. > > The KSeF certificate uploaded to Invopop must belong to either: > > * The **company account** directly logged into KSeF, or > * An entity that has both **InvoiceRead** and **InvoiceWrite** permissions (managed within KSeF) > > To resolve this, you have two options: > > 1. **Grant permissions in KSeF**: The company admin (or whoever has direct access to the KSeF company account) grants `InvoiceRead` and `InvoiceWrite` permissions to the user who uploaded the certificate to Invopop. This can be done from the [KSeF application portal](https://ap.ksef.mf.gov.pl/) and requires no further action in Invopop (no need to unregister/register). > 2. **Re-register with a new certificate**: Unregister the supplier in Invopop and register it again using a certificate generated from the main KSeF company account (or another account with the required permissions). > [accordion] Where do I find Poland-specific GOBL documentation? > > See the [Poland tax regime in GOBL](https://docs.gobl.org/regimes/pl) for tax categories and NIP rules. The [`pl-favat-v3`](https://docs.gobl.org/addons/pl-favat-v3) addon documents the FA(3) schema fields required for KSeF. > [accordion] How do I set the unit of measure (jednostka miary) on a line item, like "szt." or "usł."? > > Polish invoicing law requires a unit of measure for every line, and KSeF maps it to the `P_8A` field on each `FaWiersz`. Invopop supports two ways to populate it: > > 1. **Canonical unit code on `Item.Unit`** — preferred when the unit exists in the GOBL unit catalogue or as a UN/ECE Recommendation 20 code. For example, `Item.Unit: "H87"` (piece) or `Item.Unit: "KGM"` (kilogram). The gobl.ksef converter emits the UN/ECE code directly into `P_8A`. > 2. **Free-form label on `Item.Meta["unit-label"]`** — use this for Polish abbreviations that do not match a canonical code, such as `"szt."` (sztuka — piece), `"usł."` (usługa — service), `"kpl."` (komplet — set) or `"opak."` (opakowanie — package). The value is passed through to `P_8A` unchanged, so the supplier's exact wording is preserved on the KSeF XML. > > Example line item using a free-form label: > > ```json theme={"system"} > { > "item": { > "name": "Konsultacja prawna", > "price": "200.00", > "meta": { > "unit-label": "usł." > } > }, > "quantity": "1" > } > ``` > > > [!NOTE] > > > > When an inbound KSeF invoice contains a `P_8A` value that is not a recognised GOBL or UN/ECE code, gobl.ksef preserves the original string under `Item.Meta["unit-label"]` so round-trips do not lose the supplier's wording. `Item.Unit` is only populated when the value validates as a canonical code. ### Registering supplier questions > [accordion] Why did my supplier registration fail? > > Common reasons for registration failures: > > * **Certificate and private key mismatch**: Ensure you uploaded both files from the same certificate generation > > * **Incorrect password**: Verify the password matches what you set during certificate generation > > * **Future start date**: Certificate start date must be today or in the past > > * **Wrong portal environment**: Demo certificates won't work with production, and vice versa > > * **File encoding issues**: For API uploads, ensure files are properly base64-encoded > > * **Expired certificate**: Check that the certificate is still valid > > * **Invalid NIP**: Verify the Polish Tax ID is correct and has access to KSeF > > > [!NOTE] > > > > Check the workflow error logs in the Invopop Console for detailed error messages that can help diagnose the specific issue. > [accordion] I don't have a Polish NIP for testing. How can I get one? > > **For sandbox testing**: > > * **Test mode**: Generate fake NIPs at [http://generatory.it/](http://generatory.it/). These work immediately with self-signed certificates. > * **Demo mode**: You need a real NIP with access to the KSeF Demo Portal. > [accordion] How do I onboard a new supplier in Poland? > > Choose an environment (Test, Demo, or Production). Generate a KSeF certificate from the relevant portal (or use a self-signed cert in Test mode), upload it to Invopop with the matching password, and register the supplier through the KSeF Register Supplier workflow. > [accordion] What certificates does KSeF require to authenticate a supplier? > > A KSeF certificate exported as PKCS#12 (.p12) with password, generated through the KSeF Application Portal (or auto-generated by Invopop in Test mode). The certificate must have InvoiceRead + InvoiceWrite permissions. > [accordion] How are supplier credentials stored in Invopop for Poland? > > The KSeF certificate (PKCS#12 .p12 with password) is stored encrypted at rest. Invopop uses it to authenticate session creation with KSeF on the supplier's behalf; the password is never returned in API responses. ### Receiving questions > [accordion] How do I import received invoices from suppliers? > > Invopop automatically imports received invoices through a polling service: > > 1. **Configure polling interval** during party registration (hourly, daily, weekly, or monthly) > 2. **Set up the sync workflow** to query KSeF for new invoices > 3. **Configure the import workflow** to convert FA(3) XML to GOBL format > 4. **Link the workflows** in the Poland app configuration > > The system automatically checks KSeF at your chosen interval and imports any new invoices to your configured folder. > > **For manual import**, use the API to trigger import jobs with specific KSeF numbers or date ranges. See the [Manual import](/guides/pl-ksef-receiving#manual-import) section in the receiving invoices guide. > [accordion] Can I import historical invoices or backfill missed invoices? > > Yes. You can manually trigger a sync workflow to import invoices from a specific date range using the [Create a Job endpoint](/api-ref/transform/jobs/create-a-job-post). > > Pass the `from` and `upto` date parameters to sync all invoices received within that period: > > ```json theme={"system"} > { > "workflow_id": "YOUR_SYNC_WORKFLOW_ID", > "entry_id": "YOUR_PARTY_ENTRY_ID", > "args": { > "from": "2026-01-01T00:00:00Z", > "upto": "2026-01-31T23:59:59Z" > } > } > ``` > > This is useful for backfilling invoices after a polling outage or importing historical data before enabling automatic polling. > [accordion] How do I know if my automatic invoice import is working? > > Check these indicators: > > 1. **Polling configuration**: Verify the polling interval is set in your party registration workflow configuration > > 2. **App configuration**: Confirm the Poland app has your sync workflow configured > > 3. **Recent imports**: Check the "Invoices · Expenses" folder for newly imported invoices > > 4. **Job logs**: Review job logs in the Console for sync and import workflow executions > > 5. **Error notifications**: Set up email or Slack notifications in your workflow error handling to alert you of failures > > > [!TIP] > > > > Test the import by manually triggering the sync workflow with a date range that includes known received invoices. > [accordion] What format do received KSeF invoices arrive in? > > FA(3) XML conforming to the Ministry of Finance schema. Each invoice carries a unique KSeF reference (numer KSeF) plus the issuer's signature and a QR code linking to the public verification page. > [accordion] How does Invopop convert received Polish invoices into GOBL? > > Inbound FA(3) XMLs are parsed via [`gobl.ksef`](https://github.com/invopop/gobl.ksef). Tax rates, line items, and parties map onto GOBL fields; the original signed XML is preserved as a silo entry attachment. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Poland's regulation → # Portugal FAQ Source: https://docs.invopop.com/faq/portugal Frequently asked questions about invoicing compliance in Portugal ### Compliance questions > [accordion] What invoicing rules apply across all systems in Portugal? > > All invoices issued in Portugal must include a unique sequential number, a series identifier, an ATCUD code (Article 35-A CIVA), and a QR code (Portaria 195/2020). Software must be certified by the Autoridade Tributária — Invopop is certified. > [accordion] Who can act as a supplier in Portugal? > > Any entity with a Portuguese NIF — companies, sole traders, and freelancers. NIFs starting with 1, 2, or 3 are individuals (autónomos); NIFs starting with 5 are legal entities, which require additional registration metadata (share capital, commercial registry). > [accordion] What are the legal obligations for receiving invoices in Portugal? > > Recipients must verify the QR/ATCUD on each invoice via AT's e-fatura portal and retain the document for 10 years (Article 123 CIVA). Auto-classification of received invoices into expense categories happens through e-fatura. > [accordion] What periodic reporting obligations exist in Portugal? > > Monthly or quarterly IVA periódica plus the annual IES (Informação Empresarial Simplificada). Invoice-level data is reported continuously through real-time submission or monthly SAF-T export — both feed AT's e-fatura system automatically. > [accordion] What is supplier registration information in invoices and other documents? > > Supplier registration information includes the company's share capital, the commercial registry office, and optionally the NIF used during registration. Portuguese law requires this information to appear on all printed fiscal documents, including PDFs. > > **When is it mandatory?** > > Registration information is mandatory for companies and legal entities. However, self-employed individuals and freelancers (whose NIF starts with 1, 2, or 3) are exempt from this requirement, as they typically do not have formal registration details. > > **What about the "other" field?** > > The `other` field is optional and can be used to specify the NIF of the company when it was registered if different from the current one. > [accordion] Are there special supplier obligations under AT? > > The supplier must use certified billing software, register their issuance series with AT, and choose a reporting model (monthly SAF-T or real-time). Self-employed taxpayers (NIF starting 1/2/3) are exempt from supplier registration metadata; companies must declare share capital and commercial registry. > [accordion] What reporting obligations does AT impose? > > Either real-time per-invoice transmission or monthly SAF-T export by the 5th of the following month (uploaded by the supplier). Both satisfy the reporting obligation under Portaria 195/2020 — the choice is operational. ### Invoicing questions > [accordion] Should our customers upload their SAF-T files manually? > > In Portugal, fiscally relevant documents issued through invoicing software must be reported to the Tax Authority (AT). There are two possible reporting models: > > 1. **SAF-T monthly export** – a single XML file including all documents for the month. This file is generated by the invoicing software and then uploaded manually to the AT portal, as there is no API available for submitting it automatically. > 2. **Real-time transmission** – instead of a monthly file, each invoice is sent individually to the AT at the time of issuance, using the authority's API. > > Whether one model or the other is used usually depends on the issuer's accountant's preference (who typically uploads the SAF-T monthly report should they choose that model). Invopop's [AT Portugal app](/apps/at-portugal) supports both reporting methods, so each supplier can pick the one that best fits their needs. > > If a supplier uses real-time transmission — the **Send document to AT** step in the workflow — the documents submitted this way are already communicated to the AT, so they don't need to upload a monthly SAF-T file for them. The only documents that still require the monthly SAF-T upload are those not reported in real time, such as RG payment receipts, which the AT's webservice does not accept. > [accordion] How do I configure my workspace for Portuguese invoicing? > > Install the AT Portugal app, register the supplier with their NIF, and pick a reporting model (monthly SAF-T or real-time submission). Run invoices through the AT Issue Invoice workflow — Invopop generates the ATCUD, QR, and signature automatically. > [accordion] Why does recording fail with 'payable: too high according to Artigo 40.º do CIVA'? > > When issuing in Portugal you may see an error similar to: > > > `recording envelope: totals: (payable: too high according to Artigo 40.º do CIVA.)` > > **What it means:** Article 40 of the Portuguese VAT Code (*Código do IVA*) caps the amount a **simplified invoice** (*fatura simplificada*) can carry. The limits are: > > * **€1,000** for goods sold by retailers or itinerant sellers to buyers who are not taxable persons (final consumers). > * **€100** for every other supply of goods or services. > * **No limit** for suppliers under the Article 53 small-business exemption regime (since Decree-Law 35/2025). > > Above the applicable limit, a simplified invoice is no longer allowed and the document must be a **full invoice** (*fatura*). Note that a simplified invoice can only carry the fields listed in Article 40, so adding the buyer's name or address to it is not an option — the document type has to change. > > **What to do:** > > * Issue the document as a **full invoice** instead of a simplified one. > * If the buyer is a **taxable person** (a business or a freelancer invoicing with a NIF), include their **name, address, and NIF** — Article 36 requires these identification elements only for taxable-person buyers. > * If the buyer is a **final consumer**, no customer identification is required on a full invoice, whatever the amount. If you don't have their details, leave the `customer` block out, and Invopop will report the document to the AT under the generic final consumer. > > In GOBL, drop the `simplified` tag from `$tags` and adjust the `customer` block as above, then re-run the workflow. > [accordion] Why does my credit note fail with 'The credit note line #N cannot be applied to any line available to credit'? > > **What it means:** when a credit note references an invoice issued through Invopop, every credit note line must be matched against the quantity and price still available to credit on the original invoice's lines. Line `#N` could not be matched to any of them. > > For a credit note line to be applied to an invoice line: > > 1. Its `item.name` must be **exactly identical** to the invoice line's, and both lines must have the same VAT treatment — the same rate and, where applicable, the same exemption. > 2. Among the lines matching by name and VAT, it must satisfy one of: > * **Same unit price** as the invoice line, with a quantity up to the remaining quantity — to credit fewer units at the original price. > * **Same quantity** as the invoice line, with a unit price up to the remaining price — to credit part of the amount for the full quantity. > > Include only the lines you are crediting — the credit note does not need to mirror the full invoice — and the order of the lines is irrelevant. Availability is cumulative: every accepted credit note reduces the remaining quantity or price, so the total credited per line can never exceed the original invoice amount. > > **What to do:** check that line `#N`'s item name and VAT rate or exemption exactly match a line on the referenced invoice (watch for typos or renamed items), and that it keeps either the original unit price or the original quantity as described above. If everything matches, review credit notes previously issued against the same invoice — the remaining quantity or amount may already have been credited. > > Note that a credit note supports exactly **one** `preceding` reference, and line matching only applies when the referenced invoice was issued through Invopop — references to external series (for example, invoices issued by a previous provider) are accepted without matching. > [accordion] Why does my payment workflow fail with 'payment type RG is not supported for real-time reporting'? > > This error means your workflow includes the **Send to the AT** step for a payment receipt. Payment receipts are not supported for real-time reporting — the AT does not accept them via the real-time webservice. > > **The fix:** remove the **Send to the AT** step from your payment workflow. RG receipts are only reportable through the monthly SAF-T file. The **Record for SAF-T reporting** step alone is all you need for full compliance. > [accordion] What payment receipt types are supported in Portugal? > > Portugal defines two payment receipt types: > > * **RG — Outros Recibos**: Standard payment receipts, reported through the monthly SAF-T file only. Real-time reporting is not available for this type. > * **RC — Recibo no âmbito do regime de IVA de Caixa**: Receipts specific to the VAT Cash accounting regime. RC payments are not currently supported by the AT Portugal app. > [accordion] Where do I find Portugal-specific GOBL documentation? > > See the [Portugal tax regime in GOBL](https://docs.gobl.org/regimes/pt) for tax categories, NIF rules, and AT-specific extensions. The [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon documents fields required by the SAF-T schema. ### Registering supplier questions > [accordion] How do I register a supplier with AT? > > Run the AT Register Supplier workflow on the supplier, provide their AT web-service credentials, then register at least one series per document type they'll issue. Both can be done in the supplier portal or through the API ([credentials](/api-ref/apps/at-pt/credentials), [series](/api-ref/apps/at-pt/series-register)). Each series gets a validation code from the AT, used to build the ATCUD on every document. See [Register a supplier](/guides/pt-at-supplier). > [accordion] What credentials does AT require to authenticate a supplier? > > An AT web-services sub-user (username and password) created in the AT portal, in both models. It always needs the `WSE` permission, to register series; add `WFA` if documents are reported in real time. > [accordion] How are supplier credentials stored in Invopop for Portugal? > > Invopop stores the AT web-service credentials encrypted at rest, in both models: they're needed to register series, and for real-time reporting. In the SAF-T model, the supplier (or their accountant) also downloads the monthly SAF-T file and uploads it to the AT's portal. ### Reporting questions > [accordion] How often must I submit AT reports? > > Real-time model: per invoice. SAF-T model: once per month, by the 5th of the following month. The choice is made in your workflow: include the **Send document to AT** step for real-time reporting, or leave it out and report through the monthly SAF-T file. > [accordion] How do I schedule periodic reports for Portugal? > > For invoice-level reporting, there's nothing to schedule in real time: the **Send document to AT** step reports each document as it's issued. In the SAF-T model, generate the month's file on demand (from the supplier portal or the [SAF-T endpoint](/api-ref/apps/at-pt/saft)) and upload it to the AT's portal by the 5th of the following month; Invopop doesn't generate or upload it automatically. Periodic VAT and IES are filed separately by the accountant. > [accordion] What format does AT expect for periodic reports? > > Monthly SAF-T-PT XML uploaded to AT's portal (no API for this), or real-time WebService XML calls per invoice. Both follow the same SAF-T schema; real-time submits one document at a time, SAF-T submits an aggregated file covering the month. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Portugal's regulation → # Romania FAQ Source: https://docs.invopop.com/faq/romania Frequently asked questions about invoicing compliance in Romania ### Compliance questions > [accordion] Is e-invoicing mandatory in Romania? > > Yes. Taxable persons established in Romania must send their domestic invoices to RO e-Factura. It is mandatory for invoices to public bodies (B2G) since July 2022 and for invoices to businesses (B2B) since July 2024. Invoices to consumers (B2C) must be reported since January 2025. > [accordion] Is RO e-Factura part of the Peppol network? > > No. RO e-Factura is a national clearance platform that the Ministry of Finance and ANAF run. Every domestic invoice goes to this one platform through its API or through SPV. There is no Peppol directory and no network of access points in the domestic flow. > [accordion] What is the deadline to send an invoice to RO e-Factura? > > 5 working days from the issue date, since 1 January 2026. Before that date, the deadline was 5 calendar days. The supplier must issue the invoice by the 15th of the month after the supply. > [accordion] Does RO e-Factura apply to consumer (B2C) sales? > > Yes, when the supplier issues an invoice to the consumer. The supplier reports the invoice to RO e-Factura and gives it to the consumer in the usual way. A fiscal cash register receipt (bon fiscal) that meets the conditions of a simplified invoice does not go to RO e-Factura. > [accordion] What is the difference between a bon fiscal and a B2C invoice? > > A B2C invoice (*factură*) is an invoice that the supplier issues to a consumer. The supplier reports it to RO e-Factura and gives it to the consumer. A bon fiscal is a receipt from a fiscal cash register, under OUG 28/1999. Its data reaches ANAF through the cash register, not through RO e-Factura. A bon fiscal that meets the conditions of a simplified invoice does not go to RO e-Factura. > [accordion] Which transactions are out of scope? > > Exports and intra-Community supplies are out of scope. Qualifying fiscal cash register receipts are also out of scope. Since January 2026, invoices to buyers that are registered for VAT in Romania but not established there are in scope. > [accordion] Does a foreign provider need a certification to connect? > > No. Romania has no certification scheme for e-invoicing providers. A provider uses a qualified certificate for electronic signature. Each business authorizes the provider in SPV to act for its tax number (CIF). > [accordion] What are the penalties? > > A late transmission costs RON 1,000 to 10,000, based on the size of the taxpayer. An invoice issued outside the system costs the supplier 15% of its value. A buyer that books an invoice from outside the system also pays 15% of its value and cannot deduct the VAT. ### Invoicing questions > [accordion] What format does a Romanian e-invoice use? > > UBL 2.1 in the Romanian profile of EN 16931, called CIUS-RO (version 1.0.1). RO e-Factura also accepts CII (D16B). The platform checks the invoice against the EN 16931 rules and the national BR-RO rules. > [accordion] Is a PDF invoice still valid? > > No. The legal invoice is the XML file that the Ministry of Finance seals after validation. A PDF has no legal value, but you can give one to your customer as a readable copy. > [accordion] How do I correct an invoice after RO e-Factura accepts it? > > You cannot cancel a sealed invoice. Issue a credit note (type 381) or a corrective invoice (type 384) that references the original invoice. > [accordion] Can the buyer reject an invoice in RO e-Factura? > > No. The platform statuses show only whether the invoice passed validation. The buyer settles a dispute directly with the supplier, and the supplier corrects the invoice with a new document. > [accordion] Which VAT rates apply in Romania? > > Since 1 August 2025, the standard rate is 21% and the reduced rate is 11%. If an invoice is in another currency, the VAT amounts must also show in RON. > [accordion] How long can I download invoices from RO e-Factura? > > For 60 days. After that, ANAF archives the files, and a copy is available only on request. Keep your own copy of each sealed invoice. > [accordion] Is self-billing allowed? > > Yes. The buyer issues the invoice in the supplier's name, with type code 389. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Romania's regulation → # Saudi Arabia FAQ Source: https://docs.invopop.com/faq/saudi-arabia Frequently asked questions about invoicing compliance in Saudi Arabia ### Invoicing questions > [accordion] How does Invopop decide between clearance and reporting? > > From the GOBL invoice type. **Simplified** invoices (B2C) are **reported** to ZATCA; all **standard** invoices (B2B and B2G) are **cleared**. > [accordion] When do I submit a standard invoice (clearance) to Invopop? > > **Before you share it with the buyer.** Standard invoices follow the clearance model: Invopop submits the invoice to ZATCA in real time, ZATCA validates it and applies its cryptographic stamp, and the **cleared** document is returned. Only that cleared version is legally valid and shareable — so the invoice must go through Invopop before you send it on to the buyer. > [accordion] When do I submit a simplified invoice (reporting) to Invopop? > > **Within 24 hours of issuing it.** Simplified invoices follow the reporting model, so you can give the invoice to the customer straight away at the point of sale — it does **not** need ZATCA validation first, and you can share it before it ever reaches Invopop. You then have up to **24 hours from issuance** to submit it to Invopop, which forwards it to ZATCA immediately when the workflow runs. > [accordion] Do I need to build the ICV/PIH chain myself? > > No. Invopop calculates the Invoice Counter Value (ICV) and Previous Invoice Hash (PIH) internally on every submission. You only see them reflected in the generated invoice XML. > [accordion] How is the invoice chain created? > > ZATCA requires every document a party issues to form a single, unbroken cryptographic chain. Invopop maintains one chain **per party and environment** (sandbox simulation/developer vs. production are separate sequences), so each registered CSID has its own continuous counter. Two values link it together: > > * **ICV** starts at `1` for the first document and increments by exactly `1` for every document that follows. > * **PIH** of the first document is the hash of the value `0` — the base case defined in ZATCA's data dictionary. Every document after that sets its PIH to the hash of the **immediately preceding document**. > > Each new document takes the hash of the immediately preceding document and increments ICV by 1, **irrespective of type and status**: > > * **Document type does not split the chain.** Standard invoices, simplified invoices, credit notes, and debit notes all share one sequence. > * **Rejected documents still occupy their slot.** A document that ZATCA rejects keeps its ICV and hash; the next document chains off it, not off the last *accepted* one. > > For example, if invoice 2 is rejected, invoice 3 still uses `hash(invoice 2)` as its PIH and `ICV = 3`: > > | Document | ICV | PIH points to | ZATCA result | > | - | - | - | - | > | Invoice 1 | 1 | hash of `0` (base case) | Accepted | > | Invoice 2 | 2 | hash(Invoice 1) | Rejected | > | Invoice 3 | 3 | hash(Invoice 2) | Accepted | > | Credit note 4 | 4 | hash(Invoice 3) | Accepted | > [accordion] Where do I find the cleared invoice? > > In the **Files** section of the silo entry. After a successful submission the final XML is attached as `invoice.xml` — for standard invoices this is the ZATCA-cleared, stamped document. The QR code is also stamped onto the document. ### Registering supplier questions > [accordion] What do I need to onboard a party with ZATCA? > > A workspace with the **Saudi Arabia** app enabled, and an `org/party` (the supplier) carrying: > > * a **company name**, > * a Saudi **VAT registration number**, > * an **identity** of type `CRN`, `MOM`, `MLS`, `700`, `SAG`, or `OTH`, and > * a complete **national address** (building number, postal code, district, street, additional street, and country). > > During the hosted onboarding wizard the supplier provides the invoice type (`1000` standard / `0100` simplified / `1100` both), branch name, and business category — plus the FATOORA OTP. The company name and registered address are taken from the party document and shown read-only in the recap. > [accordion] How long is the OTP valid? > > **1 hour** from when it is generated in the FATOORA portal. If it expires, generate a new one and re-enter it in the wizard. > [accordion] What is the difference between Developer and Simulation sandbox modes? > > In **Developer** mode the OTP is not validated (any placeholder works) and you can only send invoices from ZATCA's fixed test VAT `399999999900003`. In **Simulation** mode the OTP must be real and you can send from any registered party. > [accordion] Can I test in Simulation without a real FATOORA account? > > No. Simulation requires a real FATOORA account and taxpayer to generate a valid OTP. Use **Developer** mode if you want to test the flow without a real account. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Saudi Arabia's regulation → # Singapore FAQ Source: https://docs.invopop.com/faq/singapore Frequently asked questions about invoicing compliance in Singapore > [accordion] What is the five-corner model in the context of Peppol? > > The standard Peppol network uses a four-corner model: the supplier (corner 1) sends an invoice through their Access Point (corner 2) to the buyer's Access Point (corner 3), which delivers it to the buyer (corner 4). Each party connects to the network through an accredited Access Point provider rather than exchanging documents directly. > > Singapore's GST InvoiceNow Requirement extends this to a **five-corner model** by adding IRAS (Inland Revenue Authority of Singapore) as the fifth corner. In this arrangement, the supplier's Access Point transmits a copy of every covered invoice to IRAS in near real time, alongside the normal delivery to the buyer. This gives the tax authority continuous visibility into transaction data without requiring businesses to file separate invoice-level reports. > > ```mermaid actions={false} theme={"system"} > %%{init: {'flowchart': {'defaultRenderer': 'elk'}}}%% > flowchart TB > IRAS["🏛 IRAS — Tax Authority
(Corner 5)"] > > Supplier("👨🏻‍💼 Supplier
(Corner 1)") > Buyer("💁‍♂️ Buyer
(Corner 4)") > > AP_S["🌐 Supplier Access Point
(Corner 2)"] > AP_B["🌐 Buyer Access Point
(Corner 3)"] > > Supplier --> AP_S > AP_S -- "Invoice" --> AP_B > AP_B --> Buyer > AP_S -. "Copy to tax authority" .-> IRAS > AP_B -. "Copy to tax authority" .-> IRAS > > classDef tax fill:#fff,stroke:#169958,color:#103830 > classDef business fill:#fff,stroke:#169958,color:#103830 > classDef ap fill:#fff,stroke:#169958,color:#103830 > linkStyle default stroke:#999,font-size:13px,color:#red > > class IRAS tax > class Supplier,Buyer business > class AP_S,AP_B ap > ``` > > The five-corner model is not unique to Singapore. Other Peppol jurisdictions, including Malaysia, are adopting or exploring similar approaches where the national tax authority receives invoice data as an additional corner of the network. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Singapore's regulation → # Slovakia FAQ Source: https://docs.invopop.com/faq/slovakia Frequently asked questions about invoicing compliance in Slovakia ### Compliance questions > [accordion] Is e-invoicing mandatory in Slovakia? > > Yes, from 1 January 2027. VAT payers established in Slovakia must issue e-invoices for domestic sales to businesses (B2B) and public bodies (B2G). Every business must be able to receive them. During 2026, e-invoicing is voluntary. > [accordion] Who must be able to receive e-invoices? > > Every legal entity and taxable person in Slovakia, including sole traders, the self-employed, farmers and people who rent property. In practice, each of them needs a contract with a digital postman. > [accordion] Does it apply to consumer (B2C) sales? > > No. The mandate currently covers only sales between businesses (B2B) and between businesses and public bodies (B2G). > [accordion] Does the mandate apply to foreign companies? > > Not until mid-2030. Some companies are registered for VAT in Slovakia but not established there. Until 30 June 2030, they do not have to issue or receive e-invoices through a digital postman. Cross-border transactions come into scope from 1 July 2030. > [accordion] Which transactions do not need an e-invoice? > > Simplified invoices do not need one. These are receipts up to EUR 100, and eKasa receipts up to EUR 400 including VAT. VAT-exempt supplies and supplies between members of the same VAT group also do not need one. You must not issue e-invoices for classified supplies, for example to the intelligence services. > [accordion] Do I need my customer's consent to send an e-invoice? > > No. When an e-invoice is mandatory, you do not need the recipient's consent. > [accordion] What is a digital postman? > > A certified provider that sends and receives e-invoices over Peppol for a business and reports the invoice data to the Financial Administration. The Financial Administration accredits digital postmen and publishes the list. Each business chooses its postman on the Financial Administration's portal. > [accordion] Do I still file the VAT control statement? > > Yes, until 30 June 2030. The control statement and the summary statement end on 1 July 2030. From then on, invoice data reaches the Financial Administration automatically through the digital postmen. > [accordion] How long must e-invoices be kept in Slovakia? > > For 10 years from the end of the calendar year they relate to, in their original XML form. You must keep them yourself: digital postmen do not have to keep the invoices they transmit. > [accordion] What are the penalties? > > If you do not report invoice data, or report it incorrectly or late, the fine is up to EUR 10,000. For repeated violations, it can reach EUR 100,000. There is no fine for an obvious mistake that you correct promptly, or for a proven failure of your digital postman. > [accordion] What VAT rates apply in Slovakia? > > A standard rate of 23%, with reduced rates of 19% and 5%, all in force since 1 January 2025. Slovakia uses the euro. ### Invoicing questions > [accordion] What format does a Slovak e-invoice use? > > Peppol BIS Billing 3.0 in UBL 2.1, based on the European EN 16931 standard. Slovakia adds no national profile or business rules to the invoice. The law also accepts UN/CEFACT CII, but only for invoices exchanged outside Peppol. > [accordion] Which Peppol ID do Slovak companies use? > > The DIČ (10-digit tax identification number) under scheme 0245, for example `0245:1234567890`. The mandate does not use the VAT number scheme 9950. The VAT number (IČ DPH) still goes in the invoice as the party's VAT identifier. > [accordion] Is a PDF invoice still valid? > > Not as an e-invoice. The e-invoice is the structured XML file. A PDF, or a payment QR code, can travel with it as an attachment. > [accordion] How do I correct an invoice after I send it? > > Issue a credit note for the original invoice. Then send a new, correct invoice. A corrective invoice is also possible if it references the original invoice (BT-25). You do not have to send a rejection over Peppol. If a buyer does not accept an invoice, the buyer settles it directly with the supplier, as with a paper invoice. > [accordion] Can I send e-invoices outside Peppol? > > Yes, if the recipient agrees. The agreement can take any form, including payment of the invoice. The invoice must still be structured XML in UBL 2.1 or CII that complies with EN 16931. If you send an invoice over Peppol, the recipient must accept it. > [accordion] What is the deadline to issue an e-invoice? > > 15 days from the supply of goods or services, the same as for paper invoices. It also applies to corrective invoices that change the tax base. > [accordion] Is self-billing allowed? > > Yes, under a written agreement between supplier and buyer. The buyer issues the invoice for the supplier and sends it through its own digital postman, with the dedicated self-billing document type. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Slovakia's regulation → # Spain FAQ Source: https://docs.invopop.com/faq/spain Frequently asked questions about invoicing compliance in Spain ### Compliance questions **Spain** > [accordion] What is Ley Crea y Crece? > > Crea y Crece (Ley 18/2022, "Law on the Creation and Growth of Companies") is a Spanish law introducing **mandatory B2B electronic invoicing** for all businesses and professionals established in Spain. > > Its primary policy goal is **combating late payments**. Spain has one of the longest average payment periods in the EU (\~80 days), and the law forces structured, traceable data on every B2B invoice, plus mandatory **invoice status reporting** (acceptance, rejection, payment date) so payment behavior becomes visible and measurable. > > Key parameters as they stand now: > > * **Scope**: domestic B2B transactions where the recipient is a business or professional established in Spain. > * **Architecture**: hybrid — a free public AEAT platform plus interoperable private platforms. > * **Format**: EN 16931-compliant UBL is mandatory for the public solution and for *copias fieles* submitted from private platforms; Facturae, UBL, CII and EDIFACT are accepted between private platforms. > * **Timeline**: Royal Decree 238/2026 was published 31 March 2026 and Orden HAC/1028/2026 entered into force on 6 October 2026, starting the clocks — e-invoicing is mandatory from **6 October 2027** for companies with turnover >€8M and from **6 October 2028** for everyone else. Invoice-state reporting follows the same dates, deferred to **6 October 2029** for sole traders and IRPF income-attribution entities. > > This regulation aims to transform invoicing from "PDF by email" into a structured, reportable, interoperable network. > [accordion] Who can issue invoices in Spain? > > Any entity with a Spanish NIF — companies, autónomos, and foreign entities with Spanish fiscal presence. Foreign-only entities issuing into Spain must operate through their local fiscal representation or a non-resident NIF. > [accordion] What periodic reporting obligations exist in Spain? > > Quarterly or monthly VAT (Modelo 303), annual recap (Modelo 390), recapitulative intra-EU declaration (Modelo 349), and the annual third-party transactions return (Modelo 347). Crea y Crece (from October 2027, phased by company size) adds invoice status reporting (acceptance, rejection, payment date) on top. **Facturae** > [accordion] When is Facturae mandatory in Spain? > > Mandatory for B2G transactions with Spanish public administrations above €5,000 since 2015 (Ley 25/2013). Voluntary for B2B today; becomes broadly mandatory under Crea y Crece from 6 October 2027 for businesses with turnover above €8M and from 6 October 2028 for all others. > [accordion] Are there special supplier obligations under Facturae? > > For B2G submissions, the supplier needs a valid digital certificate recognized by FACe (Cl\@ve, FNMT, etc.). For Invopop-generated XAdES signatures the certificate is Invopop's own; suppliers using their own signing flow upload theirs. > [accordion] What are the legal obligations for receiving Facturae invoices? > > Spanish public administrations must accept Facturae through FACe or a regional equivalent (e-FACT in Cataluña, FACeB2B for B2B). Private sector recipients have no Facturae-specific obligations beyond the standard 4-year archival. **No-VERI\*FACTU** > [accordion] What is the No-VERI\*FACTU mode? > > "No-VERI\*FACTU" is the alternative compliance mode under the same Spanish billing-software regulation (Reglamento de Sistemas Informáticos de Facturación). Invoices are *not* sent to AEAT in real time; instead they are registered locally in the certified system and may be inspected on demand. Suitable for businesses that prefer to keep records private unless asked. > [accordion] Are there special supplier obligations under No-VERI\*FACTU? > > Same fiscal residence requirements as VERI\*FACTU. Additionally, the supplier must be able to produce the chained register on AEAT request; Invopop retains it on their behalf for the legally required period. **SII** > [accordion] Who is required to report through SII? > > SII (*Suministro Inmediato de Información*) is mandatory for taxpayers that file VAT on a monthly basis. In practice this includes companies with annual turnover above €6,010,121.04, members of VAT groups (REGE), and businesses registered in the monthly VAT refund register (REDEME). Other taxpayers can opt in voluntarily. > [accordion] Are there special supplier requirements under SII? > > The supplier must be a Spanish-resident taxpayer subject to SII (turnover > €6M, REGE, or REDEME) or have voluntarily opted in. They must hold a digital certificate for AEAT or appoint Invopop as their representative via signed agreement. > [accordion] What reporting obligations does SII impose? > > Issued and received invoices must be reported within 4 calendar days. Subsequent corrections, cancellations, and intra-EU operations have additional bookkeeping streams (Libro de Bienes de Inversión, Libro de Operaciones Intracomunitarias). **TicketBAI** > [accordion] Do I need a digital certificate or any registration with TicketBAI? > > No, you don't need to register with TicketBAI, or upload any digital certificates to Invopop. As a certified billing provider, Invopop will sign all invoices with our own digital certificate. > > TicketBAI allows three types of certificates; Invopop uses the *certificado sello de empresa* which allows us to sign e-invoices on behalf of our customers, saving you the burden of registering and uploading certificates yourself. > [accordion] What is the deadline for uploading TicketBAI invoices from the time the sale is made? > > * Bizkaia: by the end of each quarter, except for companies under SII (turnover above 6 million euros), which must report within 4 days. > * Gipuzkoa and Álava: The submission must be done immediately after generating the invoice. > [accordion] What is needed to issue TicketBAI? > > The supplier must have fiscal residence in one of the three foral territories (Bizkaia, Gipuzkoa, Álava) and sign a representation agreement allowing Invopop to issue on their behalf. No supplier-side certificate required. **VERI\*FACTU** > [accordion] Has VERI\*FACTU been delayed until 2028? > > Yes. On 5 October 2026 the AEAT published an informative note announcing that the pending obligations of Real Decreto 1007/2023 (the VERI\*FACTU regulation) will be postponed to **October 2028**. The goal is to align the VERI\*FACTU calendar with the Crea y Crece e-invoicing mandate for businesses and professionals with annual turnover of €8M or less, both legally and technically, and to take into account future ViDA digital reporting requirements. > > The previously announced dates (1 January 2027 for companies and 1 July 2027 for self-employed individuals) therefore no longer apply once the amending regulation is formally approved. The AEAT has stated that the technical guarantees of RD 1007/2023 (integrity, conservation, accessibility, legibility, traceability and unalterability of records) will be kept substantially equivalent, so systems already compliant with VERI\*FACTU remain valid. > [accordion] Is VERI\*FACTU compliance mandatory in Spain? > > VERI\*FACTU will be mandatory from October 2028 for companies and other taxpayers (mainly self-employed individuals), following the postponement announced by the AEAT on 5 October 2026. Companies reporting with SII (large companies) or TicketBAI are exempt from reporting with VERI\*FACTU. The system is already operational and can be adopted voluntarily today. > [accordion] Do VERI\*FACTU invoices need to be printed? > > VERI\*FACTU invoices don't necessarily need to be printed because they are issued with electronic invoicing systems such as Invopop. Source: [AEAT FAQ](https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu/preguntas-frecuentes/posibilidad-remision-informacion-factura-parte-receptor.html?faqId=9e9e77fe52572910VgnVCM100000dc381e0aRCRD). > [accordion] Can invoices have an issue date in the past in VERI\*FACTU? > > Yes, VERI\*FACTU allows issue dates to be in the past, as long as they are after October 28, 2024. The issue date can't be set with a date in the future. The AEAT is not strict about the validation, but it's best to keep your intentions clear. [GOBL](https://docs.gobl.org) gives you alternative fields such as `op_date` and `value_date` to store details about your invoicing operation. > [accordion] What if a customer exceeds the simplified invoice limit (400€) and is not registered in the taxpayer census? > > Spanish fiscal law requires the customer to be identified with an ID document (preferably official). Set the `es-verifactu-identity-type` extension to `07` ("Not registered in census" / "No censado"), which maps to the `IDOtro` field in VERI\*FACTU. > > Here is an example of a customer identity block in [GOBL](https://docs.gobl.org): > > ```json theme={"system"} > "customer": { > "name": "Consumer", > "identities": [ > { > "label": "NIE", > "country": "ES", > "code": "Z1111111S", > "ext": { > "es-verifactu-identity-type": "07" > } > } > ] > } > ``` > > For the full list of identity type codes, see the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon documentation. > [accordion] Are there special supplier obligations under VERI\*FACTU? > > Suppliers must use a certified billing system (Invopop is one). Each supplier must sign a representation agreement allowing Invopop to issue invoices on their behalf — without a digital certificate from the supplier's side. ### Invoicing questions **Spain** > [accordion] Should I send credit notes with positive or negative values? > > You should send the credit note with the same sign as the original invoice. > > In Spain, unlike other countries, credit notes must be submitted to Hacienda with inverse values. Invopop handles this conversion automatically before transforming the credit note into a "factura rectificativa" (corrective invoice). > > This means you only need to send the credit note following international standards (with same sign as the invoice). Invopop will automatically adapt it when submitting to Hacienda. > > For reference, see the [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) documentation with `type` set to `credit-note`. > [accordion] Where do I find Spain-specific GOBL documentation? > > See the [Spain tax regime in GOBL](https://docs.gobl.org/regimes/es) for tax categories, NIF rules, and Spanish-specific extensions. Subsystem-specific addons live alongside: [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1), [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1), [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3). **Facturae** > [accordion] Does Invopop submit the Facturae XML invoice? > > > [!NOTE] > > > > Invopop is working on direct FACe connection as part of the Crea y Crece mandate starting October 2027 > > You submit the XML directly to the [FACe portal](https://face.gob.es/), Invopop does not submit it for you. FACe is the centralised entry point for all Spanish public administrations, and submission is the supplier's responsibility. You'll need: > > * A valid digital certificate (FNMT or DNIe). > * The XML file Invopop generated (download it from the workflow output). > * The three DIR3 administrative centres correctly embedded in the invoice — `Oficina Contable` (01), `Órgano Gestor` (02), `Unidad Tramitadora` (03). If these are wrong, FACe will reject the invoice. The receiving public body publishes their codes in the [DIR3 directory](https://directorio3.gob.es/). > > Submission options: > > * **FACe web portal**: manual upload, fine for low volumes. > * **A registered FACe-compatible third party** (gestoría, ERP plugin, etc.). > [accordion] How do I verify that the generated XML is valid? > > The generated XML will be added to your silo entry as an attachment under the "files" tab with the file name `facturae.xml`. Upload this file to [FACe's online validator](https://face.gob.es/es/facturas/validar-visualizar-facturas) to verify its validity. > [accordion] Is the Facturae invoice reported to the tax authority? > > No — the Facturae app only converts GOBL to Facturae XML. Submit B2G invoices via [FACe](https://face.gob.es/es); tax reporting to the AEAT happens separately (e.g. through SII or VERI\*FACTU). **No-VERI\*FACTU** > [accordion] What GOBL fields differ between VERI*FACTU and No-VERI*FACTU? > > The same GOBL invoice produces either, controlled by the workflow. The QR payload and the absence of `verifactu-qr` stamps in the silo entry distinguish No-VERI\*FACTU output. AEAT submission stamps are absent in No-VERI\*FACTU mode. **SII** > [accordion] What is the deadline for submitting invoices to SII? > > Issued invoices must be reported within 4 calendar days from the date of issuance — and always before the 16th day of the month following the one in which the VAT liability arises. Saturdays, Sundays, and national holidays are excluded from the count. Received invoices follow the same 4-day rule but starting from the date the invoice is recorded in the books. > [accordion] How do I correct an invoice already submitted to SII? > > SII corrections are submitted as modification records (`A1`) referencing the original entry, rather than by deleting and re-sending. In practice, after fixing the underlying [GOBL](https://docs.gobl.org) document, run the SII workflow again — Invopop detects that a previous submission exists for the same invoice and emits the modification record automatically. **TicketBAI** > [accordion] What's the workflow for issuing TicketBAI invoices? > > Build a GOBL invoice with the `es-tbai-v1` addon, send it through the TicketBAI Issue Invoice workflow. Invopop signs with its *sello de empresa* certificate, generates the chained XML, and submits to the relevant Diputación Foral (Bizkaia, Gipuzkoa, or Álava). > [accordion] Why don't TicketBAI QR codes work in the sandbox environment? > > This is expected. QR codes generated in the TicketBAI sandbox environment are intentionally non-functional to prevent sandbox invoices from being mistaken for real ones. > > To verify that a sandbox QR code is correct, upload the PDF or a QR image to the foral tax authority's test verification page: [pruebatuz.bizkaia.eus](https://pruebatuz.bizkaia.eus/B4PEQR0C/testQr.xhtml?idioma=es). > [accordion] What are the most common TicketBAI errors and how do I fix them? > > These are the errors we see most often when submitting invoices to the Diputaciones Forales: > > | Code | Error | Meaning and fix | > | - | - | - | > | `B4_2000001` / `B4_2000002` | XML fails XSD validation | Typically an invoice `code` longer than 20 characters. Some are `cvc-pattern` failures, meaning a field doesn't match the expected format. Fix the offending field and resend in a new document. | > | `N3_0000002` | Supplier not identified, or legal name incorrect | The NIF or legal name isn't registered with that region's tax agency, often after a change of legal name. Update the supplier's details with the agency, then resend. | > | `503` | Service unavailable | The agency's service is temporarily down. Retry later. | > | `B4_2000016` | Credit note has no series | Credit notes need a non-empty `series`. Add one and resend. | > | `008` | Signature verification error | Usually reported after the fact by the Diputación Foral, even though the invoice was accepted at submission. It's often caused on the tax agency's side. Issue a new invoice rather than trying to correct the original. | > | `004` / `012` | Software registration verification error | The supplier's TicketBAI registration isn't complete, for example when the final onboarding confirmation hasn't been done. Finish the [supplier registration](/guides/es-ticketbai-supplier) before issuing invoices. | > > Because TicketBAI documents are chained, a rejected invoice can't be edited in place. Correct the problem in a new document and send it again. **VERI\*FACTU** > [accordion] When should I cancel invoices in VERI\*FACTU? > > In VERI\*FACTU, you should only cancel an invoice if it hasn't been handed to the customer nor accepted by the tax authority. Different from a credit note or a corrective, canceling an invoice doesn't produce a second document, which means you don't have a paper to hand to your customer to show the cancellation. That's why, if the invoice has been handed to the customer, we recommend issuing a credit note instead. > [accordion] What should I do if an invoice is rejected by VERI\*FACTU? > > The response from VERI\*FACTU should contain all the details you need to be able to decide what changes need to be made to the [GOBL](https://docs.gobl.org) document in order to be processed correctly. Make the changes either via the Invopop API or console directly on the same document, and simply resend to the VERI\*FACTU workflow. > > Invopop will ensure that the correct substitution document is generated by checking previous attempts and including the correct codes in the new request. > [accordion] Once a VERI\*FACTU invoice is issued, can I get the QR code image url? > > We do not provide the QR code image itself. The QR code is a visual representation of a URL that you need to generate on your own if you're creating custom PDFs or need it for any other purpose. > > The full requirements are in the AEAT [VERI\*FACTU QR specification](https://www.agenciatributaria.es/static_files/AEAT_Desarrolladores/EEDD/IVA/VERI-FACTU/DetalleEspecificacTecnCodigoQRfactura.pdf) PDF document in Spanish. Here you can read that: > > > The "QR" code must have a size between 30x30 and 40x40 millimeters and follow the specifications of the ISO/IEC 18004:2015 standard. For the generation of the "QR" code, the M (medium) error correction level shall be used. > > Generate your own QR code image as follows: > > **1. Obtain the VERI\*FACTU URL** > > * **API**: fetch the entry and get `data -> head -> stamps -> verifactu-qr`. > * **Console**: in the invoice entry click on the kebab `···` menu and select **View Headers**. > > **2. Generate the QR image** > > Use the VERI\*FACTU URL in a library capable of generating ISO/IEC 18004:2015 QR images (Invopop uses [go-qr](https://github.com/piglig/go-qr)) > > **3. Store or use the image** > > Store or embed the image in your PDF. You can [see how we generate QR images](https://github.com/invopop/gobl.html/blob/main/components/images/images.go) in our open source gobl.html library. > [accordion] What is the VERI\*FACTU chain? > > VERI\*FACTU requires every request to be linked with a fingerprint or hash. During the "Generate VERI\*FACTU" and "Cancel VERI\*FACTU" actions, Invopop will automatically find the last request made for the same supplier, and incorporate the chained data into the new request. > > It's important to understand that VERI\*FACTU focuses on requests, and not individual documents; a single invoice may have multiple entries in the chain if it has been processed multiple times due to incorrect details, cancellations, or substitutions. > > Invopop guarantees the chain is never broken using database transactions and retries in the case of collisions. > [accordion] What are the most common errors when submitting invoices to VERI\*FACTU? > > The most common errors are related to format issues or invalid extensions, which are already handled in Invopop through the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon validations. These prevent most of the typical problems before they reach the submission stage. > > Among the errors that aren't yet validated on our side, the five most frequent ones are: > > * `4104: Error en la cabecera: el valor del campo NIF del bloque ObligadoEmision no está identificado.` → The issuer's name must match what's registered for that NIF (tax ID). > * `4102: El XML no cumple el esquema. Falta informar campo obligatorio.` → Usually occurs when a required field is missing in the XML, often within the Desglose (taxes) section. > * `1110: El NIF no está identificado en el censo de la AEAT.` → The provided NIF (tax ID) isn't found in the AEAT registry (often due to typos or testing data). > * `3000: Registro de facturación duplicado.` → Triggered when issuing the same invoice series/code twice. > * `2001: El NIF del bloque Destinatarios no está identificado en el censo de la AEAT.` → Similar to 1110, but applies to the NIF (tax ID) of the customer. > [accordion] In my VERI\*FACTU's XML, DescripcionOperacion is being populated with line item descriptions, how do I change this? > > You can set your own description using the notes object in the invoice. The key used for the description needs to be set to general. For example: > > ``` > "notes": [ > { > "key": "general", > "text": "This will appear as DescripcionOperacion" > } > ] > ``` > > We generate a default description if the note is not provided which is what you are currently seeing. This default description will neatly cut off before it reaches a length of 500 characters as that is the limit the AEAT imposes. > [accordion] What \$tags are supported in GOBL with the 'es-verifactu-v1' addon? > > | Key | Text | > | - | - | > | `reverse-charge` | Reverse Charge / Inversión del sujeto pasivo. | > | `simplified-scheme` | Factura expedida por contribuyente en régimen simplificado. | > | `self-billed` | Facturación por el destinatario. | > | `travel-agency` | Régimen especial de las agencias de viajes. | > | `second-hand-goods` | Régimen especial de los bienes usados. | > | `art` | Régimen especial de los objetos de arte. | > | `antiques` | Régimen especial de las antigüedades y objetos de colección. | > | `cash-basis` | Régimen especial del criterio de caja. | > [accordion] How do I invoice a line with no VAT in Spain (exempt, not subject, reverse charge or 0%)? > > In Spanish VAT there are several legally distinct reasons why a line carries no tax, and VERI\*FACTU requires you to state which one applies. In GOBL you do this with the `key` field of the line's tax combo. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon derives everything else from it. > > Pick the key that matches the reason there is no VAT: > > | Situation | `key` | Default extension set by the addon | When to use it | > | - | - | - | - | > | Exempt under art. 20 LIVA | `exempt` | `es-verifactu-exempt: E1` | Healthcare, education, financial and insurance services, residential rental, second-hand property, games of chance subject to the gaming tax, and the other domestic exemptions in art. 20. | > | Exempt for another legal reason | `exempt` + `es-verifactu-exempt: E6` | — | Exemptions whose legal basis is outside arts. 20–25. Rare. | > | Export of goods | `export` | `es-verifactu-exempt: E2`, `es-verifactu-regime: 02` | Goods leaving the EU, including shipments to the Canary Islands, Ceuta and Melilla. Set `E3` for supplies assimilated to exports (ships, aircraft, diplomatic missions) or `E4` for goods in free zones and customs warehouses. | > | Intra-community supply of goods | `intra-community` | `es-verifactu-exempt: E5` | Goods transported to another EU member state for a customer with a valid VAT number in that state. | > | Not subject – place of supply | `outside-scope` | `es-verifactu-op-class: N2` | Services to business customers established outside Spain, services localised in the Canary Islands, Ceuta or Melilla, goods that never enter Spain. | > | Not subject – art. 7, 14 and others | `outside-scope` + `es-verifactu-op-class: N1` | — | Transfer of a going concern, free samples and low-value promotional items, compensation and penalties, refundable deposits, pass-through amounts collected for third parties. | > | Domestic reverse charge | `reverse-charge` | `es-verifactu-op-class: S2` | Construction and rehabilitation works between businesses, scrap and waste metals, property transfers where the exemption is waived, B2B sales of phones, consoles and laptops to resellers. The invoice must state *Inversión del sujeto pasivo*. | > > Do not include `rate` or `percent` on any of these lines. None of these keys admits a rate, so a combo such as `key: exempt` with `rate: general` fails validation (`GOBL-TAX-COMBO-03`) before the invoice is sent. The addon also rejects a combo that carries both an operation class and an exemption code, and requires an operation class on any combo with a percent. > > **Examples** > > An exempt healthcare service: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "exempt" > } > ``` > > An exempt operation with a legal basis outside art. 20: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "exempt", > "ext": { "es-verifactu-exempt": "E6" } > } > ``` > > Consulting for a business customer in Germany: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "outside-scope" > } > ``` > > Late-payment interest charged to a Spanish customer: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "outside-scope", > "ext": { "es-verifactu-op-class": "N1" } > } > ``` > > Construction work for a Spanish business, with the customer self-assessing: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "reverse-charge" > } > ``` > > The customer's tax ID does not change the classification: a line with `rate: standard` is taxed at 21% and marked `S1` even when the customer is German. The only automatic case is a tax combo whose `country` field is not `ES`, meaning you are charging another country's VAT on the line. The addon then marks it `N2` for VERI\*FACTU and drops any exemption code, because the operation is not subject to Spanish VAT. > > **Is there a 0% rate?** > > Not one you can use today. GOBL accepts `key: zero`, which classifies the line as subject and not exempt (`S1`) at 0%, but Spain has no 0% VAT rate in force: the temporary 0% on basic foodstuffs ended on 30 September 2024, and the AEAT validates the rate against the operation date and rejects 0% on later invoices. If your system has a product configured at 0%, it is almost certainly modelling one of the cases in the table above and should be mapped to that key instead. > > **Prepaid credit, gift cards and advances** > > These are not exempt and should not use any of the keys above. Credit that can only be spent on one kind of supply at a known rate is taxed when sold, as a normal `rate: standard` line. Credit that can be spent on goods or services at different rates is outside the scope of VAT when sold and is taxed on redemption instead; no invoice for a supply is issued at the time of the top-up. Advance payments for a specific future supply are taxed when received, at the rate of that supply. > > **Who decides which key applies?** > > The classification is a tax determination for the issuer and their advisor. GOBL validates that what you send is internally consistent and will be accepted by the AEAT, but it cannot tell you whether a given product is exempt, not subject or taxed. The same reason must also appear on the printed invoice: an exempt line needs a reference to its legal basis, and a reverse-charge line needs the *Inversión del sujeto pasivo* mention. ### Registering supplier questions **Spain** > [accordion] What are the most common reasons for failing supplier approval? > > We reject agreements when: > > * The uploaded document is not signed (they upload the unsigned template). > * Users upload a handwritten signature without an ID. > * The electronic signature does not belong to the legal representative (or to the *autónomo* themselves). > * A company's agreement is signed with a personal certificate (e.g. the FNMT's *Certificado Electrónico de Ciudadano*) instead of a representative certificate (e.g. the FNMT's [*Certificado Electrónico de Representante*](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) for that company. > * The agreement is missing a date or location. > * The name is entered as an email address. > > The job will state the reason for rejection. > [accordion] What happens if a supplier does not complete their registration within the allotted wait time? > > A KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a reminder to the supplier through a webhook. > > The registration link will not expire and the entity will still be able to upload their registration documents which will be validated. Should you choose to run this workflow again using this supplier, the supplier will be accepted or rejected immediately because the required documentation has already been provided and validated. > [accordion] What happens if a supplier validation is rejected? > > If the uploaded agreement documents were rejected, a KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a notification to the supplier through a webhook within the **Error Handling** section. > > Afterwards, if you wish to re-register the supplier with new documents, you must: > > 1. Unregister the supplier using the **Unregister Supplier workflow**. > 2. Re-run the Register supplier workflow. > > This will restart the entire registration process. When uploading documents, the previously submitted agreement will appear selected by default. Simply choose a new file and click `Continue` to override the old one. See the image below for reference: > > ![Overriding the previously submitted agreement](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-update-agreement.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a20bb8dd02df632d114e0519f4d34899) > > Overriding the previously submitted agreement > [accordion] What is the minimum information required to register a supplier? > > In order to complete the representation agreement you will need to provide the following information: > > **Company** > > 1. Name > 2. NIF > 3. Address > > **Legal representative** > > 1. Full name > 2. Government ID type and number > 3. Address > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` > > If the entity is a self-employed individual (*autónomo*), only the information requested in the **Legal representative** section is required. > > ```json Spain autónomo supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Juan Pérez González", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "autonomo@example.com" > } > ] > } > ``` > [accordion] What methods are available to sign the PDF supplier agreements? > > The supplier can add their electronic signature to the PDF document ([instructions](https://helpx.adobe.com/acrobat/using/signing-pdfs.html)), or sign with a handwritten signature (we recommend using [Adobe's online service](https://www.adobe.com/acrobat/online/sign-pdf.html)). > [accordion] What is the file size limit for the documents provided in the supplier registration flow? > > Individual documents are limited to a maximum size of 10MB. Uploads exceeding this size will result in an error. **Facturae** > [accordion] How do I register a supplier with Facturae? > > Facturae itself has no central registration — the supplier just needs to enrol on FACe (or the relevant regional portal) using their digital certificate. Invopop signs the XML; submission to FACe is currently manual via the supplier's account. > [accordion] What certificates does Facturae require to authenticate a supplier? > > Facturae requires an XAdES signature on the XML using a qualified certificate (FNMT *persona jurídica*, Cl\@ve, ACCV, etc.). Invopop signs with its own certificate by default; bring-your-own is supported on request. **No-VERI\*FACTU** > [accordion] How do I register a supplier with No-VERI\*FACTU? > > Run the No-VERI\*FACTU Register Supplier workflow. The agreement is identical to VERI\*FACTU's, but Invopop does not register the supplier with AEAT for active reporting, only for invoicing on their behalf. **SII** > [accordion] How do I register a supplier with SII? > > Run the SII Register Supplier workflow. The supplier signs the representation agreement and Invopop registers as their *colaborador social* with AEAT. Invopop's own certificate is then used for SII submissions on their behalf. > [accordion] What certificates does SII require to authenticate a supplier? > > SII web services accept any AEAT-recognized certificate. Invopop signs submissions with its *certificado de representante de persona jurídica*, acting under the colaborador social arrangement — suppliers do not upload their own certificates. **TicketBAI** > [accordion] How do I register a supplier with TicketBAI? > > Run the TicketBAI Register Supplier workflow. The legal representative signs the agreement (electronic or handwritten + ID); the supplier's foral territory determines which Diputación Foral endpoint Invopop will submit to. > [accordion] What certificates does TicketBAI require to authenticate a supplier? > > None — Invopop uses its own *certificado sello de empresa* (one of the three TicketBAI-permitted types). Suppliers do not need to register with the foral tax authority or upload any certificate. **VERI\*FACTU** > [accordion] How do I register a supplier with VERI\*FACTU? > > Run the VERI\*FACTU Register Supplier workflow. The legal representative signs the PDF agreement (electronic or handwritten signature with ID) and Invopop registers the supplier with AEAT for invoicing on their behalf. ### Reporting questions **SII** > [accordion] How often must I submit SII reports? > > Continuously, every issued or received invoice must be reported within 4 calendar days (excluding weekends and holidays), and always before the 16th of the following month. There is no daily cadence; submissions happen as documents are processed. > [accordion] What format does SII expect for periodic reports? > > SOAP web services with XML payloads — distinct schemas for issued (`SuministroFactEmitidas`), received (`SuministroFactRecibidas`), investment goods, and intra-EU operations. Each call carries up to 10,000 records signed with the issuer's (or representative's) certificate. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Spain's regulation → # UAE FAQ Source: https://docs.invopop.com/faq/uae Frequently asked questions about invoicing compliance in UAE > [accordion] Documentation in progress > > FAQ content for UAE is being prepared. For specific questions, please contact [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about UAE's regulation → # Understanding Invopop's pricing Source: https://docs.invopop.com/get-started/pricing Usage and cost of issuing invoices and other documents through Invopop Our pricing is based on **Pops**, **Apps** and **Pro Features**. * **Pops** are our unit of computing usage. When selecting a plan, you are entitled to the specified number of Pops which will be spent on storage, on the actions performed on your documents, and if applicable, on the Parties you register (what we call **Seats**). **The first 200 pops are free.** * **Paid Apps**, with a fixed monthly fee, of two types: * **Countries** englobe all the integrations you may need for e-invoicing/reporting in a given country. The **first country is free**; each additional one has a fixed monthly fee. * **Integrations** are connectors to ERPs and other merchant platforms such as Stripe or Chargebee. * **Pro features** such as dedicated support and unlimited users can be added to your subscription at a flat monthly fee. You can choose a **monthly subscription**, or **save on an annual one**. ## Understanding Pops (our computing credits) Pops are calculated based on a combination of the monthly documents you process and the specific actions you perform on them. Your pop consumption starts with the number of documents you plan to process each month. `Total Pops = (Docs Processed × Base Pop Cost) + (Document Actions × Action Pop Cost) + (Number of Seats x Pops per Seat)` * Core actions such as Send email or Generate PDF cost 1 pop. * Format conversions such as Facturae, XRechnung, UBL or CII also cost 1 pop. * Each network or tax authority has a different price depending on complexity of operation and implementation: * TicketBAI, VERI\*FACTU or Peppol cost 2 pops. * SDI, AT, KSeF cost 3 pops. * DIAN, myDATA, SAT, NFSe cost 5 pops. * Each Seat - a registered Party/Merchant per network - costs 100 pops. ![Pop costs per action, document, and party registration](https://mintcdn.com/invopop/-_H_wxhzEz42K5K8/assets/other/pricing-pops-table.png?fit=max\&auto=format\&n=-_H_wxhzEz42K5K8\&q=85\&s=4da79b36f8dda120c7c5b6645af3057f) ## Our Apps In addition to your Pop-based plan cost, we offer optional, fixed-monthly-fee apps (countries and integrations). These are billed separately from your base plan. **A country** includes all the integrations you could need for e-invoicing/reporting in a given country. For example, Spain would include the integration with VeriFactu, SII, Ticketbai. The **first country is free**; each additional one costs +**€300/month**. **A connector** is the self-serve integration with your ERP and other merchant platforms. Price varies per connector type, for example: | Add-on | Monthly Cost | Description | | :- | :- | :- | | **Chargebee** | **+€200/month** | Connector for Chargebee integration | | **NetSuite** | **+€200/month** | Connector for NetSuite integration | | **Stripe** | **+€100/month** | Connector for Stripe integration | ## Our Pro Features **Pro features** include chat and email support, unlimited users, removing Invopop's watermark from PDFs and emails, generating audit logs and access to ISO27001. These can be added to your subscription for **+€500/month.** *** ## FAQ > [accordion] When will I be charged? > > Invopop charges for subscriptions in advance at the start of each billing cycle. When you first subscribe, you'll be charged immediately for the full period. For subsequent renewals, you'll be charged on your billing anniversary date for the next billing period. > > **How do monthly renewals work?** > > Your subscription renews on the same day each month. For example, if you subscribe on March 31st, your renewal in February would occur on the 28th (or 29th in leap years) to account for different month lengths. > > **What happens if I upgrade my plan mid-cycle?** > > Upgrades are applied immediately. You'll receive a new invoice that accounts for your new plan, with appropriate credits for what you've already paid in the current billing period. The new benefits take effect right away. > > **What about downgrades?** > > Downgrades take effect at the end of your current billing period. This means you'll continue to enjoy your current plan's benefits until the next renewal date, when the downgrade will be applied. > > **Do Developer and Pro plans work the same way?** > > Yes, both prepaid Developer and Pro plans are charged in advance at the start of each billing cycle. The only difference is access to pro features. > [accordion] What happens if I run out of Pops? > > To continue using Invopop, you will need to upgrade to the next pop tier. > [accordion] How do merchants (Seats) contribute to my pop count? > > Technically, a **Seat** corresponds to a Tax ID registered to issue invoices in a specific network. Every account needs at least one. > > In practice, most companies need only one seat or a handful. Some, however, use Invopop to provide e-invoicing to their own customers: each customer registered counts as a seat. > > Every seat consumes pops from your monthly allowance: 100 pops are deducted the moment you register it, and 100 pops again every 30 days from that registration date for as long as it stays registered. > [accordion] What payment methods do you accept? > > For Developer and Pro plans, Invopop accepts credit card payments and direct debit. These self-service plans are designed for automated payment processing through your billing portal. > > For Enterprise plans, Invopop also offers pay by invoice, which aligns with the higher-touch, sales-assisted nature of these subscriptions. > > The payment methods break down by plan type as follows: > > **Developer/ Pro Plans** > > * Credit card > * Direct debit > > **Enterprise Plans** > > * Credit card > * Direct debit > * Pay by invoice (Net 30 terms, paid in advance) > [accordion] How is support different in each plan? > > **Developer plans** include access to our [community forum](https://community.invopop.com). These plans are designed for technical users who prefer to self-serve using documentation and community resources. > > **Pro plans** include everything in Developer, plus direct chat and email support from our team. > > **Enterprise plans** include everything in Pro, plus dedicated Slack support, white-glove onboarding, regulatory advice, and guaranteed response and uptime SLAs. > [accordion] Why would I need an Enterprise plan? > > Enterprise plans are designed for organizations with complex needs and higher volumes. You should consider Enterprise if you need: > > * **Custom pricing and contracts** tailored to your specific usage patterns and business requirements > * **Dedicated support** through Slack with guaranteed response times and uptime SLAs > * **White-glove onboarding** with personalized setup assistance > * **Pay by invoice** options with Net 30 terms > * **Sales-assisted procurement** to help navigate your organization's buying process > > Enterprise plans provide the flexibility, support, and security features that larger organizations require. # Quickstart Source: https://docs.invopop.com/get-started/quickstart Sign up instructions and getting your first sandbox working In this tutorial, you will: 1. Sign up for an Invopop account and get your first sandbox workspace working. 2. Invite your colleagues to join your workspace. 3. Create a simple workflow to issue an invoice. 4. Upload the invoice to the workflow and process it. Let your coding agent run the API half of this quickstart against your sandbox. I have an Invopop sandbox workspace, an API key in the INVOPOP\_TOKEN environment variable, and I have published the "PDF invoice" workflow template in the Console. Read [https://docs.invopop.com/get-started/quickstart.md](https://docs.invopop.com/get-started/quickstart.md) and [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md). Then, using curl or this project's HTTP client: ping the API, create a silo entry with PUT and a UUID from GET /utils/v1/uuid?v=7 using the example invoice from the quickstart, create a job with PUT for the workflow ID I give you with wait=30, and fetch the entry afterwards. Show me the entry state, whether it is signed, the code assigned by the series and the URL of the generated PDF. Do not invent tax IDs or totals; use the example document as it is. ## Signing up **1. Sign up for an Invopop account** Go to [console.invopop.com](https://console.invopop.com) and select your sign-up method: continue with Google, or enter your email address. The same form is used to sign in and to create a new account. ![Sign-in page with Google and email options](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-signup.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=23297e9bdf3f0d8cb4f128ad45dbcceb) **2. Fill in your information** Fill in the form with your name, company, and position. The company will become your organization in Invopop, more on that later. **3. Create a first sandbox workspace** You'll be prompted to create a first sandbox workspace: give it a name and a handle, and keep **Sandbox** selected as the environment. Don't worry, you can always create more workspaces later. ![Create a workspace form with sandbox environment selected](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-workspace.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=c35d71ba1a483560e59f3b39f293fb42) **4. Congratulations, you've just created your first sandbox workspace** You will be redirected to the Invopop console. Congratulations, you've just created your first sandbox workspace! ![Fresh sandbox workspace with an empty invoices list](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-blank.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=e377edee8e5df7b8637ead25ef252d64) ## Inviting colleagues Now that you've signed up, you can invite your colleagues to join your organization. **1. Go to Admin** Within the [Invopop console](https://console.invopop.com), click on the workspace name in the top left corner and select **Admin**. You may be prompted to log in again, and you'll be redirected to the Invopop Admin area. ![Workspace menu with the Admin option](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-access.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=0bf3852d7f9f694fc7cff8fa312f02c9) **2. Go to the members' page** Click on the **Members** tab on the left. You'll see a list of all the members in your organization. ![Organization members page](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-members.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=5383f6072949540ee7cfc80388002dac) **3. Click on the 'Invite member' button on the top right corner** Fill in the form with your colleagues' email addresses and position and click on Send. > [!NOTE] > > Inviting members is only available on Pro and Enterprise accounts. On other plans the **Invite member** button is disabled until you add multi-user access to your subscription — see [pricing](/get-started/pricing) for details. **4. All done** Your colleagues will receive an email with a link to join your organization and will be able to access any workspace associated with your organization. ## Creating a workflow Now let's create your first workflow. We'll start with a simple workflow that generates a PDF invoice. **1. Go to Console** Go back to the workspace by clicking on the **Workspaces** tab in the Admin area and selecting your workspace, or simply opening a new tab in [https://console.invopop.com](https://console.invopop.com). ![Workspaces page in the Admin area](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-back-to-workspace.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=ddb5abb0b7a7d3cef8d9c8368e26390c) **2. Go to Workflows** Click on **Workflows** on the left sidebar. You'll see a list of all the workflows in your workspace. ![Empty workflows list](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-workflow-list-empty.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=30d835ca9cb011b321555cdf59b061af) **3. Create a workflow** Click on the **Create workflow** button on the top right corner. A new draft workflow opens in the workflow editor. **4. Select a template** Click on **Load template**, find the "PDF invoice" template in the list, and click on **Load Template**. ![Load template dialog with the PDF invoice template selected](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-template.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=7d289acb0d4e2b5a1f8346b63d397008) **5. Modify the workflow** Let's add a step that sets the document state to `Sent` after the PDF is generated. Click on **Click to add action** below the last step and select **Set State** under **Core** in the right sidebar. ![Action picker with the Set State action](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-add-step.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=4b49281ab2335dab404aa22f331dfdc9) **6. Configure the step** You should now see the configuration of the **Set State** step, otherwise click on the step you've just added. Select `Sent` in the **State** dropdown. ![Set State step configured to Sent](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-set-state.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=c251d1ac7965b6559959ed226099a167) **7. Save and Publish** Click on the **Save draft** button to save your draft workflow. Now click on **Publish** so you can start using it in your workspace. ## Uploading an invoice Now let's upload an invoice to your workspace that we'll later send to the 'PDF invoice' workflow. You can upload document manually from the Console or by using the API. > [tab] Console > > 1. In the [Console](https://console.invopop.com), click on **Invoices** on the left sidebar. > 2. Click on the **New invoice** button on the top right corner. You'll be redirected to the document editor. > 3. The document editor has two modes: the *visual view* and the *code view*. Switch to the code view by clicking on the `` toggle below the Save button. > > ![Document editor with the code view toggle below the Save button](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-toggle.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=cc6ca79fc01fd07011e59675134a2a77) > > 4. Copy the invoice example below and paste it in the code view. > > ```json Example invoice expandable theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "GB", > "uuid": "01975e35-426f-760e-aab8-a30b942fee07", > "type": "credit-note", > "series": "SAMPLE", > "code": "000002", > "issue_date": "2025-06-11", > "currency": "GBP", > "preceding": [ > { > "uuid": "019035bd-4524-73ab-bf44-6037841ce5d9", > "type": "standard", > "issue_date": "2024-07-31", > "series": "SAMPLE", > "code": "001" > } > ], > "supplier": { > "name": "Test Company Ltd.", > "tax_id": { > "country": "GB", > "code": "000472631" > }, > "addresses": [ > { > "num": "12", > "street": "Main Street", > "locality": "Hull", > "code": "HU17 7PQ", > "country": "GB" > } > ], > "emails": [ > { > "addr": "company@example.com" > } > ] > }, > "customer": { > "name": "Random Company Ltd.", > "tax_id": { > "country": "GB", > "code": "350983637" > }, > "addresses": [ > { > "num": "45", > "street": "Some Street", > "locality": "London", > "code": "SW1A 1AA", > "country": "GB" > } > ], > "emails": [ > { > "addr": "random@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard", > "percent": "20.0%" > } > ], > "total": "1620.00" > } > ], > "totals": { > "sum": "1620.00", > "total": "1620.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "1620.00", > "percent": "20.0%", > "amount": "324.00" > } > ], > "amount": "324.00" > } > ], > "sum": "324.00" > }, > "tax": "324.00", > "total_with_tax": "1944.00", > "payable": "1944.00" > } > } > ``` > > 5. Click on the **Build** button to *build* the invoice. This will normalize and validate fields and add any calculated fields. > > ![Built invoice in the code view with calculated fields](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-build.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=bcc35efb80e59f791e0f61132c756143) > > 6. Click on the **Save** button on the top right corner to save the invoice. You'll be redirected to the *invoice detail* view. > [tab] API > > Use the [Create an entry](/api-ref/silo/entries/create-an-entry-post) API endpoint with a request body that wraps your invoice in the required structure. > > Your request body should look like this: > > ```json theme={"system"} > { > "content_type": "application/json", > "data": {} > } > ``` > > Populate the `data` field with your complete invoice object. You can use the example below: > > ```json expandable theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "GB", > "uuid": "029035bd-4524-73ab-bf44-6037841ce5d9", > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2024-07-31", > "currency": "GBP", > "supplier": { > "name": "Test Company Ltd.", > "tax_id": { > "country": "GB", > "code": "000472631" > }, > "addresses": [ > { > "num": "12", > "street": "Main Street", > "locality": "Hull", > "code": "HU17 7PQ", > "country": "GB" > } > ], > "emails": [ > { > "addr": "company@example.com" > } > ] > }, > "customer": { > "name": "Random Company Ltd.", > "tax_id": { > "country": "GB", > "code": "350983637" > }, > "addresses": [ > { > "num": "45", > "street": "Some Street", > "locality": "London", > "code": "SW1A 1AA", > "country": "GB" > } > ], > "emails": [ > { > "addr": "random@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard", > "percent": "20.0%" > } > ], > "total": "1620.00" > } > ], > "totals": { > "sum": "1620.00", > "total": "1620.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "1620.00", > "percent": "20.0%", > "amount": "324.00" > } > ], > "amount": "324.00" > } > ], > "sum": "324.00" > }, > "tax": "324.00", > "total_with_tax": "1944.00", > "payable": "1944.00" > } > } > ``` > > If everything goes well, you'll get a `200 OK` response along with the JSON for your newly registered invoice. You've just created your first invoice! You can click on **Preview** to see what it'd look like as a PDF. ![Invoice detail view](https://mintcdn.com/invopop/0HOXCIJDsVWN-rVa/assets/guides/start-invoice-detail.png?fit=max\&auto=format\&n=0HOXCIJDsVWN-rVa\&q=85\&s=8aa737338ddfb1c32bce6fd1e233082a) ## Processing an invoice Next, we'll process the invoice by sending it to the 'PDF invoice' workflow we set up earlier. You can do this manually from the Console or by using the API. > [tab] Console > > 1. In the [Console](https://console.invopop.com), click on **Invoices** in the left sidebar. > > > Select the invoice you just uploaded. This will open the document editor. > > 2. Click **Run Workflow** in the top-right corner to open the workflow selection panel. > > ![Run workflow panel with the PDF invoice workflow selected](https://mintcdn.com/invopop/hwauSwQVLRYNQ-b4/assets/guides/process-select-workflow.png?fit=max\&auto=format\&n=hwauSwQVLRYNQ-b4\&q=85\&s=1a459a7326fde93a8688adb92953c7d8) > > 3. Select the workflow you want to run — in this case, **PDF invoice** — and click **Run Workflow**. > > ![Invoice detail with the state set to Sent and the generated PDF](https://mintcdn.com/invopop/hwauSwQVLRYNQ-b4/assets/guides/process-run-workflow.png?fit=max\&auto=format\&n=hwauSwQVLRYNQ-b4\&q=85\&s=9d3237b2b95ddefd4b987ef092af77e6) > > 4. You'll see the **State** of the invoice update to **Sent** and the generated PDF appear under **Files**, confirming it's been processed. > [tab] API > > Use the [`Create a Job`](/api-ref/transform/jobs/create-a-job-post) API endpoint with the following request body: > > ```json theme={"system"} > { > "workflow_id": "186522a6-e697-4e34-8498-eee961bcb845", > "silo_entry_id": "03836750-461b-11f0-a07f-051acfb70532" > } > ``` > > * `silo_entry_id` should reference the Silo Entry ID of the uploaded invoice. > * `workflow_id` should reference the ID of the workflow you created. > > If everything goes smoothly, you'll receive a `202 Accepted` response confirming the job was accepted. The workflow runs asynchronously: fetch the [job](/api-ref/transform/jobs/fetch-a-job) to follow its steps, or the entry to see the resulting state and files. Add `?wait=30` to the request to block until the job completes, in which case the response is `200 OK` with the finished job. That's it! You've successfully processed your first invoice. # ARCA invoices Source: https://docs.invopop.com/guides/ar-arca-invoices This guide explains how to issue invoices in Argentina through ARCA using Invopop's workflow system. ## Prerequisites Before issuing invoices, ensure you have: * Completed the [ARCA Supplier onboarding guide](/guides/ar-arca-suppliers) * Registered the point of sale(s) you want to use in ARCA (**production only**). See the [point of sales registration guide](/guides/ar-arca-suppliers#point-of-sales-punto-de-venta) ## Setup Add a new workflow to your workspace for issuing invoices. You can start with the template below. > [card] [ARCA invoice workflow](https://console.invopop.com/redirect/workflows/new?template=ar-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json ARCA send invoice workflow theme={"system"} > { > "name": "ARCA send invoice", > "description": "Issue an invoice through ARCA and retrieve the CAE code", > "schema": "bill/invoice", > "steps": [ > { > "id": "bce37ad0-f1fd-11f0-9dd9-c3ebff709d81", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "68863090-f1fd-11f0-9dd9-c3ebff709d81", > "name": "Send invoice to ARCA", > "provider": "gov-ar.send" > }, > { > "id": "6cc19050-f1fd-11f0-9dd9-c3ebff709d81", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Spanish · Letter", > "config": { > "currency_template": "", > "date_format": "%Y-%m-%d", > "decimal_mark": "", > "label": "", > "layout": "Letter", > "locale": "es", > "logo_height": 40, > "negative_template": "", > "scripting": false, > "thousands_separator": "", > "watermark": "" > } > }, > { > "id": "c6221e30-f1fd-11f0-9dd9-c3ebff709d81", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "d751af40-f1fd-11f0-9dd9-c3ebff709d81", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` Keep the `Workflow ID` at hand. You'll use it later. ## Issue an invoice **1. Upload an invoice** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the invoice details. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data) field with these required fields: * Add the [`ar-arca-v4` addon](https://docs.gobl.org/addons/ar-arca-v4) * `series`: set to your point of sale (punto de venta) number * Do not set `code` (Invopop will assign it during authorization) > [!WARNING] > > Do not sign your invoice before sending it to ARCA. The workflow assigns the invoice code and signs the document automatically during the **Send invoice to ARCA** step. > [!NOTE] > > ARCA requires invoices to be numbered sequentially without gaps. Invopop assigns the invoice `code` during the **Send invoice to ARCA** workflow step based on the last issued invoice number. Choose the appropriate invoice type based on your tax classification and customer type: > [accordion] Factura A - Registered taxpayer to registered taxpayer (B2B) > > Factura A is issued by registered taxpayers (Responsable Inscripto) to other registered taxpayers or monotributistas. This invoice type includes VAT broken down separately. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the Factura A, > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon ensures the document will be validated using the ARCA rules built into the [GOBL](https://docs.gobl.org) library, > * both supplier and customer must be registered taxpayers with valid CUIT numbers, > * there are no totals or calculations in the minimal version; all these will be calculated automatically when running `gobl build`, > * the built version in the second tab shows the normalized document with calculated totals, line item sums, IVA breakdowns shown separately, and automatically generated fields, and, > * the invoice will be submitted to ARCA for authorization and receive a CAE (Código de Autorización Electrónico). > > ```json ARCA Invoice (Factura A) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["ar-arca-v4"], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "currency": "ARS", > "issue_date": "2025-01-15", > "series": "1", > "supplier": { > "name": "Proveedor Ejemplo S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. Corrientes 1234", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1043", > "country": "AR" > } > ], > "emails": [ > { > "addr": "ventas@proveedorejemplo.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Cliente Comercial S.R.L.", > "tax_id": { > "country": "AR", > "code": "30987654321" > }, > "addresses": [ > { > "street": "Av. Santa Fe 2500", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1123", > "country": "AR" > } > ], > "emails": [ > { > "addr": "compras@clientecomercial.com.ar" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Notebooks Dell Latitude", > "price": "450000.00", > "key": "goods" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "AR", > "$addons": [ > "ar-arca-v4" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "series": "1", > "issue_date": "2025-01-15", > "currency": "ARS", > "tax": { > "ext": { > "ar-arca-concept": "1", > "ar-arca-doc-type": "1" > } > }, > "supplier": { > "name": "Proveedor Ejemplo S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. Corrientes 1234", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1043", > "country": "AR" > } > ], > "emails": [ > { > "addr": "ventas@proveedorejemplo.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Cliente Comercial S.R.L.", > "tax_id": { > "country": "AR", > "code": "30987654321" > }, > "addresses": [ > { > "street": "Av. Santa Fe 2500", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1123", > "country": "AR" > } > ], > "emails": [ > { > "addr": "compras@clientecomercial.com.ar" > } > ], > "ext": { > "ar-arca-vat-status": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "key": "goods", > "name": "Notebooks Dell Latitude", > "price": "450000.00" > }, > "sum": "4500000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "ar-arca-vat-rate": "5" > } > } > ], > "total": "4500000.00" > } > ], > "totals": { > "sum": "4500000.00", > "total": "4500000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "ar-arca-vat-rate": "5" > }, > "base": "4500000.00", > "percent": "21.0%", > "amount": "945000.00" > } > ], > "amount": "945000.00" > } > ], > "sum": "945000.00" > }, > "tax": "945000.00", > "total_with_tax": "5445000.00", > "payable": "5445000.00" > } > } > ``` > [accordion] Factura B - Registered taxpayer to final consumer (B2C) > > Factura B is issued by registered taxpayers (Responsable Inscripto) to final consumers, exempt entities, non-categorized subjects, and foreign tourists. VAT is included in the total price. > > Notice: > > * the customer is typically a final consumer (Consumidor Final) and may not have a CUIT, > * the minimal version contains only essential fields; `gobl build` handles all calculations, > * when running `gobl build`, the system automatically calculates totals with IVA included in the price (not shown separately as in Factura A), > * the built version shows the normalized document with calculated totals where VAT is included in the final amounts, > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon applies Factura B specific rules and validations, and, > * the invoice will be submitted to ARCA for authorization and receive a CAE. > > ```json ARCA Invoice (Factura B) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["ar-arca-v4"], > "uuid": "4bea8c67-6ad9-5cfc-a1ce-f9f391e963b1", > "currency": "ARS", > "issue_date": "2025-01-16", > "series": "2", > "supplier": { > "name": "Electrodomésticos del Sur S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. Rivadavia 5000", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1424", > "country": "AR" > } > ], > "emails": [ > { > "addr": "ventas@electrodomesticos.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Juan Pérez", > "identities": [ > { > "code": "25123456", > "ext": { > "ar-arca-identity-type": "96" > } > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Heladera Samsung 400L", > "price": "850000.00", > "key": "goods" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "AR", > "$addons": [ > "ar-arca-v4" > ], > "uuid": "4bea8c67-6ad9-5cfc-a1ce-f9f391e963b1", > "type": "standard", > "series": "2", > "issue_date": "2025-01-16", > "currency": "ARS", > "tax": { > "ext": { > "ar-arca-concept": "1", > "ar-arca-doc-type": "6" > } > }, > "supplier": { > "name": "Electrodomésticos del Sur S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. Rivadavia 5000", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1424", > "country": "AR" > } > ], > "emails": [ > { > "addr": "ventas@electrodomesticos.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Juan Pérez", > "identities": [ > { > "code": "25123456", > "ext": { > "ar-arca-identity-type": "96" > } > } > ], > "ext": { > "ar-arca-vat-status": "5" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "key": "goods", > "name": "Heladera Samsung 400L", > "price": "850000.00" > }, > "sum": "850000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "ar-arca-vat-rate": "5" > } > } > ], > "total": "850000.00" > } > ], > "totals": { > "sum": "850000.00", > "total": "850000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "ar-arca-vat-rate": "5" > }, > "base": "850000.00", > "percent": "21.0%", > "amount": "178500.00" > } > ], > "amount": "178500.00" > } > ], > "sum": "178500.00" > }, > "tax": "178500.00", > "total_with_tax": "1028500.00", > "payable": "1028500.00" > } > } > ``` > [accordion] Factura C - Monotributista invoice (small business) > > Factura C is issued by monotributistas (simplified tax regime for small businesses and freelancers) to any type of customer. This invoice type does not break down VAT separately. > > Notice: > > * the supplier is registered under the monotributo regime, which is a simplified tax system for small businesses, > * the minimal version contains only essential fields; totals are calculated by `gobl build`, > * when running `gobl build`, the system automatically calculates totals without breaking down VAT separately (VAT is included but not itemized), > * the built version shows the normalized document with calculated totals where no VAT breakdown is shown, as monotributistas don't separately charge VAT, > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon applies Factura C specific rules and ensures compliance with monotributo requirements, and, > * the invoice will be submitted to ARCA for authorization and receive a CAE. > > ```json ARCA Invoice Monotax (Factura C) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["ar-arca-v4"], > "$tags": ["monotax"], > "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", > "currency": "ARS", > "issue_date": "2025-01-18", > "series": "1", > "supplier": { > "name": "María García - Diseño Gráfico", > "tax_id": { > "country": "AR", > "code": "20172543597" > }, > "addresses": [ > { > "street": "Calle Florida 500", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1005", > "country": "AR" > } > ], > "emails": [ > { > "addr": "maria.garcia@email.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Startup Tech S.R.L.", > "tax_id": { > "country": "AR", > "code": "30987654321" > }, > "addresses": [ > { > "street": "Av. Belgrano 1000", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1092", > "country": "AR" > } > ], > "emails": [ > { > "addr": "admin@startuptech.com.ar" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Diseño de logotipo e identidad visual", > "price": "150000.00", > "key": "services" > } > } > ], > "charges": [ > { > "key": "tax", > "percent": "10%", > "reason": "Tributo Nacional", > "ext": { > "ar-arca-tax-type": "1" > } > } > ], > "ordering": { > "period": { > "start": "2025-01-01", > "end": "2025-01-15" > } > }, > "payment": { > "terms": { > "due_dates": [ > { > "date": "2025-01-25", > "amount": "150000.00" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "AR", > "$addons": [ > "ar-arca-v4" > ], > "$tags": [ > "monotax" > ], > "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", > "type": "standard", > "series": "1", > "issue_date": "2025-01-18", > "currency": "ARS", > "tax": { > "ext": { > "ar-arca-concept": "2", > "ar-arca-doc-type": "11" > } > }, > "supplier": { > "name": "María García - Diseño Gráfico", > "tax_id": { > "country": "AR", > "code": "20172543597" > }, > "addresses": [ > { > "street": "Calle Florida 500", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1005", > "country": "AR" > } > ], > "emails": [ > { > "addr": "maria.garcia@email.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Startup Tech S.R.L.", > "tax_id": { > "country": "AR", > "code": "30987654321" > }, > "addresses": [ > { > "street": "Av. Belgrano 1000", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1092", > "country": "AR" > } > ], > "emails": [ > { > "addr": "admin@startuptech.com.ar" > } > ], > "ext": { > "ar-arca-vat-status": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "key": "services", > "name": "Diseño de logotipo e identidad visual", > "price": "150000.00" > }, > "sum": "150000.00", > "total": "150000.00" > } > ], > "charges": [ > { > "i": 1, > "key": "tax", > "reason": "Tributo Nacional", > "percent": "10%", > "amount": "15000.00", > "ext": { > "ar-arca-tax-type": "1" > } > } > ], > "ordering": { > "period": { > "start": "2025-01-01", > "end": "2025-01-15" > } > }, > "payment": { > "terms": { > "due_dates": [ > { > "date": "2025-01-25", > "amount": "150000.00" > } > ] > } > }, > "totals": { > "sum": "150000.00", > "charge": "15000.00", > "total": "165000.00", > "tax": "0.00", > "total_with_tax": "165000.00", > "payable": "165000.00" > } > } > ``` > [accordion] Factura T - Tourism invoice for non-resident tourists > > Factura T is issued by hotels and tourism providers to non-resident tourists. ARCA automatically reimburses the 21% VAT on qualifying accommodation items. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the Factura T, > * the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon ensures the document will be validated using the ARCA rules built into the [GOBL](https://docs.gobl.org) library, > * the document type (`ar-arca-doc-type`) must be `195` (Invoice), `196` (Debit Note) or `197` (Credit Note), and the tourism extensions `ar-arca-tourism-type` and `ar-arca-tourism-item` are mandatory, > * only the standard 21% VAT rate is accepted; any other rate will be rejected by ARCA, > * the built version shows the normalized document with calculated totals and the IVA breakdown, and, > * the invoice will be submitted to ARCA for authorization and receive a CAE. > > ```json ARCA Invoice (Factura T) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["ar-arca-v4"], > "uuid": "5cfa9d78-7be0-6dfd-b2df-0a0402fa074c", > "currency": "ARS", > "issue_date": "2025-02-01", > "series": "1", > "tax": { > "ext": { > "ar-arca-concept": "2", > "ar-arca-doc-type": "195", > "ar-arca-tourism-type": "1" > } > }, > "supplier": { > "name": "Hotel Patagonia S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. San Martín 500", > "locality": "Bariloche", > "region": "Río Negro", > "code": "R8400", > "country": "AR" > } > ], > "emails": [ > { > "addr": "reservas@hotelpatagonia.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "John Smith", > "identities": [ > { > "code": "AB123456", > "ext": { > "ar-arca-identity-type": "94" > } > } > ], > "addresses": [ > { > "street": "123 Main St", > "locality": "New York", > "region": "NY", > "country": "US" > } > ], > "ext": { > "ar-arca-vat-status": "5" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Hotel sin desayuno", > "price": "100.00", > "key": "services" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general", > "ext": { > "ar-arca-tourism-item": "1", > "ar-arca-vat-rate": "5" > } > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "AR", > "$addons": [ > "ar-arca-v4" > ], > "uuid": "5cfa9d78-7be0-6dfd-b2df-0a0402fa074c", > "type": "standard", > "series": "1", > "issue_date": "2025-02-01", > "currency": "ARS", > "tax": { > "ext": { > "ar-arca-concept": "2", > "ar-arca-doc-type": "195", > "ar-arca-tourism-type": "1" > } > }, > "supplier": { > "name": "Hotel Patagonia S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. San Martín 500", > "locality": "Bariloche", > "region": "Río Negro", > "code": "R8400", > "country": "AR" > } > ], > "emails": [ > { > "addr": "reservas@hotelpatagonia.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "John Smith", > "identities": [ > { > "code": "AB123456", > "ext": { > "ar-arca-identity-type": "94" > } > } > ], > "addresses": [ > { > "street": "123 Main St", > "locality": "New York", > "region": "NY", > "country": "US" > } > ], > "ext": { > "ar-arca-vat-status": "5" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "key": "services", > "name": "Hotel sin desayuno", > "price": "100.00" > }, > "sum": "100.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "ar-arca-tourism-item": "1", > "ar-arca-vat-rate": "5" > } > } > ], > "total": "100.00" > } > ], > "totals": { > "sum": "100.00", > "total": "100.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "ar-arca-tourism-item": "1", > "ar-arca-vat-rate": "5" > }, > "base": "100.00", > "percent": "21.0%", > "amount": "21.00" > } > ], > "amount": "21.00" > } > ], > "sum": "21.00" > }, > "tax": "21.00", > "total_with_tax": "121.00", > "payable": "121.00" > } > } > ``` > [accordion] Nota de Crédito A - Credit note correcting a Factura A > > Credit notes (notas de crédito) reverse all or part of a previously authorized invoice — for returns, discounts, or billing errors. The credit note class (A, B, or C) follows the class of the invoice it corrects. > > Notice: > > * the `type` is set to `credit-note`; combined with the registered-taxpayer parties, the [`ar-arca-v4`](https://docs.gobl.org/addons/ar-arca-v4) addon maps it to document type `3` (Nota de Crédito A), > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, with a `reason` for the correction, > * the preceding entry carries the [`ar-arca-doc-type`](https://docs.gobl.org/addons/ar-arca-v4) extension set to `1`, identifying the original document as a Factura A, > * the lines describe only the amounts being credited — here, two returned notebooks from the original ten, and, > * like invoices, the credit note is submitted to ARCA for authorization and receives its own CAE. > > ```json ARCA Credit Note (Nota de Crédito A) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["ar-arca-v4"], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a1", > "type": "credit-note", > "currency": "ARS", > "issue_date": "2025-01-22", > "series": "1", > "preceding": [ > { > "type": "standard", > "series": "1", > "code": "00001234", > "issue_date": "2025-01-15", > "reason": "Devolución de mercadería", > "ext": { > "ar-arca-doc-type": "1" > } > } > ], > "supplier": { > "name": "Proveedor Ejemplo S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. Corrientes 1234", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1043", > "country": "AR" > } > ], > "emails": [ > { > "addr": "ventas@proveedorejemplo.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Cliente Comercial S.R.L.", > "tax_id": { > "country": "AR", > "code": "30987654321" > }, > "addresses": [ > { > "street": "Av. Santa Fe 2500", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1123", > "country": "AR" > } > ], > "emails": [ > { > "addr": "compras@clientecomercial.com.ar" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Notebooks Dell Latitude", > "price": "450000.00", > "key": "goods" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "AR", > "$addons": [ > "ar-arca-v4" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a1", > "type": "credit-note", > "series": "1", > "issue_date": "2025-01-22", > "currency": "ARS", > "preceding": [ > { > "type": "standard", > "issue_date": "2025-01-15", > "series": "1", > "code": "00001234", > "reason": "Devolución de mercadería", > "ext": { > "ar-arca-doc-type": "1" > } > } > ], > "tax": { > "ext": { > "ar-arca-concept": "1", > "ar-arca-doc-type": "3" > } > }, > "supplier": { > "name": "Proveedor Ejemplo S.A.", > "tax_id": { > "country": "AR", > "code": "30712345671" > }, > "addresses": [ > { > "street": "Av. Corrientes 1234", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1043", > "country": "AR" > } > ], > "emails": [ > { > "addr": "ventas@proveedorejemplo.com.ar" > } > ], > "registration": { > "other": "Inicio de actividades: 2016-03-01" > } > }, > "customer": { > "name": "Cliente Comercial S.R.L.", > "tax_id": { > "country": "AR", > "code": "30987654321" > }, > "addresses": [ > { > "street": "Av. Santa Fe 2500", > "locality": "Buenos Aires", > "region": "Ciudad Autónoma de Buenos Aires", > "code": "C1123", > "country": "AR" > } > ], > "emails": [ > { > "addr": "compras@clientecomercial.com.ar" > } > ], > "ext": { > "ar-arca-vat-status": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "key": "goods", > "name": "Notebooks Dell Latitude", > "price": "450000.00" > }, > "sum": "900000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "ar-arca-vat-rate": "5" > } > } > ], > "total": "900000.00" > } > ], > "totals": { > "sum": "900000.00", > "total": "900000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "ar-arca-vat-rate": "5" > }, > "base": "900000.00", > "percent": "21.0%", > "amount": "189000.00" > } > ], > "amount": "189000.00" > } > ], > "sum": "189000.00" > }, > "tax": "189000.00", > "total_with_tax": "1089000.00", > "payable": "1089000.00" > } > } > ``` After uploading, you'll see the document in the **Invoices** section with status `Empty`. **2. Send the invoice to the ARCA invoice workflow** Send the invoice to your ARCA workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: the Workflow ID of the *ARCA Invoice* workflow you created during setup * `silo_entry_id`: the Silo Entry ID of the invoice you uploaded The invoice status will change to `Sent` when the workflow completes successfully. You can verify that the PDF was generated by opening the invoice and selecting the PDF from the **Files** tab. The PDF includes the CAE and the required QR code. ![Sent invoice](https://mintcdn.com/invopop/eCCzqrZnr-obfw8n/assets/guides/ar-arca-pdf.png?fit=max\&auto=format\&n=eCCzqrZnr-obfw8n\&q=85\&s=44e3366e3516e97f4e3637c0ff8d73fb) Sent invoice ## FAQ > [accordion] What invoice types are commonly used in Argentina? > > Factura A (B2B between Responsables Inscriptos), Factura B (consumers and exempt entities), Factura C (Monotributistas to anyone), Factura E (exports) and Factura T (tourism services to non-resident tourists). Type is determined by the issuer's tax regime and the customer's classification — Invopop selects the right one automatically when both are set. > [accordion] How are ARCA invoices delivered? > > Most ARCA-cleared invoices are delivered as PDFs with the CAE printed on them, though the underlying XML is also available on request. Invopop can convert the XML into [GOBL](https://docs.gobl.org) for downstream processing; PDF-only documents need OCR or manual capture. > [accordion] How does invoice numbering work in Argentina? > > Argentine invoices use a two-part numbering system: **XXXXX-YYYYYYYY** > > * **Punto de Venta (POS)**: A 5-digit code (e.g., 00001) that identifies the point of sale or electronic invoicing method. > * **Sequential Number**: An 8-digit code (e.g., 00000001) that increases by 1 with each invoice. > > The sequence must be continuous with no skipped or repeated numbers. Each invoice type (A, B, C) and POS combination has its own independent sequence. For example, Factura A from POS 0001 starts at `00001-00000001`, while Factura B from the same POS would also start at `00001-00000001`. > > Invopop automatically manages sequential numbering for each punto de venta. > [accordion] What is a Punto de Venta (point of sale)? > > A Punto de Venta (POS) is a 5-digit code that identifies where invoices are issued from. In electronic invoicing, it represents the electronic invoicing method or channel (e.g., Web Service, ARCA portal). > > Each POS has its own independent invoice sequence for each invoice type. You must register your punto de venta with ARCA before you can issue invoices through it in production. In the sandbox environment, you can use test punto de venta numbers without registration. > [accordion] Do I need different puntos de venta for different invoice types? > > No, you can use the same punto de venta for different invoice types (Factura A, B, C, etc.). However, each invoice type will have its own independent sequential numbering within that punto de venta. > > For example, using POS 00001: > > * Factura A: 00001-00000001, 00001-00000002, 00001-00000003... > * Factura B: 00001-00000001, 00001-00000002, 00001-00000003... > [accordion] What is WSFE and how does Invopop use it? > > WSFE (Web Services de Factura Electrónica) is ARCA's web service infrastructure for automated invoice submission. ARCA provides several web services: > > * **wsfev1**: For invoices A, B, C, and M without item detail > * **wsmtxca**: For invoices A and B with item details > * **wsfexv1**: For type E (export) invoices > * **wsct**: For type T (tourism) invoices issued to non-resident tourists > > Invopop integrates with these services to automatically submit your invoices to ARCA and receive CAE authorization codes in real time. > [accordion] What happens if ARCA rejects my invoice? > > If ARCA rejects an invoice, you'll receive an error message explaining the reason for rejection. Common reasons include: > > * Invalid or unregistered CUIT > * Missing required fields > * Incorrect tax calculations > * Sequential numbering errors > * Invalid punto de venta > > Review the error message, correct the issue in your GOBL document, and resubmit the invoice. The rejected invoice does not count toward your sequential numbering, so you can use the same number after correction. > [accordion] Where do I find Argentina-specific GOBL documentation? > > See the [Argentina tax regime in GOBL](https://docs.gobl.org/regimes/ar) for tax IDs, tax categories, and AFIP/ARCA-specific extensions. The [`ar-arca-v1`](https://docs.gobl.org/addons/ar-arca-v1) addon documents required fields for invoice submission to ARCA. More available in our [Argentina FAQ](/faq/argentina) section # ARCA supplier onboarding Source: https://docs.invopop.com/guides/ar-arca-suppliers Create and register suppliers in Argentina with ARCA. ## Introduction To issue invoices in Argentina through ARCA, each supplier must generate a digital certificate from the ARCA website and upload it to Invopop. This guide walks you through the complete registration process. | - | Sandbox | Live | | - | - | - | | **Supplier** | Real company required | Real company required | | **Certificates** | ARCA sandbox certificate | ARCA production certificate | | **Punto de venta** | Any number can be used | Must be registered in ARCA before use | ## Setup **1. Connect the Argentina app** ![Argentina App](https://mintcdn.com/invopop/4KFJdTznpSoZUgwV/assets/guides/ar-onboarding-connect.png?fit=max\&auto=format\&n=4KFJdTznpSoZUgwV\&q=85\&s=f33540595ae3b6e40c022ee59a84c870) 1. Go to **Configuration** → **Apps** in the [Console](https://console.invopop.com). 2. Find **Argentina** in the app list. 3. Click **Connect** to activate the app. **2. Create a supplier registration workflow** Create a new workflow for registering suppliers. Start with the template below: > [card] [ARCA supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=ar-supplier-registration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json ARCA register supplier workflow theme={"system"} > { > "name": "ARCA register supplier", > "description": "Register a supplier with ARCA using their certificate", > "schema": "org/party", > "steps": [ > { > "id": "12e637b0-f1fe-11f0-9dd9-c3ebff709d81", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "fc109350-f1fd-11f0-9dd9-c3ebff709d81", > "name": "Register supplier with ARCA", > "provider": "gov-ar.register" > }, > { > "id": "ff7d3160-f1fd-11f0-9dd9-c3ebff709d81", > "name": "Wait for ARCA certificate upload", > "provider": "gov-ar.wait.authorization" > }, > { > "id": "0dc4bdb0-f1fe-11f0-9dd9-c3ebff709d81", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "f1be4e50-f203-11f0-b1d8-c7bdc0d915b1", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Register a supplier The registration process is the same whether you're issuing invoices on behalf of third parties ([white label](/guides/white-label)) or under your own company name. **1. Create a supplier entry** Via API\\ Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to create a new supplier [party](https://docs.gobl.org/draft-0/org/party). The required fields are: * `name` - company name * `tax_id` - tax identification number Set the `folder` parameter to `suppliers` so the entry appears in the suppliers section. The entry will have an `Empty` status initially. Via Console\\ Navigate to **Parties > Suppliers** and click on + New supplier. The following JSON code will appear in the editor: ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "", // Name of the company or individual "tax_id": { "code": "", // 11 digit CUIT "country": "" // "AR" } } ``` Fill in the necessary information and click on Build and then Save. **2. Run the registration workflow** Via API\\ Use the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint with the following payload: ```json theme={"system"} // POST https://api.invopop.com/transform/v1/jobs { "workflow_id": "", "silo_entry_id": "" } ``` You can obtain the `workflow_id` from the workflows list, and the `silo_entry_id` from the **Meta** tab in the supplier entry. Via Console\\ Open the supplier entry, click Run workflow, and select **Register in ARCA**. The supplier's status will change to `Processing` while awaiting registration completion. **3. Access the registration wizard** Your own company\\ In the Console, open the supplier entry and navigate to the **Meta** tab. Click on **gov-ar.invopop.com** to launch the registration wizard. ![Supplier entry meta](https://mintcdn.com/invopop/eCCzqrZnr-obfw8n/assets/console/entry-meta-argentina.png?fit=max\&auto=format\&n=eCCzqrZnr-obfw8n\&q=85\&s=48532e8085443e8bb6c959a1a28c6735) Third-party companies\\ To send the registration link to your customer, add a webhook step before **Wait for ARCA certificate upload**. The webhook payload includes the `siloEntryId`. Use the [Fetch an Entry endpoint](/api-ref/silo/entries/fetch-an-entry) to retrieve the full entry, including the `meta` object containing the registration link. ```json Example webhook response expandable theme={"system"} data: { "meta": [ { "id": "...", "created_at": "2025-11-05T15:10:28.132Z", "updated_at": "2025-11-14T15:56:53.727Z", "owner_id": "...", "entry_id": "...", "src": "gov-ar", "key": "link", "ref": "EgDeG3pDBDe", "link_url": "https://gov-ar.invopop.com/reg/EgDeG3pDBDe", "link_scope": "public", "indexed": true, "shared": true } ] } ``` Send the `link_url` to your customer to complete their registration. ## Complete the registration wizard The wizard will guide the user to create a certificate in ARCA's portal and upload it to Invopop. The steps differ between sandbox and production. For your convenience, we provide guides in Spanish which you can share with your customers or adapt to your own needs: * **Sandbox**: [ARCA certificate wizard (in Spanish)](/guides/ar-certificates-sandbox) * **Production**: [ARCA certificate wizard (in Spanish)](/guides/ar-certificates-production) Once you've successfully uploaded and validated the certificate, the supplier is ready to issue invoices. ## Point of sales (Punto de venta) In Invopop, the point of sale is specified in the `series` field of the invoice. Once the registration process is complete, in **sandbox** you can use any point of sale number, while **production** requires registering each point of sale in ARCA before using it. The registration process varies depending on your tax classification: * **Monotributista**: A simplified tax regime for small businesses and freelancers in Argentina * **Registered taxpayer** (Responsable Inscripto): Standard tax regime for companies registered for VAT Follow these steps to register a point of sale in production: **1. Navigate to point of sale administration** In ARCA, go to **Administración de puntos de venta y domicilios** (Point of Sale and Address Administration). ![Administracion de puntos de venta y domicilios](https://mintcdn.com/invopop/eCCzqrZnr-obfw8n/assets/guides/ar-admin-points-of-sale.png?fit=max\&auto=format\&n=eCCzqrZnr-obfw8n\&q=85\&s=bf6033483c05aae9a62a2551e3766544) **2. Register a new point of sale** Select **A/B/M de puntos de venta**, then click **Agregar nuevo punto de venta** (Add new point of sale). Choose the appropriate option for your tax classification: **For monotributista**: Select "Factura electronica - Monotributo - Web Service" ![Monotributista point of sale](https://mintcdn.com/invopop/eCCzqrZnr-obfw8n/assets/guides/ar-monotributista-pos.png?fit=max\&auto=format\&n=eCCzqrZnr-obfw8n\&q=85\&s=857a0edd1b1c0a04a48ee37ab6d87137) **For registered taxpayers**: Select "RECE para aplicativo y Web Service" ![Registered taxpayer point of sale](https://mintcdn.com/invopop/eCCzqrZnr-obfw8n/assets/guides/ar-company-pos.png?fit=max\&auto=format\&n=eCCzqrZnr-obfw8n\&q=85\&s=c154edebdc1a344286fdd1a08153d610) ## FAQ > [accordion] Do I need to upload digital certificates to Invopop? > > Yes, to issue invoices through ARCA's web services, you need to upload your ARCA digital certificate to Invopop. This certificate is issued by ARCA and is used to authenticate your requests to their system. > > The registration process involves: > > 1. Generating a certificate signing request (CSR) with ARCA > 2. Downloading the certificate and private key > 3. Uploading them to Invopop through the supplier registration flow > > See our [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers) for detailed instructions. > [accordion] What information is required to register a supplier? > > To register a supplier for ARCA invoicing, you need: > > **Company Information:** > > * Legal name (Razón Social) > * CUIT (tax ID) > * Fiscal address > * Economic activity code > * Tax classification (Responsable Inscripto or Monotributista) > > **Digital Certificates:** > > * ARCA digital certificate (.crt file) > * Private key (.key file) > * Key password (if applicable) > > See our [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers) for detailed registration instructions. > [accordion] How long does supplier registration take? > > The supplier registration process typically takes a few minutes once the supplier has their digital certificates ready. The steps are: > > 1. Generate a registration link in Invopop > 2. Supplier uploads their certificate and key > 3. System validates the credentials with ARCA > 4. Registration is complete > > The longest part is usually obtaining the digital certificate from ARCA, which can take a few days if the supplier hasn't done it before. > [accordion] Can I register multiple puntos de venta for one supplier? > > Yes, a single supplier can have multiple puntos de venta. Each punto de venta operates independently with its own sequential numbering for each invoice type. > > When registering a supplier, you specify which punto de venta to use. You must register each punto de venta with ARCA in production before using it to issue invoices. > [accordion] What happens if a supplier's certificate expires? > > Digital certificates issued by ARCA have an expiration date. When a certificate is about to expire, the supplier must generate a new one through ARCA's portal and upload it to Invopop. > > To update an expired certificate: > > 1. Obtain a new certificate from ARCA > 2. Use the supplier registration workflow to upload the new certificate > 3. The new certificate will replace the old one > > It's recommended to renew certificates before they expire to avoid disruption to your invoicing process. > [accordion] Does Invopop support white-label invoicing in Argentina? > > Yes, Invopop supports white-label (B2B2B) operations in Argentina. This means you can issue invoices on behalf of your clients using their CUIT and digital certificates. > > This is particularly useful for platforms and software providers who want to offer invoicing services to their customers without requiring them to integrate directly with ARCA. > > Each supplier (your client) needs to complete the registration process with their own certificates, and then you can issue invoices on their behalf through Invopop's workflows. > [accordion] What certificates are required to integrate with ARCA? > > An ARCA digital certificate, consisting of a `.crt` X.509 certificate and the matching `.key` private key. Both files are uploaded together; the certificate must be valid (not expired, not revoked) and authorized for the ARCA web services you intend to use — WSFE for Factura A, B and C, WSFEX for Factura E, and WSCT for Factura T. > [accordion] How do I onboard a new supplier in Argentina? > > Generate a registration link via the ARCA Register Supplier workflow, send it to the supplier, and have them upload their ARCA digital certificate and private key. Once validated, the supplier is ready to issue. See the [ARCA Supplier Onboarding guide](/guides/ar-arca-suppliers). > [accordion] How are supplier credentials stored in Invopop for Argentina? > > The ARCA digital certificate (`.crt`) and private key (`.key`) are stored encrypted. Invopop only uses them to authenticate ARCA web service requests (WSFE and WSCT) on the supplier's behalf and never returns the key in API responses. More available in our [Argentina FAQ](/faq/argentina) section *** > [accordion] 🇦🇷 Invopop resources for Argentina > > | | | > | - | - | > | Compliance | [Invoicing compliance in Argentina](/compliance/argentina) [Compliance timeline](/timelines/argentina) | > | Apps | [Argentina](/apps/argentina) | > | Guides | [ARCA supplier onboarding](/guides/ar-arca-suppliers) [ARCA invoices](/guides/ar-arca-invoices) | > | FAQ | [Argentina FAQ](/faq/argentina) | > | GOBL | [Argentina Tax Regime](https://docs.gobl.org/regimes/ar) [Argentina ARCA Addon](https://docs.gobl.org/addons/ar-arca-v4) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Argentina → # Authentication guide Source: https://docs.invopop.com/guides/authentication After completing this quick start guide you'll have generated and tested an authentication token that can be used in all subsequent requests to the Invopop API. ## Requirements You don't need to be a developer to use this guide, but you will need to have a bit of experience using the command line and know how to create a text file. For sending requests to the server we use the "curl" command, and for easy visualization of the response, the "jq" command — both included with most operating systems. Install "curl" and "jq" in case they are not installed in your system. ## Create an account Head over to the [Invopop Console](https://console.invopop.com) and follow the steps to either log in or create an account. ## Get a token 1. Once inside the console, open **Configuration → API keys** and click Manage API keys. This takes you to the **API keys** section of [Admin](https://access.invopop.com), where keys are created. 2. Click New API key. 3. Choose the workspace the key will act on. Pick your sandbox workspace while you're testing. 4. Provide a name for future reference, and optionally a description of the use case. 5. Tick the permissions the key needs. For this guide, **Read** on **All services** is enough; for a real integration, grant only the services it uses. See [API keys](/console/api-keys) for what each permission covers. 6. Click Create API key. You'll be presented with the new token and a button to copy it. The token is shown only once, so paste it somewhere safe. > [!TIP] > > Invopop uses JSON Web Tokens. If you're interested in seeing the contents, > head over to [JWT.io](https://jwt.io) and paste your token to see what's > inside. ## Test To test our new token, open the Terminal and prepare our environment using the following command, replacing `` with the actual token generated from the Invopop console in the last step: ```bash theme={"system"} export INVOPOP_TOKEN="" ``` This saves us from copying and pasting the token every time we need to use it, and we can now make a call to the Invopop Ping service: ```bash theme={"system"} curl -H "Authorization: Bearer $INVOPOP_TOKEN" https://api.invopop.com/utils/v1/ping | jq . ``` Response: ```json theme={"system"} { "ping": "pong" } ``` This ping call doesn't do anything useful, other than ensuring that your connection and credentials are valid. > [!NOTE] > > Most examples throughout this documentation will assume you have set the > `$INVOPOP_TOKEN` variable. Have your agent wire the token into this project and verify it. Read [https://docs.invopop.com/guides/authentication.md](https://docs.invopop.com/guides/authentication.md). Add Invopop API access to this project: read the token from the INVOPOP\_TOKEN environment variable or this project's secrets mechanism, never from source code, and send it as an Authorization Bearer header to [https://api.invopop.com](https://api.invopop.com). Implement a small client with a ping method that calls GET /utils/v1/ping and returns true on pong, plus a helper that fetches a UUID from GET /utils/v1/uuid?v=7 for idempotent PUT requests. Keep one client instance per workspace, because each Invopop workspace has its own token. Add a test that calls ping when the variable is set and is skipped otherwise. ## Conclusion You've now managed to authenticate with the Invopop API using a generated token. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about authentication → # Belgium Peppol guide Source: https://docs.invopop.com/guides/be-peppol Guide for Belgium Peppol e-invoicing setup and migration process Belgium handles e-invoicing through the Peppol network, which became **mandatory in January 2026**. For comprehensive information about Peppol features and capabilities, please refer to our [Peppol Guide](/guides/peppol). ## FAQ > [accordion] How do I configure my workspace for Belgian invoicing? > > Install the Peppol app, register your supplier with its KBO/BCE-based participant ID (scheme `0208`), and use a workflow that generates a Peppol BIS Billing 3.0 document and sends it via the Lookup → Send actions. > [accordion] Do invoices need to be sent to the tax authority? > > In Belgium specifically there is no need to send a copy to the tax authority until the e-reporting mandate comes into effect in Jan 2028. > [accordion] Where do I find Belgium-specific GOBL documentation? > > See the [Belgium tax regime in GOBL](https://docs.gobl.org/regimes/be) for tax IDs and category codes. The Peppol BIS Billing 3.0 mapping is shared across EU members and comes from the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon. > [accordion] What is the difference between scheme 0208 and 9925 in Belgium? > > Belgium uses two Peppol scheme identifiers: > > * **`0208` (KBO/BCE enterprise number)** — This is the **preferred and default** scheme for Belgium. It corresponds to the company's KBO/BCE number (Kruispuntbank van Ondernemingen / Banque-Carrefour des Entreprises), which is the official Belgian business register. Most Belgian companies are registered in Peppol under this scheme. > * **`9925` (BE VAT number)** — This is an older, alternative scheme based on the Belgian VAT number. It is typically used by entities that have a Belgian VAT number but are not registered in the KBO/BCE — for example, foreign companies with a Belgian VAT registration. > > **When you should use `0208`:** Always use `0208` as your first choice when sending invoices to Belgian companies. This is the standard identifier and what the vast majority of Belgian businesses are registered under. > > **When `9925` may be needed:** If you get a "receiver not found" error when sending to a Belgian company using `0208`, and you have confirmed the company exists in the [Peppol Directory](https://directory.peppol.eu), check whether they are registered under `9925` instead. This is uncommon but does happen. > > To specify the scheme when sending, include the customer's Peppol inbox in your GOBL document: > > ```json theme={"system"} > "customer": { > "name": "Example Company", > "tax_id": { > "country": "BE", > "code": "0123456789" > }, > "inboxes": [ > { > "key": "peppol", > "scheme": "9925", > "code": "BE0123456789" > } > ] > } > ``` > > Note that when using `9925`, the code must include the `BE` prefix (e.g. `BE0123456789`), whereas `0208` uses the raw KBO/BCE number without a prefix. > > > [!TIP] > > > > Use the **Lookup Participant ID** workflow step to verify a recipient's Peppol registration before sending. If a lookup with `0208` fails, try again with `9925`. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. More available in our [Belgium FAQ](/faq/belgium) section *** > [accordion] 🇧🇪 Invopop resources for Belgium > > | | | > | - | - | > | Compliance | [Invoicing compliance in Belgium](/compliance/belgium) [Compliance timeline](/timelines/belgium) | > | Apps | [Peppol](/apps/peppol) [OASIS UBL](/apps/oasis-ubl) [UN/CEFACT CII](/apps/uncefact-cii) | > | Guides | [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-belgium) | > | FAQ | [Belgium FAQ](/faq/belgium) | > | GOBL | [Belgium Tax Regime](https://docs.gobl.org/regimes/be) [EN 16931-1:2017 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) [gobl.cii](https://github.com/invopop/gobl.cii) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Belgium → # DF-e issuing invoices guide Source: https://docs.invopop.com/guides/br-dfe Issue Documentos Fiscais Eletrônicos in Brazil ## Introduction Brazil has a variety of electronic tax documents that must be issued in different cases for various tax purposes. These include service invoices (NFS-e), product invoices (NF-e), and consumer invoices (NFC-e). Each document type is subject to variations from state to state and municipality to municipality, with each jurisdiction applying its own rules, formats, and APIs for issuing fiscal documents. Invopop's **Documentos Fiscais Eletrônicos** app provides a unified way to issue fiscal documents across all Brazilian states and over 2000 municipalities using GOBL. You can find [the full list of supported municipalities here](https://tecnospeed.com.br/plugdfe/nfse/#homologacao). This guide will walk you through the steps required to issue electronic fiscal documents in a supplier's name, and to cancel them if needed. | - | Sandbox | Live | | - | - | - | | **Responses** | Simulated/mocked | Real from DFe system | | **PDF & XML** | Always the same mock-up files attached to silo entry | Actual XML sent to tax authority and actual generated PDF attached | | **Environment** | Always simulation mode | Homologation or production, as chosen when the supplier was registered | ## Prerequisites To issue electronic fiscal documents in Brazil, you will need: * A registered supplier: follow the [DF-e supplier registration guide](/guides/br-dfe-supplier) to connect the Documentos Fiscais Eletrônicos Brazil app and register the supplier's certificate before issuing. * Customer details (except for NFC-e where the customer is optional). * Details of the goods or services provided: * quantity, * price, * applicable tax rates (ISS, ICMS, PIS, COFINS, etc.), and, * (only for services) service code (*Código Item Lista Serviço*) as defined by the municipality. * To have chosen an invoice series ## Setup Prepare the invoicing workflows for the document types you want to issue and cancel. > [!NOTE] > > These instructions apply to both the sandbox and live environments. Please note that the sandbox environment is simulated, and most responses are mocked. The **Documentos Fiscais Eletrônicos Brazil** app must already be connected and configured — this is covered in the [supplier registration guide](/guides/br-dfe-supplier). All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Prepare NFS-e workflow** > [!NOTE] > > You can skip this step if you're not interested in issuing NFS-e documents. Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e issue service invoice (NFS-e)](https://console.invopop.com/redirect/workflows/new?template=br-dfe-service-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Issue NFS-e invoice workflow theme={"system"} > { > "name": "Issue NFS-e invoice", > "description": "Issue an NFS-e service invoice via PlugNotas", > "schema": "bill/invoice", > "steps": [ > { > "id": "d1c7bde0-b651-11f0-b6c3-efa5610a4723", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "dbcb8600-b651-11f0-b6c3-efa5610a4723", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · NFS-e · 1", > "config": { > "name": "NFS-e", > "padding": 1, > "start": 1 > } > }, > { > "id": "e8eba950-b651-11f0-b6c3-efa5610a4723", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "ec64f190-b651-11f0-b6c3-efa5610a4723", > "name": "Send NFS-e to Prefeitura", > "provider": "nfe-br.send" > }, > { > "id": "eecc7bb0-b651-11f0-b6c3-efa5610a4723", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "f9195ac0-b651-11f0-b6c3-efa5610a4723", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **2. Prepare NF-e Workflow** > [!NOTE] > > You can skip this step if you're not interested in issuing NF-e documents. Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e issue product invoice (NF-e)](https://console.invopop.com/redirect/workflows/new?template=br-dfe-product-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Issue NF-e invoice workflow theme={"system"} > { > "name": "Issue NF-e invoice", > "description": "Issue an NF-e product invoice via PlugNotas", > "schema": "bill/invoice", > "steps": [ > { > "id": "ddfb8e79-8260-4ecd-bf59-115e837cd135", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "169c4b15-83ae-4242-b0c9-4e4915d15361", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · NF-e · 1", > "config": { > "name": "NF-e", > "padding": 1, > "start": 1 > } > }, > { > "id": "283dae9e-ea44-46c0-8f63-5af48ec5f388", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "12bd4677-dc3c-4043-85ca-54f8d034803d", > "name": "Send NF-e to SEFAZ", > "provider": "nfe-br.send.nfe" > }, > { > "id": "999ad559-1040-4e69-98c9-93e62c8833d4", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "5c38f3d4-1338-4990-a248-0822c5081124", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Prepare NFC-e Workflow** > [!NOTE] > > You can skip this step if you're not interested in issuing NFC-e documents. Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e issue consumer invoice (NFC-e)](https://console.invopop.com/redirect/workflows/new?template=br-dfe-consumer-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Issue NFC-e invoice workflow theme={"system"} > { > "name": "Issue NFC-e invoice", > "description": "Issue an NFC-e consumer invoice via PlugNotas", > "schema": "bill/invoice", > "steps": [ > { > "id": "93769100-b652-11f0-a7d9-bfad358c6464", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "971c6780-b652-11f0-a7d9-bfad358c6464", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · NFC-e · 1", > "config": { > "name": "NFC-e", > "padding": 1, > "start": 1 > } > }, > { > "id": "9f965b50-b652-11f0-a7d9-bfad358c6464", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "8693f670-b653-11f0-a7d9-bfad358c6464", > "name": "Send NFC-e to SEFAZ", > "provider": "nfe-br.send.nfce" > }, > { > "id": "a9dc0e70-b652-11f0-a7d9-bfad358c6464", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "b0f7f8e0-b652-11f0-a7d9-bfad358c6464", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **4. Prepare NFS-e Cancel Workflow** > [!NOTE] > > You can skip this step if you're not interested in cancelling NFS-e documents. Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e cancel service invoice (NFS-e)](https://console.invopop.com/redirect/workflows/new?template=br-dfe-cancel-nfse) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Cancel NFS-e invoice workflow theme={"system"} > { > "name": "Cancel NFS-e invoice", > "description": "Cancel an NFS-e service invoice via PlugNotas", > "schema": "bill/invoice", > "steps": [ > { > "id": "5e63dc30-535e-11f1-aba1-0fa2408cece2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "71238320-535e-11f1-aba1-0fa2408cece2", > "name": "Cancel NFS-e with Prefeitura", > "provider": "nfe-br.cancel.nfse" > }, > { > "id": "65aa8020-535e-11f1-aba1-0fa2408cece2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "6b3199c0-535e-11f1-aba1-0fa2408cece2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **5. Prepare NF-e Cancel Workflow** > [!NOTE] > > You can skip this step if you're not interested in cancelling NF-e documents. Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e cancel product invoice (NF-e)](https://console.invopop.com/redirect/workflows/new?template=br-dfe-cancel-nfe) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Cancel NF-e invoice workflow theme={"system"} > { > "name": "Cancel NF-e invoice", > "description": "Cancel an NF-e product invoice via PlugNotas", > "schema": "bill/invoice", > "steps": [ > { > "id": "7b40e24a-0c51-4462-b3e9-d2d20d424a0d", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "834e52d6-d50a-4340-9ca6-f07557aa94d5", > "name": "Cancel NF-e with SEFAZ", > "provider": "nfe-br.cancel.nfe" > }, > { > "id": "ddfb8e79-8260-4ecd-bf60-115e837cd135", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "169c4b15-83ae-4243-b0c9-4e4915d15361", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **6. Prepare NFC-e Cancel Workflow** > [!NOTE] > > You can skip this step if you're not interested in cancelling NFC-e documents. Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e cancel consumer invoice (NFC-e)](https://console.invopop.com/redirect/workflows/new?template=br-dfe-cancel-nfce) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Cancel NFC-e invoice workflow theme={"system"} > { > "name": "Cancel NFC-e invoice", > "description": "Cancel an NFC-e consumer invoice via PlugNotas", > "schema": "bill/invoice", > "steps": [ > { > "id": "5e63dc30-535e-11f1-aba1-0fa2408cece2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "71238320-535e-11f1-aba1-0fa2408cece2", > "name": "Cancel NFC-e with SEFAZ", > "provider": "nfe-br.cancel.nfce" > }, > { > "id": "65aa8020-535e-11f1-aba1-0fa2408cece2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "6b3199c0-535e-11f1-aba1-0fa2408cece2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Running In this section, we'll provide details on how to issue invoices on behalf of a registered supplier, and how to cancel them. As usual, the recommended approach for running jobs is to perform two steps; first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), second [create a job](/api-ref/transform/jobs/create-a-job-put). All operations described in the following sections can be performed manually via the Invopop Console, or programmatically via the API. The process is essentially the same in both cases, so we'll demonstrate the manual method for this guide. ### Send invoices The following examples are of example [GOBL](https://docs.gobl.org) documents you can copy and paste directly into the [Invopop Console](https://console.invopop.com) or store via the API as silo entries. Then, you must run the appropriate issue workflow created during setup — "DF-e issue service invoice (NFS-e)", "DF-e issue product invoice (NF-e)", or "DF-e issue consumer invoice (NFC-e)" — over them. > [!NOTE] > > In the sandbox environment, you'll notice that executing the workflow will always result in the same PDF and XML being attached to the silo entry. These are mock-up files returned by the sandbox environment for testing purposes. > > In production, the actual XML file sent to the tax authority and the actual PDF generated will be attached to the silo entry. > [!WARNING] > > In live workspaces, documents are sent to the environment — homologation or production — that the supplier is currently registered in. Documents sent to homologation are processed by the tax authority's test environment and have no fiscal validity. See [Switch between environments](/guides/br-dfe-supplier#switch-between-environments) for how to check and change a supplier's environment. > [accordion] Example B2B service invoice (NFS-e) > > In this example, we're issuing a simple service invoice (NFS-e) from a Brazilian supplier to another Brazilian business customer. > > Notice: > > * we've added the [`br-nfse-v1`](https://docs.gobl.org/addons/br-nfse-v1) addon; this ensures the document will be validated using the NFS-e rules built into the [GOBL](https://docs.gobl.org) library, > * extensions (`ext`) and identities have been used in multiple locations for fields whose values cannot be determined any other way, > * ISS percentage is provided explicitly as it varies depending on the municipality and type of service, > * there are no totals or calculations; all these will be made automatically when uploading, and, > * make sure to process it with the "DF-e issue service invoice (NFS-e)" workflow created during setup. > > ```json B2B Service Invoice (NFS-e) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "br-nfse-v1" > ], > "series": "XXBR", > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfse-municipal-reg", > "code": "45678901234567" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfse-simples": "1" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ] > }, > "lines": [ > { > "quantity": "15", > "item": { > "name": "Consultancy Services", > "price": "100.00", > "ext": { > "br-nfse-cnae": "62.01-5-01", > "br-nfse-service": "10.5" > } > }, > "taxes": [ > { > "cat": "ISS", > "percent": "15%" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "BR", > "$addons": [ > "br-nfse-v1" > ], > "type": "standard", > "series": "XXBR", > "issue_date": "2026-07-08", > "currency": "BRL", > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfse-municipal-reg", > "code": "45678901234567" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfse-fiscal-incentive": "2", > "br-nfse-simples": "1" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "15", > "item": { > "name": "Consultancy Services", > "price": "100.00", > "ext": { > "br-nfse-cnae": "62.01-5-01", > "br-nfse-service": "10.5" > } > }, > "sum": "1500.00", > "taxes": [ > { > "cat": "ISS", > "percent": "15%", > "ext": { > "br-nfse-iss-liability": "1" > } > } > ], > "total": "1500.00" > } > ], > "totals": { > "sum": "1500.00", > "total": "1500.00", > "taxes": { > "categories": [ > { > "code": "ISS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfse-iss-liability": "1" > }, > "base": "1500.00", > "percent": "15%", > "amount": "225.00" > } > ], > "amount": "225.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1500.00", > "payable": "1500.00" > } > } > ``` > [accordion] Example B2B service invoice with RTC (NFS-e) > > In this example, we're issuing a simple service invoice (NFS-e) with the currently supported RTC (Tax Reform) fields. > > Notice the differences from the previous example: > > * we've set the [`br-nfse-operation`](https://docs.gobl.org/addons/br-nfse-v1#operation-indicator) extension, the [`br-nfse-tax-status`](https://docs.gobl.org/addons/br-nfse-v1#tax-status-code-cst) extension and the [`br-nfse-tax-class`](https://docs.gobl.org/addons/br-nfse-v1#tax-classification-code) extension at item level which will be used to determine the IBS and CBS taxes as part of the tax reform. > > ```json B2B Service Invoice (NFS-e) RTC theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "br-nfse-v1" > ], > "series": "XXBR", > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfse-municipal-reg", > "code": "45678901234567" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfse-simples": "1" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ] > }, > "lines": [ > { > "quantity": "15", > "item": { > "name": "Consultancy Services", > "price": "100.00", > "ext": { > "br-nfse-cnae": "62.01-5-01", > "br-nfse-operation": "030101", > "br-nfse-service": "10.5", > "br-nfse-tax-class": "000001", > "br-nfse-tax-status": "000" > } > }, > "taxes": [ > { > "cat": "ISS", > "percent": "15%" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "BR", > "$addons": [ > "br-nfse-v1" > ], > "type": "standard", > "series": "XXBR", > "issue_date": "2026-07-08", > "currency": "BRL", > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfse-municipal-reg", > "code": "45678901234567" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfse-fiscal-incentive": "2", > "br-nfse-simples": "1" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "15", > "item": { > "name": "Consultancy Services", > "price": "100.00", > "ext": { > "br-nfse-cnae": "62.01-5-01", > "br-nfse-operation": "030101", > "br-nfse-service": "10.5", > "br-nfse-tax-class": "000001", > "br-nfse-tax-status": "000" > } > }, > "sum": "1500.00", > "taxes": [ > { > "cat": "ISS", > "percent": "15%", > "ext": { > "br-nfse-iss-liability": "1" > } > } > ], > "total": "1500.00" > } > ], > "totals": { > "sum": "1500.00", > "total": "1500.00", > "taxes": { > "categories": [ > { > "code": "ISS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfse-iss-liability": "1" > }, > "base": "1500.00", > "percent": "15%", > "amount": "225.00" > } > ], > "amount": "225.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1500.00", > "payable": "1500.00" > } > } > ``` > [accordion] Example B2B product invoice (NF-e) > > In this example, we're issuing an extended product invoice (NF-e) from a Brazilian supplier to another Brazilian business customer. > > Notice: > > * we've added the [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addon without the `simplified` tag; this sets the [`br-nfe-model`](https://docs.gobl.org/addons/br-nfe-v4#model) extension to `55` (NF-e), > * the customer is required for NF-e and must include a full address; Brazilian customers must declare the [`br-ibge-municipality`](https://docs.gobl.org/addons/br-nfe-v4#municipality-code) extension and a valid state, while foreign customers can be identified by a country-qualified `identity` (e.g. a passport) instead of a `tax_id`, > * supplier and customer addresses must include a `country`; it is auto-filled from the party's tax ID (or first identity that declares a country) when omitted, > * each line must include a [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) extension to classify the fiscal operation, > * item identities carry the NCM product classification code (`cProd` in the NF-e XML) and the GTIN barcode (`cEAN`), > * `item.ref` maps to the supplier's internal product code, and `item.unit` is converted to a UNECE unit code, > * line `discounts` reduce the taxable base (`vDesc`); line `charges` with key `delivery` map to freight (`vFrete`) and key `insurance` to insurance value (`vSeg`), > * `line.order` provides the line reference within the purchase order (`nItemPed`), > * a line `notes` entry with key `goods` maps to per-item additional information (`infAdProd`), > * `ordering.code` sets the purchase order number (`nPed` in `compra`) and `ordering.contracts[0].code` sets the contract number (`nCont`), > * `delivery.receiver` sets a separate delivery address (`entrega`) when goods ship to a different location than the buyer's fiscal address, > * the payment instructions key is set to `credit-transfer`, which causes the [`br-nfe-payment-means`](https://docs.gobl.org/addons/br-nfe-v4#payment-method) extension to be set automatically to `18` (transferência bancária), > * a `general` note maps to complementary information (`infCpl`) in the NF-e XML, > * tax percentages are provided explicitly as they vary depending on the state and type of goods, > * there are no totals or calculations; all these will be made automatically when uploading, and, > * make sure to process it with the "DF-e issue product invoice (NF-e)" workflow created during setup. > > ```json B2B Product Invoice (NF-e) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "br-nfe-v4" > ], > "series": "1", > "issue_date": "2026-05-22", > "tax": { > "ext": { > "br-nfe-model": "55", > "br-nfe-presence": "2" > } > }, > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "12345678901234" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "2927408" > } > }, > "ordering": { > "code": "PED-2026-0547", > "contracts": [ > { > "code": "CON-2026-015" > } > ] > }, > "delivery": { > "receiver": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "1200", > "street": "Avenida ACM", > "locality": "Caminho das Árvores", > "region": "Salvador", > "state": "BA", > "code": "41820-014", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "2927408" > } > } > }, > "lines": [ > { > "quantity": "10", > "order": "1", > "item": { > "ref": "USB-C-2M", > "name": "Cabo USB-C 2 metros", > "unit": "piece", > "price": "28.90", > "identities": [ > { > "key": "ncm", > "code": "85444290" > }, > { > "key": "gtin", > "code": "7891234567890" > } > ] > }, > "discounts": [ > { > "percent": "5%", > "reason": "Desconto comercial" > } > ], > "charges": [ > { > "key": "delivery", > "amount": "15.00" > }, > { > "key": "insurance", > "amount": "5.00" > } > ], > "notes": [ > { > "key": "goods", > "text": "Cabo homologado para carregamento rápido." > } > ], > "taxes": [ > { > "cat": "ICMS", > "percent": "12.0%" > }, > { > "cat": "PIS", > "percent": "1.65%" > }, > { > "cat": "COFINS", > "percent": "7.60%" > } > ], > "ext": { > "br-nfe-cfop": "6102" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer" > } > }, > "notes": [ > { > "key": "reason", > "text": "Venda de Mercadorias" > }, > { > "key": "general", > "text": "Pedido nº 2026/0547." > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "BR", > "$addons": [ > "br-nfe-v4" > ], > "type": "standard", > "series": "1", > "issue_date": "2026-05-22", > "currency": "BRL", > "tax": { > "ext": { > "br-nfe-model": "55", > "br-nfe-operation-type": "1", > "br-nfe-presence": "2", > "br-nfe-purpose": "1" > } > }, > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "12345678901234" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfe-regime": "3" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "2927408" > } > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "order": "1", > "item": { > "ref": "USB-C-2M", > "name": "Cabo USB-C 2 metros", > "identities": [ > { > "key": "ncm", > "code": "85444290" > }, > { > "key": "gtin", > "code": "7891234567890" > } > ], > "price": "28.90", > "unit": "piece" > }, > "sum": "289.00", > "discounts": [ > { > "reason": "Desconto comercial", > "percent": "5%", > "amount": "14.45" > } > ], > "charges": [ > { > "key": "delivery", > "amount": "15.00" > }, > { > "key": "insurance", > "amount": "5.00" > } > ], > "taxes": [ > { > "cat": "ICMS", > "percent": "12.0%", > "ext": { > "br-nfe-icms-cst": "00", > "br-nfe-icms-origin": "0" > } > }, > { > "cat": "PIS", > "percent": "1.65%", > "ext": { > "br-nfe-pis-cst": "01" > } > }, > { > "cat": "COFINS", > "percent": "7.60%", > "ext": { > "br-nfe-cofins-cst": "01" > } > } > ], > "total": "294.55", > "notes": [ > { > "key": "goods", > "text": "Cabo homologado para carregamento rápido." > } > ], > "ext": { > "br-nfe-cfop": "6102" > } > } > ], > "ordering": { > "code": "PED-2026-0547", > "contracts": [ > { > "code": "CON-2026-015" > } > ] > }, > "payment": { > "instructions": { > "key": "credit-transfer", > "ext": { > "br-nfe-payment-means": "18" > } > } > }, > "delivery": { > "receiver": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "1200", > "street": "Avenida ACM", > "locality": "Caminho das Árvores", > "region": "Salvador", > "state": "BA", > "code": "41820-014", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "2927408" > } > } > }, > "totals": { > "sum": "294.55", > "total": "294.55", > "taxes": { > "categories": [ > { > "code": "ICMS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-icms-cst": "00", > "br-nfe-icms-origin": "0" > }, > "base": "294.55", > "percent": "12.0%", > "amount": "35.35" > } > ], > "amount": "35.35" > }, > { > "code": "PIS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-pis-cst": "01" > }, > "base": "294.55", > "percent": "1.65%", > "amount": "4.86" > } > ], > "amount": "4.86" > }, > { > "code": "COFINS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-cofins-cst": "01" > }, > "base": "294.55", > "percent": "7.60%", > "amount": "22.39" > } > ], > "amount": "22.39" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "294.55", > "payable": "294.55" > }, > "notes": [ > { > "key": "reason", > "text": "Venda de Mercadorias" > }, > { > "key": "general", > "text": "Pedido nº 2026/0547." > } > ] > } > ``` > [accordion] Example B2B product invoice for a Simples Nacional issuer (NF-e) > > In this example, we're issuing a product invoice (NF-e) from a supplier enrolled in the *Simples Nacional* tax regime. > > Notice the differences from the previous example: > > * the supplier declares its regime with the [`br-nfe-regime`](https://docs.gobl.org/addons/br-nfe-v4#tax-regime-code) extension set to `1` (*Simples Nacional*); `4` (*MEI*) behaves the same, while `2` (*Simples Nacional, Excess*) uses CST codes like the normal regime (`3`, the default), > * each ICMS line carries the [`br-nfe-icms-csosn`](https://docs.gobl.org/addons/br-nfe-v4#icms-simples-nacional-status-code-csosn) extension (here `101`, taxed with credit permission) instead of the `br-nfe-icms-cst` code that normal-regime issuers use, > * with CSOSN `101` the ICMS `percent` is not a charged tax: it represents the *Simples Nacional* credit rate (`pCredSN` in the NF-e XML) and the resulting amount becomes the credit value the buyer may take (`vCredICMSSN`), > * CSOSN `101` transfers a tax credit and is only accepted when the customer is an ICMS taxpayer, so the customer includes a `br-nfe-state-reg` identity with its state registration number, > * PIS and COFINS are still required on every line but are not levied per item under *Simples Nacional*, so they use the [`br-nfe-pis-cst`](https://docs.gobl.org/addons/br-nfe-v4#pis-tax-status-code-cst) and [`br-nfe-cofins-cst`](https://docs.gobl.org/addons/br-nfe-v4#cofins-tax-status-code-cst) extensions set to `49` (other operations) at a `0%` rate, > * there are no totals or calculations; all these will be made automatically when uploading, and, > * make sure to process it with the "DF-e issue product invoice (NF-e)" workflow created during setup. > > ```json B2B Product Invoice — Simples Nacional (NF-e) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "br-nfe-v4" > ], > "series": "1", > "tax": { > "ext": { > "br-nfe-presence": "1" > } > }, > "supplier": { > "name": "Marcenaria Arte & Design ME", > "tax_id": { > "country": "BR", > "code": "21586733000120" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "0623458900" > } > ], > "addresses": [ > { > "num": "85", > "street": "Rua dos Artesãos", > "locality": "Savassi", > "region": "Minas Gerais", > "state": "MG", > "code": "30140-071", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contato@artedesign.com.br" > } > ], > "ext": { > "br-ibge-municipality": "3106200", > "br-nfe-regime": "1" > } > }, > "customer": { > "name": "Comércio de Móveis Paulista Ltda.", > "tax_id": { > "country": "BR", > "code": "33944792000101" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "112233445566" > } > ], > "addresses": [ > { > "num": "742", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01310-100", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "3550308" > } > }, > "lines": [ > { > "quantity": "5", > "item": { > "name": "Mesa de Jantar em Madeira Maciça", > "price": "900.00", > "identities": [ > { > "key": "ncm", > "code": "94036000" > } > ] > }, > "taxes": [ > { > "cat": "ICMS", > "percent": "2.56%", > "ext": { > "br-nfe-icms-csosn": "101" > } > }, > { > "cat": "PIS", > "percent": "0%", > "ext": { > "br-nfe-pis-cst": "49" > } > }, > { > "cat": "COFINS", > "percent": "0%", > "ext": { > "br-nfe-cofins-cst": "49" > } > } > ], > "ext": { > "br-nfe-cfop": "6102" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer" > } > }, > "notes": [ > { > "key": "reason", > "text": "Venda de mercadoria" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "BR", > "$addons": [ > "br-nfe-v4" > ], > "type": "standard", > "series": "1", > "issue_date": "2026-07-28", > "currency": "BRL", > "tax": { > "ext": { > "br-nfe-model": "55", > "br-nfe-operation-type": "1", > "br-nfe-presence": "1", > "br-nfe-purpose": "1" > } > }, > "supplier": { > "name": "Marcenaria Arte \u0026 Design ME", > "tax_id": { > "country": "BR", > "code": "21586733000120" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "0623458900" > } > ], > "addresses": [ > { > "num": "85", > "street": "Rua dos Artesãos", > "locality": "Savassi", > "region": "Minas Gerais", > "state": "MG", > "code": "30140-071", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contato@artedesign.com.br" > } > ], > "ext": { > "br-ibge-municipality": "3106200", > "br-nfe-regime": "1" > } > }, > "customer": { > "name": "Comércio de Móveis Paulista Ltda.", > "tax_id": { > "country": "BR", > "code": "33944792000101" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "112233445566" > } > ], > "addresses": [ > { > "num": "742", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01310-100", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "3550308" > } > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "name": "Mesa de Jantar em Madeira Maciça", > "identities": [ > { > "key": "ncm", > "code": "94036000" > } > ], > "price": "900.00" > }, > "sum": "4500.00", > "taxes": [ > { > "cat": "ICMS", > "percent": "2.56%", > "ext": { > "br-nfe-icms-csosn": "101", > "br-nfe-icms-origin": "0" > } > }, > { > "cat": "PIS", > "percent": "0%", > "ext": { > "br-nfe-pis-cst": "49" > } > }, > { > "cat": "COFINS", > "percent": "0%", > "ext": { > "br-nfe-cofins-cst": "49" > } > } > ], > "total": "4500.00", > "ext": { > "br-nfe-cfop": "6102" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ext": { > "br-nfe-payment-means": "18" > } > } > }, > "totals": { > "sum": "4500.00", > "total": "4500.00", > "taxes": { > "categories": [ > { > "code": "ICMS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-icms-csosn": "101", > "br-nfe-icms-origin": "0" > }, > "base": "4500.00", > "percent": "2.56%", > "amount": "115.20" > } > ], > "amount": "115.20" > }, > { > "code": "PIS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-pis-cst": "49" > }, > "base": "4500.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "0.00" > }, > { > "code": "COFINS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-cofins-cst": "49" > }, > "base": "4500.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "4500.00", > "payable": "4500.00" > }, > "notes": [ > { > "key": "reason", > "text": "Venda de mercadoria" > } > ] > } > ``` > [accordion] Example NF-e for a full goods return > > In this example, we're issuing a NF-e that fully returns the goods of a previously issued B2B product invoice — a *devolução total* under the pre-reform (pre-RTC) rules. > > Notice the differences from a standard product invoice: > > * the document `type` is `credit-note`; it keeps the [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addon and is still issued as an NF-e, so [`br-nfe-model`](https://docs.gobl.org/addons/br-nfe-v4#fiscal-document-model-code) is derived as `55`, > * a `preceding` entry references the original NF-e and carries its SEFAZ access key (*chave de acesso*) as a stamp — you can copy it from the `sefaz-key` entry in the `stamps` array of the original invoice's envelope `head`, where it was added once the tax authority authorized the document, > * because this is a full return, the [`br-nfe-purpose`](https://docs.gobl.org/addons/br-nfe-v4#purpose-code) extension is set to `4` (*Goods Return*) and the [`br-nfe-operation-type`](https://docs.gobl.org/addons/br-nfe-v4#operation-type-code) extension to `0` (*Inbound / Entrada*), since the returned goods re-enter the supplier; standard invoices set these automatically to `1` (normal) and `1` (outbound), but corrective documents must set both explicitly, > * no [`br-nfe-credit-note-type`](https://docs.gobl.org/addons/br-nfe-v4#credit-note-type-code) extension is used: that field only applies to post-reform IBS/CBS credit notes (those set `br-nfe-purpose` to `5`), > * the line [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) is a return code — `2202` (*Devolução de venda de mercadoria adquirida ou recebida de terceiros*) — mirroring the original `6102` sale but recorded as an inbound inter-state operation (CFOP starting with `2`), > * the payment sets the [`br-nfe-payment-means`](https://docs.gobl.org/addons/br-nfe-v4#payment-method) extension to `90` (*No payment*), as a return does not involve a new payment, > * there are no totals or calculations; all these will be made automatically when uploading, and, > * make sure to process it with the "DF-e issue product invoice (NF-e)" workflow created during setup. > > ```json Credit Note — Full Return (NF-e) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "br-nfe-v4" > ], > "type": "credit-note", > "series": "1", > "issue_date": "2024-11-20", > "tax": { > "ext": { > "br-nfe-presence": "1", > "br-nfe-purpose": "4", > "br-nfe-operation-type": "0" > } > }, > "preceding": [ > { > "type": "standard", > "series": "1", > "code": "1", > "issue_date": "2024-11-15", > "stamps": [ > { > "prv": "sefaz-key", > "val": "35241105229829000184550010000000011000000019" > } > ] > } > ], > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "12345678901234" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "2927408" > } > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Cabo USB-C 2 metros", > "price": "28.90", > "identities": [ > { > "key": "ncm", > "code": "85444290" > } > ] > }, > "taxes": [ > { > "cat": "ICMS", > "percent": "12.0%" > }, > { > "cat": "PIS", > "percent": "1.65%" > }, > { > "cat": "COFINS", > "percent": "7.60%" > } > ], > "ext": { > "br-nfe-cfop": "2202" > } > } > ], > "payment": { > "instructions": { > "key": "other", > "ext": { > "br-nfe-payment-means": "90" > } > } > }, > "notes": [ > { > "key": "reason", > "text": "Devolução total de mercadoria" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "BR", > "$addons": [ > "br-nfe-v4" > ], > "type": "credit-note", > "series": "1", > "issue_date": "2024-11-20", > "currency": "BRL", > "preceding": [ > { > "type": "standard", > "issue_date": "2024-11-15", > "series": "1", > "code": "1", > "stamps": [ > { > "prv": "sefaz-key", > "val": "35241105229829000184550010000000011000000019" > } > ] > } > ], > "tax": { > "ext": { > "br-nfe-model": "55", > "br-nfe-operation-type": "0", > "br-nfe-presence": "1", > "br-nfe-purpose": "4" > } > }, > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "12345678901234" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfe-regime": "3" > } > }, > "customer": { > "name": "Construforte Engenharia Ltda.", > "tax_id": { > "country": "BR", > "code": "46602178000103" > }, > "addresses": [ > { > "num": "75", > "street": "Avenida Sete de Setembro", > "street_extra": "Bloco C", > "locality": "Centro", > "region": "Salvador", > "state": "BA", > "code": "40060-000", > "country": "BR" > } > ], > "ext": { > "br-ibge-municipality": "2927408" > } > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Cabo USB-C 2 metros", > "identities": [ > { > "key": "ncm", > "code": "85444290" > } > ], > "price": "28.90" > }, > "sum": "289.00", > "taxes": [ > { > "cat": "ICMS", > "percent": "12.0%", > "ext": { > "br-nfe-icms-cst": "00", > "br-nfe-icms-origin": "0" > } > }, > { > "cat": "PIS", > "percent": "1.65%", > "ext": { > "br-nfe-pis-cst": "01" > } > }, > { > "cat": "COFINS", > "percent": "7.60%", > "ext": { > "br-nfe-cofins-cst": "01" > } > } > ], > "total": "289.00", > "ext": { > "br-nfe-cfop": "2202" > } > } > ], > "payment": { > "instructions": { > "key": "other", > "ext": { > "br-nfe-payment-means": "90" > } > } > }, > "totals": { > "sum": "289.00", > "total": "289.00", > "taxes": { > "categories": [ > { > "code": "ICMS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-icms-cst": "00", > "br-nfe-icms-origin": "0" > }, > "base": "289.00", > "percent": "12.0%", > "amount": "34.68" > } > ], > "amount": "34.68" > }, > { > "code": "PIS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-pis-cst": "01" > }, > "base": "289.00", > "percent": "1.65%", > "amount": "4.77" > } > ], > "amount": "4.77" > }, > { > "code": "COFINS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-cofins-cst": "01" > }, > "base": "289.00", > "percent": "7.60%", > "amount": "21.96" > } > ], > "amount": "21.96" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "289.00", > "payable": "289.00" > }, > "notes": [ > { > "key": "reason", > "text": "Devolução total de mercadoria" > } > ] > } > ``` > [accordion] Example B2C consumer invoice (NFC-e) > > In this example, we're issuing a simple consumer invoice (NFC-e) from a Brazilian supplier. > > Notice: > > * we've added the [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addon with the `simplified` tag; this sets the [`br-nfe-model`](https://docs.gobl.org/addons/br-nfe-v4#model) extension to `65` (NFC-e), > * the customer is optional and in this example we've omitted it, > * extensions (`ext`) and identities have been used in multiple locations for fields whose values cannot be determined any other way, > * each line must include a [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) extension to classify the fiscal operation, just as on an NF-e, > * the payment instructions key is set to `card`, which causes the [`br-nfe-payment-means`](https://docs.gobl.org/addons/br-nfe-v4#payment-method) extension to be set automatically to `03` (cartão de crédito), > * tax percentages are provided explicitly as they vary depending on the state and type of goods, > * there are no totals or calculations; all these will be made automatically when uploading, and, > * make sure to process it with the "DF-e issue consumer invoice (NFC-e)" workflow created during setup. > > ```json B2C Consumer Invoice (NFC-e) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "br-nfe-v4" > ], > "$tags": [ > "simplified" > ], > "series": "123", > "tax": { > "ext": { > "br-nfe-presence": "1" > } > }, > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "12345678901234" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfse-simples": "1" > } > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Cabo USB-C 2 metros", > "price": "28.90" > }, > "taxes": [ > { > "cat": "ICMS", > "percent": "18.0%" > }, > { > "cat": "PIS", > "percent": "1.65%" > }, > { > "cat": "COFINS", > "percent": "7.60%" > } > ], > "ext": { > "br-nfe-cfop": "5102" > } > } > ], > "payment": { > "instructions": { > "key": "card" > } > }, > "notes": [ > { > "key": "reason", > "text": "Venda de mercadoria" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "BR", > "$addons": [ > "br-nfe-v4" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "123", > "issue_date": "2026-07-28", > "currency": "BRL", > "tax": { > "ext": { > "br-nfe-model": "65", > "br-nfe-operation-type": "1", > "br-nfe-presence": "1", > "br-nfe-purpose": "1" > } > }, > "supplier": { > "name": "TechNova Soluções Digitais Ltda.", > "tax_id": { > "country": "BR", > "code": "05229829000184" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "12345678901234" > } > ], > "addresses": [ > { > "num": "101", > "street": "Avenida Paulista", > "locality": "Bela Vista", > "region": "São Paulo", > "state": "SP", > "code": "01311-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "contact@technova.test" > } > ], > "ext": { > "br-ibge-municipality": "3550308", > "br-nfe-regime": "3", > "br-nfse-simples": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Cabo USB-C 2 metros", > "price": "28.90" > }, > "sum": "57.80", > "taxes": [ > { > "cat": "ICMS", > "percent": "18.0%", > "ext": { > "br-nfe-icms-cst": "00", > "br-nfe-icms-origin": "0" > } > }, > { > "cat": "PIS", > "percent": "1.65%", > "ext": { > "br-nfe-pis-cst": "01" > } > }, > { > "cat": "COFINS", > "percent": "7.60%", > "ext": { > "br-nfe-cofins-cst": "01" > } > } > ], > "total": "57.80", > "ext": { > "br-nfe-cfop": "5102" > } > } > ], > "payment": { > "instructions": { > "key": "card", > "ext": { > "br-nfe-payment-means": "03" > } > } > }, > "totals": { > "sum": "57.80", > "total": "57.80", > "taxes": { > "categories": [ > { > "code": "ICMS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-icms-cst": "00", > "br-nfe-icms-origin": "0" > }, > "base": "57.80", > "percent": "18.0%", > "amount": "10.40" > } > ], > "amount": "10.40" > }, > { > "code": "PIS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-pis-cst": "01" > }, > "base": "57.80", > "percent": "1.65%", > "amount": "0.95" > } > ], > "amount": "0.95" > }, > { > "code": "COFINS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-cofins-cst": "01" > }, > "base": "57.80", > "percent": "7.60%", > "amount": "4.39" > } > ], > "amount": "4.39" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "57.80", > "payable": "57.80" > }, > "notes": [ > { > "key": "reason", > "text": "Venda de mercadoria" > } > ] > } > ``` > [accordion] Example B2C consumer invoice for a Simples Nacional issuer (NFC-e) > > In this example, we're issuing a consumer invoice (NFC-e) from a supplier enrolled in the *Simples Nacional* tax regime. > > Notice the differences from the previous example: > > * the supplier declares its regime with the [`br-nfe-regime`](https://docs.gobl.org/addons/br-nfe-v4#tax-regime-code) extension set to `1` (*Simples Nacional*), > * ICMS carries the [`br-nfe-icms-csosn`](https://docs.gobl.org/addons/br-nfe-v4#icms-simples-nacional-status-code-csosn) extension set to `102` (taxed without credit permission) with a `0%` percent, > * PIS and COFINS use the [`br-nfe-pis-cst`](https://docs.gobl.org/addons/br-nfe-v4#pis-tax-status-code-cst) and [`br-nfe-cofins-cst`](https://docs.gobl.org/addons/br-nfe-v4#cofins-tax-status-code-cst) extensions set to `49` (other operations) at a `0%` rate, > * the line carries a [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) extension set to `5102`, > * all of these fields must be set explicitly (i.e., you have them in the minimal example), since the automatic defaults are the normal-regime ones: an ICMS line that omits the CSOSN fails validation, while an omitted PIS or COFINS CST silently falls back to `01`, > * there are no totals or calculations; all these will be made automatically when uploading, and, > * make sure to process it with the "DF-e issue consumer invoice (NFC-e)" workflow created during setup. > > ```json B2C Consumer Invoice — Simples Nacional (NFC-e) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "br-nfe-v4" > ], > "$tags": [ > "simplified" > ], > "series": "123", > "tax": { > "ext": { > "br-nfe-presence": "1" > } > }, > "supplier": { > "name": "Drogaria Vida Saudável Ltda.", > "tax_id": { > "country": "BR", > "code": "55263640000186" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "35503304557308" > } > ], > "addresses": [ > { > "num": "200", > "street": "Rua Primeiro de Março", > "street_extra": "Torre A", > "locality": "Centro", > "region": "Rio de Janeiro", > "state": "RJ", > "code": "20010-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "saudemais@example.com" > } > ], > "ext": { > "br-ibge-municipality": "3304557", > "br-nfe-regime": "1" > } > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Caixa de Máscaras Cirúrgicas", > "price": "10.00" > }, > "taxes": [ > { > "cat": "ICMS", > "percent": "0%", > "ext": { > "br-nfe-icms-csosn": "102", > "br-nfe-icms-origin": "0" > } > }, > { > "cat": "PIS", > "percent": "0%", > "ext": { > "br-nfe-pis-cst": "49" > } > }, > { > "cat": "COFINS", > "percent": "0%", > "ext": { > "br-nfe-cofins-cst": "49" > } > } > ], > "ext": { > "br-nfe-cfop": "5102" > } > } > ], > "payment": { > "instructions": { > "key": "card" > } > }, > "notes": [ > { > "key": "reason", > "text": "Venda de mercadoria" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "BR", > "$addons": [ > "br-nfe-v4" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "123", > "issue_date": "2026-07-28", > "currency": "BRL", > "tax": { > "ext": { > "br-nfe-model": "65", > "br-nfe-operation-type": "1", > "br-nfe-presence": "1", > "br-nfe-purpose": "1" > } > }, > "supplier": { > "name": "Drogaria Vida Saudável Ltda.", > "tax_id": { > "country": "BR", > "code": "55263640000186" > }, > "identities": [ > { > "key": "br-nfe-state-reg", > "code": "35503304557308" > } > ], > "addresses": [ > { > "num": "200", > "street": "Rua Primeiro de Março", > "street_extra": "Torre A", > "locality": "Centro", > "region": "Rio de Janeiro", > "state": "RJ", > "code": "20010-000", > "country": "BR" > } > ], > "emails": [ > { > "addr": "saudemais@example.com" > } > ], > "ext": { > "br-ibge-municipality": "3304557", > "br-nfe-regime": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Caixa de Máscaras Cirúrgicas", > "price": "10.00" > }, > "sum": "20.00", > "taxes": [ > { > "cat": "ICMS", > "percent": "0%", > "ext": { > "br-nfe-icms-csosn": "102", > "br-nfe-icms-origin": "0" > } > }, > { > "cat": "PIS", > "percent": "0%", > "ext": { > "br-nfe-pis-cst": "49" > } > }, > { > "cat": "COFINS", > "percent": "0%", > "ext": { > "br-nfe-cofins-cst": "49" > } > } > ], > "total": "20.00", > "ext": { > "br-nfe-cfop": "5102" > } > } > ], > "payment": { > "instructions": { > "key": "card", > "ext": { > "br-nfe-payment-means": "03" > } > } > }, > "totals": { > "sum": "20.00", > "total": "20.00", > "taxes": { > "categories": [ > { > "code": "ICMS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-icms-csosn": "102", > "br-nfe-icms-origin": "0" > }, > "base": "20.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "0.00" > }, > { > "code": "PIS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-pis-cst": "49" > }, > "base": "20.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "0.00" > }, > { > "code": "COFINS", > "informative": true, > "rates": [ > { > "ext": { > "br-nfe-cofins-cst": "49" > }, > "base": "20.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "20.00", > "payable": "20.00" > }, > "notes": [ > { > "key": "reason", > "text": "Venda de mercadoria" > } > ] > } > ``` ### Cancel an invoice If you need to cancel a document that has already been sent to the tax authority, you can use the cancel workflows created during setup. Run the appropriate cancel workflow — NFS-e, NF-e, or NFC-e — over the silo entry you want to cancel. On success, the entry will be set to `Void`. > [!NOTE] > > NFS-e cancellations are subject to the rules of each municipality. Some require a specific cancellation code. NFC-e cancellations must be requested within the cancellation window set by the originating state. #### Configuration Both cancel actions accept optional parameters that control the cancellation request. They can be set as a default on the workflow step (via the step's configuration page in the Console) or overridden per job by passing them as arguments when [creating the job via the API](/api-ref/transform/jobs/create-a-job-put). | Parameter | Job argument | Applies to | Notes | | - | - | - | - | | Cancellation reason | `nfe-br-cancel-reason` | NFS-e, NF-e, and NFC-e | Free-text reason for the cancellation. For NF-e and NFC-e, must be at least 15 characters if provided. Defaults to the system default when omitted. | | Cancellation code | `nfe-br-cancel-code` | NFS-e only | Municipality-specific cancellation code, for example `9` for "Outros" in the National NFS-e system. Defaults to the system default when omitted. | Job arguments take precedence over the step configuration. To pass them when creating a job via the API: ```json theme={"system"} { "workflow_id": "...", "silo_entry_id": "...", "args": { "nfe-br-cancel-reason": "Cancelamento a pedido do Prestador", "nfe-br-cancel-code": "9" } } ``` ## FAQ > [accordion] What type of Documentos Fiscais does Invopop support? > > Invopop supports NF-e, NFS-e and NFC-e documents. Transport documents (MDF-e and CT-e) are not currently supported. > [accordion] Where can I find the mapping of GOBL fields to DF-e documents? > > For further details on how GOBL prepares data for conversion, see: > > * The [Brazil Regime GOBL Reference](https://docs.gobl.org/regimes/br). > * The [NFS-e Addon GOBL Reference](https://docs.gobl.org/addons/br-nfse-v1). > * The [NF-e Addon GOBL Reference](https://docs.gobl.org/addons/br-nfe-v4). More available in our [Brazil FAQ](/faq/brazil) section *** > [accordion] 🇧🇷 Invopop resources for Brazil > > | | | > | - | - | > | Compliance | [Invoicing compliance in Brazil](/compliance/brazil) [Compliance timeline](/timelines/brazil) | > | Apps | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > | Guides | [Supplier registration](/guides/br-dfe-supplier) [Issuing invoices](/guides/br-dfe) | > | FAQ | [Brazil FAQ](/faq/brazil) | > | GOBL | [Brazil Tax Regime](https://docs.gobl.org/regimes/br) [Brazil NF-e Addon](https://docs.gobl.org/addons/br-nfe-v4) [Brazil NFS-e Addon](https://docs.gobl.org/addons/br-nfse-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Brazil → # DF-e supplier registration guide Source: https://docs.invopop.com/guides/br-dfe-supplier Register suppliers to issue Documentos Fiscais Eletrônicos in Brazil. ## Introduction Before a supplier can issue electronic fiscal documents in Brazil — service invoices (NFS-e), product invoices (NF-e), or consumer invoices (NFC-e) — they must be registered with Invopop's local partner, PlugNotas, who authenticates the supplier with the corresponding tax authority. In this guide you'll learn how to register a supplier using the [Documentos Fiscais Eletrônicos Brazil app](/apps/documentos-fiscais-electronicos-brazil), and how to unregister them when they should no longer issue documents from your workspace. Once a supplier is registered, continue with the companion guide: [Brazil: Issuing invoices](/guides/br-dfe). | - | Sandbox | Live | | - | - | - | | **Supplier** | Registration required, but details don't need to be real | Real company details required | | **Certificates** | Not required to be valid | Must be valid and real | | **Environment** | Always simulation mode — responses are mocked | Homologation or production, chosen during registration | ## Prerequisites To register a supplier in Brazil, you will need: * Supplier details, including: * name, * CNPJ (*Cadastro Nacional da Pessoa Jurídica*), * address, * municipality code (IBGE), * municipal registration number (for NFS-e), * state registration number (for NF-e and NFC-e), * whether the supplier opts into the *Simples Nacional* tax regime, * whether the supplier benefits from a fiscal incentive, and, * optionally, any special tax regime (MEI, estimated, coop…) the supplier is subject to. * A certificate and password accepted by the municipality (for NFS-e) or the state (for NF-e and NFC-e) to send electronic fiscal documents in the name of the supplier. * For NFS-e, knowing which system the supplier must issue through: the municipality's own system or the national *Emissor Nacional*. See [Choose the NFS-e system](#choose-the-nfs-e-system) below. ## Setup There are three key processes to prepare: * connect the **Documentos Fiscais Eletrônicos Brazil** app, * create the supplier registration workflow, and, * configure the supplier post-registration workflow. > [!NOTE] > > These instructions apply to both the sandbox and live environments. Please note that the sandbox environment is simulated, and most responses are mocked. You'll still need to register suppliers in the sandbox, but the company details, certificates or passwords don't need to be valid or real. All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Connect the Documentos Fiscais Eletrônicos Brazil app** Enter the **Configuration** section, then tap **Apps**. Tap on the **Connect** button of the **Documentos Fiscais Eletrônicos Brazil** app. ![DF-e Brazil App](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/br-dfe-app.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=e3461a076becb8dfb7885b5b3764da90) **2. Create the supplier registration workflow** Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e register supplier](https://console.invopop.com/redirect/workflows/new?template=br-dfe-register-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json NFC/NFS-e register supplier workflow theme={"system"} > { > "name": "NFC/NFS-e register supplier", > "description": "Register a supplier to issue NFC/NFS-e in Brazil", > "schema": "org/party", > "steps": [ > { > "id": "68e5abd0-b64b-11f0-8ddf-b9fd6fa99d97", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "6f0a6500-b64b-11f0-8ddf-b9fd6fa99d97", > "name": "Register supplier in Brazil", > "provider": "nfe-br.register" > }, > { > "id": "71918510-b64b-11f0-8ddf-b9fd6fa99d97", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > } > ], > "rescue": [ > { > "id": "7d127750-b64b-11f0-8ddf-b9fd6fa99d97", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Configure the supplier post-registration workflow** Follow one of the methods below and ensure to **Save** and **Publish** the workflow: > [card] [DF-e process supplier post-registration](https://console.invopop.com/redirect/workflows/new?template=br-dfe-postregistration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Brazil supplier post-registration workflow theme={"system"} > { > "name": "Brazil supplier post-registration", > "description": "Mark a supplier as registered", > "schema": "org/party", > "steps": [ > { > "id": "ec727530-b648-11f0-8ddf-b9fd6fa99d97", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!NOTE] > > This workflow will automatically be executed once a supplier completes the registration process. You can customize it to suit your needs (*e.g.*, adding a webhook, or an email notification after a supplier has been registered.) Now you need to go back to **Configuration** > **Apps**, tap the **Configure** button on the **Documentos Fiscais Eletrônicos Brazil** app, choose the "Post-registration workflow" we just created and **Save** the changes. ## Register a supplier All operations described in this section can be performed manually via the Invopop Console, or programmatically via the API. The process is essentially the same in both cases, so we'll demonstrate the manual method for this guide. Find the **Parties** section of the sidebar and click **Suppliers**. Tap the **+ New Supplier** button to be presented with a new editor. Copy and paste the example provided below (for testing purposes only, in production you'll need the details of an actual company). The example includes all the fields required to register a supplier for both NF-e/NFC-e and NFS-e issuance. ```json Brazil supplier example for sandbox expandable theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "TechNova Soluções Digitais Ltda.", "tax_id": { "country": "BR", "code": "05229829000184" }, "identities": [ { "key": "br-nfse-municipal-reg", "code": "45678901234567" }, { "key": "br-nfe-state-reg", "code": "66093885154234" } ], "addresses": [ { "num": "101", "street": "Avenida Paulista", "locality": "Bela Vista", "region": "São Paulo", "state": "SP", "code": "01311-000", "country": "BR" } ], "emails": [ { "addr": "contact@technova.test" } ], "ext": { "br-ibge-municipality": "3550308", "br-nfse-simples": "1", "br-nfse-fiscal-incentive": "2", "br-nfse-special-regime": "6", "br-nfe-regime": "1", "br-nfe-fiscal-incentive": "2", "br-nfe-special-regime": "6" } } ``` > [!NOTE] > > The `br-nfse-` identities and extensions configure service invoices (NFS-e), while the `br-nfe-` ones configure product and consumer invoices (NF-e/NFC-e) — omit the family the supplier won't issue. > > See the [`br-nfse-v1`](https://docs.gobl.org/addons/br-nfse-v1) and [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addons for the possible values. Tap **Build**, ensure there are no errors, and click **Save**. We should now see the document. Find and click the **Select Workflow** button. Select the **Register Supplier** workflow created during setup, and click **Run workflow**. The execution should be successful, and the silo entry will now be in the `Processing` state. Tap the **Meta** tab to see the registration link: ![Supplier Registration Link](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/br-dfe-reg-link.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=24ab34244e7c5864e36fe4d4ea689e91) > [!NOTE] > > You can access the registration link via the API by [fetching the silo > entry](/api-ref/silo/entries/fetch-an-entry) and reading the `meta` row where > the `key` is set to `registration-link`. Tap the registration link. A new browser window will open with a form to upload the supplier's credentials. Note that this form can be shared directly with the supplier, if necessary. ![Supplier registration form showing the company CNPJ, the Sistema selector with the Sistema da prefeitura and Emissor Nacional options, and the certificate upload](https://mintcdn.com/invopop/lGyvpxuxs6GdBHDj/assets/guides/br-dfe-reg-sistema.png?fit=max\&auto=format\&n=lGyvpxuxs6GdBHDj\&q=85\&s=4ba97d2029eb18f8f967f63dd64452bc) The form shows the supplier's CNPJ, a **Sistema** selector for NFS-e (see [Choose the NFS-e system](#choose-the-nfs-e-system) below), and the certificate upload. When a certificate is already registered, the upload can be left blank to keep it. In live workspaces, the form also includes an environment selector ("Ambiente da prefeitura") with two options: * **Homologação** (homologation): the tax authority's test environment. Documents are processed end to end but have no fiscal validity. Note that not all municipalities offer a homologation environment for NFS-e. * **Produção** (production): the real environment. Documents issued here are legally valid. The selected environment applies to every document type the supplier issues (NFS-e, NF-e, and NFC-e) and remains in effect until the supplier is registered again. See [Switch between environments](#switch-between-environments) below. In sandbox workspaces, the selector is not shown: the sandbox always operates in simulation mode, and responses are mocked regardless of any environment. ### Choose the NFS-e system The **Sistema** section of the form shown above decides where the supplier's service invoices (NFS-e) are sent: * **Sistema da prefeitura** (municipal system): NFS-e are issued through the municipality's own system, with the municipality's service codes and rules. * **Emissor Nacional** (national emitter): NFS-e are issued through the national NFS-e system run by the Receita Federal, using the national standard layout and the national service list. The selection only affects NFS-e. Product and consumer invoices (NF-e and NFC-e) always go through the state's SEFAZ and are not affected. Which option applies is defined by Brazilian regulation rather than by preference, so check the supplier's situation before registering: | Supplier | System to select | | - | - | | *Microempreendedor Individual* (MEI) | **Emissor Nacional**. Mandatory since 1 September 2023 (Resolução CGSN 169/2022). | | ME or EPP in the *Simples Nacional* regime | **Emissor Nacional**. Mandatory since 1 November 2026 (Resolução CGSN 191/2026), regardless of whether the municipality has joined the national system. | | Any other supplier (*Lucro Presumido*, *Lucro Real*, etc.) | Depends on the municipality. Under Lei Complementar 214/2025, every municipality had to either move its taxpayers to the Emissor Nacional or keep its own system and share the invoices with the national environment from 1 January 2026. If the municipality moved to the Emissor Nacional, select it; if it kept its own system, select **Sistema da prefeitura**. | When in doubt, confirm with the municipality's tax office or the supplier's accountant. The [Portal Nacional da NFS-e](https://www.gov.br/nfse/pt-br) publishes the list of municipalities that have joined the national system and whether each one uses the Emissor Nacional. > [!WARNING] > > Suppliers registered before this option was available are on the municipal system. Some of them now fall under the Emissor Nacional (for example, ME and EPP in the Simples Nacional since 1 November 2026, or suppliers whose municipality has since migrated) and must be switched, or their NFS-e will be rejected. Switching does not require uploading the certificate again: see [Re-register a supplier](#re-register-a-supplier) below. The details from this form are sent securely to Invopop's local partner, PlugNotas, who will use them to authenticate the supplier in the corresponding tax authority. The supplier must ensure that the certificate and password are valid and accepted by the municipality or state where they operate. For the Emissor Nacional, an A1 certificate (`.pfx` or `.p12`) is required to issue through the API. Once the form is submitted, the supplier will be registered, and the post-registration workflow will be executed, changing the supplier's state to `Registered`. From this point on, you can send invoices on behalf of the supplier. Head over to the [DF-e issuing invoices guide](/guides/br-dfe) to continue. ## Re-register a supplier Running the registration process again over an already registered supplier lets you change their configuration without starting from scratch. You can change the NFS-e system in any workspace and, in live workspaces, the environment. To re-register a supplier: 1. Run the **Register Supplier** workflow over the supplier's silo entry to obtain a new registration link. 2. Open the registration link. The form shows the supplier's current NFS-e system pre-selected and, in live workspaces, their current environment. 3. Select the new system or environment. 4. Leave the certificate field blank to keep the current certificate (or upload a new one), and submit the form. Once the form is submitted, the supplier is reconfigured with the new settings and the post-registration workflow runs again. ### Switch between environments In live workspaces, a supplier is registered in either homologation or production — never both at the same time. A common scenario is registering a supplier in homologation first to test the integration end to end, and then re-registering them in production to start issuing real documents. ### Switch between NFS-e systems Re-register the supplier and select the other option in the **Sistema** section whenever the system that applies to them changes. Typical cases: * the supplier was registered before the system could be chosen (they are on the municipal system) and now falls under the Emissor Nacional, * the supplier joins the Simples Nacional regime, which puts them on the Emissor Nacional, * the supplier leaves the Simples Nacional regime in a municipality that kept its own system, which puts them back on the municipal system, or * the supplier's municipality migrates its taxpayers to the Emissor Nacional. Check the table in [Choose the NFS-e system](#choose-the-nfs-e-system) to confirm which system applies before switching: a change of tax regime only requires a switch if the applicable system actually changes. The certificate does not need to be uploaded again. From the next NFS-e onwards, invoices are sent to the selected system, so make sure the service codes used on the supplier's invoices are the ones expected by that system: municipal codes for the municipal system, and the national service list for the Emissor Nacional. > [!WARNING] > > The environment selected in the most recent registration applies to **all** documents issued for that supplier from that point on, across every document type (NFS-e, NF-e, and NFC-e). After switching to homologation, no legally valid documents can be issued for the supplier until you register them back in production. Always verify which environment a supplier is in before issuing. > [!NOTE] > > Sandbox workspaces are not affected: they always operate in simulation mode, and responses are mocked. To test against the tax authority's real homologation environment, register the supplier in a live workspace with the homologation environment selected. ## Unregister a supplier Unregistering a supplier revokes their invoice issuing privileges from your workspace. You might need to unregister an entity because the supplier is no longer your client or because of a change in their Tax ID. To do so, use the following workflow template: > [card] [DF-e unregister supplier](https://console.invopop.com/redirect/workflows/new?template=br-dfe-unregister-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json NFC/NFS-e unregister supplier workflow theme={"system"} > { > "name": "NFC/NFS-e unregister supplier", > "description": "Unregister a supplier from issuing NFC/NFS-e in Brazil", > "schema": "org/party", > "steps": [ > { > "id": "1b9bfd47-701c-4834-b219-dc58da8cf51b", > "name": "Unregister supplier in Brazil", > "provider": "nfe-br.unregister" > }, > { > "id": "710ca93c-7f2e-4999-9209-ae358d5dbad0", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "2c1f292c-7bd5-4588-971f-8adeb12ade7a", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## FAQ > [accordion] How do I onboard a new supplier in Brazil? > > Upload the supplier's A1 digital certificate (PFX or P12) plus password through the registration workflow. Invopop validates it against the relevant SEFAZ or municipal endpoint and activates the supplier for issuing. > [accordion] How are supplier credentials stored in Invopop for Brazil? > > A1 certificates (X.509 + private key, exported as PKCS#12) and their passwords are stored encrypted. Invopop uses them to sign documents and authenticate to the relevant SEFAZ or municipal endpoint on the supplier's behalf. More available in our [Brazil FAQ](/faq/brazil) section *** > [accordion] 🇧🇷 Invopop resources for Brazil > > | | | > | - | - | > | Compliance | [Invoicing compliance in Brazil](/compliance/brazil) [Compliance timeline](/timelines/brazil) | > | Apps | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > | Guides | [Supplier registration](/guides/br-dfe-supplier) [Issuing invoices](/guides/br-dfe) | > | FAQ | [Brazil FAQ](/faq/brazil) | > | GOBL | [Brazil Tax Regime](https://docs.gobl.org/regimes/br) [Brazil NF-e Addon](https://docs.gobl.org/addons/br-nfe-v4) [Brazil NFS-e Addon](https://docs.gobl.org/addons/br-nfse-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Brazil → # Chargebee in Belgium Source: https://docs.invopop.com/guides/cb-belgium Send compliant Peppol e-invoices from Chargebee to Belgian customers Belgium uses the Peppol network for e-invoicing, which became mandatory in January 2026. The format used is Peppol BIS Billing UBL — the standard Peppol format — with one important Belgian-specific requirement: **customers always expect to receive a PDF alongside the XML**. To handle this, the workflow first downloads the existing Chargebee PDF and attaches it to the UBL document before sending it through Peppol. This guide assumes you have already connected the Chargebee app and completed the general setup — see the [Chargebee overview](/guides/chargebee) first if you haven't. **Required apps:** [Peppol](/apps/peppol), [OASIS UBL](/apps/oasis-ubl) > [!NOTE] > > Before processing any invoices, you must register your supplier on the Peppol network through Invopop. See the [Peppol guide](/guides/peppol) for registration steps, and the [Belgium Peppol guide](/guides/be-peppol) for Belgium-specific details. [Chargebee + Invopop | Setting up e-invoicing with Peppol](https://www.youtube.com/embed/Iyqmgw0cvFY) ## Workflow > [card] [Chargebee Peppol](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-peppol) > > Add to my workspace → > [tab] Workflow > [tab] Code > > > [!NOTE] > > > > The **Lookup Peppol participant** step automatically looks up your customer's Peppol participant ID from the Peppol network at the time the invoice is processed. If you have already set the `cf_gobl_customer_inbox_peppol` [custom field](/guides/chargebee#custom-fields-metadata) on your customers in Chargebee, Invopop will use that value directly and you can remove this step. > > ```json Chargebee Peppol invoice workflow theme={"system"} > { > "name": "Chargebee Peppol invoice", > "description": "Sync from Chargebee and send via Peppol", > "schema": "bill/invoice", > "steps": [ > { > "id": "3879bbb0-6c79-11f0-a3f7-072a34d19639", > "name": "Import document from Chargebee", > "provider": "chargebee.import" > }, > { > "id": "7d00a700-25d2-11f0-b641-350e77c28eed", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "a8bde710-1d46-11f1-ba7f-8d561e47d4e4", > "name": "Download PDF from Chargebee", > "provider": "chargebee.pdf.download" > }, > { > "id": "c4025680-d103-11f0-a0bd-350448c4fb2d", > "name": "Lookup Peppol participant", > "provider": "peppol.lookup", > "summary": "Lookup customer", > "config": { > "party": "customer" > } > }, > { > "id": "6358ec20-6c79-11f0-913a-f35872125699", > "name": "Modify silo entry", > "provider": "silo.modify", > "summary": "Add `eu-en16931-v2017` addon", > "config": { > "addons": [ > "eu-en16931-v2017" > ], > "sign": false > } > }, > { > "id": "b079af50-25d2-11f0-b641-350e77c28eed", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "5bb0d200-25d2-11f0-b641-350e77c28eed", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "Peppol BIS Billing v3", > "config": { > "attach_invoice_pdf": true, > "doc_type": "bis-invoice-v3", > "private": false, > "validate_ubl": true > } > }, > { > "id": "606d96c0-25d2-11f0-b641-350e77c28eed", > "name": "Send Peppol document", > "provider": "peppol.send" > }, > { > "id": "7a321db0-25d2-11f0-b641-350e77c28eed", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > }, > { > "id": "3de955b0-6c79-11f0-a3f7-072a34d19639", > "name": "Update Chargebee", > "provider": "chargebee" > } > ], > "rescue": [ > { > "id": "82674050-25d2-11f0-b641-350e77c28eed", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > }, > { > "id": "41da8d10-6c79-11f0-a3f7-072a34d19639", > "name": "Update Chargebee", > "provider": "chargebee" > } > ] > } > ``` ## Participant ID lookup Belgium enforces a standard set of Peppol participant ID schemes, all derived from the customer's **BCE number** (Belgian company registration number). Since this number is typically available in Chargebee, the **Lookup Peppol participant** step can automatically resolve the correct Peppol ID for each customer — no manual setup required in most cases. If you want to specify a Peppol ID manually for a particular customer (or override the lookup result), you can do so with the following custom field: | Field | Metadata key | Custom field key | Example | | - | - | - | - | | Peppol Participant ID | `gobl-customer-inbox-peppol` | `cf_gobl_customer_inbox_peppol` | `0208:0123456789` | > [!NOTE] > > The metadata keys listed above follow the Chargebee metadata format (hyphens, no `cf_` prefix). If you prefer to use custom fields instead, replace hyphens with underscores and add the `cf_` prefix. See [Custom fields & metadata](/guides/chargebee#custom-fields-metadata) for details. ## FAQ > [accordion] How do I configure my workspace for Belgian invoicing? > > Install the Peppol app, register your supplier with its KBO/BCE-based participant ID (scheme `0208`), and use a workflow that generates a Peppol BIS Billing 3.0 document and sends it via the Lookup → Send actions. > [accordion] Do invoices need to be sent to the tax authority? > > In Belgium specifically there is no need to send a copy to the tax authority until the e-reporting mandate comes into effect in Jan 2028. > [accordion] Where do I find Belgium-specific GOBL documentation? > > See the [Belgium tax regime in GOBL](https://docs.gobl.org/regimes/be) for tax IDs and category codes. The Peppol BIS Billing 3.0 mapping is shared across EU members and comes from the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon. > [accordion] What is the difference between scheme 0208 and 9925 in Belgium? > > Belgium uses two Peppol scheme identifiers: > > * **`0208` (KBO/BCE enterprise number)** — This is the **preferred and default** scheme for Belgium. It corresponds to the company's KBO/BCE number (Kruispuntbank van Ondernemingen / Banque-Carrefour des Entreprises), which is the official Belgian business register. Most Belgian companies are registered in Peppol under this scheme. > * **`9925` (BE VAT number)** — This is an older, alternative scheme based on the Belgian VAT number. It is typically used by entities that have a Belgian VAT number but are not registered in the KBO/BCE — for example, foreign companies with a Belgian VAT registration. > > **When you should use `0208`:** Always use `0208` as your first choice when sending invoices to Belgian companies. This is the standard identifier and what the vast majority of Belgian businesses are registered under. > > **When `9925` may be needed:** If you get a "receiver not found" error when sending to a Belgian company using `0208`, and you have confirmed the company exists in the [Peppol Directory](https://directory.peppol.eu), check whether they are registered under `9925` instead. This is uncommon but does happen. > > To specify the scheme when sending, include the customer's Peppol inbox in your GOBL document: > > ```json theme={"system"} > "customer": { > "name": "Example Company", > "tax_id": { > "country": "BE", > "code": "0123456789" > }, > "inboxes": [ > { > "key": "peppol", > "scheme": "9925", > "code": "BE0123456789" > } > ] > } > ``` > > Note that when using `9925`, the code must include the `BE` prefix (e.g. `BE0123456789`), whereas `0208` uses the raw KBO/BCE number without a prefix. > > > [!TIP] > > > > Use the **Lookup Participant ID** workflow step to verify a recipient's Peppol registration before sending. If a lookup with `0208` fails, try again with `9925`. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. More available in our [Belgium FAQ](/faq/belgium) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about your Chargebee integration → # Chargebee in Denmark Source: https://docs.invopop.com/guides/cb-denmark Send compliant Peppol e-invoices from Chargebee to Danish customers Denmark uses the Peppol network and the Peppol BIS Billing UBL format. However, unlike Belgium, Danish Peppol participant IDs come in a wide variety of schemes — GLN numbers, CVR numbers, and others — and they don't all derive from the VAT number. This makes automatic lookup unreliable, so **this workflow does not include a Lookup Peppol participant step**. You will need to set the Peppol ID directly on each customer as a custom field. If you do want to use automatic lookup for some customers, you can add the lookup step from the [generic Peppol template](/guides/peppol). This guide assumes you have already connected the Chargebee app and completed the general setup — see the [Chargebee overview](/guides/chargebee) first if you haven't. **Required apps:** [Peppol](/apps/peppol), [OASIS UBL](/apps/oasis-ubl) > [!NOTE] > > Before processing any invoices, you must register your supplier on the Peppol network through Invopop. See the [Peppol guide](/guides/peppol) for full registration steps. [Chargebee + Invopop | Send e-invoices in Denmark](https://www.youtube.com/embed/6Gsq8fPcpuo) ## Workflow > [card] [Chargebee DK E-invoicing](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-dk-peppol) > > Add to my workspace → > [tab] Workflow > [tab] Code > > > [!NOTE] > > > > Unlike other Peppol countries, this template does not include a **Lookup Peppol participant** step. Danish Peppol participant IDs can take a variety of formats — such as GLN numbers — that are difficult to resolve automatically from a VAT number alone. We recommend setting the `cf_gobl_customer_inbox_peppol` [custom field](/guides/chargebee#custom-fields-metadata) directly on each customer in Chargebee so that Invopop can use it without needing to perform a lookup. > > > [!NOTE] > > > > The **Fixing bank-transfer details** step converts the generic `credit-transfer` payment key to `credit-transfer+sepa`. Denmark requires the more specific SEPA key for Peppol invoices, so this step ensures the payment instructions are valid before the document is sent. > > ```json Chargebee Peppol invoice (DK) workflow theme={"system"} > { > "name": "Chargebee Peppol invoice (DK)", > "description": "Sync from Chargebee and send via Peppol to DK customers", > "schema": "bill/invoice", > "steps": [ > { > "id": "84944c00-16e1-11f1-96ed-bb71a2a9b3a3", > "name": "Import document from Chargebee", > "provider": "chargebee.import" > }, > { > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5", > "name": "Fix bank-transfer details", > "provider": "silo.modify", > "notes": "Normalizes the payment key to SEPA credit transfer format", > "summary": "Normalize payment key to SEPA", > "config": { > "jq": "if .payment?.instructions?.key == \"credit-transfer\" then\n .payment.instructions.key = \"credit-transfer+sepa\"\nelse\n .\nend", > "merge_type": "application/jq", > "scope": "doc", > "sign": false > } > }, > { > "id": "cfe249c0-1c93-11f1-8e47-3f51862e93e3", > "name": "Modify silo entry", > "provider": "silo.modify", > "summary": "Add `eu-en16931-v2017` addon", > "config": { > "addons": [ > "eu-en16931-v2017" > ] > } > }, > { > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "fc5aa8d0-10aa-11f0-a09e-7b63571a4ae2", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "Peppol BIS Billing v3", > "config": { > "attach_invoice_pdf": false, > "doc_type": "bis-invoice-v3", > "private": false, > "validate_ubl": true > } > }, > { > "id": "075442a0-10ab-11f0-a09e-7b63571a4ae2", > "name": "Send Peppol document", > "provider": "peppol.send" > }, > { > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > }, > { > "id": "c4c34420-16e1-11f1-96ed-bb71a2a9b3a3", > "name": "Update Chargebee", > "provider": "chargebee" > } > ], > "rescue": [ > { > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > }, > { > "id": "ccc262a0-16e1-11f1-96ed-bb71a2a9b3a3", > "name": "Update Chargebee", > "provider": "chargebee" > } > ] > } > ``` ## Peppol participant ID Since there is no automatic lookup, the Peppol Participant ID must be set on each Danish customer before any invoices are processed. Use Chargebee's [bulk operations](https://www.chargebee.com/docs/2.0/bulk-operations.html) to back-populate this field across all your Danish customers before going live. | Field | Metadata key | Custom field key | Example | | - | - | - | - | | Peppol Participant ID | `gobl-customer-inbox-peppol` | `cf_gobl_customer_inbox_peppol` | `0088:5790000435968` (GLN) | > [!NOTE] > > The metadata keys listed above follow the Chargebee metadata format (hyphens, no `cf_` prefix). If you prefer to use custom fields instead, replace hyphens with underscores and add the `cf_` prefix. See [Custom fields & metadata](/guides/chargebee#custom-fields-metadata) for details. ## SEPA payment key The workflow includes one Denmark-specific step: **Fixing bank-transfer details**. If Chargebee sends a `credit-transfer` payment instruction on the invoice, this step automatically converts it to `credit-transfer+sepa`. Plain `credit-transfer` is not accepted in Denmark — the more specific SEPA variant is required. If the invoice has no payment instructions, the step is skipped. That's the only difference from a standard Peppol workflow. ## FAQ > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. More available in our [Denmark FAQ](/faq/denmark) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about your Chargebee integration → # Chargebee in France Source: https://docs.invopop.com/guides/cb-france Route Chargebee invoices through France's e-invoicing and e-reporting flows France runs two parallel flows, and which one an invoice takes depends on whether the customer is registered in the **Annuaire** (the French directory). * Customers subject to VAT in France are handled through the [e-invoicing flow](/guides/fr-pa-invoicing#sending) for domestic B2B transactions, with [status updates](/guides/fr-pa-status) reported back throughout. * Customers not subject to VAT in France — international or B2C transactions, and territories excluded from the mandate such as Guyane, Mayotte, New Caledonia and French Polynesia — go through [e-reporting](/guides/fr-pa-reporting) instead. This guide assumes you have already connected the Chargebee app and completed the general setup — see the [Chargebee overview](/guides/chargebee) first if you haven't. **Required apps:** [France](/apps/france), [Peppol](/apps/peppol), [OASIS UBL](/apps/oasis-ubl) > [!NOTE] > > Before processing any invoices, you must register your supplier in the Annuaire through Invopop. See the [registration guide](/guides/fr-pa-registration) for the e-invoicing flow and the [e-reporting registration steps](/guides/fr-pa-reporting#registration) for the reporting flow. ## Workflow A single template covers both French flows and picks between them automatically from the result of the **Lookup in Directory** step. * **found** result means the customer is subject to e-invoicing, so Invopop records the document in the Annuaire, forwards it to the PPF, and sends it over Peppol. * **not found** result means the transaction falls outside domestic e-invoicing — international B2B, B2C, or a customer in a territory excluded from the mandate — so it is recorded for e-reporting. For those, the **Can Send** action checks whether the customer is reachable on the Peppol network: if it is (a Belgian party, for example), the workflow sends the invoice over Peppol as well. > [card] [Chargebee France](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-france) > > Add to my workspace → > [tab] Workflow > [tab] Code > > > [!NOTE] > > > > The two paths differ in the addon and format they apply: the e-invoicing path applies the `fr-ctc-flow2-v1` addon and generates a Peppol France CIUS UBL, while the e-reporting path applies `fr-ctc-flow10-v1` and, when the customer is reachable on Peppol, generates a Peppol BIS Billing v3 document. > > > [!NOTE] > > > > The **Add bank details** step includes placeholder `bic` and `iban` fields that you must fill in with your own banking details. It only applies when the invoice carries payment due dates and the payment key is a plain `credit-transfer`, normalizing it to the SEPA format France expects. If you don't need to include payment instructions, you can remove this step. > > > [!NOTE] > > > > The **Add Billing Mode** step sets the French CTC billing mode: `S2` when the invoice is fully paid (an advance equal to the total), otherwise `S1`. The subsequent **Add VATEX** step maps UNTDID tax categories onto the GOBL tax keys and adds the `VATEX` exemption codes required by the French format. > > ```json Chargebee France send invoice workflow theme={"system"} > { > "name": "Chargebee France send invoice", > "description": "Sync from Chargebee and forward to PPF or record for reporting", > "schema": "bill/invoice", > "steps": [ > { > "id": "30960320-a44d-11f0-b23b-fd08a0f26c87", > "name": "Import Chargebee document", > "provider": "chargebee.import" > }, > { > "id": "66cdc390-485f-11f1-86b7-9745cc4d2380", > "name": "Download PDF", > "provider": "chargebee.pdf.download" > }, > { > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "eea78ac0-26f0-11f1-9156-e518ebabd527", > "name": "Add billing mode", > "provider": "silo.modify", > "notes": "S2 (already-paid) ONLY when fully paid (totals.advance == total_with_tax); else S1. S2 also adds payment.terms due_dates (BR-FR-CO-09). Reads .totals.advance (NOT the old .advances bug).", > "summary": "Modifications configured", > "config": { > "jq": ".tax.ext = (.tax.ext // {})\n| .tax.point = \"issue\"\n| if ((.totals.advance // null) != null and (.totals.advance == .totals.total_with_tax)) then\n .tax.ext[\"fr-ctc-billing-mode\"] = \"S2\"\n | .payment = (.payment // {})\n | .payment.terms = (.payment.terms // {\"due_dates\":[{\"date\":.issue_date,\"percent\":\"100%\"}]})\n else\n .tax.ext[\"fr-ctc-billing-mode\"] = \"S1\"\n end", > "merge_type": "application/jq", > "scope": "doc" > } > }, > { > "id": "4f427d80-a44d-11f0-b23b-fd08a0f26c87", > "name": "Add VATEX", > "provider": "silo.modify", > "summary": "Modifications configured", > "config": { > "jq": ".lines |= map(\n .taxes |= map(\n (.ext[\"untdid-tax-category\"]? as $cat\n | if $cat then\n {\n key: {\n \"AE\": \"reverse-charge\",\n \"E\": \"export\",\n \"G\": \"export\",\n \"O\": \"outside-scope\",\n \"K\": \"intra-community\"\n }[$cat],\n vatex: {\n \"AE\": \"VATEX-EU-AE\",\n \"G\": \"VATEX-EU-G\",\n \"O\": \"VATEX-EU-O\",\n \"K\": \"VATEX-EU-IC\"\n }[$cat]\n } as $m\n\n | if $m.key then .key = $m.key else . end\n | if $m.vatex then\n .ext = ((.ext // {}) + {\"cef-vatex\": $m.vatex})\n else\n .\n end\n else\n .\n end\n )\n )\n)", > "merge_type": "application/jq", > "scope": "doc", > "sign": false > } > }, > { > "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5", > "name": "Add bank details", > "provider": "silo.modify", > "notes": "Normalizes the payment key to SEPA credit transfer format", > "summary": "Modifications configured", > "config": { > "allow_invalid_json": false, > "data": { > "doc": { > "payment": { > "instructions": { > "credit_transfer": [ > { > "bic": "", > "iban": "" > } > ], > "key": "credit-transfer" > } > } > } > }, > "expr": "(doc?.payment?.instructions == nil || doc?.payment?.instructions?.key == \"credit-transfer\")\n&& doc?.payment?.terms?.due_dates != nil", > "merge_type": "application/merge-patch+json", > "sign": false > } > }, > { > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "de2407b0-5e94-11f1-90fe-f3d836f89160", > "name": "Lookup in Directory", > "provider": "gov-fr.directory.lookup", > "next": [ > { > "status": "NA", > "code": "found", > "steps": [ > { > "id": "3ffd50e0-5e95-11f1-90fe-f3d836f89160", > "name": "Add flow2 addon", > "provider": "silo.modify", > "summary": "Modifications configured", > "config": { > "addons": [ > "fr-ctc-flow2-v1" > ] > } > }, > { > "id": "1f8bf500-5e95-11f1-90fe-f3d836f89160", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "Peppol France CIUS UBL Invoice/CreditNote", > "config": { > "attach_invoice_pdf": false, > "doc_type": "peppol-fr-cius", > "private": false > } > }, > { > "id": "9e22f4a0-485f-11f1-86b7-9745cc4d2380", > "name": "Record document for e-invoicing", > "provider": "gov-fr.directory.record", > "summary": "Record Sender invoice", > "config": { > "role": "sender" > } > }, > { > "id": "ee6e4850-b287-11f1-b757-63253ab36402", > "name": "Verify document can be sent", > "provider": "peppol.validate.endpoint", > "next": [ > { > "code": "true", > "steps": [ > { > "id": "285c9450-5e95-11f1-90fe-f3d836f89160", > "name": "Send Peppol Document", > "provider": "peppol.send" > }, > { > "id": "2d6926c0-5e95-11f1-90fe-f3d836f89160", > "name": "Forward document to PPF", > "provider": "gov-fr.directory.forward" > } > ] > }, > { > "code": "false", > "steps": [ > { > "id": "f4954b70-b287-11f1-b757-63253ab36402", > "name": "Forward document to PPF", > "provider": "gov-fr.directory.forward", > "summary": "Forward to PPF (déposée – non transmise)", > "config": { > "not_transmitted": true > } > } > ] > } > ] > } > ] > }, > { > "status": "NA", > "code": "not-found", > "steps": [ > { > "id": "5cff2420-7470-11f1-9deb-cda1ffc5317f", > "name": "Add flow10 addon", > "provider": "silo.modify", > "summary": "Modifications configured", > "config": { > "addons": [ > "fr-ctc-flow10-v1" > ] > } > }, > { > "id": "3a023fc0-5e95-11f1-90fe-f3d836f89160", > "name": "Record document for reporting", > "provider": "gov-fr.reporting.record" > }, > { > "id": "aaf85b90-6996-11f1-8722-e7a7821bd54f", > "name": "Verify invoice can be sent", > "provider": "peppol.validate.endpoint", > "next": [ > { > "status": "NA", > "code": "true", > "steps": [ > { > "id": "afcc78e0-6996-11f1-8722-e7a7821bd54f", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "Peppol BIS Billing UBL Invoice/CreditNote V3", > "config": { > "attach_invoice_pdf": false, > "doc_type": "bis-invoice-v3", > "private": false > } > }, > { > "id": "b798c790-6996-11f1-8722-e7a7821bd54f", > "name": "Send Peppol document", > "provider": "peppol.send" > } > ] > } > ] > } > ] > } > ] > }, > { > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > }, > { > "id": "354dbed0-a44d-11f0-b23b-fd08a0f26c87", > "name": "Update Chargebee", > "provider": "chargebee", > "config": { > "document_select": "xml" > } > } > ], > "rescue": [ > { > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > }, > { > "id": "38fd0b30-a44d-11f0-b23b-fd08a0f26c87", > "name": "Update Chargebee", > "provider": "chargebee", > "config": { > "document_select": "xml" > } > } > ] > } > ``` ## Customer routing & identifiers A single SIREN registered in the Annuaire can have several directory entries, registered under the same or different Plateformes Agréées. Each entry has a unique identifier — mapped to the Peppol inbox — such as `SIREN`, `SIREN_SIRET` or `SIREN_suffix`. When no Peppol inbox is set on the customer, Invopop defaults to `0225:SIREN`, ignoring any SIRET present in the customer's identities. Use the custom fields below to control this. Set the **Peppol inbox** to target a specific directory entry, or provide the customer's **SIREN** and **SIRET** so the directory lookup can resolve them. All three are configured as **Single line text** custom fields (or as metadata, using the hyphenated key): | Field | Metadata key | Custom field key | Example | | - | - | - | - | | Peppol inbox | `gobl-customer-inbox-peppol` | `cf_gobl_customer_inbox_peppol` | `0225:123456789_test` | | SIREN | `gobl-customer-identity-SIREN` | `cf_gobl_customer_identity_SIREN` | `123456789` | | SIRET | `gobl-customer-identity-SIRET` | `cf_gobl_customer_identity_SIRET` | `12345678900011` | ## E-reporting transaction fields The e-reporting path applies the `fr-ctc-flow10-v1` addon, which defines two invoice tax extensions. By default, the addon sets the billing mode to `M1` — or `M2` when the invoice is fully paid — and the B2C transaction category to `TNT1`. Use the custom fields below to override these defaults: | Field | Metadata key | Custom field key | Example | | - | - | - | - | | Billing mode | `gobl-tax-fr-ctc-billing-mode` | `cf_gobl_tax_fr_ctc_billing_mode` | `S1` | | B2C transaction category | `gobl-tax-fr-ctc-flow10-b2c-category` | `cf_gobl_tax_fr_ctc_flow10_b2c_category` | `TPS1` | > [!NOTE] > > The metadata keys listed above follow the Chargebee metadata format (hyphens, no `cf_` prefix). If you prefer to use custom fields instead, replace hyphens with underscores and add the `cf_` prefix. See [Custom fields & metadata](/guides/chargebee#custom-fields-metadata) for details. ## FAQ Invoicing questions > [accordion] How do I configure my workspace for French invoicing? > > Two channels depending on the recipient: B2G uses Chorus Pro (CII format); B2B from September 2026 uses the Plateforme Agréée model (UBL, CII, or Factur-X via Peppol). Invopop is an approved PA — install the France PA app for B2B and the Chorus Pro app for B2G. > [accordion] How can I view an XML attached to a PDF? > > In Factur-X PDFs, the XML file is embedded within the PDF itself. To extract and view it, use the `Attachments` section in Adobe Acrobat Reader, or a tool like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/). > [accordion] Is Invopop ready for the September 2026 mandate? > > Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. Registration, invoicing, and lifecycle status are available today; e-reporting (Flow 10) is in active development. See the [PA hub readiness matrix](/guides/fr-pa) for the current state. > [accordion] What GOBL addons are required for France PA? > > The base [FR tax regime](https://docs.gobl.org/regimes/fr) plus the EN 16931 profile. For Peppol delivery, `peppol-bis-v3`. The forthcoming `fr-ctc-flow10-v1` addon covers e-reporting payloads — separate from the e-invoicing flow. > [accordion] Is a self-billed invoice a different document type in France? > > No. Most Peppol countries treat self-billing as a document type of its own, but France models it as a **standard invoice** with the `untdid-document-type` extension set to `389`. In GOBL you never set the code yourself: add the `self-billed` tag and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1#standard-self-billed) add-on applies it automatically. See [Self-billing](/guides/fr-pa-invoicing#self-billing) for the full flow. > [accordion] How do I send a debit note in France? > > A debit note that is subject to VAT and carries all the mandatory invoice information is sent as a regular invoice: set `type` to `standard` and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on sets `untdid-document-type` to `380`. Don't use `corrective` (`384`) unless the document corrects a previous invoice. A debit note that isn't an invoice is out of scope, so there is nothing to send. See the [debit note example](/guides/fr-pa-invoicing#pa-b2b-debit-note-treated-as-invoice). > [accordion] Why was my VAT-exempt invoice never sent to the PPF? > > Transactions exempt under articles 261 to 261 E of the CGI — insurance, medical care, education and the rest of that range — sit outside the e-invoicing mandate, and the PPF rejects them if you deposit one. When an invoice's whole VAT breakdown is exempt and carries a `VATEX-FR-CGI261*` code, Invopop records it but sends no F1 and raises no lifecycle status, and the dashboard shows it as Exempt. Keep issuing the invoice to your customer as usual. An invoice that mixes exempt and taxable lines is still sent normally, and so is `VATEX-FR-FRANCHISE`. See [VAT-exempt invoices](/guides/fr-pa-invoicing#vat-exempt-invoices). > [accordion] How many pops does a B2B e-invoice through France PA cost? > > Each invoice or lifecycle status sent through France PA costs **5 pops**: 1 pop for the conversion to UBL/CII, 2 pops to send it over Peppol, 1 pop to forward it to the PPF, and 1 pop for the silo entry. See [Pops & pricing](/get-started/pricing) for how pops work. > [accordion] What does the record document step check against the Annuaire? > > Before an invoice is recorded, the record step (**Record outgoing document for e-invoicing** when sending, **Record incoming document for e-invoicing** when receiving) looks up both the supplier and the customer SIREN in the Annuaire. What each party must satisfy depends on the workflow's role: > > | Role | Annuaire state | Outcome | > | - | - | - | > | Both | The SIREN has no effective entry | **Rejected** | > | Receiving | The SIREN has at least one effective entry | **Accepted** | > | Sending | The SIREN's only entry is the PPF's default line (matricule `9998`) | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches one of the SIREN's entries | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches none of the SIREN's entries | **Rejected** | > > Sandbox invoices skip the Annuaire check entirely. > [accordion] What should I do if the customer isn't registered in the Annuaire? > > Don't block the sale. An exchange where only one party has an > effective Annuaire entry is a > [non-regulated flow](/guides/fr-pa#key-concepts): it leaves > e-invoicing (flux 2) and is covered by > [e-reporting](/guides/fr-pa-reporting) (flux 10) instead. > > In practice: > > * Run a [Directory lookup](/guides/fr-lookup) against the > customer's SIREN before you generate the invoice — ideally in a > separate validation workflow run against customer data, so you > can prompt them to fix their registration ahead of time. > * If the SIREN has no effective entry, route the invoice through > your reporting workflow rather than the PA send workflow. > * If it slips through, the send workflow degrades rather than > failing: the **Verify document can be sent** step branches and > forwards the invoice to the PPF as *déposée – non transmise*. > > A missing entry is common and not necessarily an error. A SIREN > visible in the public > [annuaire-entreprises](https://annuaire-entreprises.data.gouv.fr) > registry is not the same as an effective entry in the DGFiP > Annuaire, which only covers entities in scope of the mandate. It > can also be absent because the buyer hasn't yet appointed a PA, or > because their tax records don't match. > [accordion] Should I check the Annuaire at order time or at invoice time? > > Both, for different reasons. A lookup at order or onboarding time > is a data-quality check: it lets you warn the customer and get > their SIREN or PA sorted before invoicing. A lookup at invoice > time is the one that decides the flow, because registrations are > added and withdrawn continuously and a party found at checkout may > no longer be routable days later (and vice versa). > > Treat the early result as advisory, resolve again at generation, > and store the resolved electronic address on the transaction — > the routing address isn't always the bare SIREN. See > [Directory lookup](/guides/fr-lookup). > [accordion] How do I know whether an invoice is B2G? > > You don't decide it yourself. When the invoice is recorded, Invopop looks the customer up in the Annuaire: a party whose line is routed to Chorus Pro is a public entity, and the invoice is marked B2G. The **Is B2G?** workflow step reads that answer and branches to **Send to Chorus Pro** instead of Peppol. See the [public sector guide](/guides/fr-pa-b2g). > [accordion] Do I need a Chorus Pro account to invoice French public entities? > > Not if your company has a French SIREN and is registered in the Annuaire through Invopop. Invopop holds the connection with Chorus Pro, so B2G invoices use the same [send workflow](/guides/fr-pa-b2g#setup) as any other French invoice. Only foreign entities without a French SIREN still go through the standalone [Chorus Pro app](/apps/choruspro-france), which requires Chorus Pro credentials. > [accordion] Where do I put the service code and the numéro d'engagement on a B2G invoice? > > The service code (*code service* or *code routage*) is a `private-id` identity on the customer, and the commitment number (*numéro d'engagement juridique*) is the purchase order reference in `ordering.purchases[0].code`. Both are supplied by the public entity. The [public sector guide](/guides/fr-pa-b2g#what-a-public-buyer-needs) lists every field. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. Receiving questions > [accordion] How do I import received invoices in France? > > Register the recipient with Invopop as their Plateforme Agréée. Inbound documents (UBL, CII, Factur-X) are converted to GOBL and stored in the Expenses folder. Chorus Pro inbound flow is separate and routes via the Chorus Pro app. > [accordion] How does Invopop convert received French invoices into GOBL? > > UBL via [`gobl.peppol`](https://github.com/invopop/gobl.peppol); CII and Factur-X via [`gobl.cii`](https://github.com/invopop/gobl.cii). The original structured XML (or PDF/A-3 with embedded XML) is preserved as a silo entry attachment. > [accordion] How do I import received invoices via France PA? > > Register the recipient via Invopop as their PA. Inbound UBL/CII/Factur-X documents are routed to the configured Import workflow and become GOBL silo entries. Lifecycle status updates (CDAR) feed back to the issuer through the same channel. > [accordion] What format do received France PA invoices arrive in? > > UBL, CII, or Factur-X (PDF with embedded CII XML), all conforming to EN 16931 and the French CTC profile. Invopop preserves the original and exposes the GOBL conversion. > [accordion] Can I receive invoices at more than one platform (PDP) for the same company? > > Yes. A single company can be reachable at several destinations by registering different routing identifiers (electronic addresses) in the Annuaire — one per PDP or inbox. Invoices addressed to a given identifier are delivered to the platform registered against it, so you can route some invoices to Invopop and others to a different PDP (for example a travel-and-expense tool) for the same SIREN. > > The Annuaire supports several address formats that map to increasingly granular destinations within the same company: > > * `SIREN` — the company as a whole. > * `SIREN_SIRET` — a specific establishment. > * `SIREN_SIRET_ROUTINGCODE` — a site, department, or workflow within an establishment. > * `SIREN_SUFFIX` — a custom routing suffix. > > Give each PDP or inbox a distinct identifier and share the matching address with each issuer, so their invoices reach the intended destination. You can [look up an electronic address](/guides/fr-lookup) in the Annuaire to confirm where it currently routes. > [accordion] What is checked before a received invoice is recorded? > > An invoice arriving from another platform goes through three controls, run in the order the PPF applies them: > > * **Syntax** — the invoice XML against the Flux 2 schematron for its syntax. > * **Addressing** — both parties carry a SIREN registered in the Annuaire, the transport addresses belong to the parties the invoice names, and the invoice is addressed to a party registered in your workspace. > * **Unicity** — the invoice is not already recorded for this party, number and year. > > An invoice that passes every control is recorded on the receiving side. Only invoices are validated this way; incoming lifecycle statuses are simply recorded. > [accordion] What reason does a rejected invoice come back with? > > Each control rejects under its own CDAR motif, carried on the [`213` Rejetée](/guides/fr-pa-status#issued-by-the-platform) status returned to the platform that sent the invoice: > > * `REJ_SEMAN` — *rejet pour erreur sémantique*, when the invoice fails the Flux 2 schematron. > * `ADR_ERR` — *adresse de facturation électronique erronée*, when the addressing control fails. > * `REJ_UNI` — *rejet sur contrôle unicité*, when the invoice is already recorded. > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. More available in our [France FAQ](/faq/france) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about your Chargebee integration → # Chargebee in Germany Source: https://docs.invopop.com/guides/cb-germany Generate ZUGFeRD and XRechnung e-invoices from Chargebee for German customers Germany supports two structured e-invoicing formats: **ZUGFeRD** and **XRechnung**. Both are valid and supported by Invopop, but they serve different purposes and have different requirements. * **ZUGFeRD** is the most common choice for B2B invoicing. It has fewer validation constraints, which is why we always recommend embedding the XML inside a PDF — your customer receives a standard-looking PDF that also contains a machine-readable file. No per-customer setup is required. * **XRechnung** is primarily used for B2G invoicing (invoicing public authorities). It has stricter validations and more required fields, but if your customers require it, Invopop fully supports it. This guide assumes you have already connected the Chargebee app and completed the general setup — see the [Chargebee overview](/guides/chargebee) first if you haven't. **Required apps:** [UN/CEFACT CII](/apps/uncefact-cii) [Chargebee + Invopop | E-invoicing in Germany](https://www.youtube.com/embed/WJcWJqBiA-Q) ## Using Chargebee's email delivery The Chargebee app does not email your customers. It posts links to the generated files on the Chargebee invoice, and Chargebee attaches those files (the ZUGFeRD PDF, or the XRechnung XML) to its own invoice email only if your site is set up for it. ```mermaid theme={"system"} %%{init: {'theme':'base','themeVariables':{'actorBkg':'#e8f5ee','actorBorder':'#169958','actorTextColor':'#103830','actorLineColor':'#94a3b8','signalColor':'#1a8a55','signalTextColor':'#1a8a55','loopTextColor':'#1a8a55','noteBkgColor':'#ffffff','noteBorderColor':'#169958','noteTextColor':'#103830','labelBoxBkgColor':'#169958','labelBoxBorderColor':'#1a8a55','labelTextColor':'#ffffff','sequenceNumberColor':'#ffffff'}}}%% sequenceDiagram participant IV as Invopop participant CB as Chargebee participant C as Customer IV->>CB: Comment with links to the generated files alt SEND_EINVOICE_NOTIFICATION enabled CB->>C: Invoice email with the e-invoice attached else Flag not enabled CB-->>C: No e-invoice in the email end ``` **1. Invopop posts the files** When the workflow finishes, the **Update Chargebee** step posts a comment on the Chargebee invoice or credit note with links to the files the workflow generated. This happens with or without the flag, and needs a **Full Access API key**. **2. Chargebee emails the customer** If the flag is enabled and the settings below are in place, Chargebee attaches the files from that comment to its invoice email. Otherwise the files are only available through the links in the comment. These must be in place in Chargebee: | Setting | Where | Who sets it | | - | - | - | | `SEND_EINVOICE_NOTIFICATION` feature flag | Chargebee back office. It is **not** visible in your Chargebee settings or in Invopop | Chargebee support or your Chargebee account manager, on request | | `cf_invopop_include` set to `true` on the customer | Customer custom fields | You | | Invoice and credit note email notifications | Chargebee email notification settings | You | > [!WARNING] > > The feature flag is enabled per Chargebee site. Ask Chargebee to enable it on your test site and again on your live site. Chargebee may also apply other conditions, such as the countries of your site and your customers, so confirm with Chargebee that it covers the invoices you send. > [!TIP] > > A successful job means Invopop generated the files and posted them to Chargebee. It does not mean your customer received an email. If the files are in the invoice comments but not in the email, check the settings above with Chargebee. ## Workflows > [tab] ZUGFeRD (B2B) > > > [card] [Chargebee ZUGFeRD](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-zugferd) > > > > Add to my workspace → > > The ZUGFeRD workflow downloads the existing Chargebee PDF, generates the ZUGFeRD-compliant XML, and embeds the XML into the PDF to produce a single hybrid document. Chargebee then picks up the result and sends it to your customer. Beyond having a valid German supplier set up in Invopop, the template includes one additional step that addresses a specific requirement: > > **1. Bank details** > > When an invoice is paid by bank transfer, ZUGFeRD requires bank details to be present on the invoice. Chargebee typically includes this information in its PDF template, but it is not available via the API — so we cannot fetch it automatically. You will need to add your IBAN and BIC/SWIFT code directly into the **Add bank details** workflow step. Both fields are required. > > This only affects invoices paid outside of Chargebee, such as [offline payments](https://www.chargebee.com/docs/payments/2.0/offline-checkout/offline_payments). For these invoices, Chargebee has no information about the destination account, so the bank details need to be included manually in the workflow. > > > [tab] Workflow > > > [tab] Code > > > > ```json Chargebee ZUGFeRD invoice workflow theme={"system"} > > { > > "name": "Chargebee ZUGFeRD invoice", > > "description": "Sync from Chargebee and issue a ZUGFeRD invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ff581030-1943-11f0-b031-c71066181289", > > "name": "Import document from Chargebee", > > "provider": "chargebee.import" > > }, > > { > > "id": "bd7eb640-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "b913e860-1d43-11f1-a00f-9bd9990c5dfa", > > "name": "Download PDF from Chargebee", > > "provider": "chargebee.pdf.download" > > }, > > { > > "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5", > > "name": "Add bank details", > > "provider": "silo.modify", > > "notes": "Normalizes the payment key to SEPA credit transfer format", > > "summary": "Add bank details", > > "config": { > > "allow_invalid_json": false, > > "data": { > > "doc": { > > "payment": { > > "instructions": { > > "credit_transfer": [ > > { > > "bic": "", > > "iban": "" > > } > > ], > > "key": "credit-transfer" > > } > > } > > } > > }, > > "expr": "(doc?.payment?.instructions == nil || doc?.payment?.instructions?.key == \"credit-transfer\")\n&& doc?.payment?.terms?.due_dates != nil", > > "merge_type": "application/merge-patch+json", > > "sign": false > > } > > }, > > { > > "id": "18910b60-6624-11f0-9087-c716f49f1585", > > "name": "Modify silo entry", > > "provider": "silo.modify", > > "summary": "Add `de-zugferd-v2` addon", > > "config": { > > "addons": [ > > "de-zugferd-v2" > > ], > > "sign": false > > } > > }, > > { > > "id": "c37c3860-abd0-11ef-a013-91c68ca9f44b", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "3548d720-6623-11f0-b3db-e7255a5da07c", > > "name": "Generate CII document", > > "provider": "cii.generate", > > "summary": "ZUGFeRD v2", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "zugferd-v2", > > "validate_cii": true > > } > > }, > > { > > "id": "8e665990-81a3-11f0-82cb-9160968ac068", > > "name": "Embed FacturX/ZUGFeRD", > > "provider": "cii.pdf.embed" > > }, > > { > > "id": "c6192a60-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > }, > > { > > "id": "553f8c03-c0ff-4de5-9a66-33685b8f9c65", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ], > > "rescue": [ > > { > > "id": "c94982c0-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > }, > > { > > "id": "c35d34c0-b7af-11ef-86a5-99a247862412", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ] > > } > > ``` > [tab] XRechnung (B2G) > > > [card] [Chargebee XRechnung](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-xrechnung) > > > > Add to my workspace → > > XRechnung is used for invoicing German public authorities. The template includes a few additional steps compared to ZUGFeRD, each addressing a specific requirement: > > **1. Bank details** > > XRechnung requires bank details to be present on the invoice. Chargebee typically includes this information in its PDF template, but it is not available via the API — so we cannot fetch it automatically. You will need to add your IBAN (and optionally your BIC/SWIFT code) directly into the **Adding bank details** workflow step. The IBAN alone is sufficient. > > **2. Leitweg-ID as the buyer reference (ordering code)** > > Some German public sector customers require a **Leitweg-ID** to be present on the invoice as the buyer reference. This is typically entered as the PO number on the subscription in Chargebee. However, XRechnung expects this value in the buyer reference field, which Invopop maps to the ordering code — not the purchase order code. The **Map PO to ordering code** step handles this automatically, moving the value from the PO field into the correct place. > > If you prefer not to use the PO number for this, or if you need to set it independently, you can use the `cf_gobl_ordering` custom field instead, providing the value as JSON: > > ```json theme={"system"} > {"code": "991-12345678-06"} > ``` > > **3. Customer inbox (delivery routing)** > > Each public authority customer must have either a Peppol inbox or an email address configured so the invoice can be routed correctly. You can set these via custom fields on the customer in Chargebee: > > | Field | Metadata key | Custom field key | Example | > | - | - | - | - | > | Leitweg-ID (Peppol inbox) | `gobl-customer-inbox-peppol` | `cf_gobl_customer_inbox_peppol` | `0204:991-12345678-06` | > | E-invoice email | `gobl-customer-inbox-email` | `cf_gobl_customer_inbox_email` | `einvoice@behoerde.de` | > | Leitweg-ID (ordering code) | `gobl-ordering` | `cf_gobl_ordering` | `{"code": "991-12345678-06"}` | > > > [!TIP] > > > > Use Chargebee's [bulk operations](https://www.chargebee.com/docs/2.0/bulk-operations.html) to back-populate the inbox and ordering code fields across all your public sector customers before going live. > > > [!NOTE] > > > > The **Adding bank details** step includes placeholder `bic` and `iban` fields that you must fill in with your own banking details. Note that Chargebee typically includes bank details directly in their PDF template, meaning this information is not available via the API for us to fetch automatically. As a result, bank details need to be added manually to the workflow step. If you don't need to include payment instructions in your invoices, you can remove this step entirely. > > > [!NOTE] > > > > The **Map PO to ordering code** step maps the first purchase order code from Chargebee into the `ordering.code` field that XRechnung requires as a buyer reference. This is particularly relevant when invoicing public entities (B2G), where a Leitweg-ID or PO number is mandatory. If the invoice has no purchase order code, the step is safely skipped. If you are not invoicing public entities and do not use ordering references, you can remove this step. > > > [tab] Workflow > > > [tab] Code > > > > ```json Chargebee XRechnung invoice workflow theme={"system"} > > { > > "name": "Chargebee XRechnung invoice", > > "description": "Sync from Chargebee and issue an XRechnung invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ff581030-1943-11f0-b031-c71066181289", > > "name": "Import document from Chargebee", > > "provider": "chargebee.import" > > }, > > { > > "id": "bd7eb640-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5", > > "name": "Add bank details", > > "provider": "silo.modify", > > "notes": "Normalizes the payment key to SEPA credit transfer format", > > "summary": "Add bank details", > > "config": { > > "allow_invalid_json": false, > > "data": { > > "doc": { > > "payment": { > > "instructions": { > > "credit_transfer": [ > > { > > "bic": "", > > "iban": "" > > } > > ], > > "key": "credit-transfer" > > } > > } > > } > > }, > > "expr": "(doc?.payment?.instructions == nil || doc?.payment?.instructions?.key == \"credit-transfer\")\n&& doc?.payment?.terms?.due_dates != nil", > > "merge_type": "application/merge-patch+json", > > "sign": false > > } > > }, > > { > > "id": "a3f12340-1d47-11f1-9c3e-4b2819e7f3a0", > > "name": "Map PO to ordering code", > > "provider": "silo.modify", > > "summary": "Map PO to ordering code", > > "config": { > > "jq": "if (.ordering.code // null) == null and .ordering.purchases?[0]?.code != null then .ordering.code = .ordering.purchases[0].code else . end", > > "merge_type": "application/jq", > > "scope": "doc", > > "sign": false > > } > > }, > > { > > "id": "18910b60-6624-11f0-9087-c716f49f1585", > > "name": "Modify silo entry", > > "provider": "silo.modify", > > "summary": "Add `de-xrechnung-v3` addon", > > "config": { > > "addons": [ > > "de-xrechnung-v3" > > ], > > "sign": false > > } > > }, > > { > > "id": "c37c3860-abd0-11ef-a013-91c68ca9f44b", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "3548d720-6623-11f0-b3db-e7255a5da07c", > > "name": "Generate CII document", > > "provider": "cii.generate", > > "summary": "XRechnung CII v3", > > "config": { > > "doc_type": "xrechnung-v3", > > "validate_cii": true > > } > > }, > > { > > "id": "c6192a60-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > }, > > { > > "id": "553f8c03-c0ff-4de5-9a66-33685b8f9c65", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ], > > "rescue": [ > > { > > "id": "c94982c0-abd0-11ef-a013-91c68ca9f44b", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > }, > > { > > "id": "c35d34c0-b7af-11ef-86a5-99a247862412", > > "name": "Update Chargebee", > > "provider": "chargebee" > > } > > ] > > } > > ``` > [!NOTE] > > The metadata keys listed above follow the Chargebee metadata format (hyphens, no `cf_` prefix). If you prefer to use custom fields instead, replace hyphens with underscores and add the `cf_` prefix. See [Custom fields & metadata](/guides/chargebee#custom-fields-metadata) for details. ## FAQ > [accordion] How do I configure my workspace for German invoicing? > > Pick a format based on the recipient: XRechnung (UBL or CII) for B2G via Peppol, ZUGFeRD/Factur-X for B2B where a human-readable PDF is also wanted. Both are EN 16931-compliant — Invopop generates either from the same GOBL invoice. > [accordion] What's the workflow for issuing Peppol invoices in Germany? > > Generate a GOBL invoice with the `de-xrechnung-v3` addon, then run the Peppol Send workflow. Invopop emits XRechnung (UBL or CII per recipient preference), looks up the recipient's Access Point, and delivers via Peppol. > [accordion] Which XRechnung syntax should I choose, UBL or CII? > > Both syntaxes are equally valid and contain the same information, so in the majority of cases the choice has no consequences. > > If you plan on sending invoices through the Peppol network, we recommend using UBL as it is the supported format. If you plan on also issuing invoices in ZUGFeRD or Factur-X, it might be more convenient to use CII, as it is the syntax also supported by ZUGFeRD and Factur-X. > [accordion] How can I view an XML attached to a PDF? > > For ZUGFeRD PDFs, the XML file is embedded within the PDF itself. To extract and view it, you can use the `Attachments` section in Adobe Acrobat Reader. > > Alternatively, you can use specialized tools like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/) to extract the XML file. > [accordion] Where do I find Germany-specific GOBL documentation? > > See the [Germany tax regime in GOBL](https://docs.gobl.org/regimes/de) for tax categories and identifiers. The XRechnung mapping lives in [`de-xrechnung-v3`](https://docs.gobl.org/addons/de-xrechnung-v3); ZUGFeRD/Factur-X share the EN 16931 CII profile. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. More available in our [Germany FAQ](/faq/germany) section *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about your Chargebee integration → # Chargebee guide Source: https://docs.invopop.com/guides/chargebee Import and process invoices, credit notes and payments from Chargebee ## Introduction [Chargebee](https://www.chargebee.com/) is a subscription management and billing platform designed for businesses that rely on recurring revenue. It automates tasks like subscription billing, invoicing, payment processing, and revenue recognition. Invopop's Chargebee app lets you issue locally compliant electronic invoices and credit notes from Chargebee, and optionally report the payments and refunds collected against them. ## How it works [Chargebee + Invopop | Setting up your workspace](https://www.youtube.com/embed/TelRfWqHSeg) The Invopop Chargebee app will subscribe to new incoming invoices and credit notes. When a new document is received, it'll be *converted* into GOBL, and stored in your Invopop workspace. Once an invoice or credit note is stored, the app will create a job on the configured workflow. Any updates and, importantly, error messages will be posted to Chargebee automatically, in the comment section of the invoice or credit note (or of the transaction, for [imported payments](#importing-payments)). We also recommend configuring workflows to send notifications via Slack or email to ensure any issues can be addressed quickly. ![chargebee invoice](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/chargebee-invoice.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=e1820d02cde117f72a0214ce49fce06d) Invopop's output in Chargebee ## Setup This guide assumes that you already have a Chargebee site configured and using Product Catalog 2.0. Sites created after May 05, 2021, will have this version enabled by default. If your site was created before this date, you may need to migrate to Product Catalog 2.0. More details [here](https://www.chargebee.com/docs/2.0/product-catalog.html). **1. Create a Supplier** First we need to store the details of the supplier (the owner of the Chargebee account) in Invopop: 1. In the [console](https://console.invopop.com), navigate to "Contacts" → "Suppliers" and tap "New supplier". 2. Add the company's contact details, including the name and tax code. 3. If you're issuing invoices from a region that requires special fields, please contact Invopop support for assistance. 4. Save the document. Note that when generating invoices, the app merges the supplier information in Invopop with the business profile data in Chargebee, giving precedence to the data from Chargebee. **2. Prepare a Workflow** > [card] [Chargebee Basic PDF workflow](https://console.invopop.com/redirect/workflows/new?template=chargebee-cb-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste the following JSON into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. This example adds support for setting states on silo entries, which we strongly recommend. > > ```json Chargebee PDF invoice workflow theme={"system"} > { > "name": "Chargebee PDF invoice", > "description": "Sync from Chargebee and generate a PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "1b23a850-ff46-11ef-bc8b-49a3f98ea471", > "name": "Import document from Chargebee", > "provider": "chargebee.import" > }, > { > "id": "c9d569f0-ab1e-11ef-a0aa-f554af0a2b6c", > "name": "Set state", > "config": { > "state": "processing" > }, > "summary": "Set state to `processing`{.state .processing}", > "provider": "silo.state" > }, > { > "id": "c7a347b0-ab1e-11ef-a0aa-f554af0a2b6c", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "d1f2e5e0-ab1e-11ef-a0aa-f554af0a2b6c", > "name": "Generate PDF", > "config": { > "logo_height": 40, > "locale": "en", > "date_format": "%Y-%m-%d" > }, > "summary": "English · A4", > "provider": "pdf" > }, > { > "id": "6277f270-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "config": { > "state": "sent" > }, > "summary": "Set state to `sent`{.state .sent}", > "provider": "silo.state" > }, > { > "id": "02487016-0959-475c-9bc4-aa237313fefa", > "name": "Update Chargebee", > "provider": "chargebee" > } > ], > "rescue": [ > { > "id": "5504a610-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "config": { > "state": "error" > }, > "summary": "Set state to `error`{.state .error}", > "provider": "silo.state" > }, > { > "id": "d8166690-ab1e-11ef-a0aa-f554af0a2b6c", > "name": "Update Chargebee", > "provider": "chargebee" > } > ] > } > ``` For workflows that generate country-specific formats such as German ZUGFeRD or XRechnung documents, see the [country guides](#country-guides) below. **3. Connect the Chargebee app** You are now ready to connect and configure the Chargebee app itself. Go to **Configuration** → **Apps** in the Invopop console. Find the **Chargebee** app, then click on **Connect**. The app will be added to the list of active apps. Click on the app's **Configure** button. You'll see a form with the following fields: * **Chargebee Site:** The identifier of your Chargebee site. It is the part of the URL when you log in to Chargebee before the `.chargebee.com` domain. For example, if your URL is `https://my-site.chargebee.com`, your site is `my-site`. * **Chargebee API Key:** The API key used to access Chargebee. Go to "Settings" → "Configure Chargebee" → "API Keys" in the Chargebee UI to create one. Keep in mind that the used API must be a Full-Access Key. * **Supplier:** The supplier that will issue the invoices. You can select the one you created earlier. * **Workflow:** The workflow that will process the invoices. You can select the one you created earlier. * **Ignore Chargebee's invoice codes:** If `true`, the app will ignore the invoice numbers set by Chargebee and let the workflow assign them instead. In special cases, such as Portugal and Colombia, invoice codes are regulated, and this setting should be set to `true`. * **Import payments:** If enabled, payments and refunds are imported too, as GOBL payments. See [Importing payments](#importing-payments) for what this requires. * **Payment workflow:** The workflow that will process payments, shown when **Import payments** is enabled. Leave it empty to use the invoice workflow. * **Exclude customers by default:** If enabled, Invopop will not process a customer's invoices unless the `cf_invopop_include` custom field is present and set to `true` on that customer. This is the recommended way to allowlist a subset of customers — see [Controlling which customers are processed](#controlling-which-customers-are-processed) below. Some countries require specific codes set on tax-exempt invoices. If you're in one of these countries, you'll see the following fields: * **Exemption Code (Generic):** The local code to be used by default on tax-exempt invoices. * **Exemption Code (Exports):** The local code to be used by default on tax-exempt invoices for exports. * **Exemption Code (Reverse Charge):** The local code to be used by default on tax-exempt invoices for reverse charge. Please note that those are the default exemption codes that will be set depending on the Chargebee exemption reason. If you need specific codes used for specific tax-exempt items, item prices, subscriptions, or customers, you can assign them as extensions (see next step). After saving the configuration, the page will provide a URL to set up a webhook in Chargebee. Save the URL, we'll complete the setup in a later step. **4. Enter extension data** To generate valid invoices, most tax regimes require the issuer to provide custom data specific to that regime. GOBL provides mechanisms such as extensions, identities, or inboxes to carry that custom data. Please refer to the [specific regime documentation](https://github.com/invopop/gobl/tree/main/regimes) to determine what is required and available in each regime. To enter this data in Chargebee, you can either configure custom fields or attach metadata to any of these entities: Customer, Plan Item, Plan Item Price, Action Item, Action Item Price, Charge Item, Charge Item Price, and Subscription. The keys of these metadata or custom fields need to have a specific prefix and include the extension, identity, or inbox key to be properly mapped to GOBL. Refer to the [Custom fields & metadata](#custom-fields-metadata) section below for the full list of prefixes. For example, to set the customer's [`mx-cfdi-fiscal-regime`](https://docs.gobl.org/addons/mx-cfdi-v4#fiscal-regime-code) extension, you must add a custom field to the Customer entity with the API name: `cf_gobl_mx_cfdi_fiscal_regime` (note that, being a custom field, dashes in the original extension key are replaced by underscores). You can create it in **Settings** → **Configure Chargebee** → **Custom Fields**: ![New Chargebee custom field](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/chargebee-custom-field.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=00b1825f94ffd426451e7bafde397fa8) Alternatively, you could set it as Customer metadata using the `gobl-customer-mx-cfdi-fiscal-regime` key (note that dashes, instead of underscores, are used in the metadata key): ```json theme={"system"} { "gobl-customer-mx-cfdi-fiscal-regime": "601" } ``` **5. Set up a webhook** After saving the configuration in step 3, the page provides a URL to set up a webhook in Chargebee and trigger the import process. To do this, go to **Settings** → **Configure Chargebee** → **Webhooks** and create a new webhook with the provided URL. ![Chargebee webhook form](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/chargebee-webhook.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=190adae10ed331b89862f57dd188794b) > [!TIP] > > Currently, Invopop listens to the "Invoice Generated" and the "Credit Note Created" events, plus "Payment Succeeded" and "Payment Refunded" when **Import payments** is enabled. We recommend that you configure your webhook to send "All events" to ensure that the integration will work in the future if we need to listen to other events. You are now ready to start importing invoices and credit notes from Chargebee. The app will automatically create GOBL invoices and add them to your Invopop account. The invoices will then be processed using the workflow you set up. ## Country guides Depending on where your customers are located, you'll need a different workflow to comply with local e-invoicing requirements. Each country guide covers the recommended workflow template, video walkthrough, and key custom fields: > [card] [Belgium](/guides/cb-belgium) > > Send Peppol BIS invoices with the Chargebee PDF attached, with automatic participant ID lookup. > [card] [Denmark](/guides/cb-denmark) > > Send Peppol invoices to Danish customers with SEPA payment key handling. > [card] [France](/guides/cb-france) > > Route invoices automatically between the e-invoicing and e-reporting flows. > [card] [Germany](/guides/cb-germany) > > Generate ZUGFeRD hybrid PDFs for B2B or XRechnung documents for B2G. ## Importing payments Some countries require you to report when an invoice is paid, not just when it is issued. To support this, the app can import Chargebee payments and refunds as [GOBL payments](https://docs.gobl.org/draft-0/bill/payment). This is off by default and needs two switches: 1. Enable **Import payments** in the app's configuration, and optionally choose a **Payment workflow**. 2. Enable the "Payment Succeeded" and "Payment Refunded" events on your Chargebee webhook (already the case if it sends "All events"). Payments are processed by the **Payment workflow** or, if you leave it empty, by the invoice workflow, including any assigned with the `cf_invopop_workflow` custom field. Whichever workflow processes payments must accept them: one whose schema is `bill/invoice` stops payments with a `schema-mismatch` error. How Chargebee payments become GOBL payments: * **One payment per document.** A Chargebee transaction that settles several invoices is imported as one payment for each invoice, each with the amount applied to it. * **Refunds** settle the credit note they were issued against, and are imported as a payment with the line marked as a refund. * **Link to the invoice.** The payment references the invoice it pays by UUID, series and number, and links to it in the Console, even if the payment is imported before the invoice. If you use **Ignore Chargebee's invoice codes** and the payment arrives before Invopop has numbered the invoice, the payment can't reference its number and the import fails; retry the job once the invoice has been processed. * **VAT split.** Chargebee doesn't split payments by tax rate, so the app splits each payment across the invoice's VAT rates in proportion to their weight in its total. Partial payments are split the same way. * **No PDF.** Chargebee doesn't generate PDFs for payments, so the **Download PDF from Chargebee** step skips them, as does **Update invoice details**. * **Comments.** Import results and errors are posted as comments on the Chargebee transaction rather than on the invoice. Payments only reach Invopop if the customer's invoices do: the same business entity and customer include/exclude rules apply. ### Controlling which customers are processed By default, Invopop will process invoices for all your customers. If you only need to send e-invoices to a subset of them, you have two options — pick one, not both: * **Allowlist**: Enable the **Exclude customers by default** checkbox in the app's configuration form, then set the `cf_invopop_include` custom field to `true` on each customer you want to process. Everyone else is excluded automatically — no back-populating required. * **Denylist**: Create the `cf_invopop_exclude` custom field and set it to `true` for customers you want to exclude. Everyone else will be processed by default. ## Retriggering invoices There may be situations where you need to reprocess an invoice. The method depends on whether Invopop has already created a silo entry (invoice) for it. ### No silo entry created (invoice not imported) If no job was created and no silo entry exists in Invopop, you can retrigger the webhook directly from Chargebee: 1. Go to the **Customers** page in Chargebee 2. Click on the customer in question 3. Scroll down to **History** 4. Go to the **Events** tab 5. Select the **Invoice Generated** event for the invoice and date you want to reprocess 6. Click **Resend Webhook** for the Invopop webhook This will send the invoice to Invopop again, creating a new job and silo entry. ### Silo entry already exists Once a silo entry (invoice) has been created in Invopop, retriggering from Chargebee will not work. Use the **Run Again** option on the last job instead. How you proceed depends on whether anything in Chargebee has changed. > [!WARNING] > > Retriggering from Chargebee when a silo entry already exists will not work. Always use the **Run Again** option in the Invopop console in this case. #### Error is downstream — data hasn't changed If the failure happened after the invoice was already signed (e.g. the Generate UBL document or Send Peppol document step failed) and nothing has changed in Chargebee, you can simply run the workflow again: 1. In the [Invopop console](https://console.invopop.com), navigate to the workflow that processed the invoice 2. Find the last job for that invoice 3. Click **Run Again** The import step will detect that the invoice is already signed and skip the update — which is fine since the data is unchanged and processing can continue from where it failed. #### Data has changed in Chargebee — signature needs to be removed The **Import document from Chargebee** step updates the invoice with fresh data from Chargebee each time it runs. However, if the invoice has already been signed, the import step will skip this update to preserve the signature. If you need the latest data from Chargebee to be pulled in — for example, because you updated a customer's custom fields, corrected an error, or the failure happened before or during signing — you must first remove the signature: 1. In the [Invopop console](https://console.invopop.com), navigate to the silo entry for that invoice 2. Click **Edit**, then **Save** — this removes the signature without altering the data 3. Go to the workflow, find the last job for that invoice, and click **Run Again** The import step will now pull the latest data from Chargebee before continuing with the rest of the workflow. ## Custom fields & metadata The following prefixes are used to map custom fields from Chargebee to GOBL (all of type **Single line text**): | Prefix | Description | Example | | - | - | - | | `cf_gobl_tax_` | Invoice tax extension | `cf_gobl_tax_gr_mydata_invoice_type` | | `cf_gobl_customer_` | Customer extension | `cf_gobl_customer_mx_cfdi_fiscal_regime` | | `cf_gobl_customer_identity_` | Customer identity | `cf_gobl_customer_identity_de_tax_number` | | `cf_gobl_customer_inbox_` | Customer inbox | `cf_gobl_customer_inbox_it_sdi_pec` | | `cf_gobl_item_` | Item extension | `cf_gobl_item_br_nfse_service` | | `cf_gobl_line_vat_` | VAT extension | `cf_gobl_line_vat_pt_saft_exemption` | | `cf_gobl_note_` | Invoice note with that key | `cf_gobl_note_reason` | | `cf_gobl_purchase_identity_` | Ordering purchase identity | `cf_gobl_purchase_identity_CIG` | Set invoice notes on the Customer to add them to all its invoices, or on a Subscription for that subscription's invoices only. When both set the same key, the Subscription value wins. Formats that read a note key pick it up from there: for example, FatturaPA writes `reason` notes to `Causale`. > [!NOTE] > > In addition to using custom fields, you can also set GOBL data as [metadata in Chargebee](https://www.chargebee.com/docs/2.0/metadata.html). When using metadata, underscores must be replaced with hyphens, and the `cf-` prefix can be omitted. > > For example, the custom field `cf_gobl_item_br_nfse_service` would become `gobl-item-br-nfse-service` if passed as metadata. > > This applies to all the fields listed in this section. In addition to the prefixes above, the following keys can be used to set specific GOBL fields: | Key | Description | Type | | - | - | - | | `cf_gobl_tags` | Invoice tags (comma-separated list) | Single line text | | `cf_gobl_addons` | Invoice addons (comma-separated list) | Single line text | | `cf_gobl_line_cost` | Line buyer accounting reference (cost) | Single line text | | `cf_gobl_ordering` | Invoice ordering (full JSON) | Single line text | Finally, you can use the following custom fields to choose which customer's invoices Invopop should import and which ones we shouldn't, or to route specific customers to a different workflow: | Key | Description | Type | | - | - | - | | `cf_invopop_include` | Customer to include when importing (if "True") | Checkbox | | `cf_invopop_exclude` | Customer to exclude when importing (if "True") | Checkbox | | `cf_invopop_workflow` | Workflow to use for this Customer (overrides the default one) | Dropdown | [Chargebee + Invopop | Setting up custom fields to exclude from import](https://www.youtube.com/embed/WgWofLDzDg4) > [!TIP] > > You would typically use either `cf_invopop_include` to allowlist the customers to be imported, or `cf_invopop_exclude` to denylist them, but not both of them. They are optional, though, and if not set, all customers' invoices will be imported — unless the **Exclude customers by default** checkbox is enabled, which flips that default (see below). By default, a customer's invoices are imported unless `cf_invopop_exclude` is set to `true`, or the **Exclude customers by default** checkbox in the app's configuration form is enabled and `cf_invopop_include` isn't set to `true` for that customer. > [!WARNING] > > Enabling the **Exclude customers by default** checkbox is the recommended way to allowlist a subset of customers with `cf_invopop_include` — the app skips any customer where the field isn't set to `true`, so there's no need to back-populate anything across your existing customers. > > If you use `cf_invopop_include` **without** enabling that checkbox, keep in mind that a new custom field is not immediately attached to preexisting Chargebee entities — it's only attached once you edit and save that customer. In that mode, the importer will always import a customer unless the field is present and set to `false`, so you'd need to [back-populate the field in bulk](https://www.chargebee.com/docs/2.0/bulk-operations.html) to `false` for all your customers to get the expected allowlist behavior. *** ## Writing values back to Chargebee The [Custom Fields & Metadata](#custom-fields-metadata) section above covers data flowing *into* GOBL. The **Update invoice details** step does the reverse: it writes values produced during your workflow back onto the originating Chargebee document. A typical use case is recording the official reference number returned by a tax authority — for example, the Polish KSeF number — into a Chargebee custom field so it stays visible and searchable in Chargebee. The values are stored as **custom fields** (keys starting with `cf_`) on the document: invoices are written through Chargebee's [`update_details`](https://apidocs.chargebee.com/docs/api/invoices?lang=curl#update_invoice_details) endpoint, and credit notes through the [`update`](https://apidocs.chargebee.com/docs/api/credit_notes/update-credit-note-details?lang=curl) endpoint. > [!WARNING] > > Custom fields must be defined on the corresponding entity (Invoices and/or Credit Notes) in your Chargebee site under **Settings** → **Configure Chargebee** → **Custom Fields** before the step runs. Chargebee silently ignores fields that are not defined on the entity: the step will report success, but nothing will be written. ### Configuration Add the **Update invoice details** step to your workflow (its provider is `chargebee.update.details`) and open its configuration. You'll see a table where each row maps one Chargebee field to a value: * **Field** — the Chargebee field name to set, e.g. `cf_ksef_number`. * **Value** — an [expr](https://expr-lang.org/) expression, evaluated against the full GOBL envelope (both `head` and `doc`). Document extensions are available under `doc.ext[...]`, while values added by earlier steps — such as the confirmation numbers returned by a tax authority — are stored as stamps under `head.stamps` and can be looked up with expr's `find()` function. To set a static value, use a literal string such as `"invopop"`. ![Update invoice details step configuration](https://mintcdn.com/invopop/KrwxXrf3ZJrQ3pTH/assets/guides/cb_update_invoice_details.png?fit=max\&auto=format\&n=KrwxXrf3ZJrQ3pTH\&q=85\&s=814f57333517e72686c3b7aea6935aa7) Configuring the Update invoice details step For example, to write the Polish KSeF number into the `cf_ksef_number` custom field, set the value to: ``` find(head.stamps, {.prv == "favat-ksef-number"}).val ``` This finds the stamp whose provider (`.prv`) is `favat-ksef-number` — the KSeF reference number added when the invoice is submitted — and returns its value (`.val`). A few rules to keep in mind: * Each expression must resolve to a single scalar value (text, number, or boolean). Returning an object or a list is not allowed. * If an expression resolves to nothing (a missing or null value), that field is skipped rather than written as an empty value. * The step is idempotent — it replaces the field values each time it runs, so re-running a workflow won't create duplicates. In JSON, the step looks like this: ```json theme={"system"} { "name": "Update invoice details", "provider": "chargebee.update.details", "config": { "fields": [ { "field": "cf_ksef_number", "value": "find(head.stamps, {.prv == \"favat-ksef-number\"}).val" } ] } } ``` ### Where to place the step The value you want to write must already exist in the envelope by the time this step runs. For instance, to write the KSeF number back to Chargebee, place the step *after* the step that submits the invoice and obtains that number, and typically *before* the final **Update Chargebee** step. Once the workflow runs, the resolved value appears on the invoice's custom fields in Chargebee: ![Custom field populated on a Chargebee invoice](https://mintcdn.com/invopop/KrwxXrf3ZJrQ3pTH/assets/guides/cb_updated_custom_field.png?fit=max\&auto=format\&n=KrwxXrf3ZJrQ3pTH\&q=85\&s=076fa4f63c6ef99f57ed2c3a032018a0) The KSeF number written back to the Chargebee invoice *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about your Chargebee integration → # Invoicing in Colombia Source: https://docs.invopop.com/guides/co-dian-invoicing Issue invoices, credit notes, and debit notes in Colombia through the DIAN. ## Introduction The [DIAN](https://www.dian.gov.co/) in Colombia stands for *Dirección de Impuestos y Aduanas Nacionales* (National Directorate of Taxes and Customs). It is the government agency responsible for managing and overseeing tax collection, customs operations, and facilitating international trade. Electronic invoicing in Colombia is mandatory and operates on a real-time clearance model whereby every invoice must receive a unique identifier called a CUFE (*Código Único de Factura Electrónica*) issued by the DIAN; credit and debit notes receive the equivalent CUDE. Invopop has partnered with [Alegra](https://www.alegra.com), an authorized technology provider for DIAN electronic invoicing, to issue documents in Colombia. This guide walks you through setting up the workflow that issues [GOBL](https://docs.gobl.org) documents through the DIAN. For onboarding suppliers, see the companion guide: [Supplier registration in Colombia](/guides/co-dian-registration). | - | Sandbox | Live | | - | - | - | | **Supplier** | Only Alegra's test NIT (`9005590882`) | Registered supplier required | | **Series** | `SETP` with codes `990000000`–`995000000` (shared range) | Series from the supplier's DIAN numbering resolutions | Please refer to the docs of the [GOBL Colombia tax regime](https://docs.gobl.org/regimes/co) and the [DIAN add-on](https://docs.gobl.org/addons/co-dian-v2) to learn about the specifics of Colombian GOBL documents. ## Prerequisites In order to complete this guide, you will need: * **A registered supplier**: follow the [supplier registration guide](/guides/co-dian-registration) to create the supplier's Alegra account and complete the DIAN enablement before issuing. * Customer details for B2B transactions, including name, NIT or international ID, and address, plus the DIAN municipality code for customers identified by a Colombian NIT (see [When is the municipality code required?](#when-is-the-municipality-code-required)). * Line and item details, including quantity, price, description, and taxes to apply. Colombia can be complicated, as a single invoice may need to apply up to three different value added and retained taxes. ## Document types The same workflow handles all three DIAN document types: | Type | DIAN identifier | Requirements | | - | - | - | | `standard` invoice | CUFE | Series and code within an active numbering resolution | | `credit-note` | CUDE | References the corrected invoice in `preceding`; the correction concept comes from the [`co-dian-credit-code`](https://docs.gobl.org/addons/co-dian-v2) extension. When the preceding entry carries no `dian-cude` stamp, the note is cleared as a *nota crédito sin referencia* | | `debit-note` | CUDE | Every `preceding` entry must carry the `dian-cude` stamp of the original invoice; the concept comes from the `co-dian-debit-code` extension | Cleared invoices can't be cancelled or edited; correct them with a credit or debit note. Only invoices need a numbering resolution, so notes can use any series. ## Setup > [!NOTE] > > The supplier must already be registered and enabled with the DIAN. This is covered in the [supplier registration guide](/guides/co-dian-registration). **1. Create the send workflow** > [card] [Colombia send invoice workflow](https://console.invopop.com/redirect/workflows/new?template=co-send-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Colombia send invoice workflow theme={"system"} > { > "name": "Colombia send invoice", > "description": "Issue an invoice through the DIAN and generate a PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "4ede1ca2-7550-4ca9-b007-ebef2bd58dac", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "1e35463c-2fb3-4157-a589-4afbafe5fc5b", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · DIAN · 1", > "config": { > "name": "Colombia", > "padding": 1, > "prefix": "", > "start": 1 > } > }, > { > "id": "ade3b20b-5d0c-4663-8907-b439f6e7baaa", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "20d33e51-2086-4507-a170-946168ba14af", > "name": "Send to DIAN", > "provider": "gov-co.send" > }, > { > "id": "3cbd4b30-4259-46b4-9be1-ec7bad1d7cda", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Spanish · A4", > "config": { > "date_format": "%Y-%m-%d", > "layout": "A4", > "locale": "es", > "logo_height": 40 > } > }, > { > "id": "871259a3-85f0-4066-b7cc-655f383ec66d", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "58582217-f8c2-4b5f-8b1f-576b0680ad84", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!NOTE] > > The **Add sequential code** step uses a dynamic sequence: each document `series` gets its own counter, starting at `1`. Invoice codes must fall within the series' numbering resolution, so if the authorized range starts elsewhere (the sandbox `SETP` range starts at `990000000`), create a [series](/console/series) with a matching start number and select it in the step instead. Setup is complete. You can now use the workflow you created to issue invoices, credit notes, and debit notes in Colombia. ## Send an invoice Upload the invoice as a silo entry and run the workflow on it, either from the [Invopop Console](https://console.invopop.com) or via the API. > [!NOTE] > > The recommended approach for running jobs is to perform two steps: first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), then [create a job](/api-ref/transform/jobs/create-a-job-post). On success, the workflow: * adds the `dian-cude` stamp to the envelope, holding the CUFE (invoices) or CUDE (credit and debit notes), * adds the `dian-qr` stamp with the DIAN QR code content, used by the PDF step to render a compliant invoice, * adds the `dian-resolution` stamp with the numbering resolution (invoices only) and the `email-subject` stamp with the subject the DIAN expects on the email notification, and, * attaches the signed DIAN XML (AttachedDocument) to the entry as a file. While the DIAN hasn't responded, the job stays queued and is checked again every 15 minutes. If the DIAN rejects the document, the job fails with the DIAN's error details. ### Validation notes Before sending, the document is validated against the [DIAN add-on](https://docs.gobl.org/addons/co-dian-v2) rules plus a few DIAN transmission requirements: * The issue date must be the current date in Colombia: the DIAN rejects back-dated documents. * The `code` must contain digits only; letters belong in the `series`. * For invoices, the series must match one of the supplier's numbering resolutions, and the code must be within the authorized range and validity dates. Resolutions are refreshed from the DIAN automatically once the range is [linked to Alegra](/guides/co-dian-registration#numbering-resolutions). * Every tax combo must include a percent; you can set percents explicitly or use one of the supported rates of the [GOBL Colombia tax regime](https://docs.gobl.org/regimes/co). * All line items must have a price greater than zero, and due dates cannot be earlier than the issue date. * Totals rounding (`totals.rounding`) isn't supported. * Amounts in other currencies are converted to COP automatically. Invoices in a currency other than COP must include `exchange_rates` with a rate to COP, or the conversion fails. ### When is the municipality code required? The [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2#municipality-codes) extension in a party's `ext` identifies its municipality. Whether a party needs it depends on how it's identified: | Party | Municipality code | | - | - | | Colombian supplier | Required | | Customer identified by a Colombian NIT (`tax_id.country` is `CO` and `tax_id.code` is set) | Required | | Foreign customer (`tax_id.country` other than `CO`) | Not required | | `simplified` B2C invoice with no customer | Not required | | `simplified` B2C customer identified only by an identity, such as a cédula (`co-dian-citizen-id`), with no `tax_id` | Not required | * The value is the 5-digit DIAN municipality code (DIVIPOLA), such as `11001` for Bogotá or `05001` for Medellín, not the 6-digit postal code. See the [DIAN list of municipality codes](https://www.dian.gov.co/atencionciudadano/formulariosinstructivos/Formularios/2007/Codigos_municipios_2007.pdf). * When a required code is missing, the GOBL build fails with `extension 'co-dian-municipality' is required` on `$.supplier.ext` or `$.customer.ext`, so the invoice never reaches the DIAN. * Invopop can't derive the code from the NIT, so collect it with the rest of your customer data for each Colombian business customer, for example in your customer form. Foreign and consumer customers don't need the field. ### Transmitting invoices issued during a contingency The DIAN defines what to do when invoices can't be issued electronically in [Resolución 000165 de 2023](https://normograma.dian.gov.co/dian/compilacion/docs/resolucion_dian_0165_2023.htm). The required action depends on where the outage is: | Outage | DIAN type | What to do | | - | - | - | | The DIAN's validation service is unavailable | 04 | Nothing: Invopop manages it. Keep sending invoices as usual; jobs stay queued until the DIAN responds. | | The supplier's systems or Invopop can't issue invoices | 03 | Issue invoices on paper and transmit them once back online, as described below. | #### While offline: issue on paper During the outage, invoices are issued by hand or printed from any other system (*facturas de talonario o de papel*). These paper invoices: * Must be numbered from a [contingency range](/guides/co-dian-registration#contingency-range), which the supplier needs to request from the DIAN ahead of time. * Can only be issued while the outage lasts, and are valid support for the sale for both the supplier and the customer. #### Once back online: transmit the invoices Within 48 hours of the outage ending, each paper invoice must be captured and sent to the DIAN through Invopop. > [!WARNING] > > Before sending, the supplier's [contingency resolution](/guides/co-dian-registration#contingency-range) must be [uploaded to Invopop](/api-ref/apps/gov-co/resolutions-upload). Invopop rejects contingency invoices without one, and in production the DIAN rejects those whose number isn't within it. 1. **Create a GOBL invoice replicating the paper invoice**, with the same customer, lines, and taxes, and with these specifics: * The `series` and `code` are the paper invoice's contingency prefix and number. * The `issue_date` is the date the paper invoice was issued. * The [`co-dian-invoice-type`](https://docs.gobl.org/addons/co-dian-v2) extension in `tax.ext` is set to `03`. ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "CO", "$addons": ["co-dian-v2"], "series": "CONT", "code": "1001", "issue_date": "2026-10-22", "tax": { "ext": { "co-dian-invoice-type": "03" } } } ``` This partial example shows only the contingency-specific fields. Complete the document with the supplier, customer, and lines copied from the paper invoice. 2. **Run your regular send workflow** on the document. It's sent to the DIAN as a type 03 invoice and gets the same stamps as a regular invoice, with a CUDE instead of a CUFE. Keep in mind: * Credit and debit notes have no contingency procedure: wait until the systems are back and issue them with your usual note series. They can correct a transmitted contingency invoice like any other invoice. * Outages on the DIAN's side (type 04 contingency) are handled by Invopop and need no changes to your documents. * In sandbox, upload a contingency resolution with any values first, such as prefix `CONT` and range `1`–`5000`. The DIAN test environment doesn't check contingency ranges, but Invopop still checks the invoice's code and date against the uploaded resolution. ## Example invoices The following examples are of [GOBL](https://docs.gobl.org) documents you can copy and paste directly into the [Invopop Console](https://console.invopop.com) or store via the API as silo entries. Then, you must run the Colombia workflow created during setup. [GOBL Invoices](https://docs.gobl.org/draft-0/bill/invoice) sent to the DIAN require the following properties to perform the correct normalization and validation steps: * `$schema` to be set to `https://gobl.org/draft-0/bill/invoice` * `$addons` to include [`co-dian-v2`](https://docs.gobl.org/addons/co-dian-v2), so the document is validated with the DIAN rules * `supplier.tax_id.country` to be set to `CO` * `supplier.ext` to include the DIAN municipality code under the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension. Customers identified by a Colombian NIT need it too; foreign and `simplified` B2C customers don't. See [When is the municipality code required?](#when-is-the-municipality-code-required). > [!NOTE] > > The examples are ready for the sandbox: they use Alegra's NIT `9005590882` and the `SETP` test series. Before sending, set the issue date to today and change the code to another one between `990000000` and `995000000`, since the range is shared. > [accordion] Example B2B invoice > > In this example, we're issuing a B2B invoice from a Colombian supplier to another Colombian business customer. > > Notice: > > * the `$schema` is set to [`https://gobl.org/draft-0/bill/invoice`](https://docs.gobl.org/draft-0/bill/invoice), > * we've added the [`co-dian-v2`](https://docs.gobl.org/addons/co-dian-v2) addon, so the document is validated with the DIAN rules built into [GOBL](https://docs.gobl.org) and gets its defaults, such as the `R-99-PN` fiscal responsibility, > * the supplier uses Alegra's sandbox NIT and the `series` is the `SETP` test series, so the example can be sent in the sandbox, > * both parties carry the DIAN municipality code in the `co-dian-municipality` extension, required here because the customer is identified by a Colombian NIT, > * the invoice includes VAT at the standard Colombian rate of 19%, > * payment terms are specified with a due date and payment amount, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Colombia B2B invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "series": "SETP", > "code": "990001001", > "issue_date": "2026-10-13", > "currency": "COP", > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9005590882" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > }, > "customer": { > "name": "EXAMPLE CUSTOMER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9014514805" > }, > "addresses": [ > { > "street": "CRA 8 113 31 OF 703", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "emails": [ > { > "addr": "benito.ortiz@example.com" > } > ], > "telephones": [ > { > "num": "3114131811" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Servicios de consultoría", > "price": "200000.00" > }, > "taxes": [ > { > "cat": "VAT", > "percent": "19%" > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-11-12", > "percent": "100%" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "type": "standard", > "series": "SETP", > "code": "990001001", > "issue_date": "2026-10-13", > "currency": "COP", > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "code": "9005590882", > "type": "tin" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-fiscal-responsibility": "R-99-PN", > "co-dian-municipality": "11001" > } > }, > "customer": { > "name": "EXAMPLE CUSTOMER S.A.S.", > "tax_id": { > "country": "CO", > "code": "9014514805", > "type": "tin" > }, > "addresses": [ > { > "street": "CRA 8 113 31 OF 703", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "emails": [ > { > "addr": "benito.ortiz@example.com" > } > ], > "telephones": [ > { > "num": "3114131811" > } > ], > "ext": { > "co-dian-fiscal-responsibility": "R-99-PN", > "co-dian-municipality": "11001", > "co-dian-tax-scheme": "ZZ" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Servicios de consultoría", > "price": "200000.00" > }, > "sum": "200000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "19%" > } > ], > "total": "200000.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-11-12", > "amount": "238000.00", > "percent": "100%" > } > ] > } > }, > "totals": { > "sum": "200000.00", > "total": "200000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200000.00", > "percent": "19%", > "amount": "38000.00" > } > ], > "amount": "38000.00" > } > ], > "sum": "38000.00" > }, > "tax": "38000.00", > "total_with_tax": "238000.00", > "payable": "238000.00" > } > } > ``` > [accordion] Example B2C invoice > > In this example, we're issuing a B2C simplified invoice from a Colombian supplier to a consumer. > > Notice: > > * we've set the `simplified` tag in the `tax.tags` field; this indicates the invoice is for a final consumer, > * the customer information is omitted, as it's not required for B2C transactions; the DIAN receives it as *Consumidor final*, and no customer municipality code is needed, > * the invoice includes a prepayment advance of 100%, meaning the invoice has been fully paid, > * the totals section shows the `advance` and `due` amounts, with the latter being zero since the invoice is fully paid, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Colombia B2C invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "series": "SETP", > "code": "990001002", > "issue_date": "2026-10-13", > "currency": "COP", > "tax": { > "tags": [ > "simplified" > ] > }, > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9005590882" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Servicios de consultoría", > "price": "200000.00" > }, > "taxes": [ > { > "cat": "VAT", > "percent": "19%" > } > ] > } > ], > "payment": { > "advances": [ > { > "description": "Prepaid", > "percent": "100%" > } > ] > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SETP", > "code": "990001002", > "issue_date": "2026-10-13", > "currency": "COP", > "tax": {}, > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "code": "9005590882", > "type": "tin" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-fiscal-responsibility": "R-99-PN", > "co-dian-municipality": "11001" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Servicios de consultoría", > "price": "200000.00" > }, > "sum": "200000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "19%" > } > ], > "total": "200000.00" > } > ], > "payment": { > "advances": [ > { > "description": "Prepaid", > "percent": "100%", > "amount": "238000.00" > } > ] > }, > "totals": { > "sum": "200000.00", > "total": "200000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200000.00", > "percent": "19%", > "amount": "38000.00" > } > ], > "amount": "38000.00" > } > ], > "sum": "38000.00" > }, > "tax": "38000.00", > "total_with_tax": "238000.00", > "payable": "238000.00", > "advance": "238000.00", > "due": "0.00" > } > } > ``` > [accordion] Example credit note > > In this example, we're issuing a credit note (nota de crédito) that corrects a previously issued invoice. > > Notice: > > * the `type` is set to `credit-note`, > * the `series` is set to a dedicated credit note series, separate from the invoice series, > * the `preceding` array references the original invoice being corrected by its `series`, `code`, and `issue_date`, along with a `reason` for the correction, > * the correction concept is set with the [`co-dian-credit-code`](https://docs.gobl.org/addons/co-dian-v2) extension on the preceding entry, > * the lines describe the amounts being credited — a credit note can cover the full original invoice or just part of it, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Colombia credit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "type": "credit-note", > "series": "NCTP", > "code": "1", > "issue_date": "2026-10-13", > "currency": "COP", > "preceding": [ > { > "type": "standard", > "series": "SETP", > "code": "990001001", > "issue_date": "2026-10-13", > "reason": "Servicios no prestados", > "ext": { > "co-dian-credit-code": "1" > } > } > ], > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9005590882" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > }, > "customer": { > "name": "EXAMPLE CUSTOMER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9014514805" > }, > "addresses": [ > { > "street": "CRA 8 113 31 OF 703", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "emails": [ > { > "addr": "benito.ortiz@example.com" > } > ], > "telephones": [ > { > "num": "3114131811" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Servicios de consultoría", > "price": "200000.00" > }, > "taxes": [ > { > "cat": "VAT", > "percent": "19%" > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-11-12", > "percent": "100%" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "type": "credit-note", > "series": "NCTP", > "code": "1", > "issue_date": "2026-10-13", > "currency": "COP", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-10-13", > "series": "SETP", > "code": "990001001", > "reason": "Servicios no prestados", > "ext": { > "co-dian-credit-code": "1" > } > } > ], > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "code": "9005590882", > "type": "tin" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-fiscal-responsibility": "R-99-PN", > "co-dian-municipality": "11001" > } > }, > "customer": { > "name": "EXAMPLE CUSTOMER S.A.S.", > "tax_id": { > "country": "CO", > "code": "9014514805", > "type": "tin" > }, > "addresses": [ > { > "street": "CRA 8 113 31 OF 703", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "emails": [ > { > "addr": "benito.ortiz@example.com" > } > ], > "telephones": [ > { > "num": "3114131811" > } > ], > "ext": { > "co-dian-fiscal-responsibility": "R-99-PN", > "co-dian-municipality": "11001", > "co-dian-tax-scheme": "ZZ" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Servicios de consultoría", > "price": "200000.00" > }, > "sum": "200000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "19%" > } > ], > "total": "200000.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-11-12", > "amount": "238000.00", > "percent": "100%" > } > ] > } > }, > "totals": { > "sum": "200000.00", > "total": "200000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200000.00", > "percent": "19%", > "amount": "38000.00" > } > ], > "amount": "38000.00" > } > ], > "sum": "38000.00" > }, > "tax": "38000.00", > "total_with_tax": "238000.00", > "payable": "238000.00" > } > } > ``` > [accordion] Example debit note > > In this example, we're issuing a debit note (nota de débito) that increases the amount of a previously cleared invoice. > > Notice: > > * the `type` is set to `debit-note`, > * the `series` is set to a dedicated debit note series, separate from the invoice series; notes don't need a numbering resolution, > * the `preceding` array references the original invoice by its `series`, `code`, and `issue_date`, along with a `reason` for the adjustment, > * the preceding entry carries the `dian-cude` stamp of the original invoice, taken from its cleared envelope; the DIAN requires it for every debit note, > * the adjustment concept is set with the [`co-dian-debit-code`](https://docs.gobl.org/addons/co-dian-v2) extension on the preceding entry, > * the lines describe only the additional amount being charged, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Colombia debit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "type": "debit-note", > "series": "NDTP", > "code": "1", > "issue_date": "2026-10-13", > "currency": "COP", > "preceding": [ > { > "type": "standard", > "series": "SETP", > "code": "990001001", > "issue_date": "2026-10-13", > "reason": "Ajuste del valor de los servicios", > "stamps": [ > { > "prv": "dian-cude", > "val": "3f8c1c9b6e0a4f2d8b7a5c3e1d9f0a2b4c6e8d0f1a3b5c7d9e1f2a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8" > } > ], > "ext": { > "co-dian-debit-code": "3" > } > } > ], > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9005590882" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > }, > "customer": { > "name": "EXAMPLE CUSTOMER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9014514805" > }, > "addresses": [ > { > "street": "CRA 8 113 31 OF 703", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "emails": [ > { > "addr": "benito.ortiz@example.com" > } > ], > "telephones": [ > { > "num": "3114131811" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Ajuste de precio de los servicios de consultoría", > "price": "50000.00" > }, > "taxes": [ > { > "cat": "VAT", > "percent": "19%" > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-11-12", > "percent": "100%" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "CO", > "$addons": [ > "co-dian-v2" > ], > "type": "debit-note", > "series": "NDTP", > "code": "1", > "issue_date": "2026-10-13", > "currency": "COP", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-10-13", > "series": "SETP", > "code": "990001001", > "reason": "Ajuste del valor de los servicios", > "stamps": [ > { > "prv": "dian-cude", > "val": "3f8c1c9b6e0a4f2d8b7a5c3e1d9f0a2b4c6e8d0f1a3b5c7d9e1f2a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8" > } > ], > "ext": { > "co-dian-debit-code": "3" > } > } > ], > "supplier": { > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "code": "9005590882", > "type": "tin" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "ext": { > "co-dian-fiscal-responsibility": "R-99-PN", > "co-dian-municipality": "11001" > } > }, > "customer": { > "name": "EXAMPLE CUSTOMER S.A.S.", > "tax_id": { > "country": "CO", > "code": "9014514805", > "type": "tin" > }, > "addresses": [ > { > "street": "CRA 8 113 31 OF 703", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "emails": [ > { > "addr": "benito.ortiz@example.com" > } > ], > "telephones": [ > { > "num": "3114131811" > } > ], > "ext": { > "co-dian-fiscal-responsibility": "R-99-PN", > "co-dian-municipality": "11001", > "co-dian-tax-scheme": "ZZ" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Ajuste de precio de los servicios de consultoría", > "price": "50000.00" > }, > "sum": "50000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "19%" > } > ], > "total": "50000.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-11-12", > "amount": "59500.00", > "percent": "100%" > } > ] > } > }, > "totals": { > "sum": "50000.00", > "total": "50000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "50000.00", > "percent": "19%", > "amount": "9500.00" > } > ], > "amount": "9500.00" > } > ], > "sum": "9500.00" > }, > "tax": "9500.00", > "total_with_tax": "59500.00", > "payable": "59500.00" > } > } > ``` ## FAQ > [accordion] My GOBL document for a Colombian invoice fails to build because of the postal code > > The DIAN expects a 5-digit [municipal code](https://www.dian.gov.co/atencionciudadano/formulariosinstructivos/Formularios/2007/Codigos_municipios_2007.pdf), not a 6-digit postal code, in the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension of the supplier and of customers identified by a Colombian NIT. For example, use `11001` for Bogotá. > [accordion] How does Invopop issue invoices in Colombia? > > Through [Alegra](https://www.alegra.com), an authorized DIAN technology provider. The [send workflow](/guides/co-dian-invoicing) signs the GOBL envelope, clears it with the DIAN, stamps the CUFE and QR code, and generates a compliant PDF. > [accordion] What does a GOBL invoice need to be accepted by the DIAN? > > Set `$schema` to `https://gobl.org/draft-0/bill/invoice`, the supplier's `tax_id.country` to `CO`, and include the supplier's DIAN municipality code via the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension in its `ext`. Customers identified by a Colombian NIT need the extension too; foreign customers and `simplified` B2C invoices don't (see [When is the municipality code required?](/guides/co-dian-invoicing#when-is-the-municipality-code-required)). See the [GOBL Colombia tax regime](https://github.com/invopop/gobl/blob/main/regimes/co/README.md) for the full field reference and examples. > [accordion] Do foreign or consumer customers need a municipality code? > > No. The [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension is only required on customers identified by a Colombian NIT, that is, with `tax_id.country` set to `CO` and a `tax_id.code`. Foreign customers, `simplified` B2C invoices without a customer, and consumers identified only by a cédula build without it. Invopop can't derive the code from the NIT, so collect it for each Colombian business customer. > [accordion] Which taxes can appear on a Colombian invoice? > > VAT (IVA, 19% standard or 5% reduced), consumption taxes (IC, INC), the industry and commerce tax (ICA), and the retained taxes ReteIVA, ReteICA, and Retefuente. A single invoice may need to combine up to three value added and retained taxes, all supported by the [GOBL Colombia tax regime](https://docs.gobl.org/regimes/co#tax-categories). > [accordion] Which document types can I issue in Colombia? > > Invoices, credit notes, and debit notes. Credit and debit notes reference the corrected invoice in the `preceding` array; debit notes require every preceding entry to carry the `dian-cude` stamp of the original invoice. > [accordion] What are the sandbox limitations for Colombia? > > Only Alegra's NIT (`9005590882`) can be the supplier. Invoices use series `SETP` with codes `990000000`–`995000000` (shared across users, so avoid common codes) and today's date in Colombia. > [accordion] Why was my invoice rejected for its series or number? > > The series, code, and issue date must fall within an active DIAN numbering resolution. Resolutions are refreshed automatically, so a rejection usually means the range isn't linked to Alegra yet, or it expired or ran out and the supplier needs a new one. See [Numbering resolutions](/guides/co-dian-registration#numbering-resolutions). More available in our [Colombia FAQ](/faq/colombia) section *** > [accordion] 🇨🇴 Invopop resources for Colombia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Colombia](/compliance/colombia) [Compliance timeline](/timelines/colombia) | > | Apps | [Colombia](/apps/colombia) | > | Guides | [Supplier registration](/guides/co-dian-registration) [Issuing invoices](/guides/co-dian-invoicing) | > | FAQ | [Colombia FAQ](/faq/colombia) | > | GOBL | [Colombia Tax Regime](https://docs.gobl.org/regimes/co) [Colombia DIAN Addon](https://docs.gobl.org/addons/co-dian-v2) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Colombia → # Supplier registration in Colombia Source: https://docs.invopop.com/guides/co-dian-registration Register suppliers with the DIAN through Alegra to issue invoices in Colombia. ## Introduction The [DIAN](https://www.dian.gov.co/) is the Colombian government agency responsible for managing and overseeing tax collection, customs operations, and facilitating international trade. Before issuing electronic invoices, a business must be registered with the DIAN with an active RUT (*Registro Único Tributario*), pass the DIAN enablement (*habilitación*) with its chosen technology provider, and hold an authorized numbering range for its invoices. Invopop has partnered with [Alegra](https://www.alegra.com), a DIAN-authorized technology provider, to onboard suppliers and issue documents on their behalf. Registering a supplier involves three steps: 1. **Invopop:** a workflow creates the supplier's Alegra account and publishes a portal link. 2. **DIAN:** the supplier selects Alegra as their technology provider and submits the enablement test set through that portal. 3. **Numbering (live only):** the supplier links their authorized numbering range to Alegra in the DIAN portal. Once a supplier is registered, continue with the companion guide: [Invoicing in Colombia](/guides/co-dian-invoicing). > [!WARNING] > > The previous Plemsi integration is deprecated and no longer maintained. If your suppliers still issue through Plemsi, follow [Migrate from Plemsi](#migrate-from-plemsi) to move them to this integration. | - | Sandbox | Live | | - | - | - | | **Supplier** | Only Alegra's test NIT (`9005590882`) | Any Colombian supplier with an active RUT | | **Enablement** | Simulated with fixed TestSetIds | DIAN enablement, once per supplier | | **Resolution** | Fixed test resolution (`SETP`), seeded automatically | The supplier's numbering ranges linked to Alegra | ## Prerequisites To register a supplier in Colombia, you will need: * **Supplier details** to build the [GOBL](https://docs.gobl.org) party: legal name, NIT with the verification digit, and email. The address and the [`co-dian-municipality`](https://docs.gobl.org/addons/co-dian-v2) extension are optional here but required on the supplier's invoices (see [When is the municipality code required?](/guides/co-dian-invoicing#when-is-the-municipality-code-required)). * **The supplier's legal representative**, with access to the email on their own RUT (the DIAN's [Habilitación portal](https://catalogo-vpfe-hab.dian.gov.co/User/Login) sends its login links there) and, for numbering, a MUISCA account with a DIAN electronic signature. * For live issuing, a **numbering range authorization** (*resolución de numeración*) from the DIAN for each invoice series. See [Numbering resolutions](#numbering-resolutions). > [accordion] Colombia supplier > > The name, NIT with the verification digit, and an email address are required for registration. The example also includes the address and the `co-dian-municipality` extension identifying where the supplier is registered, and uses Alegra's sandbox NIT so it can be registered in the sandbox. > > ```json Colombia supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "EXAMPLE SUPPLIER S.A.S.", > "tax_id": { > "country": "CO", > "type": "tin", > "code": "9005590882" > }, > "addresses": [ > { > "street": "CRA 15 88 64 OF 502", > "locality": "Bogotá, D.C.", > "region": "Bogotá", > "country": "CO" > } > ], > "emails": [ > { > "addr": "facturacion@examplesupplier.co" > } > ], > "ext": { > "co-dian-municipality": "11001" > } > } > ``` > > > [!NOTE] > > > > If the supplier has special tax obligations, set them with the [`co-dian-fiscal-responsibility`](https://docs.gobl.org/addons/co-dian-v2) extension: `O-13` *Gran contribuyente*, `O-15` *Autorretenedor*, `O-23` *Agente de retención IVA*, or `O-47` *Régimen simple de tributación*. It defaults to `R-99-PN` when none apply. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Connect the Colombia app** 1. Navigate to **Configuration** → **Apps** 2. Find **Colombia** in the app discovery list 3. Click **Connect** to activate **2. Create the registration workflow** > [card] [Colombia register supplier workflow](https://console.invopop.com/redirect/workflows/new?template=co-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Colombia register supplier workflow theme={"system"} > { > "name": "Colombia register supplier", > "description": "Register a supplier with the DIAN through Alegra", > "schema": "org/party", > "steps": [ > { > "id": "9cb7f64d-95df-414d-9945-b204a1993d4b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "19ad51e4-7277-4ce7-909d-30bd6aeca68d", > "name": "Register supplier", > "provider": "gov-co.register" > }, > { > "id": "8b9fd00a-fa37-466f-9c89-c44a4a680d39", > "name": "Wait for DIAN enablement", > "provider": "gov-co.wait.enablement" > }, > { > "id": "0f69cd97-bbc3-46e6-bd53-7ccd44945107", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "65de083c-5053-4f87-b269-fc2028cd74f8", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### How it works **1. Set state → Processing** Sets the state of the silo entry to Processing. **2. Register supplier** Validates the party's name, NIT, and email, creates the supplier's company in Alegra, and publishes a public enablement portal link under the `registration-link` key in the entry's meta section. **3. Wait for DIAN enablement** Pauses until the DIAN accepts the enablement test set the supplier submits from the portal. The step resumes automatically as soon as the DIAN responds. If the DIAN rejects the test set, the step fails and the workflow continues in its [error handling flow](/guides/workflows#error-handling); see [Failed enablement](#failed-enablement). **4. Set state → Registered** Sets the state of the silo entry to Registered. > [!TIP] > > To be notified of the outcome instead of polling, add a [Send Webhook](/guides/webhooks) step after **Wait for DIAN enablement** for the accepted case, and another in the error handling flow for failures. The failure payload carries the job's `faults`, including the DIAN's rejection reason. ## Register a supplier Each supplier NIT can be registered once per workspace and environment. For each supplier: **1. Upload the supplier party** Create a silo entry with the supplier's details as a GOBL [`org.Party`](https://docs.gobl.org/draft-0/org/party) document, either from the Console or via the [API](/api-ref/silo/entries/create-an-entry-put): ```json Colombia supplier example theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "EXAMPLE SUPPLIER S.A.S.", "tax_id": { "country": "CO", "type": "tin", "code": "9005590882" }, "addresses": [ { "street": "CRA 15 88 64 OF 502", "locality": "Bogotá, D.C.", "region": "Bogotá", "country": "CO" } ], "emails": [ { "addr": "facturacion@examplesupplier.co" } ], "ext": { "co-dian-municipality": "11001" } } ``` **2. Run the registration workflow** Run the workflow created during setup on the supplier entry, from the Console or by [creating a job](/api-ref/transform/jobs/create-a-job-post). The job creates the Alegra company and pauses at the **Wait for DIAN enablement** step. **3. Share the portal link** Open the supplier entry in the Console and copy the **registration-link** from its meta section. Share it with the supplier's legal representative: it is public and needs no Invopop account. Via the API, [fetch the silo entry](/api-ref/silo/entries/fetch-an-entry) and read the `link_url` of the `meta` row with the key `registration-link`: ```json theme={"system"} { "meta": [ { "key": "registration-link", "link_scope": "public", "link_url": "https://gov-co.invopop.app/portal/{silo_entry_id}" } ] } ``` To skip the portal entirely, submit the TestSetId yourself as described in [Complete the enablement via the API](#complete-the-enablement-via-the-api). **4. Register as electronic invoicer at the DIAN** The legal representative opens the DIAN's [Habilitación portal](https://catalogo-vpfe-hab.dian.gov.co/User/Login) (also linked from [dian.gov.co](https://www.dian.gov.co/) under **Factura Electrónica**) and logs in as **Empresa** (or **Persona** for individuals). The DIAN emails an access link, valid for 60 minutes, to the address on the RUT of the person logging in, the legal representative for companies. ![DIAN Habilitación login with the Empresa and Persona options highlighted](https://mintcdn.com/invopop/hcMX6FsBZf1C7i6I/assets/guides/co-dian-login.png?fit=max\&auto=format\&n=hcMX6FsBZf1C7i6I\&q=85\&s=f59e6b4d9b06128319ce33bc461a4e42) Habilitación login (DIAN) The first time they open **Registro y habilitación** → **Documentos electrónicos**, the **Registrar facturador** screen appears: they enter the **Correo electrónico para recepción de facturas** and click **Registrar**. They then log out and log back in with a new access link before continuing. ![DIAN Registrar facturador screen with the Registrar button highlighted](https://mintcdn.com/invopop/wD06ntA3c4Wnkd4x/assets/guides/co-dian-register-invoicer.png?fit=max\&auto=format\&n=wD06ntA3c4Wnkd4x\&q=85\&s=4c5f6cedab3382e63530d996aac74b7a) Registrar facturador (DIAN) **5. Select Alegra as technology provider at the DIAN** Back in the **Habilitación** portal, the legal representative: 1. Goes to **Registro y habilitación** → **Documentos electrónicos** → **Factura electrónica** and clicks **Configurar modos de operación**. ![DIAN Facturador electrónico page with the Configurar modos de operación button highlighted](https://mintcdn.com/invopop/hcMX6FsBZf1C7i6I/assets/guides/co-dian-configure-operation-modes.png?fit=max\&auto=format\&n=hcMX6FsBZf1C7i6I\&q=85\&s=3f6c36e906805963f2963f5867783529) Facturador electrónico (DIAN) 2. Under **Seleccione el modo de operación**, picks **Software de un proveedor tecnológico**. 3. Under **Datos de empresa y software**, sets **Nombre empresa proveedora** to **Soluciones Alegra S.A.S** and **Nombre del software** to Alegra's software from the list, then clicks **Asociar**. ![DIAN Configurar modos de operación form with the operation mode, provider and software fields and the Asociar button](https://mintcdn.com/invopop/wD06ntA3c4Wnkd4x/assets/guides/co-dian-operation-mode.png?fit=max\&auto=format\&n=wD06ntA3c4Wnkd4x\&q=85\&s=7e389067eaaa46576a3d89d3144e8c69) Configurar modos de operación, filled in for Alegra (DIAN) 4. Under **Listado de modos de operación asociados**, clicks the eye icon in **Acciones**. If asked for a **Tipo de documento**, they choose **Factura electrónica** and click **Set de pruebas**. They copy the **TestSetId** shown in the **¡Importante!** banner. ![DIAN list of associated operation modes with the Acciones icons](https://mintcdn.com/invopop/wD06ntA3c4Wnkd4x/assets/guides/co-dian-operation-modes-list.png?fit=max\&auto=format\&n=wD06ntA3c4Wnkd4x\&q=85\&s=7ff7912ee1deeaf1466c7f771e4f379a) Listado de modos de operación asociados, with Alegra (DIAN) ![DIAN Set de pruebas page with the TestSetId highlighted in the Importante banner](https://mintcdn.com/invopop/wD06ntA3c4Wnkd4x/assets/guides/co-dian-test-set-id.png?fit=max\&auto=format\&n=wD06ntA3c4Wnkd4x\&q=85\&s=18f705417b413d3b688bf9f3be3ac22f) Set de pruebas with the TestSetId, for Alegra (DIAN) The DIAN explains these screens in sections 1 and 2 of [Registration and operation mode selection](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Registro-y-Seleccion-del-Modo-de-Operacion-Factura-Electronica.pdf). **6. Submit the test set** The legal representative pastes the TestSetId into the Invopop portal and clicks **Enviar set de pruebas**. Alegra sends the required test documents to the DIAN automatically, signed with its own digital certificate, so the supplier doesn't need one. ![Enablement portal with the DIAN TestSetId field and the Enviar set de pruebas button](https://mintcdn.com/invopop/altprvHBIue7hAVA/assets/guides/co-dian-enablement-portal.png?fit=max\&auto=format\&n=altprvHBIue7hAVA\&q=85\&s=c4ee5ff3aad884edb5861168d1d80902) Enablement portal To submit the TestSetId without the hosted portal, use the [Submit test set](/api-ref/apps/gov-co/enablement-submit) endpoint. **7. Wait for the DIAN response** The portal refreshes while the DIAN processes the test set. Once accepted, the workflow resumes and the entry moves to the registered state. The DIAN then asks the supplier for their production start date, when their RUT is updated with responsibility 52 (*Facturador electrónico*). If the DIAN rejects the test set, the workflow fails and the DIAN's reason is recorded in the job's faults; see [Failed enablement](#failed-enablement) for where to read it and how to start again. > [!NOTE] > > Re-running the registration workflow on the same entry is safe: it restarts a failed enablement, keeps a test set that is still waiting for the DIAN, and does nothing once the supplier is enabled. ## Numbering resolutions In live, every invoice series needs a DIAN numbering range authorization linked to Alegra. This isn't needed in the sandbox, which uses the fixed `SETP` test resolution. Each authorization is valid for 2 years. **1. Request the numbering range** In the DIAN's [MUISCA system](https://muisca.dian.gov.co/WebArquitectura/DefLogin.faces) (**Usuario Registrado** on dian.gov.co), under **Numeración de Facturación** → **Solicitar numeración de facturación**, the legal representative: ![DIAN MUISCA menu with Numeración de Facturación and Solicitar Numeración de Facturación](https://mintcdn.com/invopop/hcMX6FsBZf1C7i6I/assets/guides/co-dian-muisca-menu.png?fit=max\&auto=format\&n=hcMX6FsBZf1C7i6I\&q=85\&s=1275a324811975a181e12e70a3694152) MUISCA menu (DIAN) 1. Checks that the RUT is up to date (name, address, invoicing responsibility, and establishments). 2. Clicks **Autorizar Rangos** and fills in **Prefijo** (up to four letters or digits, which becomes the invoice `series`), **Tipo Facturación** set to **FACTURA ELECTRÓNICA DE VENTA**, and **Rango Desde** / **Rango Hasta**, then clicks **Agregar**. 3. Signs the request with their DIAN electronic signature (*firma electrónica*), first as form 1302 and then as form 1876, which the DIAN issues with the authorized ranges and validity. ![DIAN MUISCA Solicitud de Autorización de Rangos form with Prefijo, Tipo Facturación, Rango Desde and Rango Hasta fields](https://mintcdn.com/invopop/hcMX6FsBZf1C7i6I/assets/guides/co-dian-numbering-request.png?fit=max\&auto=format\&n=hcMX6FsBZf1C7i6I\&q=85\&s=6f2dc4ddaaf5ff0a61209d696f278198) Solicitud de autorización de rangos (DIAN) See [Request for invoice numbering authorization](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-AutorizacionF.pdf). **2. Link the range to Alegra** Once the DIAN has accepted the test set, and about two hours after the range request, log in to the production environment through [Facturando Electrónicamente](https://catalogo-vpfe.dian.gov.co/User/Login). Go to **Configuración** → **Rangos de numeración**, pick **Soluciones Alegra S.A.S** under **Proveedor - Software** and the range under **Prefijo**, and click **Agregar**. ![DIAN Gestionar Asociación de Prefijos page with the Proveedor - Software and Prefijo fields and the Agregar button](https://mintcdn.com/invopop/hcMX6FsBZf1C7i6I/assets/guides/co-dian-numbering-prefix.png?fit=max\&auto=format\&n=hcMX6FsBZf1C7i6I\&q=85\&s=5ac3840d81a12a35ea5381130a7164b0) Gestionar asociación de prefijos, with Alegra selected (DIAN) If production shows **Empresa no se encuentra habilitada**, or Alegra's operation mode doesn't appear there, click **Sincronizar Contribuyente a producción** on the **Facturador electrónico** page of the Habilitación portal: ![DIAN Facturador electrónico page with the Sincronizar Contribuyente a producción button highlighted](https://mintcdn.com/invopop/wD06ntA3c4Wnkd4x/assets/guides/co-dian-sync-production.png?fit=max\&auto=format\&n=wD06ntA3c4Wnkd4x\&q=85\&s=eed7c2af40eebba99efbb6c98dbd2973) Sincronizar contribuyente a producción (DIAN) The DIAN explains this in sections 3 and 4 of [Registration and operation mode selection](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Registro-y-Seleccion-del-Modo-de-Operacion-Factura-Electronica.pdf). ### Renew a range A range with numbers left can be extended once it's within 15 business days of its expiry date; the new validity is set by the DIAN on the resulting form 1876. Once a range is used up or expired, request a new one as described above instead. **1. Open the range** In MUISCA, under **Numeración de Facturación** → **Solicitar numeración de facturación**, the legal representative clicks **Habilitar Rangos**. ![DIAN MUISCA Consultar Numeración de Facturación screen with the Habilitar Rangos button highlighted](https://mintcdn.com/invopop/hcMX6FsBZf1C7i6I/assets/guides/co-dian-numbering-renew.png?fit=max\&auto=format\&n=hcMX6FsBZf1C7i6I\&q=85\&s=ff3e41d2743f4cc1db0fdd594614bac9) Consultar numeración de facturación (DIAN) **2. Request the extension** They enter the same **Prefijo** and **Tipo Facturación**, click **Consultar**, review the range shown (editing **Rango Desde** if prompted), and click **Borrador**. **3. Sign it** They sign form 1302 and then form 1876, which carries the new validity. See [Request for invoice numbering extension](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-Habilitacion-F.pdf). Invopop picks up new and renewed resolutions automatically on the next send. Check them anytime with [List resolutions](/api-ref/apps/gov-co/resolutions-list). ### Contingency range To keep invoicing on paper when electronic invoicing isn't possible (see [Transmitting invoices issued during a contingency](/guides/co-dian-invoicing#transmitting-invoices-issued-during-a-contingency)), the supplier needs a separate range for paper invoices. Request it ahead of time following the same steps as above, with **Tipo Facturación** set to the paper invoice option (*factura de talonario o de papel*), then link it the same way. The DIAN doesn't assign a technical key to these ranges. > [!WARNING] > > Contingency resolutions can't be fetched from the DIAN, so once form 1876 is issued, upload the resolution to Invopop using [Upload contingency resolution](/api-ref/apps/gov-co/resolutions-upload). Without it, contingency invoices can't be sent. See the DIAN's [contingency numbering and transcription guide](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Paso-a-paso-solicitud-de-numeracion-y-transcripcion-de-la-factura-de-contingencia.pdf). ## Complete the enablement via the API For platforms that want to drive the enablement programmatically instead of sharing the hosted portal, use the enablement API (both endpoints under `/apps/gov-co/v1/entries/{silo_entry_id}/enablement`). The entry must belong to the authenticated workspace and have been registered first. **1. Submit the test set** [Submit test set](/api-ref/apps/gov-co/enablement-submit) with the TestSetId from the DIAN enablement portal. It responds `400` when a test set is already awaiting the DIAN outcome, the supplier is already enabled, or a previous enablement failed. Run the registration workflow again to restart a failed enablement. **2. Track the outcome** [Fetch the enablement status](/api-ref/apps/gov-co/enablement-get): `status` moves from `pending` to `accepted` or `failed` once the DIAN responds. The workflow's **Wait for DIAN enablement** step picks up the outcome exactly as it does for portal submissions. The endpoint returns the status only. When it's `failed`, read the reason in the registration job's faults, as described in [Failed enablement](#failed-enablement). ## Failed enablement When the DIAN rejects the test set, or the submission fails, the **Wait for DIAN enablement** step fails, the enablement status becomes `failed`, and the registration job continues in the workflow's [error handling flow](/guides/workflows#error-handling). The DIAN's reason isn't returned by the enablement endpoint; it's recorded in the [faults](/api-ref/transform/jobs/fetch-a-job#response-faults) of the registration job, under the `gov-co.wait.enablement` provider. Read it from any of: * **The Console:** open the supplier entry and check its [job history](/console/workflow-history). * **The API:** [fetch the job](/api-ref/transform/jobs/fetch-a-job) and read its `faults` array. Prefer the job's faults over the `faults` field on the silo entry. * **A webhook:** with a [Send Webhook](/guides/webhooks) step in the error handling flow, the payload includes the same `faults`. The fault message carries the reasons given by the DIAN or the technology provider, when they return any. Reasons that quote a DIAN validation rule (such as `Regla: FAJ40`) are explained in section 8 of the DIAN's [technical annex](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Anexo-Tecnico-Factura-Electronica-de-Venta-vr-1-9.pdf), and section 7.12 lists the test set status codes. To start again: 1. Fix the cause, for example by correcting the supplier details in the entry or getting a new TestSetId from the DIAN portal. 2. Re-run the registration workflow on the same entry. Until you do, [Submit test set](/api-ref/apps/gov-co/enablement-submit) responds `400`. 3. Submit the test set again, from the portal or via the API. ## Sandbox The same registration flow runs in sandbox workspaces against the DIAN test environment, with a few differences: * Only Alegra's own NIT (`9005590882`) can be registered, since the DIAN test registry accepts documents from that emitter alone. A NIT can be registered once per workspace, so each workspace has a single sandbox supplier. * The fixed DIAN test resolution (series `SETP`, codes `990000000`–`995000000`) is seeded automatically on registration. The range is shared with other users testing in the sandbox, so pick codes unlikely to collide. * The enablement is simulated: instead of a real DIAN TestSetId, enter one of the following values in the portal to choose the outcome. | TestSetId | Simulated result | | - | - | | `a70562e0-631e-4ceb-aa65-36887b57dc17` | Accepted (completes the registration) | | `r70562e0-631e-4ceb-aa65-36887b57dc17` | Rejected | | `p70562e0-631e-4ceb-aa65-36887b57dc17` | Processing (stays pending) | | `f70562e0-631e-4ceb-aa65-36887b57dc17` | Failed | Use the accepted value to complete a supplier registration end to end; the other values let you test how your integration handles rejected, pending, and failed outcomes. Submit the rejected or failed value to exercise your [failed enablement](#failed-enablement) handling end to end, from reading the job's faults to re-running the workflow. ## Migrate from Plemsi Moving a supplier from the old Plemsi integration takes the same steps as a new registration. At the DIAN, the supplier simply adds Alegra as another technology provider. **1. Set up the Colombia app** Connect the app and create the registration workflow as described in [Setup](#setup), and the send workflow from the [invoicing guide](/guides/co-dian-invoicing#setup). **2. Register the supplier** Follow [Register a supplier](#register-a-supplier): run the registration workflow, add Alegra as technology provider at the DIAN, and submit the test set. The Plemsi enablement doesn't carry over, so this is needed even for suppliers already issuing. **3. Set up the numbering ranges** Under **Configuración** → **Rangos de numeración** (see [Numbering resolutions](#numbering-resolutions)), choose one of: * **Move the existing range:** unlink it from Plemsi (the ✕ icon next to it in the list) and link it to Alegra. The series stays the same, and new invoices must continue after the last number issued through Plemsi. * **Add a new range:** request a new range with a new prefix and link it to Alegra. Invoices sent through Alegra start a fresh series, while the old range stays with Plemsi until it's no longer needed. **4. Switch to the new send workflow** Send new invoices with the Colombia send workflow, using the series from the previous step. Once they clear, stop using the Plemsi workflow. At this point, you're ready to start sending invoices on behalf of the supplier. Head over to the [Invoicing in Colombia guide](/guides/co-dian-invoicing) to continue. ## FAQ > [accordion] What does a supplier need before issuing invoices in Colombia? > > The supplier must be registered with the DIAN with an active RUT (Registro Único Tributario), complete the DIAN habilitación, and hold a valid billing numbering range authorization. The [supplier registration guide](/guides/co-dian-registration) walks through each step. > [accordion] How do I register a supplier in Colombia? > > Upload a GOBL party with the supplier's name, NIT (with verification digit), and email, then run the registration workflow. It publishes an enablement portal link under `registration-link` in the entry's meta; the supplier's legal representative completes the DIAN enablement there, and the workflow finishes once the DIAN accepts it. See the [supplier registration guide](/guides/co-dian-registration). > [accordion] What is the DIAN habilitación? > > A one-time DIAN certification required before issuing real invoices. The supplier submits a TestSetId from the DIAN portal through the hosted portal, Alegra sends the test documents, and the supplier is enabled once the DIAN accepts them. > [accordion] The enablement failed: how do I know why? > > The [enablement status](/api-ref/apps/gov-co/enablement-get) only says `failed`. The DIAN's reason is in the faults of the registration job: check the entry's job history in the Console, [fetch the job](/api-ref/transform/jobs/fetch-a-job) via the API, or receive it in a [Send Webhook](/guides/webhooks) step in the workflow's error handling flow. Fix the cause and re-run the registration workflow to start again. See [Failed enablement](/guides/co-dian-registration#failed-enablement). > [accordion] Do I need to register suppliers in the sandbox? > > Yes, but only Alegra's NIT (`9005590882`) can be registered. The enablement is simulated: enter the TestSetId `a70562e0-631e-4ceb-aa65-36887b57dc17` for an instant acceptance. Other outcomes are in the [sandbox section](/guides/co-dian-registration#sandbox) of the guide. > [accordion] Does the billing numbering range authorization expire? > > Yes. Authorizations are valid for 2 years and also end when their numbers run out. Before a range with unused numbers expires, the supplier can extend it ([extension request](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-Habilitacion-F.pdf)); once it's used up, they request a new one ([new authorization](https://www.dian.gov.co/impuestos/factura-electronica/Documents/Numeracion2022-AutorizacionF.pdf)). Updated resolutions are picked up automatically. More available in our [Colombia FAQ](/faq/colombia) section *** > [accordion] 🇨🇴 Invopop resources for Colombia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Colombia](/compliance/colombia) [Compliance timeline](/timelines/colombia) | > | Apps | [Colombia](/apps/colombia) | > | Guides | [Supplier registration](/guides/co-dian-registration) [Issuing invoices](/guides/co-dian-invoicing) | > | FAQ | [Colombia FAQ](/faq/colombia) | > | GOBL | [Colombia Tax Regime](https://docs.gobl.org/regimes/co) [Colombia DIAN Addon](https://docs.gobl.org/addons/co-dian-v2) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Colombia → # Connect guide Source: https://docs.invopop.com/guides/connect Receive documents from external systems at public endpoints that trigger your workflows. Invopop's [Connect app](/apps/connect) gives your workspace public endpoints where external systems can deliver documents over HTTP. Every file posted to an endpoint such a GOBL invoice or an XML document is validated, stored, and handed to the workflow of your choice, allowing you to ingest documents into your workflows without any polling or custom integration code. Each endpoint pairs a URL of the form `https://connect.invopop.app/{workspace-id}/{slug}` with a workflow. When a document arrives, Connect logs it and starts a workflow job that receives a link to the stored file. To get started you simply need at least one [workflow](/guides/workflows) to process incoming documents. ## How to use **1. Enable the Connect app** In the Console, open the apps directory by clicking the icon next to **Apps** in the sidebar. Find **Connect** in the list of available apps and click `Connect` to enable it in your workspace. ![Connect app card in the apps directory](https://mintcdn.com/invopop/p6Gxj6BnA3K8RqkJ/assets/guides/connect-app-card.png?fit=max\&auto=format\&n=p6Gxj6BnA3K8RqkJ\&q=85\&s=203e52acb7e011a7871be3ba237abd9a) The Connect app in the apps directory **2. Launch the app** Once enabled, **Connect** appears in the sidebar under **Apps**. Click it to open the app, which has two tabs: * **Endpoints**: the URLs your workspace listens on. * **Documents**: a log of everything received. **3. Create an endpoint** Click `New endpoint` and fill in the form: * **Slug**: the last segment of the endpoint's URL, unique within your workspace (lowercase letters, numbers, and hyphens). For example, `invoices`. * **Workflow**: the workflow to run for each document received at this endpoint. * **Security**: how senders must authenticate: `None`, `Bearer token`, `Basic auth`, or `HMAC signature`. Anything other than `None` is strongly recommended for endpoints that receive real data. * **Accepted content types**: optionally restrict the endpoint to specific formats (for example, only JSON). Leave empty to accept any content type. ![New endpoint form with the slug, workflow, security and accepted content types fields](https://mintcdn.com/invopop/p6Gxj6BnA3K8RqkJ/assets/guides/connect-new-endpoint.png?fit=max\&auto=format\&n=p6Gxj6BnA3K8RqkJ\&q=85\&s=24890cc11b6f0af511e43d698ab18e4f) Creating an endpoint Click `Save endpoint` to finish. **4. Copy the endpoint URL** The new endpoint appears in the list with an `Active` status. Use the copy button in the **URL** column to grab its address, or open the endpoint to see the full **Ingest URL** and update its settings at any time. ![Endpoints tab listing the new invoices endpoint with an Active status and its URL](https://mintcdn.com/invopop/p6Gxj6BnA3K8RqkJ/assets/guides/connect-endpoint-created.png?fit=max\&auto=format\&n=p6Gxj6BnA3K8RqkJ\&q=85\&s=69a13fd23551cf6c57e5c010badb6174) The endpoint, live and ready to receive documents **5. Send a document** Any system that can make an HTTP request can now deliver documents to your workspace. Send a `POST` request to the endpoint URL with the file as the request body — for example, with a GOBL invoice saved as `invoice.json`: ```bash theme={"system"} curl -X POST "https://connect.invopop.app/{workspace-id}/invoices" \ -H "Authorization: Bearer example-secret-token" \ -H "Content-Type: application/json" \ --data-binary @invoice.json ``` On success, Connect stores the document, triggers the endpoint's workflow, and replies with the IDs of both the stored document and the workflow job: ```json theme={"system"} { "id": "019fcd4a-77c3-7bb7-a307-63e8850d9fc9", "job_id": "019fcd4a-77ee-7759-af4a-0481110625e0" } ``` If something is wrong with the request, the response says so: `401` when authentication fails, `415` when the content type isn't accepted, `413` when the file is too large, and `422` when the payload is malformed. > [!TIP] > > Sending a binary file, like a PDF? Encode the body in base64 and add `?encoding=base64` to the URL. You can also add `?filename=` to give the stored file a download name. **6. Track received documents** Every delivery shows up in the **Documents** tab, with its status, endpoint, content type, size, and the workflow job it triggered: * Done — the document was stored and its workflow job created. * Pending — the document was stored and is about to trigger its workflow. * Fault — the workflow could not be triggered; open the document to see the error. ![Documents tab listing a received JSON document with a Done status, its endpoint, size and job](https://mintcdn.com/invopop/p6Gxj6BnA3K8RqkJ/assets/guides/connect-documents.png?fit=max\&auto=format\&n=p6Gxj6BnA3K8RqkJ\&q=85\&s=e85c032290915f5eb337ca829814e8ba) The document log after the first delivery Click a document to inspect it: the details panel shows the request headers (credentials are redacted), a preview of the payload, and a `Download` button to retrieve the original file. ![Document details panel showing the delivery metadata and a preview of the payload body](https://mintcdn.com/invopop/p6Gxj6BnA3K8RqkJ/assets/guides/connect-document-detail.png?fit=max\&auto=format\&n=p6Gxj6BnA3K8RqkJ\&q=85\&s=752b1bece9940a50af27a1d68f7d07a2) Document details with the payload preview ## Managing endpoints Use the `⋯` menu at the end of each endpoint row to disable, re-enable, or delete an endpoint. A disabled endpoint rejects new deliveries, but its document history remains available in the log. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Connect app → # Correct invoices guide Source: https://docs.invopop.com/guides/correct-invoice Step by step guide to correct issued invoices with credit notes In this tutorial, you will: 1. Understand what invoice corrections are and when to use them. 2. Learn about the three main correction types: **credit notes**, **debit notes**, and **corrective invoice**. 3. Explore different ways to issue a **credit note** to correct an invoice: * [Using the API](#using-the-api): * Upload a fully defined credit note * Auto-generate a credit note from an existing invoice * [Using the Console](#using-the-console) to create the credit note through the interface. ## Understanding invoice corrections Billing mistakes happen, and when they do, they need to be addressed correctly. Depending on the nature of the error, different types of financial documents can be issued to correct an invoice. These are credit notes, debit notes, and corrective invoices. Let's walk through how each of these works: ### Credit note (most common) At Invopop, we generally recommend issuing a credit note if you need to cancel, refund, or adjust a validated invoice. They're the most widely accepted and straightforward method for making corrections. A credit note is a document issued by the supplier to the buyer to indicate the intent to credit a specified amount. This doesn't modify the original invoice but adjusts the total amount due. Credit notes are typically issued when there's an error in the invoice, when goods are returned or services are rejected, or when the goods delivered are damaged. ### Debit note (rarely used) A debit note is a document issued by the supplier to request additional funds related to a previously issued invoice (e.g., to account for omitted shipping costs). For example, suppose a supplier sends an invoice to the buyer for a total of €400, and later realizes they forgot to include an additional €50. To correct this, the supplier could issue a debit note, linked to the original invoice, for the missing €50 to inform the buyer of the outstanding amount. Now, you might wonder: Why not just issue a new invoice for €50? Well, they could, and that's exactly what we recommend at Invopop. While debit notes are a valid financial document, they're not commonly used in practice. It's worth noting that some sources describe a debit note as a document issued by the buyer to the supplier. However, GOBL does not support this interpretation. In GOBL, documents from buyer to supplier fall under order management workflows. ### Corrective invoice (country-specific) Some local regulations require a corrective invoice (also known as a rectifying invoice), when certain key details on an invoice need to be changed. A corrective invoice is a new document that references and replaces the original one. It's typically used when there are significant errors in fields such as the buyer's name, tax ID, or invoice date, and it fully replaces the original invoice for legal and accounting purposes. Countries that support corrective invoices include Spain and Poland. It's worth noting that not all countries support corrective invoices, and in some countries where the tax regime does, such as Spain, GOBL may attempt to map credit and debit notes into the appropriate corrective format. Have your agent issue a credit note against an existing entry through the API. Read [https://docs.invopop.com/guides/correct-invoice.md](https://docs.invopop.com/guides/correct-invoice.md). Using the token in INVOPOP\_TOKEN, fetch the silo entry I name with GET [https://api.invopop.com/silo/v1/entries/](https://api.invopop.com/silo/v1/entries/) followed by its ID, confirm it is signed, and tell me its type, series, code and payable total. Then create the correction by posting to [https://api.invopop.com/silo/v1/entries](https://api.invopop.com/silo/v1/entries) a body with previous\_id set to that entry ID and a correct object with type credit-note and the series I give you. Do not build the credit note by hand. Show me the new entry's preceding block, run the workflow I name on the new entry, and report the result. If the regime requires a corrective invoice instead of a credit note, say so and stop. ## Correcting your first invoice using a credit note Before we dive in make sure you've completed the [Quickstart](/get-started/quickstart) tutorial, you should now have a processed invoice in your workspace. Let's say there was a mistake in the invoice and we need to fix it. Once an invoice has been issued, it shouldn't be edited. Instead, we issue a **credit note** to make the correction. There are two ways to do this: * From the **Invopop Console** * Using the **API** Let's walk through both. ## Using the console In the [Console](https://console.invopop.com), click on **Invoices** in the left sidebar and select the invoice you want to correct. > [!WARNING] > > The invoice must be issued before a correction can be made. **1. Open the Correction dialog** Click on the **Correct** button in the top-right corner. This will open the **Correction** dialog. ![Toggle code view](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/cn-correct-button.gif?s=5ea02cb065ccad8031999632e66c332c) **2. Enter the series code** In the Series field, enter the series code for credit note (e.g., `CN`). **3. Select the type** Under **Type**, select `credit-note` from the dropdown. **4. Generate the credit note** Click the **Correct** button at the bottom right of the dialog. This will generate the credit note based on the original invoice. ![Build invoice](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/cn-correct-dialog.gif?s=323d48feff7ece7662dac11a58cbf6b1) **5. Save the credit note** Click the **Save** button in the top-right corner to store the credit note. You'll be redirected to the *invoice detail* view. ![Invoice detail](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/cn-result.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=bde45611fb43d5e2400347fa49cc9e5f) You've just created your first credit note! You can click on Preview to see how it'd look like in a PDF format. ## Using the API There are two ways to submit a credit note using the API: * **Upload a fully defined credit note**: You provide the complete document, including all fields. * **Auto-generate a credit note**: You reference an existing invoice, and Invopop builds the credit note for you. Let's walk through each method: ### Create a complete credit note This method gives you full control over the credit note. You define everything, from line items and taxes to the original invoice reference. It's perfect if you already have the credit note prepared, whether you built it manually or generated it somewhere else. **How it works** Use the [Create an Entry](/api-ref/silo/entries/create-an-entry-post) API endpoint with a request body that wraps your credit note in the required structure: * Set the `$schema` field so that it points to [https://gobl.org/draft-0/bill/invoice](https://gobl.org/draft-0/bill/invoice). * Set the `type` field accordingly (`credit-note` instead of `standard`). * Include a reference to the original invoice you're correcting (known as a *preceding block* in GOBL). Your request body should look something like this: ```json theme={"system"} { "content_type": "application/json", "data": { "$schema": "https://gobl.org/draft-0/bill/invoice", "type": "credit-note", "preceding": [ { "uuid": "019035bd-4524-73ab-bf44-6037841ce5d9", "type": "standard", "issue_date": "2024-07-31", "series": "SAMPLE", "code": "001" } ] ... } } ``` Here's a complete example based on the PDF invoice we used earlier. Notice how it differs from the previous invoice example: the type is set to `credit-note`, a preceding block is included to reference the original invoice, and the `$schema` points to the credit note schema. ```json expandable theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "GB", "uuid": "01975e35-426f-760e-aab8-a30b942fee07", "type": "credit-note", "series": "SAMPLE", "issue_date": "2025-06-11", "currency": "GBP", "preceding": [ { "uuid": "019035bd-4524-73ab-bf44-6037841ce5d9", "type": "standard", "issue_date": "2024-07-31", "series": "SAMPLE", "code": "001" } ], "supplier": { "name": "Test Company Ltd.", "tax_id": { "country": "GB", "code": "000472631" }, "addresses": [ { "num": "12", "street": "Main Street", "locality": "Hull", "code": "HU17 7PQ", "country": "GB" } ], "emails": [ { "addr": "company@example.com" } ] }, "customer": { "name": "Random Company Ltd.", "tax_id": { "country": "GB", "code": "350983637" }, "addresses": [ { "num": "45", "street": "Some Street", "locality": "London", "code": "SW1A 1AA", "country": "GB" } ], "emails": [ { "addr": "random@example.com" } ] }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "sum": "1800.00", "discounts": [ { "reason": "Special discount", "percent": "10%", "amount": "180.00" } ], "taxes": [ { "cat": "VAT", "rate": "standard", "percent": "20.0%" } ], "total": "1620.00" } ], "totals": { "sum": "1620.00", "total": "1620.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "base": "1620.00", "percent": "20.0%", "amount": "324.00" } ], "amount": "324.00" } ], "sum": "324.00" }, "tax": "324.00", "total_with_tax": "1944.00", "payable": "1944.00" } } ``` If everything goes well, you'll get a `200 OK` response along with the JSON for your newly registered credit note. ### Auto-generate a credit note from an invoice Sending a complete credit note to Invopop is straightforward, as long as you already have the full document ready to go. That said, building one from scratch can be complex, not just because of the structure, but because certain regimes require very specific references to the original invoice. For example, in Colombia, you need to include the original CUFE code, and in VERI\*FACTU, the credit note must reproduce a detailed breakdown of the original taxes. That's why it helps to have the system handle this automatically when possible. Instead of defining everything yourself, you can simply reference the invoice you want to correct. Just pass the **Silo Entry ID** and the type of correction, and Invopop will take care of the rest. **How it works** Use the [Create an Entry](/api-ref/silo/entries/create-an-entry-post) API endpoint, but this time, skip the `data` field. Instead, you'll send a request body that tells Invopop to generate the credit note for you: ```json theme={"system"} { "correct": { "type": "credit-note" }, "previous_id": "silo_entry_id" } ``` * `previous_id` should point to the Silo Entry ID of the original invoice. * `correct.type` should be `credit-note` to indicate the correction type. If everything goes well, you'll get a `200 OK` response along with the JSON for your newly registered credit note. # XRechnung & ZUGFeRD guide Source: https://docs.invopop.com/guides/de-ubl Generate compliant electronic invoices in Germany. ## Introduction Germany requires electronic invoicing for different business scenarios, with two main standards: **XRechnung** and **ZUGFeRD**. Both are semantic data models aligned with the European Norm `EN 16931` and can be implemented using the same syntaxes. ### XRechnung **XRechnung** is Germany's official standard for electronic invoices in public procurement (called *E-Rechnungen*), though it is also used for B2B transactions. It's part of the implementation of the EU directive `2014/55/EU`, which requires all contracting authorities in the EU to accept electronic invoices in a structured XML format. XRechnung can be implemented using two different syntaxes: * **UN/CEFACT CII** (Cross Industry Invoice) * **OASIS UBL** (Universal Business Language) Both syntaxes contain the same information but have different field names. ### ZUGFeRD **ZUGFeRD** is a German standard for electronic invoicing designed to bridge the gap between traditional invoices and digital formats. ZUGFeRD combines a standard PDF/A-3 invoice with an embedded XML file containing the structured data. This hybrid approach makes it especially popular in B2B transactions, as it allows both people and accounting software to work with the same document. ZUGFeRD is fully aligned with the European Norm `EN 16931` and it is worth noting that ZUGFeRD and [Factur-X](/guides/fr-pa-invoicing#invoice-formats) are a joint project between Germany and France, and their content is identical. > [!TIP] > > When referring to syntaxes, it is important to note that XRechnung, ZUGFeRD, and Factur-X are all *semantic data models*. What this means is that they define the data that must be present in the invoice, but not the actual format of the data or the explicit name of the fields. > > To implement the semantic models, there are two syntaxes approved by the EU: UN/CEFACT Cross Industry Invoice ([CII](https://unece.org/trade/documents/2023/10/executive-guide-einvoicing-cross-industry-invoice)) and OASIS Universal Business Language ([UBL](https://docs.OASIS-open.org/ubl/UBL-2.1.html)). ## Prerequisites To convert invoices to XRechnung or ZUGFeRD format, ensure you have: * A valid API key and a basic understanding of the [workflow engine](/guides/workflows) and [API](/api-ref/introduction). * An invoice with: * Supplier details (company name and required identities). Check the [German](https://docs.gobl.org/regimes/de) regime for specifics. * Line items with name, price, and applicable taxes. ## Setup To issue XRechnung or ZUGFeRD invoices, follow these instructions in the [Invopop Console](https://console.invopop.com): ### XRechnung setup **1. Connect the OASIS UBL app** 1. Navigate to **Configuration** → **Apps**. 2. Locate **OASIS UBL** in the app discovery list. 3. Click **Connect** to activate. No additional configuration is needed. **2. Configure invoice workflow** > [card] [XRechnung invoice workflow](https://console.invopop.com/redirect/workflows/new?template=de-xrechnung) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json XRechnung issue invoice workflow theme={"system"} > { > "name": "XRechnung issue invoice", > "description": "Issue a B2G invoice in XRechnung format", > "schema": "bill/invoice", > "steps": [ > { > "id": "bd7eb640-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "58fb4ce0-6626-11f0-b9ab-1bbe1fa4398c", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "66c0eb20-8efb-11f0-825d-d9d5f5eb9a66", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "XRechnung UBL v2", > "config": { > "doc_type": "xrechnung-invoice-v2", > "private": false, > "validate_ubl": true > } > }, > { > "id": "56bda1e0-8ef7-11f0-aa0e-dd7c69b95f3c", > "name": "Generate PDF", > "provider": "pdf", > "summary": "English · A4", > "config": { > "date_format": "%Y-%m-%d", > "layout": "A4", > "locale": "en", > "logo_height": 40, > "scripting": false > } > }, > { > "id": "c6192a60-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "c94982c0-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### ZUGFeRD setup **1. Connect the UN/CEFACT CII app** 1. Navigate to **Configuration** → **Apps**. 2. Locate **UN/CEFACT CII** in the app discovery list. 3. Click **Connect** to activate. No additional configuration is needed. **2. Configure invoice workflow** > [card] [ZUGFeRD invoice workflow](https://console.invopop.com/redirect/workflows/new?template=de-zugferd) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json ZUGFeRD issue invoice workflow theme={"system"} > { > "name": "ZUGFeRD issue invoice", > "description": "Issue a B2B invoice as PDF with embedded ZUGFeRD XML", > "schema": "bill/invoice", > "steps": [ > { > "id": "bd7eb640-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "58fb4ce0-6626-11f0-b9ab-1bbe1fa4398c", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "3548d720-6623-11f0-b3db-e7255a5da07c", > "name": "Generate CII document", > "provider": "cii.generate", > "summary": "ZUGFeRD v2", > "config": { > "attach_invoice_pdf": false, > "doc_type": "zugferd-v2", > "validate_cii": true > } > }, > { > "id": "56bda1e0-8ef7-11f0-aa0e-dd7c69b95f3c", > "name": "Generate PDF", > "provider": "pdf", > "summary": "German · A4", > "config": { > "logo_height": 40, > "locale": "de", > "date_format": "%Y-%m-%d", > "layout": "A4", > "scripting": false > } > }, > { > "id": "8e665990-81a3-11f0-82cb-9160968ac068", > "name": "Embed FacturX/ZUGFeRD", > "provider": "cii.pdf.embed" > }, > { > "id": "c6192a60-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "c94982c0-abd0-11ef-a013-91c68ca9f44b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > }, > "next": [] > } > ] > } > ``` ## Running Invopop uses the [GOBL](https://gobl.org) library to process conversions. GOBL's implementation validates [national business rules](https://www.xoev.de/sixcms/media.php/13/XRechnung-EnglishSummary-v220-final.pdf) in addition to the rules defined in `EN 16931-1`. Some example invoices are provided below, along with example workflows to send the invoices to. We also recommend using the [GOBL Builder](https://build.gobl.org) to create your own invoices. ### XRechnung examples Be sure to set the `regime` field to `DE` in your invoices and include the [XRechnung](https://docs.gobl.org/addons/de-xrechnung-v3) addon. This will add extra validations to ensure the document is compliant with the standard. > [accordion] XRechnung B2B Invoice > > Standard XRechnung invoice for business-to-business transactions using the UBL format. > > ```json XRechnung B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DE", > "$addons": [ > "eu-en16931-v2017", > "de-xrechnung-v3" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2022-02-01", > "currency": "EUR", > "supplier": { > "name": "Rheinland Technologies GmbH", > "tax_id": { > "country": "DE", > "code": "879558966" > }, > "inboxes": [ > { > "key": "peppol", > "scheme": "9930", > "code": "DE879558966" > } > ], > "addresses": [ > { > "num": "27", > "street": "Friedrichstraße", > "locality": "Berlin", > "region": "BE", > "code": "10117", > "country": "DE" > } > ], > "people": [ > { > "name": { > "given": "John", > "surname": "Doe" > } > } > ], > "telephones": [ > { > "num": "+49100200300" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Bavaria Solutions GmbH", > "tax_id": { > "country": "DE", > "code": "993930191" > }, > "inboxes": [ > { > "key": "peppol", > "scheme": "9930", > "code": "DE993930191" > } > ], > "addresses": [ > { > "num": "15", > "street": "Marienplatz", > "locality": "München", > "region": "BY", > "code": "80331", > "country": "DE" > } > ], > "emails": [ > { > "addr": "test@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1620.00" > } > ], > "ordering": { > "code": "N" > }, > "payment": { > "terms": { > "notes": "Will be paid by 2026-06-02" > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DE89370400440532013000", > "name": "Random Bank Co." > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DE", > "$addons": [ > "eu-en16931-v2017", > "de-xrechnung-v3" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2022-02-01", > "currency": "EUR", > "tax": { > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Rheinland Technologies GmbH", > "tax_id": { > "country": "DE", > "code": "879558966" > }, > "people": [ > { > "name": { > "given": "John", > "surname": "Doe" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::9930:DE879558966" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "9930", > "code": "DE879558966" > } > ], > "addresses": [ > { > "num": "27", > "street": "Friedrichstraße", > "locality": "Berlin", > "region": "BE", > "code": "10117", > "country": "DE" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "telephones": [ > { > "num": "+49100200300" > } > ] > }, > "customer": { > "name": "Bavaria Solutions GmbH", > "tax_id": { > "country": "DE", > "code": "993930191" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::9930:DE993930191" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "9930", > "code": "DE993930191" > } > ], > "addresses": [ > { > "num": "15", > "street": "Marienplatz", > "locality": "München", > "region": "BY", > "code": "80331", > "country": "DE" > } > ], > "emails": [ > { > "addr": "test@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1620.00" > } > ], > "ordering": { > "code": "N" > }, > "payment": { > "terms": { > "notes": "Will be paid by 2026-06-02" > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DE89370400440532013000", > "name": "Random Bank Co." > } > ], > "ext": { > "untdid-payment-means": "58" > } > } > }, > "totals": { > "sum": "1620.00", > "total": "1620.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1620.00", > "percent": "19%", > "amount": "307.80" > } > ], > "amount": "307.80" > } > ], > "sum": "307.80" > }, > "tax": "307.80", > "total_with_tax": "1927.80", > "payable": "1927.80" > } > } > ``` > [!NOTE] > > In your invoice data, make sure to include the [XRechnung addon](https://docs.gobl.org/addons/de-xrechnung-v3) and set the regime as `DE`. ### ZUGFeRD examples Be sure to set the `regime` field to `DE` in your invoices and include the [ZUGFeRD](https://docs.gobl.org/addons/de-zugferd-v2) addon. This will add extra validations to ensure the document is compliant with the standard. > [accordion] ZUGFeRD B2C Invoice > > Standard ZUGFeRD invoice for business-to-consumer transactions with embedded XML in PDF format. > > ```json ZUGFeRD B2C Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DE", > "$addons": [ > "eu-en16931-v2017", > "de-zugferd-v2" > ], > "$tags": [ > "simplified" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2022-02-01", > "currency": "EUR", > "supplier": { > "name": "Provide One GmbH", > "tax_id": { > "country": "DE", > "code": "879558966" > }, > "addresses": [ > { > "num": "16", > "street": "Dietmar-Hopp-Allee", > "locality": "Walldorf", > "code": "69190", > "country": "DE" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1620.00" > } > ], > "payment": { > "advances": [ > { > "description": "Paid in full", > "percent": "100%", > "amount": "1927.80" > } > ], > "instructions": { > "key": "card" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DE", > "$addons": [ > "eu-en16931-v2017", > "de-zugferd-v2" > ], > "$tags": [ > "simplified" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2022-02-01", > "currency": "EUR", > "tax": { > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Provide One GmbH", > "tax_id": { > "country": "DE", > "code": "879558966" > }, > "addresses": [ > { > "num": "16", > "street": "Dietmar-Hopp-Allee", > "locality": "Walldorf", > "code": "69190", > "country": "DE" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1620.00" > } > ], > "payment": { > "advances": [ > { > "description": "Paid in full", > "percent": "100%", > "amount": "1927.80" > } > ], > "instructions": { > "key": "card", > "ext": { > "untdid-payment-means": "48" > } > } > }, > "totals": { > "sum": "1620.00", > "total": "1620.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1620.00", > "percent": "19%", > "amount": "307.80" > } > ], > "amount": "307.80" > } > ], > "sum": "307.80" > }, > "tax": "307.80", > "total_with_tax": "1927.80", > "payable": "1927.80", > "advance": "1927.80", > "due": "0.00" > } > } > ``` > [accordion] ZUGFeRD B2B Invoice with Additional Fields > > Comprehensive ZUGFeRD invoice demonstrating additional optional fields such as ordering information, payment terms, delivery details, and discounts. > > ```json ZUGFeRD B2B Invoice with additional fields theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DE", > "$addons": [ > "eu-en16931-v2017", > "de-zugferd-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2024-02-13", > "currency": "EUR", > "tax": { > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Provide One GmbH", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "people": [ > { > "name": { > "given": "John", > "surname": "Doe" > } > } > ], > "addresses": [ > { > "num": "16", > "street": "Dietmar-Hopp-Allee", > "locality": "Walldorf", > "code": "69190", > "country": "DE" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "telephones": [ > { > "num": "+49100200300" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "282741168" > }, > "addresses": [ > { > "num": "25", > "street": "Werner-Heisenberg-Allee", > "locality": "München", > "code": "80939", > "country": "DE" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ] > } > ], > "discounts": [ > { > "reason": "Promotion discount", > "amount": "10.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "ext": { > "untdid-allowance": "88" > } > } > ], > "charges": [ > { > "reason": "Freight", > "amount": "11.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ] > } > ], > "ordering": { > "code": "PO4711", > "period": { > "start": "2013-03-10", > "end": "2013-04-10" > }, > "contracts": [ > { > "code": "2013-05" > } > ], > "receiving": [ > { > "code": "3544" > } > ], > "despatch": [ > { > "code": "5433" > } > ] > }, > "payment": { > "payee": { > "name": "Ebeneser Scrooge AS", > "identities": [ > { > "label": "CompanyID", > "code": "989823401" > }, > { > "label": "0088", > "code": "2298740918237" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2013-07-20", > "percent": "100%" > } > ], > "notes": "2 % discount if paid within 2 days\n Penalty percentage 10% from due date" > }, > "instructions": { > "key": "credit-transfer", > "ref": "0003434323213231", > "credit_transfer": [ > { > "iban": "NO9386011117947", > "bic": "DNBANOKK" > } > ], > "card": { > "last4": "1234", > "holder": "John Doe" > }, > "direct_debit": { > "ref": "1234567890", > "creditor": "987654321", > "account": "DE89370400440532013000" > }, > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "receiver": { > "addresses": [ > { > "street": "Deliverystreet 2", > "street_extra": "Side door", > "locality": "DeliveryCity", > "region": "RegionD", > "code": "523427", > "country": "NO" > } > ] > }, > "identities": [ > { > "label": "0088", > "code": "6754238987643" > } > ], > "date": "2024-02-10" > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DE", > "$addons": [ > "eu-en16931-v2017", > "de-zugferd-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2024-02-13", > "currency": "EUR", > "tax": { > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Provide One GmbH", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "people": [ > { > "name": { > "given": "John", > "surname": "Doe" > } > } > ], > "addresses": [ > { > "num": "16", > "street": "Dietmar-Hopp-Allee", > "locality": "Walldorf", > "code": "69190", > "country": "DE" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "telephones": [ > { > "num": "+49100200300" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "282741168" > }, > "addresses": [ > { > "num": "25", > "street": "Werner-Heisenberg-Allee", > "locality": "München", > "code": "80939", > "country": "DE" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1800.00" > } > ], > "discounts": [ > { > "i": 1, > "reason": "Promotion discount", > "amount": "10.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "ext": { > "untdid-allowance": "88" > } > } > ], > "charges": [ > { > "i": 1, > "reason": "Freight", > "amount": "11.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "untdid-tax-category": "S" > } > } > ] > } > ], > "ordering": { > "code": "PO4711", > "period": { > "start": "2013-03-10", > "end": "2013-04-10" > }, > "contracts": [ > { > "code": "2013-05" > } > ], > "receiving": [ > { > "code": "3544" > } > ], > "despatch": [ > { > "code": "5433" > } > ] > }, > "payment": { > "payee": { > "name": "Ebeneser Scrooge AS", > "identities": [ > { > "label": "CompanyID", > "code": "989823401" > }, > { > "label": "0088", > "code": "2298740918237" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2013-07-20", > "amount": "2143.19", > "percent": "100%" > } > ], > "notes": "2 % discount if paid within 2 days\n Penalty percentage 10% from due date" > }, > "instructions": { > "key": "credit-transfer", > "ref": "0003434323213231", > "credit_transfer": [ > { > "iban": "NO9386011117947", > "bic": "DNBANOKK" > } > ], > "card": { > "last4": "1234", > "holder": "John Doe" > }, > "direct_debit": { > "ref": "1234567890", > "creditor": "987654321", > "account": "DE89370400440532013000" > }, > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "receiver": { > "addresses": [ > { > "street": "Deliverystreet 2", > "street_extra": "Side door", > "locality": "DeliveryCity", > "region": "RegionD", > "code": "523427", > "country": "NO" > } > ] > }, > "identities": [ > { > "label": "0088", > "code": "6754238987643" > } > ], > "date": "2024-02-10" > }, > "totals": { > "sum": "1800.00", > "discount": "10.00", > "charge": "11.00", > "total": "1801.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1801.00", > "percent": "19%", > "amount": "342.19" > } > ], > "amount": "342.19" > } > ], > "sum": "342.19" > }, > "tax": "342.19", > "total_with_tax": "2143.19", > "payable": "2143.19" > } > } > ``` > [!NOTE] > > In your invoice data, make sure to include the [ZUGFeRD addon](https://docs.gobl.org/addons/de-zugferd-v2) and set the regime as `DE`. *** > [accordion] 🇩🇪 Invopop resources for Germany > > | | | > | - | - | > | Compliance | [Invoicing compliance in Germany](/compliance/germany) [Compliance timeline](/timelines/germany) | > | Apps | [OASIS UBL](/apps/oasis-ubl) [ZUGFeRD](/apps/uncefact-cii) | > | Guides | [XRechnung & ZUGFeRD guide](/guides/de-ubl) [Chargebee guide](/guides/cb-germany) | > | FAQ | [Germany FAQ](/faq/germany) | > | GOBL | [Germany Tax Regime](https://docs.gobl.org/regimes/de) [German XRechnung Addon](https://docs.gobl.org/addons/de-xrechnung-v3) [German ZUGFeRD Addon](https://docs.gobl.org/addons/de-zugferd-v2) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | ## FAQ > [accordion] How do I configure my workspace for German invoicing? > > Pick a format based on the recipient: XRechnung (UBL or CII) for B2G via Peppol, ZUGFeRD/Factur-X for B2B where a human-readable PDF is also wanted. Both are EN 16931-compliant — Invopop generates either from the same GOBL invoice. > [accordion] What's the workflow for issuing Peppol invoices in Germany? > > Generate a GOBL invoice with the `de-xrechnung-v3` addon, then run the Peppol Send workflow. Invopop emits XRechnung (UBL or CII per recipient preference), looks up the recipient's Access Point, and delivers via Peppol. > [accordion] Which XRechnung syntax should I choose, UBL or CII? > > Both syntaxes are equally valid and contain the same information, so in the majority of cases the choice has no consequences. > > If you plan on sending invoices through the Peppol network, we recommend using UBL as it is the supported format. If you plan on also issuing invoices in ZUGFeRD or Factur-X, it might be more convenient to use CII, as it is the syntax also supported by ZUGFeRD and Factur-X. > [accordion] How can I view an XML attached to a PDF? > > For ZUGFeRD PDFs, the XML file is embedded within the PDF itself. To extract and view it, you can use the `Attachments` section in Adobe Acrobat Reader. > > Alternatively, you can use specialized tools like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/) to extract the XML file. > [accordion] Where do I find Germany-specific GOBL documentation? > > See the [Germany tax regime in GOBL](https://docs.gobl.org/regimes/de) for tax categories and identifiers. The XRechnung mapping lives in [`de-xrechnung-v3`](https://docs.gobl.org/addons/de-xrechnung-v3); ZUGFeRD/Factur-X share the EN 16931 CII profile. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. More available in our [Germany FAQ](/faq/germany) section > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Germany → # NemHandel issuing invoices guide Source: https://docs.invopop.com/guides/dk-nemhandel Issue OIOUBL invoices and credit notes in Denmark over the NemHandel network. ## Introduction **NemHandel** is the Danish e-invoicing network all public authorities — and a large share of businesses — receive their invoices through. Documents travel as **OIOUBL 2.1**, Denmark's national UBL dialect. The [Denmark app](/apps/denmark) converts GOBL invoices and credit notes to OIOUBL, validates them against the official schematron, and delivers them over the network through Invopop's partner [eCourier](https://ecourier.io). For onboarding suppliers, see the companion guide: [NemHandel supplier registration](/guides/dk-nemhandel-supplier). For importing the invoices your parties receive, see [NemHandel receiving invoices](/guides/dk-nemhandel-receiving). | - | Sandbox | Live | | - | - | - | | **Supplier** | Party registered against eCourier's test environment | Registered party required | | **Environment** | eCourier sandbox | eCourier production | ## Prerequisites * **A registered supplier**: follow the [NemHandel supplier registration guide](/guides/dk-nemhandel-supplier) to connect the Denmark app, have the supplier sign the authorisation agreement, and register their NemHandel participant before issuing. * **The [`dk-oioubl-v2` addon](https://docs.gobl.org/addons/dk-oioubl-v2)** declared in `$addons` on every invoice, so the OIOUBL rules are validated before signing. * **A routable customer**: the customer must resolve to a NemHandel endpoint. Public entities carry their **EAN/GLN number** as an endpoint (`GLN:5798000000000`-style); a Danish business with only a tax ID gets its `DK:CVR` endpoint derived automatically. * **OIOUBL-compatible payment data**, if you include payment instructions: OIOUBL supports IBAN transfers plus the Danish channels (Giro, FIK, domestic bank transfer with its four-digit registration number, and NemKonto). > [!NOTE] > > OIOUBL has no VAT-exempt category: invoices are standard-rated, zero-rated, or reverse-charge. An exempt VAT key is rejected up front — state the supply as zero-rated instead. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Create the send workflow** > [card] [Send NemHandel invoice workflow](https://console.invopop.com/redirect/workflows/new?template=dk-send) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Example Send NemHandel invoice workflow theme={"system"} > { > "name": "Send NemHandel invoice", > "description": "Convert an invoice to OIOUBL and send it over the NemHandel network", > "schema": "bill/invoice", > "steps": [ > { > "id": "e3ad87b2-88d1-11f1-8000-920007eb4d91", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "e3add26c-88d1-11f1-8000-920007eb4d91", > "name": "Add Sequential Code", > "provider": "sequence.enumerate", > "summary": "Dynamic · NemHandel · 000001", > "config": { > "name": "NemHandel", > "padding": 6, > "start": 1 > } > }, > { > "id": "e3ae403a-88d1-11f1-8000-920007eb4d91", > "name": "Sign Envelope", > "provider": "silo.close" > }, > { > "id": "e3afc3a6-88d1-11f1-8000-920007eb4d91", > "name": "Generate OIOUBL", > "provider": "gov-dk.convert", > "summary": "OIOUBL 2.1 Invoice/CreditNote" > }, > { > "id": "e3aea606-88d1-11f1-8000-920007eb4d91", > "name": "Send to NemHandel", > "provider": "gov-dk.send", > "summary": "Submits and queues until eCourier confirms delivery" > }, > { > "id": "e3af29be-88d1-11f1-8000-920007eb4d91", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "e3af4e58-88d1-11f1-8000-920007eb4d91", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Send an invoice Upload the invoice as a silo entry and run the send workflow on it. > [!NOTE] > > The recommended approach for running jobs is to perform two steps: first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), then [create a job](/api-ref/transform/jobs/create-a-job-post). The workflow's two app steps split the work: * **Generate OIOUBL** converts the signed GOBL envelope into an OIOUBL 2.1 document, validates it against the official schematron (v1.17), and stores the XML as an attachment on the entry under the `oioubl` file key. An invoice that would be rejected by the network fails here, before anything leaves the platform. * **Send to NemHandel** submits that attachment and then waits: the job stays queued until eCourier confirms the document is delivered, re-checking whenever the network reports a status change. Delivery — not submission — is what completes the job. The bytes stored on the entry are exactly the bytes that reached the network, so you can always download the OIOUBL file that was actually delivered. ### Duplicates are skipped Running the send workflow again on an invoice that was already delivered skips with a `Duplicated Invoice` result instead of resubmitting, so a retried or repeated run never delivers the document twice. ### Generating without sending The convert step also works on its own: a workflow that ends after **Generate OIOUBL** produces the validated XML attachment without submitting anything, which is useful for previewing the exact document a customer will receive. ## Example invoices > [accordion] Example B2G invoice > > In this example, we're invoicing a Danish public institution, the segment where e-invoicing is mandatory. > > Notice: > > * the `$addons` field is set to `dk-oioubl-v2`, which layers the OIOUBL 2.1 rules on top of the European EN 16931 baseline, > * the customer carries its **EAN/GLN number** as an endpoint (`GLN:5798009883735`) — this is how public entities are identified in the NemHandelsregisteret, > * the supplier declares no endpoint: the addon derives its `DK:CVR` endpoint automatically from the Danish tax ID, > * the `ordering.purchases` block carries the order reference the receiving institution asked for, > * the payment instructions use a SEPA credit transfer with an IBAN, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Denmark B2G invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0042", > "issue_date": "2026-08-01", > "currency": "DKK", > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "people": [ > { > "name": { > "given": "Mette", > "surname": "Kristensen" > }, > "role": "Director" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Den Lille Skole", > "endpoints": [ > { > "uri": "GLN:5798009883735" > } > ], > "addresses": [ > { > "num": "10", > "street": "Fredericiavej", > "locality": "Helsingør", > "code": "3000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@dls.dk" > } > ] > }, > "ordering": { > "purchases": [ > { > "code": "5002701" > } > ] > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Software licence", > "price": "150.00", > "unit": "item" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ], > "ext": { > "untdid-payment-means": "58" > } > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DK", > "$addons": [ > "eu-en16931-v2017", > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0042", > "issue_date": "2026-08-01", > "currency": "DKK", > "tax": { > "rounding": "currency", > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "identities": [ > { > "scope": "legal", > "code": "16356700" > } > ], > "people": [ > { > "name": { > "given": "Mette", > "surname": "Kristensen" > }, > "role": "Director" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:16356700" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Den Lille Skole", > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0088:5798009883735" > } > ], > "addresses": [ > { > "num": "10", > "street": "Fredericiavej", > "locality": "Helsingør", > "code": "3000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@dls.dk" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Software licence", > "price": "150.00", > "unit": "item" > }, > "sum": "3000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "25.0%" > } > ], > "total": "3000.00" > } > ], > "ordering": { > "purchases": [ > { > "code": "5002701" > } > ] > }, > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "amount": "3750.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ], > "ext": { > "untdid-payment-means": "58" > } > } > }, > "totals": { > "sum": "3000.00", > "total": "3000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "3000.00", > "percent": "25.0%", > "amount": "750.00" > } > ], > "amount": "750.00" > } > ], > "sum": "750.00" > }, > "tax": "750.00", > "total_with_tax": "3750.00", > "payable": "3750.00" > } > } > ``` > [accordion] Example B2B invoice > > In this example, we're issuing a B2B invoice from a Danish supplier to another Danish business. > > Notice: > > * both parties are identified by their **CVR number** as the GOBL `tax_id.code`; the addon derives each party's `DK:CVR` endpoint from it, > * the payment instructions describe a Danish domestic bank transfer (UNTDID payment means `42`): the account number plus the four-digit bank registration (clearing) code the OIOUBL rules require, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Denmark B2B invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0043", > "issue_date": "2026-08-01", > "currency": "DKK", > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "quantity": 10, > "item": { > "name": "Consulting services", > "price": "800.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "other", > "ext": { > "untdid-payment-means": "42" > }, > "credit_transfer": [ > { > "number": "1234567890", > "clearing": "1234" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DK", > "$addons": [ > "eu-en16931-v2017", > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0043", > "issue_date": "2026-08-01", > "currency": "DKK", > "tax": { > "rounding": "currency", > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "identities": [ > { > "scope": "legal", > "code": "16356700" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:16356700" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "identities": [ > { > "scope": "legal", > "code": "12345674" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:12345674" > } > ], > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Consulting services", > "price": "800.00", > "unit": "h" > }, > "sum": "8000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "25.0%" > } > ], > "total": "8000.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "amount": "10000.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "other", > "credit_transfer": [ > { > "number": "1234567890", > "clearing": "1234" > } > ], > "ext": { > "untdid-payment-means": "42" > } > } > }, > "totals": { > "sum": "8000.00", > "total": "8000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "8000.00", > "percent": "25.0%", > "amount": "2000.00" > } > ], > "amount": "2000.00" > } > ], > "sum": "2000.00" > }, > "tax": "2000.00", > "total_with_tax": "10000.00", > "payable": "10000.00" > } > } > ``` > [accordion] Example zero-rated invoice > > In this example, we're issuing a domestic invoice for a zero-rated supply — newspapers, one of the few zero-rated categories under Momslovens §34. > > Notice: > > * the line's tax uses the `zero` VAT key: the supply is taxable at 0% with input VAT recovery, unlike an exempt supply, > * OIOUBL has **no exempt category** on the wire, so genuinely exempt supplies (healthcare, education, financial services) cannot be invoiced through NemHandel as "exempt" — the addon rejects the `exempt` key and zero-rated is the closest the format supports, and, > * everything else works exactly like the standard B2B invoice. > > ```json Denmark zero rate invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0045", > "issue_date": "2026-08-01", > "currency": "DKK", > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "quantity": 250, > "item": { > "name": "Morgenavisen daily newspaper", > "price": "12.00", > "unit": "item" > }, > "taxes": [ > { > "cat": "VAT", > "key": "zero" > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DK", > "$addons": [ > "eu-en16931-v2017", > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0045", > "issue_date": "2026-08-01", > "currency": "DKK", > "tax": { > "rounding": "currency", > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "identities": [ > { > "scope": "legal", > "code": "16356700" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:16356700" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "identities": [ > { > "scope": "legal", > "code": "12345674" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:12345674" > } > ], > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "250", > "item": { > "name": "Morgenavisen daily newspaper", > "price": "12.00", > "unit": "item" > }, > "sum": "3000.00", > "taxes": [ > { > "cat": "VAT", > "key": "zero", > "percent": "0%" > } > ], > "total": "3000.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "amount": "3000.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ], > "ext": { > "untdid-payment-means": "58" > } > } > }, > "totals": { > "sum": "3000.00", > "total": "3000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "zero", > "base": "3000.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "3000.00", > "payable": "3000.00" > } > } > ``` > [accordion] Example reverse charge invoice > > In this example, we're issuing a domestic reverse charge invoice for copper scrap — one of the supplies (along with certain metals and electronics) where Denmark shifts the VAT liability to the buyer. > > Notice: > > * the line's tax uses the `reverse-charge` VAT key, so no VAT is charged and the customer accounts for it instead, > * the `cef-vatex` extension carries the exemption reason code `VATEX-EU-AE` (reverse charge), which OIOUBL maps to its reverse-charge tax category, and, > * both parties are Danish businesses identified by their CVR numbers. > > ```json Denmark reverse charge invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0046", > "issue_date": "2026-08-01", > "currency": "DKK", > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "quantity": 500, > "item": { > "name": "Copper scrap", > "price": "45.00", > "unit": "kg" > }, > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "ext": { > "cef-vatex": "VATEX-EU-AE" > } > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DK", > "$addons": [ > "eu-en16931-v2017", > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0046", > "issue_date": "2026-08-01", > "currency": "DKK", > "tax": { > "rounding": "currency", > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "identities": [ > { > "scope": "legal", > "code": "16356700" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:16356700" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "identities": [ > { > "scope": "legal", > "code": "12345674" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:12345674" > } > ], > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "500", > "item": { > "name": "Copper scrap", > "price": "45.00", > "unit": "kg" > }, > "sum": "22500.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "ext": { > "cef-vatex": "VATEX-EU-AE" > } > } > ], > "total": "22500.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "amount": "22500.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ], > "ext": { > "untdid-payment-means": "58" > } > } > }, > "totals": { > "sum": "22500.00", > "total": "22500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "reverse-charge", > "ext": { > "cef-vatex": "VATEX-EU-AE" > }, > "base": "22500.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "22500.00", > "payable": "22500.00" > } > } > ``` > [accordion] Example intra-community invoice > > In this example, we're invoicing a VAT-registered business in another EU member state — an intra-Community supply of goods, zero-rated under Momslovens §34. > > Notice: > > * the line's tax uses the `intra-community` VAT key with the `VATEX-EU-IC` exemption reason code, > * the customer carries its own country's tax ID (a German VAT number here) and a **GLN endpoint** so NemHandel can route the document, and, > * no Danish VAT is charged; the customer self-accounts for the acquisition in their own country. > > ```json Denmark intra-community invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0047", > "issue_date": "2026-08-01", > "currency": "DKK", > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Rheinwerk Handel GmbH", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "endpoints": [ > { > "uri": "GLN:4304984000008" > } > ], > "addresses": [ > { > "num": "18", > "street": "Speditionstraße", > "locality": "Düsseldorf", > "code": "40221", > "country": "DE" > } > ], > "emails": [ > { > "addr": "rechnung@rheinwerk-handel.de" > } > ] > }, > "lines": [ > { > "quantity": 40, > "item": { > "name": "Industrial valves", > "price": "320.00", > "unit": "item" > }, > "taxes": [ > { > "cat": "VAT", > "key": "intra-community", > "ext": { > "cef-vatex": "VATEX-EU-IC" > } > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DK", > "$addons": [ > "eu-en16931-v2017", > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0047", > "issue_date": "2026-08-01", > "currency": "DKK", > "tax": { > "rounding": "currency", > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "identities": [ > { > "scope": "legal", > "code": "16356700" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:16356700" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Rheinwerk Handel GmbH", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0088:4304984000008" > } > ], > "addresses": [ > { > "num": "18", > "street": "Speditionstraße", > "locality": "Düsseldorf", > "code": "40221", > "country": "DE" > } > ], > "emails": [ > { > "addr": "rechnung@rheinwerk-handel.de" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "40", > "item": { > "name": "Industrial valves", > "price": "320.00", > "unit": "item" > }, > "sum": "12800.00", > "taxes": [ > { > "cat": "VAT", > "key": "intra-community", > "ext": { > "cef-vatex": "VATEX-EU-IC" > } > } > ], > "total": "12800.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "amount": "12800.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ], > "ext": { > "untdid-payment-means": "58" > } > } > }, > "totals": { > "sum": "12800.00", > "total": "12800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "intra-community", > "ext": { > "cef-vatex": "VATEX-EU-IC" > }, > "base": "12800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "12800.00", > "payable": "12800.00" > } > } > ``` > [accordion] Example export invoice > > In this example, we're invoicing a customer outside the EU — an export of goods, zero-rated under Momslovens §34. > > Notice: > > * the line's tax uses the `export` VAT key with the `VATEX-EU-G` exemption reason code, > * the customer is a Norwegian business with its organisation number as tax ID and a GLN endpoint for routing, and, > * no Danish VAT is charged on exports outside the EU. > > ```json Denmark export invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0048", > "issue_date": "2026-08-01", > "currency": "DKK", > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Fjellvann Utstyr AS", > "tax_id": { > "country": "NO", > "code": "987654325" > }, > "endpoints": [ > { > "uri": "GLN:7080000000000" > } > ], > "addresses": [ > { > "num": "7", > "street": "Storgata", > "locality": "Oslo", > "code": "0155", > "country": "NO" > } > ], > "emails": [ > { > "addr": "faktura@fjellvann.no" > } > ] > }, > "lines": [ > { > "quantity": 40, > "item": { > "name": "Industrial valves", > "price": "320.00", > "unit": "item" > }, > "taxes": [ > { > "cat": "VAT", > "key": "export", > "ext": { > "cef-vatex": "VATEX-EU-G" > } > } > ] > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DK", > "$addons": [ > "eu-en16931-v2017", > "dk-oioubl-v2" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0048", > "issue_date": "2026-08-01", > "currency": "DKK", > "tax": { > "rounding": "currency", > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "identities": [ > { > "scope": "legal", > "code": "16356700" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:16356700" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Fjellvann Utstyr AS", > "tax_id": { > "country": "NO", > "code": "987654325MVA" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0088:7080000000000" > } > ], > "addresses": [ > { > "num": "7", > "street": "Storgata", > "locality": "Oslo", > "code": "0155", > "country": "NO" > } > ], > "emails": [ > { > "addr": "faktura@fjellvann.no" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "40", > "item": { > "name": "Industrial valves", > "price": "320.00", > "unit": "item" > }, > "sum": "12800.00", > "taxes": [ > { > "cat": "VAT", > "key": "export", > "ext": { > "cef-vatex": "VATEX-EU-G" > } > } > ], > "total": "12800.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "amount": "12800.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer+sepa", > "credit_transfer": [ > { > "iban": "DK5000400440116243" > } > ], > "ext": { > "untdid-payment-means": "58" > } > } > }, > "totals": { > "sum": "12800.00", > "total": "12800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "export", > "ext": { > "cef-vatex": "VATEX-EU-G" > }, > "base": "12800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "12800.00", > "payable": "12800.00" > } > } > ``` > [accordion] Example credit note > > In this example, we're issuing a credit note that corrects a previously issued invoice. > > Notice: > > * the `type` is set to `credit-note`, which OIOUBL maps to its own CreditNote document (type code `381`), > * the `preceding` array references the original invoice by its `series`, `code`, and `issue_date`, along with a `reason`, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Denmark credit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "dk-oioubl-v2" > ], > "type": "credit-note", > "series": "SAMPLE", > "code": "0044", > "issue_date": "2026-08-10", > "currency": "DKK", > "preceding": [ > { > "series": "SAMPLE", > "code": "0043", > "issue_date": "2026-08-01", > "reason": "Ordered quantity reduced" > } > ], > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "quantity": 2, > "item": { > "name": "Consulting services", > "price": "800.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "DK", > "$addons": [ > "eu-en16931-v2017", > "dk-oioubl-v2" > ], > "type": "credit-note", > "series": "SAMPLE", > "code": "0044", > "issue_date": "2026-08-10", > "currency": "DKK", > "preceding": [ > { > "issue_date": "2026-08-01", > "series": "SAMPLE", > "code": "0043", > "reason": "Ordered quantity reduced" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "untdid-document-type": "381" > } > }, > "supplier": { > "name": "Nordlys Software ApS", > "tax_id": { > "country": "DK", > "code": "16356700" > }, > "identities": [ > { > "scope": "legal", > "code": "16356700" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:16356700" > } > ], > "addresses": [ > { > "num": "24", > "street": "Vesterbrogade", > "locality": "København V", > "code": "1620", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@nordlys.dk" > } > ] > }, > "customer": { > "name": "Havnens Byggemarked A/S", > "tax_id": { > "country": "DK", > "code": "12345674" > }, > "identities": [ > { > "scope": "legal", > "code": "12345674" > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0184:12345674" > } > ], > "addresses": [ > { > "num": "3", > "street": "Havnegade", > "locality": "Aarhus C", > "code": "8000", > "country": "DK" > } > ], > "emails": [ > { > "addr": "faktura@havnens-byggemarked.dk" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Consulting services", > "price": "800.00", > "unit": "h" > }, > "sum": "1600.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "25.0%" > } > ], > "total": "1600.00" > } > ], > "totals": { > "sum": "1600.00", > "total": "1600.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "1600.00", > "percent": "25.0%", > "amount": "400.00" > } > ], > "amount": "400.00" > } > ], > "sum": "400.00" > }, > "tax": "400.00", > "total_with_tax": "2000.00", > "payable": "2000.00" > } > } > ``` ## FAQ > [accordion] What documents can I send over NemHandel with the Denmark app? > > Invoices and credit notes, as **OIOUBL 2.1** documents. Declare the [`dk-oioubl-v2` addon](https://docs.gobl.org/addons/dk-oioubl-v2) in `$addons` on the GOBL invoice: it layers the OIOUBL rules on top of the European EN 16931 baseline and rejects documents that would fail on the network before anything is sent. Reminders and invoice responses (OIOUBL ApplicationResponse) are not supported yet — they are planned for a follow-up release. > [accordion] How do I know an invoice was actually delivered? > > The send step doesn't report success on submission — it submits the OIOUBL document and then **waits until the network confirms delivery**. The job stays queued, re-checking the document's status when eCourier reports a change (and every few minutes on its own), and only completes when the document is delivered. If delivery fails, the job fails and your workflow's rescue steps run. > [accordion] Can I issue a VAT-exempt invoice? > > Not as "exempt". OIOUBL's tax category codelist supports standard-rated, zero-rated, and reverse-charge VAT, but has **no exempt category** on the wire. The `dk-oioubl-v2` addon rejects an exempt VAT key up front rather than silently relabelling it — state the supply as **zero-rated** instead. > [accordion] What happens if I run the send workflow twice on the same invoice? > > Nothing bad. A later run that finds the entry already delivered skips with a `Duplicated Invoice` result instead of resubmitting, so the receiver never gets the document twice. > [accordion] Can I generate the OIOUBL file without sending it? > > Yes. The convert step works on its own: it converts the GOBL invoice to OIOUBL 2.1, validates it against the official schematron, and stores the XML as an attachment on the silo entry under the `oioubl` file key. A workflow that only converts lets you inspect or download the file without submitting anything to the network. More available in our [Denmark FAQ](/faq/denmark) section *** > [accordion] 🇩🇰 Invopop resources for Denmark > > | | | > | - | - | > | Compliance | [Invoicing compliance in Denmark](/compliance/denmark) [Compliance timeline](/timelines/denmark) | > | Apps | [Denmark](/apps/denmark) [Peppol](/apps/peppol) | > | Guides | [Supplier registration guide](/guides/dk-nemhandel-supplier) [Issuing invoices guide](/guides/dk-nemhandel) [Receiving invoices guide](/guides/dk-nemhandel-receiving) [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-denmark) | > | FAQ | [Denmark FAQ](/faq/denmark) | > | GOBL | [Danish OIOUBL 2.1 Addon](https://docs.gobl.org/addons/dk-oioubl-v2) [Denmark Tax Regime](https://docs.gobl.org/regimes/dk) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.dk.oioubl](https://github.com/invopop/gobl.dk.oioubl) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Denmark → # NemHandel receiving invoices guide Source: https://docs.invopop.com/guides/dk-nemhandel-receiving Import the OIOUBL documents Danish trading partners send to your registered parties. ## Introduction Documents sent to a registered party's NemHandel participant are pushed to Invopop the moment they arrive: eCourier notifies the [Denmark app](/apps/denmark) by webhook, and the app starts your import workflow for each document. There is no polling schedule to wait for — received invoices show up as soon as the network delivers them. Each received document becomes exactly one silo entry carrying the GOBL invoice, the original OIOUBL XML, and any binary attachments embedded in it, so received invoices show up like any other workflow-processed document. Registering the parties themselves is covered in the companion guide: [NemHandel supplier registration](/guides/dk-nemhandel-supplier). | - | Sandbox | Live | | - | - | - | | **Party** | Registered against eCourier's test environment | Registered on the live NemHandel network | | **Environment** | eCourier sandbox | eCourier production | ## Prerequisites * **The Denmark app connected**: navigate to **Configuration** → **Apps**, find **Denmark**, and click **Connect**. * **A party ready to register**: inbound routing is created when a party is registered, so set up the import workflow below before registering it. ## Setup **1. Create the import workflow** The import step fetches one received document, parses the OIOUBL, and files it as a GOBL silo entry with the original XML and its embedded attachments; everything after it is yours to shape: routing to a folder, setting a state, or any other processing your operation needs. > [card] [Import NemHandel invoice workflow](https://console.invopop.com/redirect/workflows/new?template=dk-import) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Example Import NemHandel invoice workflow theme={"system"} > { > "name": "Import NemHandel invoice", > "description": "Import a received OIOUBL document delivered via NemHandel", > "schema": "bill/invoice", > "steps": [ > { > "id": "a1c0f2df-4f6a-11f1-9c2d-0242ac120010", > "name": "Load from NemHandel", > "provider": "gov-dk.import", > "summary": "Fetches, parses OIOUBL, and converts to GOBL in one step" > }, > { > "id": "a1c0f2e2-4f6a-11f1-9c2d-0242ac120010", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `received`{.state .received}", > "config": { > "state": "received" > } > } > ], > "rescue": [ > { > "id": "a1c0f2e3-4f6a-11f1-9c2d-0242ac120010", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **2. Configure the app with the import workflow** Navigate to **Configuration** → **Apps**, find the **Denmark** app, tap **Configure**, and select the import workflow you just created. Every inbound document is handed to this workflow, so save the configuration before registering any party. **3. Register the party** Run the registration workflow on the party as described in the [supplier registration guide](/guides/dk-nemhandel-supplier#register-a-supplier). Registration records the participant → workspace routing that inbound delivery depends on. ## Receiving invoices From then on, reception is automatic: each document sent to a registered party becomes one silo entry processed by your import workflow. A few behaviours worth knowing: * **Delivery is push, not polling.** The network's webhook triggers the import within moments of a document arriving. * **Documents are acknowledged only after import succeeds.** A failure partway through leaves the document ready on the network to retry, so nothing is lost to a transient error; the network redelivers on its own schedule. * **Unsupported document types are surfaced, not looped.** The current release imports invoices and credit notes. An OIOUBL ApplicationResponse or Reminder is acknowledged once and the import job fails with a message naming the document type and the participant it was addressed to, so it's visible instead of being retried forever. * **Embedded attachments are preserved.** Binary attachments carried inside the OIOUBL document are extracted and stored on the silo entry alongside the XML. ## FAQ > [accordion] How do received invoices arrive? > > By push, not polling. When a document addressed to one of your registered parties lands on the network, eCourier notifies Invopop by webhook, and the Denmark app starts your configured import workflow for it. The import step fetches the document, parses the OIOUBL, converts it to a GOBL invoice, and creates a silo entry carrying the GOBL document, the original XML, and any binary attachments embedded in it. > [accordion] Which workflow processes inbound documents? > > The one you select in the Denmark app's configuration (**Configuration** → **Apps** → **Denmark** → **Configure**). Every inbound document is handed to that workflow, so create it before registering any party — its first step must be the app's import action, and everything after it is yours to shape: setting a state, filing into a folder, or any other processing. > [accordion] What happens to document types Invopop cannot process? > > The current release imports invoices and credit notes. If something else arrives — an OIOUBL ApplicationResponse or a Reminder — the app acknowledges it on the network once and fails the import job with a message naming the document type that arrived and the participant it was addressed to, so it's visible rather than silently retried forever. Support for these document types is planned for a follow-up release. > [accordion] Can a document be delivered twice? > > The network redelivers its webhook until it is acknowledged, but the import step only acknowledges a document after it has been fully processed — and a document that was already imported isn't imported again. A failure partway through leaves the document ready to retry rather than lost. More available in our [Denmark FAQ](/faq/denmark) section *** > [accordion] 🇩🇰 Invopop resources for Denmark > > | | | > | - | - | > | Compliance | [Invoicing compliance in Denmark](/compliance/denmark) [Compliance timeline](/timelines/denmark) | > | Apps | [Denmark](/apps/denmark) [Peppol](/apps/peppol) | > | Guides | [Supplier registration guide](/guides/dk-nemhandel-supplier) [Issuing invoices guide](/guides/dk-nemhandel) [Receiving invoices guide](/guides/dk-nemhandel-receiving) [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-denmark) | > | FAQ | [Denmark FAQ](/faq/denmark) | > | GOBL | [Danish OIOUBL 2.1 Addon](https://docs.gobl.org/addons/dk-oioubl-v2) [Denmark Tax Regime](https://docs.gobl.org/regimes/dk) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.dk.oioubl](https://github.com/invopop/gobl.dk.oioubl) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Denmark → # NemHandel supplier registration guide Source: https://docs.invopop.com/guides/dk-nemhandel-supplier Register Danish parties on the NemHandel network so they can send and receive invoices. ## Introduction **NemHandel** is Denmark's national e-invoicing network, run by the Danish Business Authority (Erhvervsstyrelsen). The [Denmark app](/apps/denmark) registers each of your Danish parties as a NemHandel participant through Invopop's partner [eCourier](https://ecourier.io), so the party can send and receive OIOUBL invoices over the network. Registration includes one step no other party in the flow can do for you: the supplier's representative must **sign an authorisation agreement** before the network participant can be created. The registration workflow publishes a signing link you share with them, and continues automatically once they've signed. Once a supplier is registered, continue with the companion guide: [NemHandel issuing invoices](/guides/dk-nemhandel). | - | Sandbox | Live | | - | - | - | | **Party** | Registered against eCourier's test environment | Registered on the live NemHandel network | | **Environment** | eCourier sandbox | eCourier production | ## Prerequisites * **The party's details**: legal name, **CVR number** (8-digit business registration number, uploaded as the GOBL `tax_id.code`), and a Danish address. * **A contact person on the party**: the first entry in the party's `people` list, with a name and a role in the company. The signing wizard prefills this person as the agreement's signer, and the API signing flow requires it. * **The representative's availability**: someone authorized to sign on the supplier's behalf has to complete the signing step before registration can finish. > [!NOTE] > > A registered party starts receiving inbound documents right away, so configure reception first: follow the [receiving guide's setup](/guides/dk-nemhandel-receiving#setup) to create the import workflow and select it in the app's configuration, then come back here. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Connect the Denmark app** 1. Navigate to **Configuration** → **Apps** 2. Find **Denmark** in the app discovery list 3. Click **Connect** to activate **2. Create the registration workflow** > [card] [Register on NemHandel workflow](https://console.invopop.com/redirect/workflows/new?template=dk-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Example Register on NemHandel workflow theme={"system"} > { > "name": "Register on NemHandel", > "description": "", > "schema": "org/party", > "steps": [ > { > "id": "c3e2b400-4f6a-11f1-9c2d-0242ac120012", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "e3af78f6-88d1-11f1-8000-920007eb4d91", > "name": "Sign NemHandel Agreement", > "provider": "gov-dk.sign" > }, > { > "id": "e3af9d5e-88d1-11f1-8000-920007eb4d91", > "name": "Wait for NemHandel Agreement", > "provider": "gov-dk.wait.approval" > }, > { > "id": "c3e2b401-4f6a-11f1-9c2d-0242ac120012", > "name": "Register on NemHandel", > "provider": "gov-dk.register" > }, > { > "id": "c3e2b402-4f6a-11f1-9c2d-0242ac120012", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [] > } > ``` ## Register a supplier **1. Upload the party** Create a silo entry with the party's details. The example below shows the fields a Danish party carries; the name, the CVR number, and the contact person are what registration uses: ```json Denmark supplier example expandable theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "Nordlys Software ApS", "tax_id": { "country": "DK", "code": "16356700" }, "people": [ { "name": { "given": "Mette", "surname": "Kristensen" }, "role": "Director" } ], "addresses": [ { "num": "24", "street": "Vesterbrogade", "locality": "København V", "code": "1620", "country": "DK" } ], "emails": [ { "addr": "faktura@nordlys.dk" } ] } ``` **2. Run the registration workflow** Run the registration workflow on the party's silo entry, from the Console or [via the API](/api-ref/transform/jobs/create-a-job-post). The workflow publishes the authorisation agreement and pauses at the **wait for approval** step until it is signed. **3. Share the signing link** The workflow adds a public **agreement signing link** to the party's silo entry. Open the party in the Console to copy it, and send it to the supplier's representative. **4. Have the representative sign** The link opens a short hosted wizard: the representative confirms their name and role (prefilled from the party's contact person), reviews the agreement document, and signs it — drawing a signature that is stamped onto the agreement. **5. Wait for registration to complete** As soon as the agreement is signed, the workflow resumes on its own: it uploads the signed agreement, creates the party's NemHandel participant, and records the routing that delivers the party's inbound documents to your workspace. The party's entry ends in the `registered` state. > [!NOTE] > > The party is registered under its NemHandel participant identifier: the first `endpoints` entry on the party if it has one (a `GLN:` number, for example), otherwise the `DK:CVR` identifier derived from its Danish tax ID. > [!WARNING] > > A participant can only be held by one Invopop workspace. If another workspace has already registered the same identifier, registration fails with `this party is registered on NemHandel by a different workspace`. ## Sign the agreement via the API Integrators building their own onboarding UI can drive the signing step without the hosted wizard. The Denmark app exposes two endpoints on its service, authenticated per enrollment; both take `?sandbox=true` (or `"sandbox": true` in the body) to address the sandbox environment: | Endpoint | Purpose | | - | - | | `GET /v1/entry/:silo_entry_id/agreement` | The agreement PDF to render on screen: the signed one once it exists, the unsigned document before that. | | `POST /v1/entry/:silo_entry_id/sign` | Sign it. Send `document` with a PDF you signed yourself, or `signature` with a drawn PNG/JPEG to have it stamped onto ours; send neither and the signer's typed name is used. | Both endpoints read the signer from the party entry, so the first person in the party's `people` list must carry a name and a role before either is called. ## Unregister a supplier To offboard a party, create the unregister workflow and run it on the party's silo entry: it releases the registration, removing the NemHandel participant along with the routing that delivered its inbound documents to your workspace. > [card] [Unregister from NemHandel workflow](https://console.invopop.com/redirect/workflows/new?template=dk-unregister) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Example Unregister from NemHandel workflow theme={"system"} > { > "name": "Unregister from NemHandel", > "description": "Release a party's NemHandel registration so it no longer sends or receives", > "schema": "org/party", > "steps": [ > { > "id": "b0ebea5e-8907-11f1-8000-920007eb4d91", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "b0ec50f2-8907-11f1-8000-920007eb4d91", > "name": "Unregister from NemHandel", > "provider": "gov-dk.unregister" > }, > { > "id": "b0ecc1fe-8907-11f1-8000-920007eb4d91", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "b0ed13f2-8907-11f1-8000-920007eb4d91", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!WARNING] > > An unregistered party can no longer send or receive over NemHandel, and documents addressed to it after unregistration will not reach your workspace. To operate on its behalf again, run the registration workflow again. At this point, you're ready to start sending invoices on behalf of the supplier. Head over to the [NemHandel issuing invoices guide](/guides/dk-nemhandel) to continue. ## FAQ > [accordion] Why does registration involve signing an agreement? > > NemHandel registration runs through Invopop's partner **eCourier**, which requires a signed authorisation agreement from the supplier before it can create the supplier's NemHandel participant. That's why the registration workflow has three steps: publish the agreement for signing, wait until the supplier's representative signs it, and only then register the participant. > [accordion] Who signs the agreement, and how? > > A representative of the supplier — typically a director or other authorized signatory. The registration workflow publishes a **public signing link** on the party's silo entry; share it with the representative and they complete a short hosted wizard: confirm their details, review the agreement, and sign. If the party's `people` list carries a person with a name and role, the wizard prefills them as the signer. Integrators building their own onboarding UI can drive the same flow [over the API](/guides/dk-nemhandel-supplier#sign-the-agreement-via-the-api). > [accordion] What identifier is the party registered under? > > Its NemHandel participant identifier: the party's first GOBL `endpoints` entry if it has one (for example a `GLN:` number), otherwise the **`DK:CVR`** identifier derived from the party's Danish tax ID. NemHandel uses symbolic schemes (`DK:CVR`, `DK:SE`, `GLN`) rather than Peppol's numeric ISO 6523 codes. > [accordion] Why was my registration refused with “registered on NemHandel by a different workspace”? > > Each NemHandel participant can only be held by one Invopop workspace. If another workspace has already registered the same identifier, registration is refused — which workspace holds it is not disclosed. Re-running registration for a party your own workspace already registered is fine: it's treated as a retry, not an error. > [accordion] Can I unregister a party? > > Yes. Run the unregister workflow on the party's silo entry: it releases the NemHandel registration, removing the participant and the routing that delivered inbound documents to your workspace. To send or receive on behalf of that party again, you'll need to register it again. More available in our [Denmark FAQ](/faq/denmark) section *** > [accordion] 🇩🇰 Invopop resources for Denmark > > | | | > | - | - | > | Compliance | [Invoicing compliance in Denmark](/compliance/denmark) [Compliance timeline](/timelines/denmark) | > | Apps | [Denmark](/apps/denmark) [Peppol](/apps/peppol) | > | Guides | [Supplier registration guide](/guides/dk-nemhandel-supplier) [Issuing invoices guide](/guides/dk-nemhandel) [Receiving invoices guide](/guides/dk-nemhandel-receiving) [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-denmark) | > | FAQ | [Denmark FAQ](/faq/denmark) | > | GOBL | [Danish OIOUBL 2.1 Addon](https://docs.gobl.org/addons/dk-oioubl-v2) [Denmark Tax Regime](https://docs.gobl.org/regimes/dk) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.dk.oioubl](https://github.com/invopop/gobl.dk.oioubl) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Denmark → # Email guide Source: https://docs.invopop.com/guides/email An application to send emails from your workflows, with or without attachments. ## Introduction This guide will show you how to set up the Email app and its associated workflow actions for emailing invoices or sending notifications. ## Prerequisites You can send emails from `Company name ` by simply connecting the Email app. If you wish to send emails from your own domain such as `Company Name `, you will need one of the following: * A [Resend](https://resend.com) account with a [verified domain](https://resend.com/docs/dashboard/domains/introduction#verifying-a-domain) * A [SendGrid](https://sendgrid.com) account with an [authenticated domain](https://www.twilio.com/docs/sendgrid/ui/account-and-settings/how-to-set-up-domain-authentication) * An SMTP server which is authorized to send emails from your domain ([Gmail](https://support.google.com/a/answer/176600?hl=en), [iCloud](https://support.apple.com/en-us/102525), [Amazon SES](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html)) > [!WARNING] > > In the case of SMTP delivery we strongly recommend using an *app password* or *token* if your service provider allows it. This is the best security practice because it allows you to revoke authorization at any time, even if you lose access to Invopop. ## Setup **1. Connect the Email app.** Head over to `Configuration → Apps`, and find `Email` from the list of apps to discover. Tap the **Connect** button to enable. ![Email app connected](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/email-connect.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=50729c9e9bb83051aa9f6caef755e41c) **2. Add Senders** After connecting the Email app, click on `Configure`. You will find a pre-defined email address `Invopop Email `. Editing this email address will allow you to customize the Sender name, allowing you to send emails with your company name `Company Name `. You can add as many senders as you need by tapping on the `Add` button. Email providers other than Invopop will allow you to use your own domain name (after it's configured with the email provider). **3. Set up your workflow** Whether you start from an existing or new workflow, make sure that you add the `Send email` step after you have issued an invoice via the corresponding tax authority and generated a PDF (if required). This will ensure the necessary files are attached, and that the invoice complies with local regulatory requirements. ![Workflow with email actions](https://assets.invopop.com/docs/email/email-screen2.png) If you simply want to send a `Notification via Email`, this suggestion does not apply, as no files are attached. ## Workflow actions The Email app adds two items to your workflow action list: 1. **Send email**: this action will attach the files associated with a silo entry, and is mainly used for sending invoices to customers or other recipients. 2. **Notify via Email**: this action will *not* attach files, and is meant for sending messages such as notifications or failures. ## Workflow step configuration ![Email step configuration](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/email-configuration.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=f965dd2d9f369838f87d9092c9557be8) **Sender**\ Here you will find Senders which were added in the Email app configuration. A sender can be thought of as a person or company name and email address. **To**\ Check `Automatically add invoice customers` if you wish to send the invoice as an attachment to the customer. This is usually the case for B2C workflows. If you wish to send the email with attachments to a specific address, tap on the `Add` button and write an address in the email field. You can combine both options: any addresses you add manually are merged with the automatically detected customer or party emails, so all recipients receive the message. **BCC**\ BCC stands for *Blind Carbon Copy*, and is used when you do not want the recipients in this field to appear in the message header. Other recipients won't know that a copy was sent to these addresses. This is useful to send a copy of the invoice to yourself, for example. **Reply To**\ The "Reply To" field requires a valid email address where recipients' responses will be directed. This field determines where replies go, regardless of the sending address. **Subject**\ The email subject field is a brief heading that summarizes your message's purpose. This field allows you to use template variables in order to customize the subject for the recipient. > [!TIP] > > For maximum effectiveness, keep it clear and specific (e.g., "Invoice #12345 from Acme Inc."). Many email clients display only the first 60-70 characters of a subject, so prioritize key information at the beginning. **Body**\ The email body textarea is where you compose your message's main content. This field allows template variables and will preserve whitespace. **Combine attachments into a single zip file**\ It's possible that your workflow generates several files per invoice (sometimes an XML and a PDF file are required by legislation). This option allows you to combine and compress all files into a single `.zip` file. *** ## Custom template variables with job args In addition to the predefined variables available in the **Insert variable** menu, you can inject custom variables into your email templates using job args. This is particularly useful for dynamic content like payment links, conditional text, and other external data. ### How it works When [using the API to run a workflow](/api-ref/transform/jobs/create-a-job-put) you pass an `args` data object with custom variables you want to inject into your email. You will then introduce the variable into the email's subject or body with the following syntax: `{{args.variable_name}}`. If you need to provide a fallback in case the variable is not present, we recommend using the following syntax: `{{ or args.value "Default value" }}`. ### Example: adding a payment link Let's say you want to send an email with a custom payment link. Here's how to set it up: **1. Configure your email template** In the email body field you can use both UI variables (in this case `Customer Name` and `Full Code`) and custom variables `{{args.payment_link}}`. ![Email step configuration](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/email-body.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=5e4b3af234b1b7f0c9c2f70b593645be) Body field example with custom arguments **2. Execute the job with custom args** Arguments (`args`) are key-value pairs tailored to specific applications, in this case we are creating a `payment_link` which will be available to the Email App. [Create the job via API](/api-ref/transform/jobs/create-a-job-put) with the proper payload: ```json theme={"system"} { "content_type": "application/json", "silo_entry_id": "...", "workflow_id": "...", "args": { "payment_link": "https://your-payment-link.com" } } ``` **3. Verify result** The email recipient should receive an email with the following content: ``` Hello John Doe, Your invoice INV-2025-001 is attached to this email. You can pay it here: https://your-payment-link.com Best regards, Invopop ``` > [!NOTE] > > **Key points** > > * Use `{{args.variable_name}}` syntax in email templates for custom variables > * Include the same variable names in the `args` object when executing the job via API > * Custom variables work in both email body and subject fields > * Variable names must match exactly between template and API payload **FAQ** > [accordion] How do I get errors emailed to me when a workflow fails? > > ![Email faults](https://mintcdn.com/invopop/32KaFA1_vOohhMdV/assets/guides/email-faults.png?fit=max\&auto=format\&n=32KaFA1_vOohhMdV\&q=85\&s=b3b632ffae89917921f28c1641befaaa) > > Notify via email configuration > > Add a **Notify via email** step to the error handling area at the end of your workflow. The error handler only runs when something upstream fails, so the email is sent just for failed jobs. Alternatively, if you handle the exception, add it in the exception handling area nested in the step. > > Configure the step like this: > > * **To** — your own address (or a shared inbox / distribution list). > * **Subject** — write a short label such as `Error on invoice`. You can use the Insert variable button to append the **Full Code** so you can identify which document failed. > * **Body** — describe the problem, then use Insert variable to add the **Full Code** and the **Faults** variable. `Faults` expands into the list of errors that caused the job to fail, so you get the full reason without opening the console. > > For example, a body of `Invoice [Full Code] has the following errors: [Faults]` produces a message naming the document and listing every error. > > Once saved, any job that fails will trigger this step and send you the error details automatically. > [accordion] Is email in sandbox limited in any way? > > We strive to make our sandbox workspaces as similar to our live workspaces as possible. However, in order to prevent abuse and email mistakes, the following differences should be observed in Sandbox: > > * Emailing customers is disabled in sandbox workspaces. > * Emailing suppliers is disabled in sandbox workspaces. > * Invoice PDFs will have a "Sample" watermark. > * `[Invopop Test]` will be prepended to the subject. > [accordion] How do I set up Gmail as my SMTP server > > Follow [the instructions in this support guide](https://support.google.com/a/answer/176600?hl=en). Setting up an SMTP relay allows you more fine-grained control over your email needs and has the largest quota (up to 10,000 recipients per day); but can only be set up by an account administrator. > > Gmail's SMTP server allows up to 2,000 emails per day. It can be set up by an end-user by creating an [app password](https://support.google.com/mail/answer/185833) and using the set-up configuration listed in the Google support guide. > [accordion] How do I set up iCloud Mail > > Follow the instructions found in [iCloud Mail server settings for other email client apps](https://support.apple.com/en-us/102525). > [accordion] How do I set up Microsoft 365 > > Follow the instructions found in [How to set up a multifunction device or application to send emails using Microsoft 365 or Office 365](https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365) > [accordion] How do I set up Amazon SES > > Follow the instructions found in [Using the Amazon SES SMTP interface to send email](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp.html) > [accordion] My custom variable displays as \ > > This means the job's `args` key/value pair was not set. Ensure that you pass a value, even if it's empty: > > ```json theme={"system"} > { > "content_type": "application/json", > "silo_entry_id": "...", > "workflow_id": "...", > "args": { > "payment_link": "" > } > } > ``` > > Alternatively, you can handle undefined `args` by using a fallback: > > ``` > {{or args.variable_name "Default value"}} > ``` > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about email integration → # Facturae guide Source: https://docs.invopop.com/guides/es-facturae Generate Facturae XML invoices for B2G in Spain. ## Introduction **Facturae** is Spain's official XML invoice format for **Business-to-Government (B2G)** transactions. The current version is **Facturae 3.2.2**, and invoices are submitted to public administrations through the [FACe](https://face.gob.es/) platform. Facturae is required when invoicing any Spanish public administration body (central government, regional governments, local councils, etc.). Unlike other Spanish tax reporting systems (VERI\*FACTU, SII), Facturae does not require supplier registration — you simply generate the XML and submit it. ## Prerequisites To generate Facturae invoices, ensure you have: * An invoice with: * Supplier details (company name, tax ID, full address). Check the [Spanish](https://docs.gobl.org/regimes/es) regime for specifics. * Line items with name, price, and applicable taxes. ## Facturae setup To generate Facturae invoices, follow these instructions in the [Invopop Console](https://console.invopop.com): **1. Connect the Spain app** 1. Navigate to **Configuration** → **Apps**. 2. Locate **Spain** in the app discovery list. 3. Click **Connect** to activate. No additional configuration is needed. **2. Configure invoice workflow** > [card] [Facturae Generate Invoice](https://console.invopop.com/redirect/workflows/new?template=es-facturae) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Facturae generate invoice workflow theme={"system"} > { > "name": "Facturae generate invoice", > "description": "Generate a Facturae XML invoice", > "schema": "bill/invoice", > "steps": [ > { > "id": "dc2d4780-0be4-11f1-99f1-2d47ed7bc202", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · Facturae · 000001", > "config": { > "name": "Facturae", > "padding": 6, > "start": 1 > } > }, > { > "id": "e2d8e3f0-0be4-11f1-99f1-2d47ed7bc202", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "ef9897c0-0be4-11f1-99f1-2d47ed7bc202", > "name": "Generate Facturae XML", > "provider": "gov-es.facturae.generate", > "summary": "Generate Facturae", > "config": { > "add_timestamp": false > } > } > ], > "rescue": [ > { > "id": "d64537b0-8f42-11f1-a600-732c445d0f9d", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Administrative centers (DIR3 codes) > [!NOTE] > > When invoicing Spanish **public administrations** via FACe, you must include three administrative centers identified by their **DIR3 codes**. Each public body publishes these codes in the [DIR3 directory](https://administracionelectronica.gob.es/ctt/dir3). The three required roles and their corresponding GOBL fields are: | Facturae Role | Code | GOBL Field | | - | - | - | | **Oficina Contable** (Accounting Office) | `01` | `customer.identities[]` with `scope: "tax"` | | **Órgano Gestor** (Managing Body) | `02` | `delivery.receiver.identities[0]` | | **Unidad Tramitadora** (Processing Unit) | `03` | `ordering.buyer.identities[0]` | See the FACe example below for a complete invoice with all three administrative centers. ## Running Use the following example GOBL documents to generate Facturae invoices. > [accordion] Facturae B2G Invoice > > A standard Facturae invoice from a Spanish supplier to a Spanish public sector customer. > > Notice: > > * the [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3) addon is required, > * the `es-facturae-doc-type` and `es-facturae-invoice-class` tax extensions are set automatically by the addon when the document is built or uploaded — the built version shows the derived values, > * both supplier and customer must have full address details and valid Spanish tax IDs. > > ```json Facturae B2G Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-facturae-v3" > ], > "code": "TEST01001F", > "issue_date": "2021-12-08", > "supplier": { > "name": "Hypeprop Sl", > "alias": "Hypeprop", > "tax_id": { > "country": "ES", > "code": "B23103039" > }, > "people": [ > { > "name": { > "given": "Paloma", > "surname": "Araujo" > } > } > ], > "addresses": [ > { > "num": "74", > "street": "Campo Real", > "locality": "Torrejón De La Calzada", > "region": "Madrid", > "code": "28023", > "country": "ES" > } > ], > "emails": [ > { > "addr": "rxazy27xfc@iname.com" > } > ], > "telephones": [ > { > "label": "office", > "num": "+34910730028" > } > ] > }, > "customer": { > "name": "Moniward Sl", > "tax_id": { > "country": "ES", > "code": "B77436020" > }, > "addresses": [ > { > "num": "35", > "street": "Plaza Horno", > "locality": "Nombela", > "region": "Toledo", > "code": "45083", > "country": "ES" > } > ], > "emails": [ > { > "addr": "bfn25xf3p@lycos.co.uk" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Operations and development - day rate", > "price": "200.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > }, > { > "quantity": "2", > "item": { > "name": "Additional Overtime", > "price": "101.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2021-12-30", > "percent": "100%" > } > ], > "notes": "Some kind of payment term note" > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "ES25 0188 2570 7185 4470 4761", > "name": "Bankrandom" > } > ] > } > }, > "notes": [ > { > "key": "general", > "text": "Thank you for your custom!" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-facturae-v3" > ], > "type": "standard", > "code": "TEST01001F", > "issue_date": "2021-12-08", > "currency": "EUR", > "tax": { > "ext": { > "es-facturae-doc-type": "FC", > "es-facturae-invoice-class": "OO" > } > }, > "supplier": { > "name": "Hypeprop Sl", > "alias": "Hypeprop", > "tax_id": { > "country": "ES", > "code": "B23103039" > }, > "people": [ > { > "name": { > "given": "Paloma", > "surname": "Araujo" > } > } > ], > "addresses": [ > { > "num": "74", > "street": "Campo Real", > "locality": "Torrejón De La Calzada", > "region": "Madrid", > "code": "28023", > "country": "ES" > } > ], > "emails": [ > { > "addr": "rxazy27xfc@iname.com" > } > ], > "telephones": [ > { > "label": "office", > "num": "+34910730028" > } > ] > }, > "customer": { > "name": "Moniward Sl", > "tax_id": { > "country": "ES", > "code": "B77436020" > }, > "addresses": [ > { > "num": "35", > "street": "Plaza Horno", > "locality": "Nombela", > "region": "Toledo", > "code": "45083", > "country": "ES" > } > ], > "emails": [ > { > "addr": "bfn25xf3p@lycos.co.uk" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Operations and development - day rate", > "price": "200.00" > }, > "sum": "4000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%" > } > ], > "total": "4000.00" > }, > { > "i": 2, > "quantity": "2", > "item": { > "name": "Additional Overtime", > "price": "101.00" > }, > "sum": "202.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%" > } > ], > "total": "202.00" > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2021-12-30", > "amount": "5084.42", > "percent": "100%" > } > ], > "notes": "Some kind of payment term note" > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "ES25 0188 2570 7185 4470 4761", > "name": "Bankrandom" > } > ] > } > }, > "totals": { > "sum": "4202.00", > "total": "4202.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "4202.00", > "percent": "21.0%", > "amount": "882.42" > } > ], > "amount": "882.42" > } > ], > "sum": "882.42" > }, > "tax": "882.42", > "total_with_tax": "5084.42", > "payable": "5084.42" > }, > "notes": [ > { > "key": "general", > "text": "Thank you for your custom!" > } > ] > } > ``` > [accordion] Facturae Credit Note > > A corrective invoice (credit note) referencing a previous Facturae invoice. > > Notice: > > * the `type` is set to `credit-note`, > * a `preceding` entry references the original invoice with the `es-facturae-correction` code, > * the addon derives the `es-facturae-invoice-class` extension as `OR` (rectificativa) during build — you don't need to set it by hand. > > ```json Facturae Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-facturae-v3" > ], > "type": "credit-note", > "code": "TEST01001R", > "issue_date": "2021-12-08", > "preceding": [ > { > "type": "standard", > "issue_date": "2021-12-08", > "code": "TEST01001F", > "ext": { > "es-facturae-correction": "01" > } > } > ], > "supplier": { > "name": "Hypeprop Sl", > "alias": "Hypeprop", > "tax_id": { > "country": "ES", > "code": "B23103039" > }, > "people": [ > { > "name": { > "given": "Paloma", > "surname": "Araujo" > } > } > ], > "addresses": [ > { > "num": "74", > "street": "Campo Real", > "locality": "Torrejón De La Calzada", > "region": "Madrid", > "code": "28023", > "country": "ES" > } > ], > "emails": [ > { > "addr": "rxazy27xfc@iname.com" > } > ], > "telephones": [ > { > "label": "office", > "num": "+34910730028" > } > ] > }, > "customer": { > "name": "Moniward Sl", > "tax_id": { > "country": "ES", > "code": "B77436020" > }, > "addresses": [ > { > "num": "35", > "street": "Plaza Horno", > "locality": "Nombela", > "region": "Toledo", > "code": "45083", > "country": "ES" > } > ], > "emails": [ > { > "addr": "bfn25xf3p@lycos.co.uk" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Operations and development - day rate", > "price": "200.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > }, > { > "quantity": "2", > "item": { > "name": "Additional Overtime", > "price": "101.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "Thank you for your custom!" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-facturae-v3" > ], > "type": "credit-note", > "code": "TEST01001R", > "issue_date": "2021-12-08", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2021-12-08", > "code": "TEST01001F", > "ext": { > "es-facturae-correction": "01" > } > } > ], > "tax": { > "ext": { > "es-facturae-doc-type": "FC", > "es-facturae-invoice-class": "OR" > } > }, > "supplier": { > "name": "Hypeprop Sl", > "alias": "Hypeprop", > "tax_id": { > "country": "ES", > "code": "B23103039" > }, > "people": [ > { > "name": { > "given": "Paloma", > "surname": "Araujo" > } > } > ], > "addresses": [ > { > "num": "74", > "street": "Campo Real", > "locality": "Torrejón De La Calzada", > "region": "Madrid", > "code": "28023", > "country": "ES" > } > ], > "emails": [ > { > "addr": "rxazy27xfc@iname.com" > } > ], > "telephones": [ > { > "label": "office", > "num": "+34910730028" > } > ] > }, > "customer": { > "name": "Moniward Sl", > "tax_id": { > "country": "ES", > "code": "B77436020" > }, > "addresses": [ > { > "num": "35", > "street": "Plaza Horno", > "locality": "Nombela", > "region": "Toledo", > "code": "45083", > "country": "ES" > } > ], > "emails": [ > { > "addr": "bfn25xf3p@lycos.co.uk" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Operations and development - day rate", > "price": "200.00" > }, > "sum": "4000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%" > } > ], > "total": "4000.00" > }, > { > "i": 2, > "quantity": "2", > "item": { > "name": "Additional Overtime", > "price": "101.00" > }, > "sum": "202.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%" > } > ], > "total": "202.00" > } > ], > "totals": { > "sum": "4202.00", > "total": "4202.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "4202.00", > "percent": "21.0%", > "amount": "882.42" > } > ], > "amount": "882.42" > } > ], > "sum": "882.42" > }, > "tax": "882.42", > "total_with_tax": "5084.42", > "payable": "5084.42" > }, > "notes": [ > { > "key": "general", > "text": "Thank you for your custom!" > } > ] > } > ``` > [accordion] Facturae FACe Invoice (with Administrative Centers) > > An invoice addressed to a public administration via the FACe platform, including the three required DIR3 administrative centers. > > Notice: > > * the customer includes an identity with `scope: "tax"` for the **Oficina Contable** (DIR3 code `01`), > * `delivery.receiver` includes the **Órgano Gestor** identity (DIR3 code `02`), > * `ordering.buyer` includes the **Unidad Tramitadora** identity (DIR3 code `03`), > * each public body publishes their DIR3 codes — look them up in the [DIR3 directory](https://administracionelectronica.gob.es/ctt/dir3). > > ```json Facturae FACe Invoice (B2G with Admin Centers) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-facturae-v3" > ], > "code": "TEST01002F", > "issue_date": "2021-12-08", > "supplier": { > "name": "Hypeprop Sl", > "alias": "Hypeprop", > "tax_id": { > "country": "ES", > "code": "B23103039" > }, > "people": [ > { > "name": { > "given": "Paloma", > "surname": "Araujo" > } > } > ], > "addresses": [ > { > "num": "74", > "street": "Campo Real", > "locality": "Torrejón De La Calzada", > "region": "Madrid", > "code": "28023", > "country": "ES" > } > ], > "emails": [ > { > "addr": "rxazy27xfc@iname.com" > } > ], > "telephones": [ > { > "label": "office", > "num": "+34910730028" > } > ] > }, > "customer": { > "name": "Ayuntamiento de Madrid", > "tax_id": { > "country": "ES", > "code": "P2807900B" > }, > "identities": [ > { > "scope": "tax", > "code": "L01280796" > } > ], > "addresses": [ > { > "num": "4", > "street": "Plaza de la Villa", > "locality": "Madrid", > "region": "Madrid", > "code": "28005", > "country": "ES" > } > ], > "emails": [ > { > "addr": "facturacion@madrid.es" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Services rendered", > "price": "200.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ], > "ordering": { > "buyer": { > "name": "Departamento de Compras", > "identities": [ > { > "code": "LA0007408" > } > ], > "addresses": [ > { > "num": "10", > "street": "Gran Vía", > "locality": "Madrid", > "region": "Madrid", > "code": "28013", > "country": "ES" > } > ] > } > }, > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2021-12-30", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "ES25 0188 2570 7185 4470 4761", > "name": "Bankrandom" > } > ] > } > }, > "delivery": { > "receiver": { > "name": "Concejalía de Hacienda", > "identities": [ > { > "code": "LA0007407" > } > ], > "addresses": [ > { > "num": "3", > "street": "Calle Alcalá", > "locality": "Madrid", > "region": "Madrid", > "code": "28014", > "country": "ES" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-facturae-v3" > ], > "type": "standard", > "code": "TEST01002F", > "issue_date": "2021-12-08", > "currency": "EUR", > "tax": { > "ext": { > "es-facturae-doc-type": "FC", > "es-facturae-invoice-class": "OO" > } > }, > "supplier": { > "name": "Hypeprop Sl", > "alias": "Hypeprop", > "tax_id": { > "country": "ES", > "code": "B23103039" > }, > "people": [ > { > "name": { > "given": "Paloma", > "surname": "Araujo" > } > } > ], > "addresses": [ > { > "num": "74", > "street": "Campo Real", > "locality": "Torrejón De La Calzada", > "region": "Madrid", > "code": "28023", > "country": "ES" > } > ], > "emails": [ > { > "addr": "rxazy27xfc@iname.com" > } > ], > "telephones": [ > { > "label": "office", > "num": "+34910730028" > } > ] > }, > "customer": { > "name": "Ayuntamiento de Madrid", > "tax_id": { > "country": "ES", > "code": "P2807900B" > }, > "identities": [ > { > "scope": "tax", > "code": "L01280796" > } > ], > "addresses": [ > { > "num": "4", > "street": "Plaza de la Villa", > "locality": "Madrid", > "region": "Madrid", > "code": "28005", > "country": "ES" > } > ], > "emails": [ > { > "addr": "facturacion@madrid.es" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Services rendered", > "price": "200.00" > }, > "sum": "4000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%" > } > ], > "total": "4000.00" > } > ], > "ordering": { > "buyer": { > "name": "Departamento de Compras", > "identities": [ > { > "code": "LA0007408" > } > ], > "addresses": [ > { > "num": "10", > "street": "Gran Vía", > "locality": "Madrid", > "region": "Madrid", > "code": "28013", > "country": "ES" > } > ] > } > }, > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2021-12-30", > "amount": "4840.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "ES25 0188 2570 7185 4470 4761", > "name": "Bankrandom" > } > ] > } > }, > "delivery": { > "receiver": { > "name": "Concejalía de Hacienda", > "identities": [ > { > "code": "LA0007407" > } > ], > "addresses": [ > { > "num": "3", > "street": "Calle Alcalá", > "locality": "Madrid", > "region": "Madrid", > "code": "28014", > "country": "ES" > } > ] > } > }, > "totals": { > "sum": "4000.00", > "total": "4000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "4000.00", > "percent": "21.0%", > "amount": "840.00" > } > ], > "amount": "840.00" > } > ], > "sum": "840.00" > }, > "tax": "840.00", > "total_with_tax": "4840.00", > "payable": "4840.00" > } > } > ``` > [!NOTE] > > In your invoice data, make sure to include the [`es-facturae-v3` addon](https://docs.gobl.org/addons/es-facturae-v3) and set the regime to `ES`. Once you have saved in Invopop, select Run workflow and select "Facturae Generate Invoice" from the sidebar. *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Spain FAQ](/faq/spain) > > Find answers to frequently asked questions about invoicing in Spain → > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # AEAT tax ID lookup guide Source: https://docs.invopop.com/guides/es-lookup Verify Spanish tax IDs (NIF/CIF) and normalize names in workflows using AEAT. ## Introduction Validating a party’s Spanish tax ID before registering a supplier or issuing an invoice reduces rejections and data-entry errors. This guide shows how to add AEAT (Spanish Tax Agency) checks to your [workflows](/guides/workflows) so you can: * Verify that a NIF/CIF exists in the AEAT census. * Ensure an individual’s name matches the tax ID on record. * Optionally normalize names to the official AEAT format. > [!TIP] > > To validate Spanish NIFs and EU VAT numbers in your workflows, use the [Lookup app](/guides/lookup). ## Setup Enable the Spain app to use AEAT verification: 1. Go to **Configuration** > **Apps** in the [Console](https://console.invopop.com). 2. Find **Spain** in the app list. 3. Click **Connect** to activate the app. After connecting, you’ll see Spain listed under Enabled Apps. Two workflow steps will become available: * [Verify tax IDs (NIF/CIF)](#verify-tax-ids-nifcif) * [Verify & correct tax details](#verify--correct-tax-details) ## Verify tax IDs (NIF/CIF) You can add the **Verify Spanish Tax ID** step to your `invoice` or `party` workflows. In invoice workflows, it evaluates supplier and customer by default. You can configure this in the step: ![Configure the Verify Spanish Tax ID step for invoices](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-lookup-config.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=fc7194d6585fe2cdf5667d5e3cee39e7) Configure the Verify Spanish Tax ID step for invoices For companies, the "Verify Spanish Tax ID" step confirms the tax ID exists in the AEAT census. For individuals, the step additionally confirms that the tax id matches the person’s full name. The following outcomes are possible: * **Validation passes**: returns `OK`. * **Validation fails**: returns `KO`. * **Skips validation when:** 1. The party is empty, 2. No tax ID is provided, 3. The tax ID is not Spanish. > [tab] Invoice workflow example > > ![Example of an invoice workflow using Verify Spanish Tax ID](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-lookup-verify-invoice-wf.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=22fb32aeb868b578d232d62fdf3f1923) > [tab] Party workflow example > > ![Example of a party workflow using Verify Spanish Tax ID](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-lookup-verify-party-wf.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=f61c0c8c45865f27500c131eeeca7409) ## Verify & correct tax details This step both verifies the tax ID and normalizes names with AEAT data. If the party is a company, the entry will be updated with the official company name in the AEAT census. In the case of individuals, a name is still required for matching, but the step updates the name to the AEAT-returned format. Example: for “Pablo Martínez Gutiérrez,” AEAT may return `MARTINEZ GUTIERREZ PABLO`. Use this when you want the system to automatically update the `invoice` or `party` entry with the normalized name. The workflow usage is identical to the verification-only step; the difference is that this step also writes the corrected values. ![Verify & correct tax details step](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-lookup-verify-correct.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=e92aacaa70f23f8e004fe7ff9fe4ae16) Verify & correct tax details step *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Spain FAQ](/faq/spain) > > Find answers to frequently asked questions about invoicing in Spain → > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # NO VERI*FACTU invoicing guide Source: https://docs.invopop.com/guides/es-noverifactu Issue invoices in Spain with NO VERI*FACTU. ## Introduction NO VERI\*FACTU is one of the two compliance modalities defined by Spain's Real Decreto 1007/2023. In this modality, invoicing records are **not** sent to the AEAT in real time. Instead, they are digitally signed using XAdES Enveloped Signature and stored locally to guarantee integrity and inalterability. Records are only submitted to the AEAT upon explicit requirement. ## Prerequisites To issue your first NO VERI\*FACTU invoice, you must have registered at least one supplier. Make sure you read and implemented the [NO VERI\*FACTU supplier onboarding guide](/guides/es-noverifactu-supplier) before continuing with this guide. ## Setup Add a new workflow to your workspace for issuing invoices. You can start with the template below. > [card] [NO VERI\*FACTU invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-noverifactu-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json NO VERI*FACTU issue invoice workflow theme={"system"} > { > "name": "NO VERI*FACTU issue invoice", > "description": "Issue an invoice via NO VERI*FACTU and generate PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "a1b2c3d0-0001-11f1-a000-000000000001", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > }, > "next": [] > }, > { > "id": "a1b2c3d0-0001-11f1-a000-000000000002", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · NO VERI*FACTU · 000001", > "config": { > "name": "NoVerifactu", > "padding": 6, > "start": 1 > }, > "next": [] > }, > { > "id": "a1b2c3d0-0001-11f1-a000-000000000003", > "name": "Sign envelope", > "provider": "silo.close", > "next": [] > }, > { > "id": "5bb35ae0-3ca4-11f1-90b7-0d81b4010093", > "name": "Generate invoice for NO VERI*FACTU", > "provider": "gov-es.noverifactu.generate.invoice", > "next": [] > }, > { > "id": "64c2d7f0-3ca4-11f1-90b7-0d81b4010093", > "name": "Record for NO VERI*FACTU", > "provider": "gov-es.noverifactu.record", > "next": [] > }, > { > "id": "a1b2c3d0-0001-11f1-a000-000000000006", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Spanish · A4", > "config": { > "date_format": "%Y-%m-%d", > "layout": "A4", > "locale": "es", > "logo_height": 60 > }, > "next": [] > }, > { > "id": "a1b2c3d0-0001-11f1-a000-000000000007", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > }, > "next": [] > } > ], > "rescue": [ > { > "id": "a1b2c3d0-0001-11f1-a000-000000000008", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > }, > "next": [] > } > ] > } > ``` Keep the `Workflow ID` at hand, you'll use it later. > [!NOTE] > > NO VERI\*FACTU allows for document modifications after recording. If a document contains errors, update the GOBL details and resubmit to the same workflow. ## Issue an invoice The GOBL invoice format for NO VERI\*FACTU is identical to VERI\*FACTU — both use the same [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon. The difference is in how the records are processed: NO VERI\*FACTU signs and stores them locally rather than sending them to the AEAT. **1. Upload an Invoice** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the invoice details. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data) field with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `supplier`: Use the details of the supplier you've registered before. You can copy one of the example invoices below as a reference. > [accordion] B2C Simplified Invoice > > Simplified invoices are used for B2C transactions when the customer is not a business. The transaction amount should be under €400 (VAT included) with some [exceptions](https://sede.agenciatributaria.gob.es/Sede/iva/facturacion-registro/facturacion-iva/tipos-factura.html) in which this threshold is increased to €3,000. > > To create a simplified VERI\*FACTU invoice, include the `simplified` tag in your GOBL document with the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon. > > ```json B2C Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a standard tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F2" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a standard tax" > } > ] > } > ``` > [accordion] B2B Standard Invoice > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > * The customer is a registered business (has a tax identification number). > * The transaction amount is €400 VAT included or above, or the customer requires a full invoice. > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > To create a regular VERI\*FACTU invoice, include the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon and ensure the `customer` field contains valid tax identification details. The addon will automatically set the document type to `F1` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > [!NOTE] > > > > The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` NIF or VAT ID must be valid. > > ```json B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > [accordion] B2B Services EU Client (Reverse Charge) > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > * The service is provided to a business customer (B2B), not a consumer. > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > To create a reverse charge VERI\*FACTU invoice, use the tax key `reverse-charge` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the operation class to `S2` (Subject and Not Exempt - With reverse charge) when the silo entry is built. > > > [!NOTE] > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > ```json B2B Intra-community Services invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000001", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with reverse charge" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000001", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "ext": { > "es-verifactu-op-class": "S2", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "reverse-charge", > "ext": { > "es-verifactu-op-class": "S2", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with reverse charge" > } > ] > } > ``` > [accordion] B2B Goods EU Client (Intra-Community) > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > * Goods are physically delivered to another EU member state. > * The supply is exempt from VAT in the origin country (Spain) and subject to VAT in the destination country. > > To create an intra-community supply VERI\*FACTU invoice, use the tax key `intra-community` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E5` ([Artículo 25 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a25)) when the silo entry is built. > > > [!NOTE] > > > > With intra-community supplies, no VAT is charged in Spain. The customer accounts for VAT in their destination country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > ```json Intra-community goods invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000003", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "intra-community" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a intra-community" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000003", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "intra-community", > "ext": { > "es-verifactu-exempt": "E5", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "intra-community", > "ext": { > "es-verifactu-exempt": "E5", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a intra-community" > } > ] > } > ``` > [accordion] B2B Services International Client (Outside Scope) > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > To create an outside scope VERI\*FACTU invoice, use the tax key `outside-scope` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the operation class to `N2` (Not Subject - Due to location rules) when the silo entry is built. > > > [!NOTE] > > > > Services provided to non-EU customers are generally outside the scope of Spanish VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > ```json B2B International Services invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000002", > "issue_date": "2025-11-17", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "outside-scope" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a outside-scope tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000002", > "issue_date": "2025-11-17", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "outside-scope", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "outside-scope", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a outside-scope tax" > } > ] > } > ``` > [accordion] B2B Goods International Client (Export) > > Export invoices are used for B2B goods delivered to customers outside the EU. > > To create an export VERI\*FACTU invoice, use the tax key `export` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E2` ([Artículo 21 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a21)) and regime code to `02` (Export) when the silo entry is built. > > > [!NOTE] > > > > Exported goods are exempt from Spanish VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > ```json B2B International Goods invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000004", > "issue_date": "2025-11-17", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "export" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a export" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000004", > "issue_date": "2025-11-17", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "export", > "ext": { > "es-verifactu-exempt": "E2", > "es-verifactu-regime": "02" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "export", > "ext": { > "es-verifactu-exempt": "E2", > "es-verifactu-regime": "02" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a export" > } > ] > } > ``` > [accordion] B2B Exempt E1 Invoice > > Exempt `E1` invoices are used for B2B transactions that are exempt from VAT pursuant to [Artículo 20 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a20), which covers exemptions in internal operations. > > To create an exempt E1 VERI\*FACTU invoice, use the tax key `exempt` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E1` when the silo entry is built. > > > [!NOTE] > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` NIF must be valid. > > ```json B2B Exempt E1 Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "es-verifactu-exempt": "E1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "es-verifactu-exempt": "E1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > [accordion] B2C One-Stop-Shop Invoice > > One-Stop-Shop (OSS) invoices are used for B2C distance sales of goods and electronically supplied services to consumers in other EU member states when the supplier is registered under the OSS scheme. > > To create an OSS VERI\*FACTU invoice, include the `simplified` tag in your GOBL document with the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon, give the `customer` an address in the destination member state without a tax ID, and set `country` on each line's VAT to that state with the `es-verifactu-regime` extension `17`. The invoice is treated as a simplified invoice (document type `F2`), VAT is calculated at the destination country's rate, and the operation is reported as not subject to Spanish VAT under the OSS regime. > > > [!NOTE] > > > > OSS allows suppliers to register for VAT in one EU member state and account for VAT on all EU distance sales through that single registration. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and enrolled in the OSS scheme. > > ```json B2C One Stop Shop Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Anna Müller", > "addresses": [ > { > "num": "12", > "street": "Rosenthaler Straße", > "locality": "Berlin", > "code": "10119", > "country": "DE" > } > ], > "emails": [ > { > "addr": "anna.mueller@example.de" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Wireless headphones", > "price": "149.00", > "unit": "item" > }, > "sum": "298.00", > "taxes": [ > { > "cat": "VAT", > "country": "DE", > "rate": "standard", > "ext": { > "es-verifactu-regime": "17" > } > } > ], > "total": "298.00" > } > ], > "notes": [ > { > "key": "general", > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F2" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Anna Müller", > "addresses": [ > { > "num": "12", > "street": "Rosenthaler Straße", > "locality": "Berlin", > "code": "10119", > "country": "DE" > } > ], > "emails": [ > { > "addr": "anna.mueller@example.de" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Wireless headphones", > "price": "149.00", > "unit": "item" > }, > "sum": "298.00", > "taxes": [ > { > "cat": "VAT", > "country": "DE", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "17" > } > } > ], > "total": "298.00" > } > ], > "totals": { > "sum": "298.00", > "total": "298.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "country": "DE", > "key": "standard", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "17" > }, > "base": "298.00", > "percent": "19%", > "amount": "56.62" > } > ], > "amount": "56.62" > } > ], > "sum": "56.62" > }, > "tax": "56.62", > "total_with_tax": "354.62", > "payable": "354.62" > }, > "notes": [ > { > "key": "general", > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > } > ] > } > ``` > [accordion] Credit note (rectificativa por diferencias) > > ```json Rectificativa por diferencias theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", > "type": "credit-note", > "series": "CN", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004" > } > ], > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", > "type": "credit-note", > "series": "CN", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004" > } > ], > "tax": { > "ext": { > "es-verifactu-correction-type": "I", > "es-verifactu-doc-type": "R1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > } > } > ``` > [accordion] Corrective invoice (rectificativa por sustitución) > > ```json Rectificativa por sustitución theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "corrective", > "series": "CO", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > } > } > ], > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "corrective", > "series": "CO", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > } > } > ], > "tax": { > "ext": { > "es-verifactu-correction-type": "S", > "es-verifactu-doc-type": "R1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > } > } > ``` > [accordion] Replacement invoice (factura de canje) > > ```json Factura de canje theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "tax": { > "tags": [ > "replacement" > ] > }, > "series": "FC", > "issue_date": "2026-02-26", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-02-20", > "series": "FS", > "code": "001" > } > ], > "supplier": { > "name": "Easor Software Solutions S.L.", > "tax_id": { > "country": "ES", > "code": "B24830515" > }, > "addresses": [ > { > "num": "532", > "street": "Avenida Diagonal", > "locality": "Barcelona", > "region": "Barcelona", > "code": "08006", > "country": "ES" > } > ] > }, > "customer": { > "name": "Cliente Ejemplo S.L.", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Servicio de consultoría", > "price": "500.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "replacement" > ], > "type": "standard", > "series": "FC", > "issue_date": "2026-02-26", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-02-20", > "series": "FS", > "code": "001" > } > ], > "tax": { > "ext": { > "es-verifactu-doc-type": "F3" > } > }, > "supplier": { > "name": "Easor Software Solutions S.L.", > "tax_id": { > "country": "ES", > "code": "B24830515" > }, > "addresses": [ > { > "num": "532", > "street": "Avenida Diagonal", > "locality": "Barcelona", > "region": "Barcelona", > "code": "08006", > "country": "ES" > } > ] > }, > "customer": { > "name": "Cliente Ejemplo S.L.", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Servicio de consultoría", > "price": "500.00" > }, > "sum": "500.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "500.00" > } > ], > "totals": { > "sum": "500.00", > "total": "500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "500.00", > "percent": "21.0%", > "amount": "105.00" > } > ], > "amount": "105.00" > } > ], > "sum": "105.00" > }, > "tax": "105.00", > "total_with_tax": "605.00", > "payable": "605.00" > } > } > ``` > [accordion] B2C Hotel + IEET (Catalonia tourist tax) > > The Catalan tourist tax (IEET, *Impost sobre les Estades en Establiments Turístics*) is a regional tax administered by the Agència Tributària de Catalunya — not the AEAT — so it is **not** classified as a tax in the VERI\*FACTU record. Hotels declare it directly to the Generalitat through the quarterly Modelo 950. > > Model the IEET as a document-level [`charge`](https://docs.gobl.org/draft-0/bill/invoice#charge) with `key: "tax"`. This keeps it outside the VAT base (Art. 35 of Llei 5/2017 requires it to be shown separately from the consideration) and lets it flow into the invoice's `ImporteTotal` for VERI\*FACTU without being reported as a tax category. > > > [!NOTE] > > > > Do not model the IEET as a `VAT` tax line — it is a fixed amount per night, not a percentage, and should not be reported to the AEAT. The `reason` field on the charge is what appears on the guest's invoice, so include the establishment type, location, nights, and rate for a clear breakdown. > > ```json B2C Hotel + IEET (Catalonia tourist tax) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "series": "SAMPLE", > "issue_date": "2026-05-06", > "supplier": { > "name": "Hotel Barcelona Example SL", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "locality": "Barcelona", > "code": "08001", > "country": "ES" > } > ] > }, > "customer": { > "name": "John Smith", > "addresses": [ > { > "locality": "London", > "country": "GB" > } > ] > }, > "lines": [ > { > "quantity": "3", > "item": { > "name": "Double room — 3 nights", > "price": "180.00", > "unit": "day" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "reduced" > } > ] > } > ], > "charges": [ > { > "key": "tax", > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > "amount": "10.20" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-05-06", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F2" > } > }, > "supplier": { > "name": "Hotel Barcelona Example SL", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "locality": "Barcelona", > "code": "08001", > "country": "ES" > } > ] > }, > "customer": { > "name": "John Smith", > "addresses": [ > { > "locality": "London", > "country": "GB" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "3", > "item": { > "name": "Double room — 3 nights", > "price": "180.00", > "unit": "day" > }, > "sum": "540.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "10.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "540.00" > } > ], > "charges": [ > { > "i": 1, > "key": "tax", > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > "amount": "10.20" > } > ], > "totals": { > "sum": "540.00", > "charge": "10.20", > "total": "550.20", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "540.00", > "percent": "10.0%", > "amount": "54.00" > } > ], > "amount": "54.00" > } > ], > "sum": "54.00" > }, > "tax": "54.00", > "total_with_tax": "604.20", > "payable": "604.20" > } > } > ``` After uploading you'll see the document in the **Invoices** section with status `Empty`. **2. Send the Invoice to the NO VERI\*FACTU invoice workflow** Send the invoice to the NO VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *NO VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the invoice you've just uploaded. The invoice's status will change to `Recorded` when the workflow completes successfully. The signed XML record will be available in the "Files" section of the silo entry, and the generated PDF will include the required QR code. ## Issue a credit note (Rectificativa por Diferencias) In Spain, one way to correct an invoice is by issuing a credit note, known as a *Rectificativa por Diferencias*. An alternative method is to issue a *Rectificativa por Sustitución*, which involves creating a new invoice with the type corrective. The difference between the two is subtle but important: * A credit note adjusts the value of the original invoice. * A corrective invoice replaces the original invoice entirely. For example, if you issued an invoice for 100 EUR but later realized it should have been 80 EUR, you can either: * Issue a credit note for 20 EUR, or * Issue a corrective invoice for 80 EUR. Unless you have a specific requirement to use a corrective invoice we recommend only using credit notes. They're more widely supported across countries, while corrective invoices are specific to a few jurisdictions like Spain. **1. Upload a Credit Note** A credit note in Invopop is an invoice of the type credit note. The process is very similar to uploading an invoice, use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a credit note. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `supplier`: use the same supplier details as in the original invoice * `type`: `credit-note` * `preceding`: references the original invoice, within it, you must include: * `uuid`: the UUID of the original invoice (optional but recommended) * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice You can copy the example credit note below as a reference. ```json Built version theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-verifactu-v1" ], "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", "type": "credit-note", "series": "CN", "issue_date": "2025-05-29", "currency": "EUR", "preceding": [ { "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", "type": "standard", "issue_date": "2024-11-13", "series": "SAMPLE", "code": "004" } ], "tax": { "ext": { "es-verifactu-correction-type": "I", "es-verifactu-doc-type": "R1" } }, "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "sum": "1800.00", "taxes": [ { "cat": "VAT", "key": "standard", "rate": "general", "percent": "21.0%", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" } } ], "total": "1800.00" } ], "totals": { "sum": "1800.00", "total": "1800.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" }, "tax": "378.00", "total_with_tax": "2178.00", "payable": "2178.00" } } ``` After successful upload, you'll see the credit note in the **Invoices** section with status `Empty`. **2. Send the Credit Note to the NO VERI\*FACTU invoice workflow** Send the credit note to the NO VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *NO VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the credit note you've just uploaded. The credit note's status will change to `Recorded` when the workflow completes successfully. ## Issue a corrective invoice (Rectificativa por Sustitución) **1. Upload a Corrective Invoice** A corrective invoice in Invopop is an invoice of the type `corrective`. The process is very similar to uploading an invoice, use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a corrective invoice. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `supplier`: use the same supplier details as in the original invoice * `type`: `corrective` * `preceding`: references the original invoice, within it, you must include: * `uuid`: the UUID of the original invoice (optional but recommended) * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice * `tax`: the tax section of the original invoice, you can copy it from the original invoice You can copy the example corrective invoice below as a reference. ```json Built version theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-verifactu-v1" ], "type": "corrective", "series": "CO", "issue_date": "2025-05-29", "currency": "EUR", "preceding": [ { "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", "type": "standard", "issue_date": "2024-11-13", "series": "SAMPLE", "code": "004", "tax": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" } } ], "tax": { "ext": { "es-verifactu-correction-type": "S", "es-verifactu-doc-type": "R1" } }, "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "sum": "1800.00", "taxes": [ { "cat": "VAT", "key": "standard", "rate": "general", "percent": "21.0%", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" } } ], "total": "1800.00" } ], "totals": { "sum": "1800.00", "total": "1800.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" }, "tax": "378.00", "total_with_tax": "2178.00", "payable": "2178.00" } } ``` After successful upload, you'll see the corrective invoice in the **Invoices** section with status `Empty`. **2. Send the Corrective Invoice to the NO VERI\*FACTU invoice workflow** Send the corrective invoice to the NO VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *NO VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the corrective invoice you've just uploaded. The corrective invoice's status will change to `Recorded` when the workflow completes successfully. ## Issue a replacement invoice (Factura de Canje) A replacement invoice (*Factura de Canje*) is used to replace a simplified invoice with a full invoice. This is common when a customer who originally received a simplified invoice (e.g., a receipt) later requests a full invoice with their tax identification details. **1. Upload a Replacement Invoice** A replacement invoice is a standard invoice with the `replacement` tag. Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the replacement invoice. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `type`: `standard` * `tax.tags`: include `replacement` * `supplier`: use the same supplier details as in the original invoice * `preceding`: references the original simplified invoice, within it, you must include: * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice You can copy the example replacement invoice below as a reference. ```json Factura de canje theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-verifactu-v1" ], "type": "standard", "tax": { "tags": [ "replacement" ] }, "series": "FC", "issue_date": "2026-02-26", "currency": "EUR", "preceding": [ { "type": "standard", "issue_date": "2026-02-20", "series": "FS", "code": "001" } ], "supplier": { "name": "Easor Software Solutions S.L.", "tax_id": { "country": "ES", "code": "B24830515" }, "addresses": [ { "num": "532", "street": "Avenida Diagonal", "locality": "Barcelona", "region": "Barcelona", "code": "08006", "country": "ES" } ] }, "customer": { "name": "Cliente Ejemplo S.L.", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "quantity": "1", "item": { "name": "Servicio de consultoría", "price": "500.00" }, "taxes": [ { "cat": "VAT", "rate": "general" } ] } ] } ``` After successful upload, you'll see the replacement invoice in the **Invoices** section with status `Empty`. **2. Send the Replacement Invoice to the NO VERI\*FACTU invoice workflow** Send the replacement invoice to the NO VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *NO VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the replacement invoice you've just uploaded. The replacement invoice's status will change to `Recorded` when the workflow completes successfully. ## Cancel an invoice NO VERI\*FACTU allows you to cancel an invoice by generating a cancellation record. Unlike VERI\*FACTU, the cancellation is not sent to the AEAT — it is signed and stored locally. In general, you should only cancel an invoice if it hasn't been handed to the customer. Canceling an invoice doesn't produce a second document to hand to your customer. If the invoice has already been delivered, we recommend issuing a credit note instead. **1. Add a cancel invoice workflow (only once)** To cancel an invoice, you need a workflow with the *Generate Cancellation Record* and *Store Record* steps. You can start with the template below. > [card] [NO VERI\*FACTU cancel invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-noverifactu-cancel) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json NO VERI*FACTU cancel invoice workflow theme={"system"} > { > "name": "NO VERI*FACTU cancel invoice", > "description": "Cancel an invoice via NO VERI*FACTU", > "schema": "bill/invoice", > "steps": [ > { > "id": "b2c3d4e0-0002-11f1-a000-000000000005", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "9f500280-3ca4-11f1-90b7-0d81b4010093", > "name": "Generate cancellation for NO VERI*FACTU", > "provider": "gov-es.noverifactu.generate.cancel" > }, > { > "id": "a6eeb180-3ca4-11f1-90b7-0d81b4010093", > "name": "Record for NO VERI*FACTU", > "provider": "gov-es.noverifactu.record" > }, > { > "id": "b2c3d4e0-0002-11f1-a000-000000000003", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "b2c3d4e0-0002-11f1-a000-000000000004", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **2. Send to cancellation workflow** To cancel an invoice, simply send it to the NO VERI\*FACTU cancel invoice workflow created earlier using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. The invoice's status will change to `Void` when the workflow completes successfully. *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Spain FAQ](/faq/spain) > > Find answers to frequently asked questions about invoicing in Spain → > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # NO VERI*FACTU onboarding guide Source: https://docs.invopop.com/guides/es-noverifactu-supplier Register and manage suppliers in Spain with NO VERI*FACTU. ## Introduction NO VERI\*FACTU is one of the two compliance modalities defined by Spain's Real Decreto 1007/2023 for Computerized Billing Systems (SIF). Unlike VERI\*FACTU, where invoicing records are sent to the AEAT in real time, in NO VERI\*FACTU mode records are **digitally signed and stored locally** — they are only submitted to the AEAT upon explicit requirement. This guide walks you through the process of registering suppliers for NO VERI\*FACTU, including: 1. Setting up the necessary workflows. 2. Registering suppliers via the API. 3. How automatic event generation works. > [!NOTE] > > NO VERI\*FACTU supplier registration does not require an agreement signing process or identity verification. Registration is immediate upon execution. ## Setup **1. Connect the Spain and Cron apps** 1. Go to **Configuration** → **Apps** in the [Console](https://console.invopop.com). 2. Find **Spain** in the app list and click **Connect** to activate it. 3. Find **Cron** in the app list and click **Connect** to activate it. No additional configuration is needed. The [Cron app](/apps/cron) handles the periodic generation of summary events every 6 hours, as required by the regulation. **2. Create the event processing workflow** Before setting up the other workflows, you need a workflow to process event records. This workflow is used by the registration, unregistration, and summary event workflows to generate and store signed event XML records. > [card] [NO VERI\*FACTU event processing workflow](https://console.invopop.com/redirect/workflows/new?template=es-noverifactu-event) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Status workflow](https://console.invopop.com/redirect/workflows/new?template=empty-status) code view. > > ```json NO VERI*FACTU process event workflow theme={"system"} > { > "name": "NO VERI*FACTU process event", > "description": "Generate and store a NO VERI*FACTU event record", > "schema": "bill/status", > "steps": [ > { > "id": "e5f6a7b0-0005-11f1-a000-000000000004", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "bbf19740-3a6b-11f1-9a44-6748aa5d4a91", > "name": "Modify silo entry", > "provider": "silo.modify", > "summary": "Default series to \"NVF\"", > "config": { > "jq": ".series //= \"NVF\"", > "merge_type": "application/jq", > "scope": "doc" > } > }, > { > "id": "a1b2c3d0-0001-11f1-a000-000000000002", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · NO VERI*FACTU · 000001", > "config": { > "name": "NoVerifactu", > "padding": 6, > "start": 1 > } > }, > { > "id": "e5f6a7b0-0005-11f1-a000-000000000006", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "f8df5470-3c97-11f1-8c73-6dd226144d30", > "name": "Generate event for NO VERI*FACTU", > "provider": "gov-es.noverifactu.generate.event" > }, > { > "id": "050b05a0-3c98-11f1-8c73-6dd226144d30", > "name": "Record for NO VERI*FACTU", > "provider": "gov-es.noverifactu.record" > }, > { > "id": "e5f6a7b0-0005-11f1-a000-000000000005", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "e5f6a7b0-0005-11f1-a000-000000000003", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Create the summary event workflow** The regulation requires a summary event (event type `10`) to be generated every 6 hours the system has been operational. Create this workflow so that suppliers can be subscribed to it during registration. > [card] [NO VERI\*FACTU summary event workflow](https://console.invopop.com/redirect/workflows/new?template=es-noverifactu-summary-event) > > Add to my workspace → After adding the template, open the **Process Event** step and set the **Workflow** field to the event processing workflow created in the previous step. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json NO VERI*FACTU summary event workflow theme={"system"} > { > "name": "NO VERI*FACTU summary event", > "description": "Build a NO VERI*FACTU summary event (cron-driven)", > "schema": "org/party", > "steps": [ > { > "id": "f6a7b8c0-0006-11f1-a000-000000000001", > "name": "Build status for NO VERI*FACTU", > "provider": "gov-es.noverifactu.build.status", > "summary": "Build status: 10 - Summary event", > "config": { > "event_type": "10" > } > }, > { > "id": "4f527c60-3a95-11f1-a472-21be9722e465", > "name": "Create a job", > "provider": "transform.job.create", > "summary": "Send to NO VERI*FACTU process event (bill/status)", > "config": { > "silo_entry_meta_key": "", > "workflow_id": "" > } > } > ], > "rescue": [ > { > "id": "f6a7b8c0-0006-11f1-a000-000000000003", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > > After pasting the code, switch to the form view, open the **Process Event** step and set the **Workflow** field to the event processing workflow created in the previous step. > [!NOTE] > > You won't need to run this workflow manually. The registration workflow will automatically subscribe each supplier to periodic execution of this workflow using the [Cron app](/apps/cron). When a supplier is unregistered, the unregistration workflow will unsubscribe them. **4. Create a supplier registration workflow** Create a new workflow for registering suppliers. This workflow registers the supplier, generates the mandatory "Start of NO VERI\*FACTU mode" event (event type `01`), and subscribes the supplier to periodic summary event generation every 6 hours. > [card] [NO VERI\*FACTU supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=es-noverifactu-supplier-registration) > > Add to my workspace → After adding the template, open the **Process Event** step and set the **Workflow** field to the event processing workflow. Then open the **Subscribe to summary event cron** step and set the **Workflow** field to the summary event workflow. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json NO VERI*FACTU register supplier workflow theme={"system"} > { > "name": "NO VERI*FACTU register supplier", > "description": "Register a supplier with NO VERI*FACTU, generate the start-of-mode event, and subscribe to summary events", > "schema": "org/party", > "steps": [ > { > "id": "c21b4130-3a65-11f1-a475-db4c42dd4e99", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > }, > "next": [] > }, > { > "id": "78e845e0-3ca3-11f1-90b7-0d81b4010093", > "name": "Register supplier with NO VERI*FACTU", > "provider": "gov-es.noverifactu.register", > "next": [] > }, > { > "id": "8857fe80-3ca3-11f1-90b7-0d81b4010093", > "name": "Build status for NO VERI*FACTU", > "provider": "gov-es.noverifactu.build.status", > "next": [], > "summary": "Build status: 01 - Start of NO VERI*FACTU mode", > "config": { > "event_type": "01" > } > }, > { > "id": "d16d34a0-3a91-11f1-a472-21be9722e465", > "name": "Create a job", > "provider": "transform.job.create", > "summary": "Send to NO VERI*FACTU process event (bill/status)", > "config": { > "silo_entry_meta_key": "", > "workflow_id": "" > }, > "next": [] > }, > { > "id": "03cb3000-3a92-11f1-a472-21be9722e465", > "name": "Subscribe to periodic execution", > "provider": "cron.subscribe", > "summary": "Every 6 hours", > "config": { > "workflow_id": "", > "interval": "hourly", > "factor": 6 > }, > "next": [] > }, > { > "id": "c3d4e5f0-0003-11f1-a000-000000000002", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > }, > "next": [] > } > ], > "rescue": [ > { > "id": "c3d4e5f0-0003-11f1-a000-000000000005", > "name": "Unregister supplier from NO VERI*FACTU", > "provider": "gov-es.noverifactu.unregister", > "next": [] > }, > { > "id": "c3d4e5f0-0003-11f1-a000-000000000006", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `rejected`{.state .rejected}", > "config": { > "state": "rejected" > }, > "next": [] > } > ] > } > ``` > > After pasting the code, switch to the form view. Open the **Process Event** step and set the **Workflow** field to the event processing workflow. Then open the **Subscribe to summary event cron** step and set the **Workflow** field to the summary event workflow. **5. Create a supplier unregistration workflow** Create a workflow for unregistering suppliers. This workflow unsubscribes the supplier from the periodic summary event cron, removes the NO VERI\*FACTU registration, and generates the mandatory "End of NO VERI\*FACTU mode" event (event type `02`). > [card] [NO VERI\*FACTU unregister supplier](https://console.invopop.com/redirect/workflows/new?template=es-noverifactu-unregister) > > Add to my workspace → After adding the template, open the **Process Event** step and set the **Workflow** field to the event processing workflow. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json NO VERI*FACTU unregister supplier workflow theme={"system"} > { > "name": "NO VERI*FACTU unregister supplier", > "description": "Unregister a supplier from NO VERI*FACTU and generate the end-of-mode event", > "schema": "org/party", > "steps": [ > { > "id": "d4e5f6a0-0004-11f1-a000-000000000007", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "3e4bd770-3a92-11f1-a472-21be9722e465", > "name": "Unsubscribe from periodic execution", > "provider": "cron.unsubscribe" > }, > { > "id": "f46dfa20-3ca3-11f1-90b7-0d81b4010093", > "name": "Build status for NO VERI*FACTU", > "provider": "gov-es.noverifactu.build.status", > "summary": "Build status: 02 - End of NO VERI*FACTU mode", > "config": { > "event_type": "02" > } > }, > { > "id": "2fbe2590-3caf-11f1-ae77-65667068cb42", > "name": "Create a job", > "provider": "transform.job.create", > "summary": "Send to NO VERI*FACTU process event (bill/status)", > "config": { > "silo_entry_meta_key": "", > "workflow_id": "" > } > }, > { > "id": "9a9235e0-3cb0-11f1-ae77-65667068cb42", > "name": "Unregister supplier from NO VERI*FACTU", > "provider": "gov-es.noverifactu.unregister" > }, > { > "id": "d4e5f6a0-0004-11f1-a000-000000000004", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "d4e5f6a0-0004-11f1-a000-000000000006", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > > After pasting the code, switch to the form view, open the **Process Event** step and set the **Workflow** field to the event processing workflow. ## Register a supplier Whether you issue invoices on behalf of third parties ([white label](/guides/white-label)) or under your own name, the registration process is the same. **1. Upload a supplier** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a new supplier [party](https://docs.gobl.org/draft-0/org/party). Required fields are company `name` and `tax_id`. > [accordion] Spanish company > > To register a company supplier in Spain you must provide: > > * **Company information**: name, NIF (tax identification number), and address > * **Legal representative information**: full name, government ID type and number (DNI, NIE, or passport), and address > > The legal representative is the person authorized to sign the representation agreement on behalf of the company. > > > [!NOTE] > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` > [accordion] Spanish autónomo > > An *autónomo* is a self-employed individual in Spain who operates as a sole proprietor. To register them, a NIF (tax id number) with the corresponding full name and address must be provided. > > Unlike company suppliers, autónomos do not require separate legal representative information since the individual is the authorized signatory. > > > [!NOTE] > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > ```json Spain autónomo supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Juan Pérez González", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "autonomo@example.com" > } > ] > } > ``` Set the `folder` to `suppliers` to have the party appear in this section. It should appear with an `Empty` status unless set otherwise. **2. Send the supplier to the registration workflow** * **Via API** — Send the supplier to the registration workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint using the `ID`s of the **silo entry** and **supplier registration workflow**. * **Via Console** — From the Silo Entry select "Run workflow" and select the **NO VERI\*FACTU supplier registration workflow**. The supplier's status will change to `Registered` immediately upon successful completion. Unlike VERI\*FACTU, there is no agreement signing step or approval waiting period. > [!NOTE] > > A party can be simultaneously registered in both VERI*FACTU and NO VERI*FACTU, as each modality uses distinct meta keys to track registration state. This means integrators can offer both modalities to different suppliers within the same workspace. ## Unregister a supplier Unregistering a supplier revokes their NO VERI\*FACTU invoice issuing privileges and generates the required "End of NO VERI\*FACTU mode" event. You might need to unregister a supplier because they are no longer your client, they are switching to VERI\*FACTU mode, or because of a change in their Tax ID. Send the supplier's silo entry to the **NO VERI\*FACTU unregister supplier** workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. The supplier's status will change to `Void` when the workflow completes. ## Automatic event generation NO VERI\*FACTU requires the system to automatically detect and record certain events. The following events are generated automatically by the workflows described in this guide: | Event | Type | When Generated | | - | - | - | | Start of NO VERI\*FACTU mode | `01` | When a supplier is registered via the registration workflow | | End of NO VERI\*FACTU mode | `02` | When a supplier is unregistered via the unregistration workflow | | Summary event | `10` | Every 6 hours, triggered automatically by the [Cron app](/apps/cron) subscription created during registration | All event records are digitally signed and stored with the same integrity guarantees as invoicing records. The event processing workflow (`generate.event` → `record`) handles the XML generation, digital signing, and storage for all event types. *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Spain FAQ](/faq/spain) > > Find answers to frequently asked questions about invoicing in Spain → > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # SII Invoicing guide Source: https://docs.invopop.com/guides/es-sii Issue invoices in Spain with SII. ## Introduction SII (Suministro Inmediato de Información) is a fiscal initiative by the Spanish Tax Agency (AEAT) that requires large businesses to report invoices through certified software. The system records issued and received invoices. > [!NOTE] > > SII is mandatory for companies that meet certain requirements. Companies reporting with VERI\*FACTU or TicketBAI are exempt from reporting with SII. > > Invopop provides a foundational implementation for SII with limitations, please check the current [implementation scope](/apps/spain#limitations) for more information. ## Prerequisites To issue your first SII invoice, you must have registered at least one supplier. Make sure you read and implemented the [SII supplier onboarding guide](/guides/es-sii-supplier) before continuing with this guide. ## Setup Add a new workflow to your workspace to issue invoices. You can start with the template below. > [card] [SII issued invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-sii-record-issued) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json SII issue invoice workflow theme={"system"} > { > "name": "SII issue invoice", > "description": "Record an issued invoice with SII and generate PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "59f4dee0-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "ec41cce0-0fc3-11f0-8a81-7911b3ecee3c", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · SII · 000001", > "config": { > "name": "SII", > "padding": 6, > "start": 1 > } > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "61661540-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Record issued invoice in SII", > "provider": "gov-es.sii.record.issued" > }, > { > "id": "65312700-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Spanish · A4", > "config": { > "date_format": "%Y-%m-%d", > "layout": "A4", > "locale": "es", > "logo_height": 60 > } > }, > { > "id": "6abb4de0-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "798b1d00-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` You can also add a new workflow to your workspace to record received invoices, if you plan to report those to SII: > [card] [SII received invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-sii-record-received) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json SII record received invoice workflow theme={"system"} > { > "name": "SII record received invoice", > "description": "Record a received invoice with SII", > "schema": "bill/invoice", > "steps": [ > { > "id": "59f4dee0-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "ec41cce0-0fc3-11f0-8a81-7911b3ecee3c", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · SII · 000001", > "config": { > "name": "SII", > "padding": 6, > "start": 1 > } > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "61661540-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Record received invoice in SII", > "provider": "gov-es.sii.record.received" > }, > { > "id": "6abb4de0-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "798b1d00-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` Keep each `Workflow ID` at hand, you'll use them later. > [!NOTE] > > SII allows for document modifications after submission. If a document is rejected or contains errors, update the GOBL details and resubmit to the same workflow. ## Issue an invoice **1. Upload an Invoice** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the invoice details. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data) field with these required fields: * Add the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon * `supplier`: Use the details of the supplier you've registered before. You can copy one of the example invoices below as a reference. > [accordion] B2C Simplified Invoice > > Simplified invoices are used for B2C transactions when the customer is not a business. The transaction amount should be under €400 (VAT included) with some [exceptions](https://sede.agenciatributaria.gob.es/Sede/iva/facturacion-registro/facturacion-iva/tipos-factura.html) in which this threshold is increased to €3,000. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the simplified invoice, > * to create a simplified SII invoice, include the `simplified` tag in your GOBL document with the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon, > * when running `gobl build`, the system automatically calculates totals, assigns the `$regime` to `ES`, sets the [`es-sii-doc-type`](https://docs.gobl.org/addons/es-sii-v1#invoice-type) extension to `F2` (Simplified invoice), applies the standard VAT rate (21%), and normalizes all fields, > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2C Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "$tags": [ > "simplified" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a standard tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F2" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-sii-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-sii-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a standard tax" > } > ] > } > ``` > [accordion] B2B Standard Invoice > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > * The customer is a registered business (has a tax identification number). > * The transaction amount is €400 VAT included or above, or the customer requires a full invoice. > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the standard B2B invoice, > * to create a regular SII invoice, include the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon and ensure the `customer` field contains valid tax identification details, > * the `supplier` must be previously registered with the tax authority and the `customer` NIF or VAT ID must be valid, > * when running `gobl build`, the system automatically calculates totals, assigns the `$regime` to `ES`, sets the [`es-sii-doc-type`](https://docs.gobl.org/addons/es-sii-v1#invoice-type) extension to `F1` (Standard invoice), applies the standard VAT rate (21%), and normalizes all fields, > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-sii-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-sii-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > } > } > ``` > [accordion] B2B Services EU Client (Reverse Charge) > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > * The service is provided to a business customer (B2B), not a consumer. > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the reverse charge invoice, > * to create a reverse charge SII invoice, use the tax key `reverse-charge` in your invoice lines, > * you also need to set the items `key` to `services`, which will generate a breakdown by operation type required for this type of invoices, > * with reverse charge, no VAT is charged by the supplier; the customer accounts for VAT in their own country, > * the `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system, > * when running `gobl build`, the system automatically sets the operation type to `S2` (Subject and Not Exempt - With reverse charge) when reporting the document to SII, applies the reverse charge tax treatment, and normalizes all fields, > * the built version in the second tab shows the normalized document with the reverse charge configuration, operation type breakdown, and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2B Invoice Services (EU) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "key": "services", > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with reverse charge" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "key": "services", > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "ext": { > "es-sii-product": "services", > "es-sii-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "reverse-charge", > "ext": { > "es-sii-product": "services", > "es-sii-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with reverse charge" > } > ] > } > ``` > [accordion] B2B Goods EU Client (Intra-Community) > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > * Goods are physically delivered to another EU member state. > * The supply is exempt from VAT in the origin country (Spain) and subject to VAT in the destination country. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the intra-community supply invoice, > * to create an intra-community supply SII invoice, use the tax key `intra-community` in your invoice lines, > * you also need to set the items `key` to `goods`, which will report to SII a breakdown by operation type required for this type of invoices, > * with intra-community supplies, no VAT is charged in Spain; the customer accounts for VAT in their destination country, > * the `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system, > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-exempt`](https://docs.gobl.org/addons/es-sii-v1#exemption-reason) extension to `E5` ([Artículo 25 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a25)) and the [`es-sii-regime`](https://docs.gobl.org/addons/es-sii-v1#special-regime-or-relevance-key) extension to `02` (Export), > * the built version in the second tab shows the normalized document with the intra-community configuration, exemption codes, operation type breakdown, and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2B Invoice Goods (EU) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "key": "goods", > "name": "Goods", > "price": "90.00" > }, > "taxes": [ > { > "cat": "VAT", > "key": "intra-community", > "ext": { > "es-sii-regime": "02" > } > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a intra-community" > } > ] > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "key": "goods", > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "intra-community", > "ext": { > "es-sii-exempt": "E5", > "es-sii-product": "goods", > "es-sii-regime": "02" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "intra-community", > "ext": { > "es-sii-exempt": "E5", > "es-sii-product": "goods", > "es-sii-regime": "02" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a intra-community" > } > ] > } > ``` > [accordion] B2B Services Non-EU Client (Outside Scope) > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the outside scope invoice, > * to create an outside scope SII invoice, use the tax key `outside-scope` in your invoice lines, > * services provided to non-EU customers are generally outside the scope of Spanish VAT, > * the `supplier` must be previously registered with the tax authority; customer tax identification is optional but recommended for record-keeping purposes, > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-oot`](https://docs.gobl.org/addons/es-sii-v1#type-of-operation-outside-scope) extension to `location` and normalizes all fields, > * the built version in the second tab shows the normalized document with the outside scope configuration and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2B invoice services (non-EU) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "key": "services", > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "key": "outside-scope" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a outside-scope tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-11-05", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "key": "services", > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "outside-scope", > "ext": { > "es-sii-outside-scope": "location", > "es-sii-product": "services", > "es-sii-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "outside-scope", > "ext": { > "es-sii-outside-scope": "location", > "es-sii-product": "services", > "es-sii-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a outside-scope tax" > } > ] > } > ``` > [accordion] B2B Goods Non-EU Client (Export) > > Export invoices are used for B2B goods delivered to customers outside the EU. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the export invoice, > * to create an export SII invoice, use the tax key `export` in your invoice lines, > * exported goods are exempt from Spanish VAT, > * the `supplier` must be previously registered with the tax authority; customer tax identification is optional but recommended for record-keeping purposes, > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-exempt`](https://docs.gobl.org/addons/es-sii-v1#exemption-reason) extension to `E2` ([Artículo 21 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a21)) and the [`es-sii-regime`](https://docs.gobl.org/addons/es-sii-v1#special-regime-or-relevance-key) extension to `02` (Export), > * the built version in the second tab shows the normalized document with the export configuration, exemption codes, and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2B Invoice Goods (No EU) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "key": "goods", > "name": "Goods", > "price": "90.00" > }, > "taxes": [ > { > "cat": "VAT", > "key": "export" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with an export" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-11-05", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "key": "goods", > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "export", > "ext": { > "es-sii-exempt": "E2", > "es-sii-product": "goods", > "es-sii-regime": "02" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "export", > "ext": { > "es-sii-exempt": "E2", > "es-sii-product": "goods", > "es-sii-regime": "02" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with an export" > } > ] > } > ``` > [accordion] B2B Exempt E1 Invoice > > Exempt `E1` invoices are used for B2B transactions that are exempt from VAT pursuant to [Artículo 20 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a20), which covers exemptions in internal operations. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the exempt E1 invoice, > * to create an exempt E1 SII invoice, use the tax key `exempt` in your invoice lines, > * exempt operations are not subject to VAT but must still be reported, > * the `supplier` must be previously registered with the tax authority and the `customer` NIF must be valid, > * when running `gobl build`, the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon automatically sets the [`es-sii-exempt`](https://docs.gobl.org/addons/es-sii-v1#exemption-reason) extension to `E1` and normalizes all fields, > * the built version in the second tab shows the normalized document with the exempt E1 configuration and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2B Exempt E1 Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "key": "exempt" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "es-sii-exempt": "E1", > "es-sii-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "es-sii-exempt": "E1", > "es-sii-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > [accordion] B2C One-Stop-Shop Invoice > > One-Stop-Shop (OSS) invoices are used for B2C distance sales of goods and electronically supplied services to consumers in other EU member states when the supplier is registered under the OSS scheme. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the OSS invoice, > * to create an OSS SII invoice, include the `simplified` tag in your GOBL document with the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon, give the `customer` an address in the destination member state without a tax ID, and set `country` on each line's VAT to that state with the `es-sii-regime` extension `17`, > * OSS allows suppliers to register for VAT in one EU member state and account for VAT on all EU distance sales through that single registration, > * the `supplier` must be previously registered with the tax authority and enrolled in the OSS scheme, > * when running `gobl build`, the invoice will be treated as a simplified invoice ([`es-sii-doc-type`](https://docs.gobl.org/addons/es-sii-v1#invoice-type) extension set to `F2`), VAT is calculated at the destination country's rate, and the operation is reported as not subject to Spanish VAT under the OSS regime, > * the built version in the second tab shows the normalized document with the OSS configuration and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json SII B2C One Stop Shop Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "$tags": [ > "simplified" > ], > "series": "SAMPLE", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Anna Müller", > "addresses": [ > { > "num": "12", > "street": "Rosenthaler Straße", > "locality": "Berlin", > "code": "10119", > "country": "DE" > } > ], > "emails": [ > { > "addr": "anna.mueller@example.de" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Wireless headphones", > "price": "149.00", > "unit": "item" > }, > "taxes": [ > { > "cat": "VAT", > "country": "DE", > "rate": "standard", > "ext": { > "es-sii-regime": "17" > } > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-11-06", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F2" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Anna Müller", > "addresses": [ > { > "num": "12", > "street": "Rosenthaler Straße", > "locality": "Berlin", > "code": "10119", > "country": "DE" > } > ], > "emails": [ > { > "addr": "anna.mueller@example.de" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Wireless headphones", > "price": "149.00", > "unit": "item" > }, > "sum": "298.00", > "taxes": [ > { > "cat": "VAT", > "country": "DE", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "es-sii-outside-scope": "location", > "es-sii-regime": "17" > } > } > ], > "total": "298.00" > } > ], > "totals": { > "sum": "298.00", > "total": "298.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "country": "DE", > "key": "standard", > "ext": { > "es-sii-outside-scope": "location", > "es-sii-regime": "17" > }, > "base": "298.00", > "percent": "19%", > "amount": "56.62" > } > ], > "amount": "56.62" > } > ], > "sum": "56.62" > }, > "tax": "56.62", > "total_with_tax": "354.62", > "payable": "354.62" > }, > "notes": [ > { > "key": "general", > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > } > ] > } > ``` > [accordion] B2C Hotel + IEET (Catalonia tourist tax) > > The Catalan tourist tax (IEET, *Impost sobre les Estades en Establiments Turístics*) is a regional tax administered by the Agència Tributària de Catalunya — not the AEAT — so it is **not** reported as a tax to SII. Hotels declare it directly to the Generalitat through the quarterly Modelo 950. > > Notice: > > * model the IEET as a document-level [`charge`](https://docs.gobl.org/draft-0/bill/invoice#charge) with `key: "tax"`, which keeps it out of the VAT base while still appearing as a separate line on the guest's invoice as required by Art. 35 of Llei 5/2017, > * do not model the IEET as a `VAT` tax line — it is a fixed amount per night, not a percentage, and the AEAT does not collect it, > * the `reason` field on the charge is what the guest sees on the invoice; include the establishment type, location, nights, and rate so the breakdown is unambiguous, > * accommodation is invoiced with reduced VAT (10%) on the room base; the IEET charge is added on top of `total_with_tax` to produce `payable`, > * the quarterly Modelo 950 to the Generalitat is independent of individual invoices, but structuring the IEET as a typed charge lets hotels query their GOBL invoices for the data they need to file it. > > ```json B2C Hotel + IEET (Catalonia tourist tax) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-sii-v1" > ], > "$tags": [ > "simplified" > ], > "series": "SAMPLE", > "issue_date": "2026-05-06", > "supplier": { > "name": "Hotel Barcelona Example SL", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "locality": "Barcelona", > "code": "08001", > "country": "ES" > } > ] > }, > "lines": [ > { > "quantity": "3", > "item": { > "name": "Double room — 3 nights", > "price": "180.00", > "unit": "day" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "reduced" > } > ] > } > ], > "charges": [ > { > "key": "tax", > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > "amount": "10.20" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-05-06", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F2" > } > }, > "supplier": { > "name": "Hotel Barcelona Example SL", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "locality": "Barcelona", > "code": "08001", > "country": "ES" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "3", > "item": { > "name": "Double room — 3 nights", > "price": "180.00", > "unit": "day" > }, > "sum": "540.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "10.0%", > "ext": { > "es-sii-regime": "01" > } > } > ], > "total": "540.00" > } > ], > "charges": [ > { > "i": 1, > "key": "tax", > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > "amount": "10.20" > } > ], > "totals": { > "sum": "540.00", > "charge": "10.20", > "total": "550.20", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-sii-regime": "01" > }, > "base": "540.00", > "percent": "10.0%", > "amount": "54.00" > } > ], > "amount": "54.00" > } > ], > "sum": "54.00" > }, > "tax": "54.00", > "total_with_tax": "604.20", > "payable": "604.20" > } > } > ``` > [accordion] Replacement Invoice (Factura de canje) > > A replacement invoice (factura de canje) substitutes one or more previously issued simplified invoices with a full invoice — typically when a consumer later asks for a complete invoice with their tax details. > > Notice: > > * the `type` stays `standard` and the `replacement` tag is set under `tax.tags`, which the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon maps to the SII document type `F3`, > * the `preceding` array references the simplified invoice being replaced by `series`, `code`, and `issue_date`, > * unlike a corrective invoice, a replacement is not a rectification — the amounts are simply restated on a full invoice with the customer identified, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json Factura de canje theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "tax": { > "tags": [ > "replacement" > ] > }, > "series": "FC", > "issue_date": "2026-02-26", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-02-20", > "series": "FS", > "code": "001" > } > ], > "supplier": { > "name": "Easor Software Solutions S.L.", > "tax_id": { > "country": "ES", > "code": "B24830515" > }, > "addresses": [ > { > "num": "532", > "street": "Avenida Diagonal", > "locality": "Barcelona", > "region": "Barcelona", > "code": "08006", > "country": "ES" > } > ] > }, > "customer": { > "name": "Cliente Ejemplo S.L.", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Servicio de consultoría", > "price": "500.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "$tags": [ > "replacement" > ], > "type": "standard", > "series": "FC", > "issue_date": "2026-02-26", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-02-20", > "series": "FS", > "code": "001" > } > ], > "tax": { > "ext": { > "es-sii-doc-type": "F3" > } > }, > "supplier": { > "name": "Easor Software Solutions S.L.", > "tax_id": { > "country": "ES", > "code": "B24830515" > }, > "addresses": [ > { > "num": "532", > "street": "Avenida Diagonal", > "locality": "Barcelona", > "region": "Barcelona", > "code": "08006", > "country": "ES" > } > ] > }, > "customer": { > "name": "Cliente Ejemplo S.L.", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Servicio de consultoría", > "price": "500.00" > }, > "sum": "500.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-sii-regime": "01" > } > } > ], > "total": "500.00" > } > ], > "totals": { > "sum": "500.00", > "total": "500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-sii-regime": "01" > }, > "base": "500.00", > "percent": "21.0%", > "amount": "105.00" > } > ], > "amount": "105.00" > } > ], > "sum": "105.00" > }, > "tax": "105.00", > "total_with_tax": "605.00", > "payable": "605.00" > } > } > ``` After uploading you'll see the document in the **Invoices** section with status `Empty`. ![Empty invoice](https://mintcdn.com/invopop/kmjN6VjbHoCg_sxn/assets/guides/es-sii-invoice-1.png?fit=max\&auto=format\&n=kmjN6VjbHoCg_sxn\&q=85\&s=4ce6a9d7c1bfe24d29fcf3bc70f42d4e) Empty invoice **2. Send the Invoice to the SII invoice workflow** Send the invoice to the SII workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *SII issued invoice* workflow created on setup. * `silo_entry_id`: use the Silo Entry ID of the invoice you've just uploaded. The invoice's status will change to `Sent` when the workflow completes successfully. ![Sent invoice](https://mintcdn.com/invopop/kmjN6VjbHoCg_sxn/assets/guides/es-sii-invoice-2.png?fit=max\&auto=format\&n=kmjN6VjbHoCg_sxn\&q=85\&s=bec15d9767098e62404b37af104dcaba) Sent invoice You can verify that the PDF was generated by clicking on the invoice and selecting the PDF from the "Files" tab. ## Issue a credit note (Rectificativa por Diferencias) In Spain, one way to correct an invoice is by issuing a credit note, known as a *Rectificativa por Diferencias*. An alternative method is to issue a *Rectificativa por Sustitución*, which involves creating a new invoice with the type corrective. The difference between the two is subtle but important: * A credit note adjusts the value of the original invoice. * A corrective invoice replaces the original invoice entirely. For example, if you issued an invoice for €100 but later realized it should have been €80, you can either: * Issue a credit note for €20, or * Issue a corrective invoice for €80. Unless you have a specific requirement to use a corrective invoice we recommend only using credit notes. They're more widely supported across countries, while corrective invoices are specific to a few jurisdictions like Spain. Examples where you would need to issue a corrective invoice (*Rectificativa por Sustitución*) are incorrect supplier or client data, which can't be corrected through credit or debit notes. **1. Upload a Credit Note** A credit note in Invopop is an invoice of the [type](https://docs.gobl.org/draft-0/bill/invoice#type-values) credit note. The process is very similar to uploading an invoice, use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a credit note. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * Add the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon * `supplier`: use the same supplier details as in the original invoice * `type`: `credit-note` * `preceding`: references the original invoice, within it, you must include: * `uuid`: the UUID of the original invoice (optional but recommended) * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice You can copy the example credit note below as a reference. ```json SII Credit Note theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-sii-v1" ], "type": "credit-note", "series": "CN", "preceding": [ { "type": "standard", "issue_date": "2025-11-13", "series": "SAMPLE", "code": "004" } ], "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ], "emails": [ { "addr": "billing@example.com" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "taxes": [ { "cat": "VAT", "rate": "general" } ] } ], "notes": [ { "key": "general", "text": "This is a sample invoice with a standard tax" } ] } ``` ```json Built version theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-sii-v1" ], "type": "credit-note", "series": "CN", "issue_date": "2026-07-21", "currency": "EUR", "preceding": [ { "type": "standard", "issue_date": "2025-11-13", "series": "SAMPLE", "code": "004" } ], "tax": { "ext": { "es-sii-correction-type": "I", "es-sii-doc-type": "R1" } }, "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ], "emails": [ { "addr": "billing@example.com" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "sum": "1800.00", "taxes": [ { "cat": "VAT", "key": "standard", "rate": "general", "percent": "21.0%", "ext": { "es-sii-regime": "01" } } ], "total": "1800.00" } ], "totals": { "sum": "1800.00", "total": "1800.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-sii-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" }, "tax": "378.00", "total_with_tax": "2178.00", "payable": "2178.00" }, "notes": [ { "key": "general", "text": "This is a sample invoice with a standard tax" } ] } ``` After successful upload, you'll see the credit note in the **Invoices** section with status `Empty`. If you've included the `uuid` of the invoice in preceding, you'll see a link to the credit note we've just created in the *Related* tab of the invoice. ![Empty invoice](https://mintcdn.com/invopop/kmjN6VjbHoCg_sxn/assets/guides/es-sii-invoice-cn.png?fit=max\&auto=format\&n=kmjN6VjbHoCg_sxn\&q=85\&s=2c9eb41e10a046d259720416cff31354) Related: credit note **2. Send the Credit Note to the SII invoice workflow** Send the credit note to the SII workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *SII issued invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the credit note you've just uploaded. The credit note's status will change to `Sent` when the workflow completes successfully. ## Issue a corrective invoice (Rectificativa por Sustitución) **1. Upload a Corrective Invoice** A corrective invoice in Invopop is an invoice of the type `corrective`. The process is very similar to uploading an invoice, use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a corrective invoice. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * `regime`: `ES` * Add the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon * `supplier`: use the same supplier details as in the original invoice * `type`: `corrective` * `preceding`: references the original invoice, within it, you must include: * `uuid`: the UUID of the original invoice (optional but recommended) * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice * `tax`: the tax section of the original invoice, you can copy it from the original invoice You can copy the example corrective invoice below as a reference. ```json SII Corrective Invoice theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-sii-v1" ], "type": "corrective", "series": "CO", "preceding": [ { "type": "standard", "issue_date": "2024-11-13", "series": "SAMPLE", "code": "004", "tax": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-sii-regime": "01" }, "base": "1800.00", "percent": "21.0%" } ] } ] } } ], "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ], "emails": [ { "addr": "billing@example.com" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "taxes": [ { "cat": "VAT", "rate": "general" } ] } ], "notes": [ { "key": "general", "text": "This is a sample invoice with a standard tax" } ] } ``` ```json Built version theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-sii-v1" ], "type": "corrective", "series": "CO", "issue_date": "2026-07-21", "currency": "EUR", "preceding": [ { "type": "standard", "issue_date": "2024-11-13", "series": "SAMPLE", "code": "004", "tax": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-sii-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" } } ], "tax": { "ext": { "es-sii-correction-type": "S", "es-sii-doc-type": "R1" } }, "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ], "emails": [ { "addr": "billing@example.com" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "sum": "1800.00", "taxes": [ { "cat": "VAT", "key": "standard", "rate": "general", "percent": "21.0%", "ext": { "es-sii-regime": "01" } } ], "total": "1800.00" } ], "totals": { "sum": "1800.00", "total": "1800.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-sii-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" }, "tax": "378.00", "total_with_tax": "2178.00", "payable": "2178.00" }, "notes": [ { "key": "general", "text": "This is a sample invoice with a standard tax" } ] } ``` After successful upload, you'll see the corrective invoice in the **Invoices** section with status `Empty`. If you've included the `uuid` of the invoice in preceding, you'll see a link to the corrective invoice we've just created in the *Related* tab of the invoice. ![Empty invoice](https://mintcdn.com/invopop/kmjN6VjbHoCg_sxn/assets/guides/es-sii-invoice-cn.png?fit=max\&auto=format\&n=kmjN6VjbHoCg_sxn\&q=85\&s=2c9eb41e10a046d259720416cff31354) Related: corrective invoice **2. Send the Corrective Invoice to the SII invoice workflow** Send the corrective invoice to the SII workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *SII issued invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the corrective invoice you've just uploaded. The corrective invoice's status will change to `Sent` when the workflow completes successfully. ## Record a received invoice **1. Upload a Received Invoice** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the received invoice details. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data) field with these required fields: * Add the [`es-sii-v1`](https://docs.gobl.org/addons/es-sii-v1) addon * `customer`: Use the details of the party you've registered before. You can copy the example invoice below as a reference. Note that any invoice type from the previous sections (issued invoices) could also be used, as well as credit notes, by simply swapping the `supplier` and `customer` fields. > [accordion] B2B Standard Received Invoice > > This is a standard B2B invoice received from a supplier where: > > * The supplier is the business that has issued the invoice to you. > * The customer is your business (previously registered). > > ```json SII B2B Received Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "series": "SAMPLE", > "supplier": { > "name": "Sample Supplier", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "customer": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-sii-v1" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-07-21", > "currency": "EUR", > "tax": { > "ext": { > "es-sii-doc-type": "F1" > } > }, > "supplier": { > "name": "Sample Supplier", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "customer": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-sii-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-sii-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > } > } > ``` After uploading you'll see the document in the **Invoices** section with status `Empty`. **2. Send the Invoice to the SII received invoice workflow** Send the invoice to the SII received invoice workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *SII received invoice* workflow created on setup. * `silo_entry_id`: use the Silo Entry ID of the invoice you've just uploaded. The invoice's status will change to `Sent` when the workflow completes successfully. You can verify that the PDF was generated by clicking on the invoice and selecting the PDF from the "Files" tab. ## FAQ > [accordion] Should I send credit notes with positive or negative values? > > You should send the credit note with the same sign as the original invoice. > > In Spain, unlike other countries, credit notes must be submitted to Hacienda with inverse values. Invopop handles this conversion automatically before transforming the credit note into a "factura rectificativa" (corrective invoice). > > This means you only need to send the credit note following international standards (with same sign as the invoice). Invopop will automatically adapt it when submitting to Hacienda. > > For reference, see the [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) documentation with `type` set to `credit-note`. > [accordion] Where do I find Spain-specific GOBL documentation? > > See the [Spain tax regime in GOBL](https://docs.gobl.org/regimes/es) for tax categories, NIF rules, and Spanish-specific extensions. Subsystem-specific addons live alongside: [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1), [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1), [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3). > [accordion] What is the deadline for submitting invoices to SII? > > Issued invoices must be reported within 4 calendar days from the date of issuance — and always before the 16th day of the month following the one in which the VAT liability arises. Saturdays, Sundays, and national holidays are excluded from the count. Received invoices follow the same 4-day rule but starting from the date the invoice is recorded in the books. > [accordion] How do I correct an invoice already submitted to SII? > > SII corrections are submitted as modification records (`A1`) referencing the original entry, rather than by deleting and re-sending. In practice, after fixing the underlying [GOBL](https://docs.gobl.org) document, run the SII workflow again — Invopop detects that a previous submission exists for the same invoice and emits the modification record automatically. More available in our [Spain FAQ](/faq/spain) section *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # SII onboarding guide Source: https://docs.invopop.com/guides/es-sii-supplier Create and register suppliers in Spain with SII. ## Introduction The Spanish Tax Agency ([AEAT](https://sede.agenciatributaria.gob.es)) requires that companies and self-employed individuals (autónomos) formally authorize Invopop to issue invoices on their behalf. To comply with this regulation, the company's legal representative or *autónomo* must sign an agreement granting Invopop consent to generate and manage invoices in their name. This signed authorization ensures that all invoicing activities carried out by Invopop are legally valid and recognized by the AEAT. For this process, the supplier can sign the agreement PDF with a valid [digital certificate](https://www.sede.fnmt.gob.es/certificados/persona-fisica), such as one issued by the FNMT, or a handwritten signature with a company stamp (*sello de empresa*), in which case the user must provide a valid ID such as DNI, NIE or passport. In the case of self-employed individuals (*autónomos*) a company stamp is not required. This guide will... 1. Walk you through the process of creating the workflows necessary to onboard yourself and/or your suppliers (in a [white-label setup](/guides/white-label)), 2. Explain how to complete the supplier onboarding wizard, and 3. Explain the approval process and what to do in case of rejection. | - | Sandbox | Live | | - | - | - | | **Supplier registration** | Required (automated acceptance/rejection) | Required (documents verified automatically on submission) | | **Environment** | Entorno de preproducción AEAT | Live environment | ## Setup **1. Connect the Spain app** 1. Go to **Configuration** → **Apps** in the [Console](https://console.invopop.com). 2. Find **Spain** in the app list. 3. Click **Connect** to activate the app. ![Spain app connected](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-spain-app.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=65c63184ad6201dc7c53f22ec2144486) After connecting, you'll see Spain listed in the Enabled Apps section. **2. Create a supplier registration workflow** Create a new workflow in your workspace for registering suppliers. Start with the template below: > [card] [SII supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=es-sii-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SII register supplier workflow theme={"system"} > { > "name": "SII register supplier", > "description": "Register a supplier with SII", > "schema": "org/party", > "steps": [ > { > "id": "52f5d190-831c-11f0-9ba3-7d4deb7b9d0e", > "name": "Register supplier with SII", > "provider": "gov-es.sii.register" > }, > { > "id": "5bfc9c10-831c-11f0-9ba3-7d4deb7b9d0e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "627c94a0-831c-11f0-9ba3-7d4deb7b9d0e", > "name": "Wait for SII supplier agreement upload", > "provider": "gov-es.sii.wait.upload" > }, > { > "id": "6f84ea30-831c-11f0-9ba3-7d4deb7b9d0e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > }, > { > "id": "78dabf10-831c-11f0-9ba3-7d4deb7b9d0e", > "name": "Wait for SII supplier approval", > "provider": "gov-es.sii.wait.approval" > } > ], > "rescue": [ > { > "id": "846415c0-831c-11f0-9ba3-7d4deb7b9d0e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `rejected`{.state .rejected}", > "config": { > "state": "rejected" > } > }, > { > "id": "d0e996c0-d9db-11f0-9b9a-5143ba8c831d", > "name": "Unregister supplier from SII", > "provider": "gov-es.sii.unregister" > } > ] > } > ``` ### Create a supplier entry Whether you issue invoices on behalf of third parties ([white label](/guides/white-label)) or under your own name, the process is essentially the same. **1. Upload a supplier** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a new supplier [party](https://docs.gobl.org/draft-0/org/party) (example below). Strictly required fields are company `name` and `tax_id` (the supplier will be able to supplement the information as [required by the AEAT](https://sede.agenciatributaria.gob.es/static_files/Sede/Procedimiento_ayuda/ZC01/Mod/Anexo_I_mod_otorg_prof_trib.pdf)). To reduce user input errors, it's recommended filling the fields as required by the AEAT: ```json Spain supplier example theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "people": [ { "name": { "given": "Juan", "surname": "Pérez González" }, "identities": [ { "key": "national", "code": "123456789A" } ], "addresses": [ { "num": "10", "street": "Calle Ejemplo", "locality": "Madrid", "region": "Madrid", "code": "28020", "country": "ES" } ] } ], "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ], "emails": [ { "addr": "billing@example.com" } ] } ``` Set the `folder` to `suppliers` to have the party appear in this section. It should appear with an `Empty` status unless set otherwise. ![Upload supplier to Invopop](https://mintcdn.com/invopop/kmjN6VjbHoCg_sxn/assets/guides/es-sii-supplier-2.png?fit=max\&auto=format\&n=kmjN6VjbHoCg_sxn\&q=85\&s=c2186699fcf6015e5a4abc9cd6af128f) Upload supplier to Invopop **2. Send the supplier to the registration workflow** * **Via API** - Send the supplier to the registration workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint using the `ID`s of the **silo entry** and **supplier registration workflow**. * **Via Console** - From the Silo Entry select "Run workflow" and select the **supplier registration workflow**. The supplier's status will change to `Processing` while waiting for supplier registration and verification. **3. Complete the registration workflow** > [tab] Your own company > > Within the silo entry in console, select **Meta** and then click **sii.invopop.com**. This will launch the registration wizard for your company. > > ![Supplier entry meta](https://mintcdn.com/invopop/gkppcIetXZ1YxuW0/assets/guides/es-sii-entry-meta.png?fit=max\&auto=format\&n=gkppcIetXZ1YxuW0\&q=85\&s=844cf8f75e3d4e7efdaed0f90b5efa9a) > [tab] Third-party companies > > Add a webhook before the **Wait for supplier registration** step to obtain the registration link. The webhook payload contains the `siloEntryId`, not the `meta` object directly. Use the [Fetch an Entry endpoint](/api-ref/silo/entries/fetch-an-entry) to retrieve the invoice and extract the `meta` object from the response. > > The `meta` object looks like this: > > > [accordion] Example supplier meta registration link > > > > ``` > > data: { > > ... > > "meta": [ > > { > > "id": "...", > > "created_at": "2025-11-05T15:10:28.132Z", > > "updated_at": "2025-11-14T15:56:53.727Z", > > "owner_id": "...", > > "entry_id": "...", > > "src": "gov-es", > > "key": "sii-link", > > "ref": "Kb01VKCpbxN", > > "link_url": "https://gov-es.invopop.com/reg/sii/Kb01VKCpbxN", > > "link_scope": "public", > > "indexed": true, > > "shared": true > > } > > ] > > } > > ``` > > Forward the `link_url` to your customer. **4. Check the registration result** Approval is automated: Invopop verifies the signed agreement and the signatory's ID as soon as the supplier submits them, so there is no manual review or waiting period. The supplier is entitled to issue invoices immediately, and that entitlement is only revoked if the verification finds a problem with their documentation. Once the registration wizard has been completed, the supplier's status will change to `Registered`. If not successful because the supplier did not complete the process or their documentation was rejected, the status will change to `Rejected`, and you can inspect the job history of this document to see the reason. ![Supplier registered](https://mintcdn.com/invopop/kmjN6VjbHoCg_sxn/assets/guides/es-sii-supplier-1.png?fit=max\&auto=format\&n=kmjN6VjbHoCg_sxn\&q=85\&s=67a1f6fd68b40cb8bb1c3e9816e1ff7e) Supplier registered successfully > [!WARNING] > > If a supplier's agreement documentation is rejected and you need to onboard them again, unregister the supplier and run the registration workflow again (see [Unregister a supplier](#unregister-a-supplier)). ## How SII supplier registration works The process is best explained looking at the workflow steps: ![Supplier Registration Workflow](https://mintcdn.com/invopop/gkppcIetXZ1YxuW0/assets/guides/es-sii-register-supplier.png?fit=max\&auto=format\&n=gkppcIetXZ1YxuW0\&q=85\&s=dc61575b665887ba1aec62ac7c21a6e8) Supplier Registration Workflow 1. **Register supplier** will generate a unique URL and add it into a `url` key value within the `meta` property. You would add a webhook after this step to notify the supplier. 2. **Set state to Processing** labels the silo entry so you know it's in process of registration. 3. **Wait for supplier registration** waits for the supplier to upload the required documents (signed agreement and ID). The supplier will be entitled to issue invoices through SII immediately after the documents are uploaded. 4. **Set state to Registered** labels the silo entry so you know registration is complete. 5. **Wait for supplier approval** In live environments, Invopop automatically verifies the documents provided by the supplier as soon as they are uploaded, so this step completes immediately. In sandbox, you can configure the workflow step to accept or reject providers. Upon rejection, the workflow will error with a `KO` and the reason for rejection can be reviewed in the Supplier or in the executed job. The supplier's invoice issuing entitlement will be revoked immediately. > [!NOTE] > > In sandbox "Wait for supplier approval" can be configured to accept or reject suppliers. **Error flow:** if the supplier's documentation is rejected, or the supplier does not complete the registration within the job's time limit (100 days) a `KO` will be generated, triggering the error flow. Then these steps will be run: 1. **Unregister supplier with SII** will clean up all registration processes and entitlements. You will be able to re-register the party later. 2. **Set state to Rejected** labels the silo entry so you know the registration was rejected (due to timeout or incorrect documentation). ## Register a supplier Suppliers need to provide the following documents for Invopop to issue invoices on their behalf: 1. A signed [direct representation agreement](https://sede.agenciatributaria.gob.es/static_files/Sede/Procedimiento_ayuda/ZC01/Mod/Anexo_I_mod_otorg_prof_trib.pdf). 2. A copy of signatory's fiscal ID (DNI/NIE or passport in the case of non-residents) if the agreement is not signed with a valid [digital certificate](https://www.sede.fnmt.gob.es/certificados/persona-fisica) such as one from the FNMT. These documents can be collected through a multi-step web form (*wizard*) which is enabled through the *Supplier registration workflow* created during [setup](#setup) or [sent via the API](/api-ref/apps/gov-es/agreement-upload) if you wish to have control over the process. ### Onboard suppliers through the supplier registration wizard The supplier registration wizard walks you (or your customers) through the necessary legal requirements to issue SII invoices. Each issuer must submit a signed representation agreement between Invopop and the issuer, along with documentation proving their legal authority to enter into such an agreement. Once you run the Supplier Registration Workflow, you will find the `link_url` in the `meta` property of the supplier entry. Here is an example API response: > [accordion] Example supplier meta registration link > > ``` > data: { > ... > "meta": [ > { > "id": "...", > "created_at": "2025-11-05T15:10:28.132Z", > "updated_at": "2025-11-14T15:56:53.727Z", > "owner_id": "...", > "entry_id": "...", > "src": "gov-es", > "key": "sii-link", > "ref": "Kb01VKCpbxN", > "link_url": "https://gov-es.invopop.com/reg/sii/Kb01VKCpbxN", > "link_scope": "public", > "indexed": true, > "shared": true > } > ] > } > ``` In console, you will find the link in the `Meta` tab in the right sidebar of the supplier's entry. This wizard can be embedded as an `iframe` to onboard your customers without leaving your product or platform. **1. Welcome screen** ![Supplier registration wizard](https://mintcdn.com/invopop/6SkCOaFdUkUJh3iu/assets/guides/es-sii-supplier-wizard-1.png?fit=max\&auto=format\&n=6SkCOaFdUkUJh3iu\&q=85\&s=f9336d0f8dbdd147d7418b4f0997773d) Your customers will be met with the first page detailing the necessary documentation required for the process. **2. Information verification** ![Supplier registration wizard](https://mintcdn.com/invopop/6SkCOaFdUkUJh3iu/assets/guides/es-sii-supplier-wizard-2.png?fit=max\&auto=format\&n=6SkCOaFdUkUJh3iu\&q=85\&s=b84ce6ca3edbb36f152e1e7612ae409e) The user can edit personal or company information. If the user is a self-employed individual, only the company information block will appear. Such individuals should enter their real name in the "Nombre" field, as this is matched by the AEAT against their tax id. **3. Download agreement** ![Supplier registration wizard](https://mintcdn.com/invopop/fkzoh8y1oFJMrC_b/assets/guides/es-sii-supplier-wizard-3.png?fit=max\&auto=format\&n=fkzoh8y1oFJMrC_b\&q=85\&s=0ba3e9398b9d9723a573fb357e0a0f98) On the following page, the issuer can download and sign their agreement. The details from the previous page will auto-populate into the contract. The issuer (you, or your customer) will require the following: * Signed agreement (handwritten signature or e-signature with the [FNMT's Certificado Electrónico de Representante](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) * If handwritten signature, legal representative's ID (DNI/NIE/passport) and company stamp. Please be advised that only certificates issued by [accepted providers](#legal-information) are valid. Self-signed certificates are not considered valid. **4. Upload signed agreement** ![Supplier registration wizard](https://mintcdn.com/invopop/fkzoh8y1oFJMrC_b/assets/guides/es-sii-supplier-wizard-4.png?fit=max\&auto=format\&n=fkzoh8y1oFJMrC_b\&q=85\&s=3718dff234080953c477f839008e02c1) Issuers select the type of signature they used and upload their document. If digital signature is selected, the following step will be skipped as a signature through a FNMT digital certificate counts as a proof of identification. **5. Upload ID** ![Supplier registration wizard](https://mintcdn.com/invopop/fkzoh8y1oFJMrC_b/assets/guides/es-sii-supplier-wizard-5.png?fit=max\&auto=format\&n=fkzoh8y1oFJMrC_b\&q=85\&s=c9867553b2fbb0b6cc0b408368cafa3a) The legal representative or *autónomo* uploads a scan or clear photo of their ID in a valid image format (JPG or PNG). The ID should ideally be a DNI/NIE, as passports are only used when the person is not entitled to have one. Both the front and reverse of the ID should be submitted here. If the ID is a passport (only valid for non-Spanish residents who are representatives of a company), they can upload the main page of their passport both times. **6. Review details** ![Supplier registration wizard](https://mintcdn.com/invopop/fkzoh8y1oFJMrC_b/assets/guides/es-sii-supplier-wizard-6.png?fit=max\&auto=format\&n=fkzoh8y1oFJMrC_b\&q=85\&s=5a3195b99c5fba7fbc0d0131ff3733aa) This page provides a summary of information so the user can verify they have submitted the correct data. Any corrections can be easily made through the edit function. **7. Confirmation screen** ![Supplier registration wizard](https://mintcdn.com/invopop/fkzoh8y1oFJMrC_b/assets/guides/es-sii-supplier-wizard-7.png?fit=max\&auto=format\&n=fkzoh8y1oFJMrC_b\&q=85\&s=4ba80f10089de7db84b0d94f6eef33f8) A green checkmark will indicate success. The submitted documents are verified automatically, so the supplier is approved and registered right away unless a problem is found. ### Onboard suppliers through the API If you have special needs regarding the onboarding of suppliers for SII (such as using third party identity verification services), it's possible to implement your own onboarding process through the API. The process would be the following: 1. [Create a supplier entry](/api-ref/silo/entries/create-an-entry-put) `/silo/v1/entries/{id}`\ Besides the supplier's basic information, the entry should contain a `people` object containing a [person](https://docs.gobl.org/draft-0/org/person) who will act as the legal representative of the supplier. 2. [Create a job](/api-ref/transform/jobs/create-a-job-put)`/transform/v1/jobs/{id}`\ Using the supplier registration workflow ID and Silo Entry ID. 3. [Generate agreement PDF](/api-ref/apps/gov-es/agreement-fetch) `/apps/gov-es/v1/entry/{silo_entry_id}/sii/agreement`\ The agreement file will be created with the supplier's data. 4. [Upload agreement PDF](/api-ref/apps/gov-es/agreement-upload) `/apps/gov-es/v1/entry/{silo_entry_id}/sii/agreement`\ Upload the agreement into the supplier's silo entry. 5. [Upload identity images](/api-ref/apps/gov-es/identity-upload) `/apps/gov-es/v1/entry/{silo_entry_id}/sii/identity`\ Upload the ID into the supplier's silo entry (can be DNI, NIE or Passport). 6. [Confirm upload](/api-ref/apps/gov-es/confirm) `/apps/gov-es/v1/entry/{silo_entry_id}/sii/confirm`\ Call this endpoint to confirm that everything has been prepared correctly and the supplier is ready to start operating. ## Unregister a supplier Unregistering a supplier is essentially revoking their invoice issuing privileges. You might need to unregister an entity because the supplier is no longer your client, because their agreement documentation was rejected, or because of a change in their Tax ID. To do so, use the following workflow template: > [card] [SII unregister supplier](https://console.invopop.com/redirect/workflows/new?template=es-sii-unregister) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SII unregister supplier workflow theme={"system"} > { > "name": "SII unregister supplier", > "description": "Unregister a supplier from SII", > "schema": "org/party", > "steps": [ > { > "id": "8a613610-67ba-11f0-bcaf-170efff782a9", > "name": "Unregister supplier from SII", > "provider": "gov-es.sii.unregister" > }, > { > "id": "96a6b0d0-67ba-11f0-bcaf-170efff782a9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "e8d2a6b0-67bb-11f0-bcaf-170efff782a9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Legal information > [accordion] Valid digital signatures for the SII's Supplier Agreement PDF > > Digital signatures rely on certificates, but not all certificates serve as proof of identity. The Spanish Tax Agency (AEAT) accepts only qualified certificates—those issued by an authority that has verified the holder's identity in advance. > > For individuals, this means using an official certificate from an accredited provider such as the FNMT. Obtaining that certificate requires submitting your ID and completing identity verification. Because this process already confirms who you are, the AEAT treats the resulting digital signature as legally binding identification. As a result, no additional identity check is needed during registration. > > In contrast, certificates generated directly by applications like Adobe Acrobat do not involve any identity verification. They are self-signed and therefore cannot be used for official submissions or as valid digital signatures in AEAT or government procedures. > > If you wish to obtain a certificate that is valid for most (if not all) Spanish government procedures, you can do so by following the procedure on [certificates page of the FNMT](https://www.sede.fnmt.gob.es/certificados/persona-fisica). For instructions on how to make it available in Acrobat Reader to sign official documents, consult [this PDF](https://www.sede.fnmt.gob.es/documents/10445900/10528353/Firmar_documento_PDF_Adobe_Acrobat_Reader_DC.pdf). > > Otherwise, we require the secondary procedure of signing the document by handwritten signature, and an official ID as proof of identity as required by the AEAT. > > The following certificate providers are accepted: > > * AC ABOGACÍA > * ANF AC > * ANF CA > * BEWOR > * CAMERFIRMA > * CENTRO TECNOLÓGICO DEL NOTARIADO > * CERES FÁBRICA NACIONAL DE MONEDA Y TIMBRE - REAL CASA DE LA MONEDA, E.P.E, M.P. (FNMT-RCM) > * CONSORCI AOC (CATCERT) > * DEH ONLINE > * DIGITEL TS > * DIRECCIÓN GENERAL DE LA POLICÍA > * DOCUTEN > * EADTRUST > * EDICOM > * ESFIRMA > * FIRMAFY > * FIRMAPROFESIONAL, S.A. > * INDIZE > * IZENPE, S.A. > * LLEIDANET PKI > * LOGALTY SERVICIOS DE TERCERO DE CONFIANZA S.L. > * MINISTERIO DE DEFENSA DE ESPAÑA > * PERMISSO > * REGISTRADORES DE ESPAÑA > * SECTIGO > * SIA > * SIGNATURIT- IVNOSYS > * SIGNE AUTORIDAD DE CERTIFICACIÓN > * SIGNICAT SPAIN > * UANATACA > * VALIDATED ID > * VINTEGRIS ## FAQ > [accordion] What are the most common reasons for failing supplier approval? > > We reject agreements when: > > * The uploaded document is not signed (they upload the unsigned template). > * Users upload a handwritten signature without an ID. > * The electronic signature does not belong to the legal representative (or to the *autónomo* themselves). > * A company's agreement is signed with a personal certificate (e.g. the FNMT's *Certificado Electrónico de Ciudadano*) instead of a representative certificate (e.g. the FNMT's [*Certificado Electrónico de Representante*](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) for that company. > * The agreement is missing a date or location. > * The name is entered as an email address. > > The job will state the reason for rejection. > [accordion] What happens if a supplier does not complete their registration within the allotted wait time? > > A KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a reminder to the supplier through a webhook. > > The registration link will not expire and the entity will still be able to upload their registration documents which will be validated. Should you choose to run this workflow again using this supplier, the supplier will be accepted or rejected immediately because the required documentation has already been provided and validated. > [accordion] What happens if a supplier validation is rejected? > > If the uploaded agreement documents were rejected, a KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a notification to the supplier through a webhook within the **Error Handling** section. > > Afterwards, if you wish to re-register the supplier with new documents, you must: > > 1. Unregister the supplier using the **Unregister Supplier workflow**. > 2. Re-run the Register supplier workflow. > > This will restart the entire registration process. When uploading documents, the previously submitted agreement will appear selected by default. Simply choose a new file and click `Continue` to override the old one. See the image below for reference: > > ![Overriding the previously submitted agreement](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-update-agreement.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a20bb8dd02df632d114e0519f4d34899) > > Overriding the previously submitted agreement > [accordion] What is the minimum information required to register a supplier? > > In order to complete the representation agreement you will need to provide the following information: > > **Company** > > 1. Name > 2. NIF > 3. Address > > **Legal representative** > > 1. Full name > 2. Government ID type and number > 3. Address > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` > > If the entity is a self-employed individual (*autónomo*), only the information requested in the **Legal representative** section is required. > > ```json Spain autónomo supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Juan Pérez González", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "autonomo@example.com" > } > ] > } > ``` > [accordion] What methods are available to sign the PDF supplier agreements? > > The supplier can add their electronic signature to the PDF document ([instructions](https://helpx.adobe.com/acrobat/using/signing-pdfs.html)), or sign with a handwritten signature (we recommend using [Adobe's online service](https://www.adobe.com/acrobat/online/sign-pdf.html)). > [accordion] What is the file size limit for the documents provided in the supplier registration flow? > > Individual documents are limited to a maximum size of 10MB. Uploads exceeding this size will result in an error. > [accordion] How do I register a supplier with SII? > > Run the SII Register Supplier workflow. The supplier signs the representation agreement and Invopop registers as their *colaborador social* with AEAT. Invopop's own certificate is then used for SII submissions on their behalf. > [accordion] What certificates does SII require to authenticate a supplier? > > SII web services accept any AEAT-recognized certificate. Invopop signs submissions with its *certificado de representante de persona jurídica*, acting under the colaborador social arrangement — suppliers do not upload their own certificates. More available in our [Spain FAQ](/faq/spain) section *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about suppliers in Spain → # TicketBAI invoicing guide Source: https://docs.invopop.com/guides/es-ticketbai Issue invoices in the Basque Country with TicketBAI. ## Introduction TicketBAI is a fiscal initiative developed collaboratively by the Basque Government and the provincial tax authorities of Álava, Gipuzkoa, and Bizkaia. Its primary objective is to combat tax fraud by ensuring that all invoices issued by individuals and entities conducting economic activities in the Basque Country are reported to the corresponding tax authorities. Under this system, businesses are required to use certified invoicing software that generates a unique TicketBAI QR code for each invoice. These codes facilitate the traceability of transactions and prevent the manipulation or deletion of invoices. The invoicing software must also create an XML file for each transaction, which is electronically signed and sent to the relevant provincial tax authority. The implementation timeline for TicketBAI varies across the three provinces: * **Alava**: Mandatory adoption began in phases starting in 2022, with full compliance required by December 1, 2022. * **Gipuzkoa**: A phased implementation commenced in 2022, with different sectors required to comply by specific dates, concluding on May 1, 2023. * **Bizkaia**: The province has integrated TicketBAI into a broader tax control system known as Batuz. Mandatory adoption for large companies began on January 1, 2024, with a staggered implementation for other entities extending until January 1, 2026. Invopop will automatically convert [GOBL Invoices](https://docs.gobl.org/draft-0/bill/invoice) into the TicketBAI format, including the required "chaining", and will send them to the correct tax authority. | - | Sandbox | Live | | - | - | - | | **Supplier** | Can use test name `HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr` and test NIF `A99805194` | Real company in Basque Country required | | **Supplier registration** | Required (automated acceptance/rejection) | Required ([signed agreement and ID](/guides/es-ticketbai-supplier), verified automatically on submission) | | **Environment** | TicketBAI - Pruebas | TicketBAI - Producción | ## Prerequisites In order to register a supplier and issue invoices, you will need: * Supplier details, including: * company name, * a tax ID (NIF) from a company in one of the three Tax Agencies, and, * an address which includes the region name: "Araba", "Bizkaia", or "Gipuzkoa". * Customer details for B2B sales, including the tax ID if selling to a Spanish or EU entity. * Quantity, name, price, and VAT rates of items being sold, including differentiating between physical goods and services. * An invoicing series. > [!NOTE] > > TicketBAI requires all suppliers to sign an agreement with their invoicing > provider explicitly granting permission to represent them. See the > [TicketBAI Supplier Onboarding Guide](/guides/es-ticketbai-supplier) for > detailed instructions on how to register suppliers. ## Setup To correctly issue TicketBAI invoices, you will need to prepare your Invopop Workspace by following these steps: **1. Connect the TicketBAI app** Head over to **Configuration** > **Apps**, and find **TicketBAI** from the list of apps to discover. Tap the **Connect** button to enable. No further configuration is required. **2. Create invoice workflow** > [card] [TicketBAI issue invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-ticketbai-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. This example adds support for setting states on silo entries which we strongly recommend. > > ```json TicketBAI issue invoice workflow theme={"system"} > { > "name": "TicketBAI issue invoice", > "description": "Issue a TicketBAI invoice and generate PDF with QR", > "schema": "bill/invoice", > "steps": [ > { > "id": "dd319d60-8bc1-11ef-96af-b55bf69bb0b8", > "name": "Add sequential code", > "config": { > "name": "TicketBAI Invoice", > "start": 1, > "prefix": "F", > "padding": 6 > }, > "summary": "Dynamic · TicketBAI · F000001", > "provider": "sequence.enumerate" > }, > { > "id": "ba77d5b0-7b3a-11ef-bffc-d9a10ebf9f89", > "name": "Set state", > "config": { > "state": "processing" > }, > "summary": "Set state to `processing`{.state .processing}", > "provider": "silo.state" > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "fc618ea0-a757-11ef-8377-c15ac3014ffb", > "name": "Generate TicketBAI XML", > "provider": "gov-es.ticketbai.generate" > }, > { > "id": "0448df60-a758-11ef-8377-c15ac3014ffb", > "name": "Send invoice to TicketBAI", > "provider": "gov-es.ticketbai.send" > }, > { > "id": "c61adaa0-7b55-11ef-bffc-d9a10ebf9f89", > "name": "Generate PDF", > "config": { > "locale": "es", > "date_format": "%Y-%m-%d", > "logo_height": 40 > }, > "summary": "Spanish · A4", > "provider": "pdf" > }, > { > "id": "d8693d70-7b3a-11ef-bffc-d9a10ebf9f89", > "name": "Set state", > "config": { > "state": "sent" > }, > "summary": "Set state to `sent`{.state .sent}", > "provider": "silo.state" > } > ], > "rescue": [ > { > "id": "dd889490-7b3a-11ef-bffc-d9a10ebf9f89", > "name": "Set state", > "config": { > "state": "error" > }, > "summary": "Set state to `error`{.state .error}", > "provider": "silo.state" > } > ] > } > ``` > [!WARNING] > > If in the unlikely scenario a document is rejected, you will need to try and > correct the error inside a new document and resend. As documents are all > chained together in the *Generate TicketBAI XML* step, modifications are not > permitted. ## Bizkaia activity code for individuals Individual suppliers (*autónomos*) issuing invoices in Bizkaia must report through the LROE Modelo 140 register, which requires an economic activity code (*epígrafe*). Set the [`es-tbai-bi-activity`](https://docs.gobl.org/addons/es-tbai-v1#activity-code-bizkaia) extension on the supplier with the appropriate code from the [Batuz LROE list of activity codes](https://www.batuz.eus/fitxategiak/batuz/lroe/batuz_lroe_lista_epigrafes_v1_0_4.xlsx). The code is a numeric value of up to seven digits. It is required for individual issuers in Bizkaia and is not used by organisations (which file through Modelo 240). ```json Supplier with Bizkaia activity code theme={"system"} "supplier": { "name": "Maria Garcia", "tax_id": { "country": "ES", "code": "12345678Z" }, "addresses": [ { "street": "San Frantzisko", "locality": "Bilbo", "region": "Bizkaia", "code": "48003", "country": "ES" } ], "ext": { "es-tbai-bi-activity": "6201" } } ``` ## VAT regime key TicketBAI requires every invoice line to report a `ClaveRegimenIvaOpTrascendencia` code that classifies the VAT regime or operation type. Set the [`es-tbai-regime`](https://docs.gobl.org/addons/es-tbai-v1#ticketbai-vat-regime-key) extension on a tax combo to control this value explicitly. The most common codes are: | Code | Description | | - | - | | `01` | General regime operation | | `02` | Export | | `03` | Used goods, art, antiques and collectibles | | `05` | Travel agencies | | `07` | Cash accounting | | `17` | OSS or IOSS | | `51` | Equivalence surcharge | | `52` | Simplified VAT regime | | `53` | Operations by or for entities without a permanent establishment | If you do not set the extension, GOBL assigns a default based on the line context: | Combo context | Regime code | | - | - | | Tax key is `export` | `02` | | Combo carries an equivalence surcharge | `51` | | Invoice has the `simplified-scheme` tag | `52` | | Otherwise | `01` | ```json Tax combo with explicit regime theme={"system"} "taxes": [ { "cat": "VAT", "rate": "standard", "ext": { "es-tbai-regime": "17" } } ] ``` See the [TicketBAI extension reference](https://docs.gobl.org/addons/es-tbai-v1#ticketbai-vat-regime-key) for the complete list of values. ## Customer identity type When a customer has no tax identifier (for example, a foreign individual paying with a passport), TicketBAI expects the document type to be reported under the `IDOtro` element with an `IDType` code from the L7 list. The [`es-tbai-identity-type`](https://docs.gobl.org/addons/es-tbai-v1#identity-type-code) extension on a party identity carries that code. Prefer the customer's tax ID where possible — GOBL maps it automatically: * Spanish tax IDs map to the `NIF` field. * EU tax IDs map to `IDOtro` with code `02` (NIF-VAT / VIES). * Non-EU tax IDs map to `IDOtro` with code `04` (foreign identity document). For other identity documents, set the identity `key` and GOBL fills in the extension: | Identity key | Extension code | Document | | - | - | - | | `passport` | `03` | Passport | | `foreign` | `04` | Foreign identity document | | `resident` | `05` | Spanish resident foreigner identity card | | `other` | `06` | Other identity document | ```json Customer with a passport theme={"system"} "customer": { "name": "Jane Smith", "identities": [ { "key": "passport", "country": "GB", "code": "123456789" } ] } ``` After normalization the identity carries `"ext": { "es-tbai-identity-type": "03" }`. ## Cancel an invoice TicketBAI also allows you to cancel an invoice. In general, you should only cancel an invoice if it hasn't been handed to the customer nor accepted by the tax authority. Different from a credit note or a corrective, canceling an invoice doesn't produce a second document, which means you don't have a paper to hand to your customer to show the cancellation. That's why, if the invoice has been handed to the customer, we recommend issuing a credit note instead. **1. Add a cancel invoice workflow (only once)** To cancel an invoice, you need a workflow with the *Cancel invoice* step. You can start with the template below. > [card] [TicketBAI cancel invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-ticketbai-cancel) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json TicketBAI cancel invoice workflow theme={"system"} > { > "name": "TicketBAI cancel invoice", > "description": "Cancel an invoice via TicketBAI", > "schema": "bill/invoice", > "steps": [ > { > "id": "2f897e30-3c9c-11f0-8690-a921c0418914", > "name": "Cancel invoice in TicketBAI", > "provider": "gov-es.ticketbai.cancel" > }, > { > "id": "334ffc10-3c9c-11f0-8690-a921c0418914", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "384cfe20-3c9c-11f0-8690-a921c0418914", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **2. Send to cancellation workflow** To cancel an invoice, simply send it to the TicketBAI cancel invoice workflow created earlier using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. The invoice's status will change to `Void` when the workflow completes successfully. ## Running Invopop uses the [GOBL](https://docs.gobl.org) framework for sending and storing invoices to be sent to TicketBAI. In this section we provide example GOBL documents that you can copy and customize. We also recommend using the [GOBL Builder](https://build.gobl.org) to test building invoices and generating PDFs in real-time to see what the framework is capable of. All of the following examples assume you will be performing two key steps: 1. Upload the example either via the [Invopop Console](https://console.invopop.com) or using the Invopop Silo [Create an Entry](/api-ref/silo/entries/create-an-entry-put) API endpoint. 2. Create a job to process the Silo Entry with your TicketBAI workflow either manually via the console, or using the Invopop Transform [Create a Job](/api-ref/transform/jobs/create-a-job-put) endpoint. The Invopop API will automatically prepare the uploaded documents from the minimal data provided, this allows us to keep the examples short and concise. [GOBL Invoices](https://docs.gobl.org/draft-0/bill/invoice) sent to TicketBAI require the following properties in order to perform the correct normalization and validation steps: * `$regime` to be set to [`ES`](https://docs.gobl.org/regimes/es) * `$addons` to include [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1) Invopop will try to assign these automatically if not explicitly provided. > [!TIP] > > If you do not already have a tax ID from a company in the Basque Country, you > will need to use test data. In the examples, we use the name > `HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr` and tax ID code `A99805194`, which were > issued by the TicketBAI tax authorities for testing. > [accordion] B2B Invoice > > In this example, we're issuing a standard B2B invoice from a Basque supplier to a customer in Madrid. > > Scenario details: > > * The supplier is based out of Bilbao in Bizkaia, using the sandbox data provided by TicketBAI. > * The customer is in Madrid. > * They're selling software development services with standard VAT. > * The series for the invoice is "F1". > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the invoice, > * we're applying the [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1) addon to ensure GOBL's TicketBAI validation checks are applied, > * there is no `currency` nor `issue_date`, as these will be assigned automatically, > * there is no invoice `code` as this will be assigned by the workflow, > * TicketBAI **requires** a general note, so we've added one at the bottom, > * when running `gobl build`, the system automatically calculates totals, assigns the `$regime` to `ES`, sets the [`es-tbai-region`](https://docs.gobl.org/addons/es-tbai-v1#region-code) extension to `BI` (Bizkaia) based on the supplier's address, applies the standard VAT rate (21%), and assigns the [`es-tbai-product`](https://docs.gobl.org/addons/es-tbai-v1#ticketbai-product-key) extension to `services` based on the item unit, > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json TicketBAI B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["es-tbai-v1"], > "series": "F1", > "supplier": { > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > "tax_id": { > "country": "ES", > "code": "A99805194" > }, > "addresses": [ > { > "num": "42", > "street": "San Frantzisko", > "locality": "Bilbo", > "region": "Bizkaia", > "code": "48003", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Receive One S.L.", > "tax_id": { > "country": "ES", > "code": "B98602642" > }, > "emails": [ > { > "addr": "billing@example.com" > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "Invoice for development services" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-tbai-v1" > ], > "type": "standard", > "series": "F1", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "es-tbai-region": "BI" > } > }, > "supplier": { > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > "tax_id": { > "country": "ES", > "code": "A99805194" > }, > "addresses": [ > { > "num": "42", > "street": "San Frantzisko", > "locality": "Bilbo", > "region": "Bizkaia", > "code": "48003", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Receive One S.L.", > "tax_id": { > "country": "ES", > "code": "B98602642" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-tbai-product": "services", > "es-tbai-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-tbai-product": "services", > "es-tbai-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > }, > "notes": [ > { > "key": "general", > "text": "Invoice for development services" > } > ] > } > ``` > [accordion] B2C Simplified Invoice > > In this example, we're issuing a simplified B2C invoice from a Basque supplier for an in-person sale. > > Scenario details: > > * The supplier is based out of Bilbao in Bizkaia, using the sandbox data provided by TicketBAI. > * There is no customer. > * Physical goods are being sold with a standard VAT rate. > * The series for the invoice is "FS1". > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the simplified invoice, > * there is no `customer` object, > * the `tax` object contains the `prices_include` value set to `VAT`, which will ensure all totals will be calculated assuming that prices include VAT, > * the line item includes a [`es-tbai-product`](https://docs.gobl.org/addons/es-tbai-v1#ticketbai-product-key) extension with the value `goods`, > * TicketBAI **requires** a general note, in this case we've added a generic message, > * when running `gobl build`, the system automatically calculates the tax-included totals (splitting the €25.10 price into €20.74 base + €4.36 VAT), assigns the `$regime` to `ES`, sets the [`es-tbai-region`](https://docs.gobl.org/addons/es-tbai-v1#region-code) extension to `BI` (Bizkaia), applies the standard VAT rate (21%), and normalizes all fields, > * the built version in the second tab shows the normalized document with calculated totals including tax-included calculations, line item sums, tax breakdowns, and automatically generated fields, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json TicketBAI B2C Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["es-tbai-v1"], > "$tags": ["simplified"], > "series": "FS1", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > "tax_id": { > "country": "ES", > "code": "A99805194" > }, > "addresses": [ > { > "num": "42", > "street": "San Frantzisko", > "locality": "Bilbo", > "region": "Bizkaia", > "code": "48003", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Advanced screwdriver set", > "price": "25.10", > "ext": { > "es-tbai-product": "goods" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "In person sale" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-tbai-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "FS1", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "es-tbai-region": "BI", > "es-tbai-simplified": "S" > } > }, > "supplier": { > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > "tax_id": { > "country": "ES", > "code": "A99805194" > }, > "addresses": [ > { > "num": "42", > "street": "San Frantzisko", > "locality": "Bilbo", > "region": "Bizkaia", > "code": "48003", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Advanced screwdriver set", > "price": "25.10", > "ext": { > "es-tbai-product": "goods" > } > }, > "sum": "25.10", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-tbai-product": "services", > "es-tbai-regime": "01" > } > } > ], > "total": "25.10" > } > ], > "totals": { > "sum": "25.10", > "tax_included": "4.36", > "total": "20.74", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-tbai-product": "services", > "es-tbai-regime": "01" > }, > "base": "20.74", > "percent": "21.0%", > "amount": "4.36" > } > ], > "amount": "4.36" > } > ], > "sum": "4.36" > }, > "tax": "4.36", > "total_with_tax": "25.10", > "payable": "25.10" > }, > "notes": [ > { > "key": "general", > "text": "In person sale" > } > ] > } > ``` > [accordion] Credit Note (Factura Rectificativa) > > In this example, we're issuing a rectifying invoice that credits part of a previously issued TicketBAI invoice. > > Notice: > > * the `type` is set to `credit-note`, which produces a factura rectificativa "por diferencias" — the lines describe the amounts being credited rather than restating the full corrected invoice, > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, > * the preceding entry carries the [`es-tbai-correction`](https://docs.gobl.org/addons/es-tbai-v1#correction-code) extension set to `R1` (correction due to legal grounds, art. 80.1, 80.2, and 80.6 of the Spanish VAT law); codes `R2`–`R4` cover other correction causes, > * TicketBAI **requires** a general note, so we've added one at the bottom, and, > * there are no totals or calculations in the minimal version; all these will be made automatically when uploading. > > ```json TicketBAI Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["es-tbai-v1"], > "type": "credit-note", > "series": "R1", > "preceding": [ > { > "type": "standard", > "series": "F1", > "code": "0042", > "issue_date": "2025-03-10", > "ext": { > "es-tbai-correction": "R1" > } > } > ], > "supplier": { > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > "tax_id": { > "country": "ES", > "code": "A99805194" > }, > "addresses": [ > { > "num": "42", > "street": "San Frantzisko", > "locality": "Bilbo", > "region": "Bizkaia", > "code": "48003", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Receive One S.L.", > "tax_id": { > "country": "ES", > "code": "B98602642" > }, > "emails": [ > { > "addr": "billing@example.com" > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "lines": [ > { > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "key": "general", > "text": "Credit note for services not delivered" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-tbai-v1" > ], > "type": "credit-note", > "series": "R1", > "issue_date": "2026-07-21", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2025-03-10", > "series": "F1", > "code": "0042", > "ext": { > "es-tbai-correction": "R1" > } > } > ], > "tax": { > "ext": { > "es-tbai-region": "BI" > } > }, > "supplier": { > "name": "HFPn5yhXZ9tdD4pHRbvwymaVPrGZQr", > "tax_id": { > "country": "ES", > "code": "A99805194" > }, > "addresses": [ > { > "num": "42", > "street": "San Frantzisko", > "locality": "Bilbo", > "region": "Bizkaia", > "code": "48003", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Receive One S.L.", > "tax_id": { > "country": "ES", > "code": "B98602642" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "450.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-tbai-product": "services", > "es-tbai-regime": "01" > } > } > ], > "total": "450.00" > } > ], > "totals": { > "sum": "450.00", > "total": "450.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-tbai-product": "services", > "es-tbai-regime": "01" > }, > "base": "450.00", > "percent": "21.0%", > "amount": "94.50" > } > ], > "amount": "94.50" > } > ], > "sum": "94.50" > }, > "tax": "94.50", > "total_with_tax": "544.50", > "payable": "544.50" > }, > "notes": [ > { > "key": "general", > "text": "Credit note for services not delivered" > } > ] > } > ``` ## FAQ > [accordion] Should I send credit notes with positive or negative values? > > You should send the credit note with the same sign as the original invoice. > > In Spain, unlike other countries, credit notes must be submitted to Hacienda with inverse values. Invopop handles this conversion automatically before transforming the credit note into a "factura rectificativa" (corrective invoice). > > This means you only need to send the credit note following international standards (with same sign as the invoice). Invopop will automatically adapt it when submitting to Hacienda. > > For reference, see the [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) documentation with `type` set to `credit-note`. > [accordion] Where do I find Spain-specific GOBL documentation? > > See the [Spain tax regime in GOBL](https://docs.gobl.org/regimes/es) for tax categories, NIF rules, and Spanish-specific extensions. Subsystem-specific addons live alongside: [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1), [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1), [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3). > [accordion] What's the workflow for issuing TicketBAI invoices? > > Build a GOBL invoice with the `es-tbai-v1` addon, send it through the TicketBAI Issue Invoice workflow. Invopop signs with its *sello de empresa* certificate, generates the chained XML, and submits to the relevant Diputación Foral (Bizkaia, Gipuzkoa, or Álava). > [accordion] Why don't TicketBAI QR codes work in the sandbox environment? > > This is expected. QR codes generated in the TicketBAI sandbox environment are intentionally non-functional to prevent sandbox invoices from being mistaken for real ones. > > To verify that a sandbox QR code is correct, upload the PDF or a QR image to the foral tax authority's test verification page: [pruebatuz.bizkaia.eus](https://pruebatuz.bizkaia.eus/B4PEQR0C/testQr.xhtml?idioma=es). > [accordion] What are the most common TicketBAI errors and how do I fix them? > > These are the errors we see most often when submitting invoices to the Diputaciones Forales: > > | Code | Error | Meaning and fix | > | - | - | - | > | `B4_2000001` / `B4_2000002` | XML fails XSD validation | Typically an invoice `code` longer than 20 characters. Some are `cvc-pattern` failures, meaning a field doesn't match the expected format. Fix the offending field and resend in a new document. | > | `N3_0000002` | Supplier not identified, or legal name incorrect | The NIF or legal name isn't registered with that region's tax agency, often after a change of legal name. Update the supplier's details with the agency, then resend. | > | `503` | Service unavailable | The agency's service is temporarily down. Retry later. | > | `B4_2000016` | Credit note has no series | Credit notes need a non-empty `series`. Add one and resend. | > | `008` | Signature verification error | Usually reported after the fact by the Diputación Foral, even though the invoice was accepted at submission. It's often caused on the tax agency's side. Issue a new invoice rather than trying to correct the original. | > | `004` / `012` | Software registration verification error | The supplier's TicketBAI registration isn't complete, for example when the final onboarding confirmation hasn't been done. Finish the [supplier registration](/guides/es-ticketbai-supplier) before issuing invoices. | > > Because TicketBAI documents are chained, a rejected invoice can't be edited in place. Correct the problem in a new document and send it again. More available in our [Spain FAQ](/faq/spain) section *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about TicketBAI invoicing in Spain → # TicketBAI onboarding guide Source: https://docs.invopop.com/guides/es-ticketbai-supplier Create and register suppliers in Spain with TicketBAI. ## Introduction The Basque Country's provincial tax authorities (Diputaciones Forales of Álava, Gipuzkoa, and Bizkaia) require that companies and self-employed individuals (autónomos) formally authorize Invopop to issue invoices on their behalf. To comply with this regulation, the company's legal representative or *autónomo* must sign an agreement granting Invopop consent to generate and manage invoices in their name. This signed authorization ensures that all invoicing activities carried out by Invopop are legally valid and recognized by the corresponding tax authority. For this process, the supplier can sign the agreement PDF with a valid digital certificate, such as one issued by the FNMT (a [personal certificate](https://www.sede.fnmt.gob.es/certificados/persona-fisica) for *autónomos*, or a [representative certificate](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica) for companies), or a handwritten signature with a company stamp (*sello de empresa*), in which case the user must provide a valid ID such as DNI, NIE or passport. In the case of self-employed individuals (*autónomos*) a company stamp is not required. This guide will... 1. Walk you through the process of creating the workflows necessary to onboard yourself and/or your suppliers (in a [white-label setup](/guides/white-label)), 2. Explain how to complete the supplier onboarding wizard, and 3. Explain the approval process and what to do in case of rejection. | - | Sandbox | Live | | - | - | - | | **Supplier registration** | Required (automated acceptance/rejection) | Required (documents verified automatically on submission) | | **Environment** | TicketBAI - Pruebas | TicketBAI - Producción | ## Setup **1. Connect the Spain app** 1. Go to **Configuration** → **Apps** in the [Console](https://console.invopop.com). 2. Find **Spain** in the app list. 3. Click **Connect** to activate the app. ![Spain app connected](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-spain-app.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=65c63184ad6201dc7c53f22ec2144486) **2. Create a supplier registration workflow** Create a new workflow for registering suppliers. Start with the template below: > [card] [TicketBAI supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=es-ticketbai-supplier-registration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json TicketBAI register supplier workflow theme={"system"} > { > "name": "TicketBAI register supplier", > "description": "Register a supplier with TicketBAI", > "schema": "org/party", > "steps": [ > { > "id": "554c7040-66d7-11f0-a392-dfb6c99d6698", > "name": "Register supplier with TicketBAI", > "provider": "gov-es.ticketbai.register" > }, > { > "id": "62148880-66d7-11f0-a392-dfb6c99d6698", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "5b924600-66d7-11f0-a392-dfb6c99d6698", > "name": "Wait for TicketBAI supplier agreement upload", > "provider": "gov-es.ticketbai.wait.upload" > }, > { > "id": "6bec1080-66d7-11f0-a392-dfb6c99d6698", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > }, > { > "id": "670d1dc0-66d7-11f0-a392-dfb6c99d6698", > "name": "Wait for TicketBAI supplier approval", > "provider": "gov-es.ticketbai.wait.approval" > } > ], > "rescue": [ > { > "id": "76c13260-66d7-11f0-a392-dfb6c99d6698", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### Create a supplier entry Whether you issue invoices on behalf of third parties ([white label](/guides/white-label)) or under your own name, the process is essentially the same. **1. Upload a supplier** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a new supplier [party](https://docs.gobl.org/draft-0/org/party) (example below). Strictly required fields are company `name` and `tax_id` (the supplier will be able to supplement the information as required by the corresponding Diputación Foral). To reduce user input errors, it's recommended filling the fields as completely as possible: > [accordion] Spanish company > > To register a company supplier in Spain you must provide: > > * **Company information**: name, NIF (tax identification number), and address > * **Legal representative information**: full name, government ID type and number (DNI, NIE, or passport), and address > > The legal representative is the person authorized to sign the representation agreement on behalf of the company. > > > [!NOTE] > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` > [accordion] Spanish autónomo > > An *autónomo* is a self-employed individual in Spain who operates as a sole proprietor. To register them, a NIF (tax id number) with the corresponding full name and address must be provided. > > Unlike company suppliers, autónomos do not require separate legal representative information since the individual is the authorized signatory. > > > [!NOTE] > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > ```json Spain autónomo supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Juan Pérez González", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "autonomo@example.com" > } > ] > } > ``` Set the `folder` to `suppliers` to have the party appear in this section. It should appear with an `Empty` status unless set otherwise. ![Upload supplier to Invopop](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-2.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=f34e1ea314e7df9ce4c5f521c56638d4) Upload supplier to Invopop **2. Send the supplier to the registration workflow** * **Via API** - Send the supplier to the registration workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint using the `ID`s of the **silo entry** and **supplier registration workflow**. * **Via Console** - From the Silo Entry select "Run workflow" and select the **supplier registration workflow**. The supplier's status will change to `Processing` while waiting for supplier registration and verification. **3. Complete the registration workflow** > [tab] Your own company > > Within the silo entry in console, select **Meta** and then click **ticketbai.invopop.com**. This will launch the registration wizard for your company. > > ![Supplier entry meta](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-entry-meta.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=9cc64cb9b77452b06fb3edb015d7af3f) > [tab] Third-party companies > > Add a webhook before the **Wait for supplier registration** step to obtain the registration link. The webhook payload contains the `siloEntryId`, not the `meta` object directly. Use the [Fetch an Entry endpoint](/api-ref/silo/entries/fetch-an-entry) to retrieve the invoice and extract the `meta` object from the response. > > The `meta` object looks like this: > > > [accordion] Example supplier meta registration link > > > > ``` > > data: { > > ... > > "meta": [ > > { > > "id": "...", > > "created_at": "2025-11-05T15:10:28.132Z", > > "updated_at": "2025-11-14T15:56:53.727Z", > > "owner_id": "...", > > "entry_id": "...", > > "src": "ticketbai", > > "key": "link", > > "ref": "EgDeG3pDBDe", > > "link_url": "https://ticketbai.invopop.com/reg/EgDeG3pDBDe", > > "link_scope": "public", > > "indexed": true, > > "shared": true > > } > > ] > > } > > ``` > > Forward the `link_url` to your customer. **4. Check the registration result** Approval is automated: Invopop verifies the signed agreement and the signatory's ID as soon as the supplier submits them, so there is no manual review or waiting period. The supplier is entitled to issue invoices immediately, and that entitlement is only revoked if the verification finds a problem with their documentation. Once the registration wizard has been completed, the supplier's status will change to `Registered`. If not successful because the supplier did not complete the process or their documentation was rejected, the status will change to `Rejected`, and you can inspect the job history of this document to see the reason. ![Supplier registered](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-1.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=0a422923f5f8b4c2b7f336f77e2c4313) Supplier registered successfully > [!WARNING] > > If a supplier's agreement documentation is rejected and you need to onboard them again, unregister the supplier and run the registration workflow again (see [Unregister a supplier](#unregister-a-supplier)). ## How TicketBAI supplier registration works The process is best explained looking at the workflow steps: ![Supplier Registration Workflow](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-register-supplier.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=46259a7251910265d33cfed3901917cc) Supplier Registration Workflow 1. **Register supplier** will generate a unique URL and add it into a `url` key value within the `meta` property. You would add a webhook after this step to notify the supplier. 2. **Set state to Processing** labels the silo entry so you know it's in process of registration. 3. **Wait for supplier registration** waits for the supplier to upload the required documents (signed agreement and ID). The supplier will be entitled to issue invoices through TicketBAI immediately after the documents are uploaded. 4. **Set state to Registered** labels the silo entry so you know registration is complete. 5. **Wait for supplier approval** In live environments, Invopop automatically verifies the documents provided by the supplier as soon as they are uploaded, so this step completes immediately. In sandbox, you can configure the workflow step to accept or reject providers. Upon rejection, the workflow will error with a `KO` and the reason for rejection can be reviewed in the Supplier or in the executed job. The supplier's invoice issuing entitlement will be revoked immediately. > [!NOTE] > > In sandbox "Wait for supplier approval" can be configured to accept or reject suppliers. **Error flow:** if the supplier's documentation is rejected, or the supplier does not complete the registration within the job's time limit (100 days) a `KO` will be generated, triggering the error flow. Then these steps will be run: 1. **Unregister supplier with TicketBAI** will clean up all registration processes and entitlements. You will be able to re-register the party later. 2. **Set state to Rejected** labels the silo entry so you know the registration was rejected (due to timeout or incorrect documentation). ## Register a supplier Suppliers need to provide the following documents for Invopop to issue invoices on their behalf: 1. A signed direct representation agreement. If the supplier is a self-employed individual (*autónomo*), stamping is unnecessary. 2. A copy of signatory's fiscal ID (DNI/NIE or passport in the case of non-residents) if the agreement is not signed with a valid [digital certificate](https://www.sede.fnmt.gob.es/certificados/persona-fisica) such as one from the FNMT. These documents can be collected through a multi-step web form (*wizard*) which is enabled through the *Supplier registration workflow* created during [setup](#setup). ### Onboard suppliers through the supplier registration wizard The supplier registration wizard walks you (or your customers) through the necessary legal requirements to issue TicketBAI invoices. Each issuer must submit a signed representation agreement between Invopop and the issuer, along with documentation proving their legal authority to enter into such an agreement. Once you run the Supplier Registration Workflow, you will find the `link_url` in the `meta` property of the supplier entry. Here is an example API response: > [accordion] Example supplier meta registration link > > ``` > data: { > ... > "meta": [ > { > "id": "...", > "created_at": "2025-11-05T15:10:28.132Z", > "updated_at": "2025-11-14T15:56:53.727Z", > "owner_id": "...", > "entry_id": "...", > "src": "ticketbai", > "key": "link", > "ref": "EgDeG3pDBDe", > "link_url": "https://ticketbai.invopop.com/reg/EgDeG3pDBDe", > "link_scope": "public", > "indexed": true, > "shared": true > } > ] > } > ``` In console, you will find the link in the `Meta` tab in the right sidebar of the supplier's entry. This wizard can be embedded as an `iframe` to onboard your customers without leaving your product or platform. **1. Welcome screen** ![Supplier registration wizard](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-wizard-1.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=2a4b93424a44f7c646e0312d0097b5a4) Your customers will be met with the first page detailing the necessary documentation required for the process. **2. Information verification** ![Supplier registration wizard](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-wizard-2.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=0d03c407040a1f92e8ac4cab28f59648) The user can edit personal or company information. If the user is a self-employed individual, only the company information block will appear. Such individuals should enter their real name in the "Nombre" field, as this is matched by the corresponding tax authority against their tax id. **3. Download agreement** ![Supplier registration wizard](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-wizard-3.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=f446ffb434c25e7269a8e5b7a5b2ad6a) On the following page, the issuer can download and sign their agreement. The details from the previous page will auto-populate into the contract. The issuer (you, or your customer) will require the following: 1. **Self-employed individuals (autónomos)** * Signed agreement (handwritten signature or e-signature with the [FNMT's Certificado Electrónico de Ciudadano](https://www.sede.fnmt.gob.es/certificados/persona-fisica)) * National ID (DNI/NIE) if handwritten signature. 2. **Companies** * Signed agreement (handwritten signature or e-signature with the [FNMT's Certificado Electrónico de Representante](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) * If handwritten signature, legal representative's ID (DNI/NIE/passport) and company stamp. Please be advised that only certificates issued by [accepted providers](#legal-information) are valid. Self-signed certificates are not considered valid. **4. Upload signed agreement** ![Supplier registration wizard](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-wizard-4.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=990e4605af761eb7c9621509b029e617) Issuers select the type of signature they used and upload their document. If digital signature is selected, the following step will be skipped as a signature through a FNMT digital certificate counts as a proof of identification. **5. Upload ID** ![Supplier registration wizard](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-wizard-5.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=1f35a37c03bbee29d999e3871e0fa872) The legal representative or *autónomo* uploads a scan or clear photo of their ID in a valid image format (JPG or PNG). The ID should ideally be a DNI/NIE, as passports are only used when the person is not entitled to have one. Both the front and reverse of the ID should be submitted here. If the ID is a passport (only valid for non-Spanish residents who are representatives of a company), they can upload the main page of their passport both times. **6. Review details** ![Supplier registration wizard](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-wizard-6.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=34d2f7eba5bec8e5e24c2ed668cdc720) This page provides a summary of information so the user can verify they have submitted the correct data. Any corrections can be easily made through the edit function. **7. Confirmation screen** ![Supplier registration wizard](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-ticketbai-supplier-wizard-7.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=5e3c832c857a3440a66769262351ee76) A green checkmark will indicate success. The submitted documents are verified automatically, so the supplier is approved and registered right away unless a problem is found. ## Unregister a supplier Unregistering a supplier is essentially revoking their invoice issuing privileges. You might need to unregister an entity because the supplier is no longer your client or because of a change in their Tax ID. To do so, use the following workflow template: > [card] [TicketBAI unregister supplier](https://console.invopop.com/redirect/workflows/new?template=es-ticketbai-unregister) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json TicketBAI unregister supplier workflow theme={"system"} > { > "name": "TicketBAI unregister supplier", > "description": "Unregister a supplier from TicketBAI", > "schema": "org/party", > "steps": [ > { > "id": "8a613610-67ba-11f0-bcaf-170efff782a9", > "name": "Unregister supplier from TicketBAI", > "provider": "gov-es.ticketbai.unregister" > }, > { > "id": "96a6b0d0-67ba-11f0-bcaf-170efff782a9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "e8d2a6b0-67bb-11f0-bcaf-170efff782a9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Legal information > [accordion] TicketBAI representation agreement > > The Basque provincial tax authorities require that invoicing software providers acting on behalf of third parties have a signed representation agreement. This agreement authorizes Invopop to generate and submit invoices to the corresponding Diputación Foral on behalf of the supplier. > [accordion] Valid digital signatures for the TicketBAI Supplier Agreement PDF > > Digital signatures rely on certificates, but not all certificates serve as proof of identity. The Basque provincial tax authorities accept only qualified certificates—those issued by an authority that has verified the holder's identity in advance. > > For individuals, this means using an official certificate from an accredited provider such as the FNMT. Obtaining that certificate requires submitting your ID and completing identity verification. Because this process already confirms who you are, the tax authority treats the resulting digital signature as legally binding identification. As a result, no additional identity check is needed during registration. > > In contrast, certificates generated directly by applications like Adobe Acrobat do not involve any identity verification. They are self-signed and therefore cannot be used for official submissions or as valid digital signatures in government procedures. > > If you wish to obtain a certificate that is valid for most (if not all) Spanish government procedures, you can do so by following the procedure on [certificates page of the FNMT](https://www.sede.fnmt.gob.es/certificados/persona-fisica). For instructions on how to make it available in Acrobat Reader to sign official documents, consult [this PDF](https://www.sede.fnmt.gob.es/documents/10445900/10528353/Firmar_documento_PDF_Adobe_Acrobat_Reader_DC.pdf). > > Otherwise, we require the secondary procedure of signing the document by handwritten signature, and an official ID as proof of identity as required by the tax authority. > > The following certificate providers are accepted: > > * AC ABOGACÍA > * ANF AC > * ANF CA > * BEWOR > * CAMERFIRMA > * CENTRO TECNOLÓGICO DEL NOTARIADO > * CERES FÁBRICA NACIONAL DE MONEDA Y TIMBRE - REAL CASA DE LA MONEDA, E.P.E, M.P. (FNMT-RCM) > * CONSORCI AOC (CATCERT) > * DEH ONLINE > * DIGITEL TS > * DIRECCIÓN GENERAL DE LA POLICÍA > * DOCUTEN > * EADTRUST > * EDICOM > * ESFIRMA > * FIRMAFY > * FIRMAPROFESIONAL, S.A. > * INDIZE > * IZENPE, S.A. > * LLEIDANET PKI > * LOGALTY SERVICIOS DE TERCERO DE CONFIANZA S.L. > * MINISTERIO DE DEFENSA DE ESPAÑA > * PERMISSO > * REGISTRADORES DE ESPAÑA > * SECTIGO > * SIA > * SIGNATURIT- IVNOSYS > * SIGNE AUTORIDAD DE CERTIFICACIÓN > * SIGNICAT SPAIN > * UANATACA > * VALIDATED ID > * VINTEGRIS ## FAQ > [accordion] What are the most common reasons for failing supplier approval? > > We reject agreements when: > > * The uploaded document is not signed (they upload the unsigned template). > * Users upload a handwritten signature without an ID. > * The electronic signature does not belong to the legal representative (or to the *autónomo* themselves). > * A company's agreement is signed with a personal certificate (e.g. the FNMT's *Certificado Electrónico de Ciudadano*) instead of a representative certificate (e.g. the FNMT's [*Certificado Electrónico de Representante*](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) for that company. > * The agreement is missing a date or location. > * The name is entered as an email address. > > The job will state the reason for rejection. > [accordion] What happens if a supplier does not complete their registration within the allotted wait time? > > A KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a reminder to the supplier through a webhook. > > The registration link will not expire and the entity will still be able to upload their registration documents which will be validated. Should you choose to run this workflow again using this supplier, the supplier will be accepted or rejected immediately because the required documentation has already been provided and validated. > [accordion] What happens if a supplier validation is rejected? > > If the uploaded agreement documents were rejected, a KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a notification to the supplier through a webhook within the **Error Handling** section. > > Afterwards, if you wish to re-register the supplier with new documents, you must: > > 1. Unregister the supplier using the **Unregister Supplier workflow**. > 2. Re-run the Register supplier workflow. > > This will restart the entire registration process. When uploading documents, the previously submitted agreement will appear selected by default. Simply choose a new file and click `Continue` to override the old one. See the image below for reference: > > ![Overriding the previously submitted agreement](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-update-agreement.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a20bb8dd02df632d114e0519f4d34899) > > Overriding the previously submitted agreement > [accordion] What is the minimum information required to register a supplier? > > In order to complete the representation agreement you will need to provide the following information: > > **Company** > > 1. Name > 2. NIF > 3. Address > > **Legal representative** > > 1. Full name > 2. Government ID type and number > 3. Address > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` > > If the entity is a self-employed individual (*autónomo*), only the information requested in the **Legal representative** section is required. > > ```json Spain autónomo supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Juan Pérez González", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "autonomo@example.com" > } > ] > } > ``` > [accordion] What methods are available to sign the PDF supplier agreements? > > The supplier can add their electronic signature to the PDF document ([instructions](https://helpx.adobe.com/acrobat/using/signing-pdfs.html)), or sign with a handwritten signature (we recommend using [Adobe's online service](https://www.adobe.com/acrobat/online/sign-pdf.html)). > [accordion] What is the file size limit for the documents provided in the supplier registration flow? > > Individual documents are limited to a maximum size of 10MB. Uploads exceeding this size will result in an error. > [accordion] How do I register a supplier with TicketBAI? > > Run the TicketBAI Register Supplier workflow. The legal representative signs the agreement (electronic or handwritten + ID); the supplier's foral territory determines which Diputación Foral endpoint Invopop will submit to. > [accordion] What certificates does TicketBAI require to authenticate a supplier? > > None — Invopop uses its own *certificado sello de empresa* (one of the three TicketBAI-permitted types). Suppliers do not need to register with the foral tax authority or upload any certificate. More available in our [Spain FAQ](/faq/spain) section *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # VERI*FACTU invoicing guide Source: https://docs.invopop.com/guides/es-verifactu Issue invoices in Spain with VERI*FACTU. ## Introduction VERI\*FACTU is a fiscal initiative by the Spanish Tax Agency (AEAT) that requires businesses to report invoices through certified software. The system generates unique identifiers for each invoice and creates digitally signed XML files that are submitted to the tax authorities. > [!NOTE] > > On 5 October 2026 the AEAT announced that the pending VERI*FACTU obligations under Real Decreto 1007/2023 will be postponed to **October 2028**, aligning them with the Crea y Crece e-invoicing mandate for businesses with annual turnover of €8M or less. The previous deadlines (1 January 2027 for companies, 1 July 2027 for other taxpayers) no longer apply once the amendment is formally approved. Companies reporting with SII or TicketBAI remain exempt from VERI*FACTU. The system is already live and can be used voluntarily today. ## Prerequisites To issue your first VERI\*FACTU invoice, you must have registered at least one supplier. Make sure you read and implemented the [VERI\*FACTU supplier registration guide](/guides/es-verifactu-supplier) before continuing with this guide. ## Setup Add a new workflow to your workspace for issuing invoices. You can start with the template below. > [card] [VERI\*FACTU invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-verifactu-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json VERI*FACTU issue invoice workflow theme={"system"} > { > "name": "VERI*FACTU issue invoice", > "description": "Issue a VERI*FACTU invoice and generate PDF with QR", > "schema": "bill/invoice", > "steps": [ > { > "id": "59f4dee0-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "ec41cce0-0fc3-11f0-8a81-7911b3ecee3c", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · VERI*FACTU · 000001", > "config": { > "name": "Verifactu", > "padding": 6, > "start": 1 > } > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "ef2ce710-bc8e-11ef-8ca1-573cbe7db4cd", > "name": "Generate VERI*FACTU XML", > "provider": "verifactu.generate" > }, > { > "id": "61661540-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Send invoice to VERI*FACTU", > "provider": "verifactu.send" > }, > { > "id": "65312700-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Spanish · A4", > "config": { > "date_format": "%Y-%m-%d", > "layout": "A4", > "locale": "es", > "logo_height": 60 > } > }, > { > "id": "6abb4de0-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "798b1d00-bc8f-11ef-8ca1-573cbe7db4cd", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` Keep the `Workflow ID` at hand, you'll use it later. > [!NOTE] > > VERI\*FACTU allows for document modifications after submission. If a document is rejected or contains errors, update the GOBL details and resubmit to the same workflow. Have your agent issue a VERI\*FACTU invoice in your sandbox. Read [https://docs.invopop.com/guides/es-verifactu.md](https://docs.invopop.com/guides/es-verifactu.md), [https://docs.invopop.com/guides/es-verifactu-supplier.md](https://docs.invopop.com/guides/es-verifactu-supplier.md) and [https://docs.gobl.org/addons/es-verifactu-v1.md](https://docs.gobl.org/addons/es-verifactu-v1.md). In my sandbox workspace, using the token in INVOPOP\_TOKEN and the workflow ID I give you, create a bill/invoice entry with $regime ES, $addons containing es-verifactu-v1, the pre-enabled sandbox supplier from the guide, and the lines I describe with taxes as the VAT category plus a rate key. Do not write totals or percentages and do not invent extension codes; start from one of the example invoices in the guide. Run the workflow with wait=30, then fetch the entry and report its state, the stamps in the envelope header, the attached XML and PDF, and any faults with their AEAT error codes explained using [https://docs.invopop.com/faq/spain.md](https://docs.invopop.com/faq/spain.md). ## Issue an invoice **1. Upload an Invoice** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the invoice details. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data) field with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `supplier`: Use the details of the supplier you've registered before. You can copy one of the example invoices below as a reference. > [accordion] B2C Simplified Invoice > > Simplified invoices are used for B2C transactions when the customer is not a business. The transaction amount should be under €400 (VAT included) with some [exceptions](https://sede.agenciatributaria.gob.es/Sede/iva/facturacion-registro/facturacion-iva/tipos-factura.html) in which this threshold is increased to €3,000. > > To create a simplified VERI\*FACTU invoice, include the `simplified` tag in your GOBL document with the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon. > > ```json B2C Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a standard tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F2" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a standard tax" > } > ] > } > ``` > [accordion] B2B Standard Invoice > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > * The customer is a registered business (has a tax identification number). > * The transaction amount is €400 VAT included or above, or the customer requires a full invoice. > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > To create a regular VERI\*FACTU invoice, include the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon and ensure the `customer` field contains valid tax identification details. The addon will automatically set the document type to `F1` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > [!NOTE] > > > > The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` NIF or VAT ID must be valid. > > ```json B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > [accordion] B2B Services EU Client (Reverse Charge) > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > * The service is provided to a business customer (B2B), not a consumer. > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > To create a reverse charge VERI\*FACTU invoice, use the tax key `reverse-charge` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the operation class to `S2` (Subject and Not Exempt - With reverse charge) when the silo entry is built. > > > [!NOTE] > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > ```json B2B Intra-community Services invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000001", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with reverse charge" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000001", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "ext": { > "es-verifactu-op-class": "S2", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "reverse-charge", > "ext": { > "es-verifactu-op-class": "S2", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with reverse charge" > } > ] > } > ``` > [accordion] B2B Goods EU Client (Intra-Community) > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > * Goods are physically delivered to another EU member state. > * The supply is exempt from VAT in the origin country (Spain) and subject to VAT in the destination country. > > To create an intra-community supply VERI\*FACTU invoice, use the tax key `intra-community` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E5` ([Artículo 25 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a25)) when the silo entry is built. > > > [!NOTE] > > > > With intra-community supplies, no VAT is charged in Spain. The customer accounts for VAT in their destination country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > ```json Intra-community goods invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000003", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "intra-community" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a intra-community" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000003", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "DE", > "code": "111111125" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "intra-community", > "ext": { > "es-verifactu-exempt": "E5", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "intra-community", > "ext": { > "es-verifactu-exempt": "E5", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a intra-community" > } > ] > } > ``` > [accordion] B2B Services International Client (Outside Scope) > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > To create an outside scope VERI\*FACTU invoice, use the tax key `outside-scope` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the operation class to `N2` (Not Subject - Due to location rules) when the silo entry is built. > > > [!NOTE] > > > > Services provided to non-EU customers are generally outside the scope of Spanish VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > ```json B2B International Services invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000002", > "issue_date": "2025-11-17", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "outside-scope" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a outside-scope tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000002", > "issue_date": "2025-11-17", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "outside-scope", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "outside-scope", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a outside-scope tax" > } > ] > } > ``` > [accordion] B2B Goods International Client (Export) > > Export invoices are used for B2B goods delivered to customers outside the EU. > > To create an export VERI\*FACTU invoice, use the tax key `export` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E2` ([Artículo 21 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a21)) and regime code to `02` (Export) when the silo entry is built. > > > [!NOTE] > > > > Exported goods are exempt from Spanish VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > ```json B2B International Goods invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000004", > "issue_date": "2025-11-17", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "export" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a export" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "sett/000004", > "issue_date": "2025-11-17", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "SG", > "code": "199912345R" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Goods", > "price": "90.00" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "export", > "ext": { > "es-verifactu-exempt": "E2", > "es-verifactu-regime": "02" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "export", > "ext": { > "es-verifactu-exempt": "E2", > "es-verifactu-regime": "02" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a export" > } > ] > } > ``` > [accordion] B2B Exempt E1 Invoice > > Exempt `E1` invoices are used for B2B transactions that are exempt from VAT pursuant to [Artículo 20 Ley de IVA](https://www.boe.es/eli/es/l/1992/12/28/37/con#a20), which covers exemptions in internal operations. > > To create an exempt E1 VERI\*FACTU invoice, use the tax key `exempt` in your invoice lines. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon will automatically set the exemption code to `E1` when the silo entry is built. > > > [!NOTE] > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` NIF must be valid. > > ```json B2B Exempt E1 Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt" > } > ], > "total": "1800.00" > } > ], > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "es-verifactu-exempt": "E1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "es-verifactu-exempt": "E1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "general", > "text": "This is a sample invoice with a exempt tax" > } > ] > } > ``` > [accordion] B2C One-Stop-Shop Invoice > > One-Stop-Shop (OSS) invoices are used for B2C distance sales of goods and electronically supplied services to consumers in other EU member states when the supplier is registered under the OSS scheme. > > To create an OSS VERI\*FACTU invoice, include the `simplified` tag in your GOBL document with the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon, give the `customer` an address in the destination member state without a tax ID, and set `country` on each line's VAT to that state with the `es-verifactu-regime` extension `17`. The invoice is treated as a simplified invoice (document type `F2`), VAT is calculated at the destination country's rate, and the operation is reported as not subject to Spanish VAT under the OSS regime. > > > [!NOTE] > > > > OSS allows suppliers to register for VAT in one EU member state and account for VAT on all EU distance sales through that single registration. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and enrolled in the OSS scheme. > > ```json B2C One Stop Shop Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Anna Müller", > "addresses": [ > { > "num": "12", > "street": "Rosenthaler Straße", > "locality": "Berlin", > "code": "10119", > "country": "DE" > } > ], > "emails": [ > { > "addr": "anna.mueller@example.de" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Wireless headphones", > "price": "149.00", > "unit": "item" > }, > "sum": "298.00", > "taxes": [ > { > "cat": "VAT", > "country": "DE", > "rate": "standard", > "ext": { > "es-verifactu-regime": "17" > } > } > ], > "total": "298.00" > } > ], > "notes": [ > { > "key": "general", > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "code": "004", > "issue_date": "2024-11-13", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F2" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Anna Müller", > "addresses": [ > { > "num": "12", > "street": "Rosenthaler Straße", > "locality": "Berlin", > "code": "10119", > "country": "DE" > } > ], > "emails": [ > { > "addr": "anna.mueller@example.de" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Wireless headphones", > "price": "149.00", > "unit": "item" > }, > "sum": "298.00", > "taxes": [ > { > "cat": "VAT", > "country": "DE", > "key": "standard", > "rate": "general", > "percent": "19%", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "17" > } > } > ], > "total": "298.00" > } > ], > "totals": { > "sum": "298.00", > "total": "298.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "country": "DE", > "key": "standard", > "ext": { > "es-verifactu-op-class": "N2", > "es-verifactu-regime": "17" > }, > "base": "298.00", > "percent": "19%", > "amount": "56.62" > } > ], > "amount": "56.62" > } > ], > "sum": "56.62" > }, > "tax": "56.62", > "total_with_tax": "354.62", > "payable": "354.62" > }, > "notes": [ > { > "key": "general", > "text": "Goods shipped to a consumer in Germany under the EU One Stop Shop (OSS) scheme: VAT is charged at the German rate and declared through the Spanish OSS return." > } > ] > } > ``` > [accordion] Credit note (rectificativa por diferencias) > > ```json Rectificativa por diferencias theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", > "type": "credit-note", > "series": "CN", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004" > } > ], > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", > "type": "credit-note", > "series": "CN", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004" > } > ], > "tax": { > "ext": { > "es-verifactu-correction-type": "I", > "es-verifactu-doc-type": "R1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > } > } > ``` > [accordion] Corrective invoice (rectificativa por sustitución) > > ```json Rectificativa por sustitución theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "corrective", > "series": "CO", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > } > } > ], > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ], > "total": "1800.00" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "corrective", > "series": "CO", > "issue_date": "2025-05-29", > "currency": "EUR", > "preceding": [ > { > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "issue_date": "2024-11-13", > "series": "SAMPLE", > "code": "004", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > } > } > ], > "tax": { > "ext": { > "es-verifactu-correction-type": "S", > "es-verifactu-doc-type": "R1" > } > }, > "supplier": { > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "1800.00" > } > ], > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "1800.00", > "percent": "21.0%", > "amount": "378.00" > } > ], > "amount": "378.00" > } > ], > "sum": "378.00" > }, > "tax": "378.00", > "total_with_tax": "2178.00", > "payable": "2178.00" > } > } > ``` > [accordion] Replacement invoice (factura de canje) > > ```json Factura de canje theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "type": "standard", > "tax": { > "tags": [ > "replacement" > ] > }, > "series": "FC", > "issue_date": "2026-02-26", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-02-20", > "series": "FS", > "code": "001" > } > ], > "supplier": { > "name": "Easor Software Solutions S.L.", > "tax_id": { > "country": "ES", > "code": "B24830515" > }, > "addresses": [ > { > "num": "532", > "street": "Avenida Diagonal", > "locality": "Barcelona", > "region": "Barcelona", > "code": "08006", > "country": "ES" > } > ] > }, > "customer": { > "name": "Cliente Ejemplo S.L.", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Servicio de consultoría", > "price": "500.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "replacement" > ], > "type": "standard", > "series": "FC", > "issue_date": "2026-02-26", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-02-20", > "series": "FS", > "code": "001" > } > ], > "tax": { > "ext": { > "es-verifactu-doc-type": "F3" > } > }, > "supplier": { > "name": "Easor Software Solutions S.L.", > "tax_id": { > "country": "ES", > "code": "B24830515" > }, > "addresses": [ > { > "num": "532", > "street": "Avenida Diagonal", > "locality": "Barcelona", > "region": "Barcelona", > "code": "08006", > "country": "ES" > } > ] > }, > "customer": { > "name": "Cliente Ejemplo S.L.", > "tax_id": { > "country": "ES", > "code": "B63272603" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Servicio de consultoría", > "price": "500.00" > }, > "sum": "500.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "21.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "500.00" > } > ], > "totals": { > "sum": "500.00", > "total": "500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "500.00", > "percent": "21.0%", > "amount": "105.00" > } > ], > "amount": "105.00" > } > ], > "sum": "105.00" > }, > "tax": "105.00", > "total_with_tax": "605.00", > "payable": "605.00" > } > } > ``` > [accordion] B2C Hotel + IEET (Catalonia tourist tax) > > The Catalan tourist tax (IEET, *Impost sobre les Estades en Establiments Turístics*) is a regional tax administered by the Agència Tributària de Catalunya — not the AEAT — so it is **not** classified as a tax in the VERI\*FACTU record. Hotels declare it directly to the Generalitat through the quarterly Modelo 950. > > Model the IEET as a document-level [`charge`](https://docs.gobl.org/draft-0/bill/invoice#charge) with `key: "tax"`. This keeps it outside the VAT base (Art. 35 of Llei 5/2017 requires it to be shown separately from the consideration) and lets it flow into the invoice's `ImporteTotal` for VERI\*FACTU without being reported as a tax category. > > > [!NOTE] > > > > Do not model the IEET as a `VAT` tax line — it is a fixed amount per night, not a percentage, and should not be reported to the AEAT. The `reason` field on the charge is what appears on the guest's invoice, so include the establishment type, location, nights, and rate for a clear breakdown. > > ```json B2C Hotel + IEET (Catalonia tourist tax) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "series": "SAMPLE", > "issue_date": "2026-05-06", > "supplier": { > "name": "Hotel Barcelona Example SL", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "locality": "Barcelona", > "code": "08001", > "country": "ES" > } > ] > }, > "customer": { > "name": "John Smith", > "addresses": [ > { > "locality": "London", > "country": "GB" > } > ] > }, > "lines": [ > { > "quantity": "3", > "item": { > "name": "Double room — 3 nights", > "price": "180.00", > "unit": "day" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "reduced" > } > ] > } > ], > "charges": [ > { > "key": "tax", > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > "amount": "10.20" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "ES", > "$addons": [ > "es-verifactu-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "issue_date": "2026-05-06", > "currency": "EUR", > "tax": { > "ext": { > "es-verifactu-doc-type": "F2" > } > }, > "supplier": { > "name": "Hotel Barcelona Example SL", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "locality": "Barcelona", > "code": "08001", > "country": "ES" > } > ] > }, > "customer": { > "name": "John Smith", > "addresses": [ > { > "locality": "London", > "country": "GB" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "3", > "item": { > "name": "Double room — 3 nights", > "price": "180.00", > "unit": "day" > }, > "sum": "540.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "10.0%", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > } > } > ], > "total": "540.00" > } > ], > "charges": [ > { > "i": 1, > "key": "tax", > "reason": "IEET — Hotel 4★, Barcelona city — 3 nights × 1 guest × €3.40", > "amount": "10.20" > } > ], > "totals": { > "sum": "540.00", > "charge": "10.20", > "total": "550.20", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "es-verifactu-op-class": "S1", > "es-verifactu-regime": "01" > }, > "base": "540.00", > "percent": "10.0%", > "amount": "54.00" > } > ], > "amount": "54.00" > } > ], > "sum": "54.00" > }, > "tax": "54.00", > "total_with_tax": "604.20", > "payable": "604.20" > } > } > ``` After uploading you'll see the document in the **Invoices** section with status `Empty`. ![Empty invoice](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-invoice-1.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=7044997f01571c11b7e64b4ca1cebd4e) Empty invoice **2. Send the Invoice to the VERI\*FACTU invoice workflow** Send the invoice to the VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the invoice you've just uploaded. The invoice's status will change to `Sent` when the workflow completes successfully. ![Sent invoice](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-invoice-2.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=f414ed720d7b3e855dec812034dcb3e7) Sent invoice You can verify that the PDF was generated by clicking on the invoice and selecting the PDF from the "Files" tab. ![Example VERI\*FACTU invoice with QR](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-example-pdf.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=d95d5867852d61430db65cc1e67d2673) Example VERI\*FACTU invoice with QR ## Issue a credit note (Rectificativa por Diferencias) In Spain, one way to correct an invoice is by issuing a credit note, known as a *Rectificativa por Diferencias*. An alternative method is to issue a *Rectificativa por Sustitución*, which involves creating a new invoice with the type corrective. The difference between the two is subtle but important: * A credit note adjusts the value of the original invoice. * A corrective invoice replaces the original invoice entirely. For example, if you issued an invoice for €100 but later realized it should have been €80, you can either: * Issue a credit note for €20, or * Issue a corrective invoice for €80. Unless you have a specific requirement to use a corrective invoice we recommend only using credit notes. They're more widely supported across countries, while corrective invoices are specific to a few jurisdictions like Spain. Examples where you would need to issue a corrective invoice (*Rectificativa por Sustitución*) are incorrect supplier or client data, which can't be corrected through credit or debit notes. **1. Upload a Credit Note** A credit note in Invopop is an invoice of the type credit note. The process is very similar to uploading an invoice, use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a credit note. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `supplier`: use the same supplier details as in the original invoice * `type`: `credit-note` * `preceding`: references the original invoice, within it, you must include: * `uuid`: the UUID of the original invoice (optional but recommended) * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice You can copy the example credit note below as a reference. ```json Built version theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-verifactu-v1" ], "uuid": "01971bb1-1499-7001-81ea-26f51cf396e1", "type": "credit-note", "series": "CN", "issue_date": "2025-05-29", "currency": "EUR", "preceding": [ { "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", "type": "standard", "issue_date": "2024-11-13", "series": "SAMPLE", "code": "004" } ], "tax": { "ext": { "es-verifactu-correction-type": "I", "es-verifactu-doc-type": "R1" } }, "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "sum": "1800.00", "taxes": [ { "cat": "VAT", "key": "standard", "rate": "general", "percent": "21.0%", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" } } ], "total": "1800.00" } ], "totals": { "sum": "1800.00", "total": "1800.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" }, "tax": "378.00", "total_with_tax": "2178.00", "payable": "2178.00" } } ``` After successful upload, you'll see the credit note in the **Invoices** section with status `Empty`. If you've included the `uuid` of the invoice in preceding, you'll see a link to the credit note we've just created in the *Related* tab of the invoice. ![Invoice related to a credit note](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-invoice-cn.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=54d82812f4d4d0e323427de00e6f14c9) Link to the credit note **2. Send the Credit Note to the VERI\*FACTU invoice workflow** Send the credit note to the VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the credit note you've just uploaded. The credit note's status will change to `Sent` when the workflow completes successfully. ## Issue a corrective invoice (Rectificativa por Sustitución) **1. Upload a Corrective Invoice** A corrective invoice in Invopop is an invoice of the type `corrective`. The process is very similar to uploading an invoice, use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a corrective invoice. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `supplier`: use the same supplier details as in the original invoice * `type`: `corrective` * `preceding`: references the original invoice, within it, you must include: * `uuid`: the UUID of the original invoice (optional but recommended) * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice * `tax`: the tax section of the original invoice, you can copy it from the original invoice You can copy the example corrective invoice below as a reference. ```json Built version theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-verifactu-v1" ], "type": "corrective", "series": "CO", "issue_date": "2025-05-29", "currency": "EUR", "preceding": [ { "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", "type": "standard", "issue_date": "2024-11-13", "series": "SAMPLE", "code": "004", "tax": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" } } ], "tax": { "ext": { "es-verifactu-correction-type": "S", "es-verifactu-doc-type": "R1" } }, "supplier": { "name": "Invopop S.L.", "tax_id": { "country": "ES", "code": "B85905495" }, "addresses": [ { "num": "42", "street": "Calle Pradillo", "locality": "Madrid", "region": "Madrid", "code": "28002", "country": "ES" } ] }, "customer": { "name": "Sample Consumer", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00", "unit": "h" }, "sum": "1800.00", "taxes": [ { "cat": "VAT", "key": "standard", "rate": "general", "percent": "21.0%", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" } } ], "total": "1800.00" } ], "totals": { "sum": "1800.00", "total": "1800.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "ext": { "es-verifactu-op-class": "S1", "es-verifactu-regime": "01" }, "base": "1800.00", "percent": "21.0%", "amount": "378.00" } ], "amount": "378.00" } ], "sum": "378.00" }, "tax": "378.00", "total_with_tax": "2178.00", "payable": "2178.00" } } ``` After successful upload, you'll see the corrective invoice in the **Invoices** section with status `Empty`. If you've included the `uuid` of the invoice in preceding, you'll see a link to the corrective invoice we've just created in the *Related* tab of the invoice. ![Invoice related to a corrective invoice](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-invoice-corrective.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=07372eed9bc4218e73b34cc3da335be8) Link to the corrective invoice **2. Send the Corrective Invoice to the VERI\*FACTU invoice workflow** Send the corrective invoice to the VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the corrective invoice you've just uploaded. The corrective invoice's status will change to `Sent` when the workflow completes successfully. ## Issue a replacement invoice (Factura de Canje) A replacement invoice (*Factura de Canje*) is used to replace a simplified invoice with a full invoice. This is common when a customer who originally received a simplified invoice (e.g., a receipt) later requests a full invoice with their tax identification details. **1. Upload a Replacement Invoice** A replacement invoice is a standard invoice with the `replacement` tag. Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the replacement invoice. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data), with these required fields: * `regime`: `ES` * Add the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon * `type`: `standard` * `tax.tags`: include `replacement` * `supplier`: use the same supplier details as in the original invoice * `preceding`: references the original simplified invoice, within it, you must include: * `type`: type of the original invoice * `issue_date`: the date of the original invoice * `series`: the series of the original invoice * `code`: the code of the original invoice You can copy the example replacement invoice below as a reference. ```json Factura de canje theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "$addons": [ "es-verifactu-v1" ], "type": "standard", "tax": { "tags": [ "replacement" ] }, "series": "FC", "issue_date": "2026-02-26", "currency": "EUR", "preceding": [ { "type": "standard", "issue_date": "2026-02-20", "series": "FS", "code": "001" } ], "supplier": { "name": "Easor Software Solutions S.L.", "tax_id": { "country": "ES", "code": "B24830515" }, "addresses": [ { "num": "532", "street": "Avenida Diagonal", "locality": "Barcelona", "region": "Barcelona", "code": "08006", "country": "ES" } ] }, "customer": { "name": "Cliente Ejemplo S.L.", "tax_id": { "country": "ES", "code": "B63272603" } }, "lines": [ { "quantity": "1", "item": { "name": "Servicio de consultoría", "price": "500.00" }, "taxes": [ { "cat": "VAT", "rate": "general" } ] } ] } ``` After successful upload, you'll see the replacement invoice in the **Invoices** section with status `Empty`. **2. Send the Replacement Invoice to the VERI\*FACTU invoice workflow** Send the replacement invoice to the VERI\*FACTU workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * `workflow_id`: use the Workflow ID of the *VERI\*FACTU invoice* workflow we created during setup * `silo_entry_id`: use the Silo Entry ID of the replacement invoice you've just uploaded. The replacement invoice's status will change to `Sent` when the workflow completes successfully. ## Cancel an invoice VERI\*FACTU also allows you to cancel an invoice. In general, you should only cancel an invoice if it hasn't been handed to the customer nor accepted by the tax authority. Different from a credit note or a corrective, canceling an invoice doesn't produce a second document, which means you don't have a paper to hand to your customer to show the cancellation. That's why, if the invoice has been handed to the customer, we recommend issuing a credit note instead. **1. Add a cancel invoice workflow (only once)** To cancel an invoice, you need a workflow with the *Cancel invoice* step. You can start with the template below. > [card] [VERI\*FACTU cancel invoice workflow](https://console.invopop.com/redirect/workflows/new?template=es-verifactu-cancel) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json VERI*FACTU cancel invoice workflow theme={"system"} > { > "name": "VERI*FACTU cancel invoice", > "description": "Cancel an invoice via VERI*FACTU", > "schema": "bill/invoice", > "steps": [ > { > "id": "2f897e30-3c9c-11f0-8690-a921c0418914", > "name": "Cancel invoice in VERI*FACTU", > "provider": "verifactu.cancel" > }, > { > "id": "334ffc10-3c9c-11f0-8690-a921c0418914", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "384cfe20-3c9c-11f0-8690-a921c0418914", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **2. Send to cancellation workflow** To cancel an invoice, simply send it to the VERI\*FACTU cancel invoice workflow created earlier using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. The invoice's status will change to `Void` when the workflow completes successfully. ## FAQ > [accordion] Should I send credit notes with positive or negative values? > > You should send the credit note with the same sign as the original invoice. > > In Spain, unlike other countries, credit notes must be submitted to Hacienda with inverse values. Invopop handles this conversion automatically before transforming the credit note into a "factura rectificativa" (corrective invoice). > > This means you only need to send the credit note following international standards (with same sign as the invoice). Invopop will automatically adapt it when submitting to Hacienda. > > For reference, see the [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) documentation with `type` set to `credit-note`. > [accordion] Where do I find Spain-specific GOBL documentation? > > See the [Spain tax regime in GOBL](https://docs.gobl.org/regimes/es) for tax categories, NIF rules, and Spanish-specific extensions. Subsystem-specific addons live alongside: [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1), [`es-tbai-v1`](https://docs.gobl.org/addons/es-tbai-v1), [`es-facturae-v3`](https://docs.gobl.org/addons/es-facturae-v3). > [accordion] When should I cancel invoices in VERI\*FACTU? > > In VERI\*FACTU, you should only cancel an invoice if it hasn't been handed to the customer nor accepted by the tax authority. Different from a credit note or a corrective, canceling an invoice doesn't produce a second document, which means you don't have a paper to hand to your customer to show the cancellation. That's why, if the invoice has been handed to the customer, we recommend issuing a credit note instead. > [accordion] What should I do if an invoice is rejected by VERI\*FACTU? > > The response from VERI\*FACTU should contain all the details you need to be able to decide what changes need to be made to the [GOBL](https://docs.gobl.org) document in order to be processed correctly. Make the changes either via the Invopop API or console directly on the same document, and simply resend to the VERI\*FACTU workflow. > > Invopop will ensure that the correct substitution document is generated by checking previous attempts and including the correct codes in the new request. > [accordion] Once a VERI\*FACTU invoice is issued, can I get the QR code image url? > > We do not provide the QR code image itself. The QR code is a visual representation of a URL that you need to generate on your own if you're creating custom PDFs or need it for any other purpose. > > The full requirements are in the AEAT [VERI\*FACTU QR specification](https://www.agenciatributaria.es/static_files/AEAT_Desarrolladores/EEDD/IVA/VERI-FACTU/DetalleEspecificacTecnCodigoQRfactura.pdf) PDF document in Spanish. Here you can read that: > > > The "QR" code must have a size between 30x30 and 40x40 millimeters and follow the specifications of the ISO/IEC 18004:2015 standard. For the generation of the "QR" code, the M (medium) error correction level shall be used. > > Generate your own QR code image as follows: > > **1. Obtain the VERI\*FACTU URL** > > * **API**: fetch the entry and get `data -> head -> stamps -> verifactu-qr`. > * **Console**: in the invoice entry click on the kebab `···` menu and select **View Headers**. > > **2. Generate the QR image** > > Use the VERI\*FACTU URL in a library capable of generating ISO/IEC 18004:2015 QR images (Invopop uses [go-qr](https://github.com/piglig/go-qr)) > > **3. Store or use the image** > > Store or embed the image in your PDF. You can [see how we generate QR images](https://github.com/invopop/gobl.html/blob/main/components/images/images.go) in our open source gobl.html library. > [accordion] What is the VERI\*FACTU chain? > > VERI\*FACTU requires every request to be linked with a fingerprint or hash. During the "Generate VERI\*FACTU" and "Cancel VERI\*FACTU" actions, Invopop will automatically find the last request made for the same supplier, and incorporate the chained data into the new request. > > It's important to understand that VERI\*FACTU focuses on requests, and not individual documents; a single invoice may have multiple entries in the chain if it has been processed multiple times due to incorrect details, cancellations, or substitutions. > > Invopop guarantees the chain is never broken using database transactions and retries in the case of collisions. > [accordion] What are the most common errors when submitting invoices to VERI\*FACTU? > > The most common errors are related to format issues or invalid extensions, which are already handled in Invopop through the [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon validations. These prevent most of the typical problems before they reach the submission stage. > > Among the errors that aren't yet validated on our side, the five most frequent ones are: > > * `4104: Error en la cabecera: el valor del campo NIF del bloque ObligadoEmision no está identificado.` → The issuer's name must match what's registered for that NIF (tax ID). > * `4102: El XML no cumple el esquema. Falta informar campo obligatorio.` → Usually occurs when a required field is missing in the XML, often within the Desglose (taxes) section. > * `1110: El NIF no está identificado en el censo de la AEAT.` → The provided NIF (tax ID) isn't found in the AEAT registry (often due to typos or testing data). > * `3000: Registro de facturación duplicado.` → Triggered when issuing the same invoice series/code twice. > * `2001: El NIF del bloque Destinatarios no está identificado en el censo de la AEAT.` → Similar to 1110, but applies to the NIF (tax ID) of the customer. > [accordion] In my VERI\*FACTU's XML, DescripcionOperacion is being populated with line item descriptions, how do I change this? > > You can set your own description using the notes object in the invoice. The key used for the description needs to be set to general. For example: > > ``` > "notes": [ > { > "key": "general", > "text": "This will appear as DescripcionOperacion" > } > ] > ``` > > We generate a default description if the note is not provided which is what you are currently seeing. This default description will neatly cut off before it reaches a length of 500 characters as that is the limit the AEAT imposes. > [accordion] What \$tags are supported in GOBL with the 'es-verifactu-v1' addon? > > | Key | Text | > | - | - | > | `reverse-charge` | Reverse Charge / Inversión del sujeto pasivo. | > | `simplified-scheme` | Factura expedida por contribuyente en régimen simplificado. | > | `self-billed` | Facturación por el destinatario. | > | `travel-agency` | Régimen especial de las agencias de viajes. | > | `second-hand-goods` | Régimen especial de los bienes usados. | > | `art` | Régimen especial de los objetos de arte. | > | `antiques` | Régimen especial de las antigüedades y objetos de colección. | > | `cash-basis` | Régimen especial del criterio de caja. | > [accordion] How do I invoice a line with no VAT in Spain (exempt, not subject, reverse charge or 0%)? > > In Spanish VAT there are several legally distinct reasons why a line carries no tax, and VERI\*FACTU requires you to state which one applies. In GOBL you do this with the `key` field of the line's tax combo. The [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addon derives everything else from it. > > Pick the key that matches the reason there is no VAT: > > | Situation | `key` | Default extension set by the addon | When to use it | > | - | - | - | - | > | Exempt under art. 20 LIVA | `exempt` | `es-verifactu-exempt: E1` | Healthcare, education, financial and insurance services, residential rental, second-hand property, games of chance subject to the gaming tax, and the other domestic exemptions in art. 20. | > | Exempt for another legal reason | `exempt` + `es-verifactu-exempt: E6` | — | Exemptions whose legal basis is outside arts. 20–25. Rare. | > | Export of goods | `export` | `es-verifactu-exempt: E2`, `es-verifactu-regime: 02` | Goods leaving the EU, including shipments to the Canary Islands, Ceuta and Melilla. Set `E3` for supplies assimilated to exports (ships, aircraft, diplomatic missions) or `E4` for goods in free zones and customs warehouses. | > | Intra-community supply of goods | `intra-community` | `es-verifactu-exempt: E5` | Goods transported to another EU member state for a customer with a valid VAT number in that state. | > | Not subject – place of supply | `outside-scope` | `es-verifactu-op-class: N2` | Services to business customers established outside Spain, services localised in the Canary Islands, Ceuta or Melilla, goods that never enter Spain. | > | Not subject – art. 7, 14 and others | `outside-scope` + `es-verifactu-op-class: N1` | — | Transfer of a going concern, free samples and low-value promotional items, compensation and penalties, refundable deposits, pass-through amounts collected for third parties. | > | Domestic reverse charge | `reverse-charge` | `es-verifactu-op-class: S2` | Construction and rehabilitation works between businesses, scrap and waste metals, property transfers where the exemption is waived, B2B sales of phones, consoles and laptops to resellers. The invoice must state *Inversión del sujeto pasivo*. | > > Do not include `rate` or `percent` on any of these lines. None of these keys admits a rate, so a combo such as `key: exempt` with `rate: general` fails validation (`GOBL-TAX-COMBO-03`) before the invoice is sent. The addon also rejects a combo that carries both an operation class and an exemption code, and requires an operation class on any combo with a percent. > > **Examples** > > An exempt healthcare service: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "exempt" > } > ``` > > An exempt operation with a legal basis outside art. 20: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "exempt", > "ext": { "es-verifactu-exempt": "E6" } > } > ``` > > Consulting for a business customer in Germany: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "outside-scope" > } > ``` > > Late-payment interest charged to a Spanish customer: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "outside-scope", > "ext": { "es-verifactu-op-class": "N1" } > } > ``` > > Construction work for a Spanish business, with the customer self-assessing: > > ```json theme={"system"} > { > "cat": "VAT", > "key": "reverse-charge" > } > ``` > > The customer's tax ID does not change the classification: a line with `rate: standard` is taxed at 21% and marked `S1` even when the customer is German. The only automatic case is a tax combo whose `country` field is not `ES`, meaning you are charging another country's VAT on the line. The addon then marks it `N2` for VERI\*FACTU and drops any exemption code, because the operation is not subject to Spanish VAT. > > **Is there a 0% rate?** > > Not one you can use today. GOBL accepts `key: zero`, which classifies the line as subject and not exempt (`S1`) at 0%, but Spain has no 0% VAT rate in force: the temporary 0% on basic foodstuffs ended on 30 September 2024, and the AEAT validates the rate against the operation date and rejects 0% on later invoices. If your system has a product configured at 0%, it is almost certainly modelling one of the cases in the table above and should be mapped to that key instead. > > **Prepaid credit, gift cards and advances** > > These are not exempt and should not use any of the keys above. Credit that can only be spent on one kind of supply at a known rate is taxed when sold, as a normal `rate: standard` line. Credit that can be spent on goods or services at different rates is outside the scope of VAT when sold and is taxed on redemption instead; no invoice for a supply is issued at the time of the top-up. Advance payments for a specific future supply are taxed when received, at the rate of that supply. > > **Who decides which key applies?** > > The classification is a tax determination for the issuer and their advisor. GOBL validates that what you send is internally consistent and will be accepted by the AEAT, but it cannot tell you whether a given product is exempt, not subject or taxed. The same reason must also appear on the printed invoice: an exempt line needs a reference to its legal basis, and a reverse-charge line needs the *Inversión del sujeto pasivo* mention. More available in our [Spain FAQ](/faq/spain) section *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # VERI*FACTU onboarding guide Source: https://docs.invopop.com/guides/es-verifactu-supplier Create and register suppliers in Spain with VERI*FACTU. ## Introduction The Spanish Tax Agency ([AEAT](https://sede.agenciatributaria.gob.es)) requires that companies and self-employed individuals (autónomos) formally authorize Invopop to issue invoices on their behalf. To comply with this regulation, the company's legal representative or *autónomo* must sign an agreement granting Invopop consent to generate and manage invoices in their name. This signed authorization ensures that all invoicing activities carried out by Invopop are legally valid and recognized by the AEAT. For this process, the supplier can sign the agreement PDF with a valid [digital certificate](https://www.sede.fnmt.gob.es/certificados/persona-fisica), such as one issued by the FNMT, or a handwritten signature with a company stamp (*sello de empresa*), in which case the user must provide a valid ID such as DNI, NIE or passport. In the case of self-employed individuals (*autónomos*) a company stamp is not required. This guide will... 1. Walk you through the process of creating the workflows necessary to onboard yourself and/or your suppliers (in a [white-label setup](/guides/white-label)), 2. Explain how to complete the supplier onboarding wizard, and 3. Explain the approval process and what to do in case of rejection. | - | Sandbox | Live | | - | - | - | | **Supplier registration** | Required (automated acceptance/rejection) | Required (documents verified automatically on submission) | | **Environment** | Entorno de preproducción AEAT | Live environment | ## Setup **1. Connect the VERI\*FACTU app** 1. Go to **Configuration** → **Apps** in the [Console](https://console.invopop.com). 2. Find **VERI\*FACTU Spain** in the app list. 3. Click **Connect** to activate the app. ![VERI\*FACTU app connected](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-app.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=58aa4c221d32e38c5de2afa7571aee20) **2. Create a supplier registration workflow** Create a new workflow for registering suppliers. Start with the template below: > [card] [VERI\*FACTU supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=es-verifactu-supplier-registration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json VERI*FACTU register supplier workflow theme={"system"} > { > "name": "VERI*FACTU register supplier", > "description": "Register a supplier with VERI*FACTU", > "schema": "org/party", > "steps": [ > { > "id": "74b9cf20-da92-11f0-864b-8d842f7d4ab2", > "name": "Verify Spanish Tax ID", > "provider": "gov-es.lookup.verify" > }, > { > "id": "554c7040-66d7-11f0-a392-dfb6c99d6698", > "name": "Register supplier with VERI*FACTU", > "provider": "verifactu.register", > "next": [] > }, > { > "id": "62148880-66d7-11f0-a392-dfb6c99d6698", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > }, > "next": [] > }, > { > "id": "5b924600-66d7-11f0-a392-dfb6c99d6698", > "name": "Wait for VERI*FACTU supplier agreement upload", > "provider": "verifactu.wait.upload", > "next": [] > }, > { > "id": "6bec1080-66d7-11f0-a392-dfb6c99d6698", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > }, > "next": [] > }, > { > "id": "670d1dc0-66d7-11f0-a392-dfb6c99d6698", > "name": "Wait for VERI*FACTU supplier approval", > "provider": "verifactu.wait.approval", > "next": [] > } > ], > "rescue": [ > { > "id": "4be625f0-da6d-11f0-864b-8d842f7d4ab2", > "name": "Unregister supplier from VERI*FACTU", > "provider": "verifactu.unregister" > }, > { > "id": "535bf030-da6d-11f0-864b-8d842f7d4ab2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `rejected`{.state .rejected}", > "config": { > "state": "rejected" > } > } > ] > } > ``` ### Create a supplier entry Whether you issue invoices on behalf of third parties ([white label](/guides/white-label)) or under your own name, the process is essentially the same. **1. Upload a supplier** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a new supplier [party](https://docs.gobl.org/draft-0/org/party) (example below). Strictly required fields are company `name` and `tax_id` (the supplier will be able to supplement the information as [required by the AEAT](https://sede.agenciatributaria.gob.es/static_files/Sede/Procedimiento_ayuda/ZC01/Mod/Anexo_I_mod_otorg_prof_trib.pdf)). To reduce user input errors, it's recommended filling the fields as required by the AEAT: > [accordion] Spanish company > > To register a company supplier in Spain you must provide: > > * **Company information**: name, NIF (tax identification number), and address > * **Legal representative information**: full name, government ID type and number (DNI, NIE, or passport), and address > > The legal representative is the person authorized to sign the representation agreement on behalf of the company. > > > [!NOTE] > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` > [accordion] Spanish autónomo > > An *autónomo* is a self-employed individual in Spain who operates as a sole proprietor. To register them, a NIF (tax id number) with the corresponding full name and address must be provided. > > Unlike company suppliers, autónomos do not require separate legal representative information since the individual is the authorized signatory. > > > [!NOTE] > > > > The supplier must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority before invoices can be issued on their behalf. > > ```json Spain autónomo supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Juan Pérez González", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "autonomo@example.com" > } > ] > } > ``` Set the `folder` to `suppliers` to have the party appear in this section. It should appear with an `Empty` status unless set otherwise. ![Upload supplier to Invopop](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-2.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=cec5be44c6ee20322da85365f498a2a1) Upload supplier to Invopop **2. Send the supplier to the registration workflow** * **Via API** - Send the supplier to the registration workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint using the `ID`s of the **silo entry** and **supplier registration workflow**. * **Via Console** - From the Silo Entry select "Run workflow" and select the **supplier registration workflow**. The supplier's status will change to `Processing` while waiting for supplier registration and verification. **3. Complete the registration workflow** > [tab] Your own company > > Within the silo entry in console, select **Meta** and then click **verifactu.invopop.com**. This will launch the registration wizard for your company. > > ![Supplier entry meta](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-verifactu-entry-meta.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=79c91ff02589714d345eb0bd2d3f1206) > [tab] Third-party companies > > Add a webhook before the **Wait for supplier registration** step to obtain the registration link. The webhook payload contains the `siloEntryId`, not the `meta` object directly. Use the [Fetch an Entry endpoint](/api-ref/silo/entries/fetch-an-entry) to retrieve the invoice and extract the `meta` object from the response. > > The `meta` object looks like this: > > > [accordion] Example supplier meta registration link > > > > ``` > > data: { > > ... > > "meta": [ > > { > > "id": "...", > > "created_at": "2025-11-05T15:10:28.132Z", > > "updated_at": "2025-11-14T15:56:53.727Z", > > "owner_id": "...", > > "entry_id": "...", > > "src": "verifactu", > > "key": "link", > > "ref": "EgDeG3pDBDe", > > "link_url": "https://verifactu.invopop.com/reg/EgDeG3pDBDe", > > "link_scope": "public", > > "indexed": true, > > "shared": true > > } > > ] > > } > > ``` > > Forward the `link_url` to your customer. **4. Check the registration result** Approval is automated: Invopop verifies the signed agreement and the signatory's ID as soon as the supplier submits them, so there is no manual review or waiting period. The supplier is entitled to issue invoices immediately, and that entitlement is only revoked if the verification finds a problem with their documentation. Once the registration wizard has been completed, the supplier's status will change to `Registered`. If not successful because the supplier did not complete the process or their documentation was rejected, the status will change to `Rejected`, and you can inspect the job history of this document to see the reason. ![Supplier registered](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-1.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=07f1e3e540a6c2a14bd975d6884deaa1) Supplier registered successfully > [!WARNING] > > If a supplier's agreement documentation is rejected and you need to onboard them again, unregister the supplier and run the registration workflow again (see [Unregister a supplier](#unregister-a-supplier)). ## How VERI\*FACTU supplier registration works The process is best explained looking at the workflow steps: ![Supplier Registration Workflow](https://mintcdn.com/invopop/OLhWDqggfv_DoyqR/assets/guides/es-verifactu-register-supplier.png?fit=max\&auto=format\&n=OLhWDqggfv_DoyqR\&q=85\&s=3cc0854206e148f4b6f95e06088ac74b) Supplier Registration Workflow 1. **Register supplier** will generate a unique URL and add it into a `url` key value within the `meta` property. You would add a webhook after this step to notify the supplier. 2. **Set state to Processing** labels the silo entry so you know it's in process of registration. 3. **Wait for supplier registration** waits for the supplier to upload the required documents (signed agreement and ID). The supplier will be entitled to issue invoices through VERI\*FACTU immediately after the documents are uploaded. 4. **Set state to Registered** labels the silo entry so you know registration is complete. 5. **Wait for supplier approval** In live environments, Invopop automatically verifies the documents provided by the supplier as soon as they are uploaded, so this step completes immediately. In sandbox, you can configure the workflow step to accept or reject providers. Upon rejection, the workflow will error with a `KO` and the reason for rejection can be reviewed in the Supplier or in the executed job. The supplier's invoice issuing entitlement will be revoked immediately. > [!NOTE] > > In sandbox "Wait for supplier approval" can be configured to accept or reject suppliers. **Error flow:** if the supplier's documentation is rejected, or the supplier does not complete the registration within the job's time limit (100 days) a `KO` will be generated, triggering the error flow. Then these steps will be run: 1. **Unregister supplier from VERI\*FACTU** will clean up all registration processes and entitlements. You will be able to re-register the party later. 2. **Set state to Rejected** labels the silo entry so you know the registration was rejected (due to timeout or incorrect documentation). ## Register a supplier Suppliers need to provide the following documents for Invopop to issue invoices on their behalf: 1. A signed [direct representation agreement](https://sede.agenciatributaria.gob.es/static_files/Sede/Procedimiento_ayuda/ZC01/Mod/Anexo_I_mod_otorg_prof_trib.pdf). If the supplier is a self-employed individual (*autónomo*), stamping is unnecessary. 2. A copy of signatory's fiscal ID (DNI/NIE or passport in the case of non-residents) if the agreement is not signed with a valid [digital certificate](https://www.sede.fnmt.gob.es/certificados/persona-fisica) such as one from the FNMT. These documents can be collected through a multi-step web form (*wizard*) which is enabled through the *Supplier registration workflow* created during [setup](#setup) or [sent via the API](/api-ref/apps/verifactu/agreement-upload) if you wish to have control over the process. ### Onboard suppliers through the supplier registration wizard The supplier registration wizard walks you (or your customers) through the necessary legal requirements to issue VERI\*FACTU invoices. Each issuer must submit a signed representation agreement between Invopop and the issuer, along with documentation proving their legal authority to enter into such an agreement. Once you run the Supplier Registration Workflow, you will find the `link_url` in the `meta` property of the supplier entry. Here is an example API response: > [accordion] Example supplier meta registration link > > ``` > data: { > ... > "meta": [ > { > "id": "...", > "created_at": "2025-11-05T15:10:28.132Z", > "updated_at": "2025-11-14T15:56:53.727Z", > "owner_id": "...", > "entry_id": "...", > "src": "verifactu", > "key": "link", > "ref": "EgDeG3pDBDe", > "link_url": "https://verifactu.invopop.com/reg/EgDeG3pDBDe", > "link_scope": "public", > "indexed": true, > "shared": true > } > ] > } > ``` In console, you will find the link in the `Meta` tab in the right sidebar of the supplier's entry. This wizard can be embedded as an `iframe` to onboard your customers without leaving your product or platform. **1. Welcome screen** ![Supplier registration wizard](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-wizard-1.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=1044f2e844155e4c70ca69f10fc65070) Your customers will be met with the first page detailing the necessary documentation required for the process. **2. Information verification** ![Supplier registration wizard](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-wizard-2.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=e0b0f9c2684a6775aecdb1256749975a) The user can edit personal or company information. If the user is a self-employed individual, only the company information block will appear. Such individuals should enter their real name in the "Nombre" field, as this is matched by the AEAT against their tax id. **3. Download agreement** ![Supplier registration wizard](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-wizard-3.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=3cac8c8a63cc0badc1e0bcb1416ab977) On the following page, the issuer can download and sign their agreement. The details from the previous page will auto-populate into the contract. The issuer (you, or your customer) will require the following: 1. **Self-employed individuals (autónomos)** * Signed agreement (handwritten signature or e-signature with the [FNMT's Certificado Electrónico de Ciudadano](https://www.sede.fnmt.gob.es/certificados/persona-fisica)) * National ID (DNI/NIE) if handwritten signature. 2. **Companies** * Signed agreement (handwritten signature or e-signature with the [FNMT's Certificado Electrónico de Representante](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) * If handwritten signature, legal representative's ID (DNI/NIE/passport) and company stamp. Please be advised that only certificates issued by [accepted providers](#legal-information) are valid. Self-signed certificates are not considered valid. **4. Upload signed agreement** ![Supplier registration wizard](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-wizard-4.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=603879aead7da6d9a8a5826c0dd33e83) Issuers select the type of signature they used and upload their document. If digital signature is selected, the following step will be skipped as a signature through a FNMT digital certificate counts as a proof of identification. **5. Upload ID** ![Supplier registration wizard](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-wizard-5.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=58adac8a0bbf648ae3905a595f927792) The legal representative or *autónomo* uploads a scan or clear photo of their ID in a valid image format (JPG or PNG). The ID should ideally be a DNI/NIE, as passports are only used when the person is not entitled to have one. Both the front and reverse of the ID should be submitted here. If the ID is a passport (only valid for non-Spanish residents who are representatives of a company), they can upload the main page of their passport both times. **6. Review details** ![Supplier registration wizard](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-wizard-6.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=11314c676f0497d47d0a1e16e6b65d5d) This page provides a summary of information so the user can verify they have submitted the correct data. Any corrections can be easily made through the edit function. **7. Confirmation screen** ![Supplier registration wizard](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-supplier-wizard-7.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=260ebe4f3cf131ca86e741f6600353d5) A green checkmark will indicate success. The submitted documents are verified automatically, so the supplier is approved and registered right away unless a problem is found. ### Onboard suppliers through the API If you have special needs regarding the onboarding of suppliers for VERI\*FACTU (such as using third party identity verification services), it's possible to implement your own onboarding process through the API. The process would be the following: 1. [Create a supplier entry](/api-ref/silo/entries/create-an-entry-put) `/silo/v1/entries/{id}`\ Besides the supplier's basic information, the entry should contain a `people` object containing a [person](https://docs.gobl.org/draft-0/org/person) who will act as the legal representative of the supplier. 2. [Create a job](/api-ref/transform/jobs/create-a-job-put)`/transform/v1/jobs/{id}`\ Using the supplier registration workflow ID and Silo Entry ID. 3. [Generate agreement PDF](/api-ref/apps/verifactu/agreement-fetch) `/apps/verifactu/v1/entry/{silo_entry_id}/agreement`\ The agreement file will be created with the supplier's data. 4. [Upload agreement PDF](/api-ref/apps/verifactu/agreement-upload) `/apps/verifactu/v1/entry/{silo_entry_id}/agreement`\ Upload the agreement into the supplier's silo entry. 5. [Upload identity images](/api-ref/apps/verifactu/identity-upload) `/apps/verifactu/v1/entry/{silo_entry_id}/identity`\ Upload the ID into the supplier's silo entry (can be DNI, NIE or Passport). 6. [Confirm upload](/api-ref/apps/verifactu/confirm) `/apps/verifactu/v1/entry/{silo_entry_id}/confirm`\ Call this endpoint to confirm that everything has been prepared correctly and the supplier is ready to start operating. ## Unregister a supplier Unregistering a supplier is essentially revoking their invoice issuing privileges. You might need to unregister an entity because the supplier is no longer your client or because of a change in their Tax ID. To do so, use the following workflow template: > [card] [VERI\*FACTU unregister supplier](https://console.invopop.com/redirect/workflows/new?template=es-verifactu-unregister) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json VERI*FACTU unregister supplier workflow theme={"system"} > { > "name": "VERI*FACTU unregister supplier", > "description": "Unregister a supplier from VERI*FACTU", > "schema": "org/party", > "steps": [ > { > "id": "8a613610-67ba-11f0-bcaf-170efff782a9", > "name": "Unregister supplier from VERI*FACTU", > "provider": "verifactu.unregister" > }, > { > "id": "96a6b0d0-67ba-11f0-bcaf-170efff782a9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "e8d2a6b0-67bb-11f0-bcaf-170efff782a9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Legal information > [accordion] VERI\*FACTU self certification process > > There is no official certification for VERI\*FACTU from the AEAT (the Spanish tax agency). Instead, each developer, company, or provider that implements an invoicing software must provide an electronically signed declaration where they certify that their system meets all the requirements established in the regulations. This document is binding and must be kept available for the Tax Authority. > > The AEAT requires that this declaration be available and always visible within the system itself, and it must include certain control elements such as the installation number, issuer data, software version, and system ID. > > If you are a white label user of Invopop (you issue invoices in the name of third parties), you are required to display a link to this "declaración responsable" in your software. Here is [the template from the AEAT](https://sede.agenciatributaria.gob.es/static_files/Sede/Tema/IVA/Verifactu/EjemplosDeclaracionResponsable\(V0.5.1\).pdf), and our own for your reference: [Declaración responsable VERI\*FACTU - Invopop](https://drive.google.com/file/d/1IR2EuavoEi8E3hlAM4u-XTIFbalxxKzj/view). Some of our customers have asked us if it is necessary to mention Invopop in their *declaración responsable*. It is not required, but we appreciate it. > [accordion] VERI\*FACTU representation agreement > > [Declaración responsable VERI\*FACTU - Invopop](https://drive.google.com/file/d/1IR2EuavoEi8E3hlAM4u-XTIFbalxxKzj/view) (PDF) > [accordion] Valid digital signatures for the VERI\*FACTU's Supplier Agreement PDF > > Digital signatures rely on certificates, but not all certificates serve as proof of identity. The Spanish Tax Agency (AEAT) accepts only qualified certificates—those issued by an authority that has verified the holder’s identity in advance. > > For individuals, this means using an official certificate from an accredited provider such as the FNMT. Obtaining that certificate requires submitting your ID and completing identity verification. Because this process already confirms who you are, the AEAT treats the resulting digital signature as legally binding identification. As a result, no additional identity check is needed during registration. > > In contrast, certificates generated directly by applications like Adobe Acrobat do not involve any identity verification. They are self-signed and therefore cannot be used for official submissions or as valid digital signatures in AEAT or government procedures. > > If you wish to obtain a certificate that is valid for most (if not all) Spanish government procedures, you can do so by following the procedure on [certificates page of the FNMT](https://www.sede.fnmt.gob.es/certificados/persona-fisica). For instructions on how to make it available in Acrobat Reader to sign official documents, consult [this PDF](https://www.sede.fnmt.gob.es/documents/10445900/10528353/Firmar_documento_PDF_Adobe_Acrobat_Reader_DC.pdf). > > Otherwise, we require the secondary procedure of signing the document by handwritten signature, and an official ID as proof of identity as required by the AEAT. > > The following certificate providers are accepted: > > * AC ABOGACÍA > * ANF AC > * ANF CA > * BEWOR > * CAMERFIRMA > * CENTRO TECNOLÓGICO DEL NOTARIADO > * CERES FÁBRICA NACIONAL DE MONEDA Y TIMBRE - REAL CASA DE LA MONEDA, E.P.E, M.P. (FNMT-RCM) > * CONSORCI AOC (CATCERT) > * DEH ONLINE > * DIGITEL TS > * DIRECCIÓN GENERAL DE LA POLICÍA > * DOCUTEN > * EADTRUST > * EDICOM > * ESFIRMA > * FIRMAFY > * FIRMAPROFESIONAL, S.A. > * INDIZE > * IZENPE, S.A. > * LLEIDANET PKI > * LOGALTY SERVICIOS DE TERCERO DE CONFIANZA S.L. > * MINISTERIO DE DEFENSA DE ESPAÑA > * PERMISSO > * REGISTRADORES DE ESPAÑA > * SECTIGO > * SIA > * SIGNATURIT- IVNOSYS > * SIGNE AUTORIDAD DE CERTIFICACIÓN > * SIGNICAT SPAIN > * UANATACA > * VALIDATED ID > * VINTEGRIS ## FAQ > [accordion] What are the most common reasons for failing supplier approval? > > We reject agreements when: > > * The uploaded document is not signed (they upload the unsigned template). > * Users upload a handwritten signature without an ID. > * The electronic signature does not belong to the legal representative (or to the *autónomo* themselves). > * A company's agreement is signed with a personal certificate (e.g. the FNMT's *Certificado Electrónico de Ciudadano*) instead of a representative certificate (e.g. the FNMT's [*Certificado Electrónico de Representante*](https://www.sede.fnmt.gob.es/certificados/certificado-de-representante/persona-juridica)) for that company. > * The agreement is missing a date or location. > * The name is entered as an email address. > > The job will state the reason for rejection. > [accordion] What happens if a supplier does not complete their registration within the allotted wait time? > > A KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a reminder to the supplier through a webhook. > > The registration link will not expire and the entity will still be able to upload their registration documents which will be validated. Should you choose to run this workflow again using this supplier, the supplier will be accepted or rejected immediately because the required documentation has already been provided and validated. > [accordion] What happens if a supplier validation is rejected? > > If the uploaded agreement documents were rejected, a KO will be triggered and the supplier will be labelled with the `Error` state. We currently recommend sending a notification to the supplier through a webhook within the **Error Handling** section. > > Afterwards, if you wish to re-register the supplier with new documents, you must: > > 1. Unregister the supplier using the **Unregister Supplier workflow**. > 2. Re-run the Register supplier workflow. > > This will restart the entire registration process. When uploading documents, the previously submitted agreement will appear selected by default. Simply choose a new file and click `Continue` to override the old one. See the image below for reference: > > ![Overriding the previously submitted agreement](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/es-verifactu-update-agreement.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=a20bb8dd02df632d114e0519f4d34899) > > Overriding the previously submitted agreement > [accordion] What is the minimum information required to register a supplier? > > In order to complete the representation agreement you will need to provide the following information: > > **Company** > > 1. Name > 2. NIF > 3. Address > > **Legal representative** > > 1. Full name > 2. Government ID type and number > 3. Address > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` > > If the entity is a self-employed individual (*autónomo*), only the information requested in the **Legal representative** section is required. > > ```json Spain autónomo supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Juan Pérez González", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "autonomo@example.com" > } > ] > } > ``` > [accordion] What methods are available to sign the PDF supplier agreements? > > The supplier can add their electronic signature to the PDF document ([instructions](https://helpx.adobe.com/acrobat/using/signing-pdfs.html)), or sign with a handwritten signature (we recommend using [Adobe's online service](https://www.adobe.com/acrobat/online/sign-pdf.html)). > [accordion] What is the file size limit for the documents provided in the supplier registration flow? > > Individual documents are limited to a maximum size of 10MB. Uploads exceeding this size will result in an error. > [accordion] How do I register a supplier with VERI\*FACTU? > > Run the VERI\*FACTU Register Supplier workflow. The legal representative signs the PDF agreement (electronic or handwritten signature with ID) and Invopop registers the supplier with AEAT for invoicing on their behalf. More available in our [Spain FAQ](/faq/spain) section *** > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Spain → # Finvoice issuing invoices guide Source: https://docs.invopop.com/guides/fi-finvoice Issue invoices to Finnish receivers on the domestic operator network. ## Introduction Finnish businesses receive their e-invoices over two networks: the domestic operator network (*Finvoice*/*TEAPPSXML*) and Peppol. The [Finland app](/apps/finland) delivers on the domestic network, through Invopop's partner operator, Apix Messaging. You send a GOBL invoice with the receiver's e-invoice address, and the receiver gets it in the format its operator expects. If your receiver is only on Peppol, use the [Peppol app](/apps/peppol). To find out which network a receiver is on, look them up at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi), which lists both. For onboarding suppliers, see the companion guide: [Finvoice supplier registration](/guides/fi-finvoice-supplier). | - | Sandbox | Live | | - | - | - | | **Supplier** | Party registered against the operator's test environment | Registered party required | | **Environment** | Operator sandbox | Operator production | ## Payment data is mandatory In Finland, an e-invoice doubles as a payment order: the Finvoice format was created by the banks, and receivers approve invoices for payment directly in their bank. The payment order is therefore mandatory on **every** Finvoice invoice, credit notes included. Since most Finnish receivers get their invoices as Finvoice, every Finnish invoice must carry: * **An IBAN**, in `payment.instructions.credit_transfer`, with the key `credit-transfer`. * **A payment reference**, in `payment.instructions.ref`: a Finnish *viitenumero* or an ISO 11649 `RF` reference. * **A dated due date**, in `payment.terms.due_dates`. The [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) enforces these rules when the invoice is validated, so an incomplete invoice is rejected up front. This is deliberate: without the payment data, the invoice would fail on its way to the receiver *after* leaving the platform, where neither you nor Invopop can see it. ## Prerequisites * **A registered supplier**: follow the [Finvoice supplier registration guide](/guides/fi-finvoice-supplier) to connect the Finland app and register the party before issuing. * **The receiver's e-invoice address** on the customer record, as an endpoint: `iso6523-actorid-upis::0216:` followed by the OVT code (`0037` plus the Business ID without its hyphen). A customer record from before endpoints may still carry it as a `0216` inbox, which is read when there is no endpoint. Look receivers up at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). Other forms circulate (IBAN-style addresses, operator-prefixed ones such as `TE0037…`), but the OVT code is the one to use. * **The receiver's operator ID** in the customer's `ext.fi-finvoice-operator`, whenever you know it. See [the receiver's operator](#the-receivers-operator) below. * **The `fi-finvoice-v3` addon** declared in `$addons` on every invoice, so the payment data above is validated before signing. * **Complete payment data** on every invoice, as described above. ## The receiver's operator In Finland an e-invoice address is quoted as a pair: the address and the operator that serves it, for example `003711223349` at Apix Messaging, `003723327487`. An address can be registered with more than one operator at once, which happens whenever a company changes operator and keeps the old registration alive for a while. The invoice then goes to whichever operator the sender's operator prefers, and that may not be the one your receiver reads. Set the operator ID your receiver gave you on the customer party, in the `fi-finvoice-operator` extension, and the invoice is routed to that operator: ```json theme={"system"} "customer": { "name": "Pohjola Rakennus Oy", "endpoints": [ { "uri": "iso6523-actorid-upis::0216:003711223349" } ], "ext": { "fi-finvoice-operator": "003723327487" } } ``` The value is the operator's own OVT code, or a bank's BIC for addresses served by a bank, as listed beside the address at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). Without the extension, the operator chooses the route itself, which is fine for an address registered with one operator only. An operator ID the address is not registered with is not rejected: the operator accepts the invoice and routes it by its own tables, so check the pair you were given rather than relying on an error. Received invoices carry the sender's operator in the same extension on the supplier party, so you can route a reply back the same way. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Create the send workflow** > [card] [Finvoice send invoice workflow](https://console.invopop.com/redirect/workflows/new?template=fi-finvoice-send-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Finvoice send invoice workflow theme={"system"} > { > "name": "Finvoice send invoice", > "description": "Issue an invoice to a Finnish receiver", > "schema": "bill/invoice", > "steps": [ > { > "id": "bc138fa6-9172-11f1-b7bf-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "bc177c32-9172-11f1-9d66-92000767c8b7", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · Finvoice · 000001", > "config": { > "name": "Finvoice", > "padding": 6, > "start": 1 > } > }, > { > "id": "bc177d5b-9172-11f1-b7a4-92000767c8b7", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "bc177de4-9172-11f1-83e5-92000767c8b7", > "name": "Send invoice", > "provider": "gov-fi.send" > }, > { > "id": "bc177e3d-9172-11f1-8812-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "bc177e9e-9172-11f1-8438-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Send an invoice Upload the invoice as a silo entry and run the send workflow on it. > [!NOTE] > > The recommended approach for running jobs is to perform two steps: first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), then [create a job](/api-ref/transform/jobs/create-a-job-post). The send step converts the invoice to Finvoice 3.0, checks the receiver is reachable, and submits it. The operator's synchronous accept or reject is reflected in the job result, along with the channel the invoice was actually delivered on. ### Refused before sending Two checks run before anything leaves the platform: * **Conversion to Finvoice.** The invoice is validated under the [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) and written as Finvoice first, so an invoice the format cannot carry fails the job with the rule it broke: missing payment data, a party without an e-invoice address, an identifier too long for its element. Fix the invoice and run the workflow again. * **`receiver-not-einvoice`**: the receiver is not set up to receive e-invoices. The error names the channel that would have been used instead: paper, email, or one of the consumer bank channels (e-lasku, suoramaksu, Netposti). Receivers like these are refused up front rather than quietly delivered another way; check the address, or agree on another delivery method with the receiver. ### After submission One more state you may meet is **`send-unconfirmed`**: the connection failed after the submission may have already been written, so the outcome couldn't be confirmed. The job reports the attempt and its timestamp rather than retrying, because resubmitting into the unknown could deliver the invoice twice. Check with [support](mailto:support@invopop.com) before sending again. Once the operator accepts the invoice, that is the final programmatic signal: there is no delivery status to poll afterwards. If a receiving operator later rejects the invoice, the rejection arrives by email in production. ### Attachments Supporting documents such as timesheets, specifications or delivery notes travel with the invoice as Finvoice attachments. Add them to the invoice's silo entry as files with category `attachment` before running the send workflow, with the [file upload API](/guides/file-uploads): ```bash cURL theme={"system"} curl -X POST 'https://api.invopop.com/silo/v1/entries/{entry_id}/files' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "timesheet.pdf", "category": "attachment", "mime": "application/pdf", "data": "" }' ``` Every file on the entry with that category is sent. Finvoice sets the limits, and the send step checks them before anything leaves the platform; an invoice that breaks one fails the job with the limit it broke, and nothing is sent: * at most **10 files** (`attachments-too-many`); * **1 MB in total** (`attachments-too-large`); * only **PDF, JPEG or PNG** (`attachment-type`). PDFs should be PDF/A, which the receiving operator may check. Three things to know about delivery: * **An invoice with attachments carries its own PDF image.** The operator only forwards attachments next to an invoice image, so the send step takes the entry's file with key `pdf` (what a PDF step before Send produces) and sends it as the image. Without that file the job fails with `invoice-pdf-missing`: add a PDF step to the workflow before Send. To send your own image even without attachments, turn on **Attach invoice PDF** in the send step's settings. * **File names don't reach the receiver.** The operator renumbers the attachments on delivery (`_0`, `_1`, … in the order they were added), so name the documents inside the files themselves if the receiver needs to tell them apart. * **An accepted invoice doesn't confirm its attachments arrived.** Not every receiving operator forwards attachments, and one that accepts the invoice but drops them doesn't report it, so the job succeeds either way. If a receiver depends on the attachments, confirm with them that they arrive. ### Invoicing the Finnish state Invoicing public bodies is the segment where e-invoicing is mandatory in Finland, and the state applies its own reference conventions: invoices that don't follow them are rejected by the receiving authority. * **Order numbers** must start with `V1`. Set them in `ordering.purchases` on the GOBL invoice. * **Agreement numbers** must start with `VSK1`. Set them in `ordering.contracts`. * At most **one of each** per invoice. Invopop doesn't validate or normalise these prefixes, so format the references exactly as the contracting authority provided them. Posting references (`TK1…`) cannot be carried on the invoice yet; if a contracting authority requires one, contact [support](mailto:support@invopop.com). ## Example invoices > [accordion] Example B2B invoice > > In this example, we're issuing a B2B invoice from a Finnish supplier to another Finnish business. > > Notice: > > * the `$addons` field is set to `fi-finvoice-v3`, which enforces the payment data Finvoice requires on every Finnish invoice, > * both parties have their e-invoice address as an endpoint: `iso6523-actorid-upis::0216:` followed by an OVT code (`0037` followed by the Business ID without its hyphen), and the customer names its operator in `fi-finvoice-operator`, so the invoice reaches that operator even if the address is registered with another one too, > * the `payment` block carries an IBAN, a payment reference (an ISO 11649 `RF` reference here), and a dated due date; all three are required, > * the invoice includes VAT at the standard Finnish rate of 25.5%, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Finland B2B invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["fi-finvoice-v3"], > "type": "standard", > "series": "SAMPLE", > "code": "0042", > "issue_date": "2026-08-01", > "currency": "EUR", > "supplier": { > "name": "Aurora Ohjelmistot Oy", > "tax_id": { > "country": "FI", > "code": "26174164" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003726174164" > } > ], > "addresses": [ > { > "num": "12", > "street": "Mannerheimintie", > "locality": "Helsinki", > "code": "00100", > "country": "FI" > } > ] > }, > "customer": { > "name": "Pohjola Rakennus Oy", > "tax_id": { > "country": "FI", > "code": "11223349" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003711223349" > } > ], > "ext": { > "fi-finvoice-operator": "003723327487" > }, > "addresses": [ > { > "num": "8", > "street": "Hämeenkatu", > "locality": "Tampere", > "code": "33100", > "country": "FI" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Software development services", > "price": "85.00" > }, > "taxes": [ > { > "cat": "VAT", > "percent": "25.5%" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ref": "RF1310023", > "credit_transfer": [ > { > "iban": "FI2112345600000785", > "bic": "NDEAFIHH" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2026-08-15", > "percent": "100%" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FI", > "$addons": [ > "eu-en16931-v2017", > "fi-finvoice-v3" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0042", > "issue_date": "2026-08-01", > "currency": "EUR", > "tax": { > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Aurora Ohjelmistot Oy", > "tax_id": { > "country": "FI", > "code": "26174164" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003726174164" > } > ], > "addresses": [ > { > "num": "12", > "street": "Mannerheimintie", > "locality": "Helsinki", > "code": "00100", > "country": "FI" > } > ] > }, > "customer": { > "name": "Pohjola Rakennus Oy", > "tax_id": { > "country": "FI", > "code": "11223349" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003711223349" > } > ], > "ext": { > "fi-finvoice-operator": "003723327487" > }, > "addresses": [ > { > "num": "8", > "street": "Hämeenkatu", > "locality": "Tampere", > "code": "33100", > "country": "FI" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Software development services", > "price": "85.00", > "unit": "one" > }, > "sum": "850.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "25.5%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "850.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-15", > "amount": "1066.75", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "ref": "RF1310023", > "credit_transfer": [ > { > "iban": "FI2112345600000785", > "bic": "NDEAFIHH" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "850.00", > "total": "850.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "850.00", > "percent": "25.5%", > "amount": "216.75" > } > ], > "amount": "216.75" > } > ], > "sum": "216.75" > }, > "tax": "216.75", > "total_with_tax": "1066.75", > "payable": "1066.75" > } > } > ``` > [accordion] Example B2G invoice > > In this example, we're invoicing a Finnish public body, the segment where e-invoicing is mandatory. > > Notice: > > * the `ordering.purchases` code starts with `V1` and the `ordering.contracts` code starts with `VSK1`, following the Finnish state's reference conventions; the state rejects invoices that don't follow them, > * there is at most one order number and one agreement number, as the state requires, > * the payment reference here is a Finnish *viitenumero* (banking reference number), the domestic alternative to the `RF` form, and, > * everything else works exactly like the B2B invoice, payment block included. > > ```json Finland B2G invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["fi-finvoice-v3"], > "type": "standard", > "series": "SAMPLE", > "code": "0043", > "issue_date": "2026-08-01", > "currency": "EUR", > "supplier": { > "name": "Aurora Ohjelmistot Oy", > "tax_id": { > "country": "FI", > "code": "26174164" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003726174164" > } > ], > "addresses": [ > { > "num": "12", > "street": "Mannerheimintie", > "locality": "Helsinki", > "code": "00100", > "country": "FI" > } > ] > }, > "customer": { > "name": "Suomen Valtion Virasto", > "tax_id": { > "country": "FI", > "code": "54321096" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003754321096" > } > ], > "addresses": [ > { > "num": "1", > "street": "Snellmaninkatu", > "locality": "Helsinki", > "code": "00170", > "country": "FI" > } > ] > }, > "ordering": { > "purchases": [ > { > "code": "V12026001" > } > ], > "contracts": [ > { > "code": "VSK12026001" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Consulting services, July 2026", > "price": "4500.00" > }, > "taxes": [ > { > "cat": "VAT", > "percent": "25.5%" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ref": "100230", > "credit_transfer": [ > { > "iban": "FI2112345600000785", > "bic": "NDEAFIHH" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "percent": "100%" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FI", > "$addons": [ > "eu-en16931-v2017", > "fi-finvoice-v3" > ], > "type": "standard", > "series": "SAMPLE", > "code": "0043", > "issue_date": "2026-08-01", > "currency": "EUR", > "tax": { > "ext": { > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Aurora Ohjelmistot Oy", > "tax_id": { > "country": "FI", > "code": "26174164" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003726174164" > } > ], > "addresses": [ > { > "num": "12", > "street": "Mannerheimintie", > "locality": "Helsinki", > "code": "00100", > "country": "FI" > } > ] > }, > "customer": { > "name": "Suomen Valtion Virasto", > "tax_id": { > "country": "FI", > "code": "54321096" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003754321096" > } > ], > "addresses": [ > { > "num": "1", > "street": "Snellmaninkatu", > "locality": "Helsinki", > "code": "00170", > "country": "FI" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Consulting services, July 2026", > "price": "4500.00", > "unit": "one" > }, > "sum": "4500.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "25.5%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "4500.00" > } > ], > "ordering": { > "contracts": [ > { > "code": "VSK12026001" > } > ], > "purchases": [ > { > "code": "V12026001" > } > ] > }, > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-31", > "amount": "5647.50", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "ref": "100230", > "credit_transfer": [ > { > "iban": "FI2112345600000785", > "bic": "NDEAFIHH" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "4500.00", > "total": "4500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "4500.00", > "percent": "25.5%", > "amount": "1147.50" > } > ], > "amount": "1147.50" > } > ], > "sum": "1147.50" > }, > "tax": "1147.50", > "total_with_tax": "5647.50", > "payable": "5647.50" > } > } > ``` > [accordion] Example credit note > > In this example, we're issuing a credit note that corrects a previously issued invoice. > > Notice: > > * the `type` is set to `credit-note`, > * the `preceding` array references the original invoice by its `series`, `code`, and `issue_date`, along with a `reason`, > * the `payment` block is still present and complete; Finvoice requires the payment data on credit notes too, unlike most other European formats, and, > * there are no calculations in some fields; these will be made automatically when uploading. > > ```json Finland credit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["fi-finvoice-v3"], > "type": "credit-note", > "series": "SAMPLE-CN", > "code": "0007", > "issue_date": "2026-08-05", > "currency": "EUR", > "preceding": [ > { > "series": "SAMPLE", > "code": "0042", > "issue_date": "2026-08-01", > "reason": "Partial refund for undelivered services" > } > ], > "supplier": { > "name": "Aurora Ohjelmistot Oy", > "tax_id": { > "country": "FI", > "code": "26174164" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003726174164" > } > ], > "addresses": [ > { > "num": "12", > "street": "Mannerheimintie", > "locality": "Helsinki", > "code": "00100", > "country": "FI" > } > ] > }, > "customer": { > "name": "Pohjola Rakennus Oy", > "tax_id": { > "country": "FI", > "code": "11223349" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003711223349" > } > ], > "addresses": [ > { > "num": "8", > "street": "Hämeenkatu", > "locality": "Tampere", > "code": "33100", > "country": "FI" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Software development services", > "price": "85.00" > }, > "taxes": [ > { > "cat": "VAT", > "percent": "25.5%" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ref": "RF1310023", > "credit_transfer": [ > { > "iban": "FI2112345600000785", > "bic": "NDEAFIHH" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2026-08-19", > "percent": "100%" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FI", > "$addons": [ > "eu-en16931-v2017", > "fi-finvoice-v3" > ], > "type": "credit-note", > "series": "SAMPLE-CN", > "code": "0007", > "issue_date": "2026-08-05", > "currency": "EUR", > "preceding": [ > { > "issue_date": "2026-08-01", > "series": "SAMPLE", > "code": "0042", > "reason": "Partial refund for undelivered services" > } > ], > "tax": { > "ext": { > "untdid-document-type": "381" > } > }, > "supplier": { > "name": "Aurora Ohjelmistot Oy", > "tax_id": { > "country": "FI", > "code": "26174164" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003726174164" > } > ], > "addresses": [ > { > "num": "12", > "street": "Mannerheimintie", > "locality": "Helsinki", > "code": "00100", > "country": "FI" > } > ] > }, > "customer": { > "name": "Pohjola Rakennus Oy", > "tax_id": { > "country": "FI", > "code": "11223349" > }, > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0216:003711223349" > } > ], > "addresses": [ > { > "num": "8", > "street": "Hämeenkatu", > "locality": "Tampere", > "code": "33100", > "country": "FI" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Software development services", > "price": "85.00", > "unit": "one" > }, > "sum": "170.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "25.5%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "170.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-08-19", > "amount": "213.35", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "ref": "RF1310023", > "credit_transfer": [ > { > "iban": "FI2112345600000785", > "bic": "NDEAFIHH" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "170.00", > "total": "170.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "170.00", > "percent": "25.5%", > "amount": "43.35" > } > ], > "amount": "43.35" > } > ], > "sum": "43.35" > }, > "tax": "43.35", > "total_with_tax": "213.35", > "payable": "213.35" > } > } > ``` ## FAQ > [accordion] Can I invoice a Finnish business that isn't reachable on Peppol? > > Yes. Most Finnish businesses receive e-invoices through the domestic operator network, and the [Finland app](/apps/finland) delivers there. You send one GOBL invoice with the receiver's e-invoice address, and it arrives in the format the receiver's operator expects. You can check which network a receiver is on at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). For a receiver only on Peppol, use the [Peppol app](/apps/peppol). > [accordion] Why does every Finnish invoice need bank account details? > > Because in Finland an e-invoice doubles as a payment order. Finvoice was created by the banks (it's published by Finance Finland, the banking association) and grew out of the bank network, where the receiver approves the invoice for payment directly in their bank. That's why every Finvoice invoice, credit notes included, must carry the payment order: an IBAN, a payment reference, and a dated due date. Most Finnish receivers get their invoices as Finvoice, and one missing this data would fail on its way to the receiver, where we can't see it, so the [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) rejects it up front instead. > [accordion] Why was my invoice refused before it was sent anywhere? > > Two checks run before anything leaves the platform. The invoice is converted to Finvoice first, so anything the [`fi-finvoice-v3` addon](https://docs.gobl.org/addons/fi-finvoice-v3) refuses fails the job with the rule it broke: missing payment data, a party without an e-invoice address, an identifier too long for its element. Then the receiver must be reachable as a true e-invoice (`receiver-not-einvoice`): receivers only reachable on paper, by email, or through the consumer bank channels (e-lasku, suoramaksu, Netposti) are rejected up front, with the channel the operator would have used named in the error, rather than quietly delivered another way. > [accordion] My receiver's address is registered with two operators. Which one gets the invoice? > > The one you name. Set the operator ID the receiver gave you in the customer's `fi-finvoice-operator` extension, and the invoice is routed to that operator. Without it, the sending operator picks by its own preference, which may be the receiver's old operator. The value is the operator's OVT code (Apix Messaging is `003723327487`) or a bank's BIC, as listed beside the address at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi). An operator the address is not registered with is not rejected, so check the pair rather than expecting an error. > [accordion] What does a submission with an unknown outcome mean? > > If the connection to the operator fails after the request may have already been written, we can't tell whether the invoice was accepted, and resubmitting could deliver it twice. The job reports the attempt with its timestamp under the `send-unconfirmed` code instead of retrying. Check with support before sending the invoice again. > [accordion] How do I invoice the Finnish state? > > Business-to-government is the segment where e-invoicing is mandatory in Finland, and the state applies its own reference conventions: order numbers must start with `V1`, agreement numbers with `VSK1`, and posting references with `TK1`, with at most one of each per invoice. Set the order number in `ordering.purchases` and the agreement number in `ordering.contracts` on the GOBL invoice. Invopop doesn't validate or normalise these prefixes, so format them exactly as the contracting authority provided them, or the state will reject the invoice. > [accordion] What happens after the invoice is accepted? > > The operator's synchronous accept is the final programmatic signal: there is no delivery status API to poll afterwards. If a receiving operator later rejects the invoice, that rejection arrives by email in production. No news after acceptance is good news. More available in our [Finland FAQ](/faq/finland) section *** > [accordion] 🇫🇮 Invopop resources for Finland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Finland](/compliance/finland) [Compliance timeline](/timelines/finland) | > | Apps | [Finland](/apps/finland) [Peppol](/apps/peppol) | > | Guides | [Supplier registration](/guides/fi-finvoice-supplier) [Issuing invoices](/guides/fi-finvoice) [Receiving invoices](/guides/fi-finvoice-receiving) [Peppol guide](/guides/peppol) | > | FAQ | [Finland FAQ](/faq/finland) | > | GOBL | [Finland Tax Regime](https://docs.gobl.org/regimes/fi) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.fi.finvoice](https://github.com/invopop/gobl.fi.finvoice) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Finland → # Finvoice receiving invoices guide Source: https://docs.invopop.com/guides/fi-finvoice-receiving Import the invoices Finnish trading partners send to your registered Finnish parties. ## Introduction Invoices sent to a registered Finnish party's e-invoice address arrive in that party's own inbox at Apix Messaging, the operator behind the [Finland app](/apps/finland). The operator has no push channel, so the app **polls** each of those inboxes on a schedule, every five minutes by default. Received invoices appear within minutes, not instantly; when testing, allow up to a quarter of an hour before suspecting a problem. Each received document becomes exactly one silo entry carrying the GOBL invoice, the original XML, and a PDF rendering, and your import workflow runs on it, so received invoices show up like any other workflow-processed document. Only Finnish parties receive through this app. A party outside Finland is registered to send only, so the app doesn't poll an inbox for it. To receive its invoices, register it in the [Peppol app](/apps/peppol). Registering the parties themselves is covered in the companion guide: [Finvoice supplier registration](/guides/fi-finvoice-supplier). | - | Sandbox | Live | | - | - | - | | **Party** | Registered against the operator's test environment | Registered against the live operator network | | **Environment** | Operator sandbox | Operator production | ## Prerequisites * **The Finland app connected**: navigate to **Configuration** → **Apps**, find **Finland**, and click **Connect**. * **A Finnish party ready to register**: reception is per party, so the setup below has to be in place before you register it. Registration checks the reception configuration and starts polling as soon as it completes. ## Setup **1. Create the sync workflow** This workflow is pure plumbing: the polling schedule fires it for each registered Finnish party, and its one step checks the party's inbox and queues one import job per new document. > [card] [Finvoice sync received invoices workflow](https://console.invopop.com/redirect/workflows/new?template=fi-finvoice-sync) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Finvoice sync received invoices workflow theme={"system"} > { > "name": "Finvoice sync received invoices", > "description": "Sweep a registered party's inbox at the operator and dispatch import jobs", > "schema": "org/party", > "steps": [ > { > "id": "bc178004-9172-11f1-b2b4-92000767c8b7", > "name": "Sync received invoices", > "provider": "gov-fi.sync" > } > ], > "rescue": [] > } > ``` **2. Create the import workflow** The import step downloads one received document and files it as a silo entry; everything after it is yours to shape: routing to a folder, setting a state, or any other processing your operation needs. > [card] [Finvoice import invoice workflow](https://console.invopop.com/redirect/workflows/new?template=fi-finvoice-import) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Finvoice import invoice workflow theme={"system"} > { > "name": "Finvoice import invoice", > "description": "Import a received invoice", > "schema": "bill/invoice", > "steps": [ > { > "id": "bc178046-9172-11f1-ac3d-92000767c8b7", > "name": "Import received invoice", > "provider": "gov-fi.import" > }, > { > "id": "bc178096-9172-11f1-90ae-92000767c8b7", > "name": "Set folder", > "provider": "silo.folder", > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > "config": { > "folder": "expenses" > } > }, > { > "id": "bc1780dc-9172-11f1-b338-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "bc17811a-9172-11f1-ae07-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Configure the app with both workflows** Navigate to **Configuration** → **Apps**, find the **Finland** app, tap **Configure**, and select the sync workflow and the import workflow you just created. Registration checks this configuration, so save it before registering any Finnish party. **4. Register the party** Run the registration workflow on the party as described in the [supplier registration guide](/guides/fi-finvoice-supplier#register-a-supplier). Registration checks the reception configuration first and fails with "reception not configured" if the workflows aren't set; polling starts automatically once it completes. ## Receiving invoices From then on, reception is automatic. Every few minutes the app checks each registered Finnish party's inbox, and each new document becomes one silo entry processed by your import workflow, filed under **Expenses** in the example above. A few behaviours worth knowing: * **The registry catches up overnight.** A registered Finnish party can receive immediately, but the [national registry](https://verkkolaskuosoite.fi) senders look addresses up in is refreshed once a night. A counterparty who can't find the address on the day you registered will normally find it the next day. * **Duplicates collapse.** The operator can occasionally deliver the same document twice; the app keys every entry by the document's own identity, so a repeated delivery updates the existing entry instead of creating a second one. * **Errors stay visible.** A document that fails to import leaves a failed job behind, and the rescue steps of your import workflow run so you can see what went wrong and act on it. * **Attachments come with the invoice.** Supporting documents the sender attached are stored on the entry as files with category `attachment` and keys `attachment-1`, `attachment-2`, …, next to the invoice itself (`inbound-invoice`) and its image (`inbound-invoice-pdf`). They carry the names the operator delivered them under, not the sender's original file names. * **Retention at the operator is limited.** Received documents stay downloadable at the operator for three calendar months; the silo entry and its attachments are yours permanently. ## FAQ > [accordion] How quickly do received invoices appear? > > Reception is polled, not pushed: each registered Finnish party's inbox at the operator is swept on a schedule, every five minutes by default. Add the time the sender's own operator takes to deliver, and an invoice normally appears within minutes, but not instantly. If you're testing, allow up to a quarter of an hour before suspecting a problem. > [accordion] What format do received invoices arrive in? > > Each received document becomes one entry in your workspace carrying the GOBL invoice, the original XML as received from the network, and a PDF rendering, whatever format the sender issued. > [accordion] What setup does receiving need? > > Two things: the Finland app must be configured with a sync workflow and an import workflow, and the Finnish party must be registered. Registration checks the workflow configuration first, so set the workflows up before running it. Once registered, polling starts automatically; received invoices simply appear as new entries processed by your import workflow. A party outside Finland is registered to send only. To receive its invoices, register it in the [Peppol app](/apps/peppol). More available in our [Finland FAQ](/faq/finland) section *** > [accordion] 🇫🇮 Invopop resources for Finland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Finland](/compliance/finland) [Compliance timeline](/timelines/finland) | > | Apps | [Finland](/apps/finland) [Peppol](/apps/peppol) | > | Guides | [Supplier registration](/guides/fi-finvoice-supplier) [Issuing invoices](/guides/fi-finvoice) [Receiving invoices](/guides/fi-finvoice-receiving) [Peppol guide](/guides/peppol) | > | FAQ | [Finland FAQ](/faq/finland) | > | GOBL | [Finland Tax Regime](https://docs.gobl.org/regimes/fi) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.fi.finvoice](https://github.com/invopop/gobl.fi.finvoice) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Finland → # Finvoice supplier registration guide Source: https://docs.invopop.com/guides/fi-finvoice-supplier Register Finnish parties to send and receive e-invoices, and suppliers outside Finland to send them. ## Introduction In Finland, e-invoices travel through accredited operators without government clearance. Registering a party in the [Finland app](/apps/finland) creates its **own** account with Invopop's operator partner and activates its services. A Finnish party also gets its own e-invoice address. Suppliers outside Finland can register too, to send only. See [suppliers outside Finland](#suppliers-outside-finland). Registration includes one step no one in the flow can do for the supplier: their representative must **sign an authorization agreement and verify their identity** before the party is registered. The registration workflow publishes a signing link you share with them, and continues automatically once the signed authorization is approved. A party must be registered before it can send documents. A workspace can hold several parties, each registered on its own. | - | Sandbox | Live | | - | - | - | | **Party** | Available Registered against the operator's test environment | Available Registered against the live operator network | | **Environment** | Operator sandbox | Live operator environment | ## Prerequisites * **The party's details**: legal name, Business ID (*y-tunnus*, e.g. `2617416-4`), and an address. The Business ID is uploaded without its hyphen as the GOBL `tax_id.code`. For a supplier outside Finland, use its own country's tax ID (see [suppliers outside Finland](#suppliers-outside-finland)). * **A representative on the party**: the first entry in the party's `people` list, with a name and a role in the company. The signing wizard prefills this person as the signer. * **The representative's availability**: someone authorized to sign on the supplier's behalf has to complete the signing step, with their identity document at hand, before registration can finish. * **Reception workflows configured**: registration checks that the Finland app has a sync and an import workflow configured, and fails with "reception not configured" otherwise. Suppliers outside Finland don't receive through this app, so the check doesn't apply to them. > [!WARNING] > > Registering a Finnish party will fail if a sync and import workflow is not configured.\ > Follow the [receiving guide's setup](/guides/fi-finvoice-receiving#setup) first. ## E-invoice addresses A Finnish e-invoice address is an **OVT code**: `0037` followed by the Business ID without its hyphen, sometimes with a five-character suffix for routing inside large organisations. For example, the Business ID `2617416-4` gives the OVT code `003726174164`. On Peppol, the same code is wrapped in scheme `0216`. Registration allocates a Finnish party's address on the operator's side: it is the party's own OVT code. Once registration completes, you'll find it on the party entry as an endpoint, `iso6523-actorid-upis::0216:` followed by the code, so you don't need to add it yourself. A party that has the address as an inbox with scheme `0216` instead still sends as before. Counterparties will ask for this address, and in Finland an e-invoice address is quoted as a pair, the address plus the operator that serves it. Give them both: your OVT code and Invopop's operator, **Apix Messaging, operator ID `003723327487`**. You'll also need your customers' addresses to send. Look any Finnish organisation up in the national registry at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi): since 2024 it mirrors the Peppol address list too, so one lookup covers both networks. You may also meet other address forms that circulate on the Finnish network: IBAN-style addresses from the older bank channel, and operator-prefixed ones such as `TE0037…`. On a Finnish party, always use the OVT code under scheme `0216`. ## Suppliers outside Finland Companies from **any other country** can register here to invoice Finnish receivers. Most Finnish businesses receive their e-invoices on the domestic operator network, which the [Peppol app](/apps/peppol) can't reach. Use the company's own tax ID on the party. The operator registers the company under that tax ID. For most countries this is the full VAT number. For Sweden and Norway it is the Org.nr on its own, because their VAT numbers are built from it. Sending works as it does for a Finnish supplier, with the same workflow, checks and formats. Give the party an endpoint with the company's own electronic address, such as `iso6523-actorid-upis::0007:` followed by a Swedish Org.nr. Suppliers outside Finland are registered to **send only**. A Finnish e-invoice address is built from a Finnish Business ID, so they don't get one. They aren't listed in the [national registry](https://verkkolaskuosoite.fi), and Finnish senders can't reach them on the domestic network. The app doesn't poll an inbox for them, and the authorization agreement their representative signs covers sending only. To receive invoices too, register the company in the [Peppol app](/apps/peppol). Finnish senders who invoice abroad can reach it there. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Connect the Finland app** 1. Navigate to **Configuration** → **Apps** 2. Find **Finland** in the app discovery list 3. Click **Connect** to activate **2. Set up reception (Finnish parties only)** > [!NOTE] > > Registering a Finnish party requires the reception workflows to be configured first, because its inbox starts being polled right away. Create the sync and import workflows and configure them on the app as described in the [receiving guide](/guides/fi-finvoice-receiving#setup), then come back here. If you only register suppliers outside Finland, skip this step. **3. Create the registration workflow** > [card] [Finvoice register party workflow](https://console.invopop.com/redirect/workflows/new?template=fi-finvoice-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Finvoice register party workflow theme={"system"} > { > "name": "Finvoice register party", > "description": "Register a party so it can send e-invoices in Finland, once its representative has signed the authorization. Finnish parties can also receive", > "schema": "org/party", > "steps": [ > { > "id": "bc177ef2-9172-11f1-8c54-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "874e856a-a0b4-11f1-a9bb-92000767c8b7", > "name": "Sign authorisation for Finland", > "provider": "gov-fi.sign" > }, > { > "id": "875129e9-a0b4-11f1-b569-92000767c8b7", > "name": "Wait for Finland agreement approval", > "provider": "gov-fi.wait.approval" > }, > { > "id": "bc177f3b-9172-11f1-8204-92000767c8b7", > "name": "Register party in Finland", > "provider": "gov-fi.register" > }, > { > "id": "bc177f7d-9172-11f1-bb70-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "bc177fc4-9172-11f1-a165-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Register a supplier **1. Upload the party** Create a silo entry with the party's details. Registration uses the name, the tax ID and the representative under `people`. The example below shows a Finnish party, with its y-tunnus as the tax ID. You can leave out the endpoint: registration adds it. ```json Finland supplier example expandable theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "Aurora Ohjelmistot Oy", "tax_id": { "country": "FI", "code": "26174164" }, "endpoints": [ { "uri": "iso6523-actorid-upis::0216:003726174164" } ], "addresses": [ { "num": "12", "street": "Mannerheimintie", "locality": "Helsinki", "code": "00100", "country": "FI" } ], "emails": [ { "addr": "laskutus@auroraohjelmistot.fi" } ], "people": [ { "name": { "given": "Aino", "surname": "Virtanen" }, "role": "CEO", "identities": [ { "code": "PA1234567" } ] } ] } ``` **2. Run the registration workflow** Run the registration workflow on the party's silo entry, from the Console or [via the API](/api-ref/transform/jobs/create-a-job-post). The workflow publishes the signing link and pauses at the **Wait for Finland agreement approval** step until the signed authorization is approved. **3. Share the signing link** The workflow adds a public **signing link** to the party's silo entry. Open the party in the Console to copy it, and send it to the supplier's representative. **4. Have the representative sign** The link opens a short hosted wizard: the representative confirms their name and role (prefilled from the party's `people` entry), uploads a photo of their identity document, reviews the authorization agreement, and signs it — typing their name or drawing a signature that is stamped onto the document. When the identity check passes, the authorization is approved on the spot. Otherwise it goes to Invopop's team for review, and the representative sees the outcome on the same page. > [!NOTE] > > In sandbox workspaces the identity check is skipped: any image is accepted and the authorization is approved as soon as it is signed. **5. Wait for the registration to complete** As soon as the authorization is approved, the workflow resumes on its own. Registration finds or creates the party's company under Invopop's partner account at the operator and activates its services. The job stays queued until the operator reports every service in force. For a Finnish party, registration also waits until the operator has allocated its e-invoice address, so the job never reports success on an account that can't receive yet. A supplier outside Finland gets no address, so its registration completes as soon as its sending service is active. Once registration completes, a Finnish party can send and receive e-invoices, and its inbox at the operator starts being polled automatically. A supplier outside Finland can start sending. > [!NOTE] > > A Finnish party's e-invoice address works from the moment registration completes, but the [national registry](https://verkkolaskuosoite.fi) counterparties look addresses up in is refreshed once a night. Expect the party to become findable there the following day. At this point, you're ready to start sending invoices on behalf of the supplier. Head over to the [Finvoice issuing invoices guide](/guides/fi-finvoice) to continue. ## Sign the agreement via the API Integrators building their own onboarding UI can drive the signing step without the hosted wizard. The Finland app exposes three endpoints on its service, authenticated per enrollment. All three read the signer from the party entry, so the first person in the party's `people` list must carry a name and a role before they are called. | Endpoint | Purpose | | - | - | | `GET /v1/entry/:silo_entry_id/agreement` | The agreement PDF to render on screen: the signed one once it exists, the unsigned document before that. | | `POST /v1/entry/:silo_entry_id/identity` | Upload the identity document as base64 images: `{"front": "...", "back": "..."}`; `back` is optional for single-page documents. | | `POST /v1/entry/:silo_entry_id/sign` | Sign the agreement and submit the authorization. Send `{"signature": "..."}` with a drawn PNG/JPEG to have it stamped, or an empty body to use the signer's typed name. Returns `{"status": "accepted" \| "awaiting"}`. | ## Unregister a supplier To offboard a party, create the unregister workflow and run it on the party's silo entry: it takes the e-invoice address off the party record, waits for anything still in the party's inbox at the operator to be imported (the job stays queued meanwhile), then removes the party's operator account and stops polling its inbox. A party that was never registered, or was already unregistered, completes with nothing to do. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Finvoice unregister party workflow theme={"system"} > { > "name": "Finvoice unregister party", > "description": "Unregister a party from Finland so it no longer sends or receives e-invoices through Invopop", > "schema": "org/party", > "steps": [ > { > "id": "afc965e7-248d-4e0b-b34c-8a6d7e043826", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "839d3280-1a03-4113-80bf-db03bd5bda8b", > "name": "Unregister party from Finland", > "provider": "gov-fi.unregister" > }, > { > "id": "264d2f39-bdf3-4887-b7e2-9e46f5607b24", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "4f3a9c6e-5d21-4b8a-9e7f-2c1d0b3a8e55", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!WARNING] > > An unregistered party can no longer send or receive through the Finland app, and an e-invoice sent to its address after the account is removed is not delivered, so tell its counterparties before you unregister it. To operate on its behalf again, run the registration workflow again; a Finnish party gets the same e-invoice address back. ## FAQ > [accordion] How do I register a Finnish supplier? > > Upload the supplier as a GOBL party with `tax_id.country = FI` and the Business ID (y-tunnus), then run the [Finland app](/apps/finland)'s registration workflow. Registration provisions the party its own operator account and allocates its e-invoice address — a party must be registered before it can send or receive anything. See the [supplier registration guide](/guides/fi-finvoice-supplier). > [accordion] What Peppol scheme does Finland use for participant IDs? > > Scheme `0216`, wrapping the party's OVT code — `0037` followed by the Business ID without its hyphen. Under Finland's Peppol Authority Specific Requirements, the OVT code is the mandatory participant identifier for Finnish organisations on Peppol. The `0037` at the start of the code itself is a country prefix, not the scheme. > [accordion] What is a Finnish e-invoice address? > > An OVT code: `0037` followed by the party's Business ID (y-tunnus) without its hyphen, sometimes with a five-character suffix for routing inside large organisations (for example `003726174164`). On Peppol, the same code is wrapped in scheme `0216` (`0216:003726174164`). You can look any counterparty up in the national registry at [verkkolaskuosoite.fi](https://verkkolaskuosoite.fi): since 2024 it mirrors the Peppol address list too, so one lookup covers both networks. > [accordion] Which address form should I put on a party record? > > For a Finnish party, the OVT code, as an endpoint: `iso6523-actorid-upis::0216:` followed by the code. Registration adds it to the party for you. A supplier outside Finland uses its own electronic address, such as `iso6523-actorid-upis::0007:` followed by a Swedish Org.nr. Other forms circulate on the Finnish network (IBAN-style addresses from the older bank channel, operator-prefixed ones such as `TE0037…`), but for a Finnish party the OVT code is the canonical form, and the one the routing pre-check and the generated e-invoice use. > [accordion] Why hasn't my party's registration completed yet? > > Registration provisions the party its own account with the operator, and the job stays queued until every service is in force. For a Finnish party, it also waits until the operator has allocated its e-invoice address, so it never reports success on an account that can't receive yet. A supplier outside Finland only sends, so its registration completes as soon as its sending service is active. > [accordion] Can I register several Finnish parties in one workspace? > > Yes. Each party gets its own operator account, its own e-invoice address, and its own reception polling schedule. Register each one separately by running the registration workflow on its party record. More available in our [Finland FAQ](/faq/finland) section *** > [accordion] 🇫🇮 Invopop resources for Finland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Finland](/compliance/finland) [Compliance timeline](/timelines/finland) | > | Apps | [Finland](/apps/finland) [Peppol](/apps/peppol) | > | Guides | [Supplier registration](/guides/fi-finvoice-supplier) [Issuing invoices](/guides/fi-finvoice) [Receiving invoices](/guides/fi-finvoice-receiving) [Peppol guide](/guides/peppol) | > | FAQ | [Finland FAQ](/faq/finland) | > | GOBL | [Finland Tax Regime](https://docs.gobl.org/regimes/fi) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.fi.finvoice](https://github.com/invopop/gobl.fi.finvoice) [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Finland → # Upload files to silo entries Source: https://docs.invopop.com/guides/file-uploads Learn how to upload files to silo entries using the API Silo entries can store files as attachments, such as PDF invoices, XML documents, or other supporting files. This guide explains how to upload files to silo entries using the API. ## Upload endpoints You can upload files using either: * [POST](/api-ref/silo/entries/files-post) `/silo/v1/entries/{entry_id}/files` \ System generates the UUID. * [PUT](/api-ref/silo/entries/files-put) `/silo/v1/entries/{entry_id}/files/{id}` \ You specify the UUID. Both endpoints support the same features and parameters. Most applications use `POST` and let the system generate UUIDs. However, `PUT` is useful when you need idempotent operations (safe retries with the same UUID), when integrating with external systems that have their own identifiers, or when you need to reference the file URL before the upload completes. ## Upload options Both endpoints support two upload methods: #### Inline upload (base64) Upload the file data directly in the request body as base64-encoded content. This works well for smaller files. ```bash cURL theme={"system"} curl -X POST 'https://api.invopop.com/silo/v1/entries/{entry_id}/files' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "invoice.pdf", "category": "format", "mime": "application/pdf", "data": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9MZW5ndGg..." }' ``` #### Placeholder with streaming upload Create a placeholder file first, then upload the actual file contents to the URL provided in the response. This is useful for larger files or when you want to separate metadata creation from file upload. **1. Create the placeholder** ```bash cURL theme={"system"} curl -X POST \ 'https://api.invopop.com/silo/v1/entries/{id}/files' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "invoice.pdf", "category": "format", "mime": "application/pdf", "sha256": "27a0b656df99dc32124b4c49f2f3c35025f...", "size": 12345 }' ``` To calculate the `sha256` hash and `size`, use your programming language's built-in crypto and file system libraries. In Node.js, use the `crypto` module with `createHash('sha256')` and `fs.statSync()`. In Python, use `hashlib.sha256()` and `os.path.getsize()`. In Go, use `crypto/sha256` and `os.Stat()`. Most languages provide similar standard library functions for these operations. **2. Upload the file to the URL from the response** ```json Success theme={"system"} { "id": "347c5b04-cde2-11ed-afa1-0242ac120002", "entry_id": "123e4567-e89b-12d3-a456-426614174000", "name": "invoice.pdf", "mime": "application/pdf", "size": 12345, "url": "https://storage.invopop.com/upload/...", "stored": false } ``` Use the `url` field from the response to upload the file contents. Note `stored` is `false` until the file is uploaded. ```bash cURL theme={"system"} curl -X PUT 'https://storage.invopop.com/upload/...' \ -H 'Content-Type: application/pdf' \ --data-binary @invoice.pdf ``` ## Request parameters The file upload endpoints accept the following parameters: | Parameter | Required | Description | | - | - | - | | `name` | Yes | Name of the file (e.g., `invoice.pdf`) | | `category` | No | Use `format` for alternative formats (PDF, XML), `attachment` for supporting documents. | | `data` | Conditional | Base64-encoded binary data. Required if `sha256`, `size`, and `mime` are not provided | | `mime` | Conditional | MIME type (e.g., `application/pdf`). Required when `data` is not provided | | `sha256` | Conditional | SHA256 hex hash of the file. Required when `data` is not provided | | `size` | Conditional | Size of the file in bytes. Required when `data` is not provided | | `key` | No | Used to identify a file in a category. If two files are uploaded with the same key and category, one will replace the other. If no key is provided, the filename is used for uniqueness along with the category | | `desc` | No | Description of the file | | `embeddable` | No | When `true`, the file may be embedded inside other files like PDFs. Default is `false` | | `private` | No | When `true`, the file is private and can only be accessed by the owner. Default is `false` | | `meta` | No | Additional metadata about the file (key-value pairs) | ## Examples > [accordion] Upload a PDF invoice > > ```bash cURL theme={"system"} > curl -X POST 'https://api.invopop.com/silo/v1/entries/123e4567-e89b-12d3-a456-426614174000/files' \ > -H 'Authorization: Bearer YOUR_API_KEY' \ > -H 'Content-Type: application/json' \ > -d '{ > "name": "invoice-2024-001.pdf", > "category": "format", > "mime": "application/pdf", > "key": "pdf", > "desc": "Invoice PDF for January 2024", > "data": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9MZW5ndGg..." > }' > ``` > [accordion] Upload an XML file > > ```bash cURL theme={"system"} > curl -X POST 'https://api.invopop.com/silo/v1/entries/123e4567-e89b-12d3-a456-426614174000/files' \ > -H 'Authorization: Bearer YOUR_API_KEY' \ > -H 'Content-Type: application/json' \ > -d '{ > "name": "facturae.xml", > "category": "format", > "mime": "application/xml", > "key": "xml", > "data": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4K..." > }' > ``` > [accordion] Create a placeholder for large file upload > > ```bash cURL theme={"system"} > curl -X POST 'https://api.invopop.com/silo/v1/entries/123e4567-e89b-12d3-a456-426614174000/files' \ > -H 'Authorization: Bearer YOUR_API_KEY' \ > -H 'Content-Type: application/json' \ > -d '{ > "name": "large-document.pdf", > "category": "attachment", > "mime": "application/pdf", > "sha256": "27a0b656df99dc32124b4c49f2f3c35025f0a7453f289cbaa0701435cfcf4e28", > "size": 5242880, > "desc": "Large document attachment" > }' > ``` > > The response will contain a `url` field that can be used to upload the file contents. ## Response This is an example response from the file upload endpoints: ```json expandable theme={"system"} { "category": "format", "created_at": "2018-01-01T00:00:00.000Z", "desc": "Invoice for January 2021.", "embeddable": true, "entry_id": "347c5b04-cde2-11ed-afa1-0242ac120002", "hash": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6", "id": "", "key": "pdf", "meta": {}, "mime": "application/pdf", "name": "invoice.pdf", "previous": [ { "created_at": "2018-01-01T00:00:00.000Z", "hash": "", "id": "", "size": 123 } ], "private": true, "size": 12345, "stored": true, "url": "" } ``` View the detailed response fields in our [File Upload API Reference](/api-ref/silo/entries/files-post#response-category). ## Fetching files After uploading a file, you can retrieve it using the [Fetch a File](/api-ref/silo/entries/files-fetch) endpoint: ```bash cURL theme={"system"} curl -X GET 'https://api.invopop.com/silo/v1/entries/{entry_id}/files/{id}' \ -H 'Authorization: Bearer YOUR_API_KEY' ``` The response will contain the file data with the appropriate `Content-Type` and `Content-Disposition` headers set according to the file's source. ## Embed attachments in UBL and CII documents The [OASIS UBL](/apps/oasis-ubl) and [UN/CEFACT CII](/apps/uncefact-cii) generate actions can embed supporting documents, such as delivery notes, timesheets, or purchase orders, directly inside the XML they produce. Each file is included as a base64 binary object, so the recipient gets the attachments with the invoice and doesn't have to download them separately. To embed attachments: **1. Upload the files to the silo entry** Upload each file with `"category": "attachment"`, using either of the [upload options](#upload-options) above. Use `desc` to give the file a description, which becomes the attachment description in the XML. ```bash cURL theme={"system"} curl -X POST 'https://api.invopop.com/silo/v1/entries/{entry_id}/files' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "delivery-note.pdf", "category": "attachment", "mime": "application/pdf", "desc": "Delivery note", "data": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9MZW5ndGg..." }' ``` **2. Enable the option in the workflow** In the **Generate UBL document** or **Generate CII document** step, enable **Embed Attachments**. In the workflow JSON this is `"embed_attachments": true` in the step's `config`. When the step runs, every file in the `attachment` category that has finished uploading (`stored` is `true`) is embedded. Keep the following in mind: * **Linked attachments are replaced, not repeated.** If the invoice's `attachments` already links to the file, using the silo file ID as the attachment `code`, the link is replaced by the embedded content. The description from the invoice is kept. * **Supported file types.** EN 16931 (rule BR-CL-24) only accepts PDF, PNG, JPEG, CSV, XLSX and ODS attachments. Other types fail validation. * **French CTC descriptions.** For the Peppol France formats, the description must be one of the codes allowed by BR-FR-17, such as `BON_COMMANDE`, `BON_LIVRAISON` or `RIB`. Any other description is replaced with `PJA` (additional supporting document). `LISIBLE` is reserved for the invoice PDF. * **Chorus Pro.** Each attachment is ZIP-compressed and identified by its file name, as Chorus Pro requires. Files over 100 MB are rejected. * **Failed downloads stop the step.** If a file cannot be downloaded, the step fails rather than sending the invoice without it. The invoice PDF is handled by the separate **Attach Invoice PDF** option, which embeds the file with key `pdf` in the `format` category. Both options can be enabled together. ## Best practices 1. **Use placeholders for large files** — For files larger than a few megabytes, create a placeholder first and upload via the streaming URL to avoid timeouts. 2. **Provide file metadata** — Include `key`, `desc`, and `category` to make files easier to identify and organize. 3. **Verify uploads** — Check the `stored` field in the response to confirm the file was uploaded successfully. 4. **Use appropriate categories** — Use `format` for alternative invoice formats (PDF, XML) and `attachment` for supporting documents. 5. **Set privacy flags** — Use the `private` flag for sensitive files that shouldn't be publicly accessible. # Chorus Pro issuing invoices guide Source: https://docs.invopop.com/guides/fr-chorus-pro Issue invoices to French public institutions with Chorus Pro. ## Introduction > [!NOTE] > > This guide is for **foreign entities without a French SIREN**. If your company is French and registered in the Annuaire through Invopop, invoice public entities with the same workflow as your B2B invoices: see the [public sector guide](/guides/fr-pa-b2g). In this guide, you'll learn how to issue invoices to French public institutions using [Chorus Pro](https://portail.chorus-pro.gouv.fr/). It will walk you through: 1. Understanding Chorus Pro and its format requirements 2. Setting up the invoice submission workflow 3. Submitting your first invoice to a French public institution ### What is Chorus Pro? Chorus Pro is a mandatory service provided by the French government for invoicing French public institutions. The platform allows businesses to upload invoices in multiple e-invoicing formats and track them throughout the French public administration process. All invoices to French public sector entities must be submitted through Chorus Pro. The platform supports various e-invoicing formats including [Cross Industry Invoice (CII)](https://unece.org/trade/uncefact/e-invoice), and implements the [European Norm 16931 (EN16931)](https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/European+Standard+and+Specifications) European standard for electronic invoicing with additional French-specific requirements. ### Understanding Chorus Pro format requirements Chorus Pro accepts invoices in CII format based on the EN16931 European standard. However, it adds specific French extensions and validation requirements: **EN16931 Standard** The EN16931 defines the semantic data model for electronic invoices. The standard ensures interoperability across European Union (EU) member states while allowing for country-specific extensions. **Chorus Pro Extensions** Chorus Pro extends the base EN16931 standard with additional French requirements: * SIRET number validation for French entities * Specific invoice types for different purposes * Service codes for government departments In GOBL, these formats are handled via addons that you must add to each invoice. You'll see examples of this further below. ## Prerequisites To issue invoices through Chorus Pro, you will need: * **A registered supplier**: follow the [Chorus Pro supplier registration guide](/guides/fr-chorus-pro-supplier) to connect the required apps, create the Chorus Pro credentials, and register the supplier before issuing. * Customer details, including the SIRET number of the public institution being invoiced. ## Setup Configure your Invopop Workspace for Chorus Pro invoicing. > [!NOTE] > > These instructions apply to both the sandbox and live environments. The UN/CEFACT CII and Chorus Pro apps must already be connected and the supplier registered — this is covered in the [supplier registration guide](/guides/fr-chorus-pro-supplier). **1. Configure invoice workflow** Add a new workflow to your workspace for issuing invoices. You can start with the template below. > [card] [Chorus Pro invoice workflow](https://console.invopop.com/redirect/workflows/new?template=chorus-pro-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste this code into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Chorus Pro issue invoice workflow theme={"system"} > { > "name": "Chorus Pro issue invoice", > "description": "Issue a B2G invoice through Chorus Pro using CII", > "schema": "bill/invoice", > "steps": [ > { > "id": "241c1b60-4cec-11f0-bcdc-61b84b5eeae8", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "0dba81f0-4ba1-11f0-a0a5-bbd7c9d8117a", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "3d048690-4ba1-11f0-a0a5-bbd7c9d8117a", > "name": "Generate CII document", > "provider": "cii.generate", > "summary": "Chorus Pro v1", > "config": { > "doc_type": "choruspro-v1" > } > }, > { > "id": "2cd30490-4ba1-11f0-a0a5-bbd7c9d8117a", > "name": "Send invoice to Chorus Pro", > "provider": "chorus-pro.send" > }, > { > "id": "282dac00-4cec-11f0-bcdc-61b84b5eeae8", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "2b9c6cf0-4cec-11f0-bcdc-61b84b5eeae8", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` Keep the workflow ID at hand as you'll need it later. ## Send an invoice Once a supplier is registered, you can send invoices to French public institutions through Chorus Pro. **1. Create an Invoice** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to create a new invoice. Include an [invoice](https://docs.gobl.org/draft-0/bill/invoice) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data) field. > [accordion] Chorus Pro B2G Invoice > > In this example, we're issuing a Chorus Pro invoice for business-to-government transactions in France. Chorus Pro is the mandatory platform for submitting invoices to French public sector entities. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the B2G invoice, > * the [`fr-choruspro-v1`](https://docs.gobl.org/addons/fr-choruspro-v1) addon ensures the document will be validated using the Chorus Pro rules built into the [GOBL](https://docs.gobl.org) library, > * the customer must be a French public sector entity with a valid SIRET number, > * specific Chorus Pro extensions and identifiers are required for public procurement (such as service codes and commitment numbers), > * there are no totals or calculations in the minimal version; all these will be calculated automatically when running `gobl build`, > * the built version in the second tab shows the normalized document with calculated totals, line item sums, TVA breakdowns, and automatically generated fields, > * the invoice will be formatted according to Chorus Pro requirements and submitted through the platform, and, > * all invoices to French public entities must be submitted through Chorus Pro. > > ```json Chorus Pro B2G Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-choruspro-v1" > ], > "uuid": "019783e7-33b1-7000-a1a5-6139e214b447", > "type": "standard", > "series": "SAMPLE", > "code": "2345", > "issue_date": "2025-06-18", > "currency": "EUR", > "supplier": { > "name": "Provide One Inc.", > "tax_id": { > "country": "FR", > "code": "43498927917" > }, > "identities": [ > { > "type": "SIRET", > "code": "49892791768734" > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000012345" > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ], > "total": "1620.00" > } > ], > "payment": { > "advances": [ > { > "description": "Paid in full", > "percent": "100%", > "amount": "1944.00" > } > ], > "instructions": { > "key": "card" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-choruspro-v1" > ], > "uuid": "019783e7-33b1-7000-a1a5-6139e214b447", > "type": "standard", > "series": "SAMPLE", > "code": "2345", > "issue_date": "2025-06-18", > "currency": "EUR", > "tax": { > "ext": { > "fr-choruspro-framework": "A1", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Provide One Inc.", > "tax_id": { > "country": "FR", > "code": "43498927917" > }, > "identities": [ > { > "type": "SIRET", > "code": "49892791768734", > "ext": { > "iso-scheme-id": "0009" > } > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "ext": { > "fr-choruspro-scheme": "1" > } > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000012345", > "ext": { > "iso-scheme-id": "0009" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ], > "ext": { > "fr-choruspro-scheme": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1620.00" > } > ], > "payment": { > "advances": [ > { > "description": "Paid in full", > "percent": "100%", > "amount": "1944.00" > } > ], > "instructions": { > "key": "card", > "ext": { > "untdid-payment-means": "48" > } > } > }, > "totals": { > "sum": "1620.00", > "total": "1620.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1620.00", > "percent": "20%", > "amount": "324.00" > } > ], > "amount": "324.00" > } > ], > "sum": "324.00" > }, > "tax": "324.00", > "total_with_tax": "1944.00", > "payable": "1944.00", > "advance": "1944.00", > "due": "0.00" > } > } > ``` > [accordion] Chorus Pro cross-border invoice (DE → FR) > > A non-French supplier invoicing a French public sector entity through Chorus Pro. Chorus Pro accepts foreign suppliers — the customer's SIRET is what anchors the document to the right administration. > > Notice: > > * the supplier carries a DE tax ID and address, while the customer keeps its `SIRET` identity, > * the `fr-choruspro-v1` add-on still applies — Chorus Pro routing rules are driven by the receiver, not the issuer, > * VAT is reported as standard French VAT because the place of supply is France; cross-border reverse-charge cases would set the line tax accordingly. > > ```json Chorus Pro Cross-Border Invoice (DE → FR) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-choruspro-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2022-02-01", > "currency": "EUR", > "supplier": { > "name": "Provide One Inc.", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "addresses": [ > { > "num": "42", > "street": "Berliner Strasse", > "locality": "Berlin", > "code": "10117", > "country": "DE" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Public Entity", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIRET", > "code": "73282932012345" > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "discounts": [ > { > "percent": "10%", > "reason": "Special discount" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "terms": { > "detail": "Please pay within 10 days" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-choruspro-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2022-02-01", > "currency": "EUR", > "tax": { > "ext": { > "fr-choruspro-framework": "A1", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Provide One Inc.", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "addresses": [ > { > "num": "42", > "street": "Berliner Strasse", > "locality": "Berlin", > "code": "10117", > "country": "DE" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "ext": { > "fr-choruspro-scheme": "2" > } > }, > "customer": { > "name": "Sample Public Entity", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "type": "SIRET", > "code": "73282932012345", > "ext": { > "iso-scheme-id": "0009" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ], > "ext": { > "fr-choruspro-scheme": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1620.00" > } > ], > "payment": { > "terms": { > "notes": "Please pay within 10 days" > } > }, > "totals": { > "sum": "1620.00", > "total": "1620.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1620.00", > "percent": "20%", > "amount": "324.00" > } > ], > "amount": "324.00" > } > ], > "sum": "324.00" > }, > "tax": "324.00", > "total_with_tax": "1944.00", > "payable": "1944.00" > } > } > ``` > [accordion] Chorus Pro Credit Note > > A credit note (avoir) reversing part of a previously submitted Chorus Pro invoice. > > Notice: > > * the `type` is set to `credit-note`, so the document is rendered with the UNTDID document type `381`, > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, with a `reason` for the correction — Chorus Pro links the avoir to the original submission through this reference, > * both parties keep their `SIRET` identities, exactly as on the original invoice, and, > * the lines describe only the amounts being credited; totals are calculated automatically when running `gobl build`. > > ```json Chorus Pro Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-choruspro-v1" > ], > "uuid": "019783e7-33b1-7000-a1a5-6139e214b448", > "type": "credit-note", > "series": "SAMPLE-CN", > "code": "2346", > "issue_date": "2025-06-25", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "series": "SAMPLE", > "code": "2345", > "issue_date": "2025-06-18", > "reason": "Partial refund for undelivered services" > } > ], > "supplier": { > "name": "Provide One Inc.", > "tax_id": { > "country": "FR", > "code": "43498927917" > }, > "identities": [ > { > "type": "SIRET", > "code": "49892791768734" > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000012345" > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "card" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-choruspro-v1" > ], > "uuid": "019783e7-33b1-7000-a1a5-6139e214b448", > "type": "credit-note", > "series": "SAMPLE-CN", > "code": "2346", > "issue_date": "2025-06-25", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2025-06-18", > "series": "SAMPLE", > "code": "2345", > "reason": "Partial refund for undelivered services" > } > ], > "tax": { > "ext": { > "fr-choruspro-framework": "A1", > "untdid-document-type": "381" > } > }, > "supplier": { > "name": "Provide One Inc.", > "tax_id": { > "country": "FR", > "code": "43498927917" > }, > "identities": [ > { > "type": "SIRET", > "code": "49892791768734", > "ext": { > "iso-scheme-id": "0009" > } > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "ext": { > "fr-choruspro-scheme": "1" > } > }, > "customer": { > "name": "Sample Consumer", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000012345", > "ext": { > "iso-scheme-id": "0009" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ], > "ext": { > "fr-choruspro-scheme": "1" > } > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "450.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "450.00" > } > ], > "payment": { > "instructions": { > "key": "card", > "ext": { > "untdid-payment-means": "48" > } > } > }, > "totals": { > "sum": "450.00", > "total": "450.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "450.00", > "percent": "20%", > "amount": "90.00" > } > ], > "amount": "90.00" > } > ], > "sum": "90.00" > }, > "tax": "90.00", > "total_with_tax": "540.00", > "payable": "540.00" > } > } > ``` > [accordion] Convert a Chorus Pro test SIREN into a GOBL party > > SIRET (14 digits) or SIREN (9 digits) > > ```js JavaScript theme={"system"} > const siret = "34724449635741"; // from the QAS test account CSV > const siren = siret.slice(0, 9); > const key = String((Number(siren) * 100 + 12) % 97).padStart(2, "0"); > > const party = { > name: "Example Company", > tax_id: { country: "FR", code: key + siren }, > identities: [{ type: "SIRET", code: siret }], > }; > ``` > > ```python Python theme={"system"} > siret = "34724449635741" # from the QAS test account CSV > siren = siret[:9] > > party = { > "name": "Example Company", > "tax_id": {"country": "FR", "code": f"{(int(siren) * 100 + 12) % 97:02d}{siren}"}, > "identities": [{"type": "SIRET", "code": siret}], > } > ``` Review the example above. Notice that you need both the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and the [`fr-choruspro-v1`](https://docs.gobl.org/addons/fr-choruspro-v1) addon. These addons enable all the necessary validations in your GOBL invoice. **2. Send to Chorus Pro** Send the invoice to Chorus Pro using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * The invoice's silo entry UUID from the previous step * The Chorus Pro Invoice workflow ID from the [Setup](#setup) section The system generates a CII XML file with Chorus Pro extensions and submits it to the platform. ![Invoice sent to Chorus Pro](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/fr-chorus-pro-xml.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=a0f7d3065f8b070e499da82c4fa84daf) **3. Track Invoice Status** After submission, track your invoice in [Chorus Pro](https://cpro.chorus-pro.gouv.fr/cpp/rechercheFacturesEmises) using the invoice identifier (series plus code). > [!NOTE] > > Chorus Pro allows document modifications after submission. If a document is rejected or contains errors, update the GOBL details and resubmit to the same workflow until the document is accepted. > Once accepted, do not modify the invoice. > [!NOTE] > > The invoice identifier in Chorus Pro corresponds to your GOBL invoice series and code combined. This identifier helps you locate and track invoices across both systems. ## FAQ > [accordion] How do I configure my workspace for French invoicing? > > Two channels depending on the recipient: B2G uses Chorus Pro (CII format); B2B from September 2026 uses the Plateforme Agréée model (UBL, CII, or Factur-X via Peppol). Invopop is an approved PA — install the France PA app for B2B and the Chorus Pro app for B2G. > [accordion] How can I view an XML attached to a PDF? > > In Factur-X PDFs, the XML file is embedded within the PDF itself. To extract and view it, use the `Attachments` section in Adobe Acrobat Reader, or a tool like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/). > [accordion] What invoice formats does Chorus Pro support? > > Chorus Pro primarily supports CII format based on EN16931. Invopop currently focuses on CII with plans to add additional formats in the future. > [accordion] Do I need a SIRET number to use Chorus Pro? > > French businesses need a SIRET number. Foreign businesses can use their local tax identifier, but should verify acceptance with the receiving French institution. > [accordion] Can I modify invoices after sending to Chorus Pro? > > Yes, you can modify and resubmit invoices until the receiving institution accepts them. Once accepted, invoices become locked and cannot be modified. > [accordion] How do I find my invoice in Chorus Pro? > > Use your GOBL invoice series and code combined as the invoice identifier in the Chorus Pro portal to locate your submitted invoices. > [accordion] Are there file size limits for Chorus Pro invoices? > > Chorus Pro has specific file size and format requirements. Invopop handles these automatically when generating CII XML files from your GOBL invoices. > [accordion] What GOBL fields are required for Chorus Pro? > > The recipient's SIRET (or equivalent identifier) plus a Chorus Pro service code where applicable. Invopop generates EN 16931 CII XML by default — UBL is also accepted by Chorus Pro. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. More available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in France → # Chorus Pro supplier registration guide Source: https://docs.invopop.com/guides/fr-chorus-pro-supplier Register suppliers to issue invoices to French public institutions with Chorus Pro. ## Introduction > [!NOTE] > > This guide is for **foreign entities without a French SIREN**. A French company registered in the Annuaire through Invopop needs no Chorus Pro registration: see the [public sector guide](/guides/fr-pa-b2g). Chorus Pro is a mandatory service provided by the French government for invoicing French public institutions. Before a supplier can issue invoices through the platform, they need a Chorus Pro technical account and must be registered with Invopop using the [Chorus Pro app](/apps/choruspro-france). In this guide you'll learn how to create the Chorus Pro credentials and register a supplier. Once a supplier is registered, continue with the companion guide: [Chorus Pro issuing invoices](/guides/fr-chorus-pro). ## Prerequisites To register a supplier with Chorus Pro, you will need: * A [Chorus Pro](https://portail.chorus-pro.gouv.fr/) account for the supplier (or a sandbox account for testing — see below). * The supplier's VAT number. | - | Sandbox | Live | | - | - | - | | **Supplier** | Test Chorus Pro account (qualif.chorus-pro.gouv.fr) | Real Chorus Pro account required | | **Accounts** | Downloadable CSV with test accounts | — | ## Setup Configure your Invopop Workspace for Chorus Pro supplier registration. Complete these steps: **1. Connect the required apps** 1. Go to **Configuration** > **Apps** in the Console. 2. Find **UN/CEFACT CII** in the app list and click **Connect** to activate the app. 3. Find **Chorus Pro** in the app list and click **Connect** to activate the app. After connecting, you'll see both UN/CEFACT CII and Chorus Pro listed in the Enabled Apps section. ![Chorus Pro app connected](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/fr-chorus-pro-apps.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=b45e25ec6d37d1e512a2ea8b16553342) **2. Configure the supplier registration workflow** Add a new workflow to your workspace for registering suppliers. You can start with the template below. > [card] [Chorus Pro supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=chorus-pro-registration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste this code into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Chorus Pro register supplier workflow theme={"system"} > { > "name": "Chorus Pro register supplier", > "description": "Register a supplier with Chorus Pro", > "schema": "org/party", > "steps": [ > { > "id": "9ed27c40-4ced-11f0-bcdc-61b84b5eeae8", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "b8d3dc10-4ba3-11f0-a0a5-bbd7c9d8117a", > "name": "Register supplier with Chorus Pro", > "provider": "chorus-pro.register" > }, > { > "id": "a3d43940-4ced-11f0-bcdc-61b84b5eeae8", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "a6c4f090-4ced-11f0-bcdc-61b84b5eeae8", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` Keep the workflow ID at hand as you'll need it later. ## Chorus Pro credentials This section explains what suppliers need to configure within their Chorus Pro account to enable integration with Invopop. To configure Chorus Pro, complete these steps: **1. Create a Chorus Pro account** Sign up for a [Chorus Pro](https://portail.chorus-pro.gouv.fr/aife_csm?id=aife_enrollment) account if you don't have one. > [!NOTE] > > To test in sandbox mode, create an account in the [Chorus Pro sandbox](https://qualif.chorus-pro.gouv.fr/aife_qual). Download a CSV file with test accounts. Use one of the accounts to log in. For more information, visit the [Chorus Pro documentation](https://portail.chorus-pro.gouv.fr/aife_documentation?sys_kb_id=8ea00d85c398ea1477c2530ed40131e2\&id=kb_article_view\&sysparm_rank=1\&sysparm_tsqueryId=66f41ea033de625056688539bd5c7bd9). > [accordion] Convert a Chorus Pro test SIREN into a GOBL party > > SIRET (14 digits) or SIREN (9 digits) > > ```js JavaScript theme={"system"} > const siret = "34724449635741"; // from the QAS test account CSV > const siren = siret.slice(0, 9); > const key = String((Number(siren) * 100 + 12) % 97).padStart(2, "0"); > > const party = { > name: "Example Company", > tax_id: { country: "FR", code: key + siren }, > identities: [{ type: "SIRET", code: siret }], > }; > ``` > > ```python Python theme={"system"} > siret = "34724449635741" # from the QAS test account CSV > siren = siret[:9] > > party = { > "name": "Example Company", > "tax_id": {"country": "FR", "code": f"{(int(siren) * 100 + 12) % 97:02d}{siren}"}, > "identities": [{"type": "SIRET", "code": siret}], > } > ``` **2. Navigate to API settings** Once logged in to your Chorus Pro account, navigate to the API configuration area: 1. Go to **Domains** > **Connections** in the main menu ![Navigate to Domains → Connections](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/fr-chorus-pro-connections.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=24c140adfeb71d7f6bbe9552120be996) Navigate to Domains → Connections 2. Click **Access Service** in the Technical Account section (bottom left) ![Navigate to Technical Account](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/guides/fr-chorus-pro-access-service.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=870627636d53a0561499abb4fc5c142d) Navigate to Technical Account This opens a new page where you can manage your technical accounts. **3. Create a technical account** Set up the technical account credentials, this opens a form to create a technical account: * Set the type of request to **Creation of a technical account** * Select your company in the company field * This creates a login and password. **Copy these credentials as you'll need them when registering with Invopop** ![Technical Account Creation](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/fr-chorus-pro-technical-account.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=07b8df21f5f90e1fb437eb3eae8309bf) Technical Account Creation Click **Submit** to complete the setup Return to Invopop for the next steps. ## Register a supplier Now that you have a technical account, you can register a supplier with Chorus Pro. **1. Upload a Supplier** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload a new supplier. Include a [party](https://docs.gobl.org/draft-0/org/party) object in the [data](/api-ref/silo/entries/create-an-entry-put#body-data) field. For this step, you only need the VAT number. After successful upload, you'll see the supplier in the **Parties** section with status `Empty`. ![Supplier registration in progress](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/fr-chorus-pro-supplier-1.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=2071e5e8b89b8790f3322769937b9070) Supplier registration **2. Send the Supplier to the registration workflow** Send the supplier to the registration workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-post) endpoint. Use: * The supplier's silo entry UUID from the previous step * The Supplier Registration workflow ID from the [Setup](#setup) section This workflow generates a unique URL for the supplier to access and complete the registration process. The URL is stored in the supplier's metadata. ![Supplier registration in progress](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/fr-chorus-pro-supplier-2.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=0bffdefc441493ff62656bc13aa5517a) **3. Complete Chorus Pro Authentication** The workflow stays in progress until the supplier completes the registration process. The supplier must access the link and add the credentials they created previously. ![Supplier registration in progress](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/fr-chorus-pro-supplier-3.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=78002bd397b9ef11eb582de969d93f24) The supplier's status will change to `Registered` when authentication is complete. > [!NOTE] > > You can fill the form via API by sending a PUT request to the registration link. The payload should be a JSON object with the following fields: > > * `username` (string): The supplier's Chorus Pro username. > * `password` (string): The supplier's Chorus Pro password. At this point, you're ready to start sending invoices on behalf of the supplier. Head over to the [Chorus Pro issuing invoices guide](/guides/fr-chorus-pro) to continue. ## FAQ > [accordion] How do I onboard a new supplier in France? > > For B2B PA flows: register the supplier via the France PA Register Party workflow (publishes the SIREN to the Annuaire and Peppol). For Chorus Pro: register the supplier with their SIRET on Chorus Pro's portal and link credentials in the Chorus Pro app. > [accordion] How are supplier credentials stored in Invopop for France? > > France PA does not require supplier-side certificates — Peppol uses Invopop's AP cert. Chorus Pro uses an OAuth token bound to the supplier's account; the token is encrypted at rest in Invopop. > [accordion] What happens if my supplier registration fails? > > Ensure the supplier has a valid Chorus Pro account and provided correct credentials. Contact support if registration workflow issues persist. > [accordion] What credentials does Chorus Pro require to authenticate a supplier? > > OAuth 2.0 client credentials issued by Chorus Pro after registration. Invopop stores the token encrypted; suppliers can revoke access at any time through Chorus Pro's portal. > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. More available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in France → # Lookup in the French directory Source: https://docs.invopop.com/guides/fr-lookup Check whether a SIREN or electronic address is registered in the French Directory (Annuaire) before issuing or receiving invoices. ## Introduction Verifying that a party is registered in the French Annuaire before issuing or receiving an invoice reduces rejections and lets you branch regulated vs. non-regulated flows correctly. This guide shows how to query the PPF Annuaire so you can: * Verify that a SIREN is registered as a sender or receiver in the Annuaire. * Resolve the electronic address used to route invoices to a given party. * Branch invoice and party workflows between regulated e-invoicing and the [e-reporting flow](/guides/fr-pa-reporting). ## Prerequisites * A live workspace (in Sandbox, API Lookup will error with `403 Forbidden` while workflows return OK for any valid SIREN). * Within Console, make sure you have connected the **France** app. ## Console support Add the **Lookup in Directory** step to your `invoice`, `party` or `status` workflows. In the **send document workflow**, the step can be configured to lookup suppliers and customers. The job will fail if no matching entry is found, and you can handle the exception any way you want (usually routing to non-regulated flow). When a match is found, the step writes the resolved routing details back onto the looked-up party (supplier or customer for invoices and payments, or the root party for standalone party documents): * The `0225` electronic address is added to the party's `inboxes`, so downstream steps can route the document without repeating the lookup. * If the SIREN was derived from the party's French VAT tax ID or SIRET rather than supplied as an explicit identity, it is also added as a SIREN identity on the party. Existing identities (including SIRET) are preserved. If the party is already addressed or already carries a SIREN identity, the step leaves those values untouched. ![Configure the Lookup in Directory step for invoices](https://mintcdn.com/invopop/yZ7qL6iIyGoOuVDQ/assets/guides/fr-lookup-config.png?fit=max\&auto=format\&n=yZ7qL6iIyGoOuVDQ\&q=85\&s=25742584d163406ffccfe906881ef624) Configure the Lookup in Directory step for invoices ## API support ### Look up by SIREN Use this endpoint when you have the French legal identifier of a company and want to know whether it is reachable through the Annuaire. A SIREN may have multiple entries (one per registered SIRET / suffix / routing code), so the response is always a list. An empty `results` array means the SIREN is not currently registered in the Annuaire. The following outcomes are possible: | Status | Result | Flow type | Action | | - | - | - | - | | Party is registered | Returns one or more entries | **Regulated** | Route via Peppol; PPF expects a copy through the [PA send invoice workflow](/guides/fr-pa-invoicing#sending) | | Party is not registered | Returns an empty list | **Non-regulated** | Route through the [e-reporting flow](/guides/fr-pa-reporting) instead of Peppol | > [!NOTE] > > French overseas territories that sit outside the French VAT zone (Guyane, Mayotte, New Caledonia and French Polynesia) are treated as foreign zones for the e-invoicing reform. > > Annuaire lookup returns no result even when they carry a French SIREN, so their transactions are always routed to [e-reporting](/guides/fr-pa-reporting). ### Look up by electronic address Use this endpoint when you already have the electronic address (the value used to route invoices in France, typically in `scheme:value` form) and want to confirm it resolves to a registered entry. This is useful when a counterparty supplies their routing identifier directly rather than just a SIREN. The behaviour mirrors the SIREN lookup: * **Identifier is registered**: returns the matching entry. * **Identifier is unknown**: returns an empty list. The address cannot be used as a Peppol routing target for regulated flows. See the [API reference for lookup by electronic address](/api-ref/apps/gov-fr/lookup-identifier) for the full request and response shape. ## Using lookups in workflows The typical pattern is to call the lookup endpoint from your own systems **before** triggering an invoice workflow, and then choose which workflow to fire: * **Both parties registered** → run the [PA send invoice workflow](/guides/fr-pa-invoicing#sending), which transmits over Peppol and forwards the F1 copy to the PPF. * **One or both parties unregistered** → run the [e-reporting recording workflow](/guides/fr-pa-reporting#recording-workflow) so the transaction is reported to the PPF on the next periodic submission. This keeps the **Record document** step in the send workflow from rejecting non-regulated traffic. *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [card] [France FAQ](/faq/france) > > Find answers to frequently asked questions about invoicing in France → > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in France → # Plateforme Agréée (PA) guide Source: https://docs.invopop.com/guides/fr-pa France's PA system. Guides, timeline, key concepts and obligations. France is replacing paper and PDF invoicing with a CTC (Government-mandated tax mechanisms that require businesses to submit structured transaction data to tax authorities in real time or near real time) regime covering all VAT-registered businesses established in France. Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) (PA) under the DGFiP mandate. The reform has two pillars: [Invoicing](/guides/fr-pa-invoicing), which requires domestic B2B invoices to be exchanged as structured electronic documents through accredited platforms (PDPs), and [Reporting](/guides/fr-pa-reporting), which requires transaction and payment data to be transmitted to the tax authority for operations outside the e-invoicing scope (B2C sales, international trade, and payments on services subject to VAT on collection). This guide walks through how to implement these obligations in practice: classifying your transactions into the correct flows, building compliant invoices, and handling status reporting and e-reporting submissions. ## Prerequisites * An Invopop workspace with the [France](/apps/france), [Peppol](/apps/peppol), and [OASIS UBL](/apps/oasis-ubl) apps enabled. Enable [UN/CEFACT CII](/apps/uncefact-cii) for maximum compatibility and [PDF Generator](/apps/pdf-generator) to attach human readable versions of your documents. * French company details, including SIREN/SIRET. * A clear view of your invoicing flows (B2B, B2C, domestic, cross-border). > [!NOTE] > > The full France PA implementation is complete. However, some minor changes are still possible ahead of the September 2026 mandate, particularly to APIs and the fr-ctc-flow10-v1 add-on. ## Guides [Registration](/guides/fr-pa-registration) is a one-time, per-party prerequisite for the invoicing, status, and reporting flows. Before a French SIREN can send or receive invoices through Invopop, it must be registered in the French Annuaire and published on the Peppol network. > [card] [Registration](/guides/fr-pa-registration) > > Register and unregister a party in the French Directory and on Peppol. [Migrations](/guides/fr-pa-migrations) move a party's Annuaire address between Plateformes Agréées. Invopop answers other platforms' requests to take over your parties, after asking the company, and requests the handover when you register an address another platform holds. > [card] [Migrations](/guides/fr-pa-migrations) > > Answer takeover requests from other PAs and take over lines from them. [Invoicing](/guides/fr-pa-invoicing) in France covers exchanges where both parties are registered in the Annuaire. A single GOBL invoice can generate and send any of the formats allowed in France (UBL, CII, Factur-X), with the required copy reported automatically to the PPF. > [card] [Invoicing](/guides/fr-pa-invoicing) > > Send and receive B2B invoices via Peppol with PPF reporting. [Reporting](/guides/fr-pa-reporting) (Flux 10) covers everything outside regulated e-invoicing: B2C sales, cross-border B2B, and any flow where one party isn't in the Annuaire. You record each invoice and payment, Invopop generates a Flux 10 XML for each closed reporting window and sends it to the PPF. > [card] [Reporting](/guides/fr-pa-reporting) > > Periodic e-reporting of B2C and non-regulated B2B transactions. [Status](/guides/fr-pa-status) updates carry the lifecycle and payment state of domestic B2B invoices (CDAR): acknowledged, accepted, disputed, refused, paid. Each is built as a GOBL document and exchanged between PAs over Peppol, with the mandatory codes (notably `210` refused and `212` paid) also forwarded to the PPF. > [card] [Status](/guides/fr-pa-status) > > Send, receive, and derive lifecycle status updates (CDAR). [Public sector](/guides/fr-pa-b2g) invoicing (B2G) uses the same send workflow as B2B. The record step recognises a public entity from its Annuaire line, and the workflow delivers the invoice to Chorus Pro instead of Peppol, with the F1 copy reported to the PPF as usual. Public entities can also invoice you through the same channel (G2B). > [card] [Public sector](/guides/fr-pa-b2g) > > Send invoices to French public entities through Chorus Pro, and receive theirs. [Directory lookup](/guides/fr-lookup) queries the French Annuaire to confirm whether a party is registered before sending — useful for branching between regulated and non-regulated flows. Look up a party by its SIREN or by its electronic address. > [card] [Directory lookup](/guides/fr-lookup) > > Check whether a SIREN or electronic address is registered in the Annuaire. ## Timeline Reception is universal from 1 September 2026 for all companies regardless of size, while issuance splits by band: | Company size | Size criteria | Must receive | e-invoicing and e-reporting | | - | - | - | - | | Large | 5,000+ staff, or turnover > €1.5bn / balance sheet > €2bn | 1 Sep 2026 | 1 Sep 2026 | | Mid-sized (ETI) | 250–5,000 staff and turnover €50M–1.5bn / balance sheet €43M–2bn | 1 Sep 2026 | 1 Sep 2026 | | SME (PME) | under 250 staff and turnover \< €50M or balance sheet \< €43M | 1 Sep 2026 | 1 Sep 2027 | | Micro (TPE) | subset of the SME band, at the smallest end | 1 Sep 2026 | 1 Sep 2027 | Because the obligations kick in separately, most SMEs and micro-businesses only need an Annuaire line and an inbox until September 2027 — see [Registering without e-reporting](/guides/fr-pa-registration#registering-without-e-reporting). View our [compliance timeline for France](/timelines/france). ## Key concepts | | | | - | - | | **Annuaire** | The French e-invoicing directory where parties must be registered to participate in regulated e-invoicing flows. Not to be confused with the Peppol Directory. | | **PPF** | Portail Public de Facturation — the French government system that receives mandatory invoice data and lifecycle updates. Invopop handles all communications with the PPF automatically. | | **Regulated Flow** | An invoice exchange where both the sender and receiver are registered in the Directory. These follow the complete French e-invoicing process including Peppol transmission and PPF reporting. | | **Non-Regulated Flow** | An invoice exchange where only one party is registered in the Directory. Invoices are stored for e-reporting to the PPF but may not be transmitted via Peppol. | | **E-reporting** | Periodic reporting to the PPF covering non-regulated flows and B2C transactions. | | **CDAR** | Cross Domain Acknowledgement and Response. The format used for lifecycle status updates ("cycle de vie") in France, communicated between parties and to the PPF. | | **Fifth Corner** | The tax authority in the Peppol exchange model. Corners 1–4 are sender, sender's PA, receiver's PA, and receiver; the fifth corner is the tax authority that receives a copy of the invoice for regulated flows. In France this is the PPF. | | **F1 Invoice** | Simplified UBL format used to forward the invoice to the fifth corner (the tax authority, i.e. the PPF) for regulated flows. Part of e-invoicing, not e-reporting. Generated automatically by Invopop. | ## Flows and obligations In France's e-invoicing reform, "flux" are the officially numbered message flows defined in the external specifications that structure how invoices and tax data move between businesses, their plateformes agréées (PAs), and the administration. This table presents the flows relevant to an integration with Invopop: | Flux | What it carries | Guide | | - | - | - | | 2 | The structured invoice exchanged between the supplier's and the buyer's PAs | [Invoicing](/guides/fr-pa-invoicing) | | 6 | Lifecycle statuses (déposée, rejetée, refusée, encaissée) plus optional statuses including payment details | [Status](/guides/fr-pa-status) | | 10.1 | International B2B transaction data where either business is French | [Reporting](/guides/fr-pa-reporting) | | 10.2 | Payment data on those international B2B transactions | [Reporting](/guides/fr-pa-reporting) | | 10.3 | Aggregated B2C transaction data (e.g., daily sales totals per rate) | [Reporting](/guides/fr-pa-reporting) | | 10.4 | Aggregated B2C payment data | [Reporting](/guides/fr-pa-reporting) | The reform splits every transaction into one of two regimes, and the split is entirely determined by *who the counterparty* is and where they sit. This tells us the flow that corresponds to the transaction: | Issuer → counterparty | Flows | Obligation | | - | - | - | | French company → French company (VAT taxable) | 2 (The structured invoice exchanged between the supplier's and the buyer's PAs) 6 (Lifecycle statuses (déposée, rejetée, refusée, encaissée) plus optional statuses including payment details) | [Invoicing](/guides/fr-pa-invoicing) and [Status](/guides/fr-pa-status) | | Foreign company with a French permanent establishment → French company | 2 (The structured invoice exchanged between the supplier's and the buyer's PAs) 6 (Lifecycle statuses (déposée, rejetée, refusée, encaissée) plus optional statuses including payment details) | [Invoicing](/guides/fr-pa-invoicing) [Status](/guides/fr-pa-status) | | French company → EU company | 10.1 (International B2B transaction data where either business is French) 10.2 (Payment data on those international B2B transactions) | [Reporting](/guides/fr-pa-reporting) | | French company → Non-EU company | 10.1 (International B2B transaction data where either business is French) 10.2 (Payment data on those international B2B transactions) | [Reporting](/guides/fr-pa-reporting) | | French company → Foreign taxable person, non-established (even if FR-VAT-registered) | 10.1 (International B2B transaction data where either business is French) 10.2 (Payment data on those international B2B transactions) | [Reporting](/guides/fr-pa-reporting) | | EU company → French company | 10.1 (International B2B transaction data where either business is French) 10.2 (Payment data on those international B2B transactions) | [Reporting](/guides/fr-pa-reporting) by the French buyer | | Foreign company (non-EU) → French company | 10.1 (International B2B transaction data where either business is French) 10.2 (Payment data on those international B2B transactions) | [Reporting](/guides/fr-pa-reporting) by the French buyer | | French company → French non-taxable legal person (not VAT-registered) | 10.3 (Aggregated B2C transaction data (e.g., daily sales totals per rate)) 10.4 (Aggregated B2C payment data) | [Reporting](/guides/fr-pa-reporting) | | French company → French consumer | 10.3 (Aggregated B2C transaction data (e.g., daily sales totals per rate)) 10.4 (Aggregated B2C payment data) | [Reporting](/guides/fr-pa-reporting) | | French company → EU / non-EU consumer | 10.3 (Aggregated B2C transaction data (e.g., daily sales totals per rate)) 10.4 (Aggregated B2C payment data) | [Reporting](/guides/fr-pa-reporting) | | Foreign non-established company (FR-VAT-registered) → French consumer / non-established taxable person | 10.3 (Aggregated B2C transaction data (e.g., daily sales totals per rate)) 10.4 (Aggregated B2C payment data) | [Reporting](/guides/fr-pa-reporting) by the foreign seller | | French company → French public entity (B2G) | 2 (The structured invoice, delivered to Chorus Pro instead of Peppol) 6 (Lifecycle statuses, with Chorus Pro's own codes kept as sent) | [Public sector](/guides/fr-pa-b2g) | | French public entity → French company (G2B) | 2 (The structured invoice, received from Chorus Pro) 6 (Lifecycle statuses you send back, deposited on Chorus Pro) | [Public sector](/guides/fr-pa-b2g#receiving-from-a-public-entity-g2b) | | Foreign company (no French SIREN) → French public entity | Chorus Pro direct submission | [Chorus Pro app](/guides/fr-chorus-pro) | ## Mandatory mentions Beyond the usual invoice data (parties, dates, line detail, VAT), the reform adds four *nouvelles mentions obligatoires* that every domestic B2B e-invoice must carry from 1 September 2026. | Mention | GOBL field | Notes | | - | - | - | | **Buyer's SIREN** (SIRET where the establishment matters) | `customer.tax_id` and `customer.identities[]` | Provide the `SIREN` or `SIRET` identity. Required for routing and enforced by `BR-FR-10/11`. | | **Delivery address** (country/address, when it differs from billing) | `delivery.receiver.addresses[]` | Required when the place of delivery differs from the customer's billing address. Omit it when they are the same. | | **Nature of the operation** (goods / services / both) | `tax.ext.fr-ctc-billing-mode` | Mandatory classification between `B*` = goods, `S*` = services or `M*` = mixed. | | **VAT on debits** (paiement de la TVA d'après les débits, when opted) | `tax.notes[]` with key `tax` | Carried as a legal-mention note. Add it only when the supplier has opted for VAT on debits. | ## FAQ Consult our [France FAQ](/faq/france) section. *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in France → # Public sector invoicing in France Source: https://docs.invopop.com/guides/fr-pa-b2g Send invoices to French public entities through Chorus Pro, and receive theirs, with the same PA workflows used for B2B. Invoices to French public entities (the State, local authorities, hospitals, public establishments) have had to go through **Chorus Pro**, the government's invoicing portal, since 2020. Under the 2026 reform, Chorus Pro becomes one more platform on the French Directory, listed under its own matricule, so a public entity is simply a customer whose Annuaire line points to it. That is what makes B2G invoicing in Invopop the same as B2B invoicing. A B2G invoice is [recorded](/guides/fr-pa-invoicing#sending) like any other, its F1 copy and `200` Déposée status reach the PPF unchanged, and the same [send workflow](#setup) handles every customer. Only delivery differs: the invoice goes to Chorus Pro instead of Peppol. Invopop holds the connection with Chorus Pro, so there is nothing to register on the public portal. This guide covers: * [Who this guide is for](#who-this-guide-is-for): French companies on the PA use this path; foreign entities use the standalone Chorus Pro app. * [How routing works](#how-routing-works): the record step decides whether a customer is a public entity, and the workflow branches on it. * [Setup](#setup): the send workflow with the public-sector branch. * [What a public buyer needs](#what-a-public-buyer-needs): the SIRET, service code and commitment number, and the limits Chorus Pro adds on top of the norm. * [Following the invoice](#following-the-invoice): the Chorus Pro lifecycle, delivered back to you as status documents. * [Receiving from a public entity (G2B)](#receiving-from-a-public-entity-g2b): public bodies can now invoice you through the same channel. * [Testing in sandbox](#testing-in-sandbox) and [example invoices](#example-invoices). ## Who this guide is for There are two ways to reach Chorus Pro through Invopop, and which one applies depends on the supplier, not the customer. | Supplier | Use | Why | | - | - | - | | **French company** with a SIREN, registered in the Annuaire through Invopop | This guide, with the [France app](/apps/france) | Invopop is the company's Plateforme Agréée. Chorus Pro is reached through the PA connection, with the F1 copy reported to the PPF as the mandate requires. | | **Foreign entity** without a French SIREN invoicing a French public body | The standalone [Chorus Pro app](/apps/choruspro-france) and its [supplier registration](/guides/fr-chorus-pro-supplier) and [issuing](/guides/fr-chorus-pro) guides | A company outside the French mandate has no Annuaire line. It submits directly to Chorus Pro with its own Chorus Pro credentials. | > [!WARNING] > > Don't combine the two. A French company that already uses the standalone Chorus Pro app should move its public-sector invoicing to the PA path described here, so that every domestic invoice is recorded and reported the same way. | - | Sandbox | Live | | - | - | - | | **Supplier** | Any party registered in the sandbox Annuaire | Party registered in the Annuaire through the [registration guide](/guides/fr-pa-registration) | | **Chorus Pro** | Qualification environment | Production | | **Annuaire** | Qualification directory | Production directory | ## Prerequisites * **A registered supplier**: follow the [registration guide](/guides/fr-pa-registration) to connect the France app and register the party in the Annuaire. The same registration serves B2B and B2G. * **The public entity's identifiers**: its SIRET and, where the entity requires them, a service code and a commitment number. The public entity gives you these; see [What a public buyer needs](#what-a-public-buyer-needs). * **The invoicing guide**: this page builds on the [Invoicing in France](/guides/fr-pa-invoicing) guide and assumes you know how recording, formats and the PPF copy work. ## How routing works You do not mark an invoice as B2G yourself. When the **Record outgoing document** step records an invoice, it looks the customer up in the Annuaire. A customer whose line is routed to Chorus Pro's public sphere, under matricule `9999`, is a public entity, and the invoice is flagged `b2g`. The flag is only set while the line is in force, so a party that leaves Chorus Pro stops being B2G. The **Is B2G?** step then reads that flag and answers `true` or `false`, so the workflow can branch on it the same way it branches on [Directory lookup](/guides/fr-lookup): | Result | Meaning | Deliver with | | - | - | - | | `true` | The customer's Annuaire line points to Chorus Pro | **Send to Chorus Pro** | | `false` | Everything else | **Send Peppol document** | Keep **Is B2G?** after the record step, which is where the answer comes from. For a document that has not been recorded, the step asks the Annuaire directly. Everything after the branch is shared: both paths **Forward document to PPF**. **1. Record** The invoice is validated against the French rules, the customer is checked in the Annuaire, and the invoice is flagged `b2g` when the customer is a public entity. The [Chorus Pro rules](#rules-checked-at-record) are applied at this point, so a breach is reported here rather than minutes later by Chorus Pro. **2. Is B2G?** Reads the flag and branches. **3. Send to Chorus Pro** Deposits the invoice with Chorus Pro and completes. What Chorus Pro and the public entity do with it comes back later as statuses. See [Following the invoice](#following-the-invoice). **4. Forward document to PPF** Sends the F1 copy and the `200` Déposée status to the PPF, exactly as for a B2B invoice. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). The **PPF send document (public sector)** template is the regular [send workflow](/guides/fr-pa-invoicing#sending) with the **Is B2G?** branch inserted after the record step. Use it in place of the regular one: it handles every customer, public or not, so you need only one send workflow. > [card] [PPF send document (public sector)](https://console.invopop.com/redirect/workflows/new?template=fr-pa-send-invoice-b2g) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json PPF send document (public sector) workflow theme={"system"} > { > "name": "PPF send document (public sector)", > "description": "Send an invoice via Chorus Pro or Peppol depending on the buyer, and record it with PPF", > "steps": [ > { > "id": "067bc16d-c1a7-11f1-8390-4eb134dbe674", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "067e5b0d-c1a7-11f1-a890-4eb134dbe674", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "067e5bad-c1a7-11f1-a27a-4eb134dbe674", > "name": "Document is an invoice?", > "provider": "silo.if", > "next": [ > { > "status": "NA", > "code": "true", > "steps": [ > { > "id": "067e5bf8-c1a7-11f1-a34e-4eb134dbe674", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "Peppol France CIUS v1", > "config": { > "attach_invoice_pdf": false, > "doc_type": "peppol-fr-cius", > "private": false, > "validate_ubl": false > } > } > ] > }, > { > "status": "NA", > "code": "false", > "steps": [ > { > "id": "067e5c2f-c1a7-11f1-a517-4eb134dbe674", > "name": "Generate CDAR Status", > "provider": "cii.generate", > "summary": "France CTC Flow 6 CDAR (lifecycle status/payment)", > "config": { > "attach_invoice_pdf": false, > "doc_type": "fr-ctc-cdar-flow6", > "validate_cii": false > } > } > ] > } > ], > "config": { > "expr": "doc['$schema'] endsWith 'bill/invoice'", > "scope": "env" > } > }, > { > "id": "067e5c5e-c1a7-11f1-9b94-4eb134dbe674", > "name": "Record outgoing document for e-invoicing", > "provider": "gov-fr.directory.record.outgoing" > }, > { > "id": "067e5ddf-c1a7-11f1-aff3-4eb134dbe674", > "name": "Is B2G?", > "provider": "gov-fr.chorus-pro.lookup", > "summary": "Chorus Pro for a public buyer, Peppol otherwise", > "next": [ > { > "status": "NA", > "code": "true", > "steps": [ > { > "id": "067e5daf-c1a7-11f1-a744-4eb134dbe674", > "name": "Send to Chorus Pro", > "provider": "gov-fr.chorus-pro.send", > "summary": "Deliver to the public sphere" > }, > { > "id": "067e5d67-c1a7-11f1-875f-4eb134dbe674", > "name": "Forward document to PPF", > "provider": "gov-fr.directory.forward" > } > ] > }, > { > "status": "NA", > "code": "false", > "steps": [ > { > "id": "067e5c7f-c1a7-11f1-96f3-4eb134dbe674", > "name": "Verify document can be sent", > "provider": "peppol.validate.endpoint", > "next": [ > { > "code": "true", > "steps": [ > { > "id": "067e5ca2-c1a7-11f1-a3ed-4eb134dbe674", > "name": "Send Peppol document", > "provider": "peppol.send" > }, > { > "id": "067e5cc1-c1a7-11f1-99dd-4eb134dbe674", > "name": "Forward document to PPF", > "provider": "gov-fr.directory.forward" > } > ] > }, > { > "code": "false", > "steps": [ > { > "id": "067e5ce6-c1a7-11f1-81bc-4eb134dbe674", > "name": "Forward document to PPF", > "provider": "gov-fr.directory.forward", > "summary": "Forward to PPF (déposée – non transmise)", > "config": { > "not_transmitted": true > } > } > ] > } > ] > } > ] > } > ] > }, > { > "id": "067e5d0b-c1a7-11f1-af09-4eb134dbe674", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `completed`{.state .completed}", > "config": { > "state": "completed" > } > } > ], > "rescue": [ > { > "id": "067e6072-c1a7-11f1-ba65-4eb134dbe674", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!NOTE] > > The recommended approach for running jobs is to perform two steps: first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), then [create a job](/api-ref/transform/jobs/create-a-job-post). The workflow is shared with [status documents](/guides/fr-pa-status). The **Is B2G?** step resolves a status or payment to the invoice it answers, so it follows the same channel as that invoice. ## What a public buyer needs A B2G invoice is a regular [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) invoice. Chorus Pro needs a few more things on it to find the public entity and route the invoice to the right department. | Data | GOBL field | Notes | | - | - | - | | **Customer SIRET** | `customer.identities[]` with `type` `SIRET` | Chorus Pro identifies public entities by SIRET, not SIREN. The add-on tags it with ISO scheme `0009` and derives the SIREN. Rule `BR-FR-CPRO-10`. | | **Supplier SIRET** | `supplier.identities[]` with `type` `SIRET` | Same reason. A supplier giving only a SIREN is refused by Chorus Pro (`BR-FR-CPRO-09`). | | **Service code** (*code service*, also called *code routage*) | `customer.identities[]` with `key` `private-id` | The department within the public entity. Many entities require it; the add-on tags it with scheme `0224`. | | **Commitment number** (*numéro d'engagement juridique*) | `ordering.purchases[0].code` | The purchase order reference, BT-13. Required by entities that work with commitments. 50 characters or fewer. | | **Contract reference** (*numéro de marché*) | `ordering.contracts[0].code` | BT-12. 50 characters or fewer. | | **Billing mode** | `tax.ext.fr-ctc-billing-mode` | As for B2B. `S3` (subcontracting with direct payment) is specific to public contracts and not yet supported. | Ask the public entity which of the service code and commitment number it requires. Chorus Pro publishes each entity's requirements, and an invoice missing a required one is rejected by Chorus Pro after deposit. > [!TIP] > > Invopop cannot yet check whether a given public entity requires a service code or a commitment number, because the Annuaire does not carry that information. Collect it from the buyer when you take the order. ### Rules checked at record Chorus Pro adds its own management rules on top of the norm, `BR-FR-CPRO-01` to `50`, and they apply only to invoices bound for the public sphere. None of them is covered by the standard schematrons, so without a local check the first time you hear of a breach is Chorus Pro's rejection, which names a rule but not the field. Once an invoice is flagged `b2g`, the record step enforces the rules below and reports **every** breach at once, so a single round of fixes is enough. | Group | Rules | What is checked | | - | - | - | | Length caps | `02`, `14`, `15`, `30`–`37`, `39`, `41`–`44` | Invoice number and preceding invoice reference 20 characters; contract, purchase order and supporting document references 50; party names and trade names 99; address line and city 400; notes, item descriptions and payment terms 1024; attachment file names 50 | | Identifiers | `09`, `10`, `17` | Supplier, customer and payee each give a SIRET | | Cardinality | `19`, `20`, `26`, `27` | Fewer than one million lines, one preceding invoice reference, one contact per party | | Payment | `48`, `49` | IBAN of exactly 27 characters, counted as written, so no spaces; BIC of 8 to 11 characters | | Billing framework | `24`, `47` | `S5` is refused, as are the multi-vendor modes `B8`, `S8` and `M8` | The IBAN rule is the one that catches most people. Chorus Pro counts the IBAN as written, so `FR76 3000 6000 0112 3456 7890 189` is 33 characters and is refused. Write it without spaces. Rules that depend on data Invopop does not hold (whether the entity requires a service code or commitment number, `11` to `13`), that the norm itself marks as unverifiable, or that turn on the `S3` billing mode are not checked locally and remain enforced by Chorus Pro. ## Following the invoice **Send to Chorus Pro** deposits the invoice and completes. It does not wait for Chorus Pro. From there Chorus Pro walks the invoice through its own lifecycle, which is richer than the PPF's accepted or rejected pair, and every status it applies reaches you as a status document, the way a B2B customer's statuses arrive over Peppol: Chorus Pro addresses it to your Annuaire line, and it is imported and recorded against the invoice like any [received status](/guides/fr-pa-invoicing#receiving). | Status | Meaning | | - | - | | 202 Reçue | Chorus Pro has received the invoice | | 203 Mise à disposition | The invoice is available to the public entity | | 204 Prise en charge, 205 Approuvée | The entity is processing or has approved it | | 208 Suspendue | The entity needs more information | | 209 Complétée | The missing information was supplied | | 210 Refusée, 213 Rejetée | Refused by the entity, or rejected by Chorus Pro's own checks | | 211 Mandatée, 212 Mise en paiement | Payment ordered, then paid | Statuses from Chorus Pro run through the workflow selected as the **Chorus Pro workflow** in the France app's configuration, the same one that [receives invoices from public entities](#receiving-from-a-public-entity-g2b). It starts with **Receive document from Chorus Pro**, which imports the document, followed by the record step. Without it, Chorus Pro's statuses are not delivered to your workspace. > [card] [PPF receive document (Chorus Pro)](https://console.invopop.com/redirect/workflows/new?template=fr-pa-receive-chorus-pro) > > Add to my workspace → A `213` carries Chorus Pro's reasons on its lines, each naming the field at fault, for example a supplier SIRET Chorus Pro does not know or a service code the entity requires. If the reason is one of the [rules checked at record](#rules-checked-at-record), the invoice was flagged `b2g` after the fact; otherwise fix the field it names and send a new invoice. > [!NOTE] > > For an invoice you issued, the public entity drives the lifecycle through Chorus Pro. Statuses you build on such an invoice are not forwarded: Chorus Pro rules on the invoices it receives, and Invopop does not answer them. Statuses you send only travel to Chorus Pro for invoices a public entity sent **to you**, described next. ## Receiving from a public entity (G2B) G2B is the same exchange in reverse: a French public entity issues an invoice to your business. It is new with the 2026 reform. Public bodies previously had no route to invoice the private sector electronically. The path differs from a B2B invoice in where it comes from, not in what you do with it: 1. The public entity submits the invoice to Chorus Pro, in UBL or Factur-X. 2. Chorus Pro delivers it to Invopop, addressed to the Annuaire line your party is registered under. That line decides which workspace receives it, so the party must be [registered](/guides/fr-pa-registration) before any public entity can invoice it. 3. Invopop starts the workflow selected as the **Chorus Pro workflow** in the France app's configuration, the [PPF receive document (Chorus Pro)](https://console.invopop.com/redirect/workflows/new?template=fr-pa-receive-chorus-pro) template. Its **Receive document from Chorus Pro** step converts the invoice to GOBL, and the record step records it against your party with the same controls as an inbound Peppol invoice. From there it behaves like any other received invoice: it appears in the France dashboard, and you answer with [status updates](/guides/fr-pa-status) as it is accepted, disputed or paid. Build each status as you would for a B2B invoice and run it through the send workflow. **Is B2G?** resolves it to the invoice it answers, and **Send to Chorus Pro** deposits it on the public circuit. The statuses you send back follow the AFNOR norm rather than Chorus Pro's own vocabulary. Chorus Pro translates its internal codes before they reach you, so a rejection arrives as `210` and its own motifs arrive as their AFNOR equivalents. ## Testing in sandbox A sandbox workspace delivers B2G invoices to Chorus Pro's **qualification environment**, and the record step reads the **qualification Annuaire** to decide whether a customer is a public entity. Both are separate from production, so a public entity you find in the production Annuaire is unknown there, and the invoice routes to Peppol instead. To exercise the Chorus Pro branch in sandbox, use a customer registered as a public entity in the qualification Annuaire. [Contact us](https://invopop.com/contact) for test buyer details if you don't have any. ## Example invoices > [accordion] PA B2G invoice (public buyer) > > An invoice from a French company to a French public entity. It uses the same [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on as a domestic B2B invoice, with the data Chorus Pro needs on top. > > Notice: > > * both parties give a `SIRET` identity, which the add-on tags with `iso-scheme-id` `0009` and from which it derives the `SIREN`, > * the customer carries a `private-id` identity with the public entity's service code, which the add-on tags with scheme `0224`, > * `ordering.purchases[0].code` holds the *numéro d'engagement juridique* and `ordering.contracts[0].code` the contract reference, each 50 characters or fewer, > * the invoice number is 20 characters or fewer and the IBAN is written as 27 characters without spaces, as Chorus Pro requires. > > ```json PA B2G invoice (public buyer) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2026-00042", > "issue_date": "2026-10-14", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIRET", > "code": "73282932000009" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Commune Example", > "tax_id": { > "country": "FR", > "code": "356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000000006" > }, > { > "key": "private-id", > "code": "SERVICE01" > } > ], > "addresses": [ > { > "num": "1", > "street": "Place de la Mairie", > "locality": "Example", > "code": "75002", > "country": "FR" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ] > }, > "ordering": { > "purchases": [ > { > "code": "EJ2026-0001" > } > ], > "contracts": [ > { > "code": "MARCHE-2026-12" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Prestation de conseil", > "price": "150.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2026-11-13", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "bic": "AGRIFRPP" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2026-00042", > "issue_date": "2026-10-14", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "type": "SIRET", > "code": "73282932000009", > "ext": { > "iso-scheme-id": "0009" > } > }, > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Commune Example", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000000006", > "ext": { > "iso-scheme-id": "0009" > } > }, > { > "key": "private-id", > "code": "SERVICE01", > "ext": { > "iso-scheme-id": "0224" > } > }, > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "1", > "street": "Place de la Mairie", > "locality": "Example", > "code": "75002", > "country": "FR" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Prestation de conseil", > "price": "150.00", > "unit": "h" > }, > "sum": "1500.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1500.00" > } > ], > "ordering": { > "contracts": [ > { > "code": "MARCHE-2026-12" > } > ], > "purchases": [ > { > "code": "EJ2026-0001" > } > ] > }, > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2026-11-13", > "amount": "1800.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "bic": "AGRIFRPP" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "1500.00", > "total": "1500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1500.00", > "percent": "20%", > "amount": "300.00" > } > ], > "amount": "300.00" > } > ], > "sum": "300.00" > }, > "tax": "300.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > }, > "notes": [ > { > "key": "payment", > "text": "Conditions de paiement selon les conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` ## FAQ Invoicing questions > [accordion] How do I configure my workspace for French invoicing? > > Two channels depending on the recipient: B2G uses Chorus Pro (CII format); B2B from September 2026 uses the Plateforme Agréée model (UBL, CII, or Factur-X via Peppol). Invopop is an approved PA — install the France PA app for B2B and the Chorus Pro app for B2G. > [accordion] How can I view an XML attached to a PDF? > > In Factur-X PDFs, the XML file is embedded within the PDF itself. To extract and view it, use the `Attachments` section in Adobe Acrobat Reader, or a tool like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/). > [accordion] Is Invopop ready for the September 2026 mandate? > > Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. Registration, invoicing, and lifecycle status are available today; e-reporting (Flow 10) is in active development. See the [PA hub readiness matrix](/guides/fr-pa) for the current state. > [accordion] What GOBL addons are required for France PA? > > The base [FR tax regime](https://docs.gobl.org/regimes/fr) plus the EN 16931 profile. For Peppol delivery, `peppol-bis-v3`. The forthcoming `fr-ctc-flow10-v1` addon covers e-reporting payloads — separate from the e-invoicing flow. > [accordion] Is a self-billed invoice a different document type in France? > > No. Most Peppol countries treat self-billing as a document type of its own, but France models it as a **standard invoice** with the `untdid-document-type` extension set to `389`. In GOBL you never set the code yourself: add the `self-billed` tag and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1#standard-self-billed) add-on applies it automatically. See [Self-billing](/guides/fr-pa-invoicing#self-billing) for the full flow. > [accordion] How do I send a debit note in France? > > A debit note that is subject to VAT and carries all the mandatory invoice information is sent as a regular invoice: set `type` to `standard` and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on sets `untdid-document-type` to `380`. Don't use `corrective` (`384`) unless the document corrects a previous invoice. A debit note that isn't an invoice is out of scope, so there is nothing to send. See the [debit note example](/guides/fr-pa-invoicing#pa-b2b-debit-note-treated-as-invoice). > [accordion] Why was my VAT-exempt invoice never sent to the PPF? > > Transactions exempt under articles 261 to 261 E of the CGI — insurance, medical care, education and the rest of that range — sit outside the e-invoicing mandate, and the PPF rejects them if you deposit one. When an invoice's whole VAT breakdown is exempt and carries a `VATEX-FR-CGI261*` code, Invopop records it but sends no F1 and raises no lifecycle status, and the dashboard shows it as Exempt. Keep issuing the invoice to your customer as usual. An invoice that mixes exempt and taxable lines is still sent normally, and so is `VATEX-FR-FRANCHISE`. See [VAT-exempt invoices](/guides/fr-pa-invoicing#vat-exempt-invoices). > [accordion] How many pops does a B2B e-invoice through France PA cost? > > Each invoice or lifecycle status sent through France PA costs **5 pops**: 1 pop for the conversion to UBL/CII, 2 pops to send it over Peppol, 1 pop to forward it to the PPF, and 1 pop for the silo entry. See [Pops & pricing](/get-started/pricing) for how pops work. > [accordion] What does the record document step check against the Annuaire? > > Before an invoice is recorded, the record step (**Record outgoing document for e-invoicing** when sending, **Record incoming document for e-invoicing** when receiving) looks up both the supplier and the customer SIREN in the Annuaire. What each party must satisfy depends on the workflow's role: > > | Role | Annuaire state | Outcome | > | - | - | - | > | Both | The SIREN has no effective entry | **Rejected** | > | Receiving | The SIREN has at least one effective entry | **Accepted** | > | Sending | The SIREN's only entry is the PPF's default line (matricule `9998`) | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches one of the SIREN's entries | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches none of the SIREN's entries | **Rejected** | > > Sandbox invoices skip the Annuaire check entirely. > [accordion] What should I do if the customer isn't registered in the Annuaire? > > Don't block the sale. An exchange where only one party has an > effective Annuaire entry is a > [non-regulated flow](/guides/fr-pa#key-concepts): it leaves > e-invoicing (flux 2) and is covered by > [e-reporting](/guides/fr-pa-reporting) (flux 10) instead. > > In practice: > > * Run a [Directory lookup](/guides/fr-lookup) against the > customer's SIREN before you generate the invoice — ideally in a > separate validation workflow run against customer data, so you > can prompt them to fix their registration ahead of time. > * If the SIREN has no effective entry, route the invoice through > your reporting workflow rather than the PA send workflow. > * If it slips through, the send workflow degrades rather than > failing: the **Verify document can be sent** step branches and > forwards the invoice to the PPF as *déposée – non transmise*. > > A missing entry is common and not necessarily an error. A SIREN > visible in the public > [annuaire-entreprises](https://annuaire-entreprises.data.gouv.fr) > registry is not the same as an effective entry in the DGFiP > Annuaire, which only covers entities in scope of the mandate. It > can also be absent because the buyer hasn't yet appointed a PA, or > because their tax records don't match. > [accordion] Should I check the Annuaire at order time or at invoice time? > > Both, for different reasons. A lookup at order or onboarding time > is a data-quality check: it lets you warn the customer and get > their SIREN or PA sorted before invoicing. A lookup at invoice > time is the one that decides the flow, because registrations are > added and withdrawn continuously and a party found at checkout may > no longer be routable days later (and vice versa). > > Treat the early result as advisory, resolve again at generation, > and store the resolved electronic address on the transaction — > the routing address isn't always the bare SIREN. See > [Directory lookup](/guides/fr-lookup). > [accordion] How do I know whether an invoice is B2G? > > You don't decide it yourself. When the invoice is recorded, Invopop looks the customer up in the Annuaire: a party whose line is routed to Chorus Pro is a public entity, and the invoice is marked B2G. The **Is B2G?** workflow step reads that answer and branches to **Send to Chorus Pro** instead of Peppol. See the [public sector guide](/guides/fr-pa-b2g). > [accordion] Do I need a Chorus Pro account to invoice French public entities? > > Not if your company has a French SIREN and is registered in the Annuaire through Invopop. Invopop holds the connection with Chorus Pro, so B2G invoices use the same [send workflow](/guides/fr-pa-b2g#setup) as any other French invoice. Only foreign entities without a French SIREN still go through the standalone [Chorus Pro app](/apps/choruspro-france), which requires Chorus Pro credentials. > [accordion] Where do I put the service code and the numéro d'engagement on a B2G invoice? > > The service code (*code service* or *code routage*) is a `private-id` identity on the customer, and the commitment number (*numéro d'engagement juridique*) is the purchase order reference in `ordering.purchases[0].code`. Both are supplied by the public entity. The [public sector guide](/guides/fr-pa-b2g#what-a-public-buyer-needs) lists every field. Receiving questions > [accordion] How do I import received invoices in France? > > Register the recipient with Invopop as their Plateforme Agréée. Inbound documents (UBL, CII, Factur-X) are converted to GOBL and stored in the Expenses folder. Chorus Pro inbound flow is separate and routes via the Chorus Pro app. > [accordion] How does Invopop convert received French invoices into GOBL? > > UBL via [`gobl.peppol`](https://github.com/invopop/gobl.peppol); CII and Factur-X via [`gobl.cii`](https://github.com/invopop/gobl.cii). The original structured XML (or PDF/A-3 with embedded XML) is preserved as a silo entry attachment. > [accordion] How do I import received invoices via France PA? > > Register the recipient via Invopop as their PA. Inbound UBL/CII/Factur-X documents are routed to the configured Import workflow and become GOBL silo entries. Lifecycle status updates (CDAR) feed back to the issuer through the same channel. > [accordion] What format do received France PA invoices arrive in? > > UBL, CII, or Factur-X (PDF with embedded CII XML), all conforming to EN 16931 and the French CTC profile. Invopop preserves the original and exposes the GOBL conversion. > [accordion] Can I receive invoices at more than one platform (PDP) for the same company? > > Yes. A single company can be reachable at several destinations by registering different routing identifiers (electronic addresses) in the Annuaire — one per PDP or inbox. Invoices addressed to a given identifier are delivered to the platform registered against it, so you can route some invoices to Invopop and others to a different PDP (for example a travel-and-expense tool) for the same SIREN. > > The Annuaire supports several address formats that map to increasingly granular destinations within the same company: > > * `SIREN` — the company as a whole. > * `SIREN_SIRET` — a specific establishment. > * `SIREN_SIRET_ROUTINGCODE` — a site, department, or workflow within an establishment. > * `SIREN_SUFFIX` — a custom routing suffix. > > Give each PDP or inbox a distinct identifier and share the matching address with each issuer, so their invoices reach the intended destination. You can [look up an electronic address](/guides/fr-lookup) in the Annuaire to confirm where it currently routes. > [accordion] What is checked before a received invoice is recorded? > > An invoice arriving from another platform goes through three controls, run in the order the PPF applies them: > > * **Syntax** — the invoice XML against the Flux 2 schematron for its syntax. > * **Addressing** — both parties carry a SIREN registered in the Annuaire, the transport addresses belong to the parties the invoice names, and the invoice is addressed to a party registered in your workspace. > * **Unicity** — the invoice is not already recorded for this party, number and year. > > An invoice that passes every control is recorded on the receiving side. Only invoices are validated this way; incoming lifecycle statuses are simply recorded. > [accordion] What reason does a rejected invoice come back with? > > Each control rejects under its own CDAR motif, carried on the [`213` Rejetée](/guides/fr-pa-status#issued-by-the-platform) status returned to the platform that sent the invoice: > > * `REJ_SEMAN` — *rejet pour erreur sémantique*, when the invoice fails the Flux 2 schematron. > * `ADR_ERR` — *adresse de facturation électronique erronée*, when the addressing control fails. > * `REJ_UNI` — *rejet sur contrôle unicité*, when the invoice is already recorded. More available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in France → # Invoicing in France Source: https://docs.invopop.com/guides/fr-pa-invoicing Send and receive B2B invoices over Peppol with automatic PPF reporting. The France PA invoicing flow covers regulated B2B exchanges where both parties are registered in the French Directory. All other scenarios are handled by the [e-reporting](/guides/fr-pa-reporting) (flux 10) flow. This guide walks through how to implement e-invoicing obligations in France: * [Workflows](#workflows): sending and receiving workflows for French documents (payments, statuses and invoices). * [Sending](#sending): recording the invoice, generating the format, transmitting over Peppol, and forwarding the F1 copy to the PPF. * [Receiving](#receiving): detecting the inbound format, importing it into GOBL, and recording it against your registered party — or rejecting it with a `213`. * [Invoice formats](#invoice-formats): UBL, CII, and Factur-X and how to choose between them. * [Public sector](#public-sector-b2g-and-g2b): invoices to public entities travel over Chorus Pro instead of Peppol — see the [public sector guide](/guides/fr-pa-b2g). * [Self-billing](#self-billing): how *autofacturation* maps onto the same send and receive workflows using the `self-billed` tag. * [VAT-exempt invoices](#vat-exempt-invoices): why an invoice exempt under articles 261 to 261 E is recorded but never sent to the PPF. * [Reading submitted invoices](#reading-submitted-invoices): follow every sent and received invoice, and its PPF state, from the France dashboard. * [Example invoices](#example-invoices): minimal GOBL documents and their built versions, ready to paste into the GOBL builder. ## Workflows These workflows are shared between invoice and [status documents](/guides/fr-pa-status). The same workflow processes the different schemas and will perform different actions depending on the document type. ### Sending The send workflow records the invoice for compliance, generates the chosen format, transmits it to the receiver’s PA over Peppol, and forwards the F1 copy to the PPF. The mandatory `200` Déposée status is generated when the invoice is recorded and transmitted to the PPF together with the F1. The **Record outgoing document for e-invoicing** step validates SIRENs and checks both parties against the Annuaire. Documents where either side is missing are rejected and should branch into the [reporting flow](/guides/fr-pa-reporting) for non-regulated transactions. It also sets aside invoices that fall outside the mandate — see [VAT-exempt invoices](#vat-exempt-invoices) below. The **Forward document to PPF** step transmits to the PPF the F1 copy of the invoice together with its `200` Déposée status, created when the invoice was recorded. When the step's **Deposited and not transmitted** toggle is enabled, the status carries the `NON_TRANSMISE` reason and reports a *déposée – non transmise* instead of the standard *déposée*. This should be used when the recipient has no active receiving address. Gate that branch on the Peppol [Validate endpoint](/guides/peppol#validating-the-customer-endpoint) action: when it returns `false`, the invoice can't be delivered over Peppol and the workflow should route into a forward step configured as not transmitted. For invoices, the **Forward document to PPF** step stays queued until the PPF has acknowledged both the F1 copy and the `200` status, and completes only once the PPF has accepted both. If the PPF rejects either, the step fails and the job's [faults](/api-ref/transform/jobs/fetch-a-job#response-faults) carry the PPF's reasons. A job that gets past this step, or a workflow state set after it, therefore tells you through the API that the invoice is on record with the PPF. The [E-Invoicing Flow 2](#reading-submitted-invoices) tab shows the same outcome per invoice. > [card] [PPF send invoice](https://console.invopop.com/redirect/workflows/new?template=fr-pa-send-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json PPF send document workflow theme={"system"} > { > "name": "PPF send document", > "description": "Send an invoice, status or payment via Peppol and record it with PPF", > "steps": [ > { > "id": "72bc5070-1a17-11f1-a82f-e740c226ef51", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "f5aaed10-13c9-11f1-98a6-7dfa4cb26122", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "bf2c86b0-8127-11f1-9e29-9d2d7ab31d21", > "name": "Document is an invoice?", > "provider": "silo.if", > "next": [ > { > "status": "NA", > "code": "true", > "steps": [ > { > "id": "1b5850d0-13bf-11f1-bc3b-b99ec414b63d", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "Peppol France CIUS v1", > "config": { > "attach_invoice_pdf": false, > "doc_type": "peppol-fr-cius", > "private": false, > "validate_ubl": false > } > } > ] > }, > { > "status": "NA", > "code": "false", > "steps": [ > { > "id": "e30aa7b0-8127-11f1-9e29-9d2d7ab31d21", > "name": "Generate CDAR Status", > "provider": "cii.generate", > "summary": "France CTC Flow 6 CDAR (lifecycle status/payment)", > "config": { > "attach_invoice_pdf": false, > "doc_type": "fr-ctc-cdar-flow6", > "validate_cii": false > } > } > ] > } > ], > "config": { > "expr": "doc['$schema'] endsWith 'bill/invoice'", > "scope": "env" > } > }, > { > "id": "f1e30fa0-13c9-11f1-98a6-7dfa4cb26122", > "name": "Record outgoing document for e-invoicing", > "provider": "gov-fr.directory.record.outgoing" > }, > { > "id": "e7f2da30-9d6b-11f1-b2d5-9fc4b0622900", > "name": "Verify document can be sent", > "provider": "peppol.validate.endpoint", > "next": [ > { > "code": "true", > "steps": [ > { > "id": "062087a0-9d6c-11f1-b2d5-9fc4b0622900", > "name": "Send Peppol document", > "provider": "peppol.send" > }, > { > "id": "ff644960-9d6b-11f1-b2d5-9fc4b0622900", > "name": "Forward document to PPF", > "provider": "gov-fr.directory.forward" > } > ] > }, > { > "code": "false", > "steps": [ > { > "id": "03120f20-9d6c-11f1-b2d5-9fc4b0622900", > "name": "Forward document to PPF", > "provider": "gov-fr.directory.forward", > "summary": "Forward to PPF (déposée – non transmise)", > "config": { > "not_transmitted": true > } > } > ] > } > ] > }, > { > "id": "80a9d5e0-1a17-11f1-a82f-e740c226ef51", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `completed`{.state .completed}", > "config": { > "state": "completed" > } > } > ], > "rescue": [ > { > "id": "892a8070-1a17-11f1-a82f-e740c226ef51", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!NOTE] > > Both branches of the template, Peppol delivery and *déposée – non transmise*, end in the same **Set state** step, so a `completed` entry doesn't tell you whether the invoice was delivered to the buyer. To tell them apart in your system, replace that final step with a distinct state at the end of each branch (for example `sent` after **Send Peppol document** and `registered` after the not-transmitted forward), or add a [Send Webhook](/guides/webhooks) step to the `false` branch. The `NON_TRANSMISE` reason isn't exposed as an API field, and [states](/console/doc-states) are labels only: they have no impact on delivery or government validation. ### Receiving The receive workflow detects the inbound format, imports it into a GOBL document, and records it against your registered party. The same workflow handles UBL, CII, and Factur-X — the format-detection branch routes each payload to the correct importer. Before an invoice arriving from another platform is recorded, it goes through a series of controls and is rejected if invalid. Only invoices are automatically validated and rejected; incoming lifecycle statuses are simply recorded. An invoice that fails a control is not recorded. The workflow creates a silo entry holding a new 213 [*Rejetée*](/guides/fr-pa-status#issued-by-the-platform) under the motif of the control that turned the invoice down, and runs it through the rejection workflow. Set that workflow once for the whole workspace in **Incoming Document Rejection Workflow**, under the France app's configuration. Selecting a **Rejection Workflow** directly on the receiving step overrides it, so a flow that needs its own can have one. > [card] [PPF receive invoice](https://console.invopop.com/redirect/workflows/new?template=fr-pa-receive-invoice) > > Add to my workspace → Then point the Peppol app at it. In the [Console](https://console.invopop.com/), go to **Configuration** → **Apps**, click **Configure** on the Peppol app, and set **Incoming Workflow** to this workflow. Invoices and lifecycle statuses sent to your parties over Peppol only reach it through that setting (see the [Peppol setup](/guides/peppol#setup)). > [tab] Workflow > [tab] Code > > ```json PPF receive document workflow theme={"system"} > { > "name": "PPF receive document", > "description": "Receive an invoice, status or payment via Peppol, run the PPF recording controls over invoices, and raise a 213 for the ones that fail", > "steps": [ > { > "id": "db61c3c0-0fb5-11f0-b078-9fc456829eca", > "name": "Import Peppol document", > "provider": "peppol.import", > "next": [ > { > "status": "NA", > "code": "UBL", > "steps": [ > { > "id": "62e94570-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Import UBL document", > "provider": "ubl.import" > } > ] > }, > { > "status": "NA", > "code": "CII", > "steps": [ > { > "id": "6480ae50-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Import CII document", > "provider": "cii.import" > } > ] > }, > { > "status": "NA", > "code": "PDF", > "steps": [ > { > "id": "26ba4f80-1e2a-11f1-8bfb-2beaa1df60f0", > "name": "Import Factur-X PDF", > "provider": "cii.pdf.import" > } > ] > } > ], > "notes": "Receives the Peppol document and returns the format in a code (UBL/CII/PDF)" > }, > { > "id": "300f8fe6-c186-11f1-8514-9200076c507e", > "name": "Record incoming document for e-invoicing", > "provider": "gov-fr.directory.record.incoming", > "summary": "Validate and record incoming document" > }, > { > "id": "9c15ac60-7b8c-11f1-bf7f-e1e339678581", > "name": "Document is invoice?", > "provider": "silo.if", > "next": [ > { > "code": "true", > "steps": [ > { > "id": "ab7e1200-7b8c-11f1-bf7f-e1e339678581", > "name": "Set Folder", > "provider": "silo.folder", > "next": [], > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > "config": { > "folder": "expenses" > } > } > ] > } > ], > "summary": "", > "config": { > "expr": "$schema endsWith \"bill/invoice\"", > "scope": "doc" > }, > "notes": "Checks for bill/invoice document" > }, > { > "id": "dd14a3e0-0fb5-11f0-b078-9fc456829eca", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `received`{.state .received}", > "config": { > "state": "received" > } > } > ], > "rescue": [ > { > "id": "e109d2e0-0fb5-11f0-b078-9fc456829eca", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### Public sector (B2G and G2B) An invoice to a French public entity follows the same path as any other: it is recorded the same way, and its F1 copy and `200` Déposée status reach the PPF unchanged. Only delivery differs. It goes to **Chorus Pro** instead of Peppol, and the **Is B2G?** step decides that for you from the customer's Annuaire line. Public entities can also invoice you through the same channel. The **PPF send document (public sector)** template is this send workflow with that branch added, so it can replace it for every customer. The data a public buyer needs, the rules Chorus Pro adds, its lifecycle and sandbox testing are covered in the public sector guide. > [card] [Public sector](/guides/fr-pa-b2g) > > Send invoices to French public entities through Chorus Pro, and receive theirs. ### Invoice formats The PA specification accepts five formats. In practice the three base formats below cover essentially all real-world traffic, and Invopop supports both sending and receiving on all three. | Format | Notes | | - | - | | [UBL](/apps/oasis-ubl) | Peppol France CIUS — recommended default. Native Peppol format with the widest receiver support. | | [CII](/apps/uncefact-cii) | UN/CEFACT XML, semantically equivalent to UBL. Common in cross-border and industrial contexts. | | [Factur-X](/apps/uncefact-cii) | Hybrid PDF/A-3 with embedded CII. Identical to [ZUGFeRD](/guides/de-ubl) and aligned with EN 16931. | Switching formats is a workflow configuration away rather than a data-model change. You author and validate one GOBL invoice, and the workflow's generation step produces whichever format the counterparty expects. ### Billing mode Mandatory on every flux 2 and flux 10 B2B invoice and set in GOBL under `tax.ext.fr-ctc-billing-mode`. The prefix carries the nature of the operation: `B` goods (*biens*), `S` services, `M` mixed, plus a suffix for the payment context. | Goods | Services | Mixed | Payment context | | - | - | - | - | | `B1` | `S1` | `M1` | Standard submission (*dépôt d'une facture*) | | `B2` | `S2` | `M2` | Already-paid invoice | | — | `S3` | — | Subcontracting with direct payment (B2G only) | | `B4` | `S4` | `M4` | Final invoice after a down payment | | — | `S5` | — | Subcontractor invoice | | — | `S6` | — | Co-contractor invoice | | `B7` | `S7` | — | VAT already collected via e-reporting | | `B8` | `S8` | `M8` | Multi-vendor invoice | The full list of billing-mode codes is documented in the [`fr-ctc-flow2-v1` addon reference](https://docs.gobl.org/addons/fr-ctc-flow2-v1). Suffix `1` is the ordinary case — a plain invoice submitted for payment. Left unset, the add-on defaults the mode to `M1` (`M2` when fully paid) — pin the prefix that matches the nature of the operation, as the [example invoices](/guides/fr-pa-invoicing#example-invoices) do. ### VAT tax keys → UNTDID 5305 GOBL sets the `untdid-tax-category` (and `cef-vatex` exemption reason where one applies) from the tax key on each line — you pick the key, the add-on derives the codes: | GOBL tax key | Category | Exemption reason | Use for | | - | - | - | - | | `standard` | `S` | — | Domestic VAT at 20% / 10% / 5.5% / 2.1% | | `zero` | `Z` | — | Zero-rated supplies | | `exempt` | `E` | per note | Exempt operations (Art. 261 CGI — cite the article in a note) | | `reverse-charge` | `AE` | `VATEX-EU-AE` | Autoliquidation, e.g. building subcontracting | | `intra-community` | `K` | `VATEX-EU-IC` | Intra-EU B2B supplies | | `export` | `G` | `VATEX-EU-G` | Exports outside the EU | | `outside-scope` | `O` | `VATEX-EU-O` | Operations outside the scope of VAT | The full field-level rules (permitted document types, VAT percents, and party identifier schemes) are maintained in the add-on. ## Self-billing In self-billing (*also called autofacturation*), the **customer**, rather than the supplier, creates and issues the invoice on the supplier's behalf. The buyer's platform acts as the sending PA and triggers the flow 1 reporting to the PPF, while the supplier's platform receives the invoice. Invopop covers self-billing with the **same send and receive workflows described above**. The only difference is on the document, which carries the `self-billed` tag. > [!NOTE] > > France does not treat self-billing as a document type of its own: it is a standard invoice with the `untdid-document-type` extension set to `389`. The [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1#standard-self-billed) add-on derives that code from the `self-billed` tag automatically, so you never set it yourself. The parties keep their natural roles, the vendor remains the `supplier`, and the buyer the `customer`. When Invopop detects the tag, it acts on behalf of the customer and adjusts the flow automatically: * The **customer**, rather than the supplier, is validated as the registered party. * The invoice is delivered over Peppol to the **supplier's** PA. * The invoice is recorded and forwarded to the PPF as a self-billed invoice. France also requires the *autofacturation* note on the invoice, which appears as a `legal` note, as shown in the [example](#example-invoices) below. ### Step by step How each step of the self-billing use case maps to an action in Invopop, on both the buyer (sending) and supplier (receiving) side. Statuses are built and exchanged as described in the [status guide](/guides/fr-pa-status). | Step | Actor | In Invopop | | - | - | - | | 1 | Buyer | Creates a GOBL invoice tagged `self-billed`. | | 2 | Buyer's PA | The buyer's [send workflow](#sending) generates the UBL, CII, or Factur-X document and transmits it as normal. The mandatory `200` Déposée status, generated when the invoice is recorded, is transmitted to the PPF together with the flow 1 copy by the **Forward document to PPF** step. | | 3 | Seller's PA | The seller's [receive workflow](#receiving) imports the invoice and records it, resolving the seller's registered party as the `supplier`. | | 4 | Seller | Upon reception of payment, the seller builds a `bill.Payment` referencing the invoice, sends it to the customer and forwards it to the PPF. | | 5 | Buyer | The buyer's receive workflow imports the inbound CDAR and records it against the invoice. | Lifecycle statuses work as for any other invoice. Keep the invoice's `supplier` and `customer` on every status, whichever side sends it, and the platform works out the direction. ## VAT-exempt invoices The e-invoicing obligation in article 289 bis of the CGI does not cover transactions exempt from VAT under articles 261 to 261 E — insurance, medical care, education and the other exemptions in that range. Those invoices are outside the mandate and must not be deposited at the PPF, which rejects them outright. Invopop recognises them and stops before sending. An invoice is treated as exempt when **both** of the following hold: * every VAT category on the invoice is `E` (exempt) or `O` (outside scope), **and** * the breakdown carries one of the `VATEX-FR-CGI261*` exemption codes in the `cef-vatex` extension. When that happens: * the invoice is **recorded** in your workspace as usual, so it stays on the France dashboard and in the silo; * **no F1 copy** is sent to the PPF, and **no lifecycle status** is forwarded for it — neither the automatic *déposée* nor any status you record later, such as *Encaissée*. With no deposit, the PPF has nothing to record a status against; * the PPF status column shows Exempt; * the workflow completes successfully rather than failing. > [!NOTE] > > Issue the invoice to your customer exactly as before. Being outside the e-invoicing mandate changes nothing about your ordinary invoicing obligations, including the mandatory mention of the legal basis for the exemption required by article 242 nonies A of Annex II to the CGI. In GOBL that text comes from a `tax.note` with category `VAT`; the `cef-vatex` extension alone only produces the code. An invoice that mixes exempt and taxable lines stays **inside** the mandate and is deposited normally — the rule only applies when the whole VAT breakdown is exempt. Exemptions under other articles are unaffected too: `VATEX-FR-FRANCHISE` (*franchise en base*, article 293 B) is deposited as usual. E-reporting is a separate obligation and is not affected by this rule. If the transaction falls under [e-reporting](/guides/fr-pa-reporting) — a non-taxable customer, or a counterparty outside France — report it there as you normally would. ## Reading submitted invoices The France dashboard's **E-Invoicing Flow 2** tab lists every invoice the workspace has sent or received, newest first. In the Console, open the **Apps** view, select the **France** app, and switch to the **E-Invoicing Flow 2** tab. Each row shows the Invoice code, the Supplier and Customer SIREN, the PPF status of the mandatory F1 copy, the Role (Sender when you issued the invoice, Receiver when it arrived from a counterparty), the Silo entry that holds the invoice document, the Issue date, the Owner SIREN (the registered party the invoice belongs to), the document Type (standard, self-billed, corrected, credit note, …), and the Invoice ID. The PPF status column tracks the copy forwarded to the tax authority: | PPF status | Meaning | | - | - | | Ready | Recorded on the platform; nothing sent to the PPF yet. | | Pending | Sent; awaiting the PPF business acknowledgement. | | Accepted | The PPF accepted the document. | | Rejected | The PPF rejected the document. | | Exempt | Outside the mandate; nothing was sent, and nothing will be. | To get the same outcome through the API, read the send job: the **Forward document to PPF** step only completes once the PPF has accepted the F1 copy and the `200` status, and fails with the PPF's reasons otherwise (see [Sending](#sending)). > [!NOTE] > > Clicking the Invoice code looks up all associated statuses on the **E-Invoicing Flow 6** tab, filtered by the Invoice ID. Filter the table by **Supplier SIREN**, **Customer SIREN**, **Invoice code**, or **Invoice ID**. ## Example invoices Each example below pairs a hand-authored minimal GOBL invoice with the built version produced by `gobl build`. Paste either into the [GOBL builder](https://build.gobl.org) to preview the document, or use the minimal version as a starting point for your own integration. > [accordion] PA B2B invoice (domestic) > > A regulated B2B invoice between two French parties, both registered in the Annuaire. The [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on drives validation for the PA e-invoicing flow. > > Notice: > > * both parties carry a `SIREN` identity with `iso-scheme-id` `0002` and a `peppol` inbox under scheme `0225` so the workflow can route via Peppol, > * `fr-ctc-billing-mode` `S1` marks the standard submission (*dépôt*) of a services invoice; `untdid-document-type` `380` confirms the commercial invoice type, > * the `payment`, `payment-method`, and `payment-term` notes carry the French legal-mention text (penalty clauses, late-payment terms, early-payment discount), each tagged with the appropriate UNTDID 4451 subject code, > * `ordering.code` records the customer's purchase order reference. > > ```json PA B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2024-00001", > "issue_date": "2024-06-13", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ], > "telephones": [ > { > "num": "+33100200300" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "356000000" > }, > "identities": [ > { > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ], > "telephones": [ > { > "num": "+33100200400" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Services de conseil", > "price": "100.00", > "unit": "h" > }, > "discounts": [ > { > "percent": "10%", > "reason": "Remise fidelite" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "ordering": { > "code": "PO-2024-001" > }, > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ] > }, > "terms": { > "detail": "Paiement a 30 jours" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2024-00001", > "issue_date": "2024-06-13", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ], > "telephones": [ > { > "num": "+33100200300" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ], > "telephones": [ > { > "num": "+33100200400" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Services de conseil", > "price": "100.00", > "unit": "h" > }, > "sum": "1000.00", > "discounts": [ > { > "reason": "Remise fidelite", > "percent": "10%", > "amount": "100.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "900.00" > } > ], > "ordering": { > "code": "PO-2024-001" > }, > "payment": { > "terms": { > "notes": "Paiement a 30 jours" > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "900.00", > "total": "900.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "900.00", > "percent": "20%", > "amount": "180.00" > } > ], > "amount": "180.00" > } > ], > "sum": "180.00" > }, > "tax": "180.00", > "total_with_tax": "1080.00", > "payable": "1080.00" > }, > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] PA B2B invoice (building subcontracting, autoliquidation) > > A domestic B2B invoice for construction works supplied by a subcontractor to a taxable main contractor. Because both parties are French, this stays in the PA e-invoicing flow ([`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1)) even though it carries no VAT — it is not e-reporting. > > Notice: > > * the VAT combo uses the `reverse-charge` key, which sets `untdid-tax-category` `AE` and produces a `0.00` VAT total, with no tax rate or amount on the line, > * the `reverse-charge` note text is set explicitly to cite **article 283-2 nonies** (subcontracting); left to the regime default it would cite the generic article 283-1, > * `fr-ctc-billing-mode` is `S1` — a plain services submission: the reverse charge is carried entirely by the VAT key and note. `S5` (subcontractor invoice) applies only to subcontracting with payment delegation (*paiement direct*), which is not the case here, > * the reverse charge only applies where the customer is a taxable person — invoicing a non-taxable property owner would carry standard VAT instead. > > ```json PA B2B Reverse Charge Invoice (Subcontracting) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "$tags": [ > "reverse-charge" > ], > "type": "standard", > "series": "ST", > "code": "2026-00001", > "issue_date": "2026-09-15", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "380" > }, > "notes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "text": "Autoliquidation – TVA due par le preneur, article 283-2 nonies du CGI." > } > ] > }, > "supplier": { > "name": "Plomberie Dupont SARL", > "tax_id": { > "country": "FR", > "code": "303265045" > }, > "identities": [ > { > "type": "SIREN", > "code": "303265045", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "303265045" > } > ], > "addresses": [ > { > "num": "12", > "street": "Rue des Artisans", > "locality": "Lyon", > "code": "69003", > "country": "FR" > } > ] > }, > "customer": { > "name": "Bâtiment Martin SA", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "5", > "street": "Avenue de la Construction", > "locality": "Villeurbanne", > "code": "69100", > "country": "FR" > } > ] > }, > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2026-10-15", > "amount": "10000.00" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189" > } > ] > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Travaux de plomberie en sous-traitance", > "price": "10000.00" > }, > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "$tags": [ > "reverse-charge" > ], > "type": "standard", > "series": "ST", > "code": "2026-00001", > "issue_date": "2026-09-15", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "380" > }, > "notes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "text": "Autoliquidation – TVA due par le preneur, article 283-2 nonies du CGI.", > "ext": { > "untdid-tax-category": "AE" > } > } > ] > }, > "supplier": { > "name": "Plomberie Dupont SARL", > "tax_id": { > "country": "FR", > "code": "40303265045" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "303265045", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:303265045" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "303265045" > } > ], > "addresses": [ > { > "num": "12", > "street": "Rue des Artisans", > "locality": "Lyon", > "code": "69003", > "country": "FR" > } > ] > }, > "customer": { > "name": "Bâtiment Martin SA", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "5", > "street": "Avenue de la Construction", > "locality": "Villeurbanne", > "code": "69100", > "country": "FR" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Travaux de plomberie en sous-traitance", > "price": "10000.00", > "unit": "one" > }, > "sum": "10000.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "ext": { > "untdid-tax-category": "AE" > } > } > ], > "total": "10000.00" > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2026-10-15", > "amount": "10000.00" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "10000.00", > "total": "10000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "reverse-charge", > "ext": { > "untdid-tax-category": "AE" > }, > "base": "10000.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "10000.00", > "payable": "10000.00" > }, > "notes": [ > { > "key": "payment", > "text": "Conditions de paiement selon les conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] PA B2B credit note > > A credit note that partially cancels a previously issued PA invoice. The `preceding` array references the original invoice by series, code, and issue date. > > Notice: > > * `type` is `credit-note` and `untdid-document-type` is `381` (commercial credit note), > * the `preceding` block makes the link to the original invoice explicit — required for PA matching at the PPF. > > ```json PA B2B Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "type": "credit-note", > "series": "AV", > "code": "2024-001", > "issue_date": "2024-06-20", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "381" > } > }, > "preceding": [ > { > "type": "standard", > "series": "FAC", > "code": "2024-001", > "issue_date": "2024-06-13" > } > ], > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "356000000" > }, > "identities": [ > { > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Services de conseil - Annulation partielle", > "price": "100.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "type": "credit-note", > "series": "AV", > "code": "2024-001", > "issue_date": "2024-06-20", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2024-06-13", > "series": "FAC", > "code": "2024-001" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "381" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Services de conseil - Annulation partielle", > "price": "100.00", > "unit": "h" > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "200.00" > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "200.00", > "percent": "20%", > "amount": "40.00" > } > ], > "amount": "40.00" > } > ], > "sum": "40.00" > }, > "tax": "40.00", > "total_with_tax": "240.00", > "payable": "240.00" > }, > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] PA B2B debit note (treated as invoice) > > A debit note that is subject to VAT and carries all the mandatory invoice information, such as re-invoicing shared site costs to a joint-venture partner, must be sent as a regular e-invoice. Issue it as a standard invoice. > > Notice: > > * `type` is `standard`, so the add-on sets `untdid-document-type` to `380`. Flux 2 has no separate debit-note type, and [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) has no `debit-note` scenario, > * don't use `corrective` (`384`) unless the document actually corrects a previous invoice. A corrected invoice needs a `preceding` reference, > * debit notes that are not invoices (no VAT, just a statement of an amount owed) are out of scope for both e-invoicing and e-reporting, so there is nothing to send, > * if the buyer issues the debit note for an amount the seller owes them, the seller issues a [credit note](/guides/fr-pa-invoicing#pa-b2b-credit-note) instead, or the buyer issues a self-billed credit note (`261`) using the `self-billed` tag (see [Self-billing](/guides/fr-pa-invoicing#self-billing)). > > ```json PA B2B debit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "ND", > "code": "2026-00001", > "issue_date": "2026-09-30", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "S1" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ], > "telephones": [ > { > "num": "+33100200300" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "356000000" > }, > "identities": [ > { > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ], > "telephones": [ > { > "num": "+33100200400" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Refacturation quote-part frais de chantier – co-entreprise", > "price": "4250.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Refacturation quote-part frais de gardiennage – co-entreprise", > "price": "780.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ] > }, > "terms": { > "detail": "Paiement a 30 jours" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "ND", > "code": "2026-00001", > "issue_date": "2026-09-30", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "S1", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ], > "telephones": [ > { > "num": "+33100200300" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ], > "telephones": [ > { > "num": "+33100200400" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Refacturation quote-part frais de chantier – co-entreprise", > "price": "4250.00", > "unit": "one" > }, > "sum": "4250.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "4250.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Refacturation quote-part frais de gardiennage – co-entreprise", > "price": "780.00", > "unit": "one" > }, > "sum": "780.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "780.00" > } > ], > "payment": { > "terms": { > "notes": "Paiement a 30 jours" > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "5030.00", > "total": "5030.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "5030.00", > "percent": "20%", > "amount": "1006.00" > } > ], > "amount": "1006.00" > } > ], > "sum": "1006.00" > }, > "tax": "1006.00", > "total_with_tax": "6036.00", > "payable": "6036.00" > }, > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] PA B2B advance payment invoice > > An advance (down-payment) invoice — used when a payment is collected before the final goods or services are delivered. > > Notice: > > * the `prepayment` tag sets `untdid-document-type` to `386` (advance payment invoice), > * no billing mode is set explicitly: the add-on defaults `fr-ctc-billing-mode` to `M1` (submission of a mixed invoice — here a service plus a good); the advance nature is carried by the document type, not the billing mode, > * the final invoice issued at delivery normally references this advance to net it off the total. > > ```json PA B2B Advance Payment Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "$tags": [ > "prepayment" > ], > "type": "standard", > "series": "FAC", > "code": "2024-AV-001", > "issue_date": "2024-06-01", > "currency": "EUR", > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "356000000" > }, > "identities": [ > { > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Acompte - Projet de developpement", > "price": "5000.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Acompte - Serveur de developpement (materiel)", > "price": "2000.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ] > }, > "terms": { > "detail": "Paiement immediat" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "$tags": [ > "prepayment" > ], > "type": "standard", > "series": "FAC", > "code": "2024-AV-001", > "issue_date": "2024-06-01", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "M1", > "untdid-document-type": "386" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Acompte - Projet de developpement", > "price": "5000.00", > "unit": "one" > }, > "sum": "5000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "5000.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Acompte - Serveur de developpement (materiel)", > "price": "2000.00", > "unit": "one" > }, > "sum": "2000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "2000.00" > } > ], > "payment": { > "terms": { > "notes": "Paiement immediat" > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "7000.00", > "total": "7000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "7000.00", > "percent": "20%", > "amount": "1400.00" > } > ], > "amount": "1400.00" > } > ], > "sum": "1400.00" > }, > "tax": "1400.00", > "total_with_tax": "8400.00", > "payable": "8400.00" > }, > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] PA B2B final invoice (after down payment) > > The final invoice that closes out the advance example above: the full contract is invoiced, and the down payment already billed (`FAC 2024-AV-001`) is netted off the total. > > Notice: > > * `fr-ctc-billing-mode` is pinned to `M4` (mixed, final invoice after down payment); left unset it would default back to `M1`, > * flow 2 forbids advance-payment document types (386, 500, 503) on final invoices, so `untdid-document-type` stays `380` (BR-FR-CO-08), > * `payment.advances` records the 8,400.00 already paid, referencing the advance invoice — `totals.due` comes out to the remaining 12,000.00, > * the due-date payment terms cover only the outstanding balance. > > ```json PA B2B Final Invoice (After Advance) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2024-00107", > "issue_date": "2024-07-15", > "currency": "EUR", > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "356000000" > }, > "identities": [ > { > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Projet de developpement - prestation complete", > "price": "15000.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Serveur de developpement (materiel)", > "price": "2000.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ] > }, > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2024-08-15", > "amount": "12000.00" > } > ] > }, > "advances": [ > { > "description": "Acompte verse - facture FAC 2024-AV-001", > "amount": "8400.00" > } > ] > }, > "tax": { > "ext": { > "fr-ctc-billing-mode": "M4" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2024-00107", > "issue_date": "2024-07-15", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "M4", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Fournisseur Example SARL", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "123", > "street": "Rue de la Paix", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@fournisseur.fr" > } > ] > }, > "customer": { > "name": "Client Example SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "456", > "street": "Avenue des Champs-Elysees", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "comptabilite@client.fr" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Projet de developpement - prestation complete", > "price": "15000.00", > "unit": "one" > }, > "sum": "15000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "15000.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Serveur de developpement (materiel)", > "price": "2000.00", > "unit": "one" > }, > "sum": "2000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "2000.00" > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2024-08-15", > "amount": "12000.00" > } > ] > }, > "advances": [ > { > "description": "Acompte verse - facture FAC 2024-AV-001", > "amount": "8400.00" > } > ], > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189", > "name": "Fournisseur Example SARL" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "17000.00", > "total": "17000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "17000.00", > "percent": "20%", > "amount": "3400.00" > } > ], > "amount": "3400.00" > } > ], > "sum": "3400.00" > }, > "tax": "3400.00", > "total_with_tax": "20400.00", > "payable": "20400.00", > "advance": "8400.00", > "due": "12000.00" > }, > "notes": [ > { > "key": "payment", > "text": "Une penalite fixe de 40 EUR sera appliquee en cas de retard de paiement.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Des penalites de retard s'appliquent conformement a nos conditions generales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est offert pour paiement anticipe.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] PA B2B invoice after a B2C sale (VAT already collected) > > A restaurant cashes in a B2C sale — VAT is collected on the spot and reported through [e-reporting](/guides/fr-pa-reporting) — and the guest's company then asks for a proper invoice. That B2B invoice still travels the flux 2 e-invoicing flow, but must be marked so the VAT is not declared twice. > > Notice: > > * `fr-ctc-billing-mode` is pinned to `S7` (services, VAT already collected): the VAT was already reported with the B2C sale, so this invoice must not re-declare it. Left unset, the add-on would default to an already-paid mode and the VAT would be counted twice, > * `B7` is the goods counterpart — e.g. retail goods sold over the counter and invoiced to a business afterwards, > * the 100% advance records the on-site card payment, leaving `totals.due` at `0.00`, > * restaurant meals carry the intermediate 10% VAT rate. > > ```json PA B2B Invoice After B2C Sale (VAT Collected) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2026-00318", > "issue_date": "2026-09-18", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "S7" > } > }, > "supplier": { > "name": "Le Bistrot du Marché SARL", > "tax_id": { > "country": "FR", > "code": "303265045" > }, > "identities": [ > { > "type": "SIREN", > "code": "303265045", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "303265045" > } > ], > "addresses": [ > { > "num": "18", > "street": "Rue du Marché", > "locality": "Lyon", > "code": "69002", > "country": "FR" > } > ] > }, > "customer": { > "name": "Conseil & Associés SAS", > "tax_id": { > "country": "FR", > "code": "356000000" > }, > "identities": [ > { > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "9", > "street": "Place Bellecour", > "locality": "Lyon", > "code": "69002", > "country": "FR" > } > ] > }, > "lines": [ > { > "quantity": "4", > "item": { > "name": "Repas d'affaires - menu du jour", > "price": "42.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "intermediate" > } > ] > } > ], > "payment": { > "advances": [ > { > "description": "Réglé sur place par carte bancaire", > "percent": "100%" > } > ] > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "type": "standard", > "series": "FAC", > "code": "2026-00318", > "issue_date": "2026-09-18", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "S7", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Le Bistrot du Marché SARL", > "tax_id": { > "country": "FR", > "code": "40303265045" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "303265045", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:303265045" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "303265045" > } > ], > "addresses": [ > { > "num": "18", > "street": "Rue du Marché", > "locality": "Lyon", > "code": "69002", > "country": "FR" > } > ] > }, > "customer": { > "name": "Conseil \u0026 Associés SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "9", > "street": "Place Bellecour", > "locality": "Lyon", > "code": "69002", > "country": "FR" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "4", > "item": { > "name": "Repas d'affaires - menu du jour", > "price": "42.00", > "unit": "one" > }, > "sum": "168.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "intermediate", > "percent": "10%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "168.00" > } > ], > "payment": { > "advances": [ > { > "description": "Réglé sur place par carte bancaire", > "percent": "100%", > "amount": "184.80" > } > ] > }, > "totals": { > "sum": "168.00", > "total": "168.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "168.00", > "percent": "10%", > "amount": "16.80" > } > ], > "amount": "16.80" > } > ], > "sum": "16.80" > }, > "tax": "16.80", > "total_with_tax": "184.80", > "payable": "184.80", > "advance": "184.80", > "due": "0.00" > }, > "notes": [ > { > "key": "payment", > "text": "Conditions de paiement selon les conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] PA B2B self-billed invoice (autofacturation) > > A domestic B2B invoice issued by the customer on behalf of the supplier under a self-billing (autofacturation) agreement. Self-billed invoices between two French parties still travel through the PA e-invoicing flow ([`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1)). > > Notice: > > * the `self-billed` tag sets `untdid-document-type` to `389` (self-billed invoice) — supplier and customer keep their real commercial roles, the tag records that the customer produced the document, > * the PA validation flips the routing check on self-billed types: it is the **customer**, as issuer, that must carry the `0225` inbox matching its SIREN, > * the `legal` note carries the mandatory *Autofacturation* mention, auto-tagged with `untdid-text-subject` `ABL`; the standard French payment mentions (PMT, PMD, AAB) are filled with regime defaults at build time, > * the reduced 5.5% VAT rate applies to the foodstuffs being supplied. > > ```json PA B2B Self-Billed Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1" > ], > "$tags": [ > "self-billed" > ], > "type": "standard", > "series": "AF", > "code": "2026-00042", > "issue_date": "2026-09-30", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "B1" > } > }, > "supplier": { > "name": "Ferme de la Vallée SARL", > "tax_id": { > "country": "FR", > "code": "303265045" > }, > "identities": [ > { > "type": "SIREN", > "code": "303265045", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "303265045" > } > ], > "addresses": [ > { > "num": "3", > "street": "Chemin des Vergers", > "locality": "Avignon", > "code": "84000", > "country": "FR" > } > ] > }, > "customer": { > "name": "Grande Distribution SA", > "tax_id": { > "country": "FR", > "code": "732829320" > }, > "identities": [ > { > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "40", > "street": "Boulevard du Commerce", > "locality": "Paris", > "code": "75012", > "country": "FR" > } > ] > }, > "lines": [ > { > "quantity": "500", > "item": { > "name": "Légumes de saison - livraison septembre", > "price": "2.40", > "unit": "kg" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "reduced" > } > ] > } > ], > "notes": [ > { > "key": "legal", > "text": "Autofacturation - facture établie par le client au nom et pour le compte du fournisseur." > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2026-10-30", > "amount": "1266.00" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189" > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1" > ], > "$tags": [ > "self-billed" > ], > "type": "standard", > "series": "AF", > "code": "2026-00042", > "issue_date": "2026-09-30", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "B1", > "untdid-document-type": "389" > } > }, > "supplier": { > "name": "Ferme de la Vallée SARL", > "tax_id": { > "country": "FR", > "code": "40303265045" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "303265045", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:303265045" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "303265045" > } > ], > "addresses": [ > { > "num": "3", > "street": "Chemin des Vergers", > "locality": "Avignon", > "code": "84000", > "country": "FR" > } > ] > }, > "customer": { > "name": "Grande Distribution SA", > "tax_id": { > "country": "FR", > "code": "44732829320" > }, > "identities": [ > { > "scope": "legal", > "type": "SIREN", > "code": "732829320", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:732829320" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "732829320" > } > ], > "addresses": [ > { > "num": "40", > "street": "Boulevard du Commerce", > "locality": "Paris", > "code": "75012", > "country": "FR" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "500", > "item": { > "name": "Légumes de saison - livraison septembre", > "price": "2.40", > "unit": "kg" > }, > "sum": "1200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "5.5%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1200.00" > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2026-10-30", > "amount": "1266.00" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "FR7630006000011234567890189" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "1200.00", > "total": "1200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1200.00", > "percent": "5.5%", > "amount": "66.00" > } > ], > "amount": "66.00" > } > ], > "sum": "66.00" > }, > "tax": "66.00", > "total_with_tax": "1266.00", > "payable": "1266.00" > }, > "notes": [ > { > "key": "legal", > "text": "Autofacturation - facture établie par le client au nom et pour le compte du fournisseur.", > "ext": { > "untdid-text-subject": "ABL" > } > }, > { > "key": "payment", > "text": "Conditions de paiement selon les conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` > [accordion] Factur-X B2B invoice > > A domestic B2B invoice destined for Factur-X output — a human-readable PDF with the UN/CEFACT CII XML embedded (the French implementation of the same specification as ZUGFeRD). It combines the [`fr-facturx-v1`](https://docs.gobl.org/addons/fr-facturx-v1) add-on for the Factur-X format with [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1), so the same document is also valid for the PA e-invoicing flow. > > Notice: > > * the two add-ons compose: `fr-facturx-v1` drives the Factur-X output while `fr-ctc-flow2-v1` applies the PA validation; the `eu-en16931-v2017` profile they share is added automatically as a dependency, > * each party declares only a `SIRET` identity — at build time the regime derives the legal `SIREN` identity (`iso-scheme-id` `0002`) from it, next to the `0225` Peppol inboxes required for PA routing, > * `fr-ctc-billing-mode` is `S2` (services, already paid) because the 100% advance settles the invoice at issue; that mode requires payment terms whose due dates cover the total, leaving `totals.due` at `0.00`, > * the French payment mentions (PMT, PMD, AAB) are filled with regime defaults at build time. > > ```json Factur-X B2B invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow2-v1", > "fr-facturx-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "2345", > "issue_date": "2025-06-18", > "currency": "EUR", > "tax": { > "ext": { > "fr-ctc-billing-mode": "S2" > } > }, > "supplier": { > "name": "Provide One SARL", > "tax_id": { > "country": "FR", > "code": "43498927917" > }, > "identities": [ > { > "type": "SIRET", > "code": "49892791768734" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "498927917" > } > ], > "addresses": [ > { > "num": "42", > "street": "Avenue des Ternes", > "locality": "Paris", > "code": "75017", > "country": "FR" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000012345" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "discounts": [ > { > "reason": "Special discount", > "percent": "10%" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "description": "Paid in full", > "percent": "100%" > } > ], > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2025-06-18", > "amount": "1944.00" > } > ] > }, > "instructions": { > "key": "card", > "card": {} > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "FR", > "$addons": [ > "eu-en16931-v2017", > "fr-ctc-flow2-v1", > "fr-facturx-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "2345", > "issue_date": "2025-06-18", > "currency": "EUR", > "tax": { > "rounding": "currency", > "ext": { > "fr-ctc-billing-mode": "S2", > "untdid-document-type": "380" > } > }, > "supplier": { > "name": "Provide One SARL", > "tax_id": { > "country": "FR", > "code": "43498927917" > }, > "identities": [ > { > "type": "SIRET", > "code": "49892791768734", > "ext": { > "iso-scheme-id": "0009" > } > }, > { > "scope": "legal", > "type": "SIREN", > "code": "498927917", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:498927917" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "498927917" > } > ], > "addresses": [ > { > "num": "42", > "street": "Avenue des Ternes", > "locality": "Paris", > "code": "75017", > "country": "FR" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Sample Consumer SAS", > "tax_id": { > "country": "FR", > "code": "39356000000" > }, > "identities": [ > { > "type": "SIRET", > "code": "35600000012345", > "ext": { > "iso-scheme-id": "0009" > } > }, > { > "scope": "legal", > "type": "SIREN", > "code": "356000000", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:356000000" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "356000000" > } > ], > "addresses": [ > { > "num": "1", > "street": "Rue Sundacsakn", > "locality": "Saint-Germain-En-Laye", > "code": "75050", > "country": "FR" > } > ], > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "discounts": [ > { > "reason": "Special discount", > "percent": "10%", > "amount": "180.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "20%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1620.00" > } > ], > "payment": { > "terms": { > "key": "due-date", > "due_dates": [ > { > "date": "2025-06-18", > "amount": "1944.00" > } > ] > }, > "advances": [ > { > "description": "Paid in full", > "percent": "100%", > "amount": "1944.00" > } > ], > "instructions": { > "key": "card", > "card": {}, > "ext": { > "untdid-payment-means": "48" > } > } > }, > "totals": { > "sum": "1620.00", > "total": "1620.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1620.00", > "percent": "20%", > "amount": "324.00" > } > ], > "amount": "324.00" > } > ], > "sum": "324.00" > }, > "tax": "324.00", > "total_with_tax": "1944.00", > "payable": "1944.00", > "advance": "1944.00", > "due": "0.00" > }, > "notes": [ > { > "key": "payment", > "text": "Conditions de paiement selon les conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMT" > } > }, > { > "key": "payment-method", > "text": "Pénalités et indemnités de retard applicables conformément aux conditions générales de vente.", > "ext": { > "untdid-text-subject": "PMD" > } > }, > { > "key": "payment-term", > "text": "Aucun escompte n'est accordé pour paiement anticipé.", > "ext": { > "untdid-text-subject": "AAB" > } > } > ] > } > ``` ## FAQ Invoicing questions > [accordion] How do I configure my workspace for French invoicing? > > Two channels depending on the recipient: B2G uses Chorus Pro (CII format); B2B from September 2026 uses the Plateforme Agréée model (UBL, CII, or Factur-X via Peppol). Invopop is an approved PA — install the France PA app for B2B and the Chorus Pro app for B2G. > [accordion] How can I view an XML attached to a PDF? > > In Factur-X PDFs, the XML file is embedded within the PDF itself. To extract and view it, use the `Attachments` section in Adobe Acrobat Reader, or a tool like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/). > [accordion] Is Invopop ready for the September 2026 mandate? > > Invopop is an [officially approved Plateforme Agréée](https://www.impots.gouv.fr/je-consulte-la-liste-des-plateformes-agreees) under the DGFiP mandate. Registration, invoicing, and lifecycle status are available today; e-reporting (Flow 10) is in active development. See the [PA hub readiness matrix](/guides/fr-pa) for the current state. > [accordion] What GOBL addons are required for France PA? > > The base [FR tax regime](https://docs.gobl.org/regimes/fr) plus the EN 16931 profile. For Peppol delivery, `peppol-bis-v3`. The forthcoming `fr-ctc-flow10-v1` addon covers e-reporting payloads — separate from the e-invoicing flow. > [accordion] Is a self-billed invoice a different document type in France? > > No. Most Peppol countries treat self-billing as a document type of its own, but France models it as a **standard invoice** with the `untdid-document-type` extension set to `389`. In GOBL you never set the code yourself: add the `self-billed` tag and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1#standard-self-billed) add-on applies it automatically. See [Self-billing](/guides/fr-pa-invoicing#self-billing) for the full flow. > [accordion] How do I send a debit note in France? > > A debit note that is subject to VAT and carries all the mandatory invoice information is sent as a regular invoice: set `type` to `standard` and the [`fr-ctc-flow2-v1`](https://docs.gobl.org/addons/fr-ctc-flow2-v1) add-on sets `untdid-document-type` to `380`. Don't use `corrective` (`384`) unless the document corrects a previous invoice. A debit note that isn't an invoice is out of scope, so there is nothing to send. See the [debit note example](/guides/fr-pa-invoicing#pa-b2b-debit-note-treated-as-invoice). > [accordion] Why was my VAT-exempt invoice never sent to the PPF? > > Transactions exempt under articles 261 to 261 E of the CGI — insurance, medical care, education and the rest of that range — sit outside the e-invoicing mandate, and the PPF rejects them if you deposit one. When an invoice's whole VAT breakdown is exempt and carries a `VATEX-FR-CGI261*` code, Invopop records it but sends no F1 and raises no lifecycle status, and the dashboard shows it as Exempt. Keep issuing the invoice to your customer as usual. An invoice that mixes exempt and taxable lines is still sent normally, and so is `VATEX-FR-FRANCHISE`. See [VAT-exempt invoices](/guides/fr-pa-invoicing#vat-exempt-invoices). > [accordion] How many pops does a B2B e-invoice through France PA cost? > > Each invoice or lifecycle status sent through France PA costs **5 pops**: 1 pop for the conversion to UBL/CII, 2 pops to send it over Peppol, 1 pop to forward it to the PPF, and 1 pop for the silo entry. See [Pops & pricing](/get-started/pricing) for how pops work. > [accordion] What does the record document step check against the Annuaire? > > Before an invoice is recorded, the record step (**Record outgoing document for e-invoicing** when sending, **Record incoming document for e-invoicing** when receiving) looks up both the supplier and the customer SIREN in the Annuaire. What each party must satisfy depends on the workflow's role: > > | Role | Annuaire state | Outcome | > | - | - | - | > | Both | The SIREN has no effective entry | **Rejected** | > | Receiving | The SIREN has at least one effective entry | **Accepted** | > | Sending | The SIREN's only entry is the PPF's default line (matricule `9998`) | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches one of the SIREN's entries | **Accepted** | > | Sending | The party's `0225` peppol endpoint matches none of the SIREN's entries | **Rejected** | > > Sandbox invoices skip the Annuaire check entirely. > [accordion] What should I do if the customer isn't registered in the Annuaire? > > Don't block the sale. An exchange where only one party has an > effective Annuaire entry is a > [non-regulated flow](/guides/fr-pa#key-concepts): it leaves > e-invoicing (flux 2) and is covered by > [e-reporting](/guides/fr-pa-reporting) (flux 10) instead. > > In practice: > > * Run a [Directory lookup](/guides/fr-lookup) against the > customer's SIREN before you generate the invoice — ideally in a > separate validation workflow run against customer data, so you > can prompt them to fix their registration ahead of time. > * If the SIREN has no effective entry, route the invoice through > your reporting workflow rather than the PA send workflow. > * If it slips through, the send workflow degrades rather than > failing: the **Verify document can be sent** step branches and > forwards the invoice to the PPF as *déposée – non transmise*. > > A missing entry is common and not necessarily an error. A SIREN > visible in the public > [annuaire-entreprises](https://annuaire-entreprises.data.gouv.fr) > registry is not the same as an effective entry in the DGFiP > Annuaire, which only covers entities in scope of the mandate. It > can also be absent because the buyer hasn't yet appointed a PA, or > because their tax records don't match. > [accordion] Should I check the Annuaire at order time or at invoice time? > > Both, for different reasons. A lookup at order or onboarding time > is a data-quality check: it lets you warn the customer and get > their SIREN or PA sorted before invoicing. A lookup at invoice > time is the one that decides the flow, because registrations are > added and withdrawn continuously and a party found at checkout may > no longer be routable days later (and vice versa). > > Treat the early result as advisory, resolve again at generation, > and store the resolved electronic address on the transaction — > the routing address isn't always the bare SIREN. See > [Directory lookup](/guides/fr-lookup). > [accordion] How do I know whether an invoice is B2G? > > You don't decide it yourself. When the invoice is recorded, Invopop looks the customer up in the Annuaire: a party whose line is routed to Chorus Pro is a public entity, and the invoice is marked B2G. The **Is B2G?** workflow step reads that answer and branches to **Send to Chorus Pro** instead of Peppol. See the [public sector guide](/guides/fr-pa-b2g). > [accordion] Do I need a Chorus Pro account to invoice French public entities? > > Not if your company has a French SIREN and is registered in the Annuaire through Invopop. Invopop holds the connection with Chorus Pro, so B2G invoices use the same [send workflow](/guides/fr-pa-b2g#setup) as any other French invoice. Only foreign entities without a French SIREN still go through the standalone [Chorus Pro app](/apps/choruspro-france), which requires Chorus Pro credentials. > [accordion] Where do I put the service code and the numéro d'engagement on a B2G invoice? > > The service code (*code service* or *code routage*) is a `private-id` identity on the customer, and the commitment number (*numéro d'engagement juridique*) is the purchase order reference in `ordering.purchases[0].code`. Both are supplied by the public entity. The [public sector guide](/guides/fr-pa-b2g#what-a-public-buyer-needs) lists every field. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. Receiving questions > [accordion] How do I import received invoices in France? > > Register the recipient with Invopop as their Plateforme Agréée. Inbound documents (UBL, CII, Factur-X) are converted to GOBL and stored in the Expenses folder. Chorus Pro inbound flow is separate and routes via the Chorus Pro app. > [accordion] How does Invopop convert received French invoices into GOBL? > > UBL via [`gobl.peppol`](https://github.com/invopop/gobl.peppol); CII and Factur-X via [`gobl.cii`](https://github.com/invopop/gobl.cii). The original structured XML (or PDF/A-3 with embedded XML) is preserved as a silo entry attachment. > [accordion] How do I import received invoices via France PA? > > Register the recipient via Invopop as their PA. Inbound UBL/CII/Factur-X documents are routed to the configured Import workflow and become GOBL silo entries. Lifecycle status updates (CDAR) feed back to the issuer through the same channel. > [accordion] What format do received France PA invoices arrive in? > > UBL, CII, or Factur-X (PDF with embedded CII XML), all conforming to EN 16931 and the French CTC profile. Invopop preserves the original and exposes the GOBL conversion. > [accordion] Can I receive invoices at more than one platform (PDP) for the same company? > > Yes. A single company can be reachable at several destinations by registering different routing identifiers (electronic addresses) in the Annuaire — one per PDP or inbox. Invoices addressed to a given identifier are delivered to the platform registered against it, so you can route some invoices to Invopop and others to a different PDP (for example a travel-and-expense tool) for the same SIREN. > > The Annuaire supports several address formats that map to increasingly granular destinations within the same company: > > * `SIREN` — the company as a whole. > * `SIREN_SIRET` — a specific establishment. > * `SIREN_SIRET_ROUTINGCODE` — a site, department, or workflow within an establishment. > * `SIREN_SUFFIX` — a custom routing suffix. > > Give each PDP or inbox a distinct identifier and share the matching address with each issuer, so their invoices reach the intended destination. You can [look up an electronic address](/guides/fr-lookup) in the Annuaire to confirm where it currently routes. > [accordion] What is checked before a received invoice is recorded? > > An invoice arriving from another platform goes through three controls, run in the order the PPF applies them: > > * **Syntax** — the invoice XML against the Flux 2 schematron for its syntax. > * **Addressing** — both parties carry a SIREN registered in the Annuaire, the transport addresses belong to the parties the invoice names, and the invoice is addressed to a party registered in your workspace. > * **Unicity** — the invoice is not already recorded for this party, number and year. > > An invoice that passes every control is recorded on the receiving side. Only invoices are validated this way; incoming lifecycle statuses are simply recorded. > [accordion] What reason does a rejected invoice come back with? > > Each control rejects under its own CDAR motif, carried on the [`213` Rejetée](/guides/fr-pa-status#issued-by-the-platform) status returned to the platform that sent the invoice: > > * `REJ_SEMAN` — *rejet pour erreur sémantique*, when the invoice fails the Flux 2 schematron. > * `ADR_ERR` — *adresse de facturation électronique erronée*, when the addressing control fails. > * `REJ_UNI` — *rejet sur contrôle unicité*, when the invoice is already recorded. > [accordion] How do I import received invoices via Peppol? > > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate. > [accordion] How are incoming Peppol documents converted into GOBL? > > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination — the GOBL representation is the single source of truth for downstream processing. More Q\&A available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | # Moving parties between Plateformes Agréées Source: https://docs.invopop.com/guides/fr-pa-migrations Answer another Plateforme Agréée's request to take over a party's Annuaire line, and take over lines from other platforms. A company can change Plateforme Agréée (PA) at any time. The new PA sends a `MOBILITY_REQUEST` to the old one, and the old PA answers with a `MOBILITY_RESPONSE`: accepted, accepted on another date, or refused. Invopop handles both sides of this exchange: * **Incoming:** another PA asks to take over an address registered through Invopop. * **Outgoing:** you register an address another PA holds. ## Incoming requests ### Setup Add the [PPF incoming migration workflow](#ppf-incoming-migration-workflow) to your workspace, then select it as the migration workflow in the France app's configuration. In the **Apps** view, open the **France** app, click **Configure**, and select the workflow under **Migration Workflow**. When another PA asks to take over addresses registered through Invopop, Invopop starts one migration job per requested address. Each job runs the configured workflow on the silo entry that registered the address. Invopop only accepts a request when it comes from the requesting platform's registered contact address. Anything else is refused and no job starts. ### Takeover form The **Respond to incoming migration** step publishes a `link_url` under the `migration-link` key in the silo entry meta. Each silo entry has one link, which always opens the latest request for its address. The form shows the requesting platform and the address, and lets the user: * **Accept** the takeover, on the requested date or on another effective date picked from a calendar. * **Refuse** the takeover. To answer from your own system instead of the form, call [Answer a migration request](/api-ref/apps/gov-fr/migration-answer) with the silo entry ID. The same rules apply. ### Answer deadline The company has **5 business days** from the request's arrival to answer. This deadline only applies to workspaces with a migration workflow configured (see [Setup](#setup)). The form shows the deadline. If the address is still unanswered after that, **Wait for migration response** accepts it automatically. ### Response **Complete incoming migration** sends the `MOBILITY_RESPONSE` for the address to the new PA: | Answer | Response status | | - | - | | Accepted on the requested date | `ACCP` | | Accepted on another date | `ACWC`, with the agreed effective date | | Refused | `RJCT`, with motif `REFUS_CLIENT` | ## PPF incoming migration workflow > [card] [PPF incoming migration](https://console.invopop.com/redirect/workflows/new?template=fr-pa-incoming-migration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json PPF incoming migration workflow theme={"system"} > { > "name": "PPF incoming migration", > "description": "Respond to an incoming PA migration request and, if accepted, migrate the party's Peppol registration and disable it in the Directory", > "schema": "org/party", > "steps": [ > { > "id": "2f34cb83-c72a-11f1-998e-a62046e2e5be", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "33084d80-cee9-11f1-9bf2-dd7a2ff728fc", > "name": "Respond to incoming migration", > "provider": "gov-fr.migration.start" > }, > { > "id": "3e0e9180-cee9-11f1-9bf2-dd7a2ff728fc", > "name": "Wait for migration response", > "provider": "gov-fr.migration.wait.approval", > "next": [ > { > "status": "NA", > "code": "accepted", > "steps": [ > { > "id": "2f2d6970-c72a-11f1-9faf-a62046e2e5be", > "name": "Start Peppol migration", > "provider": "peppol.migrate" > }, > { > "id": "4d33fab0-cee9-11f1-9bf2-dd7a2ff728fc", > "name": "Complete incoming migration", > "provider": "gov-fr.migration.complete" > }, > { > "id": "2f34ccb2-c72a-11f1-bda9-a62046e2e5be", > "name": "Wait for Peppol migration", > "provider": "peppol.wait.migration" > }, > { > "id": "2f34cd29-c72a-11f1-8188-a62046e2e5be", > "name": "Unregister supplier from Peppol", > "provider": "peppol.unregister" > }, > { > "id": "5e976d00-cee9-11f1-9bf2-dd7a2ff728fc", > "name": "Disable party in Directory", > "provider": "gov-fr.directory.disable" > }, > { > "id": "2f34cd87-c72a-11f1-aed2-a62046e2e5be", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ] > }, > { > "status": "NA", > "code": "rejected", > "steps": [ > { > "id": "53939a00-cee9-11f1-9bf2-dd7a2ff728fc", > "name": "Complete incoming migration", > "provider": "gov-fr.migration.complete" > }, > { > "id": "65d7cf60-cee9-11f1-9bf2-dd7a2ff728fc", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ] > } > ] > } > ], > "rescue": [ > { > "id": "2f34cdf5-c72a-11f1-b5cc-a62046e2e5be", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Outgoing takeovers To take over an address another PA holds, set the former PA's line under the `fr-former-matricule` meta key of the party. The signed agreement then includes an additional section asking the company to consent to the takeover. When you run the [PPF register supplier](/guides/fr-pa-registration#ppf-register-supplier-workflow) workflow for that address, **Register party in Directory** (`gov-fr.directory.register`) sends a `MOBILITY_REQUEST` to that PA and waits for its answer. Once the takeover is accepted, Invopop registers the line with the agreed effective date, and the step stays queued until that date. If the other PA refuses, or its answer can't be processed, the step fails with the reason. ## Reading migrations The France dashboard's **Migrations** tab lists every takeover request involving your workspace's addresses, newest first. In the Console, open the **Apps** view, select the **France** app, and switch to the **Migrations** tab. A workspace with no takeovers shows **No migrations yet**. Each row shows the New PA and Old PA, the Status, the SIREN, the Role, the company's Denomination, the Request number, the number of Endpoints (addresses) it covers, the New PA and Old PA matricules, and, for failed takeovers, the Failure reason. The Role tells you which side of the exchange Invopop is on: | Role | Meaning | | - | - | | Outgoing | Invopop is the new PA, taking over an address from another platform. | | Incoming | Another platform asked to take over one of your addresses. Invopop is the old PA. | | Status | Role | Meaning | | - | - | - | | Created | Outgoing | The request is built but not sent yet. | | Sent | Outgoing | The request was emailed to the old PA. | | Acknowledged | Outgoing | The old PA acknowledged the request. | | Responded | Outgoing, Incoming | Outgoing: the old PA agreed; the Peppol migration code is still to follow. Incoming: your answer has been sent to the new PA, but not every address has a final answer yet. | | Received | Incoming | The request is waiting for answers. | | Completed | Outgoing, Incoming | The migration has been completed, either accepted or rejected. | | Failed | Outgoing | The takeover failed, failure reason is logged in the launcher. | An outgoing takeover moves from **Created** to **Sent**, **Acknowledged**, **Responded** and **Completed**, or ends as **Failed**. An incoming request moves from **Received** to **Responded** once your answer is sent, and to **Completed** once every address has a final answer. The Failure reason explains why an outgoing takeover failed: for example, the old PA rejected it or put it on hold because of a dispute, accepted it without a migration code, sent a reply that couldn't be read, or the request email couldn't be sent. If the reason is unclear, contact Invopop support. > [!NOTE] > > Clicking a row opens a read-only side panel titled **SIREN** followed by the party's SIREN, with one **Details** block per address: its Endpoint, the Silo entry ID, the Decision, and the Reason and Effective Date when they are set. The Decision is your answer on an incoming request, or the old PA's answer on an outgoing one. It stays blank until the address is answered. | Decision | Meaning | | - | - | | `ACCP` | Accepted on the requested date. | | `ACWC` | Accepted on another effective date. | | `ACSP` | Accepted in principle; the final answer and Peppol migration code will follow. | | `RJCT` | Rejected. | | `PDNG` | On hold because of a dispute (outgoing only). | ### Reading migrations through the API The same data is available through the France app's API, authenticated with the enrollment token like the other `/apps/gov-fr` endpoints: * [List migrations](/api-ref/apps/gov-fr/migrations-list) (`GET /apps/gov-fr/v1/migrations`) returns one item per address in every migration of the workspace, newest first, in both roles. * [List a silo entry's migrations](/api-ref/apps/gov-fr/migrations-entry) (`GET /apps/gov-fr/v1/migrations/{silo_entry_id}`) returns the items for the address registered by one silo entry. Use it to find out whether an address has a request waiting for an answer. * [Answer a migration request](/api-ref/apps/gov-fr/migration-answer) (`POST /apps/gov-fr/v1/migrations/{silo_entry_id}`) accepts or refuses the request, like the takeover form. Both lists page with `offset` and `limit` (default `25`, maximum `200`), counted in items, and return a `next_offset` while more results remain. Each item is one address of one request, with: * `identifier`: the directory address (endpoint) the item refers to, as it appears in the PPF Annuaire. * `status`: `pending` until the address has a final answer, then `accepted` or `rejected`. An outgoing request that fails without an agreement is `failed`. * `effective_date`: the agreed date once the address is answered, otherwise the requested one. * `decisions`: the answers given so far, with their response code (`ACCP`, `ACWC`, `RJCT`, ...) and Peppol migration code. On an incoming item they are your answers; on an outgoing one, the old PA's. ## Testing incoming migrations in sandbox > [!NOTE] > > Simulating an incoming migration is only available in sandbox workspaces. The option isn't shown in live workspaces, and the request is refused there. In a sandbox workspace you can trigger an incoming request yourself, to test the takeover form, the answer endpoint and your migration workflow end to end. 1. Configure the migration workflow first (see [Setup](#setup)), so the simulated request has a workflow to run, without the Peppol migration steps ([see below](#remove-the-peppol-migration-steps)). 2. In the France dashboard's **Parties** tab, click the party to open its side panel. 3. On an active endpoint, open the **⋯** menu next to the copy button and choose **Simulate incoming migration**. A toast confirms "Simulated incoming migration for ``". Disabled endpoints don't show the menu. 4. The request appears in the **Migrations** tab and in `GET /apps/gov-fr/v1/migrations/{silo_entry_id}` as an `incoming` item with `status` `pending`, and your migration workflow starts on the silo entry. 5. Answer it with the takeover form or `POST /apps/gov-fr/v1/migrations/{silo_entry_id}`, as described in [Incoming requests](#incoming-requests). ### Remove the Peppol migration steps Before simulating, remove the **Start Peppol migration**, **Wait for Peppol migration** and **Unregister supplier from Peppol** actions from the migration workflow you test with. > [!WARNING] > > **Start Peppol migration** (`peppol.migrate`) hands the party's Peppol migration key to the new PA, which here is made up. **Wait for Peppol migration** stays queued until the Peppol network routes the participant to another provider's Access Point, which never happens for a simulated request, so the job would never finish. **Unregister supplier from Peppol** (`peppol.unregister`) acts on the party's real Peppol registration, so don't run it for a simulated request either. The rest of the workflow (**Wait for migration response**, **Complete incoming migration**) stays as it is. The request comes from a made-up platform and is handled like a real one. No email is ever sent to any platform for a simulated request. ## FAQ > [accordion] How does the 5-day deadline work? > > The company has 5 business days, to answer, counted from the moment Invopop receives the request and ending at the same time of day (Paris time). For example, a request received on Friday at 15:00 expires the following Friday at 15:00. French public holidays are not taken into account. The form shows the date to answer by. > > Until then, **Wait for migration response** stays queued, and the workflow continues as soon as the company answers. If the address is still unanswered at the deadline, Invopop accepts it automatically: on the date the new PA requested when that is still possible, otherwise on the earliest possible date. Once the response is sent, the answer can't be changed. > > The deadline only applies to workspaces with a migration workflow configured. > [accordion] Which effective dates can the company choose? > > The form's calendar only offers dates from the earliest the switch can happen: at least 3 business days and 4 calendar days from the answer, whichever is later. Business days are Monday to Friday. > > If the company accepts without choosing a date, the date the new PA requested is used. If that date is already too soon, the earliest possible date is used instead, and the answer is sent as `ACWC`. > [accordion] When is a migration request complete? > > An incoming request can cover several addresses, and each address gets its own job and form. Each answer is sent to the new PA as soon as it's given, with the addresses not answered yet marked pending. > > The request is complete once every address in it has been answered and the last answer has been sent. Until then, it shows as **Received** in the [Migrations tab](/guides/fr-pa-migrations#reading-migrations). > [accordion] What does the Reason in the Migrations tab mean? > > When an address was refused, the side panel of the [Migrations tab](/guides/fr-pa-migrations#reading-migrations) shows the Reason next to the Decision. `REFUS_CLIENT` means the company refused the takeover, and `ADRESSE_INCONNUE` means the address isn't held at Invopop. Reasons from other platforms appear as they sent them. > [accordion] What happens if I don't have a migration workflow configured? > > Invopop receives and records the request, but no workflow job starts for your workspace's addresses: there is no form link, no automatic acceptance at the deadline, and no `MOBILITY_RESPONSE` is sent to the other PA. > > To answer it, add the [PPF incoming migration](/guides/fr-pa-migrations#setup) workflow and select it in the France app configuration, then contact Invopop support to have the pending request processed again. The 5-day deadline still counts from when the request first arrived, so if it has already passed, the address is accepted automatically as soon as the workflow runs. > [accordion] Does the 'Start Peppol migration' action always have to run? > > No, it's optional. Run it on the `accepted` branch when the party is registered on Peppol: its migration key is passed to the new PA, which uses it to move the party's Peppol registration. > > Without it, the response carries `NEANT`, meaning there is nothing to migrate on Peppol. The key is never sent for refused addresses. > [accordion] What outcomes does the 'Wait for migration response' action have? > > The step stays queued until the company answers or the deadline passes, then ends with one of these codes: > > * `accepted`: the address was accepted, on the requested date or another one, either by the company or automatically at the deadline. > * `rejected`: the company refused the takeover. The response is sent as `RJCT` with motif `REFUS_CLIENT`. > > Both outcomes continue to **Complete incoming migration**, which sends the answer to the other PA. A typical workflow runs **Start Peppol migration** only on the `accepted` branch. More available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | # SIREN registration in France Source: https://docs.invopop.com/guides/fr-pa-registration Register a party in the French Annuaire and on the Peppol network. Registration on the French Directory is required for any SIREN that will issue, report or receive invoices through Invopop as its Plateforme Agréée. Each party (a SIREN) is registered once. The workflow collects a signed agreement, registers the party in the French Annuaire, publishes it on the Peppol network and registers for Reporting. After registration is completed, the party can both send and receive invoices as well as report transactions. The Annuaire requires every entry to be receive-capable, so there is no send-only option as in other Peppol countries. For parties that only need to receive invoices for now — most SMEs and micro-businesses until September 2027 — see [Registering without e-reporting](#registering-without-e-reporting). | - | Sandbox | Live | | - | - | - | | **Supplier** | Use a checksum valid [generated SIREN](https://www.onsubmit.io/french-siret-siren-generator/) | Requires a valid SIREN and the signature of the company representative. | | **Approval** | Automatic | Automatic, but can be flagged for human review | | **Registration** | Peppol SMK and PPF's *environnement de qualification* | Peppol SML and Annuaire production | > [!NOTE] > > A single SIREN registered in the Annuaire can have several directory entries, registered under the same or different Plateformes Agréées. Each entry has its own electronic address, set as the `code` of the party's `peppol` inbox. Invopop registers addresses in one of the forms `SIREN`, `SIREN_SIRET`, or `SIREN_suffix`; addresses with a routing code (`SIREN_SIRET_routingcode`) aren't supported. See [Choosing the electronic address](#choosing-the-electronic-address). > [accordion] Example of French supplier > > This example shows a French supplier party. Key points to note: > > * The `tax_id` contains the French TVA number without the `FR` prefix: a 2-digit control key followed by the company's 9-digit SIREN. > * The `SIREN` identity uses the `iso-scheme-id` extension `0002` (SIRENE), and must match the last 9 digits of the TVA number. > * The person in `people` is the company representative required to sign the *mandat de facturation* (billing mandate), including their `role`. > * The `peppol` inbox uses scheme `0225` (French CTC electronic address). A single SIREN registered in the Annuaire can have several directory entries, registered under the same or different Plateformes Agréées. Each entry has its own electronic address, mapped to the Peppol inbox's `code`, in one of the forms `SIREN`, `SIREN_SIRET`, or `SIREN_suffix`. Addresses with a routing code (`SIREN_SIRET_routingcode`) aren't supported. > * If no inbox is specified, the Register for Peppol step assigns one automatically, using scheme `0225` with the supplier's bare SIREN as the code, ignoring any SIRET present in the supplier's identities. > * To register a specific directory entry instead, set the inbox explicitly, for example: > > ```json theme={"system"} > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "526018155_INVOPOP" > } > ], > ``` > > This registers the endpoint `526018155_INVOPOP` under the SIREN `526018155` in the Annuaire. > > Here is the full example of a Party > > ```json France supplier example expandable theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Marseille Commerce SAS", > "tax_id": { > "country": "FR", > "code": "83526018155" > }, > "identities": [ > { > "type": "SIREN", > "code": "526018155", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "people": [ > { > "name": { > "given": "Claire", > "surname": "Moreau" > }, > "role": "Directrice" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "526018155" > } > ], > "addresses": [ > { > "num": "25", > "street": "Avenue des Champs-Élysées", > "locality": "Paris", > "code": "75008", > "country": "FR" > } > ], > "emails": [ > { > "addr": "facturation@marseillecommerce.fr" > } > ], > "telephones": [ > { > "num": "+33100200300" > } > ] > } > ``` ## Choosing the electronic address The address you register decides which invoices Invopop receives for the company. This matters most for platforms that register the companies they issue invoices for, such as marketplaces and invoicing software. * **The bare SIREN is the company's main address.** With no inbox set, the workflow registers `SIREN`. Senders that address the company by its SIREN deliver there, so only register it if Invopop should receive *all* of the company's incoming invoices. * **Use a dedicated address when you only issue on the company's behalf**, or when it already has, or will have, another PA. Set the inbox explicitly to a `SIREN_suffix` address such as `526018155_PLATFORMNAME`, as in the [example above](#example-of-french-supplier). The company's other addresses stay with its own PA. * **Statuses come back to the sending address.** Lifecycle statuses on invoices you send from an address are delivered to that address, so a dedicated address still receives the statuses for the invoices you issue. * **Companies with several establishments** need only one registration per SIREN, with a single mandate signature. Put each establishment's SIRET on its invoices, in the supplier's identities; it's independent of the directory address. Register one suffix per establishment only if you need statuses delivered to separate addresses: each address is a separate party entry and registration. * **Pick a suffix with a clear meaning.** The DGFiP recommends suffixes that make their purpose obvious and that don't look like a SIRET. A 14-digit suffix that starts with the SIREN is read as a SIRET. * **If another PA already holds the address**, registration fails; see [Outgoing takeovers](/guides/fr-pa-migrations#outgoing-takeovers). ## PPF register supplier workflow > [card] [PPF register supplier](https://console.invopop.com/redirect/workflows/new?template=fr-pa-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json PPF register supplier workflow theme={"system"} > { > "name": "PPF register supplier", > "description": "Register a supplier with the French Directory and Peppol", > "schema": "org/party", > "steps": [ > { > "id": "0adf46e0-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Sign PPF agreement", > "provider": "gov-fr.agreement.sign", > "notes": "Generates the PA mandate to authorize Invopop to act on behalf of the supplier" > }, > { > "id": "0e44b900-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "12aaf950-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Wait for PPF agreement upload", > "provider": "gov-fr.agreement.wait.approval", > "notes": "Pauses until the signed agreement is uploaded and accepted" > }, > { > "id": "b194f710-5451-11f1-baf5-4f2c2882107f", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `completed`{.state .completed}", > "config": { > "state": "completed" > } > }, > { > "id": "d10a4680-1e29-11f1-8bfb-2beaa1df60f0", > "name": "Register party in Directory", > "provider": "gov-fr.directory.register", > "notes": "Submits the SIREN to the French Annuaire for invoice routing" > }, > { > "id": "7a5a4db0-0fae-11f0-b37b-0be1c251a274", > "name": "Register party on Peppol", > "provider": "peppol.register", > "summary": "Enabled · groups: france", > "config": { > "directory": true, > "disable": false, > "doc_groups": [ > "france" > ], > "visibility": "smp+sml+peppol" > }, > "notes": "Publishes the party, enabling Peppol routing for sending and receiving" > }, > { > "id": "b523ae4a-7b39-4410-abaa-b03a4e33f7bd", > "name": "Register party for reporting", > "provider": "gov-fr.reporting.register", > "notes": "Registers the SIREN for reporting" > }, > { > "id": "7c2fa9f0-0fae-11f0-b37b-0be1c251a274", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "a34e83f0-25dc-11f0-b641-350e77c28eed", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Agreement signing The `gov-fr.agreement.sign` step generates the mandate and publishes a `link_url` under the `approval-link` key in the silo entry meta. Each silo entry registers one Annuaire address, so the step fails on a silo entry that already has an active registration; use a new silo entry for each additional address. The party representative can complete signing through the registration wizard, or platforms that want full control can use the [entry API](#entry-api) directly. ### Registration wizard Once the workflow step runs, find the `link_url` in the `approval-link` meta entry of the silo entry. In console, it appears in the Meta tab of the entry's right sidebar. > [accordion] Example approval-link meta entry > > ```json theme={"system"} > { > "src": "gov-fr", > "key": "approval-link", > "ref": "EgDeG3pDBDe", > "link_url": "https://gouv-fr.invopop.com/reg/EgDeG3pDBDe/start", > "link_scope": "public", > "indexed": true, > "shared": true > } > ``` Forward the `link_url` to the party representative, or embed it as an `iframe` to keep them within your platform. The wizard walks the representative through each step: **1. Party details** Review and confirm the pre-filled company and signer information. **2. Identity document** Upload a photo of the signer's ID card (front and back) or passport page. **3. Sign mandate** Sign the pre-filled mandate directly in the browser, or upload a pre-signed PDF. **4. Confirm** Submit for Invopop review. The party status moves to `submitted` until a decision is made. ### Entry API For platforms that want to drive the signing process programmatically, use the entry API (all endpoints under `/apps/gov-fr/v1/entry/{silo_entry_id}/`). Identity verification is required on both paths. > [tab] In-app signing > > The customer signs the mandate directly. Invopop stamps the signature and verifies identity. > > **1. Download mandate** > > `GET /agreement` returns the mandate PDF pre-filled with the party's details. Fails with `422` if any required signer field is missing. > > **2. Upload identity document** > > `POST /identity` uploads one face at a time: `front` + `back` for an ID card, or `page` for a passport. > > **3. Sign the mandate** > > `POST /sign` stamps the signature. Pass a drawn PNG or JPEG image in `signature` (≤ 4 MB), or omit it to render the signer's name as a typed signature. > > **4. Confirm** > > `POST /confirm` finalises the submission and returns a `status` field. `submitted` means the party is under approval review before registration continues. > [tab] Pre-signed PDF > > The customer signs the mandate externally and uploads the result. > > **1. Download mandate** > > `GET /agreement` returns the pre-filled mandate PDF for the customer to sign externally. > > **2. Upload identity document** > > `POST /identity` uploads one face at a time: `front` + `back` for an ID card, or `page` for a passport. > > **3. Upload signed PDF** > > `POST /agreement` stores the signed PDF (≤ 4 MB). > > **4. Confirm** > > `POST /confirm` finalises the submission and returns a `status` field. `submitted` means the party is under approval review before registration continues. ## Registering without e-reporting Obligations under the French mandate kick in separately: from 1 September 2026 every business must be registered in the Annuaire to *receive* e-invoices, but SMEs and micro-businesses are not required to issue e-invoices or e-report until 1 September 2027 (see the [timeline](/guides/fr-pa#timeline)). If you onboard many smaller suppliers, most of them initially need only an Annuaire line and a Peppol inbox — not a reporting registration. The default template registers the party for everything, including reporting. To register parties for receiving only, create a modified copy of the template: **1. Add the template** Add the [PPF register supplier](#ppf-register-supplier-workflow) template to your workspace and rename the copy, e.g. "PPF register supplier — Annuaire only". **2. Remove the reporting step** Delete the **Register party for reporting** (`gov-fr.reporting.register`) step. Keep the Directory and Peppol steps — every Annuaire entry is receive-capable, so nothing else needs to change. **3. Run it for receive-only parties** Use this workflow for parties that don't yet have issuing or reporting obligations, and keep the unmodified template for those that do. Receive-only parties appear in the [Parties tab](#reading-parties-registrations) with a dash in the Reporting column. When a party's e-reporting obligations begin — for example when the September 2027 mandate reaches SMEs and micro-businesses — complete its registration by running the **Register party for reporting** step against the party's silo entry: create a workflow containing just that step and run it on the already-registered party. The [VAT regime](/guides/fr-pa-reporting#picking-a-vat-regime-at-supplier-registration) is picked the same way as in the full registration. > [!NOTE] > > A party registered without the reporting step is not on any reporting cadence: Invopop only generates and files Flux 10 reports for parties registered for reporting. The signed agreement is the same in both cases, so no new mandate is needed when reporting is added later. ## PPF unregister supplier workflow > [card] [PPF unregister supplier](https://console.invopop.com/redirect/workflows/new?template=fr-pa-unregister) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json PPF unregister supplier workflow theme={"system"} > { > "name": "PPF unregister supplier", > "description": "Unregister a supplier from Peppol and the French Directory", > "schema": "org/party", > "steps": [ > { > "id": "453beac0-70a7-11f1-aca9-697108ec55ef", > "name": "Unregister supplier from Peppol", > "provider": "peppol.unregister" > }, > { > "id": "13c84e60-5452-11f1-baf5-4f2c2882107f", > "name": "Disable party in Directory", > "provider": "gov-fr.directory.disable" > }, > { > "id": "c91ae086-f830-425b-b67c-72af00efc22c", > "name": "Disable party for reporting", > "provider": "gov-fr.reporting.disable" > }, > { > "id": "1b8a6b80-5452-11f1-baf5-4f2c2882107f", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "23e0d3a0-5452-11f1-baf5-4f2c2882107f", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Reading parties registrations The France dashboard's **Parties** tab shows the registration state of every SIREN in the workspace. In the Console, open the **Apps** view and select the **France** app. The dashboard opens on this tab. Each row carries the party's Name, its number of Annuaire entries, the SIREN, the registration State, the Silo entry that holds the party, whether Reporting is enabled, the VAT regime selected at registration, and the date the approval was Decided. | State | Meaning | | - | - | | Pending | The registration workflow has started but the signed mandate has not been submitted yet. | | Submitted | The mandate and identity document are under approval review. | | Approved | The party is registered: its Annuaire line is live and published on Peppol. | | Rejected | The submission was declined during review. | A check mark in the Reporting column means the party is also [registered for e-reporting](/guides/fr-pa-reporting); a dash marks a party registered only for e-invoicing. The VAT regime pill shows the [cadence](/guides/fr-pa-reporting#picking-a-vat-regime-at-supplier-registration) its reports follow. > [!NOTE] > > Clicking a row opens a side panel with the party's Annuaire lines: one block per directory entry with its Endpoint (the electronic address), the registered Name, and the Silo entry id. Every value has a copy button. Lines that have been unregistered appear greyed out and carry a **Disabled at** row with their deactivation date. Filter the table by **SIREN**, **State**, or whether **Reporting** is enabled. ## FAQ > [accordion] How do I onboard a new supplier in France? > > For B2B PA flows: register the supplier via the France PA Register Party workflow (publishes the SIREN to the Annuaire and Peppol). For Chorus Pro: register the supplier with their SIRET on Chorus Pro's portal and link credentials in the Chorus Pro app. > [accordion] How are supplier credentials stored in Invopop for France? > > France PA does not require supplier-side certificates — Peppol uses Invopop's AP cert. Chorus Pro uses an OAuth token bound to the supplier's account; the token is encrypted at rest in Invopop. > [accordion] How do I register a supplier with France PA? > > Run the France PA Register Party workflow with the supplier's SIREN. Invopop publishes them to the Annuaire and the Peppol SMP — they are then routable for both invoicing and e-reporting through Invopop. > [accordion] My company already uses another Plateforme Agréée for one flow. Can I register with Invopop for another? > > Yes. This is a common setup, for example a company handling AR with one PA and AP with another. Run the [registration workflow](/guides/fr-pa-registration) with a SIREN and suffix of your choice for the flow you want Invopop to handle, such as `434061839_AR`. Invoices and statuses addressed to an entry are delivered to the platform that registered it, so the two flows never conflict and act fully independently. > [accordion] Can a supplier keep sending invoices through Invopop but receive them through another PA? > > Yes. Keep the existing Invopop registration for sending, and have the other PA register a new `SIREN_suffix` electronic address in the Annuaire and Peppol for receiving, such as `434061839_AP`. The supplier then gives that address to their own suppliers. > > Electronic addresses work like email addresses: > > * Invoices arrive at whichever address the sender uses, and are delivered to the PA that registered it. > * Invoices you send from an address get their lifecycle status updates back at that same address. > > Invoices sent to the Invopop-registered address still reach Invopop, so make sure suppliers switch to the new one. > [accordion] Can I register a supplier to receive invoices without enabling e-reporting? > > Yes. Copy the PPF register supplier template and remove the **Register party for reporting** step. The party gets its Annuaire line and Peppol inbox and can receive invoices, but no reporting cadence starts. When its obligations begin, run the removed step against the party to complete the registration. See [Registering without e-reporting](/guides/fr-pa-registration#registering-without-e-reporting). > [accordion] What certificates does France PA require to authenticate a supplier? > > None at the supplier level. The Plateforme Agréée holds an OpenPeppol-issued mTLS certificate (Invopop's), and the PA-to-PPF channel uses additional DGFiP credentials managed by Invopop. > [accordion] Registration fails with 'Le SIREN en entrée n'existe pas...'. What does that mean? > > This error means the PPF has not yet referenced the SIREN in the annuaire de la facturation électronique. Before an accredited platform like Invopop can register a directory entry, the PPF has to list the SIREN first — even if the company is correctly registered and active with the tax administration, there may still be no directory entry for a PA to take over. > > The fix has to come from the tax administration, not from Invopop: > > 1. Confirm the business is in scope for the reform using the [PPF's questionnaire](https://www.impots.gouv.fr/facturation-electronique-qu-est-ce-que-ca-change-pour-moi). > 2. If it's in scope but still missing from the directory, have the business or its accountant contact the Service des Impôts des Entreprises (SIE) that handles it and ask for the SIREN to be referenced in the annuaire. > 3. For general questions about the reform, the DGFiP runs a free national helpline: 0 806 807 807. > > Invopop has no way to create the directory entry directly — only the SIE can. Once the supplier confirms the SIREN is referenced, re-run the [registration workflow](/guides/fr-pa-registration). > [accordion] Registration fails with 'has more than two parts, which would imply a routing code'. What does that mean? > > The party's `peppol` inbox `code` has three parts, such as `526018155_52601815500012_AP`. In the Annuaire, an address with a third part carries a routing code (*code routage*), which Invopop doesn't support. > > Use one of the supported forms instead: `SIREN`, `SIREN_SIRET`, or `SIREN_suffix`. If you need an address of your own alongside the company's other addresses, for example because you only issue invoices on its behalf, register a dedicated `SIREN_suffix` such as `526018155_PLATFORMNAME`. See [Choosing the electronic address](/guides/fr-pa-registration#choosing-the-electronic-address). > [accordion] How many pops does registering a merchant (seat) for France cost? > > It depends on the flows the merchant uses: > > * **E-invoicing (B2B)** — **150 pops** per merchant: 50 pops for the French directory (Annuaire) registration plus 100 pops for Peppol. > * **E-reporting only (B2C or international B2B)** — **50 pops** per merchant to register the party for reporting. > > Each registered merchant counts as a seat: the same seat pops are deducted on registration and again every 30 days for as long as the merchant stays registered — see [Pops & pricing](/get-started/pricing) for how seats are billed. > [accordion] How do I register for a Peppol inbox in Invopop? > > Upload the company as a party (Console → Parties → Suppliers → + New Supplier, or via the Create an Entry API) with name, tax\_id, address, and email. Then run it through the party registration workflow — the contact will receive a registration wizard link to provide proof of ownership. > > Once approved, the party is registered on the Peppol network (SMP+SML+Peppol visibility by default with the `ubl-invoice` doc group) and ready to receive invoices. > [accordion] I get 'XXXX:XXXXXXXXX is already registered' when registering a supplier — what now? > > A supplier with that Participant ID already exists in your workspace. Either reuse the existing party or, if it really is a new entity, check whether it should be registered under an alternative scheme (for example Belgium's `9925` VAT scheme rather than the default `0208`). > [accordion] How do I assign multiple inboxes to a single supplier? > > Register them through different silo entries, even though they represent the same legal party. The supplier must upload proof of ownership for each inbox. > [accordion] What are Participant IDs? > > Unique identifiers for entities on the Peppol network, made up of two parts: > > * **Scheme** — identifies the type of identifier (e.g. `9920` for Spanish VAT, `0208` for Belgian KBO/BCE) > * **Code** — the actual identification number > > Participant IDs are usually based on VAT numbers or local business identifiers, and Invopop can derive them automatically from a Tax ID. Some countries support multiple schemes — Belgium, for example, defaults to `0208` but some entities are only registered under `9925` (VAT). If you hit a "receiver not found" error, the recipient may be registered under an alternative scheme. > [accordion] What visibility level should I set on my Peppol Party? > > Peppol Party visibility determines what you can send and receive: > > * `smp` — SMP only, for testing > * `smp+sml` — SMP and SML, useful when you only want to send > * `smp+sml+peppol` — SMP, SML, and the Peppol Directory, recommended for both sending and receiving (and for being discoverable in the Directory) > > In general, use the highest visibility available. More available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | # Reporting on France PA Source: https://docs.invopop.com/guides/fr-pa-reporting Periodic e-reporting (Flux 10) of B2C and non-regulated B2B transactions to the PPF. E-reporting covers everything that is out of scope for regulated e-invoicing (B2C sales, cross-border B2B, and any flow where one party is not registered in the Annuaire). Instead of routing each invoice individually, you **record** each invoice and payment, Invopop generates a Flux 10 XML for each reporting window, and sends it to the PPF. Invoices and payments must declare the [fr-ctc-flow10-v1](https://docs.gobl.org/addons/fr-ctc-flow10-v1) add-on in `$addons`: GOBL applies the Flux 10 rules when the document is built, and the record step rejects documents that don't carry the add-on. ## Sub-flows Each recorded document is classified into one of four sub-flows based on supplier and customer SIREN: | Flow | Scope | | - | - | | `10.1` | International B2B invoices | | `10.2` | International B2B payments | | `10.3` | Domestic B2C invoices | | `10.4` | Domestic B2C payments | ## Recording workflow Every invoice and payment that requires reporting goes through a single **Record** workflow. The action looks at the supplier and customer SIRENs and files the document into the right sub-flow (10.1 to 10.4) ready for the next report. > [card] [PPF record document for reporting](https://console.invopop.com/redirect/workflows/new?template=fr-reporting-record) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json PPF record document for reporting workflow theme={"system"} > { > "name": "PPF record document for reporting", > "description": "Record a document as a Flux 10 row for French e-reporting", > "steps": [ > { > "id": "753fdc8d-80ce-4a3f-a8ca-c01158e64cf9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "7d204bc6-f42d-4f55-b08a-fca3c19bee15", > "name": "Record document for reporting", > "provider": "gov-fr.reporting.record", > "notes": "Records an invoice/payment for reporting in the local database." > }, > { > "id": "d0660d9a-31b0-4428-b9da-bef14f7ae200", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `completed`{.state .completed}", > "config": { > "state": "completed" > } > } > ], > "rescue": [ > { > "id": "7ec292ea-36f2-49bb-b2ce-bb97bd6a1782", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### Payments For `10.2` international B2B payments set `lines[i].document` on the payment to the invoice it settles. The minimum reference is the invoice number and issue date: ```json theme={"system"} { "code": "INVOICE-NUMBER", "issue_date": "2026-05-15" } ``` This is what tells the record action to file the payment as `10.2` (international B2B payment) rather than `10.4` (domestic B2C payment), and allows GOBL to allocate the cashed amount across the invoice's VAT rates for you. For B2C payments (`10.4`), specify the tax breakdown directly on the payment line: ```json theme={"system"} "lines": [ { "amount": "120.00", "tax": { "categories": [ { "code": "VAT", "rates": [{ "base": "100.00", "percent": "20%", "amount": "20.00"}] } ] } } ] ``` ### Exemption reasons Lines using `exempt`, `reverse-charge`, `intra-community`, `export`, or `outside-scope` rates must include a free-text reason. Add it to the invoice's tax block: ```json theme={"system"} { "tax": { "notes": [ { "cat": "VAT", "key": "intra-community", "text": "Exonération article 262 ter I du CGI — livraison intracommunautaire" } ] } } ``` The `key` must match the rate used on the line. Lines on `standard` or `zero` rates do not need a note. ### Correcting a recorded document To fix a document after it was recorded, run the `gov-fr.reporting.unrecord` action against its silo entry. It removes the document from the pending records so you can correct it and run the record workflow again. * You can unrecord at any time until the window's filing deadline, whatever state its report is in. The next generation rebuilds the report without the document: as a replacement while the report never reached the PPF, or as a corrective filing when it was already submitted. * After the filing deadline a submitted or filed report stands, and its documents can no longer be unrecorded. * Unrecording a document that was never recorded is a no-op, so the action is safe to include in shared correction workflows. ## Submitting reports A separate workflow bundles the records for a closed reporting window into a single Flux 10 report and sends it to the PPF. Invopop runs it automatically on the cadence set by the VAT regime — you do not need to trigger it. Each scheduled run creates a job with **no silo entry**: the declarant SIREN and the stream being reported travel as job arguments. > [card] [PPF generate and send reporting document](https://console.invopop.com/redirect/workflows/new?template=fr-reporting-send) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json PPF generate and send reporting document workflow theme={"system"} > { > "name": "PPF generate and send reporting document", > "description": "Generate and send a French e-reporting transaction", > "schema": "org/party", > "steps": [ > { > "id": "888e98ad-785b-4dc4-b610-8cf39cce9157", > "name": "Generate reporting document", > "provider": "gov-fr.reporting.generate", > "summary": "Generate Transactions report (seller)", > "config": { > "flux_kind": "tx", > "role": "seller" > } > }, > { > "id": "066eac4a-a9c2-486c-aa30-a3d6f49d7582", > "name": "Send document for reporting", > "provider": "gov-fr.reporting.send" > } > ] > } > ``` > [!NOTE] > > Tell Invopop which workflow to run on the schedule: in the **Apps** view, open the **France** app, click **Configure** to open the configuration sidebar, and select this workflow under **Reporting Workflow**. ![France app configuration sidebar with the Reporting Workflow selector](https://mintcdn.com/invopop/VvDQGeKqueK4nkD8/assets/guides/fr-configure.png?fit=max\&auto=format\&n=VvDQGeKqueK4nkD8\&q=85\&s=799b54c576c210e1d92a232250efdde9) Selecting the reporting workflow in the France app configuration sidebar ### Triggering a report manually You can also run the workflow yourself: useful for testing, or to bring a party up to date after onboarding. There are two ways to tell the workflow which declarant to report: * **Job arguments** — create the job with no silo entry and pass the SIREN in `args`. This is what the scheduler does. * **A silo entry** — run the job against the registered party's silo entry, as any other workflow. Whichever you choose, the stream being reported is selected the same way: | Argument | Required | Values | | - | - | - | | `siren` | Only without a silo entry | The declarant's 9-digit SIREN. Takes precedence over the silo entry when both are given. | | `flux-kind` | No | `tx` for transactions, `py` for payments. Falls back to the step configuration. | | `role` | No | `seller` or `buyer`. Falls back to the step configuration. | | `window` | No | A specific closed window to report, such as `2026-SEP-1`. See below. | ```bash Job arguments theme={"system"} curl -X POST "https://api.invopop.com/transform/v1/jobs" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "", "args": { "siren": "", "flux-kind": "tx", "role": "seller" } }' ``` ```bash Silo entry theme={"system"} curl -X POST "https://api.invopop.com/transform/v1/jobs" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "", "silo_entry_id": "", "args": { "flux-kind": "tx", "role": "seller" } }' ``` > [!NOTE] > > `window` is for testing and recovery. Name it `YEAR-MONTH-STEP`: `2026-SEP-1` to `2026-SEP-3` for 10-day windows, `2026-SEP-1` for monthly ones, and `2026-JAN-1` (January–February) for two-month ones. The window must have closed. Forcing a window doesn't change the schedule. ### Picking a VAT regime at supplier registration If you have a single supplier, or all your suppliers have the same cadence, you can configure the **Register party for reporting** step in the [PPF register supplier workflow](/guides/fr-pa-registration#ppf-register-supplier-workflow) to a specific cadence. For multiple suppliers (whitelabel use cases) where different suppliers have different cadence, pass it as a job argument with key `vat-regime` when creating the job. When not stated, the default is `real_normal_monthly`. | VAT regime | `args.vat-regime` | | - | - | | Monthly Actual (default) | `real_normal_monthly` | | Quarterly Actual | `real_normal_quarterly` | | Simplified VAT | `simplified` | | Non-Established Taxpayer | `franchise` | The cadence must match the regime registered with the tax office. If in doubt, check with your local accountant. ## Reading submitted transactions The France dashboard's **Transactions Flow 8 / 9** tab lists every document submitted for e-reporting. In the Console, open the **Apps** view, select the **France** app, and switch to the **Transactions Flow 8 / 9** tab. The tab shows one sub-flow at a time: the Flow type filter is always active, defaults to International B2B invoices (`10.1`), and switches between the four [sub-flows](#sub-flows). It can be changed but not cleared. Each row shows the Document code and Document date, when it was Recorded, whether a report already covers it (Generated report), the Supplier SIREN, the \*low type, the Role (Seller or Buyer; domestic B2C rows carry no role), the Silo entry, and the amounts the report will carry: Currency, Taxable total, Tax total (EUR), Amount (EUR), and FX rate, plus the counterparty identification and, on B2C rows, the category code. > [!NOTE] > > Clicking on the Generated report column opens the [Reporting Flow 10 tab](#reading-generated-reports) filtered to that report. A dash means the row is still waiting for its reporting window to close. Filter the table by **Document code**, **Supplier SIREN**, **Flow type**, or the **Recorded** date range. ## Reading generated reports The **Reporting Flow 10** tab lists the generated Flow 10 XML reports. Each row shows the Reporting period the report covers, the SIREN, the Kind (Transactions for invoice data, Payments for payment data), the Role of the stream (Seller, Buyer), the submission Status, the report Sequence number, the PPF Ack ref, the Submitted at timestamp, and the Period ID. | Status | Meaning | | - | - | | Generated | The XML is built but not yet sent. | | Submitted | Sent to the PPF; awaiting acknowledgement. | | Filed | Acknowledged by the PPF. | | Rejected | The PPF rejected the report. | Click options on this tab: > [!NOTE] > > Clicking Download fetches the exact XML submitted to the PPF, the same payload the [`/xml` endpoint](#reading-whats-filed) returns. Filter the table by **SIREN**, **Period ID**, the **Reporting period** window, or **Kind**. ## Reading what's filed These endpoints expose submission status and the raw report XML, all scoped to the party's SIREN. The party's silo entry ID is still accepted in its place. GET `/v1/reports/:siren` \ Summary per kind (current window, next deadline, last filed report) GET `/v1/reports/:siren/periods` \ Paginated history of filed periods (filter with `?kind=tx` or `?kind=py`) GET `/v1/reports/:siren/periods/:period_id` \ A single period's metadata GET `/v1/reports/:siren/periods/:period_id/xml` \ The raw report XML sent to the PPF GET `/v1/reports/:siren/preview?kind=tx` \ The current window's report as it stands, built on the fly and never stored or sent. Useful for testing: pass `kind=py` for payments and `role=buyer` for the buyer stream. ## FAQ > [accordion] How do I schedule periodic reports for France? > > For TVA, file via DGFiP's portal — Invopop does not generate CA3 yet. For e-reporting (Flow 10): submit via your Plateforme Agréée — Invopop's e-reporting workflow batches transactions per period and submits to the PPF. > [accordion] What format does France expect for periodic reports? > > TVA: DGFiP's EDI-TVA XML schema. E-reporting Flow 10: a structured JSON/XML payload defined by the PPF specification (currently in beta). Invopop emits Flow 10 via the upcoming `fr-ctc-flow10-v1` GOBL addon. > [accordion] How often must I submit France PA reports? > > Flow 10 e-reporting: 3× per month (every 10 days) for B2C and cross-border transactions. Lifecycle status (CDAR): per event, near real-time. Specific deadlines depend on the supplier's tax filing cadence (monthly/quarterly). > [accordion] What format does France PA expect for periodic reports? > > Flow 10 uses a JSON envelope wrapping aggregated transaction data, defined in the PPF technical specification. Lifecycle CDAR payloads are XML messages exchanged over Peppol with structured status codes. > [accordion] How many pops does e-reporting in France cost? > > Recording a transaction for e-reporting (B2C or international B2B) costs **2 pops** per invoice: 1 pop to record it and 1 pop for the silo entry. On top of that, each report submission costs **10 pops**. See [Pops & pricing](/get-started/pricing) for how pops work. > [accordion] A buyer has refused an invoice (210 Refusée). What happens next? > > A refusal cancels the invoice. It can't be corrected, re-sent, or > revived — the transaction has to be re-invoiced from scratch, and the > refusal is reported to the DGFiP. > > | Who | What they do | > | - | - | > | **Buyer** | Refuses with a reason code, and does not book the invoice (or reverses the entry if already booked). Their input VAT for the period drops accordingly. | > | **Supplier** | Reverses the invoice in their own accounts with an internal credit note (*avoir interne*), which stays internal and is never sent. Adjusts output VAT for the period. | > | **Supplier** | Fixes the underlying problem, then issues a replacement as a new invoice with a new number. The refused number is never reused. | > | **Invopop** | Records the refusal against the original invoice, passes the reason code back to you, and forwards the mandatory copy to the PPF. | > > **Refusal is not a dispute.** It is reserved for a short list of > grounds: a legal or contractual omission the platforms don't check > (a missing PO reference, for instance), a transaction the buyer > doesn't recognise, or an objective contractual block. Disagreement > over price, quantity, or delivery is a dispute — the invoice stays > in force and payable while the parties sort it out. Expect buyers to > reach for "refuse" when they mean "contest", and give them a > separate path if you're building the UI. > > **Payment terms restart.** The replacement invoice carries its own > due date, so agree explicitly with the counterparty how late-payment > penalties are treated across the gap rather than assuming the > original clock survives. > > **Most refusals are preventable.** The common grounds trace back to > the mandatory mentions: buyer SIREN, delivery address where it > differs from billing, nature of the operation, and any PO reference > the buyer requires. Getting those right on issue removes most of the > exposure. More available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | # Invoice lifecycle status in France Source: https://docs.invopop.com/guides/fr-pa-status Build, send and receive lifecycle status and payment updates (CDAR) for B2B invoices. Lifecycle status updates on domestic B2B invoices are exchanged between PAs over Peppol, with the mandatory codes also forwarded to the PPF. Statuses on invoices received from a public entity travel to Chorus Pro instead; see the [public sector guide](/guides/fr-pa-b2g#receiving-from-a-public-entity-g2b). Each status must be built as a GOBL silo entry and processed through the [invoicing workflow](/guides/fr-pa-invoicing#sending). Which codes you send depends on whether you operate the supplier or the buyer PA (see [Status codes](#status-codes) for who issues each). ## Status codes Status codes correspond to a lifecycle event that is modeled as a GOBL document that matches its purpose. Payment events 211 and 212 are GOBL [bill/payment](https://docs.gobl.org/draft-0/bill/payment#payment) documents. Other codes are invoice lifecycle events [bill/status](https://docs.gobl.org/draft-0/bill/status#status). The `fr-ctc-flow6-v1` addon maps each document to its CDV `ProcessConditionCode`. You set the GOBL fields, not the code. ### Issued by the platform Invopop automatically emits 200 on the invoices you send and 213 on the invoices your parties receive, automatically, as the Plateforme Agréée — you never build or send these. 201 is optional: Invopop doesn't emit it in every case, and if your process needs it you can send it yourself as a `bill/status` with a line of key `issued`, like any other status (see the [201 example](#examples)). > [!NOTE] > > Don't rely on receiving a 201. The regulatory confirmation is the PPF's acceptance of the F1 copy and the 200 status, which the [Forward document to PPF](/guides/fr-pa-invoicing#sending) step waits for. | Status | Document | Notes | | - | - | - | | 200 Déposée / Deposited | — | Generated when the invoice is recorded on the platform, and transmitted to the PPF together with the F1 copy by the **Forward document to PPF** step. | | 201 Émise par la plateforme / Issued by platform | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Signals that the platform issued the invoice. You may send it yourself, or receive it on the buyer side — no action needed. | | 213 Rejetée / Rejected by platform | — | Raised by a platform that rejects an invoice it received. Forwarded to the PPF. See below for where it comes from. | A 213 depends on which side of the invoice you are on: * **Invoices your parties receive**: Invopop raises it when an incoming invoice fails its controls (see [Receiving](/guides/fr-pa-invoicing#receiving)). * **Invoices you send**: the buyer's platform may raise one, and it arrives through your receive workflow like any other status. The PPF also raises one when it rejects the deposit, for example as a duplicate; the **Forward document to PPF** step then fails with the PPF's reasons in the job's [faults](/api-ref/transform/jobs/fetch-a-job#response-faults). * **Invoices that fail Invopop's checks before sending**: there is no 213. The send job fails, with the reasons in its faults. ### Issued by the buyer | Status | Document | Notes | | - | - | - | | 202 Reçue par la PA / Received by recipient | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Acknowledge that the invoice has been received. | | 203 Mise à disposition / Made available | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. The invoice has been made available to the buyer. | | 204 Prise en charge / Taken into account | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Signal that the invoice is being processed. | | 205 Approuvée / Approved | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Approve the invoice in full. | | 206 Partiellement approuvée / Partially approved | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Approve part of the invoice; requires a [reason](#available-reasons-for-codes), typically with an `action` requesting a partial credit note. | | 207 En litige / Disputed | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Dispute the invoice; requires a [reason](#available-reasons-for-codes). | | 208 Suspendue / Suspended | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Pause processing while the supplier provides missing information; requires a [reason](#available-reasons-for-codes). | | 210 Refusée / Refused by buyer | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | **Mandatory** when refusing an invoice; requires a [reason](#available-reasons-for-codes). Forwarded to the PPF. | | 211 Paiement transmis / Payment advice | [bill/payment](https://docs.gobl.org/draft-0/bill/payment#payment) | Optional. Notify the supplier that a payment has been sent. | ### Issued by the supplier | Status | Document | Notes | | - | - | - | | 209 Complétée / Completed | [bill/status](https://docs.gobl.org/draft-0/bill/status#status) | Optional. Lift a `208` suspension by supplying the requested data. | | 212 Encaissée / Cashed | [bill/payment](https://docs.gobl.org/draft-0/bill/payment#payment) | **Mandatory** when the invoice is paid. Forwarded to the PPF. | ## Invoice lifecycle After an invoice is issued it moves through a sequence of lifecycle events. Each event is a [GOBL status](https://docs.gobl.org/draft-0/bill/status) or [GOBL payment](https://docs.gobl.org/draft-0/bill/payment) that references the invoice and carries one CDV `ProcessConditionCode`. For the full list of codes see [Status codes](#status-codes). The paths below are **common examples, not an exhaustive set**: any code can in principle follow another (e.g. a 205 approval can still be followed by a 210 refusal). The typical sequences are: | Happy path | Partial approval | Dispute resolved | | :-: | :-: | :-: | | 201 Issued ↓ 202 Received ↓ 203 Made available ↓ 204 Taken into account ↓ 205 Approved ↓ 211 Payment advice ↓ 212 Receipt | 201 Issued ↓ 202 Received ↓ 206 Partially approved ↓ 212 Receipt | 201 Issued ↓ 202 Received ↓ 207 In dispute ↓ 208 Suspended ↓ 209 Completed ↓ 205 Approved ↓ 212 Receipt | ```mermaid theme={"system"} flowchart LR S201[201 issued] --> S202[202 received] S202 --> S203[203 made available] S203 --> S204[204 taken into account] S204 --> S205[205 approved] S202 --> S206[206 partial] S202 --> S207[207 dispute] S202 --> S210[210 refused] S207 --> S208[208 suspended] S208 --> S209[209 completed] S209 --> S205 S205 --> P211[211 advice] P211 --> P212[212 receipt] S206 --> P212 ``` ## Workflows > [!NOTE] > > A status is sent or received with the **same workflow as an invoice**. There is no dedicated status workflow. The invoicing workflow will generate the appropriate format for each type (CDAR) and report to the tax authority when required. If you have installed the [workflows from the invoicing guide](/guides/fr-pa-invoicing#workflows), then you're ready to generate status lifecycle events. To receive the statuses your counterparties send, the Peppol app's **Incoming Workflow** must point at the receive workflow (see [Receiving](/guides/fr-pa-invoicing#receiving)). ## Building a status You never set the CDV code directly — you build the GOBL document and the `fr-ctc-flow6-v1` addon derives it. Start from the schema and let the document `type` plus the line `key` select the code. Each [example](#examples) shows its type and key pair. In this example, `response` + `accepted` derives 205. ```json bill/status focus={2-4,12} theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/status", "$addons": ["fr-ctc-flow6-v1"], "type": "response", "issue_date": "2026-06-19", "code": "ST-205", "supplier": { /* ... */ }, "customer": { /* ... */ }, "lines": [ { "key": "accepted", "doc": { "series": "INV", "code": "2026-0042", "issue_date": "2026-06-19" } } ] } ``` Keep the same `supplier` and `customer` as on the invoice, whichever direction the event travels, and point the line's `doc` at the invoice's full number and issue date. When it records the status, the platform resolves the invoice by supplier SIREN + number + year and writes the invoice's UUID into the line's `doc.uuid`. From then on the two are linked, both in the console's **Related** tab and through the API's [Find related entries](/api-ref/silo/entries/find-related) endpoint. Some statuses can be recorded even when no invoice matches; they're stored without the link. ```json bill/status focus={7-8,11} theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/status", "$addons": ["fr-ctc-flow6-v1"], "type": "response", "issue_date": "2026-06-19", "code": "ST-205", "supplier": { /* Same as invoice */ }, "customer": { /* Same as invoice */ }, "lines": [ { "key": "accepted", "doc": { "series": "INV", "code": "2026-0042", "issue_date": "2026-06-19" } } ] } ``` The line `key: rejected` covers three outcomes: * 210 Refused (default). * 207 Disputed. * 206 Partially approved. To pin statuses 206 or 207, set the `fr-ctc-flow6-status` extension: ```json bill/status focus={3-4} theme={"system"} "lines": [ { "key": "rejected", "ext": { "fr-ctc-flow6-status": "206" }, "doc": { "series": "INV", "code": "2026-0042", "issue_date": "2026-06-19" } } ] ``` For 211 (payment advice) and 212 (cashed) set a payment schema. Its `type` alone derives the code and the payment methods carry the amount, while the invoice reference sits in the line's document field. Codes for each payment direction are derived and there's no need to swap parties. ```json bill/payment focus={2-3,10,14} theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/payment", "type": "receipt", "$addons": ["fr-ctc-flow6-v1"], "issue_date": "2026-06-19", "code": "PAY-0042", "currency": "EUR", "supplier": { "name": "Example Supplier SARL", "identities": [{ "type": "SIREN", "code": "698680774" }] }, "customer": { "name": "Example Customer SAS", "identities": [{ "type": "SIREN", "code": "698681771" }] }, "methods": [{ "key": "credit-transfer", "amount": "120.00" }], "lines": [ { "amount": "120.00", "document": { "series": "INV", "code": "2026-0042", "issue_date": "2026-06-19" } } ] } ``` ### Reasons, faults and actions Codes 206, 207, 208 and 210 must carry at least one `reason` on the line. The reason says why, the faults say which field, and the actions say what the supplier should do next. | Field | What it carries | | - | - | | `reasons[].key` | The reason category. On its own the addon fills the category's default [reason code](#available-reasons-for-codes). | | `reasons[].ext` | The exact CDV code via `fr-ctc-flow6-reason`, when the default is not the one you mean. | | `reasons[].faults[]` | The affected field. `DIV` is the value found, `DVA` the value expected; `message` holds the value and `paths` its location in the invoice XML. | | `actions[]` | The requested follow-up: `provide` missing information, `reissue` a corrected invoice, or a credit note (`credit-full` / `credit-partial`). | Together on a 206 partial-approval line — "you invoiced 10, we approved 8, send a partial credit note": ```json focus={3-4,6-7,12} theme={"system"} "reasons": [ { "key": "quantity", "ext": { "fr-ctc-flow6-reason": "QTE_ERR" }, "faults": [ { "code": "DIV", "message": "Quantité facturée: 10", "paths": ["…/ram:BasisQuantity"] }, { "code": "DVA", "message": "Quantité approuvée: 8", "paths": ["…/ram:BasisQuantity"] } ] } ], "actions": [ { "key": "credit-partial", "description": "Créer un avoir partiel pour les 2 unités non livrées" } ] ``` The supplier's 209 Complétée uses the same structure in reverse: it lifts a 208 suspension by returning the requested data as a fault — code `MAJ`, with the corrected value in `message`. See the [209 example](#examples). #### Available reasons for codes > [accordion] 206 — Partiellement approuvée (Partially Approved) > > AUTRE is the default if the reason code is omitted > > | Reason code | French | English | > | - | - | - | > | `AUTRE` ⚹ | Autre | Other | > | `TX_TVA_ERR` | Taux de TVA erroné | Incorrect VAT rate | > | `MONTANTTOTAL_ERR` | Montant total erroné | Incorrect total amount | > | `CALCUL_ERR` | Erreur de calcul de la facture | Invoice calculation error | > | `NON_CONFORME` | Mention légale manquante | Missing legal mention | > | `DOUBLON` | Facture en doublon | Duplicate invoice | > | `DEST_ERR` | Erreur de destinataire | Recipient error | > | `TRANSAC_INC` | Transaction inconnue | Unknown transaction | > | `EMMET_INC` | Émetteur inconnu | Unknown issuer | > | `CONTRAT_TERM` | Contrat terminé | Contract ended | > | `DOUBLE_FACT` | Double facture | Double invoicing | > | `CMD_ERR` | N° de commande incorrect ou manquant | Incorrect or missing order number | > | `ADR_ERR` | Adresse de facturation électronique erronée | Incorrect electronic billing address | > | `SIRET_ERR` | SIRET erroné ou absent | Incorrect or missing SIRET | > | `CODE_ROUTAGE_ERR` | CODE\_ROUTAGE absent ou erroné | Missing or incorrect routing code | > | `REF_CT_ABSENT` | Référence contractuelle nécessaire | Contractual reference required | > | `REF_ERR` | Référence incorrecte | Incorrect reference | > | `PU_ERR` | Prix unitaires incorrects | Incorrect unit prices | > | `REM_ERR` | Remise erronée | Incorrect discount | > | `QTE_ERR` | Quantité facturée incorrecte | Incorrect invoiced quantity | > | `ART_ERR` | Article facturé incorrect | Incorrect invoiced item | > | `MODPAI_ERR` | Modalités de paiement incorrectes | Incorrect payment terms | > | `QUALITE_ERR` | Qualité d'article livré incorrecte | Incorrect quality of delivered item | > | `LIVR_INCOMP` | Problème de livraison | Delivery problem | > [accordion] 207 — En litige (Disputed) > > AUTRE is the default if the reason code is omitted > > | Reason code | French | English | > | - | - | - | > | `AUTRE` ⚹ | Autre | Other | > | `TX_TVA_ERR` | Taux de TVA erroné | Incorrect VAT rate | > | `MONTANTTOTAL_ERR` | Montant total erroné | Incorrect total amount | > | `CALCUL_ERR` | Erreur de calcul de la facture | Invoice calculation error | > | `NON_CONFORME` | Mention légale manquante | Missing legal mention | > | `DOUBLON` | Facture en doublon | Duplicate invoice | > | `DEST_ERR` | Erreur de destinataire | Recipient error | > | `TRANSAC_INC` | Transaction inconnue | Unknown transaction | > | `EMMET_INC` | Émetteur inconnu | Unknown issuer | > | `CONTRAT_TERM` | Contrat terminé | Contract ended | > | `DOUBLE_FACT` | Double facture | Double invoicing | > | `CMD_ERR` | N° de commande incorrect ou manquant | Incorrect or missing order number | > [accordion] 208 — Suspendue (Suspended) > > JUSTIF\_ABS is the default if the reason code is omitted > > | Reason code | French | English | > | - | - | - | > | `JUSTIF_ABS` ⚹ | Justificatif absent ou insuffisant | Missing or insufficient supporting document | > | `SIRET_ERR` | SIRET erroné ou absent | Incorrect or missing SIRET | > | `CODE_ROUTAGE_ERR` | CODE\_ROUTAGE absent ou erroné | Missing or incorrect routing code | > | `REF_CT_ABSENT` | Référence contractuelle nécessaire | Contractual reference required | > | `REF_ERR` | Référence incorrecte | Incorrect reference | > | `CMD_ERR` | N° de commande incorrect ou manquant | Incorrect or missing order number | > | `ADR_ERR` | Adresse de facturation électronique erronée | Incorrect electronic billing address | > [accordion] 210 — Refusée (Refused by buyer) > > TRANSAC\_INC is the default if the reason code is omitted > > | Reason code | French | English | > | - | - | - | > | `TRANSAC_INC` ⚹ | Transaction inconnue | Unknown transaction | > | `TX_TVA_ERR` | Taux de TVA erroné | Incorrect VAT rate | > | `MONTANTTOTAL_ERR` | Montant total erroné | Incorrect total amount | > | `CALCUL_ERR` | Erreur de calcul de la facture | Invoice calculation error | > | `NON_CONFORME` | Mention légale manquante | Missing legal mention | > | `DOUBLON` | Facture en doublon | Duplicate invoice | > | `DEST_ERR` | Erreur de destinataire | Recipient error | > | `EMMET_INC` | Émetteur inconnu | Unknown issuer | > | `CONTRAT_TERM` | Contrat terminé | Contract ended | > | `DOUBLE_FACT` | Double facture | Double invoicing | > | `CMD_ERR` | N° de commande incorrect ou manquant | Incorrect or missing order number | > | `ADR_ERR` | Adresse de facturation électronique erronée | Incorrect electronic billing address | > | `REF_CT_ABSENT` | Référence contractuelle nécessaire | Contractual reference required | ### Examples One example per code you build, including the optional 201, each referencing the same invoice (`INV-2026-0042`, supplier SIREN `698680774`). Every example pairs the **Minimal** hand-authored GOBL input with the **Built version** produced by `gobl build` — which adds the derived fields (the `fr-ctc-flow6-*` extensions, party roles, ISO scheme ids and endpoints). The interesting detail is on the **dispute / partial / refusal** codes: their `reason` carries `faults` (the exact field, its actual vs expected value, and the XML path) plus an `action` telling the issuer what to do next. The plain acknowledgements (`201`–`205`) carry no reason — the code itself is the message. > [accordion] 201 — Émise par la plateforme (Issued by platform) > > `bill.Status` · `type: response` · line `key: issued`. Optional: send it only if your process needs it. A plain acknowledgement — no reason or action. > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-201", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "issued", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-201", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "issued", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "ext": { > "fr-ctc-flow6-status": "201" > } > } > ] > } > ``` > [accordion] 202 — Reçue par la PA (Received) > > `bill.Status` · `type: response` · line `key: acknowledged`. A plain acknowledgement. > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-202", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "acknowledged", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-202", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "acknowledged", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "ext": { > "fr-ctc-flow6-status": "202" > } > } > ] > } > ``` > [accordion] 203 — Mise à disposition (Made available) > > `bill.Status` · `type: response` · line `key: other`. A plain acknowledgement. > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-203", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "other", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-203", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "other", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "ext": { > "fr-ctc-flow6-status": "203" > } > } > ] > } > ``` > [accordion] 204 — Prise en charge (Taken into account) > > `bill.Status` · `type: response` · line `key: processing`. A plain acknowledgement. > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-204", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "processing", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-204", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "processing", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "ext": { > "fr-ctc-flow6-status": "204" > } > } > ] > } > ``` > [accordion] 205 — Approuvée (Approved) > > `bill.Status` · `type: response` · line `key: accepted`. A plain acknowledgement — the invoice is fully approved. > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-205", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "accepted", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-205", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "accepted", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "ext": { > "fr-ctc-flow6-status": "205" > } > } > ] > } > ``` > [accordion] 206 — Approuvée partiellement (Partially approved) > > `bill.Status` · `type: response` · line `key: rejected` + pinned ext `206`. The `reason` faults show the **invoiced vs approved quantity**; the `action` requests a partial credit note (`credit-partial` → CNP). > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-206", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "rejected", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > }, > "ext": { > "fr-ctc-flow6-status": "206" > }, > "reasons": [ > { > "key": "quantity", > "description": "Quantité facturée supérieure à la quantité livrée", > "ext": { > "fr-ctc-flow6-reason": "QTE_ERR" > }, > "faults": [ > { > "code": "DIV", > "message": "Quantité facturée: 10", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossProductTradePrice/ram:BasisQuantity" > ] > }, > { > "code": "DVA", > "message": "Quantité approuvée: 8", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossProductTradePrice/ram:BasisQuantity" > ] > } > ] > } > ], > "actions": [ > { > "key": "credit-partial", > "description": "Créer un avoir partiel pour les 2 unités non livrées" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-206", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "rejected", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "reasons": [ > { > "key": "quantity", > "description": "Quantité facturée supérieure à la quantité livrée", > "faults": [ > { > "code": "DIV", > "message": "Quantité facturée: 10", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossProductTradePrice/ram:BasisQuantity" > ] > }, > { > "code": "DVA", > "message": "Quantité approuvée: 8", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeAgreement/ram:GrossProductTradePrice/ram:BasisQuantity" > ] > } > ], > "ext": { > "fr-ctc-flow6-condition": "DIV", > "fr-ctc-flow6-reason": "QTE_ERR" > } > } > ], > "actions": [ > { > "key": "credit-partial", > "description": "Créer un avoir partiel pour les 2 unités non livrées", > "ext": { > "fr-ctc-flow6-action": "CNP" > } > } > ], > "ext": { > "fr-ctc-flow6-status": "206" > } > } > ] > } > ``` > [accordion] 207 — En litige (In dispute) > > `bill.Status` · `type: response` · line `key: rejected` + pinned ext `207`. The `reason` faults pinpoint the disputed field — **actual VAT rate (DIV) vs expected (DVA)** and its XML path; the `action` requests a full credit note (`credit-full` → CNF). > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-207", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "rejected", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > }, > "ext": { > "fr-ctc-flow6-status": "207" > }, > "reasons": [ > { > "key": "legal", > "description": "Taux de TVA erroné", > "ext": { > "fr-ctc-flow6-reason": "TX_TVA_ERR" > }, > "faults": [ > { > "code": "DIV", > "message": "Taux TVA (BT-152): 10.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > }, > { > "code": "DVA", > "message": "Taux TVA (BT-152): 20.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > } > ] > } > ], > "actions": [ > { > "key": "credit-full", > "description": "Créer un avoir total puis réémettre" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-207", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "rejected", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "reasons": [ > { > "key": "legal", > "description": "Taux de TVA erroné", > "faults": [ > { > "code": "DIV", > "message": "Taux TVA (BT-152): 10.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > }, > { > "code": "DVA", > "message": "Taux TVA (BT-152): 20.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > } > ], > "ext": { > "fr-ctc-flow6-condition": "DIV", > "fr-ctc-flow6-reason": "TX_TVA_ERR" > } > } > ], > "actions": [ > { > "key": "credit-full", > "description": "Créer un avoir total puis réémettre", > "ext": { > "fr-ctc-flow6-action": "CNF" > } > } > ], > "ext": { > "fr-ctc-flow6-status": "207" > } > } > ] > } > ``` > [accordion] 208 — Suspendue (Suspended) > > `bill.Status` · `type: response` · line `key: querying`. The `reason` names **what is missing** (order reference); the `action` asks the supplier to provide it (`provide` → PIN). > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-208", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "querying", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > }, > "reasons": [ > { > "key": "references", > "description": "Référence de commande manquante", > "ext": { > "fr-ctc-flow6-reason": "CMD_ERR" > } > } > ], > "actions": [ > { > "key": "provide", > "description": "Fournir le numéro de commande" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-208", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "querying", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "reasons": [ > { > "key": "references", > "description": "Référence de commande manquante", > "ext": { > "fr-ctc-flow6-condition": "DIV", > "fr-ctc-flow6-reason": "CMD_ERR" > } > } > ], > "actions": [ > { > "key": "provide", > "description": "Fournir le numéro de commande", > "ext": { > "fr-ctc-flow6-action": "PIN" > } > } > ], > "ext": { > "fr-ctc-flow6-status": "208" > } > } > ] > } > ``` > [accordion] 209 — Complétée (Completed) > > `bill.Status` · `type: update` · line `key: other`. Issued by the supplier to lift a suspension raised over bank details: a `finance-terms` reason (condition `CBB`, *coordonnées bancaires à modifier*) whose fault **supplies the corrected IBAN** — code `MAJ` (the value to apply), the IBAN in the `message`, and the `paths` pointing at the invoice's IBAN field (BT-84). > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "update", > "issue_date": "2026-06-19", > "code": "ST-209", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "other", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > }, > "description": "Coordonnées bancaires du bénéficiaire fournies", > "reasons": [ > { > "key": "finance-terms", > "description": "Nouvel IBAN du bénéficiaire", > "ext": { > "fr-ctc-flow6-reason": "COORD_BANC_ERR" > }, > "faults": [ > { > "code": "MAJ", > "message": "IBAN (BT-84): FR7630006000011234567890189", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount/ram:IBANID" > ] > } > ] > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "update", > "issue_date": "2026-06-19", > "code": "ST-209", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "other", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "description": "Coordonnées bancaires du bénéficiaire fournies", > "reasons": [ > { > "key": "finance-terms", > "description": "Nouvel IBAN du bénéficiaire", > "faults": [ > { > "code": "MAJ", > "message": "IBAN (BT-84): FR7630006000011234567890189", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount/ram:IBANID" > ] > } > ], > "ext": { > "fr-ctc-flow6-condition": "CBB", > "fr-ctc-flow6-reason": "COORD_BANC_ERR" > } > } > ], > "ext": { > "fr-ctc-flow6-status": "209" > } > } > ] > } > ``` > [accordion] 210 — Refusée (Refused by buyer) > > `bill.Status` · `type: response` · line `key: rejected`. The `reason` faults pinpoint the failing field; the `action` asks for a corrected reissue (`reissue` → NIN). > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-210", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "lines": [ > { > "key": "rejected", > "date": "2026-06-19", > "doc": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > }, > "reasons": [ > { > "key": "legal", > "description": "Taux de TVA erroné", > "ext": { > "fr-ctc-flow6-reason": "TX_TVA_ERR" > }, > "faults": [ > { > "code": "DIV", > "message": "Taux TVA (BT-152): 10.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > }, > { > "code": "DVA", > "message": "Taux TVA (BT-152): 20.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > } > ] > } > ], > "actions": [ > { > "key": "reissue", > "description": "Réémettre la facture avec le taux de TVA corrigé" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "response", > "issue_date": "2026-06-19", > "code": "ST-210", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "index": 1, > "key": "rejected", > "date": "2026-06-19", > "doc": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "reasons": [ > { > "key": "legal", > "description": "Taux de TVA erroné", > "faults": [ > { > "code": "DIV", > "message": "Taux TVA (BT-152): 10.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > }, > { > "code": "DVA", > "message": "Taux TVA (BT-152): 20.00%", > "paths": [ > "/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:RateApplicablePercent" > ] > } > ], > "ext": { > "fr-ctc-flow6-condition": "DIV", > "fr-ctc-flow6-reason": "TX_TVA_ERR" > } > } > ], > "actions": [ > { > "key": "reissue", > "description": "Réémettre la facture avec le taux de TVA corrigé", > "ext": { > "fr-ctc-flow6-action": "NIN" > } > } > ], > "ext": { > "fr-ctc-flow6-status": "210" > } > } > ] > } > ``` > [accordion] 211 — Paiement transmis (Payment advice) > > `bill.Payment` · `type: advice`. Issued by the buyer (payer); the `methods` carry the amount and the `value_date` the payment date. Because it is payer-issued, the **built version inverts the CDV roles** — `BY` on the supplier and `SE` on the customer (you still place the seller in `supplier` and the buyer in `customer`, direction is automatic). > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "advice", > "issue_date": "2026-06-19", > "value_date": "2026-06-19", > "series": "PAY", > "code": "2026-0042-A", > "currency": "EUR", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "methods": [ > { > "key": "credit-transfer", > "amount": "120.00" > } > ], > "lines": [ > { > "amount": "120.00", > "document": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > }, > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "100.00", > "percent": "20.0%", > "amount": "20.00" > } > ] > } > ] > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "advice", > "series": "PAY", > "code": "2026-0042-A", > "issue_date": "2026-06-19", > "value_date": "2026-06-19", > "currency": "EUR", > "ext": { > "fr-ctc-flow6-condition": "MPA", > "fr-ctc-flow6-status": "211" > }, > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "i": 1, > "document": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "amount": "120.00", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "100.00", > "percent": "20.0%", > "amount": "20.00" > } > ], > "amount": "20.00" > } > ], > "sum": "20.00" > } > } > ], > "methods": [ > { > "key": "credit-transfer", > "amount": "120.00" > } > ], > "total": "120.00" > } > ``` > [accordion] 212 — Encaissée (Payment receipt) > > `bill.Payment` · `type: receipt`. Issued by the supplier (payee); the `methods` carry the amount received. > > ```json Minimal theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "receipt", > "issue_date": "2026-06-19", > "value_date": "2026-06-19", > "series": "PAY", > "code": "2026-0042-R", > "currency": "EUR", > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698680774" > } > ] > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771" > } > ], > "inboxes": [ > { > "scheme": "0225", > "code": "698681771" > } > ] > }, > "methods": [ > { > "key": "credit-transfer", > "amount": "120.00" > } > ], > "lines": [ > { > "amount": "120.00", > "document": { > "series": "INV", > "code": "2026-0042", > "issue_date": "2026-06-19", > "ext": { > "untdid-document-type": "380" > } > }, > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "100.00", > "percent": "20.0%", > "amount": "20.00" > } > ] > } > ] > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "FR", > "$addons": [ > "fr-ctc-flow6-v1" > ], > "type": "receipt", > "series": "PAY", > "code": "2026-0042-R", > "issue_date": "2026-06-19", > "value_date": "2026-06-19", > "currency": "EUR", > "ext": { > "fr-ctc-flow6-condition": "MEN", > "fr-ctc-flow6-status": "212" > }, > "supplier": { > "name": "Example Supplier SARL", > "tax_id": { > "country": "FR", > "code": "83698680774" > }, > "identities": [ > { > "type": "SIREN", > "code": "698680774", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698680774" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698680774" > } > ], > "ext": { > "fr-ctc-flow6-role": "SE" > } > }, > "customer": { > "name": "Example Customer SAS", > "tax_id": { > "country": "FR", > "code": "67698681771" > }, > "identities": [ > { > "type": "SIREN", > "code": "698681771", > "ext": { > "iso-scheme-id": "0002" > } > } > ], > "endpoints": [ > { > "uri": "iso6523-actorid-upis::0225:698681771" > } > ], > "inboxes": [ > { > "key": "peppol", > "scheme": "0225", > "code": "698681771" > } > ], > "ext": { > "fr-ctc-flow6-role": "BY" > } > }, > "lines": [ > { > "i": 1, > "document": { > "issue_date": "2026-06-19", > "series": "INV", > "code": "2026-0042", > "ext": { > "untdid-document-type": "380" > } > }, > "amount": "120.00", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "100.00", > "percent": "20.0%", > "amount": "20.00" > } > ], > "amount": "20.00" > } > ], > "sum": "20.00" > } > } > ], > "methods": [ > { > "key": "credit-transfer", > "amount": "120.00" > } > ], > "total": "120.00" > } > ``` ## Reading submitted statuses The France dashboard's **E-Invoicing Flow 6** tab lists every lifecycle status sent or received by the workspace, newest first. In the Console, open the **Apps** view, select the **France** app, and switch to the **E-Invoicing Flow 6** tab. Each row shows the referenced Invoice code and Invoice year, the CDAR Code (for example 205 Approved), the Silo entry that holds the status document, the Owner SIREN, the invoice's Supplier SIREN, the Role (Sender when you issued the status, Receiver when it arrived from the counterparty's PA), the PPF status of the mandatory forward (same vocabulary as the [invoicing guide](/guides/fr-pa-invoicing#reading-submitted-invoices)), the Issue date, and the Invoice ID this status was recorded against. The PPF status only applies to the [mandatory status codes](#status-codes) — 200 Déposée, 210 Refusée, 212 Encaissée, and 213 Rejetée, the only ones forwarded to the PPF. All other codes are exchanged between PAs over Peppol only, so their PPF status stays at Ready. Statuses recorded against a [VAT-exempt invoice](/guides/fr-pa-invoicing#vat-exempt-invoices) show Exempt and are never forwarded. That invoice was never deposited, so the PPF has nothing to record a status against. > [!NOTE] > > Clicking the Invoice code looks up the exact invoice on the **E-Invoicing Flow 2** tab, filtered by the Invoice ID. Filter the table by **Owner SIREN**, **Invoice ID**, **Invoice code**, or **Status code**. Via the API, a recorded status carries the invoice's UUID in `lines[].doc.uuid`, including statuses received from another PA. To list every status recorded against an invoice, call [Find related entries](/api-ref/silo/entries/find-related) on the invoice's entry. ## FAQ > [accordion] How do I schedule periodic reports for France? > > For TVA, file via DGFiP's portal — Invopop does not generate CA3 yet. For e-reporting (Flow 10): submit via your Plateforme Agréée — Invopop's e-reporting workflow batches transactions per period and submits to the PPF. > [accordion] What format does France expect for periodic reports? > > TVA: DGFiP's EDI-TVA XML schema. E-reporting Flow 10: a structured JSON/XML payload defined by the PPF specification (currently in beta). Invopop emits Flow 10 via the upcoming `fr-ctc-flow10-v1` GOBL addon. > [accordion] How often must I submit France PA reports? > > Flow 10 e-reporting: 3× per month (every 10 days) for B2C and cross-border transactions. Lifecycle status (CDAR): per event, near real-time. Specific deadlines depend on the supplier's tax filing cadence (monthly/quarterly). > [accordion] What format does France PA expect for periodic reports? > > Flow 10 uses a JSON envelope wrapping aggregated transaction data, defined in the PPF technical specification. Lifecycle CDAR payloads are XML messages exchanged over Peppol with structured status codes. > [accordion] How many pops does e-reporting in France cost? > > Recording a transaction for e-reporting (B2C or international B2B) costs **2 pops** per invoice: 1 pop to record it and 1 pop for the silo entry. On top of that, each report submission costs **10 pops**. See [Pops & pricing](/get-started/pricing) for how pops work. > [accordion] A buyer has refused an invoice (210 Refusée). What happens next? > > A refusal cancels the invoice. It can't be corrected, re-sent, or > revived — the transaction has to be re-invoiced from scratch, and the > refusal is reported to the DGFiP. > > | Who | What they do | > | - | - | > | **Buyer** | Refuses with a reason code, and does not book the invoice (or reverses the entry if already booked). Their input VAT for the period drops accordingly. | > | **Supplier** | Reverses the invoice in their own accounts with an internal credit note (*avoir interne*), which stays internal and is never sent. Adjusts output VAT for the period. | > | **Supplier** | Fixes the underlying problem, then issues a replacement as a new invoice with a new number. The refused number is never reused. | > | **Invopop** | Records the refusal against the original invoice, passes the reason code back to you, and forwards the mandatory copy to the PPF. | > > **Refusal is not a dispute.** It is reserved for a short list of > grounds: a legal or contractual omission the platforms don't check > (a missing PO reference, for instance), a transaction the buyer > doesn't recognise, or an objective contractual block. Disagreement > over price, quantity, or delivery is a dispute — the invoice stays > in force and payable while the parties sort it out. Expect buyers to > reach for "refuse" when they mean "contest", and give them a > separate path if you're building the UI. > > **Payment terms restart.** The replacement invoice carries its own > due date, so agree explicitly with the counterparty how late-payment > penalties are treated across the gap rather than assuming the > original clock survives. > > **Most refusals are preventable.** The common grounds trace back to > the mandatory mentions: buyer SIREN, delivery address where it > differs from billing, nature of the operation, and any PO reference > the buyer requires. Getting those right on issue removes most of the > exposure. More available in our [France FAQ](/faq/france) section *** > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | # What is GOBL? Source: https://docs.invopop.com/guides/gobl Learn about GOBL (Go Business Language), the universal format for structured business documents used by Invopop GOBL, the Go Business Language, is an open-source library and toolkit designed to help developers build electronic business documents anywhere in the world. Created by [Invopop](https://invopop.com), GOBL simplifies the complex landscape of international invoicing and business document standards by providing a single, modern format that works globally. ## Understanding the problem If you've ever had to build an invoice or other business document in XML, EDI, or PDF, you've likely experienced the frustration. Traditional specifications are usually very hard to read and interpret, and even harder to implement correctly. Building business documents internationally is even more challenging. While standards bodies aim for global consensus, most countries customize standards for their local market, making it practically impossible to build a single implementation that works everywhere. Most standards are also just definitions of data structures—they don't define local taxes, let alone validation rules or calculations. This means developers must research tax rates, implement validation logic, and write calculation algorithms for each country they support. The result is duplicated effort, inconsistent implementations, and ongoing maintenance headaches. GOBL seeks to solve this problem by providing a single source of truth in code. Instead of depending on slow-moving standards bodies and mediocre implementations, GOBL brings the agility of open-source software development to the world of business documents. ## What GOBL provides GOBL is an open-source SDK that combines several essential components into one unified solution. At its foundation, GOBL defines a set of open [JSON Schema](https://json-schema.org/) specifications that describe the structure of business documents. These schemas are automatically generated from Go code, ensuring consistency between the reference implementation and the schema definitions. Beyond just defining structures, GOBL builds a global collection of local tax categories and, whenever practical, provides current and historical tax rates in code. Each tax regime in GOBL is defined as structured data that includes tax types, rates, and rules for different countries. This means when you create an invoice, you don't need to manually look up tax rates—GOBL handles it automatically based on the country and date. GOBL also validates business documents according to local requirements, including tax ID validation. The library defines the algorithms used to make tax calculations while avoiding rounding errors, ensuring compliance with local tax authority requirements. For security and authenticity, GOBL provides built-in support for signing documents using [JSON Web Signatures](https://en.wikipedia.org/wiki/JSON_Web_Signature). This allows you to prove document authenticity and detect tampering. Finally, GOBL outputs simple and easy-to-read JSON documents that emphasize the use of keys instead of abstract codes. For example, instead of using the UNTDID4461 code `30` for a bank transfer, GOBL uses the readable key `credit-transfer`. This makes documents human-readable while remaining machine-processable. ## The GOBL envelope Every GOBL document is wrapped in an envelope. The envelope acts as a container that holds the document itself along with metadata and signatures. This structure ensures that documents can be verified, signed, and processed reliably. An envelope contains three main parts: a header, the document, and optional signatures. The header includes a unique identifier (UUID), a digest (hash) of the document content, and metadata about when and how the document was created. The document property contains the actual business document—an invoice, credit note, or other business document type. The signatures array holds cryptographic signatures that prove the document's authenticity. Here's what a simple GOBL envelope looks like: ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/envelope", "head": { "uuid": "c7eac0a3-2ad2-11ed-964a-3e7e00ce5635", "dig": { "alg": "sha256", "val": "45ac3115c8569a1789e58af8d0dc91ef3baa1fb71daaf38f5aef94f82b4d0033" } }, "doc": { "$schema": "https://gobl.org/draft-0/bill/invoice", "code": "INV-001", "issue_date": "2024-01-15", "supplier": { ... }, "customer": { ... }, "lines": [ ... ] }, "sigs": [ ... ] } ``` The `$schema` property in both the envelope and the document tells software which GOBL schema to use for validation and processing. This ensures that documents are interpreted correctly and validated against the right specification. ## How GOBL works When you create a business document with GOBL, you start with a partial document containing just the essential data: supplier information, customer details, line items with quantities and prices, and dates. You don't need to calculate totals, look up tax rates, or worry about compliance rules—GOBL handles all of that automatically. The process begins when you insert your partial document into a GOBL envelope. The GOBL library then runs a series of operations to complete the document. First, it validates the data you've provided, checking that required fields are present and that values are in the correct format. Next, it calculates line totals by multiplying quantities by prices, applies any discounts you've specified, and computes tax amounts based on the tax categories and rates defined in the tax regime for the document's country. GOBL automatically determines which tax regime to use based on the supplier's tax ID country code. It then looks up the appropriate tax rates for the invoice date, applies them according to country-specific calculation rules, and handles rounding in a way that complies with local requirements. The result is a complete, validated document with all totals calculated, taxes applied, and compliance rules satisfied. You can then sign the document using digital signatures to prove its authenticity and prevent tampering. ## Tax regimes and calculations One of GOBL's most powerful features is its tax regime system. Instead of requiring you to research and implement tax rules for each country, GOBL includes structured tax data for multiple countries. Each tax regime defines the tax categories used in that country (like VAT, GST, or sales tax), the tax rates that apply, and the rules for when and how taxes should be calculated. Tax regimes in GOBL are defined as structured data in code, not as a separate database. This means the tax information is version-controlled, testable, and always in sync with the GOBL library version you're using. When you create an invoice, GOBL automatically selects the correct tax regime based on the supplier's country, looks up the tax rates that were valid on the invoice date, and applies them according to the country's calculation rules. This approach ensures consistency and accuracy. All GOBL implementations use the same tax data and calculation algorithms, so you can be confident that your documents will be processed correctly by any system that understands GOBL. ## Building your first GOBL document To understand how GOBL works in practice, let's walk through creating a simple invoice. You start by defining the basic information: a supplier with their tax ID and address, a customer, and some line items with quantities and prices. You specify tax categories using simple keys like "VAT" and rates using descriptive terms like "standard" rather than numeric codes. GOBL will look up what "standard" means for your supplier's country and the invoice date, then apply the correct rate automatically. Once you have your partial document, you insert it into a GOBL envelope. The GOBL library then calculates all the totals, applies taxes, and validates the document. The result is a complete invoice ready to be signed and sent. If you're using the GOBL CLI, you can build a document from a YAML or JSON file. The CLI automatically runs the calculation and validation steps, outputting a complete GOBL envelope. You can also use the [GOBL Builder](https://build.gobl.org) web tool to experiment with building documents in your browser. Have your agent draft a GOBL invoice from your data and validate it before you touch Invopop. Read the GOBL rules in [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md), the invoice schema at [https://docs.gobl.org/draft-0/bill/invoice.md](https://docs.gobl.org/draft-0/bill/invoice.md) and the regime page for the supplier's country under [https://docs.gobl.org/regimes/](https://docs.gobl.org/regimes/) (lowercase country code plus .md). Convert the invoice data I give you into a minimal GOBL bill/invoice: $schema, $regime, series, issue\_date, supplier and customer with tax\_id objects, and lines with quantity, item name and price as strings and taxes as a category plus rate key. Do not write sums, totals or percentages. Validate it by posting it wrapped in a data property to [https://gobl.dev/v0/build](https://gobl.dev/v0/build), or with the gobl CLI if installed, fix any faults it reports, and show me the built document pointing out the fields that build added. ## Converting to local formats While GOBL provides a universal format, you often need to convert documents to local formats required by tax authorities or business networks. GOBL companion projects handle these conversions, transforming GOBL documents into formats like UBL for Peppol, FacturaE for Spain, CFDI for Mexico, or FatturaPA for Italy. These conversion tools understand both the GOBL format and the target format, ensuring that all required fields are populated correctly and that the output meets local compliance requirements. This means you can work entirely in GOBL format and let the conversion tools handle the complexity of local formats. ## GOBL and Invopop Invopop uses GOBL as its universal document format. When you send a document to Invopop via the API, you send it as a GOBL envelope. Invopop stores and processes all documents as GOBL internally, which means you get consistent behavior and calculations regardless of which country or format you're working with. Invopop handles the conversion from GOBL to local formats automatically. When you need to submit an invoice to a tax authority or send it through a network like Peppol, Invopop converts the GOBL document to the required format behind the scenes. You never need to worry about format differences—just work with GOBL and let Invopop handle the rest. This approach provides several benefits. First, you only need to integrate with one format (GOBL) rather than learning multiple country-specific formats. Second, Invopop uses GOBL's calculation algorithms, so you can verify your calculations using the open-source GOBL library. Third, all your documents are stored in a consistent format, making it easier to search, process, and archive them. ## Getting started with GOBL If you're new to GOBL, the best place to start is the [official GOBL documentation](https://docs.gobl.org). The documentation includes detailed guides on creating invoices, understanding the schema structure, and using the GOBL CLI tool. You can also experiment with GOBL using the [GOBL Builder](https://build.gobl.org), a web-based tool that lets you build and validate GOBL documents directly in your browser. The builder uses the hosted GOBL API, so validation and calculation results match exactly what the GOBL library or CLI would produce — no installation required. For programmatic use, GOBL is primarily a Go library. You can install it with `go get github.com/invopop/gobl` and start building documents in your Go applications. The library includes examples and comprehensive documentation to help you get started. If you're working with Invopop, you can create GOBL documents and send them to the Invopop API. Invopop will handle validation, calculation, and conversion to local formats automatically. See the [Invopop API reference](/api-ref/introduction) for details on how to send GOBL documents to Invopop. ## Community and resources GOBL is an open-source project that welcomes contributions. The complexity around invoicing, particularly electronic invoicing, can quickly become overwhelming, so the GOBL community provides several resources to help. The [GOBL documentation site](https://docs.gobl.org) contains details on how to use GOBL and the schema specifications. The [GitHub repository](https://github.com/invopop/gobl) hosts the source code, and you can find examples of GOBL documents in the [examples directory](https://github.com/invopop/gobl/tree/main/examples). If you have questions or encounter issues, you can open an [issue on GitHub](https://github.com/invopop/gobl/issues) or start a [discussion](https://github.com/invopop/gobl/discussions) for open-ended questions about GOBL's future or country-specific complications. Pull requests are very welcome, especially if you'd like to see support for a new country or additional features. ## Why GOBL matters GOBL represents a fundamental shift in how we think about business documents. Instead of accepting the complexity and fragmentation of traditional standards, GOBL provides a modern, developer-friendly approach that works globally while respecting local requirements. By using GOBL, you can focus on your business logic rather than researching tax rates, implementing validation rules, or learning country-specific formats. GOBL handles the complexity of international compliance, tax calculations, and format conversion, leaving you free to build the features that matter to your business. When combined with Invopop, GOBL provides a complete solution for international invoicing. You work with one format, and Invopop handles submission to tax authorities, delivery through business networks, and compliance with local regulations. This combination makes it practical to build truly international invoicing systems without the traditional complexity and maintenance burden. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about GOBL → # GOBL Builder guide Source: https://docs.invopop.com/guides/gobl-builder An interactive, low code tool for building GOBL documents. ![](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/other/builder.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=c6afcebdc6434b5f2c6dbf984be4041d) GOBL Builder is a browser-based, interactive editor that lets you create, edit, validate and build documents compliant with [GOBL](/guides/gobl) — a JSON-Schema-based standard for business documents ([invoices](/console/doc-schemas), messages, etc.). Whereas the standard [GOBL](/guides/gobl) toolset is a Go library (or CLI) meant for developers, GOBL Builder brings similar functionality into the browser through the hosted GOBL API. This lets you work hands-on with [GOBL](/guides/gobl) documents directly, without installing anything. ## Interface The key components of the interface are: * **Menu bar / toolbar** — top-level controls (open, save, choose schema). * **Code editor pane** — where you write or paste your document (in JSON or YAML) following a [GOBL](/guides/gobl) schema. * **Bottom drawer / panel for feedback** — area where validation results, warnings, or errors appear after running build/validate; this helps you detect issues immediately. * **Schema selector / configuration input** — ability to choose the kind of [GOBL](/guides/gobl) document you are building ([invoice](/console/doc-schemas), message, etc.), by pointing to a JSON-Schema URL, so that the tool knows how to interpret and validate your data. Validation and computations — such as tax calculations, rounding, and totals — are performed by the hosted GOBL API, so results match exactly what the standard [GOBL](/guides/gobl) library or CLI would produce. You need an internet connection to build, validate, or correct documents. ## What you can do with the builder Using GOBL Builder on [build.gobl.org](https://build.gobl.org), you can: * **Create [GOBL](/guides/gobl) documents from scratch** — define your business document ([invoice](/console/doc-schemas), message, etc.) in JSON or YAML following the appropriate schema. * **Validate and build documents** — the editor checks structure, data types and required fields; it performs calculations (e.g. taxes, totals) and generates complete JSON output conforming to [GOBL's](/guides/gobl) envelope-and-document structure. * **Get immediate feedback on errors or warnings** — bottom panel shows problems so you can correct them before exporting. * **Export or copy the resulting document** — once valid, you can take the generated JSON (a full [GOBL](/guides/gobl) envelope) and use it in your codebase or tooling. * **Experiment with different schemas easily** — switch between [document types](/console/doc-schemas) by changing the schema URL; handy for exploring what's possible without setting up a dev environment. ## Step by step guide **1. Open GOBL Builder** Open [build.gobl.org](https://build.gobl.org) in your browser. **2. Create your document** Load an existing document through the **Load** button, or paste an existing document in the code editor pane selecting the appropriate schema from the dropdown. **3. Set the schema** If you pasted a document, make sure to select the `$schema` field (e.g. `"https://gobl.org/draft-0/bill/invoice"` or similar) so the builder knows what kind of document you intend. **4. Build and validate** Trigger the build/validate action by clicking the calculator icon button. **5. Review feedback** Review bottom-panel for errors or warnings. If there are any, correct them in the editor. **6. Get the complete document** Once validation passes, you get a full [GOBL](/guides/gobl) envelope + document JSON, with all computed fields (sums, tax calculations, metadata, etc.). **7. Export your document** Copy/export the JSON to use in your application, or for further processing (signing, converting to other formats, etc.). **8. Preview the PDF** Sign the document by clicking on the **Sign** button, then click on the **Preview** button to see the PDF preview. ## When GOBL Builder is especially useful * For **rapid prototyping** — quickly draft a document to test how [GOBL](/guides/gobl) handles taxes, rounding, fields, without writing code. * For **learning / exploring** [GOBL](/guides/gobl) — experimenting with different schemas to see how [GOBL](/guides/gobl) structures different [document types](/console/doc-schemas). * For **proof-of-concepts or demos** — creating valid [GOBL](/guides/gobl) documents without needing to set up a Go environment or external tooling. * For **validating data inputs** — pre-validating JSON/YAML before integrating into a backend or database, ensuring compliance with [GOBL](/guides/gobl) schema. ## What GOBL Builder *does not* provide (or what to expect) * It's not a full invoicing app — GOBL Builder helps you build the structured document, but does not provide UI for things like customer management, templates, PDF rendering, persistence, or user workflows. * It doesn't replace a complete backend — for production you'd still integrate with [GOBL](/guides/gobl) library or CLI to sign, store, convert, or deliver documents. * It expects familiarity with JSON or YAML and with [GOBL](/guides/gobl) schema types — it's a low-code tool, but not a "no-code" drag & drop generator. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about GOBL Builder → # myDATA issuing invoices guide Source: https://docs.invopop.com/guides/gr-iapr Send invoices and credit notes to the Greek IAPR via the myDATA platform. ## Introduction The myDATA (My Digital Accounting and Tax Application) platform is Greece’s standardized electronic invoicing and bookkeeping system, managed by the Independent Authority for Public Revenue (IAPR). This system enables businesses to report invoices and accounting data in real time, ensuring compliance with Greek tax regulations. In this guide you'll learn how to issue invoices and credit notes in a supplier's name using the [ILYDA Greece app](/apps/ilyda-greece). To register a supplier first, see the companion guide: [Greece: Supplier registration](/guides/gr-iapr-supplier). | - | Sandbox | Live | | - | - | - | | **Supplier** | Invoices must use the pre-enabled test supplier with tax ID `177472438` | Registered supplier required | | **Environment** | myDATA test | myDATA production | ## Prerequisites To issue invoices in Greece, you will need: * **A registered supplier**: follow the [myDATA supplier registration guide](/guides/gr-iapr-supplier) to connect the ILYDA Greece app and register the supplier with ILYDA before issuing. * Customer details for B2B transactions, including name, TIN or international ID, and address. * Line and item details, including quantity, price, description, applicable VAT rates, and, optionally, income classification codes. * To have chosen an invoice series. ## Setup To issue invoices, follow these instructions in the [Invopop Console](https://console.invopop.com): > [!NOTE] > > These instructions apply to both the sandbox and live environments. The ILYDA Greece app must already be connected and the supplier registered — this is covered in the [supplier registration guide](/guides/gr-iapr-supplier). **1. Prepare Invoice Workflow** > [card] [IAPR Invoice Workflow](https://console.invopop.com/redirect/workflows/new?template=gr-iapr-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json myDATA issue invoice workflow theme={"system"} > { > "name": "myDATA issue invoice", > "description": "Issue an invoice to myDATA via ILYDA", > "schema": "bill/invoice", > "steps": [ > { > "id": "883baa10-abd5-11ef-8b96-dd5de8906f90", > "name": "Set state", > "config": { > "state": "processing" > }, > "summary": "Set state to `processing`{.state .processing}", > "provider": "silo.state" > }, > { > "id": "e9fad100-abd4-11ef-8b96-dd5de8906f90", > "name": "Add sequential code", > "config": { > "name": "IAPR Invoices", > "start": 1, > "padding": 3 > }, > "summary": "Dynamic · IAPR · 1", > "provider": "sequence.enumerate" > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "649aca50-9064-11ef-8f9e-39835766d0bc", > "name": "Send invoice to myDATA", > "provider": "ilyda.send" > }, > { > "id": "6f77ad10-a32b-11ef-9707-79bbd71238cd", > "name": "Set state", > "config": { > "state": "sent" > }, > "summary": "Set state to `sent`{.state .sent}", > "provider": "silo.state" > } > ], > "rescue": [ > { > "id": "e8c9c0a0-a32a-11ef-9707-79bbd71238cd", > "name": "Set state", > "config": { > "state": "error" > }, > "summary": "Set state to `error`{.state .error}", > "provider": "silo.state" > } > ] > } > ``` ## Send an invoice The following examples are of partial [GOBL](https://docs.gobl.org) documents you can copy and paste directly into the [Invopop Console](https://console.invopop.com) or store via the API as silo entries. Then, you must run the "IAPR Invoice Workflow" created during setup. As usual, the recommended approach for running jobs is to perform two steps; first, upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), second [create a job](/api-ref/transform/jobs/create-a-job-put). [GOBL Invoices](https://docs.gobl.org/draft-0/bill/invoice) sent to myDATA require the following properties to perform the correct normalization and validation steps. Invopop will try to assign these automatically, but we recommend defining them explicitly before uploading: * `$regime` to be set to [`EL`](https://docs.gobl.org/regimes/gr) * `$addons` to include [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) > [accordion] Example service invoice (B2B) > > In this example, we're issuing a simple services invoice from a Greek supplier to another Greek business customer. > > Notice: > > * we've added the [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) addon; this ensures the document will be validated and normalized using the myDATA v1 rules built into the [GOBL](https://docs.gobl.org) library, > * we've set the `services` tag; this makes the addon set the [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) extension automatically to `2.1` (service invoice), > * similarly, the `credit-transfer` payment method will cause the addon to set the [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) extension to `1` (credit transfer), > * we added a charge for a special fee (tourist accommodation fee), using the [`gr-mydata-fee`](https://docs.gobl.org/addons/gr-mydata-v1#fee-category) extension, > * the specific income category and type are set using the [`gr-mydata-income-cat`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-category) extension and the [`gr-mydata-income-type`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-type) extension respectively, > * only [VAT rates](https://docs.gobl.org/regimes/el#vat-rates) (`standard`) have been specified; percentages and values for the [`gr-mydata-vat-rate`](https://docs.gobl.org/addons/gr-mydata-v1#vat-rate) extension will be set automatically, and, > * optionally, we've set the [`gr-mydata-branch`](https://docs.gobl.org/addons/gr-mydata-v1#branch-number) extension on the supplier to report the branch (establishment number in the AADE registry) issuing the invoice; when absent, branch `0` (headquarters) is reported, and the same extension can be set on the customer, and, > * there are no totals or calculations; all these will be made automatically when uploading. > > ```json B2B Services Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "services", > "simplified" > ], > "series": "XXGR", > "supplier": { > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "ext": { > "gr-mydata-branch": "2" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ] > }, > "customer": { > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > "tax_id": { > "country": "EL", > "code": "841442160" > }, > "addresses": [ > { > "num": "15", > "street": "Οδός Πανεπιστημίου", > "locality": "Αθήνα", > "code": "10671", > "country": "GR" > } > ], > "emails": [ > { > "addr": "accounting@techsolutions.gr" > } > ] > }, > "lines": [ > { > "quantity": "3", > "item": { > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > "price": "180.00", > "unit": "day", > "ext": { > "gr-mydata-income-cat": "category1_3", > "gr-mydata-income-type": "E3_561_001" > } > }, > "discounts": [ > { > "reason": "Εταιρική Έκπτωση", > "percent": "10%" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ], > "charges": [ > { > "reason": "Τέλος διαμονής παρεπιδημούντων", > "amount": "21.00", > "ext": { > "gr-mydata-fee": "18" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "EL", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "services", > "simplified" > ], > "type": "standard", > "series": "XXGR", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "gr-mydata-invoice-type": "11.2" > } > }, > "supplier": { > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ], > "ext": { > "gr-mydata-branch": "2" > } > }, > "customer": { > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > "tax_id": { > "country": "EL", > "code": "841442160" > }, > "addresses": [ > { > "num": "15", > "street": "Οδός Πανεπιστημίου", > "locality": "Αθήνα", > "code": "10671", > "country": "GR" > } > ], > "emails": [ > { > "addr": "accounting@techsolutions.gr" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "3", > "item": { > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > "price": "180.00", > "unit": "day", > "ext": { > "gr-mydata-income-cat": "category1_3", > "gr-mydata-income-type": "E3_561_001" > } > }, > "sum": "540.00", > "discounts": [ > { > "reason": "Εταιρική Έκπτωση", > "percent": "10%", > "amount": "54.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "24%", > "ext": { > "gr-mydata-vat-rate": "1" > } > } > ], > "total": "486.00" > } > ], > "charges": [ > { > "i": 1, > "reason": "Τέλος διαμονής παρεπιδημούντων", > "amount": "21.00", > "ext": { > "gr-mydata-fee": "18", > "gr-mydata-tax-type": "2" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ext": { > "gr-mydata-payment-means": "1" > } > } > }, > "totals": { > "sum": "486.00", > "charge": "21.00", > "total": "507.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "gr-mydata-vat-rate": "1" > }, > "base": "486.00", > "percent": "24%", > "amount": "116.64" > } > ], > "amount": "116.64" > } > ], > "sum": "116.64" > }, > "tax": "116.64", > "total_with_tax": "623.64", > "payable": "623.64" > } > } > ``` > [accordion] Example retail sales receipt (B2C) > > In this example, we're issuing a simple goods invoice from a Greek supplier to a Greek final consumer. > > Notice: > > * we've set the `goods` and the `simplified` tags; this makes the addon set the [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) extension automatically to `11.1` (retail sales receipt), > * similarly, the `cash` payment method will cause the addon to set the [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) extension to `3` (cash), > * the specific income category and type are set using the [`gr-mydata-income-cat`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-category) extension and the [`gr-mydata-income-type`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-type) extension respectively, > * only [VAT rates](https://docs.gobl.org/regimes/el#vat-rates) (`standard`) or keys (`exempt`) have been specified; percentages and values for the [`gr-mydata-vat-rate`](https://docs.gobl.org/addons/gr-mydata-v1#vat-rate) extension will be set automatically > * the exemption cause is set using the [`gr-mydata-exemption`](https://docs.gobl.org/addons/gr-mydata-v1#vat-exemption-cause) extension, and, > * there are no totals or calculations; all these will be made automatically when uploading. > > ```json B2C Goods Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "goods", > "simplified" > ], > "series": "XXGR", > "supplier": { > "name": "Ελληνικά Τρόφιμα Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "12", > "street": "Λεωφόρος Βουλιαγμένης", > "locality": "Αθήνα", > "code": "11636", > "country": "GR" > } > ], > "emails": [ > { > "addr": "hellenicfoods@example.com" > } > ] > }, > "lines": [ > { > "quantity": "50", > "item": { > "name": "Ελαιόλαδο Extra Virgin 1L", > "price": "12.50", > "unit": "unit", > "ext": { > "gr-mydata-income-cat": "category1_1", > "gr-mydata-income-type": "E3_561_001" > } > }, > "discounts": [ > { > "reason": "Έκπτωση Όγκου", > "percent": "10%" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "reduced" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Βιβλία Μαγειρικής", > "price": "15.00", > "ext": { > "gr-mydata-income-cat": "category1_1", > "gr-mydata-income-type": "E3_561_001" > } > }, > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "gr-mydata-exemption": "7" > } > } > ] > } > ], > "payment": { > "instructions": { > "key": "cash" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "EL", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "goods", > "simplified" > ], > "type": "standard", > "series": "XXGR", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "gr-mydata-invoice-type": "11.1" > } > }, > "supplier": { > "name": "Ελληνικά Τρόφιμα Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "12", > "street": "Λεωφόρος Βουλιαγμένης", > "locality": "Αθήνα", > "code": "11636", > "country": "GR" > } > ], > "emails": [ > { > "addr": "hellenicfoods@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "50", > "item": { > "name": "Ελαιόλαδο Extra Virgin 1L", > "price": "12.50", > "unit": "unit", > "ext": { > "gr-mydata-income-cat": "category1_1", > "gr-mydata-income-type": "E3_561_001" > } > }, > "sum": "625.00", > "discounts": [ > { > "reason": "Έκπτωση Όγκου", > "percent": "10%", > "amount": "62.50" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "13%", > "ext": { > "gr-mydata-vat-rate": "2" > } > } > ], > "total": "562.50" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Βιβλία Μαγειρικής", > "price": "15.00", > "ext": { > "gr-mydata-income-cat": "category1_1", > "gr-mydata-income-type": "E3_561_001" > } > }, > "sum": "15.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "gr-mydata-exemption": "7", > "gr-mydata-vat-rate": "7" > } > } > ], > "total": "15.00" > } > ], > "payment": { > "instructions": { > "key": "cash", > "ext": { > "gr-mydata-payment-means": "3" > } > } > }, > "totals": { > "sum": "577.50", > "total": "577.50", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "gr-mydata-vat-rate": "2" > }, > "base": "562.50", > "percent": "13%", > "amount": "73.13" > }, > { > "key": "exempt", > "ext": { > "gr-mydata-exemption": "7", > "gr-mydata-vat-rate": "7" > }, > "base": "15.00", > "amount": "0.00" > } > ], > "amount": "73.13" > } > ], > "sum": "73.13" > }, > "tax": "73.13", > "total_with_tax": "650.63", > "payable": "650.63" > } > } > ``` > [accordion] Example accommodation + climate fee invoice (B2C) > > In this example, we're issuing a retail sales receipt for a hotel stay (accommodation taxed at the reduced VAT rate) together with the climate crisis resilience fee on the same document. > > Notice: > > * we've set the `services` and `simplified` tags; the addon sets [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) to `11.2` (services receipt), appropriate for B2C, > * the accommodation line uses the [reduced VAT rate](https://docs.gobl.org/regimes/el#vat-rates) (`13%`); the [`gr-mydata-vat-rate`](https://docs.gobl.org/addons/gr-mydata-v1#vat-rate) extension is filled in on build, > * the climate crisis resilience fee is added as a [`charge`](https://docs.gobl.org/draft-0/bill/invoice) with [`gr-mydata-other-tax`](https://docs.gobl.org/addons/gr-mydata-v1#gr-mydata-other-tax) set to `22` (hotels 4 stars, 7.00€ per room/night) and [`gr-mydata-tax-type`](https://docs.gobl.org/addons/gr-mydata-v1#gr-mydata-tax-type) `3` (other tax), as in the built version, > * the `card` payment method maps to [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) `7` (card payment), and, > * there are no totals in the minimal example; amounts are calculated when the document is built or uploaded. > > ```json B2C Accommodation + Climate Fee theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "EL", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "services", > "simplified" > ], > "series": "Plato", > "code": "216", > "supplier": { > "name": "Cyberdyne Συστήματα Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Hotel room (2 nights)", > "price": "120.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "reduced" > } > ] > } > ], > "charges": [ > { > "reason": "Climate Crisis Resilience Fee (2 nights x 7.00€)", > "amount": "14.00", > "ext": { > "gr-mydata-other-tax": "22" > } > } > ], > "payment": { > "instructions": { > "key": "card" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "EL", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "services", > "simplified" > ], > "type": "standard", > "series": "Plato", > "code": "216", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "gr-mydata-invoice-type": "11.2" > } > }, > "supplier": { > "name": "Cyberdyne Συστήματα Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Hotel room (2 nights)", > "price": "120.00" > }, > "sum": "240.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "13%", > "ext": { > "gr-mydata-vat-rate": "2" > } > } > ], > "total": "240.00" > } > ], > "charges": [ > { > "i": 1, > "reason": "Climate Crisis Resilience Fee (2 nights x 7.00€)", > "amount": "14.00", > "ext": { > "gr-mydata-other-tax": "22", > "gr-mydata-tax-type": "3" > } > } > ], > "payment": { > "instructions": { > "key": "card", > "ext": { > "gr-mydata-payment-means": "7" > } > } > }, > "totals": { > "sum": "240.00", > "charge": "14.00", > "total": "254.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "gr-mydata-vat-rate": "2" > }, > "base": "240.00", > "percent": "13%", > "amount": "31.20" > } > ], > "amount": "31.20" > } > ], > "sum": "31.20" > }, > "tax": "31.20", > "total_with_tax": "285.20", > "payable": "285.20" > } > } > ``` > [accordion] Example climate fee standalone invoice (B2B) > > In this example, we're issuing a standalone climate fee invoice (no lines) from a Greek supplier to another Greek business customer. This is an example of how special records and other document types can be used in Greece. > > Notice: > > * we've set the `other` type and the `8.2` invoice type (climate crisis fee collection) explicitly using the [`gr-mydata-invoice-type`](https://docs.gobl.org/addons/gr-mydata-v1#invoice-type) extension, > * the climate fee is set as a charge using the [`gr-mydata-other-tax`](https://docs.gobl.org/addons/gr-mydata-v1#other-tax) extension set to `8` (climate crisis fee), > * there are no lines as this special record type doesn't allow them, > * the `credit-transfer` payment method will cause the addon to set the [`gr-mydata-payment-means`](https://docs.gobl.org/addons/gr-mydata-v1#payment-means) extension to `1` (credit transfer), and, > * there are no totals or calculations; all these will be made automatically when uploading. > > ```json B2B Climate Fee Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "gr-mydata-v1" > ], > "type": "other", > "series": "XXGR", > "tax": { > "ext": { > "gr-mydata-invoice-type": "8.2" > } > }, > "supplier": { > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ] > }, > "customer": { > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > "tax_id": { > "country": "EL", > "code": "841442160" > }, > "addresses": [ > { > "num": "15", > "street": "Οδός Πανεπιστημίου", > "locality": "Αθήνα", > "code": "10671", > "country": "GR" > } > ], > "emails": [ > { > "addr": "accounting@techsolutions.gr" > } > ] > }, > "charges": [ > { > "reason": "Τέλος ανθεκτικότητας στην κλιματική κρίση", > "amount": "3.00", > "ext": { > "gr-mydata-other-tax": "8" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "EL", > "$addons": [ > "gr-mydata-v1" > ], > "type": "other", > "series": "XXGR", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "gr-mydata-invoice-type": "8.2" > } > }, > "supplier": { > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ] > }, > "customer": { > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > "tax_id": { > "country": "EL", > "code": "841442160" > }, > "addresses": [ > { > "num": "15", > "street": "Οδός Πανεπιστημίου", > "locality": "Αθήνα", > "code": "10671", > "country": "GR" > } > ], > "emails": [ > { > "addr": "accounting@techsolutions.gr" > } > ] > }, > "charges": [ > { > "i": 1, > "reason": "Τέλος ανθεκτικότητας στην κλιματική κρίση", > "amount": "3.00", > "ext": { > "gr-mydata-other-tax": "8", > "gr-mydata-tax-type": "3" > } > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ext": { > "gr-mydata-payment-means": "1" > } > } > }, > "totals": { > "sum": "0.00", > "charge": "3.00", > "total": "3.00", > "tax": "0.00", > "total_with_tax": "3.00", > "payable": "3.00" > } > } > ``` > [accordion] Example credit note (B2B) > > In this example, we're issuing a credit note that corrects a previously reported invoice. > > Notice: > > * the `type` is set to `credit-note`, which the [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) addon maps to myDATA invoice type `5.1` (associated credit invoice), > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, and **must** include the `iapr-mark` stamp — the MARK (unique registration number) the IAPR assigned to the original invoice when it was reported, > * the line items carry the same [`gr-mydata-income-cat`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-category) and [`gr-mydata-income-type`](https://docs.gobl.org/addons/gr-mydata-v1#income-classification-type) extensions as the original, describing the amounts being credited, and, > * there are no totals or calculations; all these will be made automatically when uploading. > > ```json Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "services" > ], > "type": "credit-note", > "series": "XXGR-CN", > "preceding": [ > { > "type": "standard", > "series": "XXGR", > "code": "0042", > "issue_date": "2025-05-12", > "stamps": [ > { > "prv": "iapr-mark", > "val": "400001924190872" > } > ] > } > ], > "supplier": { > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ] > }, > "customer": { > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > "tax_id": { > "country": "EL", > "code": "841442160" > }, > "addresses": [ > { > "num": "15", > "street": "Οδός Πανεπιστημίου", > "locality": "Αθήνα", > "code": "10671", > "country": "GR" > } > ], > "emails": [ > { > "addr": "accounting@techsolutions.gr" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > "price": "180.00", > "unit": "day", > "ext": { > "gr-mydata-income-cat": "category1_3", > "gr-mydata-income-type": "E3_561_001" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "EL", > "$addons": [ > "gr-mydata-v1" > ], > "$tags": [ > "services" > ], > "type": "credit-note", > "series": "XXGR-CN", > "issue_date": "2026-07-21", > "currency": "EUR", > "preceding": [ > { > "type": "standard", > "issue_date": "2025-05-12", > "series": "XXGR", > "code": "0042", > "stamps": [ > { > "prv": "iapr-mark", > "val": "400001924190872" > } > ] > } > ], > "tax": { > "ext": { > "gr-mydata-invoice-type": "5.1" > } > }, > "supplier": { > "name": "Αθηναϊκό Ξενοδοχείο Α.Ε.", > "tax_id": { > "country": "EL", > "code": "177472438" > }, > "addresses": [ > { > "num": "28", > "street": "Λεωφόρος Συγγρού", > "locality": "Αθήνα", > "code": "11743", > "country": "GR" > } > ], > "emails": [ > { > "addr": "reservations@athenianhotel.gr" > } > ] > }, > "customer": { > "name": "Τεχνολογικές Λύσεις Ελλάς Α.Ε.", > "tax_id": { > "country": "EL", > "code": "841442160" > }, > "addresses": [ > { > "num": "15", > "street": "Οδός Πανεπιστημίου", > "locality": "Αθήνα", > "code": "10671", > "country": "GR" > } > ], > "emails": [ > { > "addr": "accounting@techsolutions.gr" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Διαμονή Deluxe Δίκλινο Δωμάτιο", > "price": "180.00", > "unit": "day", > "ext": { > "gr-mydata-income-cat": "category1_3", > "gr-mydata-income-type": "E3_561_001" > } > }, > "sum": "180.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "24%", > "ext": { > "gr-mydata-vat-rate": "1" > } > } > ], > "total": "180.00" > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ext": { > "gr-mydata-payment-means": "1" > } > } > }, > "totals": { > "sum": "180.00", > "total": "180.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "gr-mydata-vat-rate": "1" > }, > "base": "180.00", > "percent": "24%", > "amount": "43.20" > } > ], > "amount": "43.20" > } > ], > "sum": "43.20" > }, > "tax": "43.20", > "total_with_tax": "223.20", > "payable": "223.20" > } > } > ``` ## FAQ > [accordion] What's the workflow for issuing myDATA invoices? > > Build a GOBL invoice with the `gr-mydata-v1` addon, run the IAPR Issue Invoice workflow. Invopop signs and transmits via ILYDA, retrieves the MARK identifier, and stores it on the silo entry. > [accordion] How do I configure my workspace for Greek invoicing? > > Install the ILYDA Greece app, register the supplier (one provider at a time per VAT — see our FAQ), and run invoices through the IAPR workflow. PDFs are generated alongside the myDATA submission. > [accordion] How are Greek invoice types specified? > > The Greek tax authority (IAPR) requires the invoice type to be specified as part of the invoice. In [GOBL](https://docs.gobl.org), this type can be set using the `gr-mydata-invoice-type` extension in the tax section and setting the [GOBL invoice type](https://docs.gobl.org/draft-0/bill/invoice) to other. > > Alternatively, GOBL will set the extension for you based on the type and the tax tags you set in your [GOBL invoice](https://docs.gobl.org/draft-0/bill/invoice). You can read more in the [GOBL Greece Tax Regime readme](https://github.com/invopop/gobl/blob/main/regimes/gr/README.md). > > If you produce a PDF version of the invoice, the invoice type label will be displayed instead of "Invoice". > [accordion] Where can I find the mapping of GOBL fields to myDATA? > > For further details on how GOBL prepares data for conversion, see the [Greek Tax Regime](https://github.com/invopop/gobl/blob/main/regimes/gr/README.md). > [accordion] Why is my credit note being rejected with 'Invoice not found' error? > > If you issue a credit note shortly after the invoice it refers to, the MyDATA system may reject it because the original invoice hasn't completed synchronization. You'll typically see an error like: > > ``` > Fatal error 301: Invoice with ΜΑΡΚ xxxx not found for VAT number xxxx > ``` > > This happens because there can be a delay between when an invoice is accepted by MyDATA and when it becomes fully available for reference by other documents like credit notes. This delay can range from a few minutes to several hours, depending on MyDATA system load. > > **Solution**: If you receive this error, retry issuing the credit note after waiting some time. You may need to wait anywhere from a few minutes to several hours for the original invoice to be fully synchronized in the MyDATA system before the credit note can successfully reference it. > [accordion] How do I issue invoices from a branch (υποκατάστημα)? > > Set the [`gr-mydata-branch`](https://docs.gobl.org/addons/gr-mydata-v1#branch-number) extension on the supplier party to the branch's establishment number from the AADE registry. When the extension is absent, invoices report the headquarters branch (`0`). The same extension works on the customer party. See the branch invoice example in the [myDATA invoicing guide](/guides/gr-iapr#send-an-invoice). > [accordion] Where do I find Greece-specific GOBL documentation? > > See the [Greece tax regime in GOBL](https://docs.gobl.org/regimes/gr) for tax categories and AFM rules. The myDATA mapping lives in [`gr-mydata-v1`](https://docs.gobl.org/addons/gr-mydata-v1) including all invoice type codes. More available in our [Greece FAQ](/faq/greece) section *** > [accordion] 🇬🇷 Invopop resources for Greece > > | | | > | - | - | > | Compliance | [Invoicing compliance in Greece](/compliance/greece) [Compliance timeline](/timelines/greece) | > | Apps | [ILYDA Greece](/apps/ilyda-greece) | > | Guides | [Supplier registration](/guides/gr-iapr-supplier) [Issuing invoices](/guides/gr-iapr) | > | FAQ | [Greece FAQ](/faq/greece) | > | GOBL | [Greece Tax Regime](https://docs.gobl.org/regimes/gr) [Greece myDATA addon](https://docs.gobl.org/addons/gr-mydata-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Greece → # myDATA supplier registration guide Source: https://docs.invopop.com/guides/gr-iapr-supplier Register suppliers with ILYDA to issue invoices through the Greek IAPR's myDATA platform. ## Introduction The myDATA (My Digital Accounting and Tax Application) platform is Greece’s standardized electronic invoicing and bookkeeping system, managed by the Independent Authority for Public Revenue (IAPR). Invopop has partnered with [ILYDA](https://ilyda.gr) to issue invoices in Greece, and each supplier must be registered with ILYDA before they can issue invoices. In this guide you'll learn how to register a supplier using the [ILYDA Greece app](/apps/ilyda-greece). Once a supplier is registered, continue with the companion guide: [Greece: Issuing invoices](/guides/gr-iapr). | - | Sandbox | Live | | - | - | - | | **Supplier** | Must use test supplier with tax ID `177472438` | Real supplier registration required | | **Environment** | myDATA test | myDATA production | ## Prerequisites To register a supplier in Greece, you will need: * Supplier details, including: * company name, * business activity, * VAT number (ΑΦΜ), * tax office (ΔΟΥ), * full address, * phone number and email address, and, * legal representative name. * Access to the supplier's [myTaxisnet](https://www1.gsis.gr/taxisnet/mytaxisnet) account to authorize ILYDA as their e-invoicing provider. ## Setup Follow these instructions in the [Invopop Console](https://console.invopop.com): **1. Connect ILYDA Greece App** 1. Navigate to **Configuration** → **Apps**. 2. Find **ILYDA Greece** in the app discovery list. 3. Click **Connect** to activate. ![ILYDA Greece App](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/gr-iapr-app.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=309618a7e5a3a3a9028a08bb3b4cb685) > [!NOTE] > > The ILYDA Greece app will send your invoices to the appropriate environment based on whether your current workspace is Sandbox or Live. ## Register a supplier > [!NOTE] > > Supplier registration is only possible in production. In the sandbox environment, your invoices must use a supplier with the tax ID code set to `177472438` which is the TIN of the test supplier pre-enabled in that environment. Invopop has partnered with [ILYDA](https://ilyda.gr) to issue invoices in Greece. Each supplier must be registered with ILYDA before they can issue invoices. The registration process involves providing your company details, authorizing ILYDA as your electronic invoicing provider in TAXIS, and signing a service agreement. > [!NOTE] > > Greek regulation does not allow two myDATA providers to operate simultaneously for the same VAT number. If a supplier currently uses a different provider, they must switch to ILYDA before issuing invoices through Invopop. Switching providers is allowed; the restriction only applies to simultaneous use. See the [Greece FAQ](/faq/greece) for more details. > [!WARNING] > > All communication with ILYDA must go through Invopop. Neither you nor the supplier should contact ILYDA directly at any point during or after the onboarding process. Direct contact can lead to confusion, billing issues, and delays. Always send any questions, documents, or requests to [support@invopop.com](mailto:support@invopop.com). **1. Supplier authorizes ILYDA as their e-invoicing provider** The supplier must authorize ILYDA as their e-invoicing provider in TAXIS: 1. Go to [myTaxisnet](https://www1.gsis.gr/taxisnet/mytaxisnet) and log in with the company's credentials. 2. Select the **Authorizations** ("Εξουσιοδοτήσεις") tab on the left sidebar. 3. Scroll down to the **Providers of E-invoicing** ("Πάροχοι Ηλεκτρονικής Τιμολόγησης") section. 4. Click **New** ("Νέα"). 5. Enter ILYDA's VAT number: `094359854` and submit the authorization. Take note of the date the authorization was submitted — you will need it in the next step. **2. Send the supplier's details to Invopop** Contact [support@invopop.com](mailto:support@invopop.com) with the following information about the supplier you want to register: * **Company name** * **Business activity** * **VAT number** (ΑΦΜ) * **Tax office** (ΔΟΥ) * **Full address** * **Phone number** * **Email address** * **Legal representative name** * **TAXIS authorization date** (from step 1) Also specify which document types the supplier needs to issue: * **B2B**: invoices issued to private sector businesses. * **B2G**: invoices issued to public sector entities. * **B2C**: documents issued for individual retail sales. If the supplier issues B2C retail sales documents, Greek regulation requires them to have a backup internet service provider (ISP) to ensure uninterrupted connectivity with the e-invoicing platform. You must also provide: * **ISP provider name** * **Contract number** * **Contract date** **3. Sign the service agreement** Invopop will prepare a pre-filled service provision contract with ILYDA based on the details provided in step 2. We can send the contract directly to the supplier or to you as the integrator — let us know your preference. The supplier will have to review the contract, sign it, and return the signed copy to us. **4. Confirm and go live** Once Invopop receives the signed contract, we will complete the onboarding as soon as possible and notify you when the supplier is active and ready to issue invoices. At this point, you're ready to start sending invoices on behalf of the supplier. Head over to the [myDATA issuing invoices guide](/guides/gr-iapr) to continue. ## FAQ > [accordion] How do I register a supplier with myDATA? > > Contact Invopop to begin the onboarding flow with ILYDA. Production registration is multi-step: the supplier authorizes ILYDA in Taxisnet, declares ILYDA as their issuer in myDATA, and signs ILYDA's service agreement, then onboards with Invopop. Sandbox uses a shared pre-registered test AFM (`177472438`) — no manual steps required. > [accordion] What credentials does myDATA require to authenticate a supplier? > > No supplier-side certificates. ILYDA submits to myDATA on the supplier's behalf using its provider credentials, authorized by the supplier through Taxisnet. The supplier holds only their Taxisnet username/password. > [accordion] How are supplier credentials stored in Invopop for Greece? > > Suppliers don't upload credentials to Invopop — ILYDA holds the IAPR submission credentials on the supplier's behalf based on the Taxisnet authorization. Only the AFM and registration metadata are stored in Invopop. > [accordion] How do I de-register a supplier from myDATA? > > The provider authorization is managed by the supplier in Taxisnet, so de-registration happens there: the supplier logs in to [myTaxisnet](https://www1.gsis.gr/taxisnet/mytaxisnet), opens the **Authorizations** ("Εξουσιοδοτήσεις") section, and revokes ILYDA's authorization — or replaces it by authorizing a different e-invoicing provider if they are migrating. There is no automated de-registration flow in Invopop, so also notify [support@invopop.com](mailto:support@invopop.com) to complete the offboarding with ILYDA. > [accordion] Is re-registering a supplier different from a new registration? > > No — the process is the same. Registration and re-registration are both handled manually through Invopop support, so a previously de-registered supplier follows the [supplier registration guide](/guides/gr-iapr-supplier) again from the start: re-authorize ILYDA in Taxisnet and send the supplier's details to [support@invopop.com](mailto:support@invopop.com). More available in our [Greece FAQ](/faq/greece) section *** > [accordion] 🇬🇷 Invopop resources for Greece > > | | | > | - | - | > | Compliance | [Invoicing compliance in Greece](/compliance/greece) [Compliance timeline](/timelines/greece) | > | Apps | [ILYDA Greece](/apps/ilyda-greece) | > | Guides | [Supplier registration](/guides/gr-iapr-supplier) [Issuing invoices](/guides/gr-iapr) | > | FAQ | [Greece FAQ](/faq/greece) | > | GOBL | [Greece Tax Regime](https://docs.gobl.org/regimes/gr) [Greece myDATA addon](https://docs.gobl.org/addons/gr-mydata-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Greece → # How to go live Source: https://docs.invopop.com/guides/how-to-go-live Ready to issue real invoices? Here are the next steps Have you set up your sandbox account and everything is working correctly? Time to go live! Here's what you need to do: ### Set up a payment method and live workspace **1. Access your organization’s settings** From the Console, click on your avatar (bottom left) and select **Configure \{organization\_name}**. ![Configure Organization](https://mintcdn.com/invopop/L7nU5UxwtqEBx0MP/assets/guides/go-live-configure-org.png?fit=max\&auto=format\&n=L7nU5UxwtqEBx0MP\&q=85\&s=657fb773931767edf52da9eb40131694) Click on 'Admin' **2. Create a Billing Account** In the left-hand menu, click on *Billing*, then on *Create Billing Account* (top right). Name your billing account (e.g.: 'Acme Billing') and click on **Save**. ![Create a billing account](https://mintcdn.com/invopop/L7nU5UxwtqEBx0MP/assets/guides/go-live-create-billing-account.png?fit=max\&auto=format\&n=L7nU5UxwtqEBx0MP\&q=85\&s=72129b81eb17d1356498293873d191d0) Create a Billing Account **3. Add your invoicing information** Fill your invoicing information and click on **Save**. ![Add your invoicing information](https://mintcdn.com/invopop/L7nU5UxwtqEBx0MP/assets/guides/go-live-invoicing-information.png?fit=max\&auto=format\&n=L7nU5UxwtqEBx0MP\&q=85\&s=b4aefa69d4beae774fbd14d06305bebd) Create a Billing Account **4. Add your payment method and billing details** Once you add your invoicing information, adding a payment method will be enabled. Adding a payment method will take you to the Stripe page: * Add a payment method and click *Save* ![Stripe screenshot](https://mintcdn.com/invopop/L7nU5UxwtqEBx0MP/assets/guides/go-live-stripe.png?fit=max\&auto=format\&n=L7nU5UxwtqEBx0MP\&q=85\&s=3a07a9b804ab5b4fff8f5dc4a4c65327) Add a card on Stripe **5. Add a subscription plan** With the payment method in place, build the subscription for your billing account. A subscription lets you create unlimited workspaces, and is made up of: * **Billing period** — pay monthly or yearly. * **Pops tier** — the monthly computing credits used to process documents. See [pricing](/get-started/pricing) for what each action costs. * **Countries** — one country is included; each additional country adds a flat monthly fee. * **Integrations** — third-party platforms such as Stripe or Chargebee, each billed at its own rate. * **Pro features** — an optional flat monthly fee that adds chat and email support, unlimited users, audit logs, ISO27001 access, and removes Invopop's watermark from PDFs and emails. The estimated total updates as you make your selections. Add a discount code if you have one, then click **Save**. ![Billing account subscription form](https://mintcdn.com/invopop/L7nU5UxwtqEBx0MP/assets/guides/go-live-subscription.png?fit=max\&auto=format\&n=L7nU5UxwtqEBx0MP\&q=85\&s=6c70e1e7e6a65fb185771d7b6d5e7b0c) Build your subscription **6. Create your production environment (Live Workspace)** Once you introduce your payment details on Stripe you will return to the billing accounts screen. Click on **Workspaces** (in the side menu), then on *New workspace*. Assign a name, select the **Live** type and the billing account you just created. Click *Create workspace*. ![Create your live workspace](https://mintcdn.com/invopop/L7nU5UxwtqEBx0MP/assets/guides/go-live-new-workspace.png?fit=max\&auto=format\&n=L7nU5UxwtqEBx0MP\&q=85\&s=b369dca2a40ce7c29bab859668677479) Create your live workspace #### All set! Your production environment is now configured. From the Console, you should see your new *Live Workspace* in the selector (top left). If it doesn't appear, reload the page. If the issue persists, contact us at **[support@invopop.com](mailto:support@invopop.com)**. The live workspace starts empty. Follow [Replicate a sandbox workspace in live](/workspace/sandbox-to-live) to carry over your apps, workflows, series and API key permissions, and to see exactly what changes between the two environments. # Guides Source: https://docs.invopop.com/guides/index Get started, configure workflows, and achieve compliance across different countries and integrations. Explore our guides to learn how to use Invopop effectively. Whether you're setting up your first workflow, achieving compliance in a specific country, or integrating with third-party services, these guides provide step-by-step instructions and best practices. ## Upcoming mandates [France overview](/guides/fr-pa) B2B mandate starts September 2026. ![Flag of France](https://assets.invopop.com/flags/fr.svg) [VERI\*FACTU invoicing](/guides/es-verifactu) Spain enforces B2B from October 2028. ![VERI\*FACTU logo](https://assets.invopop.com/apps/verifactu/icon.svg) ## Recent mandate enforcements [Peppol](/guides/peppol) Belgium enforced B2B in January 2026. ![Peppol logo](https://assets.invopop.com/apps/peppol/icon.svg) [AT Portugal](/guides/pt-at) Portugal enforced B2B in January 2026. ![Autoridade Tributária logo](https://assets.invopop.com/apps/at-pt/icon.svg) ## Recent additions [Denmark](/guides/dk-nemhandel) OIOUBL invoicing over NemHandel. ![Flag of Denmark](https://assets.invopop.com/flags/dk.svg) [Finland](/guides/fi-finvoice) Finvoice on the operator network. ![Flag of Finland](https://assets.invopop.com/flags/fi.svg) ## Getting started [How to go live](/guides/how-to-go-live) Move your sandbox to a live workspace. [GOBL](/guides/gobl) The format for structured documents. ![GOBL logo](https://assets.invopop.com/icons/gobl.svg) ## Integrations [Stripe](/guides/stripe) Sync invoices with Stripe payments. ![Stripe logo](https://assets.invopop.com/apps/stripe/icon.svg) [Chargebee](/guides/chargebee) Invoice your Chargebee subscriptions. ![Chargebee logo](https://assets.invopop.com/apps/chargebee/icon.svg) # Italy archiving guide Source: https://docs.invopop.com/guides/it-sdi-archiving Preserve the invoices you exchange through SDI under Italy's certified archiving rules. ## Introduction Sending an invoice through SDI is not the end of its legal life. Italian businesses must also preserve their electronic invoices long-term through a certified process known as *conservazione a norma* (also called *conservazione sostitutiva*). Keeping a copy of the XML on your own systems does not satisfy it: preservation has to follow the rules set by the Italian authorities, which in practice means an accredited provider. Invopop handles this through [A-Cube](https://www.acubeapi.com), whose preservation service performs the certified archiving and issues a signed receipt for every preserved document. What gets preserved is the exact FatturaPA file exchanged with SDI, so the archived document matches what the tax authority saw. Archiving covers both directions. The rules apply to the invoices you issue and the invoices you receive, and both are preserved the same way — only the metadata differs, recording each document as issued or received. | - | Sandbox | Live | | - | - | - | | **Preservation service** | Test environment | Production | | **Legal validity** | None, for testing only | Certified preservation | ## Setup Archiving takes two things: the company has to be enabled for preservation, and each document has to be archived. **1. Enable the company for preservation** Before any of its invoices can be preserved, a company must be registered with the preservation service. The **Register party for e-archiving** step does this, and the registration workflow from the [receiving invoices](/guides/it-sdi-reception) guide already includes it — one registration covers both directions. > [card] [Italy register party workflow](https://console.invopop.com/redirect/workflows/new?template=it-italy-register-party) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json Italy register party workflow theme={"system"} > { > "name": "Italy register party", > "description": "Register a company to receive invoices and enable archiving", > "schema": "org/party", > "steps": [ > { > "id": "d0a624c0-7ab3-11f1-bcdd-79d761bdaace", > "name": "Register party with SDI", > "provider": "gov-it.sdi.register", > "summary": "Claim the company's fiscal ID for this workspace" > }, > { > "id": "f19737f0-7ab3-11f1-bcdd-79d761bdaace", > "name": "Register party for e-archiving", > "provider": "gov-it.archive.register", > "summary": "Enable certified preservation for this company" > } > ], > "rescue": [] > } > ``` The step reads the company's Italian tax ID from the party, so the party must carry one. Re-running it on an already-enabled company is skipped: the step reports `SKIP` without contacting the preservation service again. **2. Archive the documents** Add the **Archive document** step to your invoice workflows, after the step that exchanges the document with SDI — after **Send invoice to SDI** when issuing, after **Import invoice from SDI** when receiving. It preserves the FatturaPA file that step put on the entry, so it has nothing to work with if it runs first. You can equally run it on its own, as a separate workflow over invoices that are already exchanged: > [card] [Italy archive document workflow](https://console.invopop.com/redirect/workflows/new?template=it-italy-archive-document) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json Italy archive document workflow theme={"system"} > { > "name": "Italy archive document", > "description": "Preserve a document under conservazione a norma", > "schema": "bill/invoice", > "steps": [ > { > "id": "6023d8e0-7ab4-11f1-8f97-792526fe02d9", > "name": "Archive document", > "provider": "gov-it.archive.store", > "summary": "Preserve the document and attach its receipt" > } > ], > "rescue": [] > } > ``` ## How the archive step works The step needs no configuration. It works out whether the document is issued or received from the file it finds on the entry — an invoice that arrived from SDI is preserved as received, anything else as issued — and records the right party as the document's owner either way. When it runs, it: 1. Uploads the exact FatturaPA bytes exchanged with SDI. 2. Records the preservation service's identifier for the document as an indexed `archive-uuid` field on the entry, so it can be traced later and so a retry can pick up where this run left off. 3. Sends the preservation metadata built from the GOBL invoice. 4. Waits for the service to confirm the document is preserved and its receipt is ready. 5. Attaches the receipt to the entry in both formats the service provides. Preservation is asynchronous, so the step stays `QUEUED` while it waits, then completes with `OK`. The document itself is usually preserved within seconds. The receipt normally follows within minutes, but it can take hours; the step keeps checking, spacing its checks further apart each time, and only gives up after several hours. If the preservation service fails partway through, the step retries from where it stopped, so the document is never uploaded twice. Re-running it on an already-archived invoice is skipped, so nothing is fetched or attached again. The step returns: * `OK` when the invoice was preserved and its receipt stored * `SKIP` when the entry already carries the receipt — an earlier run archived the invoice * `ERR` when the preservation service is temporarily unavailable — the platform retries, and the step resumes from where it stopped * `KO` when there is no FatturaPA file on the entry (the invoice was never exchanged with SDI, or the step ran before the send or import step), when the preservation service rejects the invoice's metadata, when the account is not authorised for preservation, or when the same file was already archived from another entry ## What ends up on the entry | Attachment | What it is | | - | - | | `archive-receipt.pdf` | The preservation receipt, readable | | `archive-receipt.xml` | The preservation receipt as a signed XML document | | Metadata | What it is | | - | - | | `archive-uuid` | The preservation service's identifier for the archived document. Indexed, so the entry can be looked up by it | ## Troubleshooting | Symptom | Cause | | - | - | | The step fails saying no FatturaPA file was found | It ran before the send or import step, or on an invoice never exchanged with SDI. Archiving preserves the transmitted file, so the exchange has to happen first. | | Registering the company fails on its tax ID | The party has no Italian tax ID. Preservation is only available for Italian companies. | | The step stays `QUEUED` longer than expected | The receipt is not ready yet. The step keeps checking, less often as time goes on, and completes on its own once the receipt exists. On a slow day at the preservation service this can take hours. | | The step shows `ERR`, then completes on a later attempt | The preservation service was briefly unavailable. The step resumed from where it stopped, without uploading the document again. | ## FAQ > [accordion] How does certified archiving (conservazione a norma) work with Invopop? > > Add the **Archive document** step to your workflows, after the step that exchanges the document with SDI. It uploads the exact FatturaPA file, waits for the preservation service to confirm the document is preserved, and attaches the signed receipt to the entry. See the [archiving guide](/guides/it-sdi-archiving) for the full setup. > [accordion] Do received invoices need to be archived too? > > Yes. Italian preservation rules cover both the invoices you issue and the ones you receive, and both are preserved the same way — add the **Archive document** step after the import step in your receiving workflow. > [accordion] What happens to archived invoices when I unregister a company? > > Nothing — unregistering only stops receiving. Invoices already preserved under *conservazione a norma* stay preserved, as the law requires. More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # Italy issuing invoices guide Source: https://docs.invopop.com/guides/it-sdi-invoicing Issue electronic invoices through Italy's SDI system over Invopop's accredited channel. ## Introduction Electronic invoicing is mandatory for essentially every VAT-registered business in Italy. The *Sistema di Interscambio* (SDI) is the tax authority's central hub: it validates every invoice and delivers it to the buyer. The legal invoice is the cleared FatturaPA XML file. Invopop converts your [GOBL](https://docs.gobl.org) invoice into FatturaPA and transmits it over **its own accredited SDICoop channel**, registered with the tax authority in Invopop's name. Nothing sits between your workspace and SDI. Companion guides: [Status](/guides/it-sdi-status) for what SDI reports back about an invoice, [Receiving invoices](/guides/it-sdi-reception), and [Archiving](/guides/it-sdi-archiving). | - | Sandbox | Live | | - | - | - | | **SDI exchange** | Simulated end to end, nothing leaves the platform | Real SDI over Invopop's accredited channel | | **Outcome** | You choose it, using a reserved recipient code | Decided by SDI and the recipient | | **Archiving** | Test preservation, no legal validity | Certified preservation | | **Legal validity** | None | The invoice is legally filed with SDI | > [!NOTE] > > The Italy app sends your invoices to the appropriate environment based on whether your current workspace is Sandbox or Live. Have your agent issue an invoice through SDI in your sandbox. Read [https://docs.invopop.com/guides/it-sdi-invoicing.md](https://docs.invopop.com/guides/it-sdi-invoicing.md), [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md) and [https://docs.gobl.org/addons/it-sdi-v1.md](https://docs.gobl.org/addons/it-sdi-v1.md). In my sandbox workspace, using the token in INVOPOP\_TOKEN and the workflow ID I give you, create a bill/invoice entry with $regime IT, $addons containing it-sdi-v1, the supplier I describe, and a customer of the kind I describe. Start from one of the example invoices in the guide, and do not invent tax codes, recipient codes or extension codes. Run the workflow with wait=30, then fetch the entry and report its state, the job's per-step statuses and faults, and the files attached. Then open the FatturaPA XML and tell me what is in CodiceDestinatario, PECDestinatario and the CessionarioCommittente identifiers, and why each value is what it is. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Connect the Italy app** 1. Navigate to **Configuration** → **Apps** 2. Find **Italy** in the app discovery list 3. Click **Connect** to activate The initial connection requires no configuration for sending invoices. **2. Configure the sending workflow** This workflow numbers the invoice, seals the envelope, and submits it to SDI. > [card] [Italy send invoice workflow](https://console.invopop.com/redirect/workflows/new?template=it-italy-send-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Italy send invoice workflow theme={"system"} > { > "name": "Italy send invoice", > "description": "Issue an invoice through Italy's SDI system", > "schema": "bill/invoice", > "steps": [ > { > "id": "019ed592-0763-79c1-9ca1-a2f7795e2b16", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · SDI · 000001", > "config": { > "name": "SDI", > "padding": 6, > "start": 1 > } > }, > { > "id": "019ed592-0763-793f-8fbe-bc977455d784", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "019ed592-0763-7ce4-beb0-2c95c77399d3", > "name": "Send invoice to SDI", > "provider": "gov-it.sdi.send.invoice", > "summary": "Submit the FatturaPA document to SDI" > } > ], > "rescue": [ > { > "id": "019ed592-0763-7426-9bbf-6ed466d5749f", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Configure the status workflow** This workflow runs on each notification SDI sends about an invoice you issued, and records it as a status entry. Select it in the Italy app's configuration so incoming notifications run it automatically. > [card] [Italy import invoice status workflow](https://console.invopop.com/redirect/workflows/new?template=it-italy-import-status) > > Add to my workspace → > [tab] Workflow > [tab] Code > > ```json Italy import invoice status workflow theme={"system"} > { > "name": "Italy import invoice status", > "description": "Record an SDI notification about an invoice you sent", > "schema": "bill/status", > "steps": [ > { > "id": "92d923d7-0d5a-4ee2-a7f9-f9fbd89f1650", > "name": "Import status from SDI", > "provider": "gov-it.sdi.import.status", > "summary": "Turn the SDI notification into a status entry" > } > ], > "rescue": [] > } > ``` Add whatever your integration needs after the import step — calling a webhook, notifying your systems, or moving the invoice itself. ## Sending invoices Invopop uses the [GOBL FatturaPA](https://github.com/invopop/gobl.fatturapa) library to process conversions. When creating invoices for SDI, you need to: 1. Set the `regime` field to `IT` in your GOBL invoice 2. Add the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon to enable Italian-specific validations and extensions Detailed information about the SDI-specific extensions and validations can be found in: * [Italy SDI FatturaPA v1.x Addon Documentation](https://docs.gobl.org/addons/it-sdi-v1) * [Italy Tax Regime Documentation](https://docs.gobl.org/regimes/it) Example invoices are provided below, or you can use the [GOBL Builder](https://build.gobl.org) to create custom invoices. ### Identifying the customer Italy has two fiscal identifiers — the *partita IVA* (VAT number) and the *codice fiscale* — and which one you put on the customer depends on who they are. | Your customer is | What to put on the party | | - | - | | An Italian business | `tax_id` with `country: "IT"` and the *partita IVA*, plus an `it-sdi-code` inbox holding their *codice destinatario*, an `it-sdi-pec` inbox holding their PEC address, or both | | An Italian private individual | `tax_id` with `country: "IT"` and no code, plus an `it-fiscal-code` identity holding their *codice fiscale*. No inbox | | Anyone outside Italy | `tax_id` with their country, and their VAT number if they have one. No inbox | Codes never carry a country prefix, because the country has its own field: write a *partita IVA* as `09876543217`, not `IT09876543217`. A *codice destinatario* is 7 characters, and a *codice fiscale* is 16 for a person or 11 digits for a company. If you don't have a code for a party, leave it out rather than inventing a placeholder. Here is each case as a customer [party](https://docs.gobl.org/draft-0/org/party): > [accordion] Italian business > > The `tax_id` carries the *partita IVA*, and the `it-sdi-code` inbox carries the *codice destinatario* SDI routes by. A customer who receives through certified email instead has an `it-sdi-pec` inbox holding the address. A customer who has both can carry both: the invoice routes by the *codice destinatario*, and the PEC is left out of the file. > > ```json Italy customer example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Cliente Esempio SpA", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "8", > "street": "Via Roma", > "locality": "Torino", > "region": "TO", > "code": "10121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "acquisti@clienteesempio.it" > } > ] > } > ``` > [accordion] Italian private individual > > The *codice fiscale* identifies them, as an `identities` entry keyed `it-fiscal-code`. They have no VAT number, so the `tax_id` holds only the country, and there's no inbox. SDI doesn't deliver to private individuals — it files the invoice in their personal area on the tax authority portal — so you must give the customer a copy yourself, normally as a PDF. > > ```json Italian private individual example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Mario Leoni", > "tax_id": { > "country": "IT" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "MRTMTT91D08F205J" > } > ], > "addresses": [ > { > "num": "1", > "street": "Viale dei Lavoratori", > "locality": "Roma", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario.leoni@example.it" > } > ] > } > ``` > [accordion] Customer outside Italy > > The country in `tax_id` is all SDI needs, alongside a VAT number for a business inside the EU. No inbox: SDI cannot deliver outside Italy, so the file always carries the cross-border recipient code `XXXXXXX`, and an inbox on the party is ignored. > > ```json Foreign private customer example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Marie Dupont", > "tax_id": { > "country": "FR" > }, > "addresses": [ > { > "num": "12", > "street": "Rue de Rivoli", > "locality": "Paris", > "code": "75001", > "country": "FR" > } > ], > "emails": [ > { > "addr": "marie.dupont@example.fr" > } > ] > } > ``` ### How the send step works The step generates the FatturaPA XML, submits it to SDI, and attaches the transmitted file to the invoice entry. It completes as soon as SDI accepts the file for processing — it does **not** wait for SDI to decide what happens next, so a verdict that takes days never holds your workflow open. The step returns: * `OK` when SDI accepted the file. The result carries SDI's identifier for the submission (`sdi_id`), which every later notification about this invoice shares. * `KO` when the invoice couldn't be converted or SDI refused the submission outright. Acceptance is not delivery. An accepted file can still be rejected minutes later, and that arrives as a status. > [!NOTE] > > Invoices addressed to a public administration (`FPA12`) need a qualified electronic signature. The send step signs them with Invopop's qualified electronic seal, so the file attached to the entry is the signed `.xml.p7m`. ### Simplified invoices Italian law lets you issue a simplified invoice (*fattura semplificata*) for a sale of up to €400 including VAT, and for credit and debit notes whatever their amount. It asks less about your customer: their partita IVA or codice fiscale is enough. You can keep issuing ordinary invoices for these sales; the simplified one is an option. To issue one, add the `simplified` tag to your invoice: ```json theme={"system"} "$tags": ["simplified"] ``` The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon then sets the format to `FSM10` and the document type to `TD07` (`TD08` for a credit note, `TD09` for a debit note), and the send step delivers a simplified FatturaPA file to SDI. The invoice still needs a customer, identified in one of two ways: | Your customer is | What to put on the customer | | - | - | | A business or professional with a partita IVA | `name`, and `tax_id` with `country` set to `IT` and the partita IVA as `code` | | A private individual | `tax_id` with only `country` set to `IT`, and the codice fiscale as an identity with key `it-fiscal-code` | GOBL requires a name for a customer with a partita IVA, but the simplified file carries a name only together with an address: without one, the name stays on your invoice and isn't sent to SDI. A private individual needs neither. If you only have the partita IVA, put a placeholder such as the partita IVA itself in `name`: without an address the simplified file doesn't include the name, so the placeholder stays on your invoice and isn't sent to SDI. Don't add an address in that case, or the placeholder would be sent as the customer's name. The addon rejects a simplified invoice that the format or the law doesn't allow, before it reaches SDI: * A total over €400 including VAT, converted to euros with the invoice's exchange rate. The limit doesn't apply to credit and debit notes, or to suppliers in the flat-rate regime (`RF19`) or the cross-border VAT franchise (`RF20`). * A customer that is a public administration. * Intra-EU supplies of goods (`N3.2`), services taxed on a business in another EU country (`N2.1`), reverse charge (`N6`) and VAT due in another EU country (`N7`). * A sale to a habitual exporter (`N3.5`) or a stamp duty exemption (`NB1`, `NB2`, `NB3`). Only the ordinary format carries the declaration of intent and these exemptions. * Withholding taxes, fund contributions, a rounding amount, and charges or discounts without VAT. Payment terms, bank details, ordering references and notes are not part of the simplified format, so the file leaves them out. To correct a simplified invoice, issue a credit or debit note with the `simplified` tag. It must refer to the invoice it corrects, with that invoice's code and issue date and the reason for the correction. If you create the note from the original with `previous_id` and `correct`, set `reason` in the `correct` object. The [Simplified Invoice](#example-invoices) example below shows a complete document. ### Issuing on behalf of a supplier Italian law lets a third party issue an invoice on the supplier's behalf, under an agreement between the two; the supplier stays responsible for the VAT. This is your case when you invoice for the businesses that sell through your platform: the business is the supplier on the invoice, and you are the issuer. FatturaPA records this in the file, so SDI and the customer can see who issued it. To issue one, add yourself as the `issuer` in the invoice's [`ordering`](https://docs.gobl.org/draft-0/bill/ordering), with your name and partita IVA: ```json theme={"system"} "ordering": { "issuer": { "name": "Your Company S.r.l.", "tax_id": { "country": "IT", "code": "01234567897" } } } ``` The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon then marks the invoice as issued by a third party (`it-sdi-issuer-type` set to `TZ`), and the send step writes your details into the file next to the supplier's and the customer's. If you have a codice fiscale and no partita IVA, give it as an `it-fiscal-code` identity. A person gives the name in `people`. An issuer outside Italy gives its own country and tax number. SDI needs nothing else: the supplier doesn't register you with it, and no notice is sent. The one exception is an issuer established in a country with no mutual-assistance agreement with Italy; then the supplier must notify the Agenzia delle Entrate before you issue for them. When the customer issues the document, as in the self-billed types TD16 to TD20, TD22, TD23 and TD28, the addon marks it as issued by the customer (`CC`) on its own. Don't add an `issuer` to those. TD21 and TD27 get no issuer type, because the supplier issues those itself. ## Invoice statuses SDI's verdict on an invoice arrives after the send step has finished, as a notification recorded against the invoice: delivered, rejected, undeliverable, or — for public administrations — accepted or refused by the buyer. Each notification and what it means for the invoice is covered in the [Status](/guides/it-sdi-status) guide. ## Archiving (conservazione a norma) Italian law requires issued electronic invoices to be preserved long-term through a certified process. Add the **Archive document** step after the send step to preserve each invoice as you issue it. See the [Archiving](/guides/it-sdi-archiving) guide for the full setup. ## Testing in the sandbox There is no public SDI test environment you can point a workflow at. In sandbox, the app plays SDI's part itself: it accepts the file, then feeds the status notifications a real exchange would produce back through the same intake the live channel uses. Your workflow cannot tell the difference, and nothing leaves the platform. ### Choosing the outcome You choose which outcome to rehearse by setting a reserved *codice destinatario* on the customer. In GOBL that is an inbox with the key `it-sdi-code`: ```json theme={"system"} { "customer": { "name": "Test Customer SRL", "tax_id": { "country": "IT", "code": "12345678903" }, "inboxes": [ { "key": "it-sdi-code", "code": "SIMNS00" } ] } } ``` | Recipient code | Simulated outcome | | - | - | | *(any ordinary code)* | `RC` — delivered to the recipient | | `SIMNS00` | `NS` — SDI rejected the invoice | | `SIMMC00` | `MC` — accepted, but undeliverable | | `SIMAT00` | `AT` — delivery impossible, attestation issued | | `SIMDT00` | `RC`, then `DT` — delivered, then the response window expired | | `SIMEC1` | `RC`, then `NE`/`EC01` — delivered, then accepted | | `SIMEC2` | `RC`, then `NE`/`EC02` — delivered, then rejected | The codes are sized to real FatturaPA recipient-code lengths, so they pass validation. Any code not in this list — including a real customer's — resolves to a successful delivery. > [!NOTE] > > The sandbox simulates SDI's *responses*, not its validation. In practice this distinction rarely matters: the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates invoices against the same rules SDI applies, so an invoice that builds cleanly should only rarely be rejected live — though edge cases can still slip through. ### Receiving your own invoices Send a sandbox invoice to a company you have [registered for reception](/guides/it-sdi-reception) and the app also loops it back to you as an inbound delivery, running your import workflow exactly as a live delivery would. This is the only way to receive an invoice in sandbox, and a convenient way to exercise sending and receiving in a single run. ## Example invoices > [accordion] B2B Invoice > > In this example, we're issuing a standard B2B invoice from an Italian supplier to another Italian business customer. > > Notice: > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > * the minimal version contains only essential fields; `gobl build` handles all calculations, > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2B transactions, and, > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > ```json SDI B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "intermediate" > } > ] > } > ] > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "sum": "1.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ], > "total": "1.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "sum": "125.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "intermediate", > "percent": "10.0%" > } > ], > "total": "125.00" > } > ], > "totals": { > "sum": "126.00", > "tax_included": "11.36", > "total": "114.64", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > }, > "base": "1.00", > "amount": "0.00" > }, > { > "key": "standard", > "base": "113.64", > "percent": "10.0%", > "amount": "11.36" > } > ], > "amount": "11.36" > } > ], > "sum": "11.36" > }, > "tax": "11.36", > "total_with_tax": "126.00", > "payable": "126.00" > } > } > ``` > [accordion] B2G Invoice > > In this example, we're issuing a B2G invoice from an Italian supplier to the Italian government. > > Notice: > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > * the minimal version contains only essential fields; `gobl build` handles all calculations, > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2G transactions, and, > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > ```json SDI B2G Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": ["it-sdi-v1"], > "$tags": ["b2g"], > "series": "PA", > "code": "2026-001", > "issue_date": "2026-05-08", > "currency": "EUR", > "supplier": { > "name": "Esempio Fornitore SRL", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > }, > "addresses": [ > { > "num": "10", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > {"addr": "amministrazione@esempio-fornitore.it"} > ] > }, > "customer": { > "name": "Comune di Roma", > "tax_id": { > "country": "IT", > "code": "02438750586" > }, > "addresses": [ > { > "num": "1", > "street": "Piazza del Campidoglio", > "locality": "Roma", > "region": "RM", > "code": "00186", > "country": "IT" > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "UF9DN8" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Servizi di consulenza informatica", > "price": "150.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Licenza software annuale", > "price": "1200.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ext": { > "it-sdi-payment-means": "MP05" > }, > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "Banca Esempio SpA", > "bic": "BPMOIT22XXX" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2026-06-07", > "percent": "100%" > } > ] > } > }, > "notes": [ > { > "key": "general", > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "b2g" > ], > "type": "standard", > "series": "PA", > "code": "2026-001", > "issue_date": "2026-05-08", > "currency": "EUR", > "tax": { > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPA12" > } > }, > "supplier": { > "name": "Esempio Fornitore SRL", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "10", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "amministrazione@esempio-fornitore.it" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Comune di Roma", > "tax_id": { > "country": "IT", > "code": "02438750586" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "UF9DN8" > } > ], > "addresses": [ > { > "num": "1", > "street": "Piazza del Campidoglio", > "locality": "Roma", > "region": "RM", > "code": "00186", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Servizi di consulenza informatica", > "price": "150.00", > "unit": "h" > }, > "sum": "3000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "3000.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Licenza software annuale", > "price": "1200.00" > }, > "sum": "1200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "1200.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-06-07", > "amount": "5124.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "bic": "BPMOIT22XXX", > "name": "Banca Esempio SpA" > } > ], > "ext": { > "it-sdi-payment-means": "MP05" > } > } > }, > "totals": { > "sum": "4200.00", > "total": "4200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "4200.00", > "percent": "22.0%", > "amount": "924.00" > } > ], > "amount": "924.00" > } > ], > "sum": "924.00" > }, > "tax": "924.00", > "total_with_tax": "5124.00", > "payable": "5124.00" > }, > "notes": [ > { > "key": "general", > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > } > ] > } > ``` > [accordion] Simplified Invoice (Fattura Semplificata) > > In this example, we're issuing a simplified invoice for a €49.00 restaurant bill to a private customer identified only by their codice fiscale. > > Notice: > > * `$tags` includes `simplified`, so `gobl build` sets the format to `FSM10` and the document type to `TD07`, > * the customer has no name or address: an Italian `tax_id` without a code, plus their codice fiscale as an `it-fiscal-code` identity, > * prices include VAT, and the total with VAT must stay within €400, which the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon checks before the invoice is sent, and, > * see [Simplified invoices](/guides/it-sdi-invoicing#simplified-invoices) for what else the format allows. > > ```json SDI Simplified Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "simplified" > ], > "series": "SAMPLE", > "code": "003", > "issue_date": "2026-10-01", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "tax_id": { > "country": "IT" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "RSSGNN60R30H501U" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Menu di lavoro", > "price": "18.50" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "intermediate" > } > ] > }, > { > "quantity": "2", > "item": { > "name": "Vino della casa", > "price": "6.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "code": "003", > "issue_date": "2026-10-01", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD07", > "it-sdi-format": "FSM10" > } > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "tax_id": { > "country": "IT" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "RSSGNN60R30H501U" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Menu di lavoro", > "price": "18.50" > }, > "sum": "37.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "intermediate", > "percent": "10.0%" > } > ], > "total": "37.00" > }, > { > "i": 2, > "quantity": "2", > "item": { > "name": "Vino della casa", > "price": "6.00" > }, > "sum": "12.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "12.00" > } > ], > "totals": { > "sum": "49.00", > "tax_included": "5.53", > "total": "43.47", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "33.64", > "percent": "10.0%", > "amount": "3.36" > }, > { > "key": "standard", > "base": "9.84", > "percent": "22.0%", > "amount": "2.16" > } > ], > "amount": "5.53" > } > ], > "sum": "5.53" > }, > "tax": "5.53", > "total_with_tax": "49.00", > "payable": "49.00" > } > } > ``` > [accordion] Stamp Duty Invoice (Marca da Bollo) > > This example matches the **B2B invoice** above but adds a **€2.00 Marca da bollo** (stamp duty) as a document-level charge. > > **Flat-rate scheme (*forfettario*):** taxpayers using the *regime forfettario* do **not** charge VAT on their invoices. When the document total goes **above €77.47**, they must account for **imposta di bollo**—typically by adding a **€2.00** stamp duty line, as in this sample. (Thresholds and rules can change; confirm with your adviser or the Agenzia delle Entrate if in doubt.) > > Notice: > > * the `charges` array includes an entry with `"key": "stamp-duty"`, amount `"2.00"`, and reason `Imposta di bollo`, > * the minimal version is otherwise the same as the B2B example; `gobl build` recalculates totals including the charge, > * the built version shows `totals.charge` and a higher `payable` / `total_with_tax` than the plain B2B invoice, > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon continues to validate the document for SDI transmission. > > ```json SDI Stamp duty invoice (Marca da Bollo) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "intermediate" > } > ] > } > ], > "charges": [ > { > "key": "stamp-duty", > "i": 1, > "amount": "2.00", > "reason": "Imposta di bollo" > } > ] > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "sum": "1.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ], > "total": "1.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "sum": "125.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "intermediate", > "percent": "10.0%" > } > ], > "total": "125.00" > } > ], > "charges": [ > { > "i": 1, > "key": "stamp-duty", > "reason": "Imposta di bollo", > "amount": "2.00" > } > ], > "totals": { > "sum": "126.00", > "charge": "2.00", > "tax_included": "11.36", > "total": "116.64", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > }, > "base": "1.00", > "amount": "0.00" > }, > { > "key": "standard", > "base": "113.64", > "percent": "10.0%", > "amount": "11.36" > } > ], > "amount": "11.36" > } > ], > "sum": "11.36" > }, > "tax": "11.36", > "total_with_tax": "128.00", > "payable": "128.00" > } > } > ``` > [accordion] B2B Invoice with Additional Fields > > In this example, we're issuing a comprehensive B2B invoice with additional optional fields such as ordering information, payment details, and document references. > > Notice: > > * this invoice demonstrates advanced SDI features like CIG/CUP codes, payment methods, and bank details, > * the minimal version includes ordering and payment details; `gobl build` calculates all totals, > * when running `gobl build`, the system validates all additional fields according to SDI specifications and calculates totals, > * the built version shows the complete document with all calculated fields, tax breakdowns, and properly formatted additional information, > * additional fields like `ordering`, `payment`, and document references are important for public administration invoices (B2G), and, > * the addon ensures all optional fields are properly validated and formatted for SDI transmission. > > ```json SDI B2B Invoice with additional fields theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "series": "SAMPLE", > "code": "001", > "issue_date": "2023-03-02", > "currency": "EUR", > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "telephones": [ > { > "num": "999999999" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2023-09-01", > "percent": "100%" > } > ] > } > } > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2023-03-02", > "currency": "EUR", > "tax": { > "ext": { > "it-sdi-document-type": "TD06", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "telephones": [ > { > "num": "999999999" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "200.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2023-09-01", > "amount": "244.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ], > "ext": { > "it-sdi-payment-means": "MP05" > } > } > }, > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200.00", > "percent": "22.0%", > "amount": "44.00" > } > ], > "amount": "44.00" > } > ], > "sum": "44.00" > }, > "tax": "44.00", > "total_with_tax": "244.00", > "payable": "244.00" > } > } > ``` > [accordion] VAT Exempt Invoice > > In this example, we're issuing an invoice for goods or services that are exempt from VAT (IVA). > > Notice: > > * the line item includes a tax with `"key": "exempt"` indicating this is a VAT-exempt transaction, > * the minimal version omits the exemption code extension (`it-sdi-exempt`), which will be automatically added during `gobl build`, > * when running `gobl build`, the system calculates totals with zero VAT and validates the exemption structure, > * the built version shows the complete document with the exemption code extension (e.g., `"it-sdi-exempt": "N4"`) applied to the tax rate, > * exemption codes must comply with SDI requirements—consult the [complete list of exemption reasons](https://docs.gobl.org/addons/it-sdi-v1#it-sdi-exempt) in the GOBL documentation, > * common exemption codes include N4 (exempt), N3.1 (exports), N3.2 (intra-community supplies), and N6.x (reverse charge scenarios), and, > * the SDI validates that exempt invoices include proper exemption codes before transmission. > > ```json SDI Exempt Invoice theme={"system"} > > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "code": "INVOICE-001", > "supplier": { > "name": "Example IT Supplier S.r.l.", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "street": "Via Roma, 123", > "locality": "Milan", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "info@supplier.it" > } > ] > }, > "customer": { > "name": "Example IT Customer S.p.A.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "addresses": [ > { > "street": "Via Dante, 456", > "locality": "Rome", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Tax Exempt Service", > "price": "100.00" > }, > "taxes": [ > { > "cat": "VAT", > "key": "exempt" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "code": "INVOICE-001", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Example IT Supplier S.r.l.", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "street": "Via Roma, 123", > "locality": "Milan", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "info@supplier.it" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Example IT Customer S.p.A.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "addresses": [ > { > "street": "Via Dante, 456", > "locality": "Rome", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Tax Exempt Service", > "price": "100.00" > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ], > "total": "1000.00" > } > ], > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > }, > "base": "1000.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1000.00", > "payable": "1000.00" > } > } > ``` > [accordion] Credit Note > > In this example, we're issuing a credit note (nota di credito) to correct or refund a previously issued invoice. > > Notice: > > * the `type` field is set to `credit-note` to indicate this is a corrective document, > * the `preceding` field references the original invoice being corrected, > * the minimal version contains only essential correction details; `gobl build` calculates negative amounts, > * when running `gobl build`, the system automatically calculates negative totals, IVA refunds, validates the credit note structure, and applies SDI rules, > * the built version shows all calculated fields including negative amounts for the refund and proper tax adjustments, > * credit notes must be properly linked to the original invoice and transmitted through SDI, and, > * the SDI system validates the credit note format before accepting and forwarding it to the recipient. > > ```json SDI Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "type": "credit-note", > "series": "CN", > "code": "001", > "issue_date": "2024-10-09", > "currency": "EUR", > "preceding": [ > { > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > "type": "standard", > "issue_date": "2023-03-02", > "series": "SAMPLE", > "code": "001" > } > ], > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ] > } > } > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "type": "credit-note", > "series": "CN", > "code": "001", > "issue_date": "2024-10-09", > "currency": "EUR", > "preceding": [ > { > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > "type": "standard", > "issue_date": "2023-03-02", > "series": "SAMPLE", > "code": "001" > } > ], > "tax": { > "ext": { > "it-sdi-document-type": "TD04", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "200.00" > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ], > "ext": { > "it-sdi-payment-means": "MP05" > } > } > }, > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200.00", > "percent": "22.0%", > "amount": "44.00" > } > ], > "amount": "44.00" > } > ], > "sum": "44.00" > }, > "tax": "44.00", > "total_with_tax": "244.00", > "payable": "244.00" > } > } > ``` > [accordion] Invoice after a documento commerciale > > In this example, a retail sale was first recorded with a [Smart Receipt](/guides/it-ticket) (*documento commerciale*) and the customer later asked for an invoice. The invoice is an ordinary SDI invoice that references the receipt issued for the same sale. > > Notice: > > * the line item carries an `attributes` entry with `type` `N.DOC.COMM`, the receipt's AdE document number in `text`, its progressive number in `amount`, and the receipt date in `date`, > * the `it-sdi-v1` addon converts each item attribute into an `AltriDatiGestionali` block: `type` becomes `TipoDato`, `text` becomes `RiferimentoTesto`, `amount` becomes `RiferimentoNumero`, and `date` becomes `RiferimentoData`, which is the layout the AdE describes for invoices preceded by a receipt, > * `type` is limited to 10 ASCII characters and `text` to 60 characters, and `amount` is rendered with at least two decimals, so `7816` arrives at SDI as `7816.00`, > * the receipt's document number is the `ade-ref` stamp the Smart Receipts app adds to the receipt's header after the AdE accepts it, > * `issue_date` is the day of the sale, because FatturaPA's `Data` comes from `issue_date` (`op_date` is not written to the XML), and without further tags `gobl build` sets the document type to `TD01`, > * the Smart Receipt itself is not changed by this invoice, and your own VAT records must remove the invoiced amount from that day's *corrispettivi*. See [Invoice requested after a receipt](/guides/it-ticket#invoice-requested-after-a-receipt) for the full sequence. > > ```json SDI invoice after a documento commerciale theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "series": "SAMPLE", > "code": "003", > "issue_date": "2025-05-22", > "op_date": "2025-05-20", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > }, > "addresses": [ > { > "num": "12", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "50123", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "3", > "item": { > "name": "Cleaning products", > "price": "137.50", > "attributes": [ > { > "type": "N.DOC.COMM", > "text": "ACUBE2025/0000-7816", > "amount": "7816", > "date": "2025-05-20" > } > ] > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "003", > "issue_date": "2025-05-22", > "op_date": "2025-05-20", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > }, > "addresses": [ > { > "num": "12", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "50123", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "3", > "item": { > "name": "Cleaning products", > "attributes": [ > { > "type": "N.DOC.COMM", > "text": "ACUBE2025/0000-7816", > "amount": "7816", > "date": "2025-05-20" > } > ], > "price": "137.50" > }, > "sum": "412.50", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "412.50" > } > ], > "totals": { > "sum": "412.50", > "tax_included": "74.39", > "total": "338.11", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "338.11", > "percent": "22.0%", > "amount": "74.39" > } > ], > "amount": "74.39" > } > ], > "sum": "74.39" > }, > "tax": "74.39", > "total_with_tax": "412.50", > "payable": "412.50" > } > } > ``` ## FAQ > [accordion] How do I configure my workspace for Italian invoicing? > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > [accordion] How do I issue a documento commerciale (scontrino)? > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > [accordion] Where do I find Italy-specific GOBL documentation? > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. > [accordion] Why is my invoice processing taking so long? > > The **Send invoice to SDI** step completes as soon as SDI accepts the file — it doesn't wait for SDI's verdict. What takes time is SDI's own processing: a rejection usually arrives within minutes, but delivery confirmations can take up to 5 days. Each verdict is recorded against the invoice as a status entry, so nothing is stuck while you wait. See the [status guide](/guides/it-sdi-status) for the full lifecycle. > [accordion] How do I know if my invoice was delivered successfully? > > SDI confirms delivery with an `RC` (*ricevuta di consegna*) notification, recorded on the invoice as a status entry with the GOBL status `acknowledged`. A rejection arrives as `NS` with status `error`. Every notification and what it means is covered in the [status guide](/guides/it-sdi-status). > [accordion] How do I test different SDI outcomes in the sandbox? > > Set a reserved *codice destinatario* on the customer — for example `SIMNS00` to simulate a rejection. The sandbox simulates SDI end to end and feeds back the notifications a real exchange would produce; any ordinary code resolves to a successful delivery. The full list of reserved codes is in the [issuing guide](/guides/it-sdi-invoicing#testing-in-the-sandbox). > [accordion] How do I add codice fiscale and Partita IVA? > > Both Italian tax identifiers have their own place on a party. The *partita IVA* (VAT number) goes in `tax_id`, and the *codice fiscale* goes in `identities` under the key `it-fiscal-code`. A party may carry both. > > An Italian supplier always needs a *partita IVA*. An Italian customer needs at least one of the two — which one depends on who they are, covered in the [issuing guide](/guides/it-sdi-invoicing#identifying-the-customer). > > Here's an example showing both identifiers on a supplier: > > ```json Supplier with Partita IVA and Codice Fiscale theme={"system"} > { > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "MRTMTT91D08F205J" > } > ] > } > } > ``` > [accordion] How do I invoice a customer outside Italy? > > Send it through SDI as usual — an Italian supplier reports the invoice there whoever the customer is. SDI has no way to deliver outside Italy, though, so it won't reach the customer that way: send them their copy yourself, normally as a PDF. It's the same invoice travelling by two routes, and only the FatturaPA file is the legal one. > [accordion] What if the customer has no tax ID at all? > > An Italian customer needs either a *partita IVA* or a *codice fiscale*. A customer outside Italy needs neither — their country is enough, so leave the code out rather than inventing a placeholder. See [identifying the customer](/guides/it-sdi-invoicing#identifying-the-customer). > [accordion] How do I reference a receipt (documento commerciale) in an SDI invoice? > > Add an item attribute to the invoice line with `type` `N.DOC.COMM` and the receipt's identifier in `text`, its progressive number in `amount` and its date in `date`. The `it-sdi-v1` addon writes each item attribute as an `AltriDatiGestionali` block (`TipoDato`, `RiferimentoTesto`, `RiferimentoNumero`, `RiferimentoData`). The `type` is limited to 10 ASCII characters. See the "Invoice after a documento commerciale" example in the [issuing guide](/guides/it-sdi-invoicing#example-invoices). More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # SDI receiving invoices guide Source: https://docs.invopop.com/guides/it-sdi-receiving Receive and process electronic invoices from Italy's SDI system > [!WARNING] > > **The SDI Italy app is being retired.** New integrations should use the [Italy app](/apps/italy), which reaches SDI through Invopop's own accredited channel. See the [receiving invoices](/guides/it-sdi-reception) guide. ## Introduction The SDI system operates using a standardized XML format called FatturaPA, which ensures all invoices contain the required information and comply with the strict validation rules established by the Italian tax authority (*Agenzia delle Entrate*). To ensure proper routing of invoices to the correct recipient, the SDI system uses a unique identifier called a Recipient Code, which is assigned to each registered SDI provider. To receive FatturaPA XML documents, Invopop uses the [GOBL FatturaPA](https://github.com/invopop/gobl.fatturapa) library to automatically process conversions into [GOBL](https://docs.gobl.org) format. Detailed information about the SDI-specific extensions and validations can be found in: * [Italy SDI FatturaPA v1.x Addon Documentation](https://docs.gobl.org/addons/it-sdi-v1) * [Italy Tax Regime Documentation](https://docs.gobl.org/regimes/it) | - | Sandbox | Live | | - | - | - | | **Supplier** | Skip — Invopop simulates receiving environment | Must register Recipient Code at Agenzia Entrate | | **Environment** | Test | Must select `Production` when registering SDI Customer | ## Setup **1. Connect the SDI Italy app** 1. Navigate to **Configuration** → **Apps** 2. Locate **SDI Italy** in the app discovery list 3. Tap **Connect** to activate ![Connect SDI Italy app](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-sdi-connect.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=eeeb23ddd753bf29985b095001f0edcf) Unlike sending, receiving invoices requires additional configuration after the initial connection. **2. Set up the Customer Registration Workflow** > [accordion] Italian customer example > > The `tax_id` contains the company's Partita IVA without the `IT` prefix. > > ```json Italy customer example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Cliente Esempio SpA", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "8", > "street": "Via Roma", > "locality": "Torino", > "region": "TO", > "code": "10121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "acquisti@clienteesempio.it" > } > ] > } > ``` Use this workflow to register a company to receive invoices through SDI. > [card] [SDI register party workflow](https://console.invopop.com/redirect/workflows/new?template=it-sdi-register-customer) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SDI register customer workflow theme={"system"} > { > "name": "SDI register customer", > "description": "Register a customer with SDI to receive invoices", > "schema": "org/party", > "steps": [ > { > "id": "2a34f560-fd13-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "3b5c7890-fd13-11ef-998c-e97f18c9212e", > "name": "Register party with SDI", > "provider": "sdi-it.register", > "summary": "Register company as receiver", > "config": { > "environment": "production" > } > }, > { > "id": "c1096edb-7b8b-11f1-a196-92000767c8b7", > "name": "Register party for e-archiving", > "provider": "sdi-it.archive.register", > "summary": "Register company for legal preservation", > "config": { > "environment": "production" > } > }, > { > "id": "4c6d8910-fd13-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "5d7e9a20-fd13-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Import Invoices Workflow** Use this workflow to import and process invoices received through SDI. This workflow must be selected in the SDI Italy app configuration to automatically process incoming invoices. > [card] [SDI import invoices workflow](https://console.invopop.com/redirect/workflows/new?template=it-sdi-import-invoices) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json SDI import invoice workflow theme={"system"} > { > "name": "SDI import invoice", > "description": "Import an invoice received through SDI", > "schema": "bill/invoice", > "steps": [ > { > "id": "6e8f0b30-fd13-11ef-998c-e97f18c9212e", > "name": "Import invoice from SDI", > "provider": "sdi-it.import", > "summary": "Convert received FatturaPA to GOBL", > "config": { > "environment": "production" > } > }, > { > "id": "b3e17a92-7c5d-11f1-9c40-92000767c8b7", > "name": "Archive document for legal preservation", > "provider": "sdi-it.archive.store", > "summary": "Preserve invoice and store its receipt", > "config": { > "environment": "production", > "flow": "received" > } > }, > { > "id": "7f9a1c40-fd13-11ef-998c-e97f18c9212e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Italian · A4", > "config": { > "date_format": "%Y-%m-%d", > "locale": "it", > "logo_height": 40 > } > }, > { > "id": "8a0b2d50-fd13-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "9b1c3e60-fd13-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **4. Configure the app for receiving invoices** To start processing incoming invoices navigate to **Configuration** → **Apps**, find the **SDI Italy** app and tap **Configure** and select the appropriate **Import Invoices** workflow ![Select Import Invoices workflow](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-sdi-configure-panel.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=12537fc59202a2451627679048e61634) This workflow will automatically trigger whenever a new invoice is received through SDI. Any errors in the import process will trigger the rescue steps in the workflow, allowing identification and resolution of issues. **5. Register with Italian tax authority (live only)** > [!NOTE] > > In Sandbox skip this step, as Invopop simulates the receiving environment. For each company you want to receive invoices, register the Recipient Code (Codice Destinatario) at Agenzia Entrate. 1. Access the [Italian tax authority's website](https://ivaservizi.agenziaentrate.gov.it/portale/) and log in with valid credentials for the company being registered. ![Register with Italian tax authority](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-sdi-register.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=68bb841ce5a25ae18307f1ff0f24039b) 2. Tap on the **Fatture e Corrispettivi** section. 3. In the box **Fatturazione elettronica**, tap on **Registrazione delle modalità di ricezione della fattura elettronica**. 4. Select the Recipient Code (*Codice Destinatario*) option and enter the code `JKKZDGR` provided by Invopop 5. Tap on **Conferma** > [!TIP] > > Make sure you notify the companies about their new Codice Destinatario. It works as a routing identifier that tells the SDI system where to deliver incoming electronic invoices. Invoices sent to an outdated Codice Destinatario will be rejected. **6. Run the Customer Registration workflow in Invopop** In Invopop, execute the [customer registration](#set-up-the-customer-registration-workflow) workflow on the supplier's silo entry to complete the setup for that company. > [!WARNING] > > In live workspaces make sure you both register Codice Destinatario `JKKZDGR` and run the customer registration workflow. Registration is only needed for receiving invoices, not sending. ## Receiving invoices Once registered, any invoices addressed to the registered companies with the Recipient Code will be automatically received and processed through the Import Invoices workflow configured in the app settings. Received invoices will appear in your **Expenses** folder. If errors occur during the import process, they will trigger the rescue steps in the workflow, allowing users to check what went wrong and take appropriate action. ## Unregistering a company Registering a tax ID claims it for a single party record, and only one party per environment can hold a given tax ID at a time. Unregister a company when it is no longer your client, or when you need to register the same tax ID again from a different party record. Use this workflow to stop a company from receiving invoices through SDI: > [card] [SDI unregister party workflow](https://console.invopop.com/redirect/workflows/new?template=it-sdi-unregister-customer) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SDI unregister customer workflow theme={"system"} > { > "name": "SDI unregister customer", > "description": "Unregister a customer from SDI to stop receiving invoices", > "schema": "org/party", > "steps": [ > { > "id": "b56b1f70-90e1-11f1-9fc8-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "b56e7f7c-90e1-11f1-8a81-92000767c8b7", > "name": "Unregister party from SDI", > "provider": "sdi-it.unregister", > "summary": "Stop receiving invoices for this company" > }, > { > "id": "b56e8088-90e1-11f1-b95f-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "cf5af04f-90e1-11f1-8a24-92000767c8b7", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` The `sdi-it.unregister` action turns off invoice receiving for the company and clears its SDI registration from the party record. Once it completes, the tax ID is free to register again, whether from another party record in the same workspace or from a different workspace. Running it on a party that is not registered skips the step rather than failing, so it is safe to re-run. > [!WARNING] > > Unregistering stops receiving only. Sending never required registration, so it is unaffected. Invoices addressed to the company after it is unregistered are no longer imported into your workspace. > [!NOTE] > > Unregistering does not affect legal archiving. Invoices already preserved under *conservazione a norma* stay preserved, as the law requires. The Recipient Code registration at Agenzia delle Entrate is separate and stays in place. If the company should stop receiving through Invopop altogether, update its reception settings at the [Italian tax authority](https://ivaservizi.agenziaentrate.gov.it/portale/) as well. ## FAQ > [accordion] How do I import received invoices in Italy? > > Register Invopop's recipient code (`BDCS3JD`) with the tax authority and run the registration workflow on the company's party entry. Invopop automatically receives matching invoices and routes them through the configured import workflow. See the [receiving invoices guide](/guides/it-sdi-reception). > [accordion] How does Invopop convert received Italian invoices into GOBL? > > Inbound FatturaPA XMLs are parsed via [`gobl.fatturapa`](https://github.com/invopop/gobl.fatturapa). The original signed XML is preserved as a silo entry attachment alongside the GOBL representation. > [accordion] How do I test receiving invoices in the sandbox? > > Register the company for reception in your sandbox workspace, then send a sandbox invoice addressed to it — the app loops it back to you as an inbound delivery and runs your import workflow, exactly as a real delivery would. This is the only way to receive an invoice in sandbox: there is no tax authority to register with, and no real supplier can reach it. See [receiving your own invoices](/guides/it-sdi-invoicing#receiving-your-own-invoices). > [accordion] What happens if a received invoice contains errors? > > The import step attempts to convert the FatturaPA document into [GOBL](https://docs.gobl.org). If conversion fails, the step returns `KO`, but the original file stays stored — the invoice can be re-processed later without SDI needing to redeliver it. > > If the invoice has significant structural issues that prevent conversion, you may need to contact the sender to request a corrected invoice. > [accordion] How quickly are invoices received after being sent by suppliers? > > Invoices are typically received within minutes after being sent by suppliers through SDI. The automatic import process in Invopop processes them as soon as they are received by our system. > [accordion] Can I register multiple companies to receive invoices? > > Yes, multiple companies can be registered to receive invoices through a single Invopop workspace. For each company, you must: > > 1. Register the recipient code `BDCS3JD` with the Italian tax authority for that specific company > 2. Have its tax ID registered by running the registration workflow on the company's party entry > 3. Use the same import workflow configured in the app settings > > This two-step registration process (with the tax authority and with Invopop) must be completed for each company you want to register. This is particularly useful for white-labeling scenarios where a user manages multiple entities. > [accordion] Can I register the same tax ID again from a different party? > > Yes, but only one party at a time can hold a given tax ID. Run the [unregister workflow](/guides/it-sdi-reception#unregistering-a-company) on the party that currently holds it, then register the new one. > > Registering a tax ID that another party already holds fails with a clear error. > > Sandbox and live are counted separately, so the same tax ID can be registered in both at the same time. > [accordion] What is the difference between registering with the tax authority and registering with Invopop? > > The two-step registration process serves different purposes: > > 1. **Registering with the Italian tax authority** - Tells SDI to route invoices addressed to your company to Invopop's channel using the *Codice Destinatario* `BDCS3JD`. > > 2. **Registering with Invopop** (the registration workflow) - Tells Invopop which invoices to accept and process for your workspace. > > Both steps are necessary: the first routes the invoices to Invopop, and the second ensures Invopop knows which workspace should receive those invoices. > [accordion] What format do received SDI invoices arrive in? > > Signed FatturaPA XML (versions 1.2.x), conforming to the Agenzia delle Entrate schema. The original file is kept attached to the entry exactly as SDI delivered it, alongside SDI's delivery metadata. More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # Italy receiving invoices guide Source: https://docs.invopop.com/guides/it-sdi-reception Receive and process electronic invoices from Italy's SDI system. ## Introduction In Italy, businesses receive their invoices through the *Sistema di Interscambio* (SDI), which delivers each one as a FatturaPA XML document to the channel the recipient has registered with the tax authority. Invopop is registered as such a channel in its own right. SDI delivers invoices straight to Invopop, which works out which company each one is for, converts the FatturaPA document into [GOBL](https://docs.gobl.org) using the [GOBL FatturaPA](https://github.com/invopop/gobl.fatturapa) library, and runs your workflow on the result. The original XML is kept attached exactly as SDI delivered it, alongside the delivery metadata that came with it. Detailed information about the SDI-specific extensions can be found in: * [Italy SDI FatturaPA v1.x Addon Documentation](https://docs.gobl.org/addons/it-sdi-v1) * [Italy Tax Regime Documentation](https://docs.gobl.org/regimes/it) | - | Sandbox | Live | | - | - | - | | **Deliveries** | Only invoices you send to yourself, looped back | Real invoices from your suppliers | | **Tax authority** | Nothing to register | Each company registers Invopop's recipient code | ## Setup Receiving takes more setup than sending. Invopop needs to know which companies belong to your workspace, and the tax authority needs to know that those companies receive through Invopop. **1. Connect the Italy app** 1. Navigate to **Configuration** → **Apps** 2. Find **Italy** in the app discovery list 3. Click **Connect** to activate **2. Set up the registration workflow** > [accordion] Italian company example > > The `tax_id` contains the company's *partita IVA* without the `IT` prefix. > > ```json Italy customer example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Cliente Esempio SpA", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "8", > "street": "Via Roma", > "locality": "Torino", > "region": "TO", > "code": "10121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "acquisti@clienteesempio.it" > } > ] > } > ``` > > This is the same party shape used when you invoice a company, so the example carries an `it-sdi-code` inbox. Registration ignores it: it identifies the company fiscally, and once registered the company receives through Invopop's own recipient code, `BDCS3JD`. This workflow claims a company's fiscal identity for your workspace and enables certified archiving for it. > [card] [Italy register party workflow](https://console.invopop.com/redirect/workflows/new?template=it-italy-register-party) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Italy register party workflow theme={"system"} > { > "name": "Italy register party", > "description": "Register a company to receive invoices and enable archiving", > "schema": "org/party", > "steps": [ > { > "id": "d0a624c0-7ab3-11f1-bcdd-79d761bdaace", > "name": "Register party with SDI", > "provider": "gov-it.sdi.register", > "summary": "Claim the company's fiscal ID for this workspace" > }, > { > "id": "f19737f0-7ab3-11f1-bcdd-79d761bdaace", > "name": "Register party for e-archiving", > "provider": "gov-it.archive.register", > "summary": "Enable certified preservation for this company" > } > ], > "rescue": [] > } > ``` The party entry must carry an Italian VAT number or a *codice fiscale* — registration fails with a clear error otherwise. Re-running it on an already-registered company is safe. **3. Set up the import workflow** This workflow runs on every invoice SDI delivers. Extend it freely — generate a PDF, notify your systems through a webhook, push the invoice into an ERP. > [card] [Italy import invoice workflow](https://console.invopop.com/redirect/workflows/new?template=it-italy-import-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Italy import invoice workflow theme={"system"} > { > "name": "Italy import invoice", > "description": "Import and process an invoice received through SDI", > "schema": "bill/invoice", > "steps": [ > { > "id": "33946e58-a094-4e9d-bef7-51e8ac1974fe", > "name": "Import invoice from SDI", > "provider": "gov-it.sdi.import.invoice", > "summary": "Convert the received FatturaPA document to GOBL" > } > ], > "rescue": [] > } > ``` **4. Configure the app for receiving** Navigate to **Configuration** → **Apps**, find the **Italy** app, click **Configure**, and select the import workflow you just created. It will run automatically whenever an invoice arrives. **5. Register the recipient code with the tax authority (live only)** > [!NOTE] > > Skip this in sandbox — there is no tax authority to tell. For each company that should receive through Invopop, register Invopop's recipient code (*codice destinatario*) at Agenzia delle Entrate: 1. Go to the [tax authority's portal](https://ivaservizi.agenziaentrate.gov.it/portale/) and log in with credentials for the company being registered. 2. Open the **Fatture e Corrispettivi** section. 3. Under **Fatturazione elettronica**, choose **Registrazione delle modalità di ricezione della fattura elettronica**. 4. Select the *Codice Destinatario* option and enter `BDCS3JD`. 5. Click **Conferma**. > [!TIP] > > The recipient code is a routing address: it tells SDI where to deliver the company's incoming invoices. Suppliers who address an invoice to an old code will not reach you, so tell the company's suppliers whenever it changes. **6. Run the registration workflow** Run the registration workflow on the company's party entry to complete the setup on the Invopop side. > [!WARNING] > > In live workspaces both halves are needed: the recipient code registered at Agenzia delle Entrate, and the registration workflow run in Invopop. Sending never required either. ## How receiving works Every delivery goes through three stages. 1. **Receive.** SDI posts the invoice to Invopop, which stores the original FatturaPA file and its delivery metadata before doing anything else, then acknowledges the delivery. Once acknowledged, SDI considers the invoice delivered and will not send it again — which is why the original bytes are stored first. Repeat deliveries of the same invoice are recognised by SDI's delivery identifier and never duplicate. 2. **Route.** Invopop reads the addressee's fiscal ID out of the invoice itself and looks it up among the registered companies. On a match, it starts your import workflow in the owning workspace. An invoice addressed to a company nobody registered is held rather than lost, but it is not processed until that is resolved. 3. **Import.** The import step converts the FatturaPA document into a GOBL invoice and creates the entry, with two files attached: the original XML exactly as delivered (`sdi-inbound-invoice`) and SDI's delivery metadata (`sdi-inbound-metadata`), when SDI provided one. Received invoices appear in your **Expenses** folder. If conversion fails, the step returns `KO`, but the original file stays stored — the invoice can be re-processed later without SDI needing to redeliver it. Italian preservation rules cover the invoices you receive as well as the ones you issue. Add the **Archive document** step after the import step to preserve each one — see the [Archiving](/guides/it-sdi-archiving) guide. ## Unregistering a company Registering a tax ID claims it for a single party record, and only one party per environment can hold a given tax ID at a time. Unregister a company when it is no longer your client, or when you need to register the same tax ID from a different party record. > [card] [Italy unregister party workflow](https://console.invopop.com/redirect/workflows/new?template=it-italy-unregister-party) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Italy unregister party workflow theme={"system"} > { > "name": "Italy unregister party", > "description": "Stop a company receiving invoices through SDI", > "schema": "org/party", > "steps": [ > { > "id": "0598fbd0-7ab4-11f1-8f97-792526fe02d9", > "name": "Unregister party from SDI", > "provider": "gov-it.sdi.unregister", > "summary": "Stop receiving and release the fiscal ID" > } > ], > "rescue": [] > } > ``` The unregister action turns off receiving and clears the company's registration, freeing the tax ID to be claimed again — from another party record in the same workspace, or from a different workspace. Running it on a company that is not registered skips rather than fails, so it is safe to re-run. > [!WARNING] > > Unregistering stops receiving only. Sending never required registration, so it is unaffected. Invoices addressed to the company afterwards are no longer imported into your workspace. > [!NOTE] > > Unregistering does not affect legal archiving. Invoices already preserved under *conservazione a norma* stay preserved, as the law requires. The recipient code registration at Agenzia delle Entrate is separate and stays in place. If the company should stop receiving through Invopop altogether, update its reception settings at the [tax authority's portal](https://ivaservizi.agenziaentrate.gov.it/portale/) as well. ## Troubleshooting | Symptom | Cause | | - | - | | Registration fails complaining about the fiscal ID | The party entry has neither an Italian VAT number nor a *codice fiscale*. Add one and re-run. | | An expected invoice never arrives | The company was not registered before the delivery, so the invoice is being held — or the supplier addressed it to a different recipient code. Check the company's reception settings at the tax authority. | | The import step fails with `KO` | The document has a structure the converter does not handle yet. The original file is retained, so the import can be replayed after a fix. | ## FAQ > [accordion] How do I import received invoices in Italy? > > Register Invopop's recipient code (`BDCS3JD`) with the tax authority and run the registration workflow on the company's party entry. Invopop automatically receives matching invoices and routes them through the configured import workflow. See the [receiving invoices guide](/guides/it-sdi-reception). > [accordion] How does Invopop convert received Italian invoices into GOBL? > > Inbound FatturaPA XMLs are parsed via [`gobl.fatturapa`](https://github.com/invopop/gobl.fatturapa). The original signed XML is preserved as a silo entry attachment alongside the GOBL representation. > [accordion] How do I test receiving invoices in the sandbox? > > Register the company for reception in your sandbox workspace, then send a sandbox invoice addressed to it — the app loops it back to you as an inbound delivery and runs your import workflow, exactly as a real delivery would. This is the only way to receive an invoice in sandbox: there is no tax authority to register with, and no real supplier can reach it. See [receiving your own invoices](/guides/it-sdi-invoicing#receiving-your-own-invoices). > [accordion] What happens if a received invoice contains errors? > > The import step attempts to convert the FatturaPA document into [GOBL](https://docs.gobl.org). If conversion fails, the step returns `KO`, but the original file stays stored — the invoice can be re-processed later without SDI needing to redeliver it. > > If the invoice has significant structural issues that prevent conversion, you may need to contact the sender to request a corrected invoice. > [accordion] How quickly are invoices received after being sent by suppliers? > > Invoices are typically received within minutes after being sent by suppliers through SDI. The automatic import process in Invopop processes them as soon as they are received by our system. > [accordion] Can I register multiple companies to receive invoices? > > Yes, multiple companies can be registered to receive invoices through a single Invopop workspace. For each company, you must: > > 1. Register the recipient code `BDCS3JD` with the Italian tax authority for that specific company > 2. Have its tax ID registered by running the registration workflow on the company's party entry > 3. Use the same import workflow configured in the app settings > > This two-step registration process (with the tax authority and with Invopop) must be completed for each company you want to register. This is particularly useful for white-labeling scenarios where a user manages multiple entities. > [accordion] Can I register the same tax ID again from a different party? > > Yes, but only one party at a time can hold a given tax ID. Run the [unregister workflow](/guides/it-sdi-reception#unregistering-a-company) on the party that currently holds it, then register the new one. > > Registering a tax ID that another party already holds fails with a clear error. > > Sandbox and live are counted separately, so the same tax ID can be registered in both at the same time. > [accordion] What is the difference between registering with the tax authority and registering with Invopop? > > The two-step registration process serves different purposes: > > 1. **Registering with the Italian tax authority** - Tells SDI to route invoices addressed to your company to Invopop's channel using the *Codice Destinatario* `BDCS3JD`. > > 2. **Registering with Invopop** (the registration workflow) - Tells Invopop which invoices to accept and process for your workspace. > > Both steps are necessary: the first routes the invoices to Invopop, and the second ensures Invopop knows which workspace should receive those invoices. > [accordion] What format do received SDI invoices arrive in? > > Signed FatturaPA XML (versions 1.2.x), conforming to the Agenzia delle Entrate schema. The original file is kept attached to the entry exactly as SDI delivered it, alongside SDI's delivery metadata. More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # SDI sending invoices guide Source: https://docs.invopop.com/guides/it-sdi-sending Generate and issue electronic invoices through Italy's SDI system > [!WARNING] > > **The SDI Italy app is being retired.** New integrations should use the [Italy app](/apps/italy), which reaches SDI through Invopop's own accredited channel. See the [issuing invoices](/guides/it-sdi-invoicing) guide. ## Introduction Electronic invoicing is mandatory for all businesses in Italy. The *Sistema di Interscambio* (SDI) serves as the Italian government's central hub for transmitting, validating, and delivering all electronic invoices throughout the country. The SDI system operates using a standardized XML format called FatturaPA, which ensures all invoices contain the required information and comply with the strict validation rules established by the Italian tax authority (*Agenzia delle Entrate*). To ensure proper routing of invoices to the correct recipient, the SDI system uses a unique identifier called a Recipient Code, which is assigned to each registered SDI provider. Invopop simplifies SDI integration by allowing you to work with [GOBL](https://docs.gobl.org) format instead of XML, providing synchronous validation before submission, and offering a simple API integration with automatic handling of SDI notifications and status updates. For receiving invoices through SDI, see our companion guide: [Italy - SDI: Receiving Invoices](/guides/it-sdi-receiving). | - | Sandbox | Live | | - | - | - | | **Responses** | Simulated by A-Cube (no real SDI sandbox) | Real SDI responses | | **Configuration** | Simulated response type must be set | — | | **Archiving** | A-Cube test environment (no legal validity) | Certified preservation | ## Setup **1. Connect the SDI Italy app** 1. Navigate to **Configuration** → **Apps** 2. Locate **SDI Italy** in the app discovery list 3. Tap **Connect** to activate ![Connect SDI Italy app](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-sdi-connect.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=eeeb23ddd753bf29985b095001f0edcf) The initial connection requires no configuration for sending invoices. **2. Configure sending workflow** > [!NOTE] > > SDI does not have a sandbox environment. When `sandbox` mode is selected, Invopop's third-party submission service, [A-Cube](https://www.acubeapi.com), simulates a response from SDI. > [card] [SDI send invoice workflow](https://console.invopop.com/redirect/workflows/new?template=it-sdi-send) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json SDI issue invoice workflow theme={"system"} > { > "name": "SDI issue invoice", > "description": "Issue an invoice through SDI", > "schema": "bill/invoice", > "steps": [ > { > "id": "1a692ae0-cd12-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "1855b430-cd12-11ef-998c-e97f18c9212e", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "2042f860-cd12-11ef-998c-e97f18c9212e", > "name": "Send invoice to SDI", > "provider": "sdi-it.send", > "summary": "Sandbox · Accepted by PA (Notifica esito)", > "config": { > "environment": "sandbox", > "response": "NE" > } > }, > { > "id": "c1067e58-7b8b-11f1-8b0e-92000767c8b7", > "name": "Archive document for legal preservation", > "provider": "sdi-it.archive.store", > "summary": "Preserve invoice and store its receipt", > "config": { > "environment": "sandbox" > } > }, > { > "id": "236965b0-cd12-11ef-998c-e97f18c9212e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Italian · A4", > "config": { > "date_format": "%Y-%m-%d", > "locale": "it", > "logo_height": 40 > } > }, > { > "id": "2b6db450-cd12-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "2d5d7660-cd12-11ef-998c-e97f18c9212e", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Sending invoices Invopop uses the [GOBL FatturaPA](https://github.com/invopop/gobl.fatturapa) library to process conversions. When creating invoices for SDI, you need to: 1. Set the `regime` field to `IT` in your GOBL invoice 2. Add the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon to enable Italian-specific validations and extensions Detailed information about the SDI-specific extensions and validations can be found in: * [Italy SDI FatturaPA v1.x Addon Documentation](https://docs.gobl.org/addons/it-sdi-v1) * [Italy Tax Regime Documentation](https://docs.gobl.org/regimes/it) Example invoices are provided below, or you can use the [GOBL Builder](https://build.gobl.org) to create custom invoices. ### How the Send step works This step generates the FatturaPA XML and sends it to SDI through our integration partner. Upon successful completion, the XML file is attached to the invoice entry. The SDI service usually responds within seconds but may take up to 24 hours. While waiting, this step remains in a `QUEUED` state. When the Send step completes, it returns one of three results: * `OK` if successful * `KO` for unrecoverable errors * `SKIP` if the invoice was already sent ### Archiving (conservazione a norma) Italian law requires issued electronic invoices to be preserved long-term through a certified archiving process known as *conservazione a norma*. Keeping a copy of the XML on your own systems is not enough — preservation must follow the rules set by the Italian authorities, which Invopop handles through its integration partner A-Cube. Archiving is built into the standard Italy templates, so no extra setup is needed: * The party registration workflow includes a step that enables archiving for the supplier. It requires the party to have a valid Italian tax ID. Re-running it on an already-enabled supplier reports `SKIP`. * The send invoice workflow includes an archive step after the Send step. It preserves the exact FatturaPA file transmitted to SDI and attaches the preservation receipt to the invoice entry as `archive-receipt.pdf` and `archive-receipt.xml`, along with an indexed `archive-uuid` metadata field identifying the archived document. * The **SDI import invoices** workflow from the [receiving guide](/guides/it-sdi-receiving) includes the same archive step after the Import step, so the invoices you receive are preserved too, recorded as received. Preservation is asynchronous: the archive step stays `QUEUED` until the receipt is ready, then completes with `OK`. The receipt normally arrives within minutes but can take hours; the step keeps checking, less often as time goes on, and gives up only after several hours. If the preservation service fails partway through, the step retries from where it stopped without uploading the document again. Re-running it on an already-archived invoice reports `SKIP`, with nothing fetched or attached again. ## Example invoices > [accordion] B2B Invoice > > In this example, we're issuing a standard B2B invoice from an Italian supplier to another Italian business customer. > > Notice: > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > * the minimal version contains only essential fields; `gobl build` handles all calculations, > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2B transactions, and, > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > ```json SDI B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "intermediate" > } > ] > } > ] > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "sum": "1.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ], > "total": "1.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "sum": "125.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "intermediate", > "percent": "10.0%" > } > ], > "total": "125.00" > } > ], > "totals": { > "sum": "126.00", > "tax_included": "11.36", > "total": "114.64", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > }, > "base": "1.00", > "amount": "0.00" > }, > { > "key": "standard", > "base": "113.64", > "percent": "10.0%", > "amount": "11.36" > } > ], > "amount": "11.36" > } > ], > "sum": "11.36" > }, > "tax": "11.36", > "total_with_tax": "126.00", > "payable": "126.00" > } > } > ``` > [accordion] B2G Invoice > > In this example, we're issuing a B2G invoice from an Italian supplier to the Italian government. > > Notice: > > * both supplier and customer have their Partita IVA (VAT number) and Codice Fiscale properly specified, > * the minimal version contains only essential fields; `gobl build` handles all calculations, > * when running `gobl build`, the system automatically calculates totals, applies IVA rates, and normalizes the document according to SDI requirements, > * the built version shows all calculated fields including tax breakdowns, line totals, payment terms, and final amounts, > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon validates the document structure for B2G transactions, and, > * the invoice will be transmitted through the SDI system and delivered to the customer's designated channel. > > ```json SDI B2G Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": ["it-sdi-v1"], > "$tags": ["b2g"], > "series": "PA", > "code": "2026-001", > "issue_date": "2026-05-08", > "currency": "EUR", > "supplier": { > "name": "Esempio Fornitore SRL", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > }, > "addresses": [ > { > "num": "10", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > {"addr": "amministrazione@esempio-fornitore.it"} > ] > }, > "customer": { > "name": "Comune di Roma", > "tax_id": { > "country": "IT", > "code": "02438750586" > }, > "addresses": [ > { > "num": "1", > "street": "Piazza del Campidoglio", > "locality": "Roma", > "region": "RM", > "code": "00186", > "country": "IT" > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "UF9DN8" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Servizi di consulenza informatica", > "price": "150.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Licenza software annuale", > "price": "1200.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "ext": { > "it-sdi-payment-means": "MP05" > }, > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "Banca Esempio SpA", > "bic": "BPMOIT22XXX" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2026-06-07", > "percent": "100%" > } > ] > } > }, > "notes": [ > { > "key": "general", > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "b2g" > ], > "type": "standard", > "series": "PA", > "code": "2026-001", > "issue_date": "2026-05-08", > "currency": "EUR", > "tax": { > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPA12" > } > }, > "supplier": { > "name": "Esempio Fornitore SRL", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "10", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "amministrazione@esempio-fornitore.it" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Comune di Roma", > "tax_id": { > "country": "IT", > "code": "02438750586" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "UF9DN8" > } > ], > "addresses": [ > { > "num": "1", > "street": "Piazza del Campidoglio", > "locality": "Roma", > "region": "RM", > "code": "00186", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Servizi di consulenza informatica", > "price": "150.00", > "unit": "h" > }, > "sum": "3000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "3000.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Licenza software annuale", > "price": "1200.00" > }, > "sum": "1200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "1200.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2026-06-07", > "amount": "5124.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "bic": "BPMOIT22XXX", > "name": "Banca Esempio SpA" > } > ], > "ext": { > "it-sdi-payment-means": "MP05" > } > } > }, > "totals": { > "sum": "4200.00", > "total": "4200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "4200.00", > "percent": "22.0%", > "amount": "924.00" > } > ], > "amount": "924.00" > } > ], > "sum": "924.00" > }, > "tax": "924.00", > "total_with_tax": "5124.00", > "payable": "5124.00" > }, > "notes": [ > { > "key": "general", > "text": "Fattura emessa verso Pubblica Amministrazione tramite SDI. CIG: Z1A2B3C4D5 - CUP: F81B12000000001" > } > ] > } > ``` > [accordion] Simplified Invoice (Fattura Semplificata) > > In this example, we're issuing a simplified invoice for a €49.00 restaurant bill to a private customer identified only by their codice fiscale. > > Notice: > > * `$tags` includes `simplified`, so `gobl build` sets the format to `FSM10` and the document type to `TD07`, > * the customer has no name or address: an Italian `tax_id` without a code, plus their codice fiscale as an `it-fiscal-code` identity, > * prices include VAT, and the total with VAT must stay within €400, which the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon checks before the invoice is sent, and, > * see [Simplified invoices](/guides/it-sdi-invoicing#simplified-invoices) for what else the format allows. > > ```json SDI Simplified Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "simplified" > ], > "series": "SAMPLE", > "code": "003", > "issue_date": "2026-10-01", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "tax_id": { > "country": "IT" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "RSSGNN60R30H501U" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Menu di lavoro", > "price": "18.50" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "intermediate" > } > ] > }, > { > "quantity": "2", > "item": { > "name": "Vino della casa", > "price": "6.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "SAMPLE", > "code": "003", > "issue_date": "2026-10-01", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD07", > "it-sdi-format": "FSM10" > } > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "tax_id": { > "country": "IT" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "RSSGNN60R30H501U" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Menu di lavoro", > "price": "18.50" > }, > "sum": "37.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "intermediate", > "percent": "10.0%" > } > ], > "total": "37.00" > }, > { > "i": 2, > "quantity": "2", > "item": { > "name": "Vino della casa", > "price": "6.00" > }, > "sum": "12.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "12.00" > } > ], > "totals": { > "sum": "49.00", > "tax_included": "5.53", > "total": "43.47", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "33.64", > "percent": "10.0%", > "amount": "3.36" > }, > { > "key": "standard", > "base": "9.84", > "percent": "22.0%", > "amount": "2.16" > } > ], > "amount": "5.53" > } > ], > "sum": "5.53" > }, > "tax": "5.53", > "total_with_tax": "49.00", > "payable": "49.00" > } > } > ``` > [accordion] Stamp Duty Invoice (Marca da Bollo) > > This example matches the **B2B invoice** above but adds a **€2.00 Marca da bollo** (stamp duty) as a document-level charge. > > **Flat-rate scheme (*forfettario*):** taxpayers using the *regime forfettario* do **not** charge VAT on their invoices. When the document total goes **above €77.47**, they must account for **imposta di bollo**—typically by adding a **€2.00** stamp duty line, as in this sample. (Thresholds and rules can change; confirm with your adviser or the Agenzia delle Entrate if in doubt.) > > Notice: > > * the `charges` array includes an entry with `"key": "stamp-duty"`, amount `"2.00"`, and reason `Imposta di bollo`, > * the minimal version is otherwise the same as the B2B example; `gobl build` recalculates totals including the charge, > * the built version shows `totals.charge` and a higher `payable` / `total_with_tax` than the plain B2B invoice, > * the [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon continues to validate the document for SDI transmission. > > ```json SDI Stamp duty invoice (Marca da Bollo) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "intermediate" > } > ] > } > ], > "charges": [ > { > "key": "stamp-duty", > "i": 1, > "amount": "2.00", > "reason": "Imposta di bollo" > } > ] > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "002", > "issue_date": "2023-05-21", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Hotel California", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "num": "102", > "street": "Via California", > "locality": "Palermo", > "region": "PA", > "code": "33213", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Tassa di Soggiorno", > "price": "1.00" > }, > "sum": "1.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ], > "total": "1.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Camera Matrimoniale", > "price": "125.00" > }, > "sum": "125.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "intermediate", > "percent": "10.0%" > } > ], > "total": "125.00" > } > ], > "charges": [ > { > "i": 1, > "key": "stamp-duty", > "reason": "Imposta di bollo", > "amount": "2.00" > } > ], > "totals": { > "sum": "126.00", > "charge": "2.00", > "tax_included": "11.36", > "total": "116.64", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > }, > "base": "1.00", > "amount": "0.00" > }, > { > "key": "standard", > "base": "113.64", > "percent": "10.0%", > "amount": "11.36" > } > ], > "amount": "11.36" > } > ], > "sum": "11.36" > }, > "tax": "11.36", > "total_with_tax": "128.00", > "payable": "128.00" > } > } > ``` > [accordion] B2B Invoice with Additional Fields > > In this example, we're issuing a comprehensive B2B invoice with additional optional fields such as ordering information, payment details, and document references. > > Notice: > > * this invoice demonstrates advanced SDI features like CIG/CUP codes, payment methods, and bank details, > * the minimal version includes ordering and payment details; `gobl build` calculates all totals, > * when running `gobl build`, the system validates all additional fields according to SDI specifications and calculates totals, > * the built version shows the complete document with all calculated fields, tax breakdowns, and properly formatted additional information, > * additional fields like `ordering`, `payment`, and document references are important for public administration invoices (B2G), and, > * the addon ensures all optional fields are properly validated and formatted for SDI transmission. > > ```json SDI B2B Invoice with additional fields theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "series": "SAMPLE", > "code": "001", > "issue_date": "2023-03-02", > "currency": "EUR", > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "telephones": [ > { > "num": "999999999" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ] > }, > "terms": { > "due_dates": [ > { > "date": "2023-09-01", > "percent": "100%" > } > ] > } > } > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "type": "standard", > "series": "SAMPLE", > "code": "001", > "issue_date": "2023-03-02", > "currency": "EUR", > "tax": { > "ext": { > "it-sdi-document-type": "TD06", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ], > "telephones": [ > { > "num": "999999999" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "200.00" > } > ], > "payment": { > "terms": { > "due_dates": [ > { > "date": "2023-09-01", > "amount": "244.00", > "percent": "100%" > } > ] > }, > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ], > "ext": { > "it-sdi-payment-means": "MP05" > } > } > }, > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200.00", > "percent": "22.0%", > "amount": "44.00" > } > ], > "amount": "44.00" > } > ], > "sum": "44.00" > }, > "tax": "44.00", > "total_with_tax": "244.00", > "payable": "244.00" > } > } > ``` > [accordion] VAT Exempt Invoice > > In this example, we're issuing an invoice for goods or services that are exempt from VAT (IVA). > > Notice: > > * the line item includes a tax with `"key": "exempt"` indicating this is a VAT-exempt transaction, > * the minimal version omits the exemption code extension (`it-sdi-exempt`), which will be automatically added during `gobl build`, > * when running `gobl build`, the system calculates totals with zero VAT and validates the exemption structure, > * the built version shows the complete document with the exemption code extension (e.g., `"it-sdi-exempt": "N4"`) applied to the tax rate, > * exemption codes must comply with SDI requirements—consult the [complete list of exemption reasons](https://docs.gobl.org/addons/it-sdi-v1#it-sdi-exempt) in the GOBL documentation, > * common exemption codes include N4 (exempt), N3.1 (exports), N3.2 (intra-community supplies), and N6.x (reverse charge scenarios), and, > * the SDI validates that exempt invoices include proper exemption codes before transmission. > > ```json SDI Exempt Invoice theme={"system"} > > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "code": "INVOICE-001", > "supplier": { > "name": "Example IT Supplier S.r.l.", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "street": "Via Roma, 123", > "locality": "Milan", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "info@supplier.it" > } > ] > }, > "customer": { > "name": "Example IT Customer S.p.A.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "addresses": [ > { > "street": "Via Dante, 456", > "locality": "Rome", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Tax Exempt Service", > "price": "100.00" > }, > "taxes": [ > { > "cat": "VAT", > "key": "exempt" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "code": "INVOICE-001", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Example IT Supplier S.r.l.", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "addresses": [ > { > "street": "Via Roma, 123", > "locality": "Milan", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "info@supplier.it" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Example IT Customer S.p.A.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "addresses": [ > { > "street": "Via Dante, 456", > "locality": "Rome", > "code": "00100", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Tax Exempt Service", > "price": "100.00" > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > } > } > ], > "total": "1000.00" > } > ], > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "exempt", > "ext": { > "it-sdi-exempt": "N4" > }, > "base": "1000.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1000.00", > "payable": "1000.00" > } > } > ``` > [accordion] Credit Note > > In this example, we're issuing a credit note (nota di credito) to correct or refund a previously issued invoice. > > Notice: > > * the `type` field is set to `credit-note` to indicate this is a corrective document, > * the `preceding` field references the original invoice being corrected, > * the minimal version contains only essential correction details; `gobl build` calculates negative amounts, > * when running `gobl build`, the system automatically calculates negative totals, IVA refunds, validates the credit note structure, and applies SDI rules, > * the built version shows all calculated fields including negative amounts for the refund and proper tax adjustments, > * credit notes must be properly linked to the original invoice and transmitted through SDI, and, > * the SDI system validates the credit note format before accepting and forwarding it to the recipient. > > ```json SDI Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "type": "credit-note", > "series": "CN", > "code": "001", > "issue_date": "2024-10-09", > "currency": "EUR", > "preceding": [ > { > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > "type": "standard", > "issue_date": "2023-03-02", > "series": "SAMPLE", > "code": "001" > } > ], > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ] > } > } > } > > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "$tags": [ > "freelance" > ], > "type": "credit-note", > "series": "CN", > "code": "001", > "issue_date": "2024-10-09", > "currency": "EUR", > "preceding": [ > { > "uuid": "0190c0ec-8109-756b-a4f0-88c4b542ab6e", > "type": "standard", > "issue_date": "2023-03-02", > "series": "SAMPLE", > "code": "001" > } > ], > "tax": { > "ext": { > "it-sdi-document-type": "TD04", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "people": [ > { > "name": { > "given": "GIANCARLO", > "surname": "ROSSI" > } > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELLA LIBERTÀ", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "registration": { > "capital": "50000.00", > "currency": "EUR", > "office": "RM", > "entry": "123456" > }, > "ext": { > "it-sdi-fiscal-regime": "RF02" > } > }, > "customer": { > "name": "MARIO LEONI", > "tax_id": { > "country": "IT", > "code": "09876543217" > }, > "people": [ > { > "name": { > "prefix": "Dott.", > "given": "MARIO", > "surname": "LEONI" > } > } > ], > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "1", > "street": "VIALE DELI LAVORATORI", > "locality": "ROMA", > "region": "RM", > "code": "00100", > "country": "IT" > } > ], > "emails": [ > { > "addr": "mario@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development of accounting software", > "price": "10.00", > "unit": "h" > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "200.00" > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "IT60X0542811101000000123456", > "name": "MªF. Services" > } > ], > "ext": { > "it-sdi-payment-means": "MP05" > } > } > }, > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200.00", > "percent": "22.0%", > "amount": "44.00" > } > ], > "amount": "44.00" > } > ], > "sum": "44.00" > }, > "tax": "44.00", > "total_with_tax": "244.00", > "payable": "244.00" > } > } > ``` > [accordion] Invoice after a documento commerciale > > In this example, a retail sale was first recorded with a [Smart Receipt](/guides/it-ticket) (*documento commerciale*) and the customer later asked for an invoice. The invoice is an ordinary SDI invoice that references the receipt issued for the same sale. > > Notice: > > * the line item carries an `attributes` entry with `type` `N.DOC.COMM`, the receipt's AdE document number in `text`, its progressive number in `amount`, and the receipt date in `date`, > * the `it-sdi-v1` addon converts each item attribute into an `AltriDatiGestionali` block: `type` becomes `TipoDato`, `text` becomes `RiferimentoTesto`, `amount` becomes `RiferimentoNumero`, and `date` becomes `RiferimentoData`, which is the layout the AdE describes for invoices preceded by a receipt, > * `type` is limited to 10 ASCII characters and `text` to 60 characters, and `amount` is rendered with at least two decimals, so `7816` arrives at SDI as `7816.00`, > * the receipt's document number is the `ade-ref` stamp the Smart Receipts app adds to the receipt's header after the AdE accepts it, > * `issue_date` is the day of the sale, because FatturaPA's `Data` comes from `issue_date` (`op_date` is not written to the XML), and without further tags `gobl build` sets the document type to `TD01`, > * the Smart Receipt itself is not changed by this invoice, and your own VAT records must remove the invoiced amount from that day's *corrispettivi*. See [Invoice requested after a receipt](/guides/it-ticket#invoice-requested-after-a-receipt) for the full sequence. > > ```json SDI invoice after a documento commerciale theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "series": "SAMPLE", > "code": "003", > "issue_date": "2025-05-22", > "op_date": "2025-05-20", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > }, > "addresses": [ > { > "num": "12", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "50123", > "country": "IT" > } > ] > }, > "lines": [ > { > "quantity": "3", > "item": { > "name": "Cleaning products", > "price": "137.50", > "attributes": [ > { > "type": "N.DOC.COMM", > "text": "ACUBE2025/0000-7816", > "amount": "7816", > "date": "2025-05-20" > } > ] > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-sdi-v1" > ], > "type": "standard", > "series": "SAMPLE", > "code": "003", > "issue_date": "2025-05-22", > "op_date": "2025-05-20", > "currency": "EUR", > "tax": { > "prices_include": "VAT", > "ext": { > "it-sdi-document-type": "TD01", > "it-sdi-format": "FPR12" > } > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > }, > "addresses": [ > { > "num": "12", > "street": "Via Roma", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > }, > "customer": { > "name": "Mela S.r.l.", > "tax_id": { > "country": "IT", > "code": "13029381004" > }, > "inboxes": [ > { > "key": "it-sdi-code", > "code": "M5UXCR5" > } > ], > "addresses": [ > { > "num": "23", > "street": "Via dei Mille", > "locality": "Firenze", > "region": "FI", > "code": "50123", > "country": "IT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "3", > "item": { > "name": "Cleaning products", > "attributes": [ > { > "type": "N.DOC.COMM", > "text": "ACUBE2025/0000-7816", > "amount": "7816", > "date": "2025-05-20" > } > ], > "price": "137.50" > }, > "sum": "412.50", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "412.50" > } > ], > "totals": { > "sum": "412.50", > "tax_included": "74.39", > "total": "338.11", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "338.11", > "percent": "22.0%", > "amount": "74.39" > } > ], > "amount": "74.39" > } > ], > "sum": "74.39" > }, > "tax": "74.39", > "total_with_tax": "412.50", > "payable": "412.50" > } > } > ``` ## Technical details > [accordion] SDI Response Codes and Statuses > > When the SDI step processes a document, it returns detailed status codes that provide information about the response from SDI: > > | Code | Description | > | - | - | > | `rejected` | **Notifica di scarto (NS)** SDI has rejected the invoice because it contains errors. | > | `delivered` | **Ricevuta consegna (RC)** SDI has successfully delivered a B2B invoice to the recipient. | > | `delivered-pa` | **Ricevuta consegna (RC)** SDI has successfully delivered an invoice to a Public Administration (PA). | > | `not-delivered` | **Mancata consegna (MC)** SDI could not deliver the invoice to the recipient. It is available to them on the AdE portal and you must tell them, see [MC in the status guide](/guides/it-sdi-status#business-invoices). | > | `not-delivered` | **Attestazione trasmissione con impossibilità di recapito (AT)** SDI couldn't deliver an invoice to PA after 10 days. | > | `accepted-pa` | **Notifica esito (NE)** A PA has decided to accept an invoice (outcome EC01). | > | `rejected-pa` | **Notifica esito (NE)** A PA has decided to reject an invoice (outcome EC02). | > | `deadline-terms` | **Notifica decorrenza termini (DT)** A PA didn't reply with acceptance or rejection within 15 days. SDI closes the process and the PA can no longer reject the invoice, see [DT in the status guide](/guides/it-sdi-status#public-administration-invoices). | > | `invoice-error` | An error occurred during the acquisition of a notification. | > | `sent` | The invoice has been submitted to SDI and is awaiting a response. | > | `not-received` | The invoice was not received by the recipient. | > > Some SDI notifications (File metadati - MT, Esito committente - EC, Scarto esito committente - SE) don't directly change the code of the invoice. > > These codes map to different step results as follows: > > * **OK Result**: `delivered`, `not-delivered`, `not-received`, `accepted-pa`, `deadline-terms` > * **KO Result**: `rejected`, `rejected-pa`, `invoice-error` > * **QUEUED Result**: `sent`, `delivered-pa` > > When a step returns `QUEUED`, the workflow will check again later for updates from SDI. ## FAQ > [accordion] How do I configure my workspace for Italian invoicing? > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > [accordion] How do I issue a documento commerciale (scontrino)? > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > [accordion] Where do I find Italy-specific GOBL documentation? > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. > [accordion] Why is my invoice processing taking so long? > > The **Send invoice to SDI** step completes as soon as SDI accepts the file — it doesn't wait for SDI's verdict. What takes time is SDI's own processing: a rejection usually arrives within minutes, but delivery confirmations can take up to 5 days. Each verdict is recorded against the invoice as a status entry, so nothing is stuck while you wait. See the [status guide](/guides/it-sdi-status) for the full lifecycle. > [accordion] How do I know if my invoice was delivered successfully? > > SDI confirms delivery with an `RC` (*ricevuta di consegna*) notification, recorded on the invoice as a status entry with the GOBL status `acknowledged`. A rejection arrives as `NS` with status `error`. Every notification and what it means is covered in the [status guide](/guides/it-sdi-status). > [accordion] How do I test different SDI outcomes in the sandbox? > > Set a reserved *codice destinatario* on the customer — for example `SIMNS00` to simulate a rejection. The sandbox simulates SDI end to end and feeds back the notifications a real exchange would produce; any ordinary code resolves to a successful delivery. The full list of reserved codes is in the [issuing guide](/guides/it-sdi-invoicing#testing-in-the-sandbox). > [accordion] How do I add codice fiscale and Partita IVA? > > Both Italian tax identifiers have their own place on a party. The *partita IVA* (VAT number) goes in `tax_id`, and the *codice fiscale* goes in `identities` under the key `it-fiscal-code`. A party may carry both. > > An Italian supplier always needs a *partita IVA*. An Italian customer needs at least one of the two — which one depends on who they are, covered in the [issuing guide](/guides/it-sdi-invoicing#identifying-the-customer). > > Here's an example showing both identifiers on a supplier: > > ```json Supplier with Partita IVA and Codice Fiscale theme={"system"} > { > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "MRTMTT91D08F205J" > } > ] > } > } > ``` > [accordion] How do I invoice a customer outside Italy? > > Send it through SDI as usual — an Italian supplier reports the invoice there whoever the customer is. SDI has no way to deliver outside Italy, though, so it won't reach the customer that way: send them their copy yourself, normally as a PDF. It's the same invoice travelling by two routes, and only the FatturaPA file is the legal one. > [accordion] What if the customer has no tax ID at all? > > An Italian customer needs either a *partita IVA* or a *codice fiscale*. A customer outside Italy needs neither — their country is enough, so leave the code out rather than inventing a placeholder. See [identifying the customer](/guides/it-sdi-invoicing#identifying-the-customer). > [accordion] How do I reference a receipt (documento commerciale) in an SDI invoice? > > Add an item attribute to the invoice line with `type` `N.DOC.COMM` and the receipt's identifier in `text`, its progressive number in `amount` and its date in `date`. The `it-sdi-v1` addon writes each item attribute as an `AltriDatiGestionali` block (`TipoDato`, `RiferimentoTesto`, `RiferimentoNumero`, `RiferimentoData`). The `type` is limited to 10 ASCII characters. See the "Invoice after a documento commerciale" example in the [issuing guide](/guides/it-sdi-invoicing#example-invoices). More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # Invoice lifecycle status in Italy Source: https://docs.invopop.com/guides/it-sdi-status How SDI reports what happened to an invoice you sent, and what each notification means. Sending an invoice to SDI happens in two phases. First, SDI answers the submission itself: it either takes charge of the file or refuses it outright. Everything after that is asynchronous — SDI works through validation and delivery on its own schedule and reports each outcome by posting a notification back. Those notifications are what tell you whether the invoice actually reached the buyer, and for public administrations, whether the buyer accepted it. Each one becomes a [bill/status](https://docs.gobl.org/draft-0/bill/status#status) entry attached to the invoice. ## The lifecycle ```mermaid theme={"system"} flowchart TD A["Send invoice to SDI"] --> B{"File accepted?"} B -->|"No"| BF["Errore EI01, EI02, EI03
Not taken in charge"] B -->|"Yes"| C["Taken in charge"] C --> VAL{"SDI validation"} VAL -->|"Fail"| SC["NS
Rejected by SDI"] VAL -->|"Pass"| RT{"Recipient"} RT -->|"Business"| BDEL{"Delivery"} BDEL -->|"Delivered"| BRC["RC
Delivered"] BDEL -->|"Undeliverable"| BMC["MC
Available on the AdE portal"] RT -->|"Public administration"| GDEL{"Delivery"} GDEL -->|"Delivered"| GRC["RC
Delivered to the PA"] GDEL -->|"Undeliverable"| GMC["MC
SDI keeps retrying"] GMC -->|"Delivered"| GRC GMC -->|"Given up"| GAT["AT
Transmission attested"] GRC --> GPA{"PA replies?"} GPA -->|"Accepts"| GEC01["NE / EC01
Accepted"] GPA -->|"Rejects"| GEC02["NE / EC02
Rejected"] GPA -->|"Silence"| GDT["DT
Can no longer be rejected"] %% Invopop palette - skills/mermaid-style classDef actor fill:#ffffff,stroke:#169958,stroke-width:1px,color:#103830 classDef system fill:#e8f5ee,stroke:#169958,stroke-width:1px,color:#103830 classDef authority fill:#169958,stroke:#0f7a45,stroke-width:1.5px,color:#ffffff classDef decision fill:#f4faf6,stroke:#169958,stroke-width:1px,color:#103830 classDef muted fill:#f4f4f5,stroke:#9ca3af,stroke-width:1px,color:#4b5563 linkStyle default stroke:#94a3b8 class A actor class C,BF,SC,BRC,BMC,GRC,GMC,GAT,GEC01,GEC02,GDT system class B,VAL,RT,BDEL,GDEL,GPA decision ``` ## Submission The send step reports SDI's immediate answer. When SDI takes charge of the file it returns an identifier for the submission, and every later notification about that invoice refers to it. When SDI refuses the file outright it returns an error code instead, and the step fails with `KO`. | Code | Meaning | | - | - | | `EI01` | The file is empty | | `EI02` | The service is unavailable | | `EI03` | The sender is not authorised | Being taken in charge is not the same as being accepted. Validation comes next, and an invoice can still be rejected minutes later. ## Business invoices For invoices to businesses and consumers, the lifecycle is short: SDI validates, then either delivers or parks the invoice. | Notification | Status | Typically within | Meaning | | - | - | - | - | | `NS` — *notifica di scarto* | `error` | Minutes | SDI's validators rejected the file | | `RC` — *ricevuta di consegna* | `acknowledged` | 5 days | Delivered to the recipient | | `MC` — *mancata consegna* | `acknowledged` | 5 days | SDI could not deliver. The invoice is available to the recipient on the AdE portal, and you must tell them. See below | A rejected invoice has no legal existence. Correct it and send a fresh one — this is not a case for a credit note. > [accordion] MC — the invoice is issued, but you must tell the buyer where to find it > > SDI could not reach the buyer. Either the invoice gave no address (recipient code `0000000` and no PEC) and the buyer has none registered with AdE, or the address exists and was unreachable at the time, a full PEC mailbox for instance. The notification text says which. > > The invoice is not lost and it is not a failure. The receipt attests that the invoice is issued, and SDI files it in the buyer's reserved area of the *Fatture e Corrispettivi* portal (Consultazione → Fatture elettroniche e altri dati IVA → *fatture messe a disposizione*), from the date given in the notification. That is why it counts as `acknowledged`. > > What the rules ask of you as the seller: tell the buyer promptly, by any means outside SDI, that the invoice is waiting for them there. Sending them a PDF or paper copy counts as that notice. For the buyer, the invoice counts as received on the day they view it on the portal, and their VAT deduction starts from that date. > > Do not send the invoice again. It is already issued, and a second submission is a duplicate. To avoid `MC` in the first place, ask business customers for a recipient code or a PEC address and put it on the invoice. > > *Source: [Provvedimento AdE 89757/2018](https://www.agenziaentrate.gov.it/portale/documents/20143/296703/Provvedimento+30042018+fatturazione+elettronica_Provvedimento_30042018+.pdf/48cb2b5f-ea0a-c6dd-ab3d-025b9fd2b3a2), points 3.4, 4.3, 4.4 and 4.6.* ## Public administration invoices Invoices to a public body carry a second act: after delivery, the buyer has 15 days to accept or reject. | Notification | Status | Typically within | Meaning | | - | - | - | - | | `NS` — *notifica di scarto* | `error` | Minutes | SDI's validators rejected the file | | `MC` — *mancata consegna* | `processing` | 5 days | SDI could not deliver yet, and keeps retrying for 10 days | | `RC` — *ricevuta di consegna* | `acknowledged` | 15 days | Delivered to the public body | | `AT` — *attestazione di trasmissione* | `error` | 15 days | Delivery was given up. See below | | `NE` / `EC01` — *notifica esito* | `accepted` | 30 days | The public body accepted the invoice | | `NE` / `EC02` — *notifica esito* | `rejected` | 30 days | The public body rejected the invoice | | `DT` — *decorrenza termini* | `accepted` | 30 days | The public body did not reply. See below | > [accordion] AT — the invoice never arrived, and you must deliver it yourself > > SDI gave up delivering to the public body, and issues an attestation: legal proof that you transmitted the invoice and that the failure is not yours. > > This is not a fix-and-resubmit like `NS`. The invoice stands, but it is now on you to send both the invoice and the attestation to the public body directly, outside SDI. That direct delivery is required for the invoice to be payable — the attestation is what authorises the public body to process an invoice that did not reach it through SDI. > > It reports as an `error` because it needs you to act, not because anything is wrong with the invoice. > [accordion] DT — silence, which in practice means accepted > > The public body had 15 days to accept or reject and did neither, so SDI closes the process. From then on it discards any further communication about that invoice, which means the public body can no longer reject it. > > SDI does not call this an acceptance. In practice the invoice proceeds as one: rejection is off the table, and it appears as accepted in the PCC (*Piattaforma dei Crediti Commerciali*), which tracks what public administrations owe. Any remaining dispute is settled between you and the buyer, outside SDI. ## Receiving the notifications Each notification runs the status workflow configured on the Italy app, which records it against the invoice it belongs to. > [tab] Workflow > [tab] Code > > ```json Italy import invoice status workflow theme={"system"} > { > "name": "Italy import invoice status", > "description": "Record an SDI notification about an invoice you sent", > "schema": "bill/status", > "steps": [ > { > "id": "92d923d7-0d5a-4ee2-a7f9-f9fbd89f1650", > "name": "Import status from SDI", > "provider": "gov-it.sdi.import.status", > "summary": "Turn the SDI notification into a status entry" > } > ], > "rescue": [] > } > ``` Recording the status is where the app's job ends. What follows — updating the invoice, alerting someone, telling your own systems — is yours to build as steps after the import. The step reports the status it recorded as its result code, so your workflow can treat `acknowledged` differently from `rejected`. ### What a status entry holds Every entry carries the `SDI` series and the SDI message identifier as its code, with the submission identifier in its metadata so it can be traced back to the invoice. The status line records the outcome as one of GOBL's own keys — `acknowledged`, `accepted`, `rejected`, `error` or `processing` — with the exact Italian notification code preserved alongside it in the `it-sdi-notification` extension, and a plain-language description of what happened. When there's more to say, the status line also carries `reasons`: * **`NS`**: one reason per error SDI found, with SDI's error code in `reasons[].faults[].code` and its description in `reasons[].faults[].message`. This is what to show the user so they can fix the invoice before sending a new one. * **`NE` rejected (`EC02`)**: the public administration's rejection text in `reasons[].description`. * **`MC`**: SDI's explanation of why delivery failed, in `reasons[].description`. Other notifications carry no reasons. To read them, add a webhook step after the import: it receives the status entry's ID as `silo_entry_id`, and [fetching that entry](/api-ref/silo/entries/fetch-an-entry) gives you the full status with its reasons. Entries are typed by who is speaking. Notifications from SDI are an `update`, since the platform is reporting; a `NE` is a `response`, because there the buyer is answering. ## FAQ > [accordion] How do I configure my workspace for Italian invoicing? > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > [accordion] How do I issue a documento commerciale (scontrino)? > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > [accordion] Where do I find Italy-specific GOBL documentation? > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. > [accordion] Why is my invoice processing taking so long? > > The **Send invoice to SDI** step completes as soon as SDI accepts the file — it doesn't wait for SDI's verdict. What takes time is SDI's own processing: a rejection usually arrives within minutes, but delivery confirmations can take up to 5 days. Each verdict is recorded against the invoice as a status entry, so nothing is stuck while you wait. See the [status guide](/guides/it-sdi-status) for the full lifecycle. > [accordion] How do I know if my invoice was delivered successfully? > > SDI confirms delivery with an `RC` (*ricevuta di consegna*) notification, recorded on the invoice as a status entry with the GOBL status `acknowledged`. A rejection arrives as `NS` with status `error`. Every notification and what it means is covered in the [status guide](/guides/it-sdi-status). > [accordion] How do I test different SDI outcomes in the sandbox? > > Set a reserved *codice destinatario* on the customer — for example `SIMNS00` to simulate a rejection. The sandbox simulates SDI end to end and feeds back the notifications a real exchange would produce; any ordinary code resolves to a successful delivery. The full list of reserved codes is in the [issuing guide](/guides/it-sdi-invoicing#testing-in-the-sandbox). > [accordion] How do I add codice fiscale and Partita IVA? > > Both Italian tax identifiers have their own place on a party. The *partita IVA* (VAT number) goes in `tax_id`, and the *codice fiscale* goes in `identities` under the key `it-fiscal-code`. A party may carry both. > > An Italian supplier always needs a *partita IVA*. An Italian customer needs at least one of the two — which one depends on who they are, covered in the [issuing guide](/guides/it-sdi-invoicing#identifying-the-customer). > > Here's an example showing both identifiers on a supplier: > > ```json Supplier with Partita IVA and Codice Fiscale theme={"system"} > { > "supplier": { > "name": "MªF. Services", > "tax_id": { > "country": "IT", > "code": "12345678903" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "MRTMTT91D08F205J" > } > ] > } > } > ``` > [accordion] How do I invoice a customer outside Italy? > > Send it through SDI as usual — an Italian supplier reports the invoice there whoever the customer is. SDI has no way to deliver outside Italy, though, so it won't reach the customer that way: send them their copy yourself, normally as a PDF. It's the same invoice travelling by two routes, and only the FatturaPA file is the legal one. > [accordion] What if the customer has no tax ID at all? > > An Italian customer needs either a *partita IVA* or a *codice fiscale*. A customer outside Italy needs neither — their country is enough, so leave the code out rather than inventing a placeholder. See [identifying the customer](/guides/it-sdi-invoicing#identifying-the-customer). > [accordion] How do I reference a receipt (documento commerciale) in an SDI invoice? > > Add an item attribute to the invoice line with `type` `N.DOC.COMM` and the receipt's identifier in `text`, its progressive number in `amount` and its date in `date`. The `it-sdi-v1` addon writes each item attribute as an `AltriDatiGestionali` block (`TipoDato`, `RiferimentoTesto`, `RiferimentoNumero`, `RiferimentoData`). The `type` is limited to 10 ASCII characters. See the "Invoice after a documento commerciale" example in the [issuing guide](/guides/it-sdi-invoicing#example-invoices). More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # Smart Receipts issuing guide Source: https://docs.invopop.com/guides/it-ticket Issue e-receipts in Italy ## Introduction Invopop's Smart Receipts provider allows you to generate and issue electronic tickets (*documento commerciale/scontrino elettronico*) in Italy. The *documento commerciale* is a digital fiscal document that records sales transactions and transmits them to the *Agenzia delle Entrate* (AdE). This digital receipt replaces traditional paper receipts while maintaining full fiscal compliance and serves as official proof of purchase for your customers. Italian law requires businesses to transmit sales data digitally through either a certified *Registratore Telematico* (RT) or the [AdE's online portal](https://www.agenziaentrate.gov.it/portale/aree-tematiche/fatturazione-elettronica). Smart Receipts streamlines this process by providing a secure interface to relay your sales data to the AdE through a local provider. Important distinctions for the *Documento Commerciale*: * It is not an invoice (*fattura*) - invoices require detailed buyer information and follow different tax rules. * It does not replace transport documents (*documento di trasporto*). * It is not a simple internal receipt - it serves an official fiscal function requiring AdE transmission. * VAT is always calculated when the document is issued - unlike FatturaPA, there is no deferred VAT option. Amounts not collected at the time of sale are reported as *corrispettivo non riscosso* (see [Payment collection](#payment-collection)). The AdE portal provides functionality to create tickets, void them entirely, and process refunds at the item level. Invopop's Smart Receipts implementation supports all these operations, allowing you to manage your electronic tickets programmatically through our API or manually via the Console. ## Prerequisites Before you begin, ensure you have: * A registered supplier: follow the [Smart Receipts supplier registration guide](/guides/it-ticket-supplier) to connect the Italian Smart Receipts app and register the supplier's AdE credentials before issuing. * Invoice line items that include: * quantity, * name , * price (including VAT), * VAT rate, * item type (specified in extension). ## Setup There are two key processes to prepare: 1. Prepare an invoicing workflow. 2. Prepare a voiding workflow. > [!NOTE] > > These instructions work in both sandbox and live environments. The Italian Smart Receipts app must already be connected and the supplier registered — this is covered in the [supplier registration guide](/guides/it-ticket-supplier). Follow these steps in the [Invopop Console](https://console.invopop.com). **1. Prepare Invoice Workflow** > [card] [Smart Receipts issue receipt workflow](https://console.invopop.com/redirect/workflows/new?template=it-ticket-send) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Smart Receipts issue receipt workflow theme={"system"} > { > "name": "Smart Receipts issue receipt", > "description": "Issue an Italian documento commerciale via AdE", > "schema": "bill/invoice", > "steps": [ > { > "id": "0b0bdb00-25b5-11f0-864a-193f213df097", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "04427d60-25b5-11f0-864a-193f213df097", > "name": "Send receipt to AdE", > "provider": "ticket-it.send" > }, > { > "id": "9e973e00-2b2d-11f0-984e-0542d5f28f0b", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Italian · A4", > "config": { > "logo_height": 40, > "locale": "it", > "date_format": "%Y-%m-%d", > "layout": "A4" > } > }, > { > "id": "112326b0-25b5-11f0-864a-193f213df097", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "194a66a0-25b5-11f0-864a-193f213df097", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **2. Prepare Void Workflow** > [card] [Smart Receipts void receipt workflow](https://console.invopop.com/redirect/workflows/new?template=it-ticket-void-receipt) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Smart Receipts void receipt workflow theme={"system"} > { > "name": "Smart Receipts void receipt", > "description": "Void an Italian documento commerciale on AdE", > "schema": "bill/invoice", > "steps": [ > { > "id": "02a62be0-2b2e-11f0-984e-0542d5f28f0b", > "name": "Void receipt with AdE", > "provider": "ticket-it.void" > }, > { > "id": "1583e220-2b2e-11f0-984e-0542d5f28f0b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "25c98860-2b2e-11f0-984e-0542d5f28f0b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Running In this section we'll explain how to issue and void invoices on behalf of a registered supplier, with the corresponding workflows. As usual, the recommended approach for running jobs is to perform two steps; first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), second [create a job](/api-ref/transform/jobs/create-a-job-put). ### Send an invoice Use these [GOBL](https://docs.gobl.org) document examples as templates in the [Invopop Console](https://console.invopop.com) or when creating silo entries via the API. For proper validation and normalization, set these properties in your [GOBL Invoices](https://docs.gobl.org/draft-0/bill/invoice): * Set `$regime` to [`IT`](https://docs.gobl.org/regimes/it) * Include [`it-ticket-v1`](https://docs.gobl.org/addons/it-ticket-v1) in `$addons` While Invopop attempts to set these automatically based on other invoice fields, we recommend defining them explicitly. > [accordion] B2C Invoice > > This example shows a simple B2C invoice from an Italian supplier (Documento Commerciale). Key points to note: > > * The minimal version in the first tab contains only the essential fields required to create the invoice > * The [`it-ticket-v1`](https://docs.gobl.org/addons/it-ticket-v1) addon ensures validation using AdE CF v1 rules built into [GOBL](https://docs.gobl.org) > * Extensions (`ext`) fields specify values that cannot be determined otherwise: > * Items have an extension identifying them as goods or services > * VAT exemptions require an Italian exemption code > * The `prices_include` field indicates that item prices include VAT > * The `payment.advances` entry records the total as paid by card. Without it, the receipt is reported to the AdE as fully uncollected (*corrispettivo non riscosso*) > * When running `gobl build`, the system automatically calculates totals, line item sums, IVA breakdowns, and normalizes the document according to Smart Receipts requirements > * The built version in the second tab shows the normalized document with all calculated fields including line indices, sums, and total amounts > > ```json Documento Commerciale theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": ["it-ticket-v1"], > "series": "XXIT", > "code": "001", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "type": "standard", > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Cleaning services", > "price": "125.00", > "ext": { > "it-ticket-product": "services" > } > }, > "taxes": [ > { > "cat": "VAT", > "ext": { > "it-ticket-exempt": "N3" > } > } > ] > }, > { > "quantity": "3", > "item": { > "name": "Cleaning products", > "price": "137.50", > "ext": { > "it-ticket-product": "goods" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "key": "card", > "description": "Card payment", > "percent": "100%" > } > ] > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-ticket-v1" > ], > "type": "standard", > "series": "XXIT", > "code": "001", > "issue_date": "2026-07-08", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Cleaning services", > "price": "125.00", > "ext": { > "it-ticket-product": "services" > } > }, > "sum": "125.00", > "taxes": [ > { > "cat": "VAT", > "key": "export", > "ext": { > "it-ticket-exempt": "N3" > } > } > ], > "total": "125.00" > }, > { > "i": 2, > "quantity": "3", > "item": { > "name": "Cleaning products", > "price": "137.50", > "ext": { > "it-ticket-product": "goods" > } > }, > "sum": "412.50", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "412.50" > } > ], > "payment": { > "advances": [ > { > "key": "card", > "description": "Card payment", > "percent": "100%", > "amount": "537.50" > } > ] > }, > "totals": { > "sum": "537.50", > "tax_included": "74.39", > "total": "463.11", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "export", > "ext": { > "it-ticket-exempt": "N3" > }, > "base": "125.00", > "amount": "0.00" > }, > { > "key": "standard", > "base": "338.11", > "percent": "22.0%", > "amount": "74.39" > } > ], > "amount": "74.39" > } > ], > "sum": "74.39" > }, > "tax": "74.39", > "total_with_tax": "537.50", > "payable": "537.50", > "advance": "537.50", > "due": "0.00" > } > } > ``` > [accordion] B2C Invoice Complete > > After the AdE (Agenzia delle Entrate) accepts the invoice, they add a reference to each line item. This reference, stored in the [`it-ticket-line-ref`](https://docs.gobl.org/addons/it-ticket-v1#ade-line-reference) extension, is essential for processing refunds. > > Notice: > > * This example shows a complete invoice with line references added by the AdE after acceptance > * The minimal version contains the basic invoice structure before AdE processing > * When running `gobl build`, the system calculates all totals and normalizes the document > * The built version shows the complete document with AdE-assigned line references, calculated totals, and all automatically generated fields > * These line references are required for creating corrective invoices and processing refunds > * The complete invoice represents the final state after successful submission to and acceptance by the AdE > > ```json Documento Commerciale complete theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-ticket-v1" > ], > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > "type": "standard", > "series": "XXIT", > "code": "001", > "issue_date": "2025-05-20", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Cleaning services", > "price": "125.00", > "ext": { > "it-ticket-product": "services" > } > }, > "taxes": [ > { > "cat": "VAT", > "ext": { > "it-ticket-exempt": "N3" > } > } > ], > "ext": { > "it-ticket-line-ref": "557647" > } > }, > { > "quantity": "3", > "item": { > "name": "Cleaning products", > "price": "137.50", > "ext": { > "it-ticket-product": "goods" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ], > "ext": { > "it-ticket-line-ref": "557647" > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-ticket-v1" > ], > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > "type": "standard", > "series": "XXIT", > "code": "001", > "issue_date": "2025-05-20", > "currency": "EUR", > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Cleaning services", > "price": "125.00", > "ext": { > "it-ticket-product": "services" > } > }, > "sum": "125.00", > "taxes": [ > { > "cat": "VAT", > "key": "export", > "ext": { > "it-ticket-exempt": "N3" > } > } > ], > "total": "125.00", > "ext": { > "it-ticket-line-ref": "557647" > } > }, > { > "i": 2, > "quantity": "3", > "item": { > "name": "Cleaning products", > "price": "137.50", > "ext": { > "it-ticket-product": "goods" > } > }, > "sum": "412.50", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "412.50", > "ext": { > "it-ticket-line-ref": "557647" > } > } > ], > "totals": { > "sum": "537.50", > "tax_included": "74.39", > "total": "463.11", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "export", > "ext": { > "it-ticket-exempt": "N3" > }, > "base": "125.00", > "amount": "0.00" > }, > { > "key": "standard", > "base": "338.11", > "percent": "22.0%", > "amount": "74.39" > } > ], > "amount": "74.39" > } > ], > "sum": "74.39" > }, > "tax": "74.39", > "total_with_tax": "537.50", > "payable": "537.50" > } > } > ``` > [accordion] Corrective Invoice > > When a customer requests a refund for specific items, you can process it by issuing a corrective invoice. Since this is still considered sending an invoice, you can use the same workflow as before. > > To create a corrective invoice, take the original [GOBL Invoice](https://docs.gobl.org/draft-0/bill/invoice) and: > > 1. Set the `type` field to `corrective` > 2. Add a reference to the original invoice using the `preceding` object > 3. Include the original document number stamp from the first invoice > 4. Keep the lines and quantities you want to refund > > Notice: > > * The minimal version in the first tab contains only essential correction details including references to the original invoice > * The corrective invoice preserves the [`it-ticket-line-ref`](https://docs.gobl.org/addons/it-ticket-v1#ade-line-reference) extension from the original invoice for proper tracking > * When running `gobl build`, the system automatically calculates negative amounts for refunds, validates the corrective structure, and applies AdE rules > * The built version in the second tab shows the normalized document with calculated negative totals, tax refunds, and all automatically generated fields > * The corrective invoice references the original invoice using the `preceding` object and maintains line item references for accurate tracking > * This example shows a corrective invoice that refunds two units of "Cleaning Products" from the original invoice > > ```json Corrective Documento Commerciale theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-ticket-v1" > ], > "type": "corrective", > "series": "REFUND", > "code": "001", > "issue_date": "2025-05-20", > "currency": "EUR", > "preceding": [ > { > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > "type": "standard", > "issue_date": "2025-05-20", > "series": "XXIT", > "code": "001", > "stamps": [ > { > "prv": "ade-ref", > "val": "ACUBE2025/0000-7816" > } > ] > } > ], > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > } > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Cleaning products", > "price": "137.50", > "ext": { > "it-ticket-product": "goods" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ], > "ext": { > "it-ticket-line-ref": "557647" > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "IT", > "$addons": [ > "it-ticket-v1" > ], > "type": "corrective", > "series": "REFUND", > "code": "001", > "issue_date": "2025-05-20", > "currency": "EUR", > "preceding": [ > { > "uuid": "0196ed2c-3ca6-7000-b87f-8fb532b45250", > "type": "standard", > "issue_date": "2025-05-20", > "series": "XXIT", > "code": "001", > "stamps": [ > { > "prv": "ade-ref", > "val": "ACUBE2025/0000-7816" > } > ] > } > ], > "tax": { > "prices_include": "VAT" > }, > "supplier": { > "name": "Cleaning SRL", > "tax_id": { > "country": "IT", > "code": "74230430451" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Cleaning products", > "price": "137.50", > "ext": { > "it-ticket-product": "goods" > } > }, > "sum": "275.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "22.0%" > } > ], > "total": "275.00", > "ext": { > "it-ticket-line-ref": "557647" > } > } > ], > "totals": { > "sum": "275.00", > "tax_included": "49.59", > "total": "225.41", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "225.41", > "percent": "22.0%", > "amount": "49.59" > } > ], > "amount": "49.59" > } > ], > "sum": "49.59" > }, > "tax": "49.59", > "total_with_tax": "275.00", > "payable": "275.00" > } > } > ``` The AdE will automatically generate a document number for the invoice. Once the invoice is sent, you will find the document number in a stamp inside the document header. ![Invoice Stamp](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-ticket-invoice-stamp.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=43a856de8f9723b3a021ea540ea26384) ### Payment collection Every receipt reports to the AdE how much of the total was collected at the time of sale, and how. Use `payment.advances` in your GOBL invoice to record what the customer paid: * Advances with the `cash` key are reported as cash payments (*pagamento contante*). * Advances with the `other+voucher` key are reported as payments with a multi-purpose voucher (*sconto a pagare*). Use it for the amount paid with a gift card that can be spent on goods or services taxed at different VAT rates. VAT is still calculated on the full price. * Advances with any other key, such as `card`, are reported as electronic payments (*pagamento elettronico*). > [!WARNING] > > Any part of the total not covered by `payment.advances` is reported to the AdE as not collected (*corrispettivo non riscosso*). An invoice with no `payment` block is reported as fully uncollected. If the customer paid at the point of sale, always include `payment.advances` covering the amount paid. Receipts cannot be changed once the AdE has accepted them, so an amount reported as *corrispettivo non riscosso* is not corrected by editing the original. If you need to report an amount collected later, issue a new receipt for that amount with `payment.advances` covering it in full. The AdE does not require the new receipt to reference the original; if you want the two to be traceable, include the original's number and date in the line description. Whether a later collection needs reporting depends on the operation: for goods, VAT is already chargeable at delivery regardless of collection; for services, it becomes chargeable when the payment is received. Which applies to your sales is a determination for you and your tax advisors. ### Refund an invoice Refund processing is handled through corrective invoices, which you can issue using the same workflow as regular invoices. See the "Corrective Invoice" accordion above for details and examples. ### Void an invoice You can void an invoice if it was issued in error, such as when a receipt is accidentally sent twice. To void an invoice: 1. Locate the [silo entry uuid](/api-ref/silo/entries/fetch-an-entry) of the invoice 2. Run the "Void Italian Smart Receipts" workflow with this uuid > [!WARNING] > > Voiding produces a new document, dated the day it is emitted rather than the original sale date, and it reduces the daily totals reported to the AdE for that day. Keep this in mind when voiding receipts from previous days, as it may have fiscal implications for the supplier. ### Invoice requested after a receipt A customer sometimes asks for an invoice after their receipt has already been issued and transmitted to the AdE. The receipt stays as it is: issue a regular SDI invoice for the same sale and reference the receipt in it. The AdE's [FAQ n. 45 on electronic invoicing](https://www.agenziaentrate.gov.it/portale/web/guest/schede/comunicazioni/fatture-e-corrispettivi/faq-fe) describes how the invoice should reference the receipt. The sequence with Invopop is: 1. **Leave the receipt in place, unless it carries a lottery code.** The AdE's [Consulenza giuridica n. 3/2022](https://www.agenziaentrate.gov.it/portale/documents/20143/4169774/Consulenza_giuridica_3_14.02.2022.pdf) (§17) says that a receipt issued with a lottery code must be voided when the customer then asks for an invoice; any other receipt stays as it is. There is no technical age limit on voids (see [Void an invoice](#void-an-invoice) for how a void affects daily totals). 2. **Issue the invoice through the Italy app** using your normal [SDI sending workflow](/guides/it-sdi-invoicing). It needs no extra configuration: the receipt reference is ordinary line data. 3. **Reference the receipt on each invoice line** with an item attribute. The `it-sdi-v1` addon maps it to the `AltriDatiGestionali` block the AdE expects: | GOBL attribute field | FatturaPA field | Value | | - | - | - | | `type` | `TipoDato` | `N.DOC.COMM` | | `text` | `RiferimentoTesto` | the receipt's AdE document number, which is the `ade-ref` stamp on the receipt | | `amount` | `RiferimentoNumero` | the receipt's progressive number | | `date` | `RiferimentoData` | the receipt's issue date | `type` accepts up to 10 ASCII characters, `text` up to 60 characters, and `amount` is rendered with at least two decimals (`7816` becomes `7816.00`). Which identifier you place in `RiferimentoTesto` and `RiferimentoNumero` is your reading of the AdE guidance; Invopop passes the values through without validating them. 4. **Adjust your own records.** The AdE FAQ requires the invoiced amount to be removed from that day's *corrispettivi* totals. The receipt reference from step 3 goes to SDI as part of the invoice, but Invopop doesn't act on it: neither Invopop nor the Smart Receipts provider changes the totals already transmitted, and the invoice does not affect the receipt's *corrispettivo non riscosso* reporting. Set `issue_date` to the day of the sale: FatturaPA's `Data` comes from `issue_date`, and `op_date` is not written to the XML. Without further tags `gobl build` sets the document type to `TD01`, which must reach SDI within 12 days of the sale. If your advisor concludes the receipt serves as the supporting document for a deferred invoice (`TD24`), add the `deferred` tag to `$tags`, send it by the 15th of the following month, and keep `issue_date` inside the month of the sale. Whether a sale qualifies for either document type is a compliance determination for you and your tax advisor. See the "Invoice after a documento commerciale" example in the [SDI issuing guide](/guides/it-sdi-invoicing#example-invoices) for a complete GOBL document. ## FAQ > [accordion] How do I configure my workspace for Italian invoicing? > > Install the [Italy app](/apps/italy) for structured invoicing through SDI, or the Smart Receipts app for B2C-only AdE CF receipts. Run invoices through a workflow with the **Send invoice to SDI** step — see the [issuing guide](/guides/it-sdi-invoicing). > [accordion] How do I issue a documento commerciale (scontrino)? > > Retail receipts (*documento commerciale*, commonly called *scontrino*) are not SDI invoices — they are reported to the tax authority as *corrispettivi* through a separate channel. Use the [Smart Receipts Italy app](/apps/smart-receipts-italy) for those, and see the [Smart Receipts issuing guide](/guides/it-ticket). > [accordion] Where do I find Italy-specific GOBL documentation? > > See the [Italy tax regime in GOBL](https://docs.gobl.org/regimes/it) for tax categories, codice fiscale rules, and SDI-specific extensions. The [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addon documents required FatturaPA fields. > [accordion] How do I correct mistakes in an issued AdE CF invoice? > > You cannot modify an AdE CF invoice after issuing it. Instead you must: > > 1. Void the incorrect invoice using the "Void AdE CF Invoices" workflow > 2. Issue a new invoice with the correct information > [accordion] Do I still need to add a series and code to the invoice? > > We recommend adding a series and code to the invoice so that you can keep track internally even though the AdE will generate a document number. > [accordion] Is AdE CF a substitute for SDI? > > AdE CF is **not** a substitute for [SDI](/guides/it-sdi-invoicing). SDI is the main channel for issuing electronic invoices in Italy; Invopop issues FatturaPA documents through it. AdE CF should only be used when customer information is not available, like in online B2C scenarios. > [accordion] What GOBL fields are required for Smart Receipts? > > Use the standard GOBL invoice with the simplified tag. No customer tax ID is required. The `it-ticket-v1` addon handles the AdE CF-specific fields. Each receipt gets a unique Lottery Code if the lottery functionality is enabled. > [accordion] A customer asked for an invoice after I issued their receipt. What do I do? > > Leave the receipt as it is and issue a regular SDI invoice for the sale through the [Italy app](/guides/it-sdi-invoicing). Reference the receipt on each line with an item attribute (`type` `N.DOC.COMM`, the receipt's `ade-ref` number in `text`, its progressive number in `amount` and its date in `date`), which the `it-sdi-v1` addon converts into the `AltriDatiGestionali` block the AdE expects. Invopop does not change the daily totals already transmitted, so remove the invoiced amount from your own *corrispettivi* records. See [Invoice requested after a receipt](/guides/it-ticket#invoice-requested-after-a-receipt). More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # Smart Receipts supplier registration guide Source: https://docs.invopop.com/guides/it-ticket-supplier Register suppliers to issue smart receipts in Italy using the Italian Smart Receipts app. ## Introduction Before a company can issue electronic tickets (*documento commerciale/scontrino elettronico*) in Italy, they must be registered as a supplier in Invopop with the credentials they use on the *Agenzia delle Entrate* (AdE) portal, so that receipts can be relayed to the AdE on their behalf. In this guide you'll learn how to register a supplier using the [Smart Receipts Italy app](/apps/smart-receipts-italy). Once a supplier is registered, continue with the companion guide: [Italy: Issuing receipts](/guides/it-ticket). | - | Sandbox | Live | | - | - | - | | **Supplier** | Test data accepted | Real Partita IVA and AdE credentials required | ## Prerequisites To register a supplier for Smart Receipts, you will need: * An Italian tax ID (Partita IVA) for the supplier. * The supplier's *codice fiscale*. * The supplier's [AdE portal](https://ivaservizi.agenziaentrate.gov.it/portale/) credentials (password and PIN). ## Setup There are three key processes to prepare: 1. Create a supplier post-registration workflow. 2. Connect the Italian Smart Receipts app. 3. Configure a supplier registration workflow. > [!NOTE] > > These instructions work in both sandbox and live environments. The only differences are in supplier data and registration details when using test environments. Follow these steps in the [Invopop Console](https://console.invopop.com). **1. Create Supplier post-registration workflow** > [card] [Smart Receipts supplier post-registration workflow](https://console.invopop.com/redirect/workflows/new?template=it-ticket-post-registration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SDI supplier post-registration workflow theme={"system"} > { > "name": "SDI supplier post-registration", > "description": "Mark an SDI customer as registered", > "schema": "org/party", > "steps": [ > { > "id": "7e8d8070-3870-11ef-af29-4533d56cea03", > "name": "Set state", > "config": { > "state": "registered" > }, > "summary": "Set state to `registered`{.state .registered}", > "provider": "silo.state" > } > ], > "rescue": [] > } > ``` **2. Connect the Italian Smart Receipts app** 1. Navigate to **Configuration** → **Apps**. 2. Find **Italian Smart Receipts** in the app discovery list. 3. Click **Connect** to activate. ![Smart Receipts App](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-ticket-app.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=ba776cd869793840a07c305a93439915) Click the **Configure** button on the app, and choose the "Post-registration workflow" we created in the previous step. Click the **Save** button. **3. Configure the supplier registration workflow** > [card] [Smart receipts supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=it-ticket-register-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Smart Receipts register supplier workflow theme={"system"} > { > "name": "Smart Receipts register supplier", > "description": "Register a supplier with AdE", > "schema": "org/party", > "steps": [ > { > "id": "1a1be400-2b32-11f0-984e-0542d5f28f0b", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "de116bb0-25b4-11f0-864a-193f213df097", > "name": "Register supplier with AdE", > "provider": "ticket-it.register" > }, > { > "id": "e0a1b380-25b4-11f0-864a-193f213df097", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > } > ], > "rescue": [ > { > "id": "1deb1470-2b32-11f0-984e-0542d5f28f0b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Register a supplier You can register suppliers either manually via the Invopop Console or programmatically via the API. The process is essentially the same. We'll demonstrate the manual process first, followed by the [API flow](#register-a-supplier-via-the-api). > [!WARNING] > > Suppliers in Italy using this system must generate and provide their [AdE](https://ivaservizi.agenziaentrate.gov.it/portale/) > credentials so that invoices can be processed on their behalf. This is not an automated service and can only be > performed manually by a representative of the supplier. 1. Navigate to **Parties** → **Suppliers** in the sidebar 2. Click **+ New Supplier** 3. In the editor, enter the supplier details Here's an example using test data (only valid for sandbox environments): > [accordion] View supplier Data for sandbox > > ```json theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > "name": "Milano Pizza", > "tax_id": { > "country": "IT", > "code": "48220010093" > }, > "identities": [ > { > "key": "it-fiscal-code", > "code": "MRTMTT91D08F205J" > } > ] > } > ``` > > > [!NOTE] > > > > You may notice that we included the Italian fiscal code in the supplier, this is not necessary at the moment but will be asked for, if not provided, during the registration process. Tap **Build**, ensure there are no errors, and click **Save**. We should now see the document. Find and click the **Select Workflow** button. Select the **Register Supplier** workflow created during setup, and click **Run Workflow**. The execution should be successful, and the silo entry will now be in the `Processing` state. Tap the **Meta** tab to see the registration link: ![Supplier Registration Link](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-ticket-reg-link.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=83439ccd6817ca3fb3478ddf42ebeaa6) > [!NOTE] > > You can access the registration link via the API by [fetching the silo > entry](/api-ref/silo/entries/fetch-an-entry) and reading the `meta` row where > the `key` is set to `registration-link`. Tap the registration link and a new browser window will be presented with a form to upload the credentials for the supplier. Note that this form can be shared directly with the supplier if required. ![Issuer Registration Form](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-ticket-reg-sp.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=f28cf6ae052e1508140cebf8f5c10c7a) The details from this form are sent securely to our local partner who will be responsible for sending them to the AdE. We will update the supplier with the provided *codice fiscale* for future use but will not store any type of credentials. > [!WARNING] > > These credentials will expire every 90 days. You must first update your credentials on the official AdE web portal, then enter these new credentials in our registration form. You can use the same registration link to update your credentials. If the credentials expire before they're renewed, the supplier's next receipt, refund or void fails: the step ends `KO` with the fault code `invalid-credentials` ("Please update the credentials for the supplier"). The code appears in the [job's faults](/api-ref/transform/jobs/fetch-a-job#response-faults) and in the `faults` of a [webhook](/guides/webhooks) step in the workflow's error flow. Invopop doesn't warn before the 90 days are up, so track the renewal date on your side, and use that fault code to prompt the supplier to renew through the same registration link. Sandbox doesn't check credentials, so this case can only happen in live. At this point, you're ready to start issuing receipts on behalf of the supplier. Head over to the [Smart Receipts issuing guide](/guides/it-ticket) to continue. ## Register a supplier via the API The whole registration process can also be completed programmatically. This is useful in [white-label](/guides/white-label) setups where you want to collect the supplier's credentials inside your own product instead of sharing Invopop's hosted form. **1. Upload the supplier** Use the [Create an entry](/api-ref/silo/entries/create-an-entry-put) endpoint to upload the supplier [party](https://docs.gobl.org/draft-0/org/party), like the example in the previous section. The party must include the company `name` and an Italian `tax_id` (Partita IVA). Optionally include the `it-fiscal-code` identity and an email address to pre-fill the registration form. **2. Run the registration workflow** Send the supplier to the registration workflow using the [Create a job](/api-ref/transform/jobs/create-a-job-put) endpoint with the IDs of the **silo entry** and the **supplier registration workflow** created during setup. **3. Fetch the registration link** [Fetch the silo entry](/api-ref/silo/entries/fetch-an-entry) and read the `meta` row where the `key` is `registration-link`. The `link_url` will look like this: ``` https://ticket-it.invopop.com/register/{owner_id}/{entry_id}?exp={expiry}&sig={signature} ``` The URL is signed: the `exp` and `sig` query parameters are validated on every request, so always use the `link_url` exactly as returned. Requests with missing or modified parameters are rejected. **4. Submit the credentials** Opening the link in a browser presents the hosted registration form. To submit the credentials from your own product instead, send a `PUT` request to the `link_url` (keeping the query parameters intact) with the following JSON body: ```json theme={"system"} { "fiscal_id": "48220010093", "codice_fiscale": "MRTMTT91D08F205J", "email": "supplier@example.com", "password": "supplier-ade-password", "pin": "12345678" } ``` | Field | Required | Description | | - | - | - | | `fiscal_id` | Yes | The supplier's Partita IVA, without the `IT` country prefix. | | `codice_fiscale` | Yes | The supplier's *codice fiscale*. It will be stored in the supplier party for future use. | | `password` | Yes | The supplier's AdE portal password. | | `pin` | Yes | The supplier's AdE portal PIN. | | `email` | No | Email address to receive AdE notifications. Updates the supplier party if changed. | A `200` response means the registration is complete and the post-registration workflow configured in the app will be launched. Errors are returned as `{"error": ""}` with a `400` status for client errors (invalid or expired link, missing fields) or `500` for server errors. The same endpoint can be called again with the same link to update the supplier's credentials when they expire. ## Unregister a supplier Unregistering a supplier revokes their receipt issuing privileges. You might need to unregister a supplier because they are no longer your client or because of a change in their Partita IVA. Unregistering disables receipt issuance for the supplier with our local partner and removes the registration link and *codice fiscale* stored with the supplier. To do so, use the following workflow template: > [card] [Smart Receipts unregister supplier](https://console.invopop.com/redirect/workflows/new?template=it-ticket-unregister-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Smart Receipts unregister supplier workflow theme={"system"} > { > "name": "Smart Receipts unregister supplier", > "description": "Unregister a supplier from AdE to stop issuing receipts", > "schema": "org/party", > "steps": [ > { > "id": "8c00e272-ded1-4600-8e86-24e0ffb8c0b2", > "name": "Unregister supplier from AdE", > "provider": "ticket-it.deregister", > "summary": "Stop issuing receipts for this supplier" > }, > { > "id": "c8a3aa22-4f06-48a8-9a81-f89b281de700", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "26ff28ea-3a4a-4c04-b415-4ed6d8bb8cad", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` Run the workflow on the supplier's silo entry, the same one you registered earlier. On success, the entry moves to the `Void` state. If the supplier was never registered, the step is skipped without error. To issue receipts for the supplier again, run the [registration workflow](#register-a-supplier) and submit their AdE credentials once more. ## FAQ > [accordion] How do I onboard a new supplier in Italy? > > Provide the supplier's Partita IVA and Codice Fiscale (where different) in their party configuration. No certificate upload is needed — Invopop transmits to SDI over its own accredited channel. > [accordion] How are supplier credentials stored in Invopop for Italy? > > No supplier certificates are required. Invopop exchanges documents with SDI over its own accredited channel; only the Partita IVA and routing metadata are stored. > [accordion] How do I register a supplier with Smart Receipts? > > Create the supplier party with its Partita IVA and run the Smart Receipts Register Supplier workflow. The workflow returns a signed registration link in the silo entry's meta. Open the link (or share it with the supplier) and submit the supplier's AdE credentials. Once the form is accepted, the post-registration workflow runs and the supplier can start issuing receipts. See the [supplier registration guide](/guides/it-ticket-supplier) for the full steps. > [accordion] What credentials does Smart Receipts require to authenticate a supplier? > > The supplier's own Agenzia delle Entrate portal credentials: the password and PIN they use at ivaservizi.agenziaentrate.gov.it, together with their Partita IVA and *codice fiscale*. Only a representative of the supplier can generate these. They are submitted through the registration link and passed securely to our local partner, who uses them to transmit receipts to the AdE on the supplier's behalf. Invopop stores the *codice fiscale* on the party but never stores the password or PIN. > [accordion] How often do the supplier's AdE credentials need to be renewed? > > Every 90 days. The supplier must first renew the credentials on the AdE portal, then resubmit them through the same registration link (or via the API `PUT` to the link) so receipt issuance is not interrupted. If they aren't renewed in time, issuing fails with the fault code `invalid-credentials` until the supplier resubmits them. More available in our [Italy FAQ](/faq/italy) section *** > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Italy → # Lookup guide Source: https://docs.invopop.com/guides/lookup Validate tax IDs against official registers in your workflows, and correct parties with the registered data. Invopop's [Lookup app](/apps/lookup) checks the tax ID of a party against the official register that issues it. Add its **Validate Tax IDs** step to an invoice or party workflow to make sure that the tax ID exists before you sign, send or register a document, and to write the party's legal name into the document. Lookup keeps recent register answers in a cache, so repeated checks of the same tax ID are faster and do not call the register again. The step decides how old a cached answer may be, or asks the register every time. ## How it works Each **Validate Tax IDs** step checks one party: * In an `invoice` workflow, the step checks the customer or the supplier, as configured. * In a `party` workflow, the step checks the party document itself. The step checks the party's `tax_id`. Entries in `identities` are not checked. A tax ID that no register covers is skipped and costs nothing. The step asks the register that issues the tax ID: * **Spanish tax IDs** go to the AEAT census. See [Spanish tax IDs](#spanish-tax-ids). * **French tax IDs** go to the DGFiP. See [French tax IDs](#french-tax-ids). * **Other EU VAT numbers** go to VIES. ## Set up the step **1. Enable the Lookup app** In the Console, open the apps directory by clicking the icon next to **Apps** in the sidebar. Find **Lookup** in the list of available apps and enable it in your workspace. **2. Add the step to a workflow** Open an `invoice` or `party` [workflow](/guides/workflows) and add the **Validate Tax IDs** step. Place it before the steps that need a valid tax ID, such as **Sign envelope**, or a step that sends the invoice to a tax authority or network. **3. Configure the step** Choose the party to check, how old a cached answer may be, and whether the step corrects the party. See [Step configuration](#step-configuration) below. Ask your agent to add tax ID validation to one of your workflows. Read [https://docs.invopop.com/guides/lookup.md](https://docs.invopop.com/guides/lookup.md) and [https://docs.invopop.com/guides/workflows.md](https://docs.invopop.com/guides/workflows.md). In my sandbox workspace, using the token in INVOPOP\_TOKEN, check that the Lookup app is enabled. Then take the invoice workflow named WORKFLOW\_NAME and propose where to add the Validate Tax IDs step, which party it should check, the max\_age and correct settings it should use, and how the workflow should handle the not-found, not-supported and found-name-mismatch codes. Show me the workflow JSON before you change anything, and do not invent result codes that the guide does not list. ## Step configuration | Field | Values | Default | What it does | | - | - | - | - | | **Invoice party to check** | Customer, Supplier | Customer | The invoice party to check. A `party` workflow always checks the party document. | | **Reuse a previous check for (days)** | 0 to 3650 | 30 | The oldest cached answer that the step accepts. `0` asks the register every time. | | **Correct the party** | On, Off | On | Write the register's data into the document when the check passes. | In the workflow JSON, these fields are `party`, `max_age` and `correct`: ```json theme={"system"} { "party": "customer", "max_age": 30, "correct": true } ``` ## Handle the results The step returns a status and a code. After `OK` or `SKIP`, the workflow continues with the next step. After `KO`, the workflow stops and runs its rescue steps, unless an [exception](/guides/workflows#creating-conditions-and-exceptions) handles that code. Add conditions and exceptions only for the codes that your process must handle in a special way. ### The tax ID is valid The step returns `OK`: * **`found`**: the register confirms the tax ID, and the names match. * **`found-name-mismatch`**: the register confirms the tax ID, but the name in the document is different. * **`found-inactive`**: the register confirms the tax ID, but holds the party as inactive. * **`found-dissolved`**: the register confirms the tax ID, but holds the party as dissolved. * **`found-not-vat-registered`**: the tax ID belongs to an active business that is not registered for VAT, such as a French micro-entrepreneur under the franchise en base. The business exists, but has no VAT number. `found-inactive`, `found-dissolved` and `found-not-vat-registered` are warnings: the workflow continues, and the correction still runs. ### The tax ID is not valid The step returns `KO`: * **`not-found`**: the register does not hold the tax ID. Check the tax ID with your customer. To reject these invoices automatically, see [Stop on an unregistered customer](#stop-on-an-unregistered-customer). * **`revoked`**: the register identifies the party, but the tax authority revoked the tax ID, so it has no legal effect. Ask your customer for a valid tax ID. * **`input`**: the register rejects the tax ID as badly formed, for example a code with the wrong length. Correct the tax ID in the document and run the job again. The step also returns this code when the party lacks data that the register needs, for example `AEAT needs the name of a natural person to check a DNI or NIE`. Add the name to the party and run the job again. ### The step is skipped The step returns `SKIP`, and the workflow continues: * **`no-identifiers`**: the party has no tax ID, as is common for a consumer. To handle these documents differently, add a condition with the status **Any** on this code. * **`missing-party`**: the invoice has no party to check, such as a simplified invoice without a customer. * **`not-supported`**: no register covers the tax ID. ### The register does not answer The step returns `ERR` with the code **`upstream`**, and Invopop retries it automatically. You do not need to do anything. The step never uses an older cached answer in place of the register's answer. ### The step cannot run The step returns `KO` when its setup is wrong: * **`not-enrolled`**: the Lookup app is not enabled in the workspace. Enable it in the Console. * **`not-configured`**: the app is not set up correctly. Contact [support](mailto:support@invopop.com). * **`silo-entry`**: the document of the job cannot be found. * **`bad-document`**: the document cannot be read. * **`bad-config`**: the step configuration cannot be read. Open the step and save its configuration again. * **`invalid-party`**: the step selects an unknown party. Select the customer or the supplier. * **`unsupported-schema`**: the document is not an invoice or a party. Use the step in an `invoice` or `party` workflow. ## Correction With **Correct the party** on, a check that passes writes the register's data into the document: * **Name:** the registered name replaces the document's name whenever the two differ, including a difference in case only. The registered spelling is the legal one. * **Address:** a structured address from the register becomes the party's first address, and the other addresses stay. * **Tax ID:** never changed. Nothing is written when the check does not pass, when the register gives no name, or when the document is already signed. To correct a document and then sign it, place **Validate Tax IDs** before **Sign envelope**. The correction never changes the result code or the message. A corrected document still returns `found`, `found-name-mismatch` or its warning code. ## Spanish tax IDs Lookup checks Spanish tax IDs (NIF) in the census of AEAT, the Spanish tax agency. AEAT holds every NIF, not only the NIFs registered for intra-EU trade, and gives the registered name. * **Companies** are identified by the NIF alone. A wrong or empty name still gives a valid answer with the registered name. * **Natural persons**, such as self-employed workers (autónomos), have a DNI or NIE as their NIF. AEAT needs the person's name to check it. A name that AEAT accepts returns `found`. A name that belongs to another person returns `not-found`. * **Revoked NIFs** return `revoked`. **Deregistered NIFs** return `found-inactive`. ## French tax IDs Lookup checks French VAT numbers with the DGFiP, the French tax administration, which publishes every active French VAT number. * **Businesses without a VAT number**, such as micro-entrepreneurs under the franchise en base, use their SIREN as tax ID. When the SIREN belongs to an active business in Sirene, the French business register, the step returns `found-not-vat-registered`. * **Name and address:** the registered name and the structured address of the head office come from Sirene. A sole trader gets the person's name. With **Correct the party** on, both are written into the document. * **Closed companies** return `found-inactive` while their VAT number is active, and `not-found` otherwise. ## Workflow examples ### Validate the invoice customer Validate the customer's tax ID, write the registered name into the invoice, and sign it. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Lookup validate invoice customer workflow theme={"system"} > { > "name": "Lookup validate invoice customer", > "description": "Validate and correct the customer's tax ID, then sign the invoice", > "schema": "bill/invoice", > "steps": [ > { > "id": "01a0f8f1-7c00-7a10-9000-000000000001", > "name": "Validate tax ID", > "provider": "lookup.validate", > "summary": "Validating and correcting customer, up to 30 days old", > "config": { > "party": "customer", > "max_age": 30, > "correct": true > } > }, > { > "id": "01a0f8f1-7c00-7a10-9000-000000000002", > "name": "Sign envelope", > "provider": "silo.close" > } > ], > "rescue": [ > { > "id": "01a0f8f1-7c00-7a10-9000-0000000000ff", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### Stop on an unregistered customer An exception on the `not-found` code sets the state to `rejected` and stops the job, so the invoice is never signed. Every other invoice is signed as usual. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Lookup stop on unregistered customer workflow theme={"system"} > { > "name": "Lookup stop on unregistered customer", > "description": "Reject an invoice whose customer tax ID is not on the register, sign the rest", > "schema": "bill/invoice", > "steps": [ > { > "id": "01a0f8f1-7c00-7a10-9000-000000000011", > "name": "Validate tax ID", > "provider": "lookup.validate", > "summary": "Validating and correcting customer, up to 30 days old", > "config": { > "party": "customer", > "max_age": 30, > "correct": true > }, > "next": [ > { > "status": "KO", > "code": "not-found", > "stop": true, > "steps": [ > { > "id": "01a0f8f1-7c00-7a10-9000-000000000012", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `rejected`{.state .rejected}", > "config": { > "state": "rejected" > } > } > ] > } > ] > }, > { > "id": "01a0f8f1-7c00-7a10-9000-000000000013", > "name": "Sign envelope", > "provider": "silo.close" > } > ], > "rescue": [ > { > "id": "01a0f8f1-7c00-7a10-9000-0000000000ff", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### Validate a party Validate a party's tax ID and write the registered name into the party, for example before you register it with a tax authority. > [tab] Workflow > [tab] Code > > ```json Lookup validate party workflow theme={"system"} > { > "name": "Lookup validate party", > "description": "Validate and correct a party's tax ID against its register", > "schema": "org/party", > "steps": [ > { > "id": "01a0f8f1-7c00-7a10-9000-000000000021", > "name": "Validate tax ID", > "provider": "lookup.validate", > "summary": "Validating and correcting party, up to 30 days old", > "config": { > "party": "customer", > "max_age": 30, > "correct": true > } > } > ], > "rescue": [ > { > "id": "01a0f8f1-7c00-7a10-9000-0000000000ff", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Lookup app → # CFDI cancellation guide Source: https://docs.invopop.com/guides/mx-sat-cancelling Cancel CFDI invoices and payment receipts in Mexico using the SAT Mexico app. ## Introduction A CFDI stamped by the SAT can only be withdrawn by requesting its cancellation. The request carries a reason (*motivo*), and for most B2B invoices and payment receipts the receiver must accept it within three business days, otherwise it is accepted automatically. See [Cancellations in Mexico](/compliance/mexico#cancellations) for the rules. In this guide you'll learn how to cancel invoices and payment receipts (*comprobantes de pago*) issued with the [SAT Mexico app](/apps/sat-mexico). A cancellation is requested with a GOBL [status document](https://docs.gobl.org/draft-0/bill/status) that references the CFDI to cancel. ## Prerequisites * **A document issued through Invopop**: the CFDI must have been stamped by the SAT Mexico app, following the [CFDI issuing guide](/guides/mx-sat-issuing), and its `sat-uuid` stamp is needed to reference it. * **The cancellation reason**: one of the four SAT motivos listed below. * **For motivo 01**: the replacement CFDI, already issued with the original in its `preceding` list and relation type `04` (`mx-cfdi-rel-type`). ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Set up the SAT cancel CFDI workflow** > [card] [SAT cancel CFDI workflow](https://console.invopop.com/redirect/workflows/new?template=mx-sat-cancel) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Status workflow](https://console.invopop.com/redirect/workflows/new?template=empty-status) code view. > > ```json SAT cancel CFDI workflow theme={"system"} > { > "name": "SAT cancel CFDI", > "description": "Cancel a CFDI at the SAT from a status document", > "schema": "bill/status", > "steps": [ > { > "id": "5b1f2a40-8a2e-11f0-9c6e-2f6a1c0d4e11", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "6c2e3b50-8a2e-11f0-9c6e-2f6a1c0d4e11", > "name": "Cancel CFDI at SAT", > "provider": "sat-mx.cancel" > }, > { > "id": "7d3f4c60-8a2e-11f0-9c6e-2f6a1c0d4e11", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `completed`{.state .completed}", > "config": { > "state": "completed" > } > } > ], > "rescue": [ > { > "id": "8e405d70-8a2e-11f0-9c6e-2f6a1c0d4e11", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ### How it works **1. Sign envelope** The status document is signed. Only signed status documents can be cancelled. **2. Cancel CFDI at SAT** The app checks the CFDI's current status at the SAT and sends the cancellation request. The SAT acknowledgement (*acuse*) is attached to the status document as `cancel-acuse.xml`. The step then waits for the outcome, checking every minute, or every four hours while the receiver has to accept. **3. Set state** Once the SAT confirms the cancellation, the status document is set to `completed`. If the request fails or the receiver rejects it, the rescue step sets it to `error`. ## Cancel a document Create a status document of type `update` with one `rejected` line referencing the CFDI to cancel, then run the cancel workflow on it. > [!NOTE] > > The recommended approach for running jobs is to perform two steps: first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), then [create a job](/api-ref/transform/jobs/create-a-job-post). The `rejected` line must include: * `doc.code` with the document's code, and the `sat-uuid` stamp of the CFDI. * `ext` with the reason in `mx-cfdi-cancel-reason`. | Reason | Description | Replacement line | | - | - | - | | `01` | Issued with errors, with relation | Required | | `02` | Issued with errors, without relation | No | | `03` | The operation was not carried out | No | | `04` | Nominative operation included in a global invoice | No | For motivo `01`, add a second line with key `issued` that references the replacement CFDI and its `sat-uuid` stamp. Each status document cancels a single CFDI. > [accordion] Cancellation without replacement (motivo 02) > > ```json theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": ["mx-cfdi-v4"], > "type": "update", > "code": "CANCEL-0001", > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { "country": "MX", "code": "EKU9003173C9" } > }, > "lines": [ > { > "key": "rejected", > "doc": { > "code": "0001", > "stamps": [{ "prv": "sat-uuid", "val": "fbff00b3-6577-437b-b15e-cbf25be09663" }] > }, > "ext": { "mx-cfdi-cancel-reason": "02" } > } > ] > } > ``` > [accordion] Cancellation with substitution (motivo 01) > > ```json theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/status", > "$addons": ["mx-cfdi-v4"], > "type": "update", > "code": "CANCEL-0002", > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { "country": "MX", "code": "EKU9003173C9" } > }, > "lines": [ > { > "key": "rejected", > "doc": { > "code": "0001", > "stamps": [{ "prv": "sat-uuid", "val": "fbff00b3-6577-437b-b15e-cbf25be09663" }] > }, > "ext": { "mx-cfdi-cancel-reason": "01" } > }, > { > "key": "issued", > "doc": { > "code": "0002", > "stamps": [{ "prv": "sat-uuid", "val": "1c996ae9-7ebf-4bcc-a1a8-9c0289bcefc9" }] > } > } > ] > } > ``` > [!WARNING] > > A newly issued CFDI can take a few minutes to be available for cancellation. If the job fails with a message asking to wait, run it again after a few minutes. ### Outcomes The cancel step ends with one of these results, and the error codes can be used to route the workflow: | Result | Code | Meaning | | - | - | - | | OK | | The SAT cancelled the CFDI. | | KO | `cancel-rejected` | The receiver rejected the cancellation, so the CFDI remains valid. | | KO | `already-cancelled` | The CFDI was already cancelled before this status document. | | KO | `cancel-in-process` | Another cancellation request for the CFDI is still waiting for the receiver. | | KO | `not-cancellable` | The CFDI has related documents in force, such as an active payment receipt, and cannot be cancelled until they are cancelled. | ## FAQ > [accordion] Do I have to issue B2C invoices in Mexico? > > Individual CFDIs are not required for sales under MXN \$100, but those sales must still be included in the global CFDI. Often issuing all invoices will simplify your operation. > [accordion] Does Invopop support the white label (B2B2B) model in Mexico? > > Yes. We obtain the supplier's CSD (digital seal) and credentials to issue invoices in that company's name. Read more in our [white label use case](/guides/white-label). > [accordion] Can I issue a PPD invoice through Invopop? > > Yes. The `mx-cfdi-v4` addon supports both PUE and PPD on the original invoice, and Invopop also issues the subsequent payment receipts (REPs / Pago / comprobante de pago) that must be emitted as payments are collected. Model each receipt as a GOBL [`bill.Payment`](https://docs.gobl.org/draft-0/bill/payment) referencing the PPD invoices being settled and run it through the SAT issue payment workflow. See the [payment receipt example](/guides/mx-sat-issuing) in the issuing guide. > [accordion] My customer paid late and now I have to cancel and re-issue? > > Yes, if the original was issued as PUE and payment is not received by the last day of the issuance month, rule 2.7.1.32 RMF requires cancelling the original and re-issuing as PPD with `FormaPago = 99`, then issuing REPs as payments come in. This is calendar-driven, not payment-event-driven, and it surprises most non-Mexican implementations. The conservative approach is to issue PPD whenever there is any uncertainty about same-month payment. > [accordion] What happens if I miss the REP deadline? > > REPs must be issued by the fifth calendar day of the month following payment receipt (rule 2.7.1.35 RMF). Missing the deadline does not invalidate the underlying invoice, but it prevents the customer from deducting the expense in the correct period and exposes the issuer to fines. This is a recurring source of friction and the reason customers will sometimes refuse to accept cancellations from a supplier with poor REP discipline. > [accordion] How do I configure my workspace for Mexican invoicing? > > Install the SAT Mexico app (uses SW Sapien as PAC) plus the SW Sapien app for credentials. Onboard each issuing supplier with their CSD certificate and `mx-cfdi-issue-place`. Run invoices through the Issue CFDI workflow. > [accordion] Where can I find the mapping of GOBL fields to CFDI? > > The library that transforms GOBL into CFDI documents is publicly available as an open-source project and can be found at [github.com/invopop/gobl.cfdi](https://github.com/invopop/gobl.cfdi). > > For further details on how GOBL prepares data for conversion, see the [Mexico Tax Regime](https://github.com/invopop/gobl/blob/main/regimes/mx/README.md). > [accordion] The PAC keeps rejecting my invoice with a postal code error > > The most common cause is a mismatch between the receiver's postal code in the CFDI and the postal code SAT has on file for that RFC. Resolution: ask the customer for their CIF (Constancia de Situación Fiscal) and use the postal code printed there, exactly. Secondary causes: > > * The postal code is real but not yet in `c_CodigoPostal`. Use the closest catalog code from the place of issuance. > * The receiver is `XAXX010101000` or `XEXX010101000` and `DomicilioFiscalReceptor` differs from `LugarExpedicion`. They must be equal for generic RFCs. > * The branch issuing the document is configured with the matriz's postal code instead of its own. > [accordion] How do I issue invoices with the 8% tax rate in border zones? > > In Mexico, a reduced VAT rate of 8% applies to transactions in border zones (northern and southern border regions). To successfully issue invoices with this rate, **both** of the following conditions must be met: > > 1. The supplier's RFC must be enabled by the SAT to invoice with the reduced rate in border zones. > 2. Both the `mx-cfdi-issue-place` field and the customer's postal code (when included) must correspond to border zones. > > If either condition is not met, the SAT will reject the invoice with an error. > [accordion] What does the CFDI40999 error mean and how do I resolve it? > > CFDI40999 is a generic "unclassified error" returned by the SAT when no other, more specific error code applies. This error can have multiple causes. > > A common scenario is invoicing in border zones with the reduced 8% VAT rate. If you receive this error in that context, verify: > > 1. **RFC registration**: The supplier's RFC must be registered in the taxpayers registry for the appropriate border region tax incentive. Without this registration, the SAT will reject all invoices with the reduced rate. See [SAT's registration requirements and procedures](https://www.sat.gob.mx/minisitio/EstimulosFiscalesFronteraNorteSur/) for more information. > 2. **Issue place postal code**: The [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue) field must contain a postal code from a municipality within a border zone. > 3. **Tax rate**: Ensure you're applying the correct percentage (typically 8%) for the border zone. > > If the error persists after verifying these points, or you're getting this error for other reasons, please reach out to our support team. > [accordion] I'm getting the error 'Access denied, supplier XXX is not registered in this workspace'. What should I do? > > This error appears when you try to issue an invoice for a supplier (identified by its RFC) that has not been registered in your workspace. Before you can issue on a supplier's behalf, its CSD certificate must be uploaded and validated through the registration flow. > > To fix it, make sure the supplier is correctly registered by following the [Register a supplier](/guides/mx-sat-supplier#register-a-supplier) steps in the supplier registration guide. > > In **Sandbox** you may also hit this error for suppliers that were registered in the past. This is due to a change in how supplier registration is now enforced before sending invoices. To resolve it, open the supplier's Silo Entry in the Console and run the registration process again from the start, completing every step. > [accordion] Why does my customer's UsoCFDI keep getting rejected? > > The UsoCFDI must be allowed for the receiver's `RegimenFiscal`. The catalog defines the valid combinations; not every code works for every régimen. For example, D01–D10 (personal deductions) are only valid for individuals, never for legal entities. RESICO contributors (régimen 626) have a restricted set. When in doubt, default to `S01` (Sin efectos fiscales) — it is always valid but produces a non-deductible invoice for the receiver. Always ask the customer which UsoCFDI they need before issuing. > [accordion] How does Invopop handle time zones for Mexican invoices? > > By default, Invopop uses Mexico City's time zone (UTC-6) when automatically setting the [`issue_date`](https://docs.gobl.org/draft-0/bill/invoice#issue-date) and [`issue_time`](https://docs.gobl.org/draft-0/bill/invoice#issue-time) fields. However, the SAT validates these fields based on the time zone of the postal code specified in [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue). > > If the issuing location is in a different time zone, the SAT may reject the invoice with an error indicating the timestamp is in the future, as it only allows up to 5 minutes ahead of the local time. > > To avoid this, explicitly set `issue_date` and `issue_time` in your GOBL invoice using the local time zone of the issuing location when operating outside Mexico City's time zone. > [accordion] My foreign-currency invoice is failing validation > > For non-MXN invoices, `TipoCambio` must be present and use the FIX rate published by Banxico in the DOF the day prior to the operation (Article 20 CFF, Article 56 Ley Aduanera). Common errors: > > * Using the day-of rate instead of the prior day's. > * Quoting the inverse (USD per MXN instead of MXN per USD). > * Setting `TipoCambio` on an MXN invoice (it must be 1 or absent). > * Rounding inconsistently between line totals and document totals — Anexo 20 has specific rounding rules. > [accordion] Where do I find Mexico-specific GOBL documentation? > > See the [Mexico tax regime in GOBL](https://docs.gobl.org/regimes/mx) for tax categories, RFC structure, and CFDI extensions. The [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon documents required fields including UsoCFDI, RegimenFiscal, and place-of-issue. More available in our [Mexico FAQ](/faq/mexico) section *** > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Mexico → # CFDI issuing guide Source: https://docs.invopop.com/guides/mx-sat-issuing Issue CFDI documents in Mexico using the SAT Mexico app. ## Introduction The CFDI (*Comprobante Fiscal Digital por Internet*) is the standardized electronic invoicing format in Mexico, managed by the country's tax authority, the SAT (*Servicio de Administración Tributaria*). This system ensures that all fiscal documents are digitally generated, validated, and reported to SAT in compliance with national tax laws. In this guide you'll learn how to issue documents — invoices, credit notes, and payment receipts (*comprobantes de pago*) — in a supplier's name using the [SAT Mexico app](/apps/sat-mexico). For importing received invoices, see the companion guide: [Mexico: Receiving invoices](/guides/mx-sat-receiving). ## Prerequisites To issue invoices in Mexico via the SAT, you will need: * **A registered supplier**: follow the [CFDI supplier registration guide](/guides/mx-sat-supplier) to connect the SAT Mexico app and register the supplier's CSD certificate with the PAC before issuing. * **Customer Information**: * Name * Taxpayer ID (RFC - *Registro Federal de Contribuyentes*) * Address * Fiscal regime code (as defined by SAT) * CFDI use code (*Código de uso CFDI*) * **Line items**: * Quantity, unit price, and applicable tax rates * SAT product/service code (*Clave Producto-Servicio*) * **Additional requirements** * Selected invoice series * Place of issue code (*Lugar de expedición*) ## Setup Configure your Invopop workspace for CFDI invoicing by following these steps in the [Invopop Console](https://console.invopop.com): > [!NOTE] > > These instructions apply to both the sandbox and live environments. The SAT Mexico app must already be connected and configured — this is covered in the [supplier registration guide](/guides/mx-sat-supplier). Prepare a separate workflow for each document type you plan to issue: one for invoices, and one for payment receipts (*comprobantes de pago*). **1. Set up the SAT issue invoice workflow** > [card] [SAT issue invoice workflow](https://console.invopop.com/redirect/workflows/new?template=mx-sat-issue-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json SAT issue invoice workflow theme={"system"} > { > "name": "SAT issue invoice", > "description": "Issue an invoice through SAT and generate PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "3cbf8d50-a819-11ef-87b2-fd751e6d3b88", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · SAT Invoices · 000001", > "config": { > "name": "SAT Invoices", > "padding": 6, > "start": 1 > } > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "1f60a0b0-ea9f-11ee-8846-3d414f6173e4", > "name": "Send document to SAT", > "config": { > "generate_pdf": false, > "prepaid": false > }, > "provider": "sat-mx" > }, > { > "id": "7a645420-1358-11ef-af96-a18cfb3774fa", > "name": "Generate PDF", > "provider": "pdf", > "summary": "English · Letter", > "config": { > "layout": "Letter", > "logo_height": 40, > "locale": "en", > "date_format": "%Y-%m-%d" > } > }, > { > "id": "85bf20c0-1358-11ef-af96-a18cfb3774fa", > "name": "Set state", > "config": { > "state": "sent" > }, > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}" > } > ], > "rescue": [ > { > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > "name": "Set state", > "config": { > "state": "error" > }, > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}" > } > ] > } > ``` **2. Set up the SAT issue payment workflow** > [!NOTE] > > You can skip this step if you don't plan to issue payment receipts (*comprobantes de pago*) against PPD invoices. > [card] [SAT issue payment workflow](https://console.invopop.com/redirect/workflows/new?template=mx-sat-issue-payment) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Payment workflow](https://console.invopop.com/redirect/workflows/new?template=empty-payment) code view. > > ```json SAT issue payment workflow theme={"system"} > { > "name": "SAT issue payment", > "description": "Issue a payment receipt (comprobante de pago) through SAT and generate PDF", > "schema": "bill/payment", > "steps": [ > { > "id": "3cbf8d50-a819-11ef-87b2-fd751e6d3b88", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · SAT Payments · 000001", > "config": { > "name": "SAT Payments", > "padding": 6, > "start": 1 > } > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "1f60a0b0-ea9f-11ee-8846-3d414f6173e4", > "name": "Send document to SAT", > "config": { > "generate_pdf": false, > "prepaid": false > }, > "provider": "sat-mx" > }, > { > "id": "7a645420-1358-11ef-af96-a18cfb3774fa", > "name": "Generate PDF", > "provider": "pdf", > "summary": "English · Letter", > "config": { > "layout": "Letter", > "logo_height": 40, > "locale": "en", > "date_format": "%Y-%m-%d" > } > }, > { > "id": "85bf20c0-1358-11ef-af96-a18cfb3774fa", > "name": "Set state", > "config": { > "state": "sent" > }, > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}" > } > ], > "rescue": [ > { > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > "name": "Set state", > "config": { > "state": "error" > }, > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}" > } > ] > } > ``` ## Send a document > [!NOTE] > > You can complete this process through the Invopop Console or the API. We'll walk through it using the Console, but don't worry, the steps are nearly identical for the API. We'll add notes along the way to clarify any differences. The following examples are of partial [GOBL](https://docs.gobl.org) documents you can copy and paste directly into the [Invopop Console](https://console.invopop.com) or store via the API as silo entries. [GOBL Invoices](https://docs.gobl.org/draft-0/bill/invoice) sent to the SAT require the following properties in order to perform the correct normalization and validation steps. Invopop will try to assign these automatically, but we recommend defining them explicitly before upload: * `$regime` to be set to [`MX`](https://docs.gobl.org/regimes/mx) * `$addons` to include [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) > [accordion] B2B invoice (Personas Morales) > > This main type of invoice is a standard B2B invoice from a Mexican supplier to another Mexican customer. > > Notice: > > * we've added the [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon, this ensures the document will be validated using the CFDI v4 rules built into the [GOBL](https://docs.gobl.org) library, > * extensions (`ext`) fields have been used in multiple locations for fields whose values cannot be determined any other way, > * VAT will be applied at the standard rate, the percentage will be set automatically, and, > * there are no totals nor calculations, all of these will be made automatically when uploading. > > ```json SAT B2B Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "series": "XXMX", > "tax": { > "ext": { > "mx-cfdi-issue-place": "44100" > } > }, > "supplier": { > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "emails": [ > { > "addr": "esckemperugarte@example.com" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "86991", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601", > "mx-cfdi-post-code": "86991", > "mx-cfdi-use": "G01" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Standard Plan", > "price": "1000.00", > "ext": { > "mx-cfdi-prod-serv": "81112002" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "type": "standard", > "series": "XXMX", > "issue_date": "2026-07-08", > "issue_time": "08:51:26", > "currency": "MXN", > "tax": { > "ext": { > "mx-cfdi-doc-type": "I", > "mx-cfdi-issue-place": "44100", > "mx-cfdi-payment-method": "PPD" > } > }, > "supplier": { > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "emails": [ > { > "addr": "esckemperugarte@example.com" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "86991", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601", > "mx-cfdi-use": "G01" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Standard Plan", > "price": "1000.00", > "ext": { > "mx-cfdi-prod-serv": "81112002" > } > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "16.0%" > } > ], > "total": "1000.00" > } > ], > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "1000.00", > "percent": "16.0%", > "amount": "160.00" > } > ], > "amount": "160.00" > } > ], > "sum": "160.00" > }, > "tax": "160.00", > "total_with_tax": "1160.00", > "payable": "1160.00" > } > } > ``` > [accordion] B2B invoice on behalf of a third party (a cuenta de terceros) > > This invoice is used when the **issuer (supplier)** bills the customer **on behalf of another taxpayer** who is the real seller — for example **consignment** sales. The **third party** is identified on each line in the `seller` object (RFC, fiscal regime, address), while `supplier` remains the party issuing the CFDI. > > Notice: > > * the line `seller` carries the third party's tax identity and regime so SAT can relate the CFDI to **cuenta de terceros** rules, > * the [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon validates extensions on supplier, customer, and line seller, > * the minimal `tax.ext` only needs the place of issue; `gobl build` adds document type and payment method (`PPD` in the built example) like other B2B invoices, > * there are no totals in the minimal version; upload or `gobl build` will compute IVA and totals, and, > * the built example shows a consignment-style line (`Venta en consignación`) with full tax breakdown. > > ```json SAT third-party invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "series": "LMC", > "code": "002", > "issue_time": "01:42:18", > "tax": { > "ext": { > "mx-cfdi-issue-place": "26015" > } > }, > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "code": "86991" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601", > "mx-cfdi-use": "G01" > } > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Venta en consignación", > "price": "100.00", > "ext": { > "mx-cfdi-prod-serv": "50211502" > } > }, > "taxes": [ > { > "cat": "VAT", > "percent": "16.0%" > } > ], > "seller": { > "name": "XENON INDUSTRIAL ARTICLES", > "tax_id": { > "country": "MX", > "code": "XIA190128J61" > }, > "addresses": [ > { > "code": "76343" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > } > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "type": "standard", > "series": "LMC", > "code": "002", > "issue_date": "2026-07-08", > "issue_time": "01:42:18", > "currency": "MXN", > "tax": { > "ext": { > "mx-cfdi-doc-type": "I", > "mx-cfdi-issue-place": "26015", > "mx-cfdi-payment-method": "PPD" > } > }, > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "code": "86991" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601", > "mx-cfdi-use": "G01" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Venta en consignación", > "price": "100.00", > "ext": { > "mx-cfdi-prod-serv": "50211502" > } > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "percent": "16.0%" > } > ], > "total": "200.00", > "seller": { > "name": "XENON INDUSTRIAL ARTICLES", > "tax_id": { > "country": "MX", > "code": "XIA190128J61" > }, > "addresses": [ > { > "code": "76343" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > } > } > ], > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200.00", > "percent": "16.0%", > "amount": "32.00" > } > ], > "amount": "32.00" > } > ], > "sum": "32.00" > }, > "tax": "32.00", > "total_with_tax": "232.00", > "payable": "232.00" > } > } > ``` > [accordion] B2C invoice (Personas Físicas) > > This is a standard B2C invoice from a Mexican supplier to a Mexican physical person with tax details, but no specific tax declaration requirements. This would be for a larger sale when the "Simplified" and "Global invoice" do not apply. > > In addition to the observations for regular B2B invoices, note in the customer: > > * the presence of an RFC in the same format as for companies, and, > * the [`mx-cfdi-fiscal-regime`](https://docs.gobl.org/addons/mx-cfdi-v4#fiscal-regime-code) and [`mx-cfdi-use`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-use-code) extensions have been set to `616` and `S01` respectively reflecting that the customer is not subject to tax. > > It is important in Mexico to ensure the correct Fiscal Regime and CFDI Use codes are set correctly as the SAT will check these details and reject documents with unexpected combinations. > > ```json SAT B2C Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "series": "XXMX", > "tax": { > "ext": { > "mx-cfdi-issue-place": "44100" > } > }, > "supplier": { > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "emails": [ > { > "addr": "esckemperugarte@example.com" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "LUIS IAN ÑUZCO", > "tax_id": { > "country": "MX", > "code": "IAÑL750210963" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "85256", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "616", > "mx-cfdi-use": "S01" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Standard Plan", > "price": "500.00", > "ext": { > "mx-cfdi-prod-serv": "81112002" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "type": "standard", > "series": "XXMX", > "issue_date": "2026-07-08", > "issue_time": "08:51:26", > "currency": "MXN", > "tax": { > "ext": { > "mx-cfdi-doc-type": "I", > "mx-cfdi-issue-place": "44100", > "mx-cfdi-payment-method": "PPD" > } > }, > "supplier": { > "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43", > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "emails": [ > { > "addr": "esckemperugarte@example.com" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "LUIS IAN ÑUZCO", > "tax_id": { > "country": "MX", > "code": "IAÑL750210963" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "85256", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "616", > "mx-cfdi-use": "S01" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Standard Plan", > "price": "500.00", > "ext": { > "mx-cfdi-prod-serv": "81112002" > } > }, > "sum": "500.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "16.0%" > } > ], > "total": "500.00" > } > ], > "totals": { > "sum": "500.00", > "total": "500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "500.00", > "percent": "16.0%", > "amount": "80.00" > } > ], > "amount": "80.00" > } > ], > "sum": "80.00" > }, > "tax": "80.00", > "total_with_tax": "580.00", > "payable": "580.00" > } > } > ``` > [accordion] Simplified invoice (Factura al público en general) > > In Mexico, a General Public Invoice (Factura al Público en General) is a type of tax document issued to record sales made to customers who do not request an invoice with a specific Federal Taxpayer Registry (RFC) number. Instead, a generic RFC is used to identify the recipient: > > * XAXX010101000 for domestic transactions > * XEXX010101000 for foreign transactions > > This type of invoice is mandatory for businesses that sell to the general public and do not issue individual invoices for each transaction. > > To create this type of invoice in Invopop: > > * the `customer` field is not required, > * the `$tags` field is used to identify this as a simplified invoice. > > ```json SAT Mexico simplified invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "$tags": [ > "simplified" > ], > "series": "TEST", > "code": "00001", > "tax": { > "ext": { > "mx-cfdi-issue-place": "44100" > } > }, > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Cobro por tarjetas", > "price": "10.00", > "ext": { > "mx-cfdi-prod-serv": "84141602" > } > }, > "discounts": [ > { > "percent": "10.0%", > "amount": "1.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Porcentaje sobre GMV", > "price": "10.00", > "unit": "service", > "ext": { > "mx-cfdi-prod-serv": "80141628" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "terms": { > "notes": "Condiciones de pago" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "TEST", > "code": "00001", > "issue_date": "2026-07-08", > "issue_time": "08:51:26", > "currency": "MXN", > "tax": { > "ext": { > "mx-cfdi-doc-type": "I", > "mx-cfdi-issue-place": "44100", > "mx-cfdi-payment-method": "PPD" > } > }, > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Cobro por tarjetas", > "price": "10.00", > "ext": { > "mx-cfdi-prod-serv": "84141602" > } > }, > "sum": "10.00", > "discounts": [ > { > "percent": "10.0%", > "amount": "1.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "16.0%" > } > ], > "total": "9.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Porcentaje sobre GMV", > "price": "10.00", > "unit": "service", > "ext": { > "mx-cfdi-prod-serv": "80141628" > } > }, > "sum": "10.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "16.0%" > } > ], > "total": "10.00" > } > ], > "payment": { > "terms": { > "notes": "Condiciones de pago" > } > }, > "totals": { > "sum": "19.00", > "total": "19.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "19.00", > "percent": "16.0%", > "amount": "3.04" > } > ], > "amount": "3.04" > } > ], > "sum": "3.04" > }, > "tax": "3.04", > "total_with_tax": "22.04", > "payable": "22.04" > } > } > ``` > [accordion] Global invoice > > The Global Invoice is used to group a set of invoices into a single CFDI document. > > Notice: > > * the `$tags` field has been used to identify this as a global invoice, > * each `line` has a `ref` which is used to identify the invoice that it belongs to, > * the [`tax.ext.mx-cfdi-global-month`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-global-month), [`mx-cfdi-global-period`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-global-period), and [`mx-cfdi-global-year`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-global-year) fields have been used to identify the global invoice period. > > ```json SAT Mexico global invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "mx-cfdi-v4" > ], > "$tags": [ > "global" > ], > "series": "GLOBAL", > "code": "0001", > "tax": { > "ext": { > "mx-cfdi-global-month": "03", > "mx-cfdi-global-period": "04", > "mx-cfdi-global-year": "2025", > "mx-cfdi-issue-place": "44100" > } > }, > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "ref": "SALE1", > "name": "Sale 1", > "price": "10.00" > }, > "discounts": [ > { > "percent": "10.0%" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > }, > { > "quantity": "1", > "item": { > "ref": "SALE2", > "name": "Sale 2", > "price": "20.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "key": "cash", > "description": "Prepaid", > "percent": "100%" > } > ] > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "$tags": [ > "global" > ], > "type": "standard", > "series": "GLOBAL", > "code": "0001", > "issue_date": "2026-07-08", > "issue_time": "08:51:26", > "currency": "MXN", > "tax": { > "ext": { > "mx-cfdi-doc-type": "I", > "mx-cfdi-global-month": "03", > "mx-cfdi-global-period": "04", > "mx-cfdi-global-year": "2025", > "mx-cfdi-issue-place": "44100", > "mx-cfdi-payment-method": "PUE" > } > }, > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "ref": "SALE1", > "name": "Sale 1", > "price": "10.00" > }, > "sum": "10.00", > "discounts": [ > { > "percent": "10.0%", > "amount": "1.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "16.0%" > } > ], > "total": "9.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "ref": "SALE2", > "name": "Sale 2", > "price": "20.00" > }, > "sum": "20.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "16.0%" > } > ], > "total": "20.00" > } > ], > "payment": { > "advances": [ > { > "key": "cash", > "description": "Prepaid", > "percent": "100%", > "amount": "33.64", > "ext": { > "mx-cfdi-payment-means": "01" > } > } > ] > }, > "totals": { > "sum": "29.00", > "total": "29.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "29.00", > "percent": "16.0%", > "amount": "4.64" > } > ], > "amount": "4.64" > } > ], > "sum": "4.64" > }, > "tax": "4.64", > "total_with_tax": "33.64", > "payable": "33.64", > "advance": "33.64", > "due": "0.00" > } > } > ``` > [accordion] Credit note > > The credit note (*nota de crédito*) is used to correct, cancel, or refund a previously issued invoice. > > Notice: > > * the `type` field has been set to `credit-note`, > * the `preceding` field has been used to identify the invoice that is being corrected. > > ```json SAT Mexico credit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "mx-cfdi-v4" > ], > "type": "credit-note", > "series": "CN", > "code": "0003", > "preceding": [ > { > "series": "TEST", > "code": "0001", > "issue_date": "2023-07-10", > "stamps": [ > { > "prv": "sat-uuid", > "val": "1fac4464-1111-0000-1111-cd37179db12e" > } > ] > } > ], > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "615" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "86991", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "624", > "mx-cfdi-use": "G01" > } > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Cigarros", > "ext": { > "mx-cfdi-prod-serv": "50211502" > }, > "price": "100.1010", > "unit": "piece" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "terms": { > "notes": "Pago a 30 días." > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "type": "credit-note", > "series": "CN", > "code": "0003", > "issue_date": "2026-07-08", > "issue_time": "08:53:24", > "currency": "MXN", > "preceding": [ > { > "issue_date": "2023-07-10", > "series": "TEST", > "code": "0001", > "stamps": [ > { > "prv": "sat-uuid", > "val": "1fac4464-1111-0000-1111-cd37179db12e" > } > ] > } > ], > "tax": { > "ext": { > "mx-cfdi-doc-type": "E", > "mx-cfdi-issue-place": "44100", > "mx-cfdi-payment-method": "PPD", > "mx-cfdi-rel-type": "01" > } > }, > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "615" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "86991", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "624", > "mx-cfdi-use": "G01" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Cigarros", > "price": "100.1010", > "unit": "piece", > "ext": { > "mx-cfdi-prod-serv": "50211502" > } > }, > "sum": "200.2020", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "16.0%" > } > ], > "total": "200.2020" > } > ], > "payment": { > "terms": { > "notes": "Pago a 30 días." > } > }, > "totals": { > "sum": "200.20", > "total": "200.20", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "200.20", > "percent": "16.0%", > "amount": "32.03" > } > ], > "amount": "32.03" > } > ], > "sum": "32.03" > }, > "tax": "32.03", > "total_with_tax": "232.23", > "payable": "232.23" > } > } > ``` > [accordion] Payment receipt (Comprobante de Pago) > > This is a payment receipt (*comprobante de pago*, or REP) issued when collecting a payment against one or more invoices that were issued with the PPD (*Pago en Parcialidades o Diferido*) payment method. It is modelled as a GOBL [`bill.Payment`](https://docs.gobl.org/draft-0/bill/payment) document rather than an invoice, and must be processed through the SAT issue payment workflow. > > Notice: > > * the `$schema` is set to `bill/payment` and the `type` to `receipt`, > * each `lines[].document` references an invoice being settled by this payment, identified by its `series`, `code`, and the SAT UUID (`sat-uuid`) stamp of the original CFDI, > * the amounts on each line follow a strict convention: > * **`payable`** is always the **total** amount payable on the referenced invoice across **all** installments, > * **`advances`** is the **total** already paid in **previous** installments (omit it, or set `0`, on the first installment), > * **`amount`** is the portion of the invoice settled by **this** payment, > * **`installment`** is the ordinal of this payment against the invoice, > * **`due`** is calculated **automatically** from the other fields; you don't need to set it yourself, > * the third line (invoice `LMC` `0023`) illustrates a later installment that doesn't fully settle the invoice: `payable` `1000.00`, `advances` `500.00` already paid, `amount` `250.00` paid now, leaving a positive `due` of `250.00` for a future receipt, > * lines carry the tax breakdown of the invoice being paid, including retained taxes, > * the single `methods` entry describes how the payment was received; `gobl build` maps the `credit-transfer` key to the [`mx-cfdi-payment-means`](https://docs.gobl.org/addons/mx-cfdi-v4#payment-means) extension `03`, > * other extensions that are set automatically on running `gobl build`: the document [`mx-cfdi-doc-type`](https://docs.gobl.org/addons/mx-cfdi-v4#document-type) is set to `P` and the customer's [`mx-cfdi-use`](https://docs.gobl.org/addons/mx-cfdi-v4#cfdi-use-code) to `CP01`, > * this particular example also carries a `preceding` block, which implies that this receipt **substitutes** one previously issued — `gobl build` fills in the [`mx-cfdi-rel-type`](https://docs.gobl.org/addons/mx-cfdi-v4#relation-type) extension `04` (*Sustitución de los CFDI previos*) (omit the `preceding` block when the receipt is not a replacement), and, > * there are no totals in the minimal version; running `gobl build` calculates the line taxes, the payment total, and all balances. > > ```json SAT Payment (Comprobante de Pago) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "type": "receipt", > "series": "P", > "code": "0040", > "currency": "MXN", > "ext": { > "mx-cfdi-issue-place": "44100" > }, > "preceding": [ > { > "issue_date": "2023-05-31", > "series": "P", > "code": "0039", > "stamps": [ > { > "prv": "sat-uuid", > "val": "3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b" > } > ] > } > ], > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "emails": [ > { > "addr": "esckemperugarte@example.com" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "86991", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "lines": [ > { > "document": { > "issue_date": "2023-05-10", > "series": "LMC", > "code": "0021", > "stamps": [ > { > "prv": "sat-uuid", > "val": "0f4d2a6e-8b1c-4d3e-9f5a-7c6b5a4d3e2f" > } > ] > }, > "installment": 1, > "payable": "9533.33", > "amount": "9533.33", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "10000.00", > "percent": "16.0%" > } > ] > }, > { > "code": "RVAT", > "retained": true, > "rates": [ > { > "base": "10000.00", > "percent": "10.6667%" > } > ] > }, > { > "code": "ISR", > "retained": true, > "rates": [ > { > "base": "10000.00", > "percent": "10%" > } > ] > } > ] > } > }, > { > "document": { > "issue_date": "2023-05-20", > "series": "LMC", > "code": "0022", > "stamps": [ > { > "prv": "sat-uuid", > "val": "5b9c8d7e-6f5a-4b3c-8d2e-1f0a9b8c7d6e" > } > ] > }, > "installment": 1, > "payable": "1660.00", > "amount": "1660.00", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "1000.00", > "percent": "16.0%" > }, > { > "base": "500.00" > } > ] > } > ] > } > }, > { > "document": { > "issue_date": "2023-03-15", > "series": "LMC", > "code": "0023", > "stamps": [ > { > "prv": "sat-uuid", > "val": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d" > } > ] > }, > "installment": 3, > "payable": "1000.00", > "advances": "500.00", > "amount": "250.00" > } > ], > "methods": [ > { > "date": "2023-05-30", > "key": "credit-transfer", > "ref": "MX0123456789", > "amount": "11443.33" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "MX", > "$addons": [ > "mx-cfdi-v4" > ], > "type": "receipt", > "series": "P", > "code": "0040", > "issue_date": "2026-07-23", > "issue_time": "04:13:11", > "currency": "MXN", > "ext": { > "mx-cfdi-doc-type": "P", > "mx-cfdi-issue-place": "44100" > }, > "preceding": [ > { > "issue_date": "2023-05-31", > "series": "P", > "code": "0039", > "stamps": [ > { > "prv": "sat-uuid", > "val": "3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b" > } > ], > "ext": { > "mx-cfdi-rel-type": "04" > } > } > ], > "supplier": { > "name": "ESCUELA KEMPER URGATE", > "tax_id": { > "country": "MX", > "code": "EKU9003173C9" > }, > "addresses": [ > { > "street": "Julia Navarrete No. 1430", > "locality": "Guadalajara", > "region": "Jalisco", > "code": "44100", > "country": "MX" > } > ], > "emails": [ > { > "addr": "esckemperugarte@example.com" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601" > } > }, > "customer": { > "name": "UNIVERSIDAD ROBOTICA ESPAÑOLA", > "tax_id": { > "country": "MX", > "code": "URE180429TM6" > }, > "addresses": [ > { > "locality": "Ciudad de Mexico", > "region": "Ciudad de Mexico", > "code": "86991", > "country": "MX" > } > ], > "ext": { > "mx-cfdi-fiscal-regime": "601", > "mx-cfdi-use": "CP01" > } > }, > "lines": [ > { > "i": 1, > "document": { > "issue_date": "2023-05-10", > "series": "LMC", > "code": "0021", > "stamps": [ > { > "prv": "sat-uuid", > "val": "0f4d2a6e-8b1c-4d3e-9f5a-7c6b5a4d3e2f" > } > ] > }, > "installment": 1, > "payable": "9533.33", > "amount": "9533.33", > "due": "0.00", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "10000.00", > "percent": "16.0%", > "amount": "1600.00" > } > ], > "amount": "1600.00" > }, > { > "code": "RVAT", > "retained": true, > "rates": [ > { > "base": "10000.00", > "percent": "10.6667%", > "amount": "1066.67" > } > ], > "amount": "1066.67" > }, > { > "code": "ISR", > "retained": true, > "rates": [ > { > "base": "10000.00", > "percent": "10%", > "amount": "1000.00" > } > ], > "amount": "1000.00" > } > ], > "sum": "1600.00", > "retained": "2066.67" > } > }, > { > "i": 2, > "document": { > "issue_date": "2023-05-20", > "series": "LMC", > "code": "0022", > "stamps": [ > { > "prv": "sat-uuid", > "val": "5b9c8d7e-6f5a-4b3c-8d2e-1f0a9b8c7d6e" > } > ] > }, > "installment": 1, > "payable": "1660.00", > "amount": "1660.00", > "due": "0.00", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "base": "1000.00", > "percent": "16.0%", > "amount": "160.00" > }, > { > "base": "500.00", > "amount": "0.00" > } > ], > "amount": "160.00" > } > ], > "sum": "160.00" > } > }, > { > "i": 3, > "document": { > "issue_date": "2023-03-15", > "series": "LMC", > "code": "0023", > "stamps": [ > { > "prv": "sat-uuid", > "val": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d" > } > ] > }, > "installment": 3, > "payable": "1000.00", > "advances": "500.00", > "amount": "250.00", > "due": "250.00" > } > ], > "methods": [ > { > "date": "2023-05-30", > "key": "credit-transfer", > "ref": "MX0123456789", > "amount": "11443.33", > "ext": { > "mx-cfdi-payment-means": "03" > } > } > ], > "total": "11443.33" > } > ``` ## FAQ > [accordion] Do I have to issue B2C invoices in Mexico? > > Individual CFDIs are not required for sales under MXN \$100, but those sales must still be included in the global CFDI. Often issuing all invoices will simplify your operation. > [accordion] Does Invopop support the white label (B2B2B) model in Mexico? > > Yes. We obtain the supplier's CSD (digital seal) and credentials to issue invoices in that company's name. Read more in our [white label use case](/guides/white-label). > [accordion] Can I issue a PPD invoice through Invopop? > > Yes. The `mx-cfdi-v4` addon supports both PUE and PPD on the original invoice, and Invopop also issues the subsequent payment receipts (REPs / Pago / comprobante de pago) that must be emitted as payments are collected. Model each receipt as a GOBL [`bill.Payment`](https://docs.gobl.org/draft-0/bill/payment) referencing the PPD invoices being settled and run it through the SAT issue payment workflow. See the [payment receipt example](/guides/mx-sat-issuing) in the issuing guide. > [accordion] My customer paid late and now I have to cancel and re-issue? > > Yes, if the original was issued as PUE and payment is not received by the last day of the issuance month, rule 2.7.1.32 RMF requires cancelling the original and re-issuing as PPD with `FormaPago = 99`, then issuing REPs as payments come in. This is calendar-driven, not payment-event-driven, and it surprises most non-Mexican implementations. The conservative approach is to issue PPD whenever there is any uncertainty about same-month payment. > [accordion] What happens if I miss the REP deadline? > > REPs must be issued by the fifth calendar day of the month following payment receipt (rule 2.7.1.35 RMF). Missing the deadline does not invalidate the underlying invoice, but it prevents the customer from deducting the expense in the correct period and exposes the issuer to fines. This is a recurring source of friction and the reason customers will sometimes refuse to accept cancellations from a supplier with poor REP discipline. > [accordion] How do I configure my workspace for Mexican invoicing? > > Install the SAT Mexico app (uses SW Sapien as PAC) plus the SW Sapien app for credentials. Onboard each issuing supplier with their CSD certificate and `mx-cfdi-issue-place`. Run invoices through the Issue CFDI workflow. > [accordion] Where can I find the mapping of GOBL fields to CFDI? > > The library that transforms GOBL into CFDI documents is publicly available as an open-source project and can be found at [github.com/invopop/gobl.cfdi](https://github.com/invopop/gobl.cfdi). > > For further details on how GOBL prepares data for conversion, see the [Mexico Tax Regime](https://github.com/invopop/gobl/blob/main/regimes/mx/README.md). > [accordion] The PAC keeps rejecting my invoice with a postal code error > > The most common cause is a mismatch between the receiver's postal code in the CFDI and the postal code SAT has on file for that RFC. Resolution: ask the customer for their CIF (Constancia de Situación Fiscal) and use the postal code printed there, exactly. Secondary causes: > > * The postal code is real but not yet in `c_CodigoPostal`. Use the closest catalog code from the place of issuance. > * The receiver is `XAXX010101000` or `XEXX010101000` and `DomicilioFiscalReceptor` differs from `LugarExpedicion`. They must be equal for generic RFCs. > * The branch issuing the document is configured with the matriz's postal code instead of its own. > [accordion] How do I issue invoices with the 8% tax rate in border zones? > > In Mexico, a reduced VAT rate of 8% applies to transactions in border zones (northern and southern border regions). To successfully issue invoices with this rate, **both** of the following conditions must be met: > > 1. The supplier's RFC must be enabled by the SAT to invoice with the reduced rate in border zones. > 2. Both the `mx-cfdi-issue-place` field and the customer's postal code (when included) must correspond to border zones. > > If either condition is not met, the SAT will reject the invoice with an error. > [accordion] What does the CFDI40999 error mean and how do I resolve it? > > CFDI40999 is a generic "unclassified error" returned by the SAT when no other, more specific error code applies. This error can have multiple causes. > > A common scenario is invoicing in border zones with the reduced 8% VAT rate. If you receive this error in that context, verify: > > 1. **RFC registration**: The supplier's RFC must be registered in the taxpayers registry for the appropriate border region tax incentive. Without this registration, the SAT will reject all invoices with the reduced rate. See [SAT's registration requirements and procedures](https://www.sat.gob.mx/minisitio/EstimulosFiscalesFronteraNorteSur/) for more information. > 2. **Issue place postal code**: The [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue) field must contain a postal code from a municipality within a border zone. > 3. **Tax rate**: Ensure you're applying the correct percentage (typically 8%) for the border zone. > > If the error persists after verifying these points, or you're getting this error for other reasons, please reach out to our support team. > [accordion] I'm getting the error 'Access denied, supplier XXX is not registered in this workspace'. What should I do? > > This error appears when you try to issue an invoice for a supplier (identified by its RFC) that has not been registered in your workspace. Before you can issue on a supplier's behalf, its CSD certificate must be uploaded and validated through the registration flow. > > To fix it, make sure the supplier is correctly registered by following the [Register a supplier](/guides/mx-sat-supplier#register-a-supplier) steps in the supplier registration guide. > > In **Sandbox** you may also hit this error for suppliers that were registered in the past. This is due to a change in how supplier registration is now enforced before sending invoices. To resolve it, open the supplier's Silo Entry in the Console and run the registration process again from the start, completing every step. > [accordion] Why does my customer's UsoCFDI keep getting rejected? > > The UsoCFDI must be allowed for the receiver's `RegimenFiscal`. The catalog defines the valid combinations; not every code works for every régimen. For example, D01–D10 (personal deductions) are only valid for individuals, never for legal entities. RESICO contributors (régimen 626) have a restricted set. When in doubt, default to `S01` (Sin efectos fiscales) — it is always valid but produces a non-deductible invoice for the receiver. Always ask the customer which UsoCFDI they need before issuing. > [accordion] How does Invopop handle time zones for Mexican invoices? > > By default, Invopop uses Mexico City's time zone (UTC-6) when automatically setting the [`issue_date`](https://docs.gobl.org/draft-0/bill/invoice#issue-date) and [`issue_time`](https://docs.gobl.org/draft-0/bill/invoice#issue-time) fields. However, the SAT validates these fields based on the time zone of the postal code specified in [`mx-cfdi-issue-place`](https://docs.gobl.org/addons/mx-cfdi-v4#place-of-issue). > > If the issuing location is in a different time zone, the SAT may reject the invoice with an error indicating the timestamp is in the future, as it only allows up to 5 minutes ahead of the local time. > > To avoid this, explicitly set `issue_date` and `issue_time` in your GOBL invoice using the local time zone of the issuing location when operating outside Mexico City's time zone. > [accordion] My foreign-currency invoice is failing validation > > For non-MXN invoices, `TipoCambio` must be present and use the FIX rate published by Banxico in the DOF the day prior to the operation (Article 20 CFF, Article 56 Ley Aduanera). Common errors: > > * Using the day-of rate instead of the prior day's. > * Quoting the inverse (USD per MXN instead of MXN per USD). > * Setting `TipoCambio` on an MXN invoice (it must be 1 or absent). > * Rounding inconsistently between line totals and document totals — Anexo 20 has specific rounding rules. > [accordion] Where do I find Mexico-specific GOBL documentation? > > See the [Mexico tax regime in GOBL](https://docs.gobl.org/regimes/mx) for tax categories, RFC structure, and CFDI extensions. The [`mx-cfdi-v4`](https://docs.gobl.org/addons/mx-cfdi-v4) addon documents required fields including UsoCFDI, RegimenFiscal, and place-of-issue. More available in our [Mexico FAQ](/faq/mexico) section *** > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Mexico → # Digital platform reporting for Mexico Source: https://docs.invopop.com/guides/mx-sat-platform-reporting Expose the operations carried out through a digital platform to the SAT via a hosted, access-controlled portal. > [!WARNING] > > Digital platform reporting is in active development. The action names and the portal layout may change. If you operate a platform in Mexico, talk to us before enabling it in production. Operators of digital platforms ("plataformas digitales tecnológicas") that facilitate sales or services for third parties must keep, and make available to the SAT, the information of every operation carried out through them. This is a **separate obligation from CFDI issuance** — the platform itself reports the operations, regardless of who issued the underlying invoice. This feature lets you register a party as a platform reporter, record each operation with the legally required fields, and hand the SAT a private URL where it can browse, filter, and export those operations on demand. For the regulatory background — Article 30-B of the CFF (2026 RMF) and the operation-information requirements of rule 2.9.21 — see the [Mexico compliance page](/compliance/mexico). ## How it works There are three provider actions, in the `platforms` namespace, plus a SAT-facing portal: | Step | Action | What it does | | - | - | - | | **Register** | `sat-mx.platforms.register` | Enrolls a party for platform reporting and produces the portal URL + access credentials. | | **Record** | `sat-mx.platforms.record` | Files a single operation (invoice / CFDI) with the required fields, ready for inspection. | | **Unregister** | `sat-mx.platforms.unregister` | Stops accepting new operations while keeping the portal and its history available. | The typical lifecycle is: **register the party once → record every operation as it happens → share the portal URL with the SAT**. The SAT logs in whenever it needs to inspect the operations. If the party stops reporting, you unregister it; the historical data stays accessible. ## Recorded fields Each recorded operation captures the fields required by rule 2.9.21, section I, extracted automatically from the GOBL document: | # | Field | Source | Required | | - | - | - | - | | a | Tipo de servicio (service type) | Distinct line-item descriptions (capped at the first three, with "+N más") | Yes | | b | RFC del comprador (buyer tax ID) | Customer `tax_id.code`, when present | When known | | c | Monto sin IVA (amount before VAT) | Invoice totals | Yes | | d | IVA (VAT) | Invoice totals | Yes | | e | Monto con IVA (amount incl. VAT) | Invoice totals | Yes | | f | Folio fiscal (CFDI UUID) | The SAT stamp (`sat-uuid`); falls back to the invoice number when there is no CFDI | When available | | g | Forma de pago (payment method) | The Mexican `FormaPago` (`mx-cfdi-payment-means`) when present, otherwise the GOBL payment instruction key | Yes | > [!NOTE] > > Fields **b** and **f** are conditional in the rule itself — a sale to público en general has no buyer RFC, and a non-CFDI operation has no folio fiscal. The recording action only rejects an operation when one of the always-required totals (c, d, e), the service type, or the payment method is missing. The feature does **not** restrict by country or tax regime: a foreign operator (for example, a German company operating in Mexico) can be registered and reported on just the same. ## Registering a platform Run `sat-mx.platforms.register` against the operator's party. It enrolls the party, generates an HMAC-signed portal URL, and writes the link and credentials to the party's metadata so you can retrieve and re-share them at any time. The action returns, and stores on the party: * **URL** — the signed portal address to give to the SAT. * **Usuario** — the operator's RFC. * **Secreto** — the access secret (shown so you can share it; re-running register keeps the same secret). ### How it works **1. Set state → processing** Marks the silo entry as "Processing". **2. Sign envelope** Closes (signs) the party envelope so it can be processed. **3. Register party for platform reporting** Enrolls the party, signs the portal URL, and stores the link + credentials on the party metadata. **4. Set state → registered** Marks the silo entry as "Registered". > [card] [SAT register platform workflow](https://console.invopop.com/redirect/workflows/new?template=mx-sat-platforms-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SAT register platform for reporting workflow theme={"system"} > { > "name": "SAT register platform for reporting", > "description": "Enroll a party for digital platform reporting in Mexico and generate the SAT portal URL and credentials", > "schema": "org/party", > "steps": [ > { > "id": "a1000000-0001-11f1-a000-000000000001", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "a1000000-0001-11f1-a000-000000000002", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "a1000000-0001-11f1-a000-000000000003", > "name": "Register platform with SAT", > "provider": "sat-mx.platforms.register" > }, > { > "id": "a1000000-0001-11f1-a000-000000000004", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "a1000000-0001-11f1-a000-000000000099", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Recording operations Wire `sat-mx.platforms.record` as the workflow for the `bill/invoice` documents that flow through the platform. The action resolves the supplier from the invoice, extracts the required fields, and files the operation against that platform's portal. Recording is **idempotent on the invoice**: re-running the workflow for the same document updates the existing row instead of creating a duplicate. If the platform has been unregistered, new operations are rejected. ### How it works **1. Set state → processing** Marks the silo entry as "Processing". **2. Sign envelope** Closes (signs) the invoice envelope so it can be processed. **3. Record operation for reporting** Extracts the rule 2.9.21 fields and files the operation; errors if a required field is missing. **4. Set state → sent** Marks the silo entry as "Sent". > [card] [SAT record operation workflow](https://console.invopop.com/redirect/workflows/new?template=mx-sat-platforms-record) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json SAT record operation for reporting workflow theme={"system"} > { > "name": "SAT record operation for reporting", > "description": "File a single sale through the digital platform portal for SAT reporting in Mexico", > "schema": "bill/invoice", > "steps": [ > { > "id": "a2000000-0002-11f1-a000-000000000001", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "a2000000-0002-11f1-a000-000000000002", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "a2000000-0002-11f1-a000-000000000003", > "name": "Record operation for SAT", > "provider": "sat-mx.platforms.record" > }, > { > "id": "a2000000-0002-11f1-a000-000000000004", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "a2000000-0002-11f1-a000-000000000099", > "name": "Set State", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!NOTE] > > An operation can only be recorded against a party that has been registered first. The record action resolves the platform from the invoice's supplier — register the supplier's party before sending it any operations. ## The SAT portal The portal is the SAT-facing side of the feature. It needs no Invopop account: the SAT opens the signed URL from the register step and authenticates with the **Usuario** (RFC) and **Secreto**. Once logged in, the SAT sees a paginated table of every recorded operation for that platform, with the fields above, and can: * **Filter** by buyer RFC and by a date range. Filtering and pagination run server-side, so the table stays fast over very large histories. * **Export to CSV** — the full, filtered result set streams as a download, with no row-count ceiling. GET `//?sig=` — the signed portal entry point (login).\ GET `///sales` — the filterable, paginated operations table.\ GET `///sales.csv` — a streaming CSV export of the current filter. The session is a short-lived signed cookie; logging out (or letting it expire) returns the SAT to the login screen for the same signed link. ## Unregistering When a party should no longer accept new operations, run `sat-mx.platforms.unregister`. New `record` calls are rejected from that point on, **but the portal URL and secret keep working** so the SAT can still inspect everything filed up to then. ### How it works **1. Set state → processing** Marks the silo entry as "Processing". **2. Unregister party from platform reporting** Stops accepting new operations; preserves portal access and history. **3. Set state → void** Marks the silo entry as "Void". > [card] [SAT unregister platform workflow](https://console.invopop.com/redirect/workflows/new?template=mx-sat-platforms-unregister) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SAT unregister platform for reporting workflow theme={"system"} > { > "name": "SAT unregister platform for reporting", > "description": "Stop accepting new operations for a platform while keeping the SAT portal and its history available", > "schema": "org/party", > "steps": [ > { > "id": "a3000000-0003-11f1-a000-000000000001", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "a3000000-0003-11f1-a000-000000000002", > "name": "Unregister platform with SAT", > "provider": "sat-mx.platforms.unregister" > }, > { > "id": "a3000000-0003-11f1-a000-000000000003", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "a3000000-0003-11f1-a000-000000000099", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` To resume reporting for the party, register it again — the existing portal URL and secret are reused. # CFDI receiving invoices guide Source: https://docs.invopop.com/guides/mx-sat-receiving Import received CFDI documents from Mexico's SAT into your Invopop workspace. > [!WARNING] > > This guide uses the [SW Sapien app](/apps/sw-sapien), which is not available by default. Contact us if you are interested in using it. ## Introduction The SAT (*Servicio de Administración Tributaria*) provides mechanisms for bulk downloading CFDI (*Comprobante Fiscal Digital por Internet*) documents, both issued and received. Importing these documents into Invopop lets you convert them to [GOBL](https://docs.gobl.org) format and take advantage of processing capabilities such as accounts payable workflows, PDF generation, and integrations with external systems. This guide walks you through configuring your Invopop workspace to automatically import **received** invoices from SAT on a recurring schedule. The process uses three apps working together: * **[Cron](/apps/cron):** Schedules the import workflow to run automatically at a regular interval (*e.g.*, daily). * **[SW Sapien](/apps/sw-sapien):** Downloads CFDIs in bulk from SAT through [SW Sapien's](https://sw.com.mx/) Efisco service, a trusted third-party provider that handles SAT authentication. * **[SAT Mexico](/apps/sat-mexico):** Converts CFDI XML documents to GOBL format. > [!NOTE] > > The SW Sapien app also supports importing *issued* invoices. See the [SW Sapien app documentation](/apps/sw-sapien) for configuration details. ## Prerequisites Before you begin, make sure you have: * An **Invopop workspace**. See the [quickstart guide](/get-started/quickstart) if you need to create one. * An **SW Sapien Efisco account** with API credentials. Visit [sw.com.mx](https://sw.com.mx/) to create an account and obtain your API token. * The **RFC** (*Registro Federal de Contribuyentes*) of the entity whose received invoices you want to import. * The entity's **e.firma (FIEL)** certificate. This digital certificate issued by SAT is required to authorize bulk CFDI downloads on behalf of the entity. ## How it works The import process follows three main stages: 1. **Scheduling:** The [Cron app](/apps/cron) creates a job for the import workflow at each configured interval, passing the time window (`from` and `upto`) to process. 2. **Downloading:** Each import job runs the [SW Sapien app](/apps/sw-sapien) to request CFDIs from SAT via Efisco for the given time window. Once the download is ready, it uploads each CFDI file and creates a conversion job. 3. **Converting:** Each conversion job runs the [SAT Mexico app's](/apps/sat-mexico) import action to convert the CFDI XML into GOBL format. ## Setup Configure your Invopop workspace for receiving CFDI imports by following these steps in the [Invopop Console](https://console.invopop.com): **1. Connect the SAT Mexico app** Navigate to **Configuration** → **Apps**, locate **SAT Mexico** in the app discovery list, and click **Connect**. > [!TIP] > > If you already use the SAT Mexico app for issuing invoices, you can skip this step. The same app handles both sending and importing. **2. Connect the SW Sapien app** In the same **Apps** section, locate **SW Sapien** and click **Connect**. The app will move to the "Enabled Apps" section. Next, click **Configure** and enter your SW Sapien API credentials: * **API Token**: Your SW Sapien Efisco API token. > [!NOTE] > > You can obtain your API token from the [SW Sapien portal](https://portal.sw.com.mx/) under **Configuración** → **Credenciales de acceso**. **3. Connect the Cron app** Still in the **Apps** section, locate **Cron** and click **Connect**. No additional configuration is needed at this stage. **4. Set up the CFDI Import Workflow** This workflow converts individual CFDI documents to GOBL format and validates them with the SAT. It will be triggered automatically for each downloaded CFDI. > [card] [SAT import CFDI workflow](https://console.invopop.com/redirect/workflows/new?template=sat-convert-cfdi) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json SAT import CFDI workflow theme={"system"} > { > "name": "SAT import CFDI", > "description": "Import a CFDI received through SAT and validate it", > "schema": "bill/invoice", > "steps": [ > { > "id": "6346e330-14cc-11f1-85d2-9d77c04210bc", > "name": "Import CFDI from SAT", > "provider": "sat-mx.import" > }, > { > "id": "1a3cd312-cba9-11f1-816e-9200076f684c", > "name": "Validate CFDI with SAT", > "provider": "sat-mx.validate" > }, > { > "id": "74f01110-14cc-11f1-85d2-9d77c04210bc", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `received`{.state .received}", > "config": { > "state": "received" > } > } > ], > "rescue": [ > { > "id": "e5f6a7b0-1a2b-11f0-b001-4a5b6c7d8e9f", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!TIP] > > You can extend the conversion workflow with additional steps to suit your needs, such as generating a PDF, sending a [webhook](/guides/webhooks) notification, forwarding the invoice by [email](/apps/email), or storing a copy in [Google Drive](/apps/google-drive). > [!TIP] > > Remember the name you give this workflow. You will need to select it by name when configuring the import workflow in the next step. **5. Set up the Efisco bulk import CFDIs workflow** This workflow uses the SW Sapien app to download CFDIs from SAT and dispatch conversion jobs for each one. It will be executed periodically by the Cron app. > [card] [Efisco bulk import CFDIs workflow](https://console.invopop.com/redirect/workflows/new?template=sw-sapien-import-cfdi) > > Add to my workspace → After adding the template, open the **Bulk import CFDIs from Efisco** step and set the **Import Workflow** field to the CFDI Conversion Workflow created in the previous step. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SW Sapien bulk import CFDIs workflow theme={"system"} > { > "name": "SW Sapien bulk import CFDIs", > "description": "Bulk-import CFDIs from SAT via SW Sapien Efisco", > "schema": "org/party", > "steps": [ > { > "id": "28b5e810-14cc-11f1-85d2-9d77c04210bc", > "name": "Bulk import CFDIs from Efisco", > "provider": "sw-sapien.efisco.import", > "summary": "Received → no workflow", > "config": { > "document_type": "Recepcion", > "workflow_id": "" > } > } > ], > "rescue": [ > { > "id": "a7b8c9d0-2b3c-11f0-c002-5b6c7d8e9f0a", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > > After pasting the code, switch to the form view, open the **Bulk import CFDIs from Efisco** step and set the **Import Workflow** field to the CFDI Conversion Workflow created in the previous step. > [!TIP] > > Remember the name of this workflow. You will need to select it by name when configuring the subscription workflow in the next step. **6. Set up the Party Subscription Workflow** This workflow subscribes a party to periodic CFDI imports using the Cron app. Run it once per party you want to receive invoices for. > [card] [Subscribe party to CFDI import workflow](https://console.invopop.com/redirect/workflows/new?template=mx-subscribe-import) > > Add to my workspace → After adding the template, open the **Subscribe to Periodic Import** step and set the **Workflow** field to the bulk import CFDI workflow created in the previous step. > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SW Sapien subscribe to CFDI import workflow theme={"system"} > { > "name": "SW Sapien subscribe to CFDI import", > "description": "Subscribe a party to periodic CFDI bulk imports", > "schema": "org/party", > "steps": [ > { > "id": "2ab3c280-164e-11f1-a769-19319c292fdf", > "name": "Subscribe to periodic execution", > "provider": "cron.subscribe", > "summary": "Hourly → SW Sapien bulk import CFDIs", > "config": { > "interval": "hourly", > "workflow_id": "f907561b-81c2-4bd5-9199-95638ed60669" > } > }, > { > "id": "3a99bc90-164e-11f1-a769-19319c292fdf", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "d0e1f2a0-3c4d-11f0-d003-6c7d8e9f0a1b", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > > After pasting the code, switch to the form view, open the **Subscribe to Periodic Import** step and set the **Workflow** field to the bulk import CFDI workflow created in the previous step. **7. Set up the Party Registration Workflow** This workflow registers a party with SW Sapien's Efisco service by generating a link where the party's e.firma (FIEL) certificate can be uploaded. Run it once per party before subscribing them to periodic imports. > [card] [SW Sapien register party workflow](https://console.invopop.com/redirect/workflows/new?template=sw-sapien-register-party) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SW Sapien register party workflow theme={"system"} > { > "name": "SW Sapien register party", > "description": "Register a party with SW Sapien Efisco to enable CFDI downloads", > "schema": "org/party", > "steps": [ > { > "id": "aaa044b0-14cc-11f1-85d2-9d77c04210bc", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "ae845cb0-14cc-11f1-85d2-9d77c04210bc", > "name": "Register supplier with Efisco", > "provider": "sw-sapien.efisco.register" > } > ], > "rescue": [ > { > "id": "a3b4c5d0-4d5e-11f0-e004-7d8e9f0a1b2c", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Running With all workflows in place, you can now register parties and start receiving invoices. For each entity whose invoices you want to import, you need to register them with SW Sapien's Efisco service and then subscribe them to periodic imports. ### Register a receiving party **1. Create the party** In the left sidebar, click **Parties**. Click **+New party** and enter the party's data manually using the console, or switch to developer mode (`` icon) to paste the data directly. At a minimum, provide: * **Name** of the company * **Tax ID Country** with `MX` * **Tax ID Code** with the entity's RFC (*Registro Federal de Contribuyentes*) Here is an example party for reference: ```json Mexico supplier example theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "ESCUELA KEMPER URGATE", "tax_id": { "country": "MX", "code": "EKU9003173C9" }, "addresses": [ { "code": "26015", "country": "MX" } ], "ext": { "mx-cfdi-fiscal-regime": "601" } } ``` Click **Build**, verify there are no errors, then click **Save**. **2. Run the Registration Workflow** With the party entry selected, click **Select Workflow** and execute the **SW Sapien Register Party** workflow. After it completes, the party's state will change to `Processing` and a registration link will appear in the **Meta** tab of the entry. **3. Complete the e.firma (FIEL) upload** Open the **Details** window and click on **Meta**. You will see a **Registration Link** with a URL. > [!NOTE] > > You can access the registration link via the API by [fetching the silo entry](/api-ref/silo/entries/fetch-an-entry) and locating the meta entry where the key is `registration-link`. Visit that URL to access the registration form. Fill in the entity's **RFC** and upload the **e.firma (FIEL)** certificate files (`.cer` and `.key`) along with the private key password. > [!NOTE] > > This form can be shared directly with the entity if required. When you click **Save**, the certificate details are securely sent to SW Sapien's Efisco service, which will use them to authenticate bulk CFDI download requests from SAT on behalf of the entity. > [!NOTE] > > You can also upload the e.firma certificate programmatically using the [Upload e.firma certificate](/api-ref/apps/sw-sapien/certificate-upload) API endpoint. This is useful for automating onboarding or integrating the registration process into your own application. **4. Subscribe the party to imports** Once the e.firma has been uploaded, execute the **Subscribe to CFDI Import** workflow on the same party entry. Once the workflow completes successfully, the party's state will change to `Registered` and the Cron app will begin scheduling import jobs at the configured interval. ### Monitor imported invoices Once the subscription is active, the [Cron app](/apps/cron) will automatically create an import job at each configured interval (for example, daily). Here is what happens during each cycle: 1. **Cron creates an import job** with a time window (`from` and `upto`) corresponding to the scheduled interval. You can see these jobs as they are created in the **Workflows** → **History** section of the Console. 2. **The import step shifts the window 72 hours into the past.** This is because SAT allows invoices to be issued with a date up to 72 hours before the current time. By shifting the window, the import ensures it only downloads consolidated data where all invoices for that period have been finalized. > [!NOTE] > > For example, if Cron schedules a job on March 10 covering March 9–10, the actual download request to SAT will cover March 6–7. This three-day lag guarantees completeness. 3. **The import job enters a `Queued` state** while the SW Sapien app requests the CFDIs from SAT via Efisco. This is an asynchronous process: SAT may take anywhere from a few minutes to several hours (and in exceptional cases, up to six days) to make the download available. The job remains queued until the data is ready. 4. **Once the download completes**, the import step retrieves the CFDIs and dispatches a separate conversion job for each one. These conversion jobs will also appear in **Workflows** → **History**. 5. **Each conversion job** runs the CFDI Conversion Workflow, which converts the CFDI XML to [GOBL](https://docs.gobl.org) format and marks the document with the state `Received`. The resulting silo entries will appear in the **Invoices** section of the Console. If errors occur during any stage, the rescue steps in the corresponding workflow will set the document state to `Error`, allowing you to identify and resolve issues through the Console or API. ### Run the CFDI import manually For testing purposes, you can trigger the EFisco bulk CFDI import workflow manually instead of waiting for the Cron app to execute it on schedule. **1. Open the workflow** Navigate to the **Workflows** section in the Console and locate the bulk CFDI import workflow you created during setup. Click on it to open its details. **2. Run the workflow** Click the Run button and configure the execution: * **Document**: Enter the party entry whose RFC you want to import invoices for. * **Arguments**: Add the following two parameters: * `from`: The start of the time window in ISO 8601 format, for example `2025-03-01T00:00:00Z`. * `upto`: The end of the time window in ISO 8601 format, for example `2025-03-02T00:00:00Z`. > [!NOTE] > > The import step applies the 72-hour shift described above. For example, if you set `from` and `upto` to cover March 9–10, the actual download request to SAT will cover March 6–7. ### Unsubscribe a party To stop importing invoices for a specific party, create a workflow with the Cron **Unsubscribe** action and execute it on the party's entry. This removes the subscription and no further import jobs will be scheduled. ## Validate received CFDIs Before relying on a received invoice, for example to claim it for tax purposes, you can check it with the SAT. The SAT Mexico app's **Validate CFDI with SAT** step checks that the CFDI attached to the document: * Has not been modified since its issuer signed it. * Was stamped by a PAC. * Is known to the SAT and still active (*vigente*). The CFDI Import Workflow from the [setup](#setup) above includes this step right after **Import CFDI from SAT**. When a CFDI does not pass, the job fails with the reason and the document state is set to `Error`. ## FAQ See our [Mexico FAQ](/faq/mexico) for common questions. *** > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Mexico → # CFDI supplier registration guide Source: https://docs.invopop.com/guides/mx-sat-supplier Register suppliers to issue CFDI documents in Mexico using the SAT Mexico app. ## Introduction Before a supplier can issue CFDI (*Comprobante Fiscal Digital por Internet*) documents in Mexico, they must be registered with Invopop's local PAC (*Proveedor Autorizado de Certificación*), SW Sapien, who signs and submits invoices to the country's tax authority, the SAT (*Servicio de Administración Tributaria*). In this guide you'll learn how to register a supplier using the [SAT Mexico app](/apps/sat-mexico), and how to unregister them when they should no longer issue invoices from your workspace. Once a supplier is registered, continue with the companion guide: [Mexico: Issuing documents](/guides/mx-sat-issuing). ## Prerequisites To register a supplier with the SAT, you will need: * **Supplier Information**: * Name * Taxpayer ID (RFC - *Registro Federal de Contribuyentes*) * Address * Fiscal regime code (as defined by SAT) * **Two certificates** required by the SAT: 1. **e.firma (FIEL)**: Confirms your identity before SAT. Required to obtain the CSD below and to authorize the PAC to issue on your behalf as explained in step 3 of the [Register a supplier](#register-a-supplier) section below. 2. **CSD (Certificado de Sello Digital)**: Required to sign electronic invoices and prove they were issued by you. | - | Sandbox | Live | | - | - | - | | **Supplier** | Register a test supplier using one of SW Sapien's published test CSDs, or register your own | Real RFC and CSD certificate required | ## Setup Configure your Invopop workspace for supplier registration by following these steps in the [Invopop Console](https://console.invopop.com): > [!NOTE] > > These instructions apply to both the sandbox and live environments, with a few exceptions related to supplier data and registration details when real information is not available. **1. Set up the Supplier Post-Registration Workflow** > [card] [SAT supplier post-registration workflow](https://console.invopop.com/redirect/workflows/new?template=sat-postregistration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SAT supplier post-registration workflow theme={"system"} > { > "name": "SAT supplier post-registration", > "description": "Mark a SAT supplier as registered", > "schema": "org/party", > "steps": [ > { > "id": "7e8d8070-3870-11ef-af29-4533d56cea03", > "name": "Set state", > "config": { > "state": "registered" > }, > "summary": "Set state to `registered`{.state .registered}", > "provider": "silo.state" > } > ], > "rescue": [] > } > ``` **2. Set up the Supplier Registration Workflow** > [card] [SAT register supplier workflow](https://console.invopop.com/redirect/workflows/new?template=mx-sat-register-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SAT register supplier workflow theme={"system"} > { > "name": "SAT register supplier", > "description": "Register a supplier with SAT", > "schema": "org/party", > "steps": [ > { > "id": "1a9bcde0-a816-11ef-87b2-fd751e6d3b88", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "2061c540-a816-11ef-87b2-fd751e6d3b88", > "name": "Register supplier with SAT", > "provider": "sat-mx.register" > }, > { > "id": "6f9282a0-3870-11ef-af29-4533d56cea03", > "name": "Set state", > "config": { > "state": "processing" > }, > "summary": "Set state to `processing`{.state .processing}", > "provider": "silo.state" > } > ], > "rescue": [ > { > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > "name": "Set state", > "config": { > "state": "error" > }, > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}" > } > ] > } > ``` **3. Connect the SAT Mexico App** In the left sidebar, under the **Configuration** section, click **Apps**. This will display all available apps. Search for SAT Mexico and click **Connect**. The app will move to the "Enabled Apps" section. Next, click **Configure**. This will open a dialog on the right with two fields: * **Environment**: Sandbox / Live * **Post-registration workflow**: SAT supplier post-registration ## Register a supplier Registering a business entity requires uploading the CSD to our local provider, SW Sapien, via a form (see Step 2: Complete Supplier Registration). This upload goes to either the sandbox or live environment, depending on your SAT Mexico App configuration. Each CSD is tied to an RFC. When you submit an e-invoice, including the supplier's RFC, SW Sapien checks for a valid CSD linked to it, as SAT requires a valid certificate to issue invoices. > [!NOTE] > > You can complete this process through the Invopop Console or the API. We'll walk through it using the Console, but don't worry, the steps are nearly identical for the API. We'll add notes along the way to clarify any differences. > [!NOTE] > > Registration is required even in the **sandbox** now. When following the steps below in that environment, you don't need a real CSD: you can register either your own company and certificate, or any of the test companies published on the [SW Sapien test page](https://developers.sw.com.mx/knowledge-base/donde-encuentro-csd-de-pruebas-vigentes/), where you can download each test company's certificate, private key, and password. Either way, make sure the supplier's name and RFC matches its certificate. **1. Run the Supplier Registration Workflow** In the left sidebar, go to the **Parties** section and click **Suppliers**. Then click **+New Supplier** and enter the supplier's data manually using the console, or switch to developer mode (`` icon) to paste the data directly. Here is an example supplier for reference: ```json Mexico supplier example theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "ESCUELA KEMPER URGATE", "tax_id": { "country": "MX", "code": "EKU9003173C9" }, "addresses": [ { "code": "26015", "country": "MX" } ], "ext": { "mx-cfdi-fiscal-regime": "601" } } ``` Click **Build**, make sure there are no errors, then click **Save**. Next, click **Select Workflow** and execute the **Supplier Registration Workflow**. **2. Complete Supplier Registration** After it completes, open the **Details** window and click on **Meta**. You should see a section called **Registration Link** with a URL: ![Supplier Registration Link](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/mx-sat-reg-link.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=48c091d128197a5c0808ffe9ae4b1b71) > [!NOTE] > > You can access the registration link via the API by [fetching the silo entry](/api-ref/silo/entries/fetch-an-entry) and locating the meta entry where the key is `registration-link`. Visit that URL to access the form for registering the supplier. > [!NOTE] > > Note that this form can be shared directly with the supplier if required. ![Issuer Registration Form](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/mx-sat-reg-csd.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=5e54154e661bc666c0d3a7b3926c86a7) Fill out the form with the following information: Issuer RFC, CSD certificate file (`.crt`), private key (`.key`), and the private key password. Follow this [guide](https://sw.com.mx/blog/administracion-fiscal/sellos-digitales-que-son-y-como-funcionan) to generate the CSD certificate and key if you need to. When you click **Save**, the form details are securely sent to the PAC (*Proveedor Autorizado de Certificación*), who will handle invoice signing and submission to the SAT. > [!NOTE] > > You can fill the form via API by sending a PUT request to the registration link. The payload should be a JSON object with the following fields: > > * `csd_file` (string): The CSD certificate file (`.crt`). > * `key_file` (string): The private key (`.key`). > * `password` (string): The private key password. > > The response will be a JSON object with the following fields: > > * `rfc` (string): The RFC of the supplier. > * `active_cert` (boolean): Whether the certificate is active. **3. Authorize PAC to Issue Invoices** Since we are using a local PAC, you must authorize the PAC to sign, stamp, and send CFDIs to the SAT on your behalf. To do this, visit the following [page](https://firmamanifiesto.lunasoft.net/) and **sign the manifesto using your e.firma (FIEL)**. At this point, you're ready to start sending documents on behalf of the supplier. Head over to the [CFDI issuing guide](/guides/mx-sat-issuing) to continue. ## Unregister a supplier Unregistering a supplier revokes their invoice issuing privileges from your workspace. You might need to unregister an entity because the supplier is no longer your client or because of a change in their Tax ID. To do so, use the following workflow template: > [card] [SAT unregister supplier](https://console.invopop.com/redirect/workflows/new?template=mx-sat-unregister-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json SAT unregister supplier workflow theme={"system"} > { > "name": "SAT unregister supplier", > "description": "Unregister a supplier from SAT", > "schema": "org/party", > "steps": [ > { > "id": "23affb5e-c15f-4b7b-9517-eaaf4ebd37c1", > "name": "Unregister supplier from SAT", > "provider": "sat-mx.unregister" > }, > { > "id": "45280ede-ab86-4e76-b55e-7ee744460748", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "47816a6b-fa58-4b89-ae73-a8eee8e43b0a", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## FAQ > [accordion] Which PAC (Proveedor Autorizado de Certificación) does Invopop use? > > Invopop uses [SW Sapien](https://sw.com.mx), an Authorised Certification Provider (PAC), to sign and stamp CFDI documents for the Mexican tax authority. > [accordion] What happens if my CSD certificate is revoked? > > Without a valid CSD, the issuer cannot stamp any CFDI through any PAC. SAT can administratively revoke a CSD when it suspects fraudulent activity, repeated non-compliance, or tax debts. Operations halt until the supplier resolves the underlying cause and obtains a new CSD. CSDs also expire every four years. Suppliers should monitor CSD validity proactively; Invopop relies on the CSD uploaded during supplier registration and does not manage its lifecycle. > [accordion] How do I onboard a new supplier in Mexico? > > Generate a registration link via the SAT Mexico Register Supplier workflow. The supplier uploads their CSD certificate (`.cer` + `.key` + password) and authorizes the PAC. Once validated, the supplier is ready to issue CFDIs. > [accordion] What certificates does SAT/CFDI require to authenticate a supplier? > > A CSD (Certificado de Sello Digital) issued by SAT specifically for invoicing — distinct from the FIEL (e.firma) used for portal login. The CSD comprises a `.cer` (X.509) and `.key` (encrypted private key) with a password set at generation. Validity: 4 years. > [accordion] How are supplier credentials stored in Invopop for Mexico? > > The CSD certificate (`.cer`), private key (`.key`), and key password are stored encrypted at rest. Invopop uses them only to seal CFDIs before transmission to the PAC; the password and key are never returned in API responses. More available in our [Mexico FAQ](/faq/mexico) section *** > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Mexico → # Norway Peppol guide Source: https://docs.invopop.com/guides/no-peppol Guide for Norway Peppol e-invoicing setup and requirements Norway handles e-invoicing through the Peppol network. The national EHF (Elektronisk HandelsFormat) standard has fully converged with Peppol BIS Billing 3.0, which has been **mandatory for all public sector suppliers since April 2019**. A proposed B2B mandate targets mandatory sending by 2028 and receiving by 2030. For comprehensive information about Peppol features and capabilities, please refer to our [Peppol Guide](/guides/peppol). ## FAQ > [accordion] How do I configure my workspace for Norwegian invoicing? > > Install the Peppol app, register your supplier with their Norwegian organization number (scheme `0192`), and use a workflow that generates a Peppol BIS Billing 3.0 document and sends it via the Lookup → Send actions. > [accordion] Do invoices need to be sent to the tax authority? > > No. Norway has no clearance or e-reporting requirement for invoices — they travel directly to the customer over the Peppol network. Skatteetaten only requests accounting data on demand via SAF-T during audits. > [accordion] Where do I find Norway-specific GOBL documentation? > > See the [Norway tax regime in GOBL](https://docs.gobl.org/regimes/no) for tax IDs and category codes. The Peppol BIS Billing 3.0 mapping is shared across the network and comes from the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon. > [accordion] What is the difference between scheme 0192 and 9908 in Norway? > > Both schemes identify a company by its Norwegian organization number: > > * **`0192` (organization number)** — This is the **preferred and default** scheme for Norway. It corresponds to the company's 9-digit organization number in the Enhetsregisteret (Central Coordinating Register) at the Brønnøysund Register Centre. > * **`9908` (NO:ORGNR)** — This is the legacy scheme for the same organization number, deprecated in favor of `0192`. Some older ELMA registrations may still use it. > > **When you should use `0192`:** Always use `0192` as your first choice when sending invoices to Norwegian companies. This is the standard identifier and what the vast majority of Norwegian businesses are registered under. > > **When `9908` may be needed:** If you get a "receiver not found" error when sending to a Norwegian company using `0192`, and you have confirmed the company exists in the [Peppol Directory](https://directory.peppol.eu), check whether they are still registered under the legacy `9908` scheme. > > To specify the scheme when sending, include the customer's Peppol inbox in your GOBL document: > > ```json theme={"system"} > "customer": { > "name": "Example Company", > "tax_id": { > "country": "NO", > "code": "987654321MVA" > }, > "inboxes": [ > { > "key": "peppol", > "scheme": "0192", > "code": "987654321" > } > ] > } > ``` > > In both schemes the code is the bare 9-digit organization number, without the `NO` prefix or `MVA` suffix used in VAT numbers. > > > [!TIP] > > > > Use the **Lookup Participant ID** workflow step to verify a recipient's Peppol registration before sending. If a lookup with `0192` fails, try again with `9908`. > [accordion] How do I include Foretaksregisteret on my invoices? > > Limited liability companies (AS), public limited companies (ASA) and branches of foreign companies must show the word "Foretaksregisteret" on their sales documents — see the [invoice content requirements](/compliance/norway). Add it as a tax-scoped identity on the supplier: > > ```json theme={"system"} > "supplier": { > "name": "Fjordlys AS", > "tax_id": { > "country": "NO", > "code": "123456785MVA" > }, > "identities": [ > { > "type": "TAX", > "code": "Foretaksregisteret", > "scope": "tax" > } > ] > } > ``` > > The identity becomes a second `PartyTaxScheme` on the supplier, under scheme `TAX`, which is where the Peppol rule NO-R-002 looks for it. Sole traders (enkeltpersonforetak) aren't covered by the requirement and should leave the identity out. > > > [!TIP] > > > > NO-R-002 is a warning rather than a fatal rule, so an invoice without it still reaches the recipient and no workflow step will report the omission. > [accordion] Which VAT rates and tax categories apply in Norway? > > Norway has four positive VAT rates. All of them are category `S` in Peppol — the percentage carries the distinction, not the category code. > > | Rate | Percentage | Applies to | > | - | - | - | > | Standard | 25% | Most goods and services | > | Reduced (food) | 15% | Foodstuffs, water and wastewater services | > | Reduced (services) | 12% | Passenger transport, accommodation, cinema, museums, sporting events, public broadcasting | > | Special (marine) | 11.11% | Wild marine resources sold through a fiskesalgslag | > > Set the percentage on the line tax and tag it with the [`untdid-tax-category`](https://docs.gobl.org/addons/eu-en16931-v2017) extension: > > ```json theme={"system"} > "taxes": [ > { > "cat": "VAT", > "percent": "25.0%", > "ext": { "untdid-tax-category": "S" } > } > ] > ``` > > Supplies that carry no VAT use a different category and omit the percentage: > > | Category | Meaning | > | - | - | > | `Z` | Zero rated goods — exports, international transport, newspapers, books | > | `E` | Exempt from tax | > | `K` | VAT exempt for EEA intra-community supply of goods and services | > | `AE` | VAT reverse charge | > | `G` | Free export item, tax not charged | > > See the [Norway compliance page](/compliance/norway) for what each rate covers and the registration threshold. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you may still need to issue an e-invoice when the recipient isn't on the network. Both parties can agree on an alternative transfer method, but the invoice must still be EN16931 compliant. > > Recommended approach: > > * Set up a separate workflow that generates the XML without the send-Peppol-document step > * Or reuse your existing workflow without the customer Peppol ID — the send step is automatically skipped > * Fetch the generated XML and deliver it through the agreed channel, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C invoices typically lack the structured customer information required for Peppol delivery, and most consumers don't have inboxes. Use a conditional workflow: > > 1. Add an **If/Else** step that checks for a customer inbox using `count(customer.inboxes, true) > 0`. > 2. On the `false` branch, generate a PDF and email it to the customer, then stop the flow. > > This routes B2B invoices through Peppol while keeping a smooth path for consumers. > [accordion] How do I handle 'Receiver Not Found' errors? > > If a job fails with `KO` and `receiver not found in the peppol network`, treat it like an invalid email address — the recipient simply isn't reachable on Peppol. Add the **Lookup Participant ID** step (ideally in a separate validation workflow run against customer data) so you catch missing IDs before generating the invoice. > [accordion] Should I set the `$regime` field when using Peppol? > > No. The regime is automatically derived from the supplier's settings, which is the recommended approach for Peppol — leave it unset on the document. > [accordion] Where do I find Peppol GOBL documentation? > > See the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon for the field and validation rules Peppol BIS Billing 3.0 builds on, and the [Peppol app reference](/apps/peppol) for supported document types and Participant ID schemes. More available in our [Norway FAQ](/faq/norway) section *** > [accordion] 🇳🇴 Invopop resources for Norway > > | | | > | - | - | > | Compliance | [Invoicing compliance in Norway](/compliance/norway) [Compliance timeline](/timelines/norway) | > | Apps | [Peppol](/apps/peppol) | > | Guides | [Norway Peppol guide](/guides/no-peppol) [Peppol guide](/guides/peppol) | > | FAQ | [Norway FAQ](/faq/norway) | > | GOBL | [Norway Tax Regime](https://docs.gobl.org/regimes/no) [EU EN 16931 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Norway → # PDF Generator guide Source: https://docs.invopop.com/guides/pdf-invoice How to issue simple PDF invoices globally. ## Introduction This guide will walk you through the process of generating a simple PDF invoice you can send to your customers. It will also explain all the configuration options available in the "Generate PDF" workflow step. PDF invoices are valid for tax regimes that don't require e-reporting or e-invoicing, and serve as a useful example from which to create your own workflows. Once completed, the workflow will work with any GOBL invoice produced for any country in the world. ![Example of a PDF invoice](https://mintcdn.com/invopop/V8NvtUXExWNj8qPR/assets/console/generate-pdf-example.png?fit=max\&auto=format\&n=V8NvtUXExWNj8qPR\&q=85\&s=26f7a8d86a70fcd9ebf82fb0bae5b97c) ## Prerequisites You'll need the following data to issue basic PDF invoices: * **Supplier details:** fiscal details of the issuer. * **Customer details:** fiscal details of who is receiving for B2B invoices. * **Items:** list of products or services being sold, including quantities and prices. * **Taxes & Rates:** knowing how these apply to each item. * **Series:** a series is a counter with number formatting details to be able to generate a code. ## Setup Issuing PDF invoices with Invopop requires very little preparation. We assume that you already have access to the [Invopop Console](https://console.invopop.com) and know how to [create a workflow](/guides/workflows). > [card] [PDF Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=pdf-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json PDF invoice workflow theme={"system"} > { > "name": "PDF invoice", > "description": "Add a sequential code and generate a PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "6b16c200-a75f-11ef-ba08-91f336761c6c", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · Invoice · 000001", > "config": { > "padding": 6, > "start": 1, > "name": "Invoice" > } > }, > { > "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "c61adaa0-7b55-11ef-bffc-d9a10ebf9f89", > "name": "Generate PDF", > "config": { > "logo_height": 40, > "locale": "en", > "date_format": "%Y-%m-%d" > }, > "summary": "English", > "provider": "pdf" > } > ], > "rescue": [ > { > "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", > "name": "Set state", > "config": { > "state": "error" > }, > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}" > } > ] > } > ``` ### Configuration options Once you have connected the "PDF Generator" app, you can configure the "Generate PDF" workflow step. The following options are available: #### Content section ![Generate PDF logo](https://mintcdn.com/invopop/JKbdvBA1xmxNVEtl/assets/console/generate-pdf-logo.png?fit=max\&auto=format\&n=JKbdvBA1xmxNVEtl\&q=85\&s=934d8240507e4f4451715e9a27e84ea7) | | | | - | - | | **Upload logo** | Upload an image which will be used as a logo in the document. A square or horizontal logo layout in PNG format is recommended. `PNG`, `GIF`, `JPG` and `SVG` file types are supported. For bitmap images, it is recommended that the logo is at least twice the size of the height for it to print in high quality. If you need to upload a different logo for each supplier, include the `logos` field in the party entry [as detailed in the FAQ](/guides/pdf-invoice#how-can-i-add-a-different-logo-for-each-supplier). | | **Logo height** | Height for the logo in pixels. There's 72 pixels in an inch and 37 pixels in a centimeter. The default height is 40 pixels (a little over 1cm) | ![Generate PDF locale](https://mintcdn.com/invopop/V8NvtUXExWNj8qPR/assets/console/generate-pdf-locale.png?fit=max\&auto=format\&n=V8NvtUXExWNj8qPR\&q=85\&s=71772fe37a312bdef4b4fa9f4467e59c) | | | | - | - | | **Locale** | Sets the language and formatting conventions used in the PDF. We add new locales based on the demand of our customers. | | **Date format** | Controls how dates are displayed. Options include: `YYYY-MM-DD`, `DD-MM-YYYY`, `MM-DD-YYYY`, `DD.MM.YYYY`, `MM.DD.YYYY` | | **Time format** | Controls how times are displayed in datetime fields. Options include: `20:45` (24-hour hh:mm), `20:45:03` (24-hour hh:mm:ss), `8:45 PM` (12-hour hh:mm), `8:45:00 PM` (12-hour hh:mm:ss). When set, the date and time are joined with a `·` separator. | | **Layout** | Defines the physical page size for regional printing standards. Options include:
  • `A4`: used in Europe and various other countries.
  • `Letter`: used in United States, Canada, Mexico, Philippines, and other countries in Latin America.
  • `DIN5008`: used in Germany as the standard for documents that will present information within an envelope window. If you select this option, the customer's information (name and address) will be placed within this window.
| ![Generate PDF visual markers](https://mintcdn.com/invopop/V8NvtUXExWNj8qPR/assets/console/generate-pdf-visuals.png?fit=max\&auto=format\&n=V8NvtUXExWNj8qPR\&q=85\&s=4143d4874c536fd016932ee6dae35e91) | | | | - | - | | **Title badge** | Contextual labels such as "original", "copy", "draft", or "internal" | | **Background watermark** | Text that will be displayed in the background of the document such as "draft", "review", "internal", "confidential", etc. | ![Generate PDF checkboxes](https://mintcdn.com/invopop/JKbdvBA1xmxNVEtl/assets/console/generate-pdf-checkboxes.png?fit=max\&auto=format\&n=JKbdvBA1xmxNVEtl\&q=85\&s=f92cf0f4d4bd1cd31f0a5adcae43f1d9) | | | | - | - | | **Hide "Powered by Invopop"** | Toggle to hide the "Powered by Invopop" attribution. This setting does not remove the GOBL logo from the PDF. | | **Disable public download URLs** | Security control to disable the creation of public download URLs for generated PDFs, preventing external sharing via link. | | **Adjustment invoices** | Toggle to generate "adjustment invoices" using negative values instead of traditional credit and debit notes. Useful for countries that don't officially recognise the concept of credit or debit notes such as Spain and Poland [as detailed in the FAQ](/guides/pdf-invoice#why-would-i-want-to-use-adjustment-invoices). | | **Flag as duplicate** | Use when you want to generate a duplicate invoice. If not selected and the silo entry already contains a PDF, the workflow will overwrite the existing PDF. | #### Currency section **Currency formatting** allows overriding the default currency formatting normally dictated by the document's own currency. ![Generate PDF formatting](https://mintcdn.com/invopop/JKbdvBA1xmxNVEtl/assets/console/generate-pdf-formatting.png?fit=max\&auto=format\&n=JKbdvBA1xmxNVEtl\&q=85\&s=f31ec8342ea95f06125e1ce8c33bb9be) | | | | - | - | | **Currency template** | Whether the currency symbol should be before or after the number, e.g. `€100` or `100€`. | | **Format for negative values** | Whether the negative sign should be before or after the number, e.g. `€-100` or `-€100`. Parenthesis `- €(100)` can also be used according to some accounting standards. | | **Thousands separator** | Separator to improve the readability of the number, e.g. `1,000`, `1.000`, `1 000` or `1_000`. | | **Decimal mark** | Separator for the decimal part of the number, e.g. `1.00` or `1,00`. | ### Workflow args All configuration options above can also be set programmatically using workflow step args. This is useful when you need to dynamically override PDF settings per job via the API. | Arg Key | Type | Description | | - | - | - | | `pdf-logo-url` | string | URL of the supplier logo. Supports regular URLs and data URLs. | | `pdf-logo-height` | integer | Height of the logo in pixels (default: 40). | | `pdf-locale` | string | Two-letter language code, e.g. `en`, `es`, `de`. | | `pdf-date-format` | string | Date format using `%Y`, `%m`, `%d` tokens, e.g. `%d/%m/%Y`. | | `pdf-time-format` | string | Time format using `%H`, `%M`, `%S` (24-hour) or `%I`, `%M`, `%S`, `%p` (12-hour) tokens, e.g. `%H:%M` or `%I:%M %p`. | | `pdf-layout` | string | Page layout: `A4`, `Letter`, or `DIN5008`. | | `pdf-label` | string | Title badge text, e.g. `Paid`, `Original`. | | `pdf-watermark` | string | Background watermark text, e.g. `Draft`, `Confidential`. | | `pdf-hide-promo` | boolean | Set to `true` to hide the "Powered by Invopop" text. | | `pdf-adjustment-mode` | boolean | Set to `true` to use negative amounts in credit notes. | | `pdf-duplicate` | boolean | Set to `true` to generate a duplicate PDF without overwriting the existing one. | ## Running Use the following example [GOBL Invoices](https://docs.gobl.org/draft-0/bill/invoice) inside the [Invopop Console](https://console.invopop.com) or via the API to create new silo entries. Once a silo entry has been stored, you can create a new job to run the "PDF Invoice" workflow you just created. > [accordion] B2B Invoice - United Kingdom > > ```json A simple invoice for a VAT registered supplier in the United Kingdom expandable theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "currency": "GBP", > "series": "TEST", > "supplier": { > "tax_id": { > "country": "GB", > "code": "844281425" > }, > "name": "BrightTech Solutions Ltd.", > "emails": [ > { > "addr": "billing@brighttech.co.uk" > } > ], > "addresses": [ > { > "num": "123", > "street": "Innovation Park", > "locality": "Cambridge", > "code": "CB1 2AB", > "country": "GB" > } > ] > }, > "customer": { > "tax_id": { > "country": "GB", > "code": "350983637" > }, > "name": "GreenWave Energy Ltd.", > "emails": [ > { > "addr": "info@greenwave.co.uk" > } > ], > "addresses": [ > { > "num": "45", > "street": "Riverside Business Park", > "locality": "London", > "code": "SW1A 1AA", > "country": "GB" > } > ] > }, > "lines": [ > { > "quantity": 50, > "item": { > "name": "Thermal efficient mugs", > "price": "16.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > [accordion] B2B Invoice - United States > > ```json Simple invoice for a VAT registered supplier in the United States expandable theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "series": "SAMPLE", > "currency": "USD", > "tax": { > "prices_include": "ST" > }, > "supplier": { > "name": "Provide One Inc.", > "tax_id": { > "country": "US" > }, > "addresses": [ > { > "num": "16", > "street": "Jessie Street", > "locality": "San Francisco", > "region": "CA", > "code": "94105", > "country": "US" > } > ], > "emails": [ > { > "addr": "billing@provideone.com" > } > ] > }, > "customer": { > "name": "Sample Consumer", > "emails": [ > { > "addr": "email@sample.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "discounts": [ > { > "percent": "10%", > "reason": "Special discount" > } > ], > "taxes": [ > { > "cat": "ST", > "percent": "8.5%" > } > ] > } > ] > } > ``` ## Example PDF invoices Select an example to open the full PDF. [Complete invoice (en)](/assets/guides/pdf-full-invoice.pdf) Full invoice with every section, in English ![Example PDF invoice - complete invoice in English](https://mintcdn.com/invopop/JPSH6c0JWmkos9iF/assets/guides/pdf-full-invoice.png?fit=max\&auto=format\&n=JPSH6c0JWmkos9iF\&q=85\&s=8df6a1aeaced9cdbd07f2384cd97b106) [Belgian invoice (fr)](/assets/guides/pdf-belgium-fr.pdf) Localised for Belgium in French ![Example PDF invoice - Belgian invoice in French](https://mintcdn.com/invopop/JPSH6c0JWmkos9iF/assets/guides/pdf-belgium-fr.png?fit=max\&auto=format\&n=JPSH6c0JWmkos9iF\&q=85\&s=89e3a50a13c4b522475ed2757deaa912) [Colombian invoice (es)](/assets/guides/pdf-colombia-es.pdf) Localised for Colombia in Spanish ![Example PDF invoice - Colombian invoice in Spanish](https://mintcdn.com/invopop/JPSH6c0JWmkos9iF/assets/guides/pdf-colombia-es.png?fit=max\&auto=format\&n=JPSH6c0JWmkos9iF\&q=85\&s=346c9f776fa41c4bb44bc6991db8885b) [Greek invoice (el)](/assets/guides/pdf-greece-gr.pdf) Localised for Greece in Greek ![Example PDF invoice - Greek invoice in Greek](https://mintcdn.com/invopop/JPSH6c0JWmkos9iF/assets/guides/pdf-greece-gr.png?fit=max\&auto=format\&n=JPSH6c0JWmkos9iF\&q=85\&s=ea9d3f17c1eebf81a467293dd1faadd5) [Mexican invoice (es)](/assets/guides/pdf-mexico-es.pdf) Localised for Mexico in Spanish ![Example PDF invoice - Mexican invoice in Spanish](https://mintcdn.com/invopop/JPSH6c0JWmkos9iF/assets/guides/pdf-mexico-es.png?fit=max\&auto=format\&n=JPSH6c0JWmkos9iF\&q=85\&s=6c38cfffcfa3aa44491d50745a592cf0) [Spanish VERI\*FACTU invoice (es)](/assets/guides/pdf-verifactu-es.pdf) Includes the VERI\*FACTU QR code and legend ![Example PDF invoice - Spanish VERI\*FACTU invoice in Spanish](https://mintcdn.com/invopop/JPSH6c0JWmkos9iF/assets/guides/pdf-verifactu-es.png?fit=max\&auto=format\&n=JPSH6c0JWmkos9iF\&q=85\&s=927cf6706157d0db4c80b91be83b35f4) [Basque Country TicketBAI invoice (eu)](/assets/guides/pdf-tbai-eu.pdf) Includes the TicketBAI identifier and QR code ![Example PDF invoice - Basque Country TicketBAI invoice in Basque](https://mintcdn.com/invopop/JPSH6c0JWmkos9iF/assets/guides/pdf-tbai-eu.png?fit=max\&auto=format\&n=JPSH6c0JWmkos9iF\&q=85\&s=93b5331f28229da61e61182e81157292) ## FAQ > [accordion] How can I add a different logo for each supplier? > > Add it to the supplier object within a `logos` array, the first logo in the array will be used. Make sure the "Generate PDF" step is not configured with a logo, as it will override the supplier's logo. > > ```json theme={"system"} > "supplier": { > "name": "Invopop SL", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "logos": [ > { > "url": "https://assets.invopop.com/logo.png", > "height": 100, > "width": 100 > } > ] > } > ``` > > If the logo is not displayed, make sure your image is publicly accessible. Sometimes server restrictions prevent our services from accessing the image. A convenient way to verify that your image is publicly accessible is by asking an AI assistant “is this URL https\://… publicly accessible?”. > [accordion] Why would I want to use adjustment invoices? > > Spain, along with a very small selection of other countries like Poland, doesn’t officially recognise the concept of credit or debit notes. Instead they use the concept of corrective or adjustment invoices whereby the amounts are displayed as differences from the original document. The two main types are: > > * Replacement Invoice (Factura Rectificativa por Sustitución) known in GOBL with the invoice type `corrective` and completely replaces any previous documents. > * Adjustment Invoice (Factura Rectificativa por Diferencias) reflected in GOBL as either a `credit-note` or `debit-note` invoice type that appends to the previous documents. > > GOBL is designed to be an international format, so when deciding the types we try to take the most common business concepts and map them to local requirements. A credit note by definition implies a deduction from the preceding invoice, so all totals and values must be positive. This can cause confusion in Spain, where most companies are accustomed to the local way of issuing invoices with negative totals. > > When converting GOBL to the local tax agency format (like VERI\*FACTU XML in Spain), Invopop automatically inverts the values in a credit-note to ensure that the agency receives what they are expecting, while at the same time maintaining global compatibility in the actual document. With these changes, PDF can now apply the same logic to invert the totals and change the text translations while maintaining the same underlying information. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about PDF invoices → # Peppol guide Source: https://docs.invopop.com/guides/peppol How to issue and receive electronic invoices through the global Peppol network ## Introduction [Peppol (Pan-European Public Procurement On-Line)](https://peppol.org/) is a global network for electronic document exchange, widely adopted for e-invoicing across multiple countries. It provides a standardized protocol for companies to exchange business documents like invoices, credit notes, and purchase orders. The Peppol network is particularly popular in: * Nordic countries (Norway, Finland) * Asia-Pacific region (Japan, Singapore, Malaysia, Australia, New Zealand) * Several EU countries for business-to-government invoicing (Germany, Italy, Croatia) Invopop allows you to send and receive documents through the Peppol network using a single integration while continuing to work with our [GOBL](https://docs.gobl.org/introduction) format. This guide walks you through the steps to register a company in Invopop and then issue and receive invoices on its behalf. | - | Sandbox | Live | | - | - | - | | **Supplier approval** | Automatically approved | Invopop validates company identity and ownership (up to 72 hours) | | **Network** | Peppol Test Network | Peppol Production Network | Have your agent send a first invoice over the Peppol test network. Read [https://docs.invopop.com/guides/peppol.md](https://docs.invopop.com/guides/peppol.md) and [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md). In my sandbox workspace, using the token in INVOPOP\_TOKEN: check whether the Peppol app is enabled and tell me if it is not; register the supplier I give you by creating an org/party entry and running the registration workflow ID I provide; then create a bill/invoice entry for that supplier addressed to a customer on the Peppol test network, including the customer's Peppol participant identity as the guide describes, and run the issuance workflow ID I provide with wait=30. Report the entry state, the job's per-step statuses and faults, and the files attached. If the customer cannot be found on the network, use the participant lookup endpoint documented in the guide and explain what to fix. ## Setup Let's prepare your workspace to work with Peppol. We'll configure the Peppol app and create three [workflows](/guides/workflows): * **Invoice issuance workflow**: Send invoices through the Peppol network * **Invoice reception workflow**: Receive invoices from the Peppol network * **Party registration workflow**: Programmatically onboard companies (Parties) with Invopop If you only want to *send* invoices through Peppol, you can skip steps 3 and 4 of the setup. Alternatively, if you only want to *receive* invoices through Peppol, you can skip step 2. The Peppol app is designed to only send and receive the document, generating and importing the appropriate file is delegated to format specific apps such as OASIS UBL or UN/CEFACT CII. This is done to keep the Peppol app simple and focused on the Peppol protocol, while allowing you to use the format that best suits your needs. **1. Connect the Peppol app** 1. Within the [Console](https://console.invopop.com/), navigate to **Configuration** → **Apps** 2. Find the **Peppol** app in the list 3. Click **Connect** to activate it. The Peppol app should now appear in the list of Enabled apps ![Connect Peppol app](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/peppol-app.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=cefb81d5c4eb0b6d11b1f7e730489b64) **2. Configure a workflow to issue invoices** Now we'll create the workflow that converts invoices to a valid Peppol format and sends them through the Peppol network. In this example, we'll generate a Peppol BIS Billing UBL 3.0 document. Skip this step if you only want to *receive* invoices via Peppol. > [card] [Peppol issue invoice workflow](https://console.invopop.com/redirect/workflows/new?template=peppol-send) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Peppol send invoice workflow theme={"system"} > { > "name": "Peppol send invoice", > "description": "Send a Peppol BIS invoice through the Peppol network", > "schema": "bill/invoice", > "steps": [ > { > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "2354afd0-10ab-11f0-a09e-7b63571a4ae2", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · Peppol · PPL000001", > "config": { > "name": "PPL", > "padding": 6, > "prefix": "PPL", > "start": 1 > } > }, > { > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "fc5aa8d0-10aa-11f0-a09e-7b63571a4ae2", > "name": "Generate UBL document", > "provider": "ubl.generate", > "summary": "Peppol BIS Billing v3", > "config": { > "doc_type": "bis-invoice-v3", > "private": false, > "validate_ubl": true > } > }, > { > "id": "075442a0-10ab-11f0-a09e-7b63571a4ae2", > "name": "Send Peppol document", > "provider": "peppol.send" > }, > { > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Configure a workflow to receive invoices** > [card] [Peppol receive document workflow](https://console.invopop.com/redirect/workflows/new?template=peppol-receive) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Peppol receive invoice workflow theme={"system"} > { > "name": "Peppol receive invoice", > "description": "Receive an invoice through Peppol", > "schema": "bill/invoice", > "steps": [ > { > "id": "db61c3c0-0fb5-11f0-b078-9fc456829eca", > "name": "Import Peppol document", > "provider": "peppol.import", > "next": [ > { > "status": "OK", > "code": "UBL", > "steps": [ > { > "id": "62e94570-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Import UBL document", > "provider": "ubl.import" > } > ], > "stop": false > }, > { > "status": "OK", > "code": "CII", > "steps": [ > { > "id": "6480ae50-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Import CII document", > "provider": "cii.import" > } > ], > "stop": false > } > ] > }, > { > "id": "fdfc81a0-6e23-11f0-913b-5732f966b346", > "name": "Set folder", > "provider": "silo.folder", > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > "config": { > "folder": "expenses" > } > }, > { > "id": "dd14a3e0-0fb5-11f0-b078-9fc456829eca", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "e109d2e0-0fb5-11f0-b078-9fc456829eca", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **4. Configure the Peppol app** Within the [Console](https://console.invopop.com/), navigate to **Configuration** → **Apps**, find the Peppol App and click **Configure**. You'll need to set the following field: * **Incoming Workflow**: Select the Receive Invoice Workflow created in Step 3. This is where the app will send incoming invoices (expenses) received from the Peppol network. **5. Configure a Party registration workflow** This workflow onboards companies (Peppol participants) to Invopop before they can issue or receive invoices. If you're managing your own invoices only, you may use this workflow just once. However, if you're offering Peppol to your customers through Invopop ([white-label use case](/guides/white-label)), you'll run this workflow for each merchant you onboard. > [card] [Peppol supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=peppol-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json Peppol register party workflow theme={"system"} > { > "name": "Peppol register party", > "description": "Register a party with Peppol to issue and receive invoices", > "schema": "org/party", > "steps": [ > { > "id": "0adf46e0-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Register party for Peppol approval", > "provider": "peppol.register.approval" > }, > { > "id": "0e44b900-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "12aaf950-8fdb-11f0-a8fb-61ec9e5a76ba", > "name": "Wait for Peppol approval", > "provider": "peppol.wait.approval" > }, > { > "id": "7a5a4db0-0fae-11f0-b37b-0be1c251a274", > "name": "Register party on Peppol", > "provider": "peppol.register", > "summary": "Enabled · groups: ubl-invoice", > "config": { > "disable": false, > "doc_groups": [ > "ubl-invoice" > ], > "visibility": "smp+sml+peppol" > } > }, > { > "id": "7c2fa9f0-0fae-11f0-b37b-0be1c251a274", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "a34e83f0-25dc-11f0-b641-350e77c28eed", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` Congratulations! Your workspace is now configured to send and receive Peppol documents and programmatically onboard Peppol participants with Invopop. ## Running After setup, you can perform three key operations with Peppol in Invopop: onboarding entities (parties) so they can use Peppol, sending invoices through Peppol, and receiving Peppol invoices. ### Registering parties Business entities are represented in Invopop as GOBL `org.party` objects, which we call Parties. Peppol requires Invopop to collect proof of ownership for regulatory compliance. As outlined in [Section 3.3 End user Identification of the Internal Regulations II document](https://openpeppol.atlassian.net/wiki/spaces/AF/pages/3963191334/Internal+Regulations), key details such as VAT number, address, contact information, and company name must be provided and validated during registration. To register a party: 1. Upload it to the Silo with required company information 2. Send it to the party registration workflow #### Upload a party document You can upload parties via the [Create an Entry](/api-ref/silo/entries/create-an-entry-put) API endpoint or manually through the Console. For this guide, we'll demonstrate the manual process: 1. Find the **Parties** section in the sidebar and click **Suppliers** 2. Click **+ New Supplier** to open the editor 3. Use one of the following examples and adapt to your needs > [tab] Belgium > > ```json Belgium supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Benelux Industries SA/NV", > "tax_id": { > "country": "BE", > "code": "0316597904" > }, > "addresses": [ > { > "num": "42", > "street": "Rue de la Loi", > "locality": "Brussels", > "region": "Brussels-Capital", > "code": "1040", > "country": "BE" > } > ], > "emails": [ > { > "addr": "billing+test@example.com" > } > ] > } > ``` > [tab] Germany > > ```json Germany supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Rheinland Technologies GmbH", > "tax_id": { > "country": "DE", > "code": "879558966" > }, > "addresses": [ > { > "num": "27", > "street": "Friedrichstraße", > "locality": "Berlin", > "region": "BE", > "code": "10117", > "country": "DE" > } > ], > "emails": [ > { > "addr": "rechnungen@rheinlandtech.de" > } > ] > } > ``` > [tab] Italy > > ```json Italy supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Tecnologie Adriatico S.r.l.", > "tax_id": { > "country": "IT", > "code": "00159560366" > }, > "addresses": [ > { > "num": "15", > "street": "Via Giuseppe Verdi", > "locality": "Milano", > "region": "MI", > "code": "20121", > "country": "IT" > } > ], > "emails": [ > { > "addr": "fatturazione@tecnologieadriatico.it" > } > ], > "ext": { > "it-sdi-fiscal-regime": "RF01" > } > } > ``` > [tab] Spain > > ```json Spain supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Invopop S.L.", > "tax_id": { > "country": "ES", > "code": "B85905495" > }, > "people": [ > { > "name": { > "given": "Juan", > "surname": "Pérez González" > }, > "identities": [ > { > "key": "national", > "code": "123456789A" > } > ], > "addresses": [ > { > "num": "10", > "street": "Calle Ejemplo", > "locality": "Madrid", > "region": "Madrid", > "code": "28020", > "country": "ES" > } > ] > } > ], > "addresses": [ > { > "num": "42", > "street": "Calle Pradillo", > "locality": "Madrid", > "region": "Madrid", > "code": "28002", > "country": "ES" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > } > ``` The mandatory fields for Peppol registration are: * Company name (fiscal name) * VAT number (tax ID) * Complete company address * Contact information * Peppol Participant ID\* \*If not provided, Invopop will assign a Participant ID during registration based on the VAT number and the country. After registration the supplier entry will be updated with their Peppol inbox: ``` "inboxes": [ { "key": "peppol", "scheme": "9920", // country schemeID "code": "ESB85905495" // Participant ID derived from VAT ID } ], ``` If the company has already been registered before or you need to set a specific participant ID, include this information so that it is not auto-generated. All fields are required for identity validation and proof of ownership verification. Click Build to validate the document, then Save. #### Send to the registration workflow Once the document is saved: 1. Click the Select Workflow button 2. Select the **Register Supplier** workflow created during setup 3. Click Run Workflow The execution should succeed, and the silo entry's state will change to Processing The first step creates a registration link that you can extract from the **Meta** tab or via the API: ![Sending party to the registration workflow](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/peppol-supplier.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=c84798cafa6d6ce06b5d0f627ea3c52b) This link leads to a web form where you can upload proof of ownership documents and confirm your company details: ![Peppol registration wizard](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/peppol-wizard.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=7d1f47fb0d28ab2f3a6a4fc7a04b610d) After submitting the web form, Invopop will be notified and will validate your information within 72 hours. The approval status will be shown in the Meta tab of the entry. #### Programmatic registration (white-label) For programmatic integration, upload the proof of ownership document using the [API](/api-ref/apps/peppol/ownership-upload). This is particularly useful for white-label implementations when you want to integrate the registration process into your own application. After using this API endpoint the verification process will begin automatically. #### Completion After Invopop approves your registration, your party will be registered in the Peppol network. You'll see the Peppol Participant ID in the Meta tab of the entry, and the [GOBL](https://docs.gobl.org) document will contain an `inboxes` array. ![Peppol inboxes](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/peppol-inboxes.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=5f63d26bb27a0ca732feb3d4dab81c24) Peppol participant inboxes Participant IDs are represented as inboxes within a Party record because they function as network addresses—the location where invoices are sent to and received from. The party can now send and/or receive invoices in Peppol via Invopop. #### Unregistering a participant If you need to unregister an entity (because the supplier is no longer your client, for example), use the following workflow template: > [tab] Workflow > [tab] Code > > ```json Peppol unregister party workflow theme={"system"} > { > "name": "Peppol unregister party", > "description": "Unregister a party from Peppol", > "schema": "org/party", > "steps": [ > { > "id": "453beac0-70a7-11f1-aca9-697108ec55ef", > "name": "Unregister supplier from Peppol", > "provider": "peppol.unregister" > }, > { > "id": "7e79f610-adc5-11f0-abd8-03a58bc40d2a", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "9141b350-adc5-11f0-abd8-03a58bc40d2a", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` #### Migrating a participant from another provider If a party is already registered with another Peppol Access Point, you don't need to unregister it there first. Peppol supports migrating an existing participant to a new provider using a **migration key** issued by their current one. To migrate a participant into Invopop: 1. Request a migration key for the participant from their current Peppol provider. This step happens outside Invopop — each provider has its own process for issuing migration keys. 2. Pass the key as a `peppol-migration-key` argument when running the **Register party on Peppol** step: * **From the Console**: run the registration workflow directly from the workflow editor or list (see [Running from the Console](/guides/workflows#running-from-the-console)) and add `peppol-migration-key` in the **Arguments** field of the run panel. * **Via the API**: include it in the `args` map when calling the [Create a Job](/api-ref/transform/jobs/create-a-job-post) endpoint: ```json theme={"system"} { "workflow_id": "your-workflow-uuid", "silo_entry_id": "your-silo-entry-uuid", "args": { "peppol-migration-key": "the-migration-key-from-the-current-provider" } } ``` The party still needs to go through Invopop's own proof-of-ownership approval before this step, same as a fresh registration — the migration key only determines how the final **Register party on Peppol** step brings the participant onto our Access Point. When `peppol-migration-key` is provided: * Invopop uses it to accept the inbound migration on our SMP — there are no eligibility checks of our own, so the key must genuinely have been issued for this participant. * If the key is invalid or has expired, the job fails with a `migration key is not valid` error and no registration takes place. * If the key is valid, registration proceeds as usual. #### Migrating a participant to another provider If a party wants to move to another Peppol provider, Invopop can issue the migration key their new provider needs. The participant keeps receiving invoices through Invopop until the new provider completes the migration, so there is no gap in delivery. Use the following workflow template on the party's silo entry: > [tab] Workflow > [tab] Code > > ```json Peppol migrate party workflow theme={"system"} > { > "name": "Peppol migrate party", > "description": "Move a party to another Peppol provider", > "schema": "org/party", > "steps": [ > { > "id": "2f2d6970-c72a-11f1-9faf-a62046e2e5be", > "name": "Start Peppol migration", > "provider": "peppol.migrate" > }, > { > "id": "2f34cb83-c72a-11f1-998e-a62046e2e5be", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "2f34ccb2-c72a-11f1-bda9-a62046e2e5be", > "name": "Wait for Peppol migration", > "provider": "peppol.wait.migration" > }, > { > "id": "2f34cd29-c72a-11f1-8188-a62046e2e5be", > "name": "Unregister supplier from Peppol", > "provider": "peppol.unregister" > }, > { > "id": "2f34cd87-c72a-11f1-aed2-a62046e2e5be", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "2f34cdf5-c72a-11f1-b5cc-a62046e2e5be", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` 1. **Start Peppol migration** asks the Peppol SML to prepare the participant for migration and stores the key in the entry's Meta tab, under `migration-key`: ```json theme={"system"} { "migration_key": "Ab12$%cdEF34!!" } ``` Read it from the Console or from the `meta` array returned by [Fetch an entry](/api-ref/silo/entries/fetch-an-entry), and pass it to the new provider. Running the step again while the key is still in the meta reuses it instead of issuing a new one. 2. **Wait for Peppol migration** checks every hour whether the Peppol network now routes the participant to another provider's Access Point. The job stays queued until it does; once it does, Invopop removes the participant from its SMP and deletes the key from the meta. 3. **Unregister supplier from Peppol** then closes the registration in Invopop, the same as the [unregister workflow](#unregistering-a-participant). Only parties registered to receive documents through Invopop can be migrated. The steps fail for a party registered for sending only, or for one whose Peppol inbox no longer matches the identity it was registered with. > [!WARNING] > > Treat the migration key as a credential and share it only with the new provider. Migration keys don't expire and Invopop can't cancel one yet, so the wait step has no timeout: it keeps waiting until the new provider uses the key. While the key is pending, the participant can't be unregistered, so only start a migration once the party has agreed it with the new provider. ### Sending invoices To send an invoice: 1. Store it as a [Silo Entry](/api-ref/silo/entries/create-an-entry-put) with the Peppol inboxes previously obtained. 2. Send it to the Sending Invoice Workflow created during setup You can perform these steps manually via the Console or programmatically via the API using the [Create an Entry](/api-ref/silo/entries/create-an-entry-put) and [Create a Job](/api-ref/transform/jobs/create-a-job-post) endpoints. For API usage, refer to our [quickstart guide](/api-ref/introduction). When creating your invoice, ensure you add the `eu-en16931-v2017` addon to enable validations and extensions needed for Peppol > [tab] General > > > [accordion] Peppol B2B invoice > > > > A standard B2B invoice sent over the Peppol network. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon applies the European norm rules; the `peppol` inboxes on both parties identify the sending and receiving participants. > > > > Notice: > > > > * both parties carry a `peppol` inbox with the participant `scheme` and `code` used for routing, > > * the line tax states the VAT `percent` explicitly along with the [`untdid-tax-category`](https://docs.gobl.org/catalogues/untdid) extension, and, > > * totals are calculated automatically when the document is built. > > > > ```json Peppol B2B Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "rounding": "currency" > > }, > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB98602642" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "21.0%", > > "amount": "365.40" > > } > > ], > > "amount": "365.40" > > } > > ], > > "sum": "365.40" > > }, > > "tax": "365.40", > > "total_with_tax": "2105.40", > > "payable": "2105.40" > > } > > } > > ``` > > > [accordion] Peppol B2B invoice with tax-inclusive prices (Belgium) > > > > A Belgian B2B invoice with VAT-inclusive prices and two different VAT rates. > > > > Notice: > > > > * `tax.prices_include` is set to `VAT`, so line prices are treated as tax-inclusive and the base amounts are derived automatically, > > * the supplier's inbox uses the combined `scheme:code` form (`0208:0735585741`), while the customer states `scheme` and `code` separately — both are equivalent, and, > > * the two lines apply the `general` (21%) and `reduced` (6%) Belgian VAT rates. > > > > ```json Peppol B2B Invoice Belgium theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": ["eu-en16931-v2017"], > > "type": "standard", > > "series": "S2025", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT" > > }, > > "supplier": { > > "name": "Provide One BV", > > "tax_id": { > > "country": "BE", > > "code": "0735585741" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "code": "0208:0735585741" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Rue de la Loi", > > "locality": "Bruxelles", > > "region": "Bruxelles", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "BE", > > "code": "0699912507" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0699912507" > > } > > ], > > "addresses": [{ > > "country": "BE" > > }] > > }, > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2025-05-30", > > "percent": "100%" > > } > > ] > > } > > }, > > "lines": [ > > { > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > }, > > { > > "quantity": "1", > > "item": { > > "name": "Promotional cookies", > > "price": "10.00" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "reduced" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "S2025", > > "code": "001", > > "issue_date": "2025-05-20", > > "currency": "EUR", > > "tax": { > > "prices_include": "VAT", > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Provide One BV", > > "tax_id": { > > "country": "BE", > > "code": "0735585741" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0735585741" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0735585741" > > } > > ], > > "addresses": [ > > { > > "num": "12", > > "street": "Rue de la Loi", > > "locality": "Bruxelles", > > "region": "Bruxelles", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Sample Consumer", > > "tax_id": { > > "country": "BE", > > "code": "0699912507" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0699912507" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0699912507" > > } > > ], > > "addresses": [ > > { > > "country": "BE" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "20", > > "item": { > > "name": "Development services", > > "price": "90.00", > > "unit": "h" > > }, > > "sum": "1800.00", > > "discounts": [ > > { > > "reason": "Special discount", > > "percent": "10%", > > "amount": "180.00" > > } > > ], > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1620.00" > > }, > > { > > "i": 2, > > "quantity": "1", > > "item": { > > "name": "Promotional cookies", > > "price": "10.00", > > "unit": "one" > > }, > > "sum": "10.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "reduced", > > "percent": "6.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "10.00" > > } > > ], > > "payment": { > > "terms": { > > "due_dates": [ > > { > > "date": "2025-05-30", > > "amount": "1630.00", > > "percent": "100%" > > } > > ] > > } > > }, > > "totals": { > > "sum": "1630.00", > > "tax_included": "281.72", > > "total": "1348.28", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1338.84", > > "percent": "21.0%", > > "amount": "281.16" > > }, > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "9.43", > > "percent": "6.0%", > > "amount": "0.57" > > } > > ], > > "amount": "281.72" > > } > > ], > > "sum": "281.72" > > }, > > "tax": "281.72", > > "total_with_tax": "1630.00", > > "payable": "1630.00" > > } > > } > > ``` > > > [accordion] Peppol B2B credit note > > > > A credit note reversing part of a previously sent invoice. > > > > Notice: > > > > * the `type` is set to `credit-note`, which the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon maps to UNTDID document type `381`, > > * the `preceding` array references the original invoice by `series`, `code`, and `issue_date`, with a `reason` for the correction, and, > > * the lines state the credited amounts as positive values — the document type is what reverses them. > > > > ```json Peppol B2B Credit Note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "tax": { > > "rounding": "currency" > > }, > > "preceding": [ > > { > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "reason": "Services not delivered" > > } > > ], > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-04-03", > > "series": "INV", > > "code": "PP000003", > > "reason": "Services not delivered" > > } > > ], > > "tax": { > > "rounding": "currency", > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Cyberdyne Systems Spain S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B98602642" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB98602642" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB98602642" > > } > > ], > > "addresses": [ > > { > > "street": "Paseo de la Castellana 120", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28020", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@cyberdynesys.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "290.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "290.00" > > } > > ], > > "totals": { > > "sum": "290.00", > > "total": "290.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "290.00", > > "percent": "21.0%", > > "amount": "60.90" > > } > > ], > > "amount": "60.90" > > } > > ], > > "sum": "60.90" > > }, > > "tax": "60.90", > > "total_with_tax": "350.90", > > "payable": "350.90" > > } > > } > > ``` > [tab] Belgium > > > [accordion] Peppol Belgium - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon and ensure the `customer` field contains valid tax identification details. The addon will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > ```json Belgium standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0859536301" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "21.0%", > > "amount": "365.40" > > } > > ], > > "amount": "365.40" > > } > > ], > > "sum": "365.40" > > }, > > "tax": "365.40", > > "total_with_tax": "2105.40", > > "payable": "2105.40" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B zero rated goods invoice > > > > Goods and services that are subject to VAT but taxed at a 0% rate. Zero rated goods in Belgium are: > > > > * Daily and weekly newspapers, as well as periodical publications that meet a specific criteria. > > * Recyclable materials such as waste and scrap intended for recycling. > > * Educational materials under specific conditions. > > > > To create an invoice with zero rated goods, use the tax key `zero` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `Z` (zero rated goods) when the silo entry is built. > > > > > [!NOTE] > > > > > > With zero-rated supplies, businesses can still reclaim input VAT on their purchases, whereas with exempt supplies they cannot. > > > > ```json Belgium zero rate invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Het Laatste Nieuws", > > "price": "2.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero" > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0859536301" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Het Laatste Nieuws", > > "price": "2.00", > > "unit": "one" > > }, > > "sum": "2.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "2.00", > > "total": "2.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "untdid-tax-category": "Z" > > }, > > "base": "2.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "2.00", > > "payable": "2.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Belgium Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Belgium reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Belgium intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "BE", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Belgium outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Belgium export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "uuid": "019bb71c-7205-7000-9aef-878145b9fce6", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "uuid": "019bb71c-7205-7000-9aef-878145b9fce6", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Belgium - B2B credit note > > > > Credit notes reverse all or part of a previously issued invoice — for returns, cancellations, or billing corrections. > > > > To create a credit note, set the `type` to `credit-note` and reference the original invoice in the `preceding` array by `series`, `code`, and `issue_date`, optionally with a `reason`. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID document type to `381` (credit note) when the silo entry is built. > > > > > [!NOTE] > > > > > > The lines describe the amounts being credited as positive values — the credit note document type is what reverses them. A credit note can cover the full original invoice or just part of it. > > > > ```json Belgium credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "reason": "Services not delivered" > > } > > ], > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "BE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-04-03", > > "series": "INV", > > "code": "PP000003", > > "reason": "Services not delivered" > > } > > ], > > "tax": { > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0859536301" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0859536301" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0859536301" > > } > > ], > > "addresses": [ > > { > > "num": "127", > > "street": "Avenue Louise", > > "locality": "Ixelles", > > "region": "Brussels-Capital", > > "code": "1050", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "290.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "290.00" > > } > > ], > > "totals": { > > "sum": "290.00", > > "total": "290.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "290.00", > > "percent": "21.0%", > > "amount": "60.90" > > } > > ], > > "amount": "60.90" > > } > > ], > > "sum": "60.90" > > }, > > "tax": "60.90", > > "total_with_tax": "350.90", > > "payable": "350.90" > > } > > } > > ``` > [tab] Germany > > > [accordion] Peppol Germany - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The customer requires a full invoice. > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon and ensure the `customer` field contains valid tax identification details. The addon will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > > [!NOTE] > > > > > > The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid. > > > > ```json Germany standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "19%", > > "amount": "330.60" > > } > > ], > > "amount": "330.60" > > } > > ], > > "sum": "330.60" > > }, > > "tax": "330.60", > > "total_with_tax": "2070.60", > > "payable": "2070.60" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Germany Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "DE", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Deutsche Sprachschule", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Deutschkurs - Monat", > > "price": "120.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Deutsche Sprachschule", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Deutschkurs - Monat", > > "price": "120.00", > > "unit": "one" > > }, > > "sum": "120.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "120.00", > > "total": "120.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "untdid-tax-category": "E" > > }, > > "base": "120.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "120.00", > > "payable": "120.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Germany reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Germany intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Germany outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Germany export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Germany - B2B credit note > > > > Credit notes reverse all or part of a previously issued invoice — for returns, cancellations, or billing corrections. > > > > To create a credit note, set the `type` to `credit-note` and reference the original invoice in the `preceding` array by `series`, `code`, and `issue_date`, optionally with a `reason`. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon will automatically set the UNTDID document type to `381` (credit note) when the silo entry is built. > > > > > [!NOTE] > > > > > > The lines describe the amounts being credited as positive values — the credit note document type is what reverses them. A credit note can cover the full original invoice or just part of it. > > > > ```json Germany credit note theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "reason": "Services not delivered" > > } > > ], > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ] > > } > > ] > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "DE", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "credit-note", > > "series": "CN", > > "code": "PP000104", > > "issue_date": "2025-04-10", > > "currency": "EUR", > > "preceding": [ > > { > > "type": "standard", > > "issue_date": "2025-04-03", > > "series": "INV", > > "code": "PP000003", > > "reason": "Services not delivered" > > } > > ], > > "tax": { > > "ext": { > > "untdid-document-type": "381" > > } > > }, > > "supplier": { > > "name": "Rheinland Technologies GmbH", > > "tax_id": { > > "country": "DE", > > "code": "879558966" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE879558966" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE879558966" > > } > > ], > > "addresses": [ > > { > > "num": "27", > > "street": "Friedrichstraße", > > "locality": "Berlin", > > "region": "BE", > > "code": "10117", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "rechnungen@rheinlandtech.de" > > } > > ] > > }, > > "customer": { > > "name": "Bavaria Solutions GmbH", > > "tax_id": { > > "country": "DE", > > "code": "993930191" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9930:DE993930191" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9930", > > "code": "DE993930191" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Marienplatz", > > "locality": "München", > > "region": "BY", > > "code": "80331", > > "country": "DE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "2", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "290.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "19%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "290.00" > > } > > ], > > "totals": { > > "sum": "290.00", > > "total": "290.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "290.00", > > "percent": "19%", > > "amount": "55.10" > > } > > ], > > "amount": "55.10" > > } > > ], > > "sum": "55.10" > > }, > > "tax": "55.10", > > "total_with_tax": "345.10", > > "payable": "345.10" > > } > > } > > ``` > [tab] Italy > > > [accordion] Peppol Italy - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when the customer is a registered business (has a tax identification number). > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons. The addons will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > > [!NOTE] > > > > > > The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid. > > > > ```json Italy standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT05140920017" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "22.0%", > > "ext": { > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "22.0%", > > "amount": "382.80" > > } > > ], > > "amount": "382.80" > > } > > ], > > "sum": "382.80" > > }, > > "tax": "382.80", > > "total_with_tax": "2122.80", > > "payable": "2122.80" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B zero rated goods invoice > > > > Goods and services that are subject to VAT but taxed at a 0% rate. Zero rated goods in Italy are: > > > > * Daily and weekly newspapers, as well as periodical publications that meet a specific criteria. > > * Recyclable materials such as waste and scrap intended for recycling. > > * Educational materials under specific conditions. > > > > To create a zero-rated invoice, use the tax key `zero` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `Z` (zero rated goods) when the silo entry is built. > > > > > [!NOTE] > > > > > > With zero-rated supplies, businesses can still reclaim input VAT on their purchases, whereas with exempt supplies they cannot. > > > > ```json Italy zero rate invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "La Repubblica", > > "price": "2.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero" > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "MI", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Roma Solutions S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "05140920017" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT05140920017" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT05140920017" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "RM", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "La Repubblica", > > "price": "2.00", > > "unit": "one" > > }, > > "sum": "2.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "it-sdi-exempt": "N1", > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "2.00", > > "total": "2.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "it-sdi-exempt": "N1", > > "untdid-tax-category": "Z" > > }, > > "base": "2.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "2.00", > > "payable": "2.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Italy Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "$regime": "IT", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Scuola di Lingua Italiana", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "Milano-Capital", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Corso di Italiano - Mese", > > "price": "120.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Scuola di Lingua Italiana", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "10", > > "street": "Via del Corso", > > "locality": "Roma", > > "region": "Milano-Capital", > > "code": "00186", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Corso di Italiano - Mese", > > "price": "120.00", > > "unit": "one" > > }, > > "sum": "120.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "it-sdi-exempt": "N4", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "120.00", > > "total": "120.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "it-sdi-exempt": "N4", > > "untdid-tax-category": "E" > > }, > > "base": "120.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "120.00", > > "payable": "120.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Italy reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "it-sdi-exempt": "N6.9", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "it-sdi-exempt": "N6.9", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be previously registered with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Italy intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Invopop SL", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "street": "Calle Pradillo 42", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "it-sdi-exempt": "N3.2", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "it-sdi-exempt": "N3.2", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Italy outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "it-sdi-exempt": "N2.1", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "it-sdi-exempt": "N2.1", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Italy - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. Include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`it-sdi-v1`](https://docs.gobl.org/addons/it-sdi-v1) addons to automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Italy export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "IT", > > "$addons": [ > > "eu-en16931-v2017", > > "it-sdi-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "it-sdi-document-type": "TD01", > > "it-sdi-format": "FPR12", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Tecnologie Adriatico S.r.l.", > > "tax_id": { > > "country": "IT", > > "code": "00159560366" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0205:IT00159560366" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0205", > > "code": "IT00159560366" > > } > > ], > > "addresses": [ > > { > > "num": "15", > > "street": "Via Giuseppe Verdi", > > "locality": "Milano", > > "region": "Milano-Capital", > > "code": "20121", > > "country": "IT" > > } > > ], > > "emails": [ > > { > > "addr": "fatturazione@tecnologieadriatico.it" > > } > > ], > > "ext": { > > "it-sdi-fiscal-regime": "RF01" > > } > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "it-sdi-exempt": "N3.1", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "it-sdi-exempt": "N3.1", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > [tab] Spain > > > [accordion] Peppol Spain - B2B standard invoice > > > > Regular invoices are used for B2B transactions. Regular invoices must be issued when: > > > > * The customer is a registered business (has a tax identification number). > > * The transaction amount is €400 VAT included or above, or the customer requires a full invoice. > > * The customer needs a complete invoice with all tax details for accounting or tax purposes. > > > > To create a regular invoice, include the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons and ensure the `customer` field contains valid tax identification details. The addons will automatically set the document type to `380` when the silo entry is built (which happens automatically when saving a silo entry through the API or console). > > > > > [!NOTE] > > > > > > The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid. > > > > ```json Spain standard B2B invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B48994131" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB48994131" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "rate": "general" > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B48994131" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB48994131" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB48994131" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "standard", > > "rate": "general", > > "percent": "21.0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "S" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "standard", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "S" > > }, > > "base": "1740.00", > > "percent": "21.0%", > > "amount": "365.40" > > } > > ], > > "amount": "365.40" > > } > > ], > > "sum": "365.40" > > }, > > "tax": "365.40", > > "total_with_tax": "2105.40", > > "payable": "2105.40" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B zero-rated invoice > > > > Zero-rated invoices are used for goods and services that are subject to VAT but taxed at a 0% rate. > > > > To create a zero-rated invoice, use the tax key `zero` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `Z` (zero rated goods) when the silo entry is built. > > > > > [!NOTE] > > > > > > With zero-rated supplies, businesses can still reclaim input VAT on their purchases, whereas with exempt supplies they cannot. > > > > ```json Spain zero rate invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B03176864" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB03176864" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "El País", > > "price": "2.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero" > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Barcelona Commerce S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B03176864" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB03176864" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB03176864" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Cataluña", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "El País", > > "price": "2.00", > > "unit": "one" > > }, > > "sum": "2.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "zero", > > "percent": "0%", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "Z" > > } > > } > > ], > > "total": "2.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "2.00", > > "total": "2.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "zero", > > "ext": { > > "es-verifactu-op-class": "S1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "Z" > > }, > > "base": "2.00", > > "percent": "0%", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "2.00", > > "payable": "2.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B exempt invoice > > > > Exempt invoices are used for B2B transactions that are exempt from VAT, which also covers exemptions in internal operations. > > > > To create an exempt invoice, use the tax key `exempt` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `E` when the silo entry is built. You must also state the reason for the exemption through the [CEF VATEX](https://docs.gobl.org/catalogues/cef#cef-vatex) - VAT exemption reason codes. > > > > > [!NOTE] > > > > > > Exempt operations are not subject to VAT but must still be reported. The `supplier` must be previously registered with the tax authority and the `customer` tax id must be valid. > > > > ```json Spain Peppol Exempt Invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Escuela de Lengua Española", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Madrid-Capital", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Curso de Español - Mes", > > "price": "120.00", > > "unit": "one" > > }, > > > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Escuela de Lengua Española", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB71353213" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "20", > > "street": "Passeig de Gràcia", > > "locality": "Barcelona", > > "region": "Madrid-Capital", > > "code": "08008", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "1", > > "item": { > > "name": "Curso de Español - Mes", > > "price": "120.00", > > "unit": "one" > > }, > > "sum": "120.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "es-verifactu-exempt": "E1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "E" > > } > > } > > ], > > "total": "120.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "120.00", > > "total": "120.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "exempt", > > "ext": { > > "cef-vatex": "VATEX-EU-132-1I", > > "es-verifactu-exempt": "E1", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "E" > > }, > > "base": "120.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "120.00", > > "payable": "120.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B services → EU customer (Reverse Charge) > > > > Reverse charge invoices are used for B2B services provided to customers in other EU member states. Reverse charge must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * The service is provided to a business customer (B2B), not a consumer. > > * The service is subject to VAT but the customer accounts for the VAT in their own country. > > > > To create a reverse charge invoice, use the tax key `reverse-charge` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `AE` (reverse charge) when the silo entry is built. > > > > > [!NOTE] > > > > > > With reverse charge, no VAT is charged by the supplier. The customer accounts for VAT in their own country. Both `supplier` and `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Spain reverse charge invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox services", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "es-verifactu-op-class": "S2", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "AE" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "reverse-charge", > > "ext": { > > "cef-vatex": "VATEX-EU-AE", > > "es-verifactu-op-class": "S2", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "AE" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B goods → EU customer (Intra-Community) > > > > Intra-community supply invoices are used for B2B goods delivered to customers in other EU member states. Intra-community supplies must be applied when: > > > > * The customer is a registered business in another EU member state (has a valid EU VAT ID). > > * Goods are physically delivered to another EU member state. > > * The supply is exempt from VAT in the origin country and subject to VAT in the destination country. > > > > To create an intra-community supply Peppol invoice, use the tax key `intra-community` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `K` (VAT exempt for EEA intra-community supply of goods and services) when the silo entry is built. > > > > > [!NOTE] > > > > > > With intra-community supplies in the EU, the customer accounts for VAT in their destination country. The `supplier` must be [previously registered](https://docs.invopop.com/guides/es-verifactu-supplier#create-a-supplier-entry) with the tax authority and the `customer` VAT ID must be valid and registered in the EU VIES system. > > > > ```json Spain intra-community invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017", > > "es-verifactu-v1" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "es-verifactu-doc-type": "F1", > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Benelux Industries SA/NV", > > "tax_id": { > > "country": "BE", > > "code": "0316597904" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0208:0316597904" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0208", > > "code": "0316597904" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Rue de la Loi", > > "locality": "Brussels", > > "region": "Brussels-Capital", > > "code": "1040", > > "country": "BE" > > } > > ], > > "emails": [ > > { > > "addr": "test@example.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "es-verifactu-exempt": "E5", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "K" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "intra-community", > > "ext": { > > "cef-vatex": "VATEX-EU-IC", > > "es-verifactu-exempt": "E5", > > "es-verifactu-regime": "01", > > "untdid-tax-category": "K" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B services → international customer (Outside Scope) > > > > Outside scope invoices are used for B2B services provided to customers outside the EU. > > > > To create an outside scope Peppol invoice, use the tax key `outside-scope` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `O` (Services outside scope of tax) when the silo entry is built. > > > > > [!NOTE] > > > > > > Services provided to non-EU customers are generally outside the scope of EU VAT. > > > > ```json Spain outside scope theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B85905495" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB85905495" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB85905495" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox service", > > "price": "145.00", > > "unit": "h" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "outside-scope", > > "ext": { > > "cef-vatex": "VATEX-EU-O", > > "untdid-tax-category": "O" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > > > [accordion] Peppol Spain - B2B goods → international customer (Export) > > > > Export invoices are used for B2B goods delivered to customers outside the EU. > > > > To create an export Peppol invoice, use the tax key `export` in your invoice lines. The [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) and [`es-verifactu-v1`](https://docs.gobl.org/addons/es-verifactu-v1) addons will automatically set the UNTDID 5305 tax category to `G` (Free export item, tax not charged) when the silo entry is built. > > > > > [!NOTE] > > > > > > Exported goods are exempt from VAT. The `supplier` must be previously registered with the tax authority. Customer tax identification is optional but recommended for record-keeping purposes. > > > > ```json Spain export invoice theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "$regime": "ES", > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "145.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G" > > } > > } > > ], > > "total": "145.00" > > } > > ], > > "payment": { > > "terms": { > > "detail": "Will be paid by 2026-06-02" > > } > > } > > } > > ``` > > > > ```json Built version theme={"system"} > > { > > "$schema": "https://gobl.org/draft-0/bill/invoice", > > "$regime": "ES", > > "$addons": [ > > "eu-en16931-v2017" > > ], > > "type": "standard", > > "series": "INV", > > "code": "PP000003", > > "issue_date": "2025-04-03", > > "currency": "EUR", > > "tax": { > > "ext": { > > "untdid-document-type": "380" > > } > > }, > > "supplier": { > > "name": "Invopop S.L.", > > "tax_id": { > > "country": "ES", > > "code": "B71353213" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::9920:ESB71353213" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "9920", > > "code": "ESB71353213" > > } > > ], > > "addresses": [ > > { > > "num": "42", > > "street": "Calle Pradillo", > > "locality": "Madrid", > > "region": "Madrid-Capital", > > "code": "28002", > > "country": "ES" > > } > > ], > > "emails": [ > > { > > "addr": "billing@example.com" > > } > > ] > > }, > > "customer": { > > "name": "Singapore Company LTD", > > "tax_id": { > > "country": "SG", > > "code": "199904785Z" > > }, > > "endpoints": [ > > { > > "uri": "iso6523-actorid-upis::0195:SGUEN199904785Z" > > } > > ], > > "inboxes": [ > > { > > "key": "peppol", > > "scheme": "0195", > > "code": "SGUEN199904785Z" > > } > > ], > > "addresses": [ > > { > > "street": "18 Marina Gardens Drive", > > "locality": "Singapore", > > "region": "Central Region", > > "code": "018953", > > "country": "SG" > > } > > ], > > "emails": [ > > { > > "addr": "billing+test@invopop.com" > > } > > ] > > }, > > "lines": [ > > { > > "i": 1, > > "quantity": "12", > > "item": { > > "name": "Sambox product", > > "price": "145.00", > > "unit": "one" > > }, > > "sum": "1740.00", > > "taxes": [ > > { > > "cat": "VAT", > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > } > > } > > ], > > "total": "1740.00" > > } > > ], > > "payment": { > > "terms": { > > "notes": "Will be paid by 2026-06-02" > > } > > }, > > "totals": { > > "sum": "1740.00", > > "total": "1740.00", > > "taxes": { > > "categories": [ > > { > > "code": "VAT", > > "rates": [ > > { > > "key": "export", > > "ext": { > > "cef-vatex": "VATEX-EU-G", > > "untdid-tax-category": "G" > > }, > > "base": "1740.00", > > "amount": "0.00" > > } > > ], > > "amount": "0.00" > > } > > ], > > "sum": "0.00" > > }, > > "tax": "0.00", > > "total_with_tax": "1740.00", > > "payable": "1740.00" > > } > > } > > ``` > [!NOTE] > > The `payment: { "terms": {"detail": "..."}}` field is required for [EN16931](https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467108950/EN+16931+compliance) (EU) invoices and should be filled in with due dates or payment terms. #### Validating the customer endpoint The Verify document can be sent action checks that a document can actually be delivered: both parties carry a Peppol inbox, the receiver is registered in the Peppol directory, and the receiver accepts the document type of the generated file. ### Receiving invoices Invopop automatically processes invoices received from the Peppol network using your configured *Incoming Workflow*. The workflow converts Peppol documents to [GOBL](https://docs.gobl.org) format and creates Silo Entries for each invoice. Configure your workflow with webhooks or Google Drive integration to deliver these invoices to your systems. ## FAQ Please contact the [Invopop support team](mailto:support@invopop.com) if you have any questions that are not listed here. > [accordion] What visibility do I need to have in my Peppol Party? > > The visibility of your Peppol Party determines what documents you can send and receive. > > * `smp`: Only SMP, should be used for testing > * `smp+sml`: SMP and SML, useful when you want to send documents but not receive them > * `smp+sml+peppol`: SMP, SML, and Peppol Directory, recommended for both sending and receiving documents as you will be visible in the Peppol Directory > > In general, you should use the highest visibility available. > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format? > > Yes, you can remove either format based on your needs. Our template includes both UBL and CII imports for comprehensiveness, but if you're certain you'll only receive invoices in one format, you can safely remove the unused format. This simplifies your workflow and reduces the number of apps you need to activate. > [accordion] What are Participant IDs? > > Participant IDs are unique identifiers for entities in the Peppol network. They consist of two parts: > > * **Scheme**: Identifies the type of identifier being used (e.g., `9920` for Spanish VAT numbers, `0208` for Belgian KBO/BCE numbers) > * **Code**: The actual identification number > > In most cases, Participant IDs are based on VAT numbers or local business identifiers. Since most countries have a default scheme, we can typically derive the Participant ID automatically from a Tax ID. > > Note that some countries support multiple schemes. For example, Belgium uses `0208` (KBO/BCE number) as the preferred default, but some entities are registered under `9925` (VAT number). When sending invoices, if you get a "receiver not found" error, the recipient may be registered under an alternative scheme. See the [Belgium FAQ](/faq/belgium) for details. > [accordion] When registering a supplier we get an error: 'XXXX:XXXXXXXXX is already registered' on the Register party on Peppol step > > This is because a supplier with the stated participant ID has already been registered in your workspace. > [accordion] Should I set the \$regime in Peppol? > > By default, the regime is automatically determined from each supplier's settings, which is recommended in Peppol. > [accordion] How do I assign multiple inboxes to a single supplier? > > You must register them through different silo entries, even though they represent the same party. The supplier must upload their proof of ownership documentation for each inbox assigned. > [accordion] What should we do if the customer doesn't belong to the Peppol network? > > In countries where Peppol is the standard but not mandatory, you must often provide an e-invoice even if the recipient isn't registered in the Peppol network. Both parties can agree on an alternative transfer method (not Peppol), but the invoice must still be EN16931 compliant. > > **Recommended approach:** > > * Set up a separate workflow that generates the XML without sending it via Peppol > * Alternatively, use your current workflow without the customer Peppol ID (the send Peppol document step will automatically skip) > * Fetch the generated XML > * Deliver it through an agreed-upon method, typically email > [accordion] How do I handle B2C invoices in Peppol? > > B2C (business-to-consumer) invoices typically don't include the structured customer information required for Peppol delivery, and most consumers don't have Peppol inboxes to receive invoices through the network. While it's technically possible to send B2C invoices via Peppol if you have the customer's Peppol endpoint details, this is rarely the case in practice. > > The recommended approach is to implement a conditional workflow: > > 1. **Check for Peppol capability** – Using the **If/Else** workflow step, detect the presence of the customer's inbox via the following expr: `count(customer.inboxes, true) > 0` > 2. **Set up an alternative flow** - Adding a workflow condition, select "OK" and code `false`. Then set-up your alternative flow (Generate PDF and send by email, for example). Make sure to stop the flow within the workflow condition at the end. > > This will ensure B2C invoices are handled by a separate flow. This hybrid approach ensures you can leverage Peppol's benefits for B2B transactions while maintaining a smooth invoicing process for your consumer customers. *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Peppol → # KSeF issuing invoices guide Source: https://docs.invopop.com/guides/pl-ksef Issue FA(3) invoices through Poland's KSeF 2.0 system. ## Introduction KSeF (Krajowy System e-Faktur) 2.0 is Poland's mandatory national e-invoicing system operated by the [Ministry of Finance](https://www.gov.pl/web/finanse). The system uses the FA(3) XML schema format for structured invoice data and provides real-time clearance for all B2B invoices. Invoices are encoded in FA(3), a strict XML format that enforces standardized fields for domestic and cross-border transactions. The KSeF system validates all submitted invoices in real-time and assigns a unique KSeF ID upon successful clearance. This guide covers three key processes: * [Invoice issuance](#send-an-invoice): Creating and sending FA(3) invoices through KSeF * [Credit notes](#issue-a-credit-note): Correcting cleared invoices with a *faktura korygująca* * [Invoice import](#import-received-invoices): Importing received invoices from KSeF For registering parties (suppliers) in the KSeF system, see the companion guide: [Poland: Supplier registration](/guides/pl-ksef-supplier). Invopop supports two use cases that require different configurations: * **Send only**: You issue invoices through KSeF on behalf of your suppliers. This is the simplest setup and does not require the Cron app or import/sync workflows. * **Send & receive**: In addition to sending, you also want to automatically import invoices received by your suppliers from KSeF. This requires the Cron app to periodically check for new invoices. The table below summarizes which components are needed for each use case: | Component | Send only | Send & receive | | - | :-: | :-: | | Poland app | ✓ | ✓ | | Cron app | — | ✓ | | Send invoice workflow | ✓ | ✓ | | Import invoice workflow | — | ✓ | | Sync invoices workflow | — | ✓ | | Registration workflow | [Send](/guides/pl-ksef-supplier#setup) | [Send & receive](/guides/pl-ksef-supplier#setup) | ## Prerequisites To issue invoices through KSeF, you will need: * **A registered party (supplier)**: follow the [KSeF supplier registration guide](/guides/pl-ksef-supplier) to connect the Poland app and register the party with KSeF before issuing. * **Customer details**, including their Polish Tax ID (NIP) for domestic B2B invoices. * **Line items** with quantities, prices, and applicable VAT rates. ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). > [!NOTE] > > The Poland app must already be connected and the party registered with KSeF — both are covered in the [supplier registration guide](/guides/pl-ksef-supplier). **1. Configure the invoice sending workflow** This workflow signs the GOBL document, converts it to FA(3) XML, and submits it to KSeF. > [card] [KSeF send invoice workflow](https://console.invopop.com/redirect/workflows/new?template=pl-send) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json KSeF issue invoice workflow theme={"system"} > { > "name": "KSeF issue invoice", > "description": "Issue an invoice through KSeF", > "schema": "bill/invoice", > "steps": [ > { > "id": "20bbac70-fb6e-11f0-8a4e-79beeb9e3cf2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "9b5f5330-fb70-11f0-bcdd-bdb71eaf1fb4", > "name": "Add sequential code", > "provider": "sequence.enumerate", > "summary": "Dynamic · KSeF · 000001", > "config": { > "name": "KSeF", > "padding": 6, > "start": 1 > } > }, > { > "id": "2f41c860-fb6e-11f0-8a4e-79beeb9e3cf2", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "2b064190-fb6e-11f0-8a4e-79beeb9e3cf2", > "name": "Generate FA_VAT v3 XML", > "provider": "gov-pl.generate" > }, > { > "id": "36ec8550-fb6e-11f0-8a4e-79beeb9e3cf2", > "name": "Send invoice to KSeF", > "provider": "gov-pl.send" > }, > { > "id": "3a3e2150-fb6e-11f0-8a4e-79beeb9e3cf2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "3eca1210-fb6e-11f0-8a4e-79beeb9e3cf2", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Running In this section, we'll provide details on how to issue invoices on behalf of a registered party. ### Send an invoice Once a party is registered, you can issue invoices on their behalf. The following examples show partial [GOBL](https://docs.gobl.org) documents you can copy and paste directly into the [Invopop Console](https://console.invopop.com) or store via the API as silo entries. > [!TIP] > > GOBL Invoices sent to KSeF require the regime set to PL and addons must include pl-favat-v3 for FA(3) schema compliance. > [accordion] B2B Standard Invoice > > In this example, we're issuing a standard B2B invoice from a Polish supplier to another Polish business customer. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the invoice, > * the [`pl-favat-v3`](https://docs.gobl.org/addons/pl-favat-v3) addon ensures the document will be validated using the KSeF rules built into the [GOBL](https://docs.gobl.org) library, > * there are no totals or calculations in the minimal version; all these will be calculated automatically when running `gobl build`, > * the built version in the second tab shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields like `i` (line index), `sum`, and `total`, and, > * make sure to process it with the "KSeF issue invoice" workflow created during setup. > > ```json B2B Standard Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "series": "INVOICE", > "code": "001", > "issue_date": "2026-01-20", > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ], > "emails": [ > { > "addr": "kontakt@testowa.pl" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "1111111111" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general", > "key": "standard" > } > ] > }, > { > "quantity": "5", > "item": { > "name": "Consulting Services", > "price": "150.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "reduced", > "key": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "detail": "Transfer payment to our bank account", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "type": "standard", > "series": "INVOICE", > "code": "001", > "issue_date": "2026-01-20", > "currency": "PLN", > "tax": { > "ext": { > "pl-favat-invoice-type": "VAT" > } > }, > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ], > "emails": [ > { > "addr": "kontakt@testowa.pl" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "1111111111" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pl-favat-tax-category": "1" > } > } > ], > "total": "1000.00" > }, > { > "i": 2, > "quantity": "5", > "item": { > "name": "Consulting Services", > "price": "150.00", > "unit": "h" > }, > "sum": "750.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "8.0%", > "ext": { > "pl-favat-tax-category": "2" > } > } > ], > "total": "750.00" > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "detail": "Transfer payment to our bank account", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ], > "ext": { > "pl-favat-payment-means": "6" > } > } > }, > "totals": { > "sum": "1750.00", > "total": "1750.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "1" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > }, > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "2" > }, > "base": "750.00", > "percent": "8.0%", > "amount": "60.00" > } > ], > "amount": "290.00" > } > ], > "sum": "290.00" > }, > "tax": "290.00", > "total_with_tax": "2040.00", > "payable": "2040.00" > } > } > ``` > [accordion] B2B Reverse Charge Invoice > > In this example, we're issuing a reverse charge invoice from a Polish supplier to a customer in another EU member state. > > Notice: > > * the customer has a valid EU VAT ID, indicating the transaction is subject to reverse charge mechanism, > * the minimal version contains only essential fields; totals and tax calculations are omitted, > * when running `gobl build`, the system automatically calculates totals, applies reverse charge rules, and normalizes the document, > * the built version shows all calculated fields including the reverse charge indicator, tax breakdowns, and final totals, and, > * the invoice is validated using the KSeF rules to ensure compliance with Polish e-invoicing requirements. > > ```json B2B Reverse Charge Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": [ > "reverse-charge" > ], > "series": "RC", > "code": "001", > "issue_date": "2026-01-20", > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "EU Business GmbH", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "addresses": [ > { > "street": "Hauptstraße 100", > "locality": "Berlin", > "code": "10115", > "country": "DE" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "IT Services - EU Reverse Charge", > "price": "5000.00" > }, > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge" > } > ] > } > ], > "notes": [ > { > "key": "legal", > "text": "Reverse charge mechanism applies - VAT to be accounted for by the customer." > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": [ > "reverse-charge" > ], > "type": "standard", > "series": "RC", > "code": "001", > "issue_date": "2026-01-20", > "currency": "PLN", > "tax": { > "ext": { > "pl-favat-invoice-type": "VAT", > "pl-favat-reverse-charge": "1" > } > }, > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "EU Business GmbH", > "tax_id": { > "country": "DE", > "code": "111111125" > }, > "addresses": [ > { > "street": "Hauptstraße 100", > "locality": "Berlin", > "code": "10115", > "country": "DE" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "IT Services - EU Reverse Charge", > "price": "5000.00" > }, > "sum": "5000.00", > "taxes": [ > { > "cat": "VAT", > "key": "reverse-charge", > "ext": { > "pl-favat-tax-category": "9" > } > } > ], > "total": "5000.00" > } > ], > "totals": { > "sum": "5000.00", > "total": "5000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "reverse-charge", > "ext": { > "pl-favat-tax-category": "9" > }, > "base": "5000.00", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "5000.00", > "payable": "5000.00" > }, > "notes": [ > { > "key": "legal", > "text": "Reverse charge mechanism applies - VAT to be accounted for by the customer." > } > ] > } > ``` > [accordion] B2B Credit Note > > In this example, we're issuing a credit note to correct or refund a previous invoice. In Poland, every correction is a *faktura korygująca* (corrective invoice) — there is no separate credit note document type. > > Notice: > > * the `type` field is set to `credit-note` to indicate this is a corrective document, > * the `preceding` field references the original invoice being corrected, including its KSeF number as a `favat-ksef-number` stamp, > * the minimal version contains only the essential fields; calculations are handled by GOBL, > * the built version shows `"pl-favat-invoice-type": "KOR"` automatically set in the tax extensions, mapping to the FA(3) corrective invoice type, > * quantities and amounts are expressed as positive values, as in every GOBL credit note; they are inverted wherever negative values are expected, such as in the FA(3) XML, and, > * the document is validated using the KSeF correction rules to ensure compliance with Polish requirements. > > ```json B2B Credit Note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "type": "credit-note", > "series": "KOR", > "code": "001", > "issue_date": "2026-01-20", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-01-20", > "series": "INVOICE", > "code": "001", > "reason": "Price correction", > "stamps": [ > { > "prv": "favat-ksef-number", > "val": "1234567890-20260120-ABCD1234-EF" > } > ], > "ext": { > "pl-favat-effective-date": "1" > } > } > ], > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "10.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general", > "ext": { > "pl-favat-tax-category": "1" > } > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "type": "credit-note", > "series": "KOR", > "code": "001", > "issue_date": "2026-01-20", > "currency": "PLN", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-01-20", > "series": "INVOICE", > "code": "001", > "reason": "Price correction", > "stamps": [ > { > "prv": "favat-ksef-number", > "val": "1234567890-20260120-ABCD1234-EF" > } > ], > "ext": { > "pl-favat-effective-date": "1" > } > } > ], > "tax": { > "ext": { > "pl-favat-invoice-type": "KOR" > } > }, > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "10.00", > "unit": "h" > }, > "sum": "100.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pl-favat-tax-category": "1" > } > } > ], > "total": "100.00" > } > ], > "totals": { > "sum": "100.00", > "total": "100.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "1" > }, > "base": "100.00", > "percent": "23.0%", > "amount": "23.00" > } > ], > "amount": "23.00" > } > ], > "sum": "23.00" > }, > "tax": "23.00", > "total_with_tax": "123.00", > "payable": "123.00" > } > } > ``` > [accordion] B2B Prepayment Invoice (Faktura Zaliczkowa) > > In this example, we're issuing a prepayment invoice to document an advance payment received before completing the delivery of goods or services. > > Notice: > > * the `$tags` field includes `partial`, which tells the FA\_VAT addon to classify this as a `ZAL` (Faktura Zaliczkowa) document type, > * the `payment.advances` array records the advance payment details, including the mandatory `date` field and a `percent` of the total, > * GOBL automatically calculates the advance amount from the percentage and deducts it from the payable total to produce the `due` amount, > * the built version shows `"pl-favat-invoice-type": "ZAL"` automatically set in the tax extensions, and, > * after sending this invoice through KSeF, reference the assigned KSeF number in the subsequent settlement invoice. > > ```json B2B Prepayment Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": ["partial"], > "series": "ZAL", > "code": "001", > "issue_date": "2026-01-20", > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "1111111111" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general", > "key": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "key": "credit-transfer", > "description": "Advance payment for software development project", > "date": "2026-01-20", > "percent": "50%" > } > ], > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": [ > "partial" > ], > "type": "standard", > "series": "ZAL", > "code": "001", > "issue_date": "2026-01-20", > "currency": "PLN", > "tax": { > "ext": { > "pl-favat-invoice-type": "ZAL" > } > }, > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "1111111111" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pl-favat-tax-category": "1" > } > } > ], > "total": "1000.00" > } > ], > "payment": { > "advances": [ > { > "date": "2026-01-20", > "key": "credit-transfer", > "description": "Advance payment for software development project", > "percent": "50%", > "amount": "615.00", > "ext": { > "pl-favat-payment-means": "6" > } > } > ], > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ], > "ext": { > "pl-favat-payment-means": "6" > } > } > }, > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "1" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > } > ], > "amount": "230.00" > } > ], > "sum": "230.00" > }, > "tax": "230.00", > "total_with_tax": "1230.00", > "payable": "1230.00", > "advance": "615.00", > "due": "615.00" > } > } > ``` > [accordion] B2B Settlement Invoice (Faktura Rozliczeniowa) > > In this example, we're issuing a settlement invoice to finalize a transaction after one or more advance payments have been made. > > Notice: > > * the `$tags` field includes `settlement`, which tells the FA\_VAT addon to classify this as a `ROZ` (Faktura Rozliczeniowa) document type, > * the `preceding` field references the original prepayment invoice, including its KSeF number stamp, > * the `payment.advances` array records the previously paid advance amount, which GOBL deducts from the total to calculate the remaining `due`, > * the line items represent the full value of the delivered goods or services, and, > * the built version shows `"pl-favat-invoice-type": "ROZ"` automatically set in the tax extensions. > > ```json B2B Settlement Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": ["settlement"], > "series": "ROZ", > "code": "001", > "issue_date": "2026-02-15", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-01-20", > "series": "ZAL", > "code": "001", > "stamps": [ > { > "prv": "favat-ksef-number", > "val": "9876543210-20260120-ABCD1234-EF" > } > ] > } > ], > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "1111111111" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general", > "key": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "description": "Advance payment per ZAL/001", > "date": "2026-01-20", > "amount": "615.00" > } > ], > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ] > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": [ > "settlement" > ], > "type": "standard", > "series": "ROZ", > "code": "001", > "issue_date": "2026-02-15", > "currency": "PLN", > "preceding": [ > { > "type": "standard", > "issue_date": "2026-01-20", > "series": "ZAL", > "code": "001", > "stamps": [ > { > "prv": "favat-ksef-number", > "val": "9876543210-20260120-ABCD1234-EF" > } > ] > } > ], > "tax": { > "ext": { > "pl-favat-invoice-type": "ROZ" > } > }, > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ] > }, > "customer": { > "name": "Klient Testowy Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "1111111111" > }, > "addresses": [ > { > "street": "ul. Testowa 10", > "locality": "Kraków", > "code": "30-001", > "country": "PL" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pl-favat-tax-category": "1" > } > } > ], > "total": "1000.00" > } > ], > "payment": { > "advances": [ > { > "date": "2026-01-20", > "description": "Advance payment per ZAL/001", > "amount": "615.00" > } > ], > "instructions": { > "key": "credit-transfer", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ], > "ext": { > "pl-favat-payment-means": "6" > } > } > }, > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "1" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > } > ], > "amount": "230.00" > } > ], > "sum": "230.00" > }, > "tax": "230.00", > "total_with_tax": "1230.00", > "payable": "1230.00", > "advance": "615.00", > "due": "615.00" > } > } > ``` > [accordion] B2C Invoice (voluntary) > > > [!NOTE] > > > > B2C invoices are excluded from the mandatory e-invoicing requirement. The tax authority already receives B2C sales data through online fiscal cash registers that transmit receipts to the Central Repository of Cash Registers (CRK). However, businesses may voluntarily issue B2C invoices through KSeF. > > ```json KSeF B2C Invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": [ > "simplified" > ], > "uuid": "019c2849-dd61-7001-8c88-3c6d1aa83f8a", > "type": "standard", > "series": "SIMPLE", > "code": "236", > "issue_date": "2026-02-04", > "currency": "PLN", > "tax": { > "ext": { > "pl-favat-invoice-type": "UPR" > } > }, > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9551893317" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ], > "emails": [ > { > "addr": "kontakt@testowa.pl" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pl-favat-tax-category": "1" > } > } > ], > "total": "1000.00" > }, > { > "i": 2, > "quantity": "5", > "item": { > "name": "Consulting Services", > "price": "150.00", > "unit": "h" > }, > "sum": "750.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "8.0%", > "ext": { > "pl-favat-tax-category": "2" > } > } > ], > "total": "750.00" > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "detail": "Transfer payment to our bank account", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ], > "ext": { > "pl-favat-payment-means": "6" > } > } > }, > "totals": { > "sum": "1750.00", > "total": "1750.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "1" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > }, > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "2" > }, > "base": "750.00", > "percent": "8.0%", > "amount": "60.00" > } > ], > "amount": "290.00" > } > ], > "sum": "290.00" > }, > "tax": "290.00", > "total_with_tax": "2040.00", > "payable": "2040.00" > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$addons": [ > "pl-favat-v3" > ], > "$tags": [ > "simplified" > ], > "uuid": "019c2849-dd61-7001-8c88-3c6d1aa83f8a", > "type": "standard", > "series": "SIMPLE", > "code": "236", > "issue_date": "2026-02-04", > "currency": "PLN", > "tax": { > "ext": { > "pl-favat-invoice-type": "UPR" > } > }, > "supplier": { > "name": "Testowa Firma Sp. z o.o.", > "tax_id": { > "country": "PL", > "code": "9551893317" > }, > "addresses": [ > { > "street": "ul. Główna 1", > "locality": "Warszawa", > "code": "00-001", > "country": "PL" > } > ], > "emails": [ > { > "addr": "kontakt@testowa.pl" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Software Development Services", > "price": "100.00", > "unit": "h" > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pl-favat-tax-category": "1" > } > } > ], > "total": "1000.00" > }, > { > "i": 2, > "quantity": "5", > "item": { > "name": "Consulting Services", > "price": "150.00", > "unit": "h" > }, > "sum": "750.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "8.0%", > "ext": { > "pl-favat-tax-category": "2" > } > } > ], > "total": "750.00" > } > ], > "payment": { > "instructions": { > "key": "credit-transfer", > "detail": "Transfer payment to our bank account", > "credit_transfer": [ > { > "iban": "PL61109010140000071219812874", > "name": "Testowa Firma Sp. z o.o." > } > ], > "ext": { > "pl-favat-payment-means": "6" > } > } > }, > "totals": { > "sum": "1750.00", > "total": "1750.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "1" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > }, > { > "key": "standard", > "ext": { > "pl-favat-tax-category": "2" > }, > "base": "750.00", > "percent": "8.0%", > "amount": "60.00" > } > ], > "amount": "290.00" > } > ], > "sum": "290.00" > }, > "tax": "290.00", > "total_with_tax": "2040.00", > "payable": "2040.00" > } > } > ``` > [accordion] Self-billed Invoice > > A self-billed invoice (samofakturowanie) is issued by the customer on behalf of the supplier, under a prior agreement between the two parties. > > ```json KSeF self-billed invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$tags": [ > "self-billed" > ], > "code": "SAMPLE-001", > "issue_date": "2025-08-01", > "supplier": { > "name": "Provide One S.L.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "num": "42", > "street": "ul. Przykładowa", > "locality": "Warszawa", > "region": "mazowieckie", > "code": "00-015", > "country": "PL" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Your Company S.A.", > "tax_id": { > "country": "PL", > "code": "1234567788" > }, > "addresses": [ > { > "num": "43", > "street": "ul. Przykładowa", > "locality": "Warszawa", > "region": "mazowieckie", > "code": "00-015", > "country": "PL" > } > ] > }, > "lines": [ > { > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Financial service", > "price": "10.00", > "unit": "service" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "reduced" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PL", > "$tags": [ > "self-billed" > ], > "type": "standard", > "code": "SAMPLE-001", > "issue_date": "2025-08-01", > "currency": "PLN", > "supplier": { > "name": "Provide One S.L.", > "tax_id": { > "country": "PL", > "code": "9876543210" > }, > "addresses": [ > { > "num": "42", > "street": "ul. Przykładowa", > "locality": "Warszawa", > "region": "mazowieckie", > "code": "00-015", > "country": "PL" > } > ], > "emails": [ > { > "addr": "billing@example.com" > } > ] > }, > "customer": { > "name": "Your Company S.A.", > "tax_id": { > "country": "PL", > "code": "1234567788" > }, > "addresses": [ > { > "num": "43", > "street": "ul. Przykładowa", > "locality": "Warszawa", > "region": "mazowieckie", > "code": "00-015", > "country": "PL" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%" > } > ], > "total": "1800.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Financial service", > "price": "10.00", > "unit": "service" > }, > "sum": "10.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "reduced", > "percent": "8.0%" > } > ], > "total": "10.00" > } > ], > "totals": { > "sum": "1810.00", > "total": "1810.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "base": "1800.00", > "percent": "23.0%", > "amount": "414.00" > }, > { > "key": "standard", > "base": "10.00", > "percent": "8.0%", > "amount": "0.80" > } > ], > "amount": "414.80" > } > ], > "sum": "414.80" > }, > "tax": "414.80", > "total_with_tax": "2224.80", > "payable": "2224.80" > } > } > ``` After creating the invoice in the Console: 1. Click **Build** to validate 2. Click **Save** to store in the silo 3. Click **Select workflow** and choose the **KSeF Send Invoice** workflow 4. Click **Run workflow** The invoice will be validated, converted to FA(3) XML format, and sent to KSeF. Upon successful clearance, it will receive a unique KSeF ID. > [!NOTE] > > For international transactions, the invoice is created and cleared in KSeF just like domestic invoices. Because the foreign recipient cannot log into KSeF, delivery happens outside the platform (via email, EDI, etc.) with the KSeF QR code included for verification. ### Issue a credit note Polish VAT law does not recognise credit or debit notes as separate document types: every correction to a cleared invoice is issued as a *faktura korygująca* (corrective invoice), as set out in art. 106j of the VAT act. In GOBL, you create one as an invoice with the type `credit-note` — the [`pl-favat-v3`](https://docs.gobl.org/addons/pl-favat-v3) addon automatically classifies it as the FA(3) `KOR` document type (setting the `pl-favat-invoice-type` tax extension) and applies the KSeF correction rules. To generate a credit note: * Set `type` to `credit-note`, and use the same supplier details as in the original invoice. * Reference the original invoice in the `preceding` array, including its `issue_date`, `series` and `code`, plus the KSeF number it was assigned on clearance as a `favat-ksef-number` stamp. * Optionally, add the `pl-favat-effective-date` extension to the preceding reference to state when the correction takes effect for VAT purposes: `1` (date of the original invoice), `2` (date of the credit note itself), or `3` (another date). * Add the line items for the amounts being credited. As with every GOBL credit note, quantities and amounts are expressed as positive values; Invopop inverts them wherever negative values are expected, such as in the FA(3) XML. Process the credit note with the same [send invoice workflow](#send-an-invoice) used for regular invoices: KSeF clears the correction and assigns it its own KSeF number. You can copy the **B2B Credit Note** example from the accordion above as a starting point. Corrections of prepayment and settlement invoices work the same way, keeping the matching tag on the credit note: `partial` produces a `KOR_ZAL` (correction of a *faktura zaliczkowa*) and `settlement` produces a `KOR_ROZ` (correction of a *faktura rozliczeniowa*). > [!TIP] > > PDFs of Polish credit notes are titled "Faktura korygująca", following the official KSeF terminology. To also display the amounts as negative differences from the original invoice — the presentation Polish customers expect — enable the **Adjustment invoices** option in the Generate PDF step, or pass the `pdf-adjustment-mode` arg. See [Why would I want to use adjustment invoices?](/guides/pdf-invoice#why-would-i-want-to-use-adjustment-invoices) for details. ### Import received invoices > [!NOTE] > > This section only applies if you configured the **send & receive** setup. If you only need to send invoices, you can skip this section entirely. Once you've configured the import and sync workflows, and registered parties with the [send & receive registration workflow](/guides/pl-ksef-supplier#setup), the [Cron app](/apps/cron) automatically triggers the sync workflow at the interval configured in the registration workflow's **Subscribe to periodic KSeF sync** step. Here is how it works: 1. **Cron scheduling**: The [Cron app](/apps/cron) creates a job for the sync workflow at each configured interval, passing the time window (`from` and `upto`) to process 2. **Sync workflow**: The sync workflow queries KSeF for all invoices received within the time window 3. **Import jobs**: For each invoice found, a job is created using your import workflow 4. **Import workflow**: Each job downloads the FA(3) XML from KSeF, converts it to GOBL format, and stores it in your Invopop silo 5. **Organization**: Imported invoices are automatically placed in the configured folder (typically "Invoices · Expenses") with a `Registered` state > [!NOTE] > > Each party is subscribed to periodic imports during registration when using the **receive** registration workflow. To use a different interval for a specific party, adjust the **Subscribe to periodic KSeF sync** step settings in the registration workflow before running it. #### Manual import If you need to import invoices outside of the automatic cron schedule, you can manually trigger imports from the [Console](/guides/workflows#running-from-the-console) or via the API. **Import a single invoice** To import a specific invoice from KSeF, you need: * **KSeF Number**: The unique invoice identifier (e.g., `1234567890-20260120-ABCD1234-EF`) * **Supplier NIP**: The Polish Tax ID of the invoice issuer > [tab] Console > > 1. Navigate to **Workflows** and find your **KSeF Import Invoice** workflow > 2. Click **Run** from the workflow editor or the `...` menu in the workflow list (see [Running from the Console](/guides/workflows#running-from-the-console)) > 3. Leave the document field empty — the import workflow will create a new silo entry automatically > 4. Fill in the **Arguments**: > > | Key | Value | > | - | - | > | `ksef-number` | `1234567890-20260120-ABCD1234-EF` | > | `nip` | `1234567890` | > > 5. Click Run workflow > [tab] API > > Use the [Create a Job endpoint](/api-ref/transform/jobs/create-a-job-post): > > ```bash theme={"system"} > curl -X POST https://api.invopop.com/transform/v1/jobs \ > -H "Authorization: Bearer YOUR_API_TOKEN" \ > -H "Content-Type: application/json" \ > -d '{ > "workflow_id": "YOUR_IMPORT_WORKFLOW_ID", > "args": { > "ksef-number": "1234567890-20260120-ABCD1234-EF", > "nip": "1234567890" > } > }' > ``` The invoice will be downloaded from KSeF, converted to GOBL, and stored in your silo. **Import multiple invoices by date range** To import all invoices received within a specific time period, you need: * The **party silo entry** for the supplier whose invoices you want to sync * The **date range** (`from` and `upto`) to process > [tab] Console > > 1. Navigate to **Workflows** and find your **KSeF Sync Received Invoices** workflow > 2. Click **Run** from the workflow editor or the `...` menu in the workflow list > 3. In the **Select a document** field, search for and select the party (supplier) entry > 4. Fill in the **Arguments**: > > | Key | Value | > | - | - | > | `from` | `2026-01-01T00:00:00Z` | > | `upto` | `2026-01-31T23:59:59Z` | > > 5. Click Run workflow > [tab] API > > Use the [Create a Job endpoint](/api-ref/transform/jobs/create-a-job-post) with your sync workflow: > > ```bash theme={"system"} > curl -X POST https://api.invopop.com/transform/v1/jobs \ > -H "Authorization: Bearer YOUR_API_TOKEN" \ > -H "Content-Type: application/json" \ > -d '{ > "workflow_id": "YOUR_SYNC_WORKFLOW_ID", > "silo_entry_id": "YOUR_PARTY_ENTRY_ID", > "args": { > "from": "2026-01-01T00:00:00Z", > "upto": "2026-01-31T23:59:59Z" > } > }' > ``` The sync workflow will query KSeF for all invoices received in that date range and create individual import jobs for each invoice found. > [!TIP] > > Use single invoice import to bring in a specific invoice immediately after receiving notification from a supplier. Use date range sync to backfill invoices or to import historical invoices from before the cron subscription was active. #### Error handling and notifications We strongly recommend adding notification steps to your workflows to alert you of import failures: * **In the import workflow**: Add email or Slack notifications to the error handling section * **In the sync workflow**: Add notifications for when the sync process encounters issues This ensures you're immediately aware if invoices fail to import, allowing you to take corrective action. > [!TIP] > > Common import issues include certificate expired or invalid, KSeF API temporarily unavailable, invoice format not supported by GOBL conversion, and network connectivity issues. Check your workflow error logs in the Console for detailed error messages. ## GOBL addon reference Detailed information about the FA(3)-specific extensions and validations can be found in: * [Poland FA(3) VAT v3 Addon Documentation](https://docs.gobl.org/addons/pl-favat-v3) * [Poland Tax Regime Documentation](https://docs.gobl.org/regimes/pl) You can also use the [GOBL Builder](https://build.gobl.org) to create custom invoices with the Polish regime and FA(3) addon. ## FAQ > [accordion] What happens when I send an invoice to a foreign recipient? > > International (cross-border) invoices are handled just like domestic invoices in KSeF: > > * The invoice is created in GOBL with the foreign recipient's details > * It's converted to FA(3) XML format and submitted to KSeF > * KSeF validates and clears the invoice, assigning a unique KSeF ID > * The invoice is registered in the KSeF system > > However, since foreign recipients cannot access KSeF, you must deliver the invoice through other channels (email, EDI, etc.). Include the KSeF QR code in the delivery for verification purposes. > [accordion] What's the difference between test, demo, and production environments? > > **Test mode** (sandbox only): Uses self-signed certificates generated automatically by Invopop. Perfect for quick testing without accessing the KSeF portal. Invoices are not sent to real KSeF servers. > > **Demo mode** (sandbox only): Connects to the official [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/). Requires manual certificate generation, simulating the full production flow in a safe test environment. > > **Production mode** (live workspace): Connects to the live [KSeF Portal](https://ap.ksef.mf.gov.pl/). Requires valid company credentials and certificates. All invoices are submitted to the official KSeF system. > > > [!TIP] > > > > Use test mode for initial integration testing, then switch to demo mode when you're ready to simulate the real certificate flow before going live. > [accordion] What KSeF applications and portals are available? > > Official KSeF applications: > > * [KSeF Taxpayer Application](https://ksef.podatki.gov.pl/aplikacja-podatnika-ksef-i-inne-narzedzia/bezplatne-narzedzie-wersja-produkcyjna/) – the main portal with all functionalities > * [KSeF Mobile Application](https://ksef.podatki.gov.pl/aplikacja-podatnika-ksef-i-inne-narzedzia/aplikacja-mobilna-ksef/) – a mobile app for on-the-go access > * [e-mikrofirma](https://login.mf.gov.pl/Account/Select?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3D09e2877e-702a-4e27-8818-9472ca964c0a%26redirect_uri%3Dhttps%253A%252F%252Furzadskarbowy.gov.pl%26response_type%3Dcode%26scope%3Dprofile%2520openid%2520DataHub.UserAccess%2520eFormsClientApi.UserAccess%2520ChatApi.UserAccess%2520offline_access%26state%3D8f196c7682654d0da49b42bfc9045e51%26code_challenge%3DSIwxyxXJpAzUgzrMW96UIH9vNc6P0-dkdc7l482AWQA%26code_challenge_method%3DS256) – a simplified portal aimed at micro-entrepreneurs > > For testing: > > * [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/) – demo environment for testing > [accordion] How do I configure my workspace for Polish invoicing? > > Install the KSeF Poland app, register your supplier (Test, Demo, or Production environment), and run invoices through the Send Invoice workflow. Each environment requires its own NIP and certificate setup. > [accordion] I get a "failed to create session (Status 403 Forbidden)" error when sending an invoice to KSeF. What does it mean? > > This error means the uploaded KSeF certificate does not have the required permissions to issue invoices. This typically happens when the certificate was uploaded by someone who is not the company administrator and only has limited permissions granted by the main company account. > > The KSeF certificate uploaded to Invopop must belong to either: > > * The **company account** directly logged into KSeF, or > * An entity that has both **InvoiceRead** and **InvoiceWrite** permissions (managed within KSeF) > > To resolve this, you have two options: > > 1. **Grant permissions in KSeF**: The company admin (or whoever has direct access to the KSeF company account) grants `InvoiceRead` and `InvoiceWrite` permissions to the user who uploaded the certificate to Invopop. This can be done from the [KSeF application portal](https://ap.ksef.mf.gov.pl/) and requires no further action in Invopop (no need to unregister/register). > 2. **Re-register with a new certificate**: Unregister the supplier in Invopop and register it again using a certificate generated from the main KSeF company account (or another account with the required permissions). > [accordion] Where do I find Poland-specific GOBL documentation? > > See the [Poland tax regime in GOBL](https://docs.gobl.org/regimes/pl) for tax categories and NIP rules. The [`pl-favat-v3`](https://docs.gobl.org/addons/pl-favat-v3) addon documents the FA(3) schema fields required for KSeF. > [accordion] How do I set the unit of measure (jednostka miary) on a line item, like "szt." or "usł."? > > Polish invoicing law requires a unit of measure for every line, and KSeF maps it to the `P_8A` field on each `FaWiersz`. Invopop supports two ways to populate it: > > 1. **Canonical unit code on `Item.Unit`** — preferred when the unit exists in the GOBL unit catalogue or as a UN/ECE Recommendation 20 code. For example, `Item.Unit: "H87"` (piece) or `Item.Unit: "KGM"` (kilogram). The gobl.ksef converter emits the UN/ECE code directly into `P_8A`. > 2. **Free-form label on `Item.Meta["unit-label"]`** — use this for Polish abbreviations that do not match a canonical code, such as `"szt."` (sztuka — piece), `"usł."` (usługa — service), `"kpl."` (komplet — set) or `"opak."` (opakowanie — package). The value is passed through to `P_8A` unchanged, so the supplier's exact wording is preserved on the KSeF XML. > > Example line item using a free-form label: > > ```json theme={"system"} > { > "item": { > "name": "Konsultacja prawna", > "price": "200.00", > "meta": { > "unit-label": "usł." > } > }, > "quantity": "1" > } > ``` > > > [!NOTE] > > > > When an inbound KSeF invoice contains a `P_8A` value that is not a recognised GOBL or UN/ECE code, gobl.ksef preserves the original string under `Item.Meta["unit-label"]` so round-trips do not lose the supplier's wording. `Item.Unit` is only populated when the value validates as a canonical code. More available in our [Poland FAQ](/faq/poland) section *** > [accordion] 🇵🇱 Invopop resources for Poland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Poland](/compliance/poland) [Compliance timeline](/timelines/poland) | > | Apps | [Poland](/apps/poland) | > | Guides | [Supplier registration](/guides/pl-ksef-supplier) [Issuing invoices](/guides/pl-ksef) [Receiving invoices](/guides/pl-ksef-receiving) | > | FAQ | [Poland FAQ](/faq/poland) | > | GOBL | [Poland Tax Regime](https://docs.gobl.org/regimes/pl) [Polish KSeF FA(3) Addon](https://docs.gobl.org/addons/pl-favat-v3) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Poland → # KSeF receiving invoices guide Source: https://docs.invopop.com/guides/pl-ksef-receiving Automatically import invoices received through Poland's KSeF 2.0 system into your Invopop workspace. ## Introduction KSeF (Krajowy System e-Faktur) 2.0 is Poland's mandatory national e-invoicing system operated by the [Ministry of Finance](https://www.gov.pl/web/finanse). Because all B2B invoices are cleared through KSeF, the invoices your suppliers *receive* are also available in the system — and Invopop can import them into your workspace automatically. This guide walks you through configuring your workspace to periodically import received invoices from KSeF, and how to trigger imports manually when needed. Two companion guides cover the rest of the family: [Poland: Supplier registration](/guides/pl-ksef-supplier) and [Poland: Issuing invoices](/guides/pl-ksef). The import process uses two apps working together: * **[Poland](/apps/poland):** Queries KSeF for received invoices and converts the FA(3) XML to [GOBL](https://docs.gobl.org) format. * **[Cron](/apps/cron):** Schedules the sync workflow to run automatically at a regular interval (e.g., hourly or daily). ## Prerequisites To receive invoices from KSeF, you will need: * **The Poland app connected and a registration workflow in place**: covered in the [KSeF supplier registration guide](/guides/pl-ksef-supplier). Parties must be registered with the **send & receive** variant of the registration workflow described below. * **The Cron app**, connected as part of the setup in this guide. ## How it works Once everything is configured, imports run automatically: 1. **Cron scheduling**: The [Cron app](/apps/cron) creates a job for the sync workflow at each configured interval, passing the time window (`from` and `upto`) to process 2. **Sync workflow**: The sync workflow queries KSeF for all invoices received within the time window 3. **Import jobs**: For each invoice found, a job is created using your import workflow 4. **Import workflow**: Each job downloads the FA(3) XML from KSeF, converts it to GOBL format, and stores it in your Invopop silo 5. **Organization**: Imported invoices are automatically placed in the configured folder (typically "Invoices · Expenses") with a `Registered` state ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). > [!NOTE] > > The Poland app must already be connected — this is covered in the [supplier registration guide](/guides/pl-ksef-supplier). **1. Connect the Cron app** 1. Navigate to **Configuration** → **Apps** 2. Find **Cron** in the app discovery list 3. Click **Connect** to activate No additional configuration is needed. The [Cron app](/apps/cron) handles scheduling periodic workflow execution for importing received invoices. **2. Configure the invoice import workflow** This workflow imports an individual invoice from KSeF when it is received. It is automatically triggered by the sync workflow (configured in the next step) for each invoice found. > [card] [KSeF import invoice workflow](https://console.invopop.com/redirect/workflows/new?template=pl-import) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > > [!NOTE] > > > > This workflow receives KSeF number and NIP as input arguments, not a silo entry. It's designed to be triggered automatically by the sync workflow. > > ```json KSeF import invoice workflow theme={"system"} > { > "name": "KSeF import invoice", > "description": "Import an invoice received through KSeF", > "schema": "bill/invoice", > "steps": [ > { > "id": "ba8faad0-01d7-11f1-8b4e-fdb288ce1d84", > "name": "Import invoice from KSeF", > "provider": "gov-pl.import" > }, > { > "id": "5efe18e0-01e7-11f1-8a2b-3f4babb9af4d", > "name": "Set folder", > "provider": "silo.folder", > "summary": "Set folder to `Invoices · Expenses`{.font-medium}", > "config": { > "folder": "expenses" > } > }, > { > "id": "653ff700-01e7-11f1-8a2b-3f4babb9af4d", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "7d993da0-0275-11f1-94f6-05637523f70d", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Configure the invoice sync workflow** This workflow syncs all received invoices for a party within a specific time range. It creates an import job for each invoice found, using the import workflow you configured in the previous step. Configure the **Sync received invoices from KSeF** step to reference the import workflow created in the previous step. ![Configure the workflow that all invoices will be sent to](https://mintcdn.com/invopop/5xG_wGkekID7jeG3/assets/guides/pl-sync-config.png?fit=max\&auto=format\&n=5xG_wGkekID7jeG3\&q=85\&s=38b67787692f717d95bc4a5ad3be8164) > [card] [KSeF sync received invoices workflow](https://console.invopop.com/redirect/workflows/new?template=pl-sync) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json KSeF sync received invoices workflow theme={"system"} > { > "name": "KSeF sync received invoices", > "description": "Sync received invoices from KSeF and dispatch import jobs", > "schema": "org/party", > "steps": [ > { > "id": "5bddfd40-0220-11f1-bd80-c7df39ccdf0b", > "name": "Sync received invoices from KSeF", > "provider": "gov-pl.sync" > } > ], > "rescue": [] > } > ``` **4. Configure the send & receive registration workflow** To receive invoices for a party, the party must be registered with the **send & receive** variant of the registration workflow. In addition to registering the party with KSeF, this variant subscribes the party to periodic invoice imports via the [Cron app](/apps/cron). > [card] [KSeF party registration workflow (receive)](https://console.invopop.com/redirect/workflows/new?template=pl-register-receive) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > > [!NOTE] > > > > The template uses test mode by default (for sandbox). To use demo mode in sandbox, add `"config": {"environment": "demo"}` to the **Register supplier with KSeF** step. In Invopop production, the workflow automatically targets the KSeF production environment. > > ```json KSeF register supplier (receive) workflow theme={"system"} > { > "name": "KSeF register supplier (receive)", > "description": "Register a supplier with KSeF for receiving e-invoices", > "schema": "org/party", > "steps": [ > { > "id": "f6ca2240-fb6b-11f0-b2f4-37a8eb8f9eb9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "f7315970-fb74-11f0-8137-27e02839a7ca", > "name": "Register supplier with KSeF", > "provider": "gov-pl.register" > }, > { > "id": "3166cb10-fdba-11f0-a562-870ebfef62f3", > "name": "Wait for KSeF certificate upload", > "provider": "gov-pl.wait.upload" > }, > { > "id": "a1b2c3d0-fb75-11f0-b567-89abcdef0123", > "name": "Subscribe to periodic execution", > "provider": "cron.subscribe", > "summary": "Periodic KSeF sync" > }, > { > "id": "f0b45d30-fb6b-11f0-b2f4-37a8eb8f9eb9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "ebf99440-fb6b-11f0-b2f4-37a8eb8f9eb9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **5. Configure the cron step to start syncing invoices to Invopop** After adding the send & receive workflow (regardless of how you created it), open the **Subscribe to periodic KSeF sync** step and configure the two fields below. This is what tells the [Cron app](/apps/cron) which workflow to run and how often. 1. **Workflow** — select the **KSeF Sync Received Invoices** workflow you created earlier in this setup. The Cron app will trigger this workflow on each tick. 2. **Interval** — choose how often KSeF should be checked for new invoices (for example, every hour or every day). Pick a frequency that matches how quickly you need received invoices to appear in Invopop. Once configured, the step should look like this: ![Configured Subscribe to periodic KSeF sync step showing the selected sync workflow and interval](https://mintcdn.com/invopop/pOmQD8W3zKXkCwsD/assets/guides/pl-config-cron.png?fit=max\&auto=format\&n=pOmQD8W3zKXkCwsD\&q=85\&s=a7522555034af5f2ef884625c7a092b3) ## Running ### Register a party for receiving Register each party whose received invoices you want to import by running the **send & receive** registration workflow on their party entry. The registration steps — creating the party, running the workflow, and completing the certificate upload in demo or production — are identical to the ones described in the [supplier registration guide](/guides/pl-ksef-supplier#running); simply select the send & receive workflow instead of the send-only one. > [!NOTE] > > Each party is subscribed to periodic imports during registration. To use a different interval for a specific party, adjust the **Subscribe to periodic KSeF sync** step settings in the registration workflow before running it. > [!NOTE] > > If a party was already registered with the send-only workflow, run the send & receive workflow on the same party entry to subscribe it to periodic imports. ### Automatic import Once parties are registered with the send & receive workflow, the [Cron app](/apps/cron) automatically triggers the sync workflow at the interval configured in the registration workflow's **Subscribe to periodic KSeF sync** step, following the process described in [How it works](#how-it-works). Imported invoices appear in the configured folder (typically "Invoices · Expenses") with a `Registered` state. ### Manual import If you need to import invoices outside of the automatic cron schedule, you can manually trigger imports from the [Console](/guides/workflows#running-from-the-console) or via the API. **Import a single invoice** To import a specific invoice from KSeF, you need: * **KSeF Number**: The unique invoice identifier (e.g., `1234567890-20260120-ABCD1234-EF`) * **Supplier NIP**: The Polish Tax ID of the invoice issuer > [tab] Console > > 1. Navigate to **Workflows** and find your **KSeF Import Invoice** workflow > 2. Click **Run** from the workflow editor or the `...` menu in the workflow list (see [Running from the Console](/guides/workflows#running-from-the-console)) > 3. Leave the document field empty — the import workflow will create a new silo entry automatically > 4. Fill in the **Arguments**: > > | Key | Value | > | - | - | > | `ksef-number` | `1234567890-20260120-ABCD1234-EF` | > | `nip` | `1234567890` | > > 5. Click Run workflow > [tab] API > > Use the [Create a Job endpoint](/api-ref/transform/jobs/create-a-job-post): > > ```bash theme={"system"} > curl -X POST https://api.invopop.com/transform/v1/jobs \ > -H "Authorization: Bearer YOUR_API_TOKEN" \ > -H "Content-Type: application/json" \ > -d '{ > "workflow_id": "YOUR_IMPORT_WORKFLOW_ID", > "args": { > "ksef-number": "1234567890-20260120-ABCD1234-EF", > "nip": "1234567890" > } > }' > ``` The invoice will be downloaded from KSeF, converted to GOBL, and stored in your silo. **Import multiple invoices by date range** To import all invoices received within a specific time period, you need: * The **party silo entry** for the supplier whose invoices you want to sync * The **date range** (`from` and `upto`) to process > [tab] Console > > 1. Navigate to **Workflows** and find your **KSeF Sync Received Invoices** workflow > 2. Click **Run** from the workflow editor or the `...` menu in the workflow list > 3. In the **Select a document** field, search for and select the party (supplier) entry > 4. Fill in the **Arguments**: > > | Key | Value | > | - | - | > | `from` | `2026-01-01T00:00:00Z` | > | `upto` | `2026-01-31T23:59:59Z` | > > 5. Click Run workflow > [tab] API > > Use the [Create a Job endpoint](/api-ref/transform/jobs/create-a-job-post) with your sync workflow: > > ```bash theme={"system"} > curl -X POST https://api.invopop.com/transform/v1/jobs \ > -H "Authorization: Bearer YOUR_API_TOKEN" \ > -H "Content-Type: application/json" \ > -d '{ > "workflow_id": "YOUR_SYNC_WORKFLOW_ID", > "silo_entry_id": "YOUR_PARTY_ENTRY_ID", > "args": { > "from": "2026-01-01T00:00:00Z", > "upto": "2026-01-31T23:59:59Z" > } > }' > ``` The sync workflow will query KSeF for all invoices received in that date range and create individual import jobs for each invoice found. > [!TIP] > > Use single invoice import to bring in a specific invoice immediately after receiving notification from a supplier. Use date range sync to backfill invoices or to import historical invoices from before the cron subscription was active. ### Error handling and notifications We strongly recommend adding notification steps to your workflows to alert you of import failures: * **In the import workflow**: Add email or Slack notifications to the error handling section * **In the sync workflow**: Add notifications for when the sync process encounters issues This ensures you're immediately aware if invoices fail to import, allowing you to take corrective action. > [!TIP] > > Common import issues include certificate expired or invalid, KSeF API temporarily unavailable, invoice format not supported by GOBL conversion, and network connectivity issues. Check your workflow error logs in the Console for detailed error messages. ## FAQ > [accordion] How do I import received invoices from suppliers? > > Invopop automatically imports received invoices through a polling service: > > 1. **Configure polling interval** during party registration (hourly, daily, weekly, or monthly) > 2. **Set up the sync workflow** to query KSeF for new invoices > 3. **Configure the import workflow** to convert FA(3) XML to GOBL format > 4. **Link the workflows** in the Poland app configuration > > The system automatically checks KSeF at your chosen interval and imports any new invoices to your configured folder. > > **For manual import**, use the API to trigger import jobs with specific KSeF numbers or date ranges. See the [Manual import](/guides/pl-ksef-receiving#manual-import) section in the receiving invoices guide. > [accordion] Can I import historical invoices or backfill missed invoices? > > Yes. You can manually trigger a sync workflow to import invoices from a specific date range using the [Create a Job endpoint](/api-ref/transform/jobs/create-a-job-post). > > Pass the `from` and `upto` date parameters to sync all invoices received within that period: > > ```json theme={"system"} > { > "workflow_id": "YOUR_SYNC_WORKFLOW_ID", > "entry_id": "YOUR_PARTY_ENTRY_ID", > "args": { > "from": "2026-01-01T00:00:00Z", > "upto": "2026-01-31T23:59:59Z" > } > } > ``` > > This is useful for backfilling invoices after a polling outage or importing historical data before enabling automatic polling. > [accordion] How do I know if my automatic invoice import is working? > > Check these indicators: > > 1. **Polling configuration**: Verify the polling interval is set in your party registration workflow configuration > > 2. **App configuration**: Confirm the Poland app has your sync workflow configured > > 3. **Recent imports**: Check the "Invoices · Expenses" folder for newly imported invoices > > 4. **Job logs**: Review job logs in the Console for sync and import workflow executions > > 5. **Error notifications**: Set up email or Slack notifications in your workflow error handling to alert you of failures > > > [!TIP] > > > > Test the import by manually triggering the sync workflow with a date range that includes known received invoices. > [accordion] What format do received KSeF invoices arrive in? > > FA(3) XML conforming to the Ministry of Finance schema. Each invoice carries a unique KSeF reference (numer KSeF) plus the issuer's signature and a QR code linking to the public verification page. > [accordion] How does Invopop convert received Polish invoices into GOBL? > > Inbound FA(3) XMLs are parsed via [`gobl.ksef`](https://github.com/invopop/gobl.ksef). Tax rates, line items, and parties map onto GOBL fields; the original signed XML is preserved as a silo entry attachment. More available in our [Poland FAQ](/faq/poland) section *** > [accordion] 🇵🇱 Invopop resources for Poland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Poland](/compliance/poland) [Compliance timeline](/timelines/poland) | > | Apps | [Poland](/apps/poland) | > | Guides | [Supplier registration](/guides/pl-ksef-supplier) [Issuing invoices](/guides/pl-ksef) [Receiving invoices](/guides/pl-ksef-receiving) | > | FAQ | [Poland FAQ](/faq/poland) | > | GOBL | [Poland Tax Regime](https://docs.gobl.org/regimes/pl) [Polish KSeF FA(3) Addon](https://docs.gobl.org/addons/pl-favat-v3) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Poland → # KSeF supplier registration guide Source: https://docs.invopop.com/guides/pl-ksef-supplier Register parties (suppliers) with Poland's KSeF 2.0 system so you can issue invoices on their behalf. ## Introduction KSeF (Krajowy System e-Faktur) 2.0 is Poland's mandatory national e-invoicing system operated by the [Ministry of Finance](https://www.gov.pl/web/finanse). Before you can issue invoices through KSeF on behalf of a party (supplier), the party must be registered with the KSeF system. In this guide you'll learn how to register a party using the [Poland app](/apps/poland). Once a party is registered, continue with the companion guides: [Poland: Issuing invoices](/guides/pl-ksef) and [Poland: Receiving invoices](/guides/pl-ksef-receiving). | - | Sandbox | Live | | - | - | - | | **Supplier** | Fake NIP allowed (test mode); real NIP needed for demo mode | Valid NIP and KSeF portal credentials required | | **Mode** | Defaults to test; demo available via config | Automatically targets KSeF production | ## Prerequisites To register a party with KSeF, you will need: | Environment | Requirements | | - | - | | Invopop Sandbox Test mode | **Test Polish Tax ID (NIP)** You can generate fake NIPs for testing at [http://generatory.it/](http://generatory.it/). In test mode, a self-signed certificate will be generated automatically, and you can start sending invoices immediately. | | Invopop Sandbox Demo mode | **Real Polish Tax ID (NIP) and credentials to access the [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/)** Demo mode follows the same registration process as production but operates in the demo environment. | | Invopop Live | **Valid company NIP and credentials to access the [KSeF Portal](https://ap.ksef.mf.gov.pl/)** You will need to generate a certificate through the KSeF portal. Registration will automatically target the KSeF production environment. | ## Setup All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Connect the Poland app** 1. Navigate to **Configuration** → **Apps** 2. Find **Poland** in the app discovery list 3. Click **Connect** to activate ![Connect KSeF app](https://mintcdn.com/invopop/eZRYdDQqMJhhshgw/assets/guides/gov-pl-connect.png?fit=max\&auto=format\&n=eZRYdDQqMJhhshgw\&q=85\&s=2d26db0ad734f1da82b08b10244fc6d0) The initial connection requires no configuration. **2. Configure the party registration workflow** This workflow registers a party in KSeF so you can issue invoices on their behalf. > [!NOTE] > > There is also a **send & receive** variant of this workflow that additionally subscribes the party to periodic invoice imports via the [Cron app](/apps/cron). It is covered in the [receiving invoices guide](/guides/pl-ksef-receiving). ![Choose KSeF environment (Test or Demo)](https://mintcdn.com/invopop/m7w0i5JCm3gcCeuk/assets/guides/pl-register-config.png?fit=max\&auto=format\&n=m7w0i5JCm3gcCeuk\&q=85\&s=d4552763900a81f45280fffcfb15a242) In **Sandbox** the **Register supplier with KSeF** step allows you to configure the environment: * **Test**: Self-signed certificate generated automatically, no manual steps required. * **Demo**: Requires manual certificate generation from the demo portal. > [!NOTE] > > Test is more convenient while Demo more accurately simulates the production environment. It is convenient to create two workflows configured differently to easily switch between the Demo and Test options. In **live workspaces** no configuration is available, all suppliers are registered in the KSeF production environment. > [card] [KSeF party registration workflow (send)](https://console.invopop.com/redirect/workflows/new?template=pl-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > > [!NOTE] > > > > The template uses test mode by default (for sandbox). To use demo mode in sandbox, add `"config": {"environment": "demo"}` to the **Register supplier with KSeF** step. In Invopop production, the workflow automatically targets the KSeF production environment. > > ```json KSeF register supplier (send) workflow theme={"system"} > { > "name": "KSeF register supplier (send)", > "description": "Register a supplier with KSeF for sending e-invoices", > "schema": "org/party", > "steps": [ > { > "id": "f6ca2240-fb6b-11f0-b2f4-37a8eb8f9eb9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "f7315970-fb74-11f0-8137-27e02839a7ca", > "name": "Register supplier with KSeF", > "provider": "gov-pl.register" > }, > { > "id": "3166cb10-fdba-11f0-a562-870ebfef62f3", > "name": "Wait for KSeF certificate upload", > "provider": "gov-pl.wait.upload" > }, > { > "id": "f0b45d30-fb6b-11f0-b2f4-37a8eb8f9eb9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "ebf99440-fb6b-11f0-b2f4-37a8eb8f9eb9", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Running In this section, we'll provide details on how to register parties (suppliers) in the test, demo, and production environments. ### Register a party for test environment > [!NOTE] > > Choose test mode when you want to quickly test the KSeF integration without dealing with real certificates or authentication. Certificates are generated automatically, allowing you to start sending invoices immediately without any manual certificate generation. **1. Create the party** In the [Invopop Console](https://console.invopop.com), navigate to **Parties** → **Suppliers** and click + New Supplier. Use fake Polish Tax IDs (NIP) generated from [http://generatory.it/](http://generatory.it/): ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "Test Supplier Sp. z o.o.", "tax_id": { "country": "PL", "code": "9876543210" } } ``` Click Build, ensure there are no errors, and click Save. **2. Run the workflow** In the party entry, click on Select Workflow, choose your **KSeF Register Party (Test)** workflow, and click Run Workflow. **That's it!** ✓ Registration completes automatically. The party is now in Registered state and ready to issue invoices. At this point, you're ready to start sending invoices on behalf of the party. Head over to the [KSeF issuing invoices guide](/guides/pl-ksef) to continue. *** ### Register a party for demo/production environment > [!NOTE] > > In sandbox workspaces, choose Demo mode when you want to simulate the real production flow with KSeF authentication in a safe demo environment. **1. Create the party** Use real Polish Tax IDs (NIP) with access to the [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/) or [KSeF Portal](https://ap.ksef.mf.gov.pl/): ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/org/party", "name": "Real Company Sp. z o.o.", "tax_id": { "country": "PL", "code": "1234567890" } } ``` Click Build, ensure there are no errors, and click Save. **2. Run the workflow** On the party details page, click **Select Workflow**: * **For Demo**: Choose your **KSeF Register Party (Demo)** workflow * **For Production**: Choose your **KSeF Register Party (Production)** workflow Click Run Workflow. The party will be in Processing state until certificate upload is complete. **3. Access the registration link** Get the registration link to begin certificate generation: Your own company\\ In Console, go to the supplier entry → **Meta** tab → click the **gov-pl.invopop.com** link to launch the registration wizard. ![Supplier entry meta with KSeF registration link](https://mintcdn.com/invopop/N5Kgn5kuF0KDuWiM/assets/guides/pl-meta-link.png?fit=max\&auto=format\&n=N5Kgn5kuF0KDuWiM\&q=85\&s=aaf8cc93be5f8548a632d24d5555cca5) Third-party companies (white label)\\ Add a webhook after the **Register supplier with KSeF** step to receive the `siloEntryId`. Use the [Fetch an Entry endpoint](/api-ref/silo/entries/fetch-an-entry) to get the registration link from the `meta` object: ```json theme={"system"} { "data": { "meta": [ { "src": "gov-pl", "key": "link", "link_url": "https://gov-pl.invopop.com/reg/AbC123XyZ" } ] } } ``` Send the `link_url` to your customer. **4. Generate a certificate in KSeF portal** The registration wizard will guide you through these steps: 1. Visit the KSeF portal * Demo: [KSeF Demo Portal](https://ap-demo.ksef.mf.gov.pl/web/) * Production: [KSeF Portal](https://ap.ksef.mf.gov.pl/) 2. Log in with Trusted Profile (Profil Zaufany) * [Video tutorial: Setting up Trusted Profile](https://www.youtube.com/watch?v=V6E1fGUFPw4) 3. Generate the certificate * Navigate to certificate generation section * Enter certificate name and password (save the password!) * Download the private key (automatically generated) * Select "Authentication in the KSeF system" * Set start date to today or earlier (future dates will fail) * Download the certificate file * [Video tutorial: Certificate generation](https://www.youtube.com/watch?v=SE0IHuPHtRE) > [!WARNING] > > Save the certificate and private key files, as well as the password. You'll need them in the next step. **5. Upload certificate to Invopop** There are two ways to upload the certificate: Web Upload (Wizard)\\ Return to the registration wizard and upload: * Certificate file * Private key file * Password ![KSeF certificate upload form](https://mintcdn.com/invopop/N5Kgn5kuF0KDuWiM/assets/guides/pl-upload-certificate.png?fit=max\&auto=format\&n=N5Kgn5kuF0KDuWiM\&q=85\&s=372e0f53d21ba7d58948fb18a5dd5f60) Click Upload and verify certificate. The system validates and securely stores your credentials. API Upload\\ Upload the certificate programmatically using the [Upload KSeF certificate endpoint](/api-ref/apps/gov-pl/certificate-upload). > [!NOTE] > > This approach is ideal for automated integrations where you want to handle certificate generation and upload programmatically without user interaction with the web wizard. ✓ **Success**: The supplier transitions to Registered state and can begin issuing invoices. × **Failure**: See [Why did my supplier registration fail?](/faq/poland#why-did-my-supplier-registration-fail) in Poland's FAQ. At this point, you're ready to start sending invoices on behalf of the party. Head over to the [KSeF issuing invoices guide](/guides/pl-ksef) to continue. ## FAQ > [accordion] Why did my supplier registration fail? > > Common reasons for registration failures: > > * **Certificate and private key mismatch**: Ensure you uploaded both files from the same certificate generation > > * **Incorrect password**: Verify the password matches what you set during certificate generation > > * **Future start date**: Certificate start date must be today or in the past > > * **Wrong portal environment**: Demo certificates won't work with production, and vice versa > > * **File encoding issues**: For API uploads, ensure files are properly base64-encoded > > * **Expired certificate**: Check that the certificate is still valid > > * **Invalid NIP**: Verify the Polish Tax ID is correct and has access to KSeF > > > [!NOTE] > > > > Check the workflow error logs in the Invopop Console for detailed error messages that can help diagnose the specific issue. > [accordion] I don't have a Polish NIP for testing. How can I get one? > > **For sandbox testing**: > > * **Test mode**: Generate fake NIPs at [http://generatory.it/](http://generatory.it/). These work immediately with self-signed certificates. > * **Demo mode**: You need a real NIP with access to the KSeF Demo Portal. > [accordion] How do I onboard a new supplier in Poland? > > Choose an environment (Test, Demo, or Production). Generate a KSeF certificate from the relevant portal (or use a self-signed cert in Test mode), upload it to Invopop with the matching password, and register the supplier through the KSeF Register Supplier workflow. > [accordion] What certificates does KSeF require to authenticate a supplier? > > A KSeF certificate exported as PKCS#12 (.p12) with password, generated through the KSeF Application Portal (or auto-generated by Invopop in Test mode). The certificate must have InvoiceRead + InvoiceWrite permissions. > [accordion] How are supplier credentials stored in Invopop for Poland? > > The KSeF certificate (PKCS#12 .p12 with password) is stored encrypted at rest. Invopop uses it to authenticate session creation with KSeF on the supplier's behalf; the password is never returned in API responses. More available in our [Poland FAQ](/faq/poland) section *** > [accordion] 🇵🇱 Invopop resources for Poland > > | | | > | - | - | > | Compliance | [Invoicing compliance in Poland](/compliance/poland) [Compliance timeline](/timelines/poland) | > | Apps | [Poland](/apps/poland) | > | Guides | [Supplier registration](/guides/pl-ksef-supplier) [Issuing invoices](/guides/pl-ksef) [Receiving invoices](/guides/pl-ksef-receiving) | > | FAQ | [Poland FAQ](/faq/poland) | > | GOBL | [Poland Tax Regime](https://docs.gobl.org/regimes/pl) [Polish KSeF FA(3) Addon](https://docs.gobl.org/addons/pl-favat-v3) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Poland → # AT issuing invoices guide Source: https://docs.invopop.com/guides/pt-at Issue invoices, deliveries, and payments in Portugal using Invopop's certified implementation. ## Introduction Invopop, as a certified provider in Portugal, allows you to issue fully-compliant tax documents and report them to the *Autoridade Tributária e Aduaneira* (AT). Using the AT Portugal app, you can generate PDFs with the correct signatures, ATCUD and QR codes for all your documents (invoices, transport documents, payments, etc.). Also, you can report them to the AT either in batch, via periodic SAF-T PT reports, or in real-time, using the AT web services. This guide will walk you through the process of issuing invoices, delivery documents, and payments in a supplier's name, cancelling them if needed, and reporting them to the AT. ## Prerequisites To issue invoices and other documents in Portugal, you will need: * **A registered supplier**: follow the [AT supplier registration guide](/guides/pt-at-supplier) to connect the AT Portugal app, register the supplier, and register their document series before issuing. * Document details: * Line items with quantity, price, description * Applicable VAT rates * Any other details required for the specific document type ## Setup Prepare the processing and cancel workflows for the document types you plan to issue: invoices, deliveries, and payments. > [!NOTE] > > The AT Portugal app must already be connected and configured, and the supplier registered — this is covered in the [supplier registration guide](/guides/pt-at-supplier). All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Prepare the invoice processing workflow** > [!NOTE] > > You can skip this step if you don't plan to issue invoices. > [card] [AT issue invoice workflow](https://console.invopop.com/redirect/workflows/new?template=at-issue-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json AT issue invoice workflow theme={"system"} > { > "name": "AT issue invoice", > "description": "Issue an invoice through AT and generate PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "processing" > } > }, > { > "id": "76f194b0-f2b9-11ef-acb2-cd64e858247e", > "name": "Record document for SAF-T", > "provider": "at-pt.record" > }, > { > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > "name": "Send document to AT", > "provider": "at-pt.send" > }, > { > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Original", > "config": { > "date_format": "%Y-%m-%d", > "hide_promo": true, > "label": "Original", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "" > } > }, > { > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Duplicado", > "config": { > "date_format": "%Y-%m-%d", > "label": "Duplicado", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "", > "duplicate": true > } > }, > { > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "error" > } > } > ] > } > ``` **2. Prepare the invoice cancel workflow** > [!NOTE] > > You can skip this step if you don't plan to cancel invoices. > [card] [AT cancel invoice workflow](https://console.invopop.com/redirect/workflows/new?template=at-cancel-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json AT cancel invoice workflow theme={"system"} > { > "name": "AT cancel invoice", > "description": "Cancel an invoice through AT and generate PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "processing" > } > }, > { > "id": "cc0002a0-927f-11f0-8cd1-bd9f2c371090", > "name": "Cancel SAF-T record", > "provider": "at-pt.cancel" > }, > { > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > "name": "Send document to AT", > "provider": "at-pt.send" > }, > { > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "void" > } > }, > { > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Original", > "config": { > "date_format": "%Y-%m-%d", > "hide_promo": true, > "label": "Original", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "" > } > }, > { > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Duplicado", > "config": { > "date_format": "%Y-%m-%d", > "label": "Duplicado", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "", > "duplicate": true > } > } > ], > "rescue": [ > { > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "error" > } > } > ] > } > ``` **3. Prepare the delivery processing workflow** > [!NOTE] > > You can skip this step if you don't plan to issue delivery documents. > [card] [AT issue delivery workflow](https://console.invopop.com/redirect/workflows/new?template=at-issue-delivery) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Delivery workflow](https://console.invopop.com/redirect/workflows/new?template=empty-delivery) code view. > > ```json AT issue delivery workflow theme={"system"} > { > "name": "AT issue delivery", > "description": "Issue a delivery document through AT and generate PDF", > "schema": "bill/delivery", > "steps": [ > { > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "processing" > } > }, > { > "id": "76f194b0-f2b9-11ef-acb2-cd64e858247e", > "name": "Record document for SAF-T", > "provider": "at-pt.record" > }, > { > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > "name": "Send document to AT", > "provider": "at-pt.send" > }, > { > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Original", > "config": { > "date_format": "%Y-%m-%d", > "hide_promo": true, > "label": "Original", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "" > } > }, > { > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Duplicado", > "config": { > "date_format": "%Y-%m-%d", > "label": "Duplicado", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "", > "duplicate": true > } > }, > { > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "error" > } > } > ] > } > ``` **4. Prepare the delivery cancel workflow** > [!NOTE] > > You can skip this step if you don't plan to cancel delivery documents. > [card] [AT cancel delivery workflow](https://console.invopop.com/redirect/workflows/new?template=at-cancel-delivery) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Delivery workflow](https://console.invopop.com/redirect/workflows/new?template=empty-delivery) code view. > > ```json AT cancel delivery workflow theme={"system"} > { > "name": "AT cancel delivery", > "description": "Cancel a delivery document through AT and generate PDF", > "schema": "bill/delivery", > "steps": [ > { > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "processing" > } > }, > { > "id": "cc0002a0-927f-11f0-8cd1-bd9f2c371090", > "name": "Cancel SAF-T record", > "provider": "at-pt.cancel" > }, > { > "id": "59174840-c09a-11f0-b8a2-b531dbe0da3c", > "name": "Send document to AT", > "provider": "at-pt.send" > }, > { > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "void" > } > }, > { > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Original", > "config": { > "date_format": "%Y-%m-%d", > "hide_promo": true, > "label": "Original", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "" > } > }, > { > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Duplicado", > "config": { > "date_format": "%Y-%m-%d", > "label": "Duplicado", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "", > "duplicate": true > } > } > ], > "rescue": [ > { > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "error" > } > } > ] > } > ``` **5. Prepare the payment processing workflow** > [!NOTE] > > You can skip this step if you don't plan to issue payments. > [card] [AT issue payment workflow](https://console.invopop.com/redirect/workflows/new?template=pt-at-issue-payment) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Payment workflow](https://console.invopop.com/redirect/workflows/new?template=empty-payment) code view. > > ```json AT issue payment workflow theme={"system"} > { > "name": "AT issue payment", > "description": "Issue a payment through AT and generate PDF", > "schema": "bill/payment", > "steps": [ > { > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "processing" > } > }, > { > "id": "76f194b0-f2b9-11ef-acb2-cd64e858247e", > "name": "Record document for SAF-T", > "provider": "at-pt.record" > }, > { > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Original", > "config": { > "date_format": "%Y-%m-%d", > "hide_promo": true, > "label": "Original", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "" > } > }, > { > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Duplicado", > "config": { > "date_format": "%Y-%m-%d", > "label": "Duplicado", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "", > "duplicate": true > } > }, > { > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "error" > } > } > ] > } > ``` **6. Prepare the payment cancel workflow** > [!NOTE] > > You can skip this step if you don't plan to cancel payments. > [card] [AT cancel payment workflow](https://console.invopop.com/redirect/workflows/new?template=at-cancel-payment) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Payment workflow](https://console.invopop.com/redirect/workflows/new?template=empty-payment) code view. > > ```json AT cancel payment workflow theme={"system"} > { > "name": "AT cancel payment", > "description": "Cancel a payment through AT and generate PDF", > "schema": "bill/payment", > "steps": [ > { > "id": "6f884d90-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "processing" > } > }, > { > "id": "cc0002a0-927f-11f0-8cd1-bd9f2c371090", > "name": "Cancel SAF-T record", > "provider": "at-pt.cancel" > }, > { > "id": "7a708240-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "void" > } > }, > { > "id": "93795a50-f2b9-11ef-acb2-cd64e858247e", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Original", > "config": { > "date_format": "%Y-%m-%d", > "hide_promo": true, > "label": "Original", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "" > } > }, > { > "id": "ce7c50c0-9d55-11f0-b3a4-87562f21f508", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Portuguese · A4 · Duplicado", > "config": { > "date_format": "%Y-%m-%d", > "label": "Duplicado", > "layout": "A4", > "locale": "pt", > "logo_height": 40, > "watermark": "", > "duplicate": true > } > } > ], > "rescue": [ > { > "id": "805bdbf0-f2b9-11ef-acb2-cd64e858247e", > "name": "Set state", > "provider": "silo.state", > "config": { > "state": "error" > } > } > ] > } > ``` ## Running In this section, we'll provide details on how to issue AT invoices and other documents on behalf of a registered supplier, cancel them, and report them to the AT. > [!NOTE] > > The recommended approach for running jobs is to perform two steps: first upload the document to the [silo](/api-ref/silo/entries/create-an-entry-put), then [create a job](/api-ref/transform/jobs/create-a-job-put). ### Send a document The following examples show partial [GOBL](https://docs.gobl.org) documents you can copy and paste directly into the [Invopop Console](https://console.invopop.com) or store via the API as silo entries. After uploading, you must run the corresponding processing workflow (invoice, delivery, or payment) created during setup. > [!TIP] > > GOBL Documents reported to the AT require the regime to be set to PT and addons to include pt-saft-v1. Invopop will try to assign these automatically, but we recommend defining them explicitly before uploading. > [!NOTE] > > Documents are issued under one of the series registered during supplier onboarding, and their sequence number (the `code` property) is assigned automatically by the **Record document for SAF-T** step — do not add a sequence step. See [Series management](/guides/pt-at-supplier#series-management) in the supplier registration guide for naming rules, sequence assignment, and series types. > [accordion] AT B2B invoice > > In this example, we're issuing a simple invoice from a Portuguese supplier to another Portuguese business. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the invoice, without totals or calculations, > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon ensures the document will be validated and normalized using the SAF-T PT v1 rules built into the [GOBL](https://docs.gobl.org) library, > * the `supplier` and `series` fields are set to example values; you'll need to replace them with the details of supplier and series registered as per the previous sections. The series must be registered in the Supplier Portal and follow Portuguese naming conventions (see [Series management](/guides/pt-at-supplier#series-management) for details), > * when running `gobl build`, or uploading the file, the system automatically calculates totals, assigns the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension to `FT` (Fatura), sets the [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension to `CC` for card payment, and applies the [`pt-saft-tax-rate`](https://docs.gobl.org/addons/pt-saft-v1#tax-rate-code) extension to `NOR` for standard VAT, > * the built version in the second tab shows the normalized document with calculated totals, line item sums (including advance payment deductions), tax breakdowns, and automatically generated fields, and, > * the `h` item unit causes the [`pt-saft-product-type`](https://docs.gobl.org/addons/pt-saft-v1#product-type) extension to be set to `S` (Serviço), and the [`pt-region`](https://docs.gobl.org/regimes/pt#region-code) extension is automatically set to `PT`. > > ```json AT B2B Invoice (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "standard", > "series": "FT SERIES-A", > "issue_date": "2024-12-23", > "currency": "EUR", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ], > "websites": [ > { > "url": "https://gusto.example.com" > } > ], > "telephones": [ > { > "num": "+351912345678" > } > ] > }, > "lines": [ > { > "quantity": "20.0", > "item": { > "name": "Development services", > "price": "50.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "date": "2024-12-23", > "key": "card", > "description": "Advance payment", > "amount": "12.34" > } > ] > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "standard", > "series": "FT SERIES-A", > "issue_date": "2024-12-23", > "value_date": "2024-12-23", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-invoice-type": "FT", > "pt-saft-source": "P" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ], > "websites": [ > { > "url": "https://gusto.example.com" > } > ], > "telephones": [ > { > "num": "+351912345678" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20.0", > "item": { > "name": "Development services", > "price": "50.00", > "unit": "h", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "1000.00" > } > ], > "payment": { > "advances": [ > { > "date": "2024-12-23", > "key": "card", > "description": "Advance payment", > "amount": "12.34", > "ext": { > "pt-saft-payment-means": "CC" > } > } > ] > }, > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > } > ], > "amount": "230.00" > } > ], > "sum": "230.00" > }, > "tax": "230.00", > "total_with_tax": "1230.00", > "payable": "1230.00", > "advance": "12.34", > "due": "1217.66" > } > } > ``` > [accordion] AT invoice with IRS withholding > > In this example, a self-employed professional (*trabalhador independente*) invoices a Portuguese company for consulting services. On top of the standard VAT, the customer retains personal income tax (*IRS*) at source. > > Notice: > > * the minimal version in the first tab contains only the essential fields; the line carries a second tax on top of `VAT`: an `IRS` combo with `percent` set to `25%` and no `rate`, > * the document-level `tax.notes` entry with `cat: "IRS"` carries the legal basis for the withholding (here *Art. 101.º CIRS*); the SAF-T export surfaces it as the `WithholdingTaxType` (`IRS`) and `WithholdingTaxDescription` of the `WithholdingTax` block, and, > * in the built version the `IRS` tax becomes its own `retained` category in `totals.taxes`, separate from `VAT`, with `retained: "250.00"` (25% of the 1000,00 base). > > ```json AT Withholding Invoice (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "standard", > "series": "FT SERIES-A", > "issue_date": "2024-08-03", > "currency": "EUR", > "tax": { > "notes": [ > { > "cat": "IRS", > "text": "Art. 101.º CIRS" > } > ] > }, > "supplier": { > "name": "João Silva, Trabalhador Independente", > "tax_id": { > "country": "PT", > "code": "545259045" > }, > "addresses": [ > { > "street": "Rua das Flores", > "locality": "Lisboa", > "code": "1000-000", > "country": "PT" > } > ], > "emails": [ > { > "addr": "joao.silva@example.com" > } > ] > }, > "customer": { > "name": "Empresa Cliente, Lda.", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Serviços de consultoria", > "price": "1000.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > }, > { > "cat": "IRS", > "percent": "25%" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "standard", > "series": "FT SERIES-A", > "issue_date": "2024-08-03", > "value_date": "2024-08-03", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-invoice-type": "FT", > "pt-saft-source": "P" > }, > "notes": [ > { > "cat": "IRS", > "text": "Art. 101.º CIRS" > } > ] > }, > "supplier": { > "name": "João Silva, Trabalhador Independente", > "tax_id": { > "country": "PT", > "code": "545259045" > }, > "addresses": [ > { > "street": "Rua das Flores", > "locality": "Lisboa", > "code": "1000-000", > "country": "PT" > } > ], > "emails": [ > { > "addr": "joao.silva@example.com" > } > ] > }, > "customer": { > "name": "Empresa Cliente, Lda.", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Serviços de consultoria", > "price": "1000.00", > "unit": "h", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > }, > { > "cat": "IRS", > "percent": "25%" > } > ], > "total": "1000.00" > } > ], > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > } > ], > "amount": "230.00" > }, > { > "code": "IRS", > "retained": true, > "rates": [ > { > "base": "1000.00", > "percent": "25%", > "amount": "250.00" > } > ], > "amount": "250.00" > } > ], > "sum": "230.00", > "retained": "250.00" > }, > "tax": "230.00", > "total_with_tax": "1230.00", > "retained_tax": "250.00", > "payable": "980.00" > } > } > ``` > [accordion] AT Cash VAT invoice > > In this example, we're issuing a standard invoice from a Portuguese supplier that has adhered to the **Cash VAT scheme** (*regime de IVA de Caixa*), under which VAT becomes due only when the customer actually pays rather than when the invoice is issued. > > Notice: > > * the only difference from the standard AT B2B invoice above is the `cash-vat` tag (`$tags: ["cash-vat"]`), which flags the supplier's membership in the scheme, > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon reacts to that tag by setting the [`pt-saft-cash-vat`](https://docs.gobl.org/addons/pt-saft-v1#cash-vat-scheme-indicator) extension to `1` in the invoice's `tax` section, and, > * the document is otherwise a normal `standard` invoice: the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension is still set to `FT` (Fatura) and the standard VAT rate still maps to the [`pt-saft-tax-rate`](https://docs.gobl.org/addons/pt-saft-v1#tax-rate-code) extension `NOR`. > > ```json AT Cash VAT invoice (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "cash-vat" > ], > "type": "standard", > "series": "FT SERIES-A", > "issue_date": "2024-12-23", > "currency": "EUR", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ] > }, > "lines": [ > { > "quantity": "20.0", > "item": { > "name": "Development services", > "price": "50.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "cash-vat" > ], > "type": "standard", > "series": "FT SERIES-A", > "issue_date": "2024-12-23", > "value_date": "2024-12-23", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-cash-vat": "1", > "pt-saft-invoice-type": "FT", > "pt-saft-source": "P" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20.0", > "item": { > "name": "Development services", > "price": "50.00", > "unit": "h", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "1000.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "1000.00" > } > ], > "totals": { > "sum": "1000.00", > "total": "1000.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "1000.00", > "percent": "23.0%", > "amount": "230.00" > } > ], > "amount": "230.00" > } > ], > "sum": "230.00" > }, > "tax": "230.00", > "total_with_tax": "1230.00", > "payable": "1230.00" > } > } > ``` > [accordion] AT simplified invoice > > In this example, we're issuing a simplified invoice (*Fatura Simplificada*) — the short-form invoice used for low-value retail sales where the customer doesn't need to be identified. > > Notice: > > * the document carries the `simplified` tag (`$tags: ["simplified"]`) and omits the `customer` entirely, > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon reacts to the tag by setting the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension to `FS` (Fatura Simplificada), and the `series` follows the matching `FS ` prefix convention, > * if the document also records full payment (for example, a 100% advance), the addon derives the type `FR` (Fatura-Recibo) instead, and the series must then use the `FR ` prefix; see the [AT invoice-receipt](#at-invoice-receipt-fatura-recibo) example below, and, > * as with the other examples, totals and tax breakdowns are calculated automatically when running `gobl build` or uploading. > > ```json AT Simplified Invoice (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "FS SERIES-A", > "issue_date": "2024-12-23", > "currency": "EUR", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Suporte técnico presencial", > "price": "45.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "FS SERIES-A", > "issue_date": "2024-12-23", > "value_date": "2024-12-23", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-invoice-type": "FS", > "pt-saft-source": "P" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Suporte técnico presencial", > "price": "45.00", > "unit": "h", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "45.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "45.00" > } > ], > "totals": { > "sum": "45.00", > "total": "45.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "45.00", > "percent": "23.0%", > "amount": "10.35" > } > ], > "amount": "10.35" > } > ], > "sum": "10.35" > }, > "tax": "10.35", > "total_with_tax": "55.35", > "payable": "55.35" > } > } > ``` > [accordion] AT work document > > In this example, we're issuing a work document (*documento de conferência*): a non-fiscal document presented to a customer for checking goods or services before the final invoice. > > Notice: > > * work documents use the [`bill/order`](https://docs.gobl.org/draft-0/bill/order) schema rather than `bill/invoice`, and are reported to the AT under SAF-T's `WorkingDocuments` table, > * the [`pt-saft-work-type`](https://docs.gobl.org/addons/pt-saft-v1#document-type) extension is set explicitly to `OU` (*Outros*); unlike `NE` and `OR`, which the addon derives from the `purchase` and `quote` order types, `OU` has no order type of its own and must be declared, > * the `series` follows the `OU ` prefix convention and must be registered through the Supplier Portal, exactly as an invoice series is, > * when running `gobl build`, or uploading the document, the [`pt-saft-source`](https://docs.gobl.org/addons/pt-saft-v1#document-source) extension defaults to `P` (*produced*), totals and tax breakdowns are calculated, and the [`pt-saft-product-type`](https://docs.gobl.org/addons/pt-saft-v1#product-type) extension is derived per line, and, > * to close the loop once the document is invoiced, set the invoice line's `order` field to the work document's number (for example `OU SERIES-A/1`); Invopop then marks it as billed in the SAF-T record. > > Proformas (`PF`) are also work documents, but are built on `bill/invoice` rather than `bill/order`. See the next example. > > ```json AT Work document theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/order", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "sale", > "series": "OU SERIES-A", > "issue_date": "2024-12-23", > "tax": { > "ext": { > "pt-saft-work-type": "OU" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > } > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Noite em quarto duplo", > "price": "50.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > }, > { > "quantity": "1", > "item": { > "name": "Jantar no restaurante", > "price": "45.00" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/order", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "sale", > "series": "OU SERIES-A", > "issue_date": "2024-12-23", > "value_date": "2024-12-23", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-source": "P", > "pt-saft-work-type": "OU" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Noite em quarto duplo", > "price": "50.00", > "unit": "one", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "100.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "100.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Jantar no restaurante", > "price": "45.00", > "unit": "one", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "45.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "45.00" > } > ], > "totals": { > "sum": "145.00", > "total": "145.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "145.00", > "percent": "23.0%", > "amount": "33.35" > } > ], > "amount": "33.35" > } > ], > "sum": "33.35" > }, > "tax": "33.35", > "total_with_tax": "178.35", > "payable": "178.35" > } > } > ``` > [accordion] AT invoice-receipt (Fatura-Recibo) > > In these examples, we're issuing an invoice-receipt (*Fatura-Recibo*): an invoice that is fully paid at the moment it is issued. The `payment.advances` entries cover the full document total, so the built document ends up with `totals.due` at `0.00`. The first example is a standard invoice with an identified customer; the second is the simplified (retail) variant. > > Notice: > > * the `series` must use the `FR ` prefix (for example `FR SERIES-A`). Sending a fully paid invoice on an `FT` or `FS` series fails with `series format must be valid`; see [Series management → Naming](/guides/pt-at-supplier#naming), > * each entry in `payment.advances` is one payment. List several to record a mix of payment methods — here a card deposit followed by cash at checkout — and each one is shown on the PDF with its date, `description`, and amount. The PDF does not print the method itself, so name it in the `description` (for example `Card deposit`), > * when running `gobl build`, or uploading the file, the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon sets the [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) extension to `FR` automatically once the advances cover the total, and sets the [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension on each advance from its `key` (`card` → `CC`, `cash` → `NU`), and, > * the simplified variant only differs by the `simplified` tag (`$tags: ["simplified"]`) and the missing `customer`; the `payment.advances` block is identical, and the series still uses the `FR ` prefix rather than `FS `. > > **Standard invoice-receipt** (with customer): > > ```json AT Invoice-Receipt (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "standard", > "series": "FR SERIES-A", > "issue_date": "2026-10-29", > "currency": "EUR", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ], > "websites": [ > { > "url": "https://gusto.example.com" > } > ], > "telephones": [ > { > "num": "+351912345678" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Room night", > "price": "100.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "date": "2026-10-20", > "key": "card", > "description": "Card deposit", > "amount": "100.00" > }, > { > "date": "2026-10-29", > "key": "cash", > "description": "Cash at checkout", > "amount": "146.00" > } > ] > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "standard", > "series": "FR SERIES-A", > "issue_date": "2026-10-29", > "value_date": "2026-10-29", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-invoice-type": "FR", > "pt-saft-source": "P" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ], > "websites": [ > { > "url": "https://gusto.example.com" > } > ], > "telephones": [ > { > "num": "+351912345678" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Room night", > "price": "100.00", > "unit": "h", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "200.00" > } > ], > "payment": { > "advances": [ > { > "date": "2026-10-20", > "key": "card", > "description": "Card deposit", > "amount": "100.00", > "ext": { > "pt-saft-payment-means": "CC" > } > }, > { > "date": "2026-10-29", > "key": "cash", > "description": "Cash at checkout", > "amount": "146.00", > "ext": { > "pt-saft-payment-means": "NU" > } > } > ] > }, > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "200.00", > "percent": "23.0%", > "amount": "46.00" > } > ], > "amount": "46.00" > } > ], > "sum": "46.00" > }, > "tax": "46.00", > "total_with_tax": "246.00", > "payable": "246.00", > "advance": "246.00", > "due": "0.00" > } > } > ``` > > **Simplified invoice-receipt** (no customer): > > ```json AT Simplified Invoice-Receipt (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "FR SERIES-A", > "issue_date": "2026-10-29", > "currency": "EUR", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Room night", > "price": "100.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "advances": [ > { > "date": "2026-10-20", > "key": "card", > "description": "Card deposit", > "amount": "100.00" > }, > { > "date": "2026-10-29", > "key": "cash", > "description": "Cash at checkout", > "amount": "146.00" > } > ] > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "simplified" > ], > "type": "standard", > "series": "FR SERIES-A", > "issue_date": "2026-10-29", > "value_date": "2026-10-29", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-invoice-type": "FR", > "pt-saft-source": "P" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Room night", > "price": "100.00", > "unit": "h", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "200.00" > } > ], > "payment": { > "advances": [ > { > "date": "2026-10-20", > "key": "card", > "description": "Card deposit", > "amount": "100.00", > "ext": { > "pt-saft-payment-means": "CC" > } > }, > { > "date": "2026-10-29", > "key": "cash", > "description": "Cash at checkout", > "amount": "146.00", > "ext": { > "pt-saft-payment-means": "NU" > } > } > ] > }, > "totals": { > "sum": "200.00", > "total": "200.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "200.00", > "percent": "23.0%", > "amount": "46.00" > } > ], > "amount": "46.00" > } > ], > "sum": "46.00" > }, > "tax": "46.00", > "total_with_tax": "246.00", > "payable": "246.00", > "advance": "246.00", > "due": "0.00" > } > } > ``` > [accordion] AT proforma invoice > > In this example, we're issuing a proforma (*pró-forma*): a non-fiscal document sent to a customer to request payment in advance of the final invoice. > > Notice: > > * proformas are built on the [`bill/invoice`](https://docs.gobl.org/draft-0/bill/invoice) schema rather than `bill/order`, since they mirror the invoice they anticipate; they are still reported to the AT under SAF-T's `WorkingDocuments` table and not `SalesInvoices`, > * the [`pt-saft-work-type`](https://docs.gobl.org/addons/pt-saft-v1#document-type) extension is derived from the addon from `type: proforma`, > * `type: proforma` is the only thing separating this from an ordinary invoice; drop it and the addon normalises the document to a standard invoice with [`pt-saft-invoice-type`](https://docs.gobl.org/addons/pt-saft-v1#invoice-type) `FT` instead, > * the `series` follows the `PF ` prefix convention and must be registered through the Supplier Portal, exactly as an invoice series is, and, > * a proforma settles no VAT: issue the corresponding `FT` invoice when the customer pays. > > ```json AT Proforma theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "proforma", > "series": "PF SERIES-A", > "issue_date": "2024-12-23", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > } > }, > "lines": [ > { > "quantity": "1", > "item": { > "name": "Licença anual de software", > "price": "1200.00", > "unit": "item" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > }, > { > "quantity": "8", > "item": { > "name": "Serviços de implementação", > "price": "75.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "general" > } > ] > } > ], > "payment": { > "terms": { > "key": "advanced" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "proforma", > "series": "PF SERIES-A", > "issue_date": "2024-12-23", > "value_date": "2024-12-23", > "currency": "EUR", > "tax": { > "ext": { > "pt-saft-source": "P", > "pt-saft-work-type": "PF" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > } > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Licença anual de software", > "price": "1200.00", > "unit": "item", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "1200.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "1200.00" > }, > { > "i": 2, > "quantity": "8", > "item": { > "name": "Serviços de implementação", > "price": "75.00", > "unit": "h", > "ext": { > "pt-saft-product-type": "S" > } > }, > "sum": "600.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "600.00" > } > ], > "payment": { > "terms": { > "key": "advanced" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "1800.00", > "percent": "23.0%", > "amount": "414.00" > } > ], > "amount": "414.00" > } > ], > "sum": "414.00" > }, > "tax": "414.00", > "total_with_tax": "2214.00", > "payable": "2214.00" > } > } > ``` > [accordion] AT delivery note > > In this example, we're issuing a delivery note from a Portuguese supplier to another Portuguese receiver. > > Notice: > > * the first tab shows the minimal version containing only the essential fields required to create the delivery document; there are no totals or calculations, > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon ensures the document will be validated and normalized using the SAF-T PT v1 rules built into the [GOBL](https://docs.gobl.org) library, > * the `supplier` and `series` fields are set to example values; you'll need to replace them with the details of supplier and series registered as per the previous sections. The series must be registered in the Supplier Portal and follow Portuguese naming conventions (see [Series management](/guides/pt-at-supplier#series-management) for details), > * this is a `note` document type with the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension set to `GR` (Guia de Remessa), > * when running `gobl build`, or uploading the document, the system automatically calculates totals, applies the standard VAT rate with the [`pt-saft-tax-rate`](https://docs.gobl.org/addons/pt-saft-v1#tax-rate-code) extension set to `NOR`, and normalizes all fields, > * the second tab shows the built version of the document with the calculated totals, line item sums, tax breakdowns, and automatically generated fields, and, > * the [`pt-region`](https://docs.gobl.org/regimes/pt#region-code) extension is automatically set to `PT`. > > ```json AT Delivery (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "note", > "series": "GR SERIES-A", > "issue_date": "2026-04-01", > "currency": "EUR", > "despatch_date": "2026-04-02", > "receive_date": "2026-04-03", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Gusto Armazém", > "addresses": [ > { > "street": "Zona Industrial, Lote 23", > "locality": "Lisboa", > "code": "1300-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "text": "Delivery note for products" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "note", > "series": "GR SERIES-A", > "issue_date": "2026-04-01", > "currency": "EUR", > "despatch_date": "2026-04-02", > "receive_date": "2026-04-03", > "tax": { > "ext": { > "pt-saft-movement-type": "GR" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Gusto Armazém", > "addresses": [ > { > "street": "Zona Industrial, Lote 23", > "locality": "Lisboa", > "code": "1300-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "sum": "50.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "50.00" > } > ], > "totals": { > "sum": "50.00", > "total": "50.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "50.00", > "percent": "23.0%", > "amount": "11.50" > } > ], > "amount": "11.50" > } > ], > "sum": "11.50" > }, > "tax": "11.50", > "total_with_tax": "61.50", > "payable": "61.50" > }, > "notes": [ > { > "text": "Delivery note for products" > } > ] > } > ``` > [accordion] AT return guide > > A return guide (*Guia de Devolução*) records goods being returned to the supplier — for example, defective items, unsold stock, or any other scenario where previously delivered goods are sent back. > > Notice: > > * the document carries the `return` tag (`$tags: ["return"]`), which the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon uses to automatically set the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension to `GD` (Guia de Devolução), > * the `series` follows the `GD ` prefix convention and must be registered through the Supplier Portal, and, > * the flow of goods is reversed compared to a delivery note: the `customer` is the party returning the goods, and the `supplier` is the one receiving them back. > > ```json AT Return guide (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": ["return"], > "type": "note", > "series": "GD SERIES-A", > "issue_date": "2026-04-03", > "currency": "EUR", > "despatch_date": "2026-04-03", > "receive_date": "2026-04-03", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "despatcher": { > "name": "Gusto Armazém", > "addresses": [ > { > "street": "Zona Industrial, Lote 23", > "locality": "Lisboa", > "code": "1300-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "quantity": "3", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "text": "Goods returned by the customer." > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "return" > ], > "type": "note", > "series": "GD SERIES-A", > "issue_date": "2026-04-03", > "currency": "EUR", > "despatch_date": "2026-04-03", > "receive_date": "2026-04-03", > "tax": { > "ext": { > "pt-saft-movement-type": "GD" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "despatcher": { > "name": "Gusto Armazém", > "addresses": [ > { > "street": "Zona Industrial, Lote 23", > "locality": "Lisboa", > "code": "1300-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "3", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "sum": "15.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "15.00" > } > ], > "totals": { > "sum": "15.00", > "total": "15.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "15.00", > "percent": "23.0%", > "amount": "3.45" > } > ], > "amount": "3.45" > } > ], > "sum": "3.45" > }, > "tax": "3.45", > "total_with_tax": "18.45", > "payable": "18.45" > }, > "notes": [ > { > "text": "Goods returned by the customer." > } > ] > } > ``` > [accordion] AT global waybill > > For shipments where the specific recipient is not known upfront — for example, multi-stop delivery runs — issuers can emit a global waybill (*Guia de Transporte Global*) to cover the goods in transport. > > Notice: > > * the document `type` is set to `waybill`, which the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon normalizes to the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension `GT` (Guia de Transporte), > * the `series` follows the `GT ` prefix convention required by the AT and must be registered through the Supplier Portal, and, > * the `customer` field is omitted: when no customer is provided on a `GT`, the SAF-T submission automatically uses the AT-prescribed generic final consumer entry. > > ```json AT Global waybill (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "waybill", > "series": "GT SERIES-A", > "issue_date": "2026-04-01", > "currency": "EUR", > "despatch_date": "2026-04-02", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "quantity": "100", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "text": "Global waybill for multi-stop delivery" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "waybill", > "series": "GT SERIES-A", > "issue_date": "2026-04-01", > "currency": "EUR", > "despatch_date": "2026-04-02", > "tax": { > "ext": { > "pt-saft-movement-type": "GT" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "100", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "sum": "500.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "500.00" > } > ], > "totals": { > "sum": "500.00", > "total": "500.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "500.00", > "percent": "23.0%", > "amount": "115.00" > } > ], > "amount": "115.00" > } > ], > "sum": "115.00" > }, > "tax": "115.00", > "total_with_tax": "615.00", > "payable": "615.00" > }, > "notes": [ > { > "text": "Global waybill for multi-stop delivery" > } > ] > } > ``` > [accordion] AT delivery from global waybill > > Once the recipient of part of the goods covered by a global waybill is known, a concrete document — typically a `GR` (Guia de Remessa) — must be issued with the full transaction details, including the `customer` and a cross-reference back to the originating `GT` so the AT can correlate both records. > > Notice: > > * the `customer` is now populated with the actual recipient of the goods, and, > * the `preceding` array carries one entry with the `series`, `code`, and `issue_date` of the originating `GT`. > > ```json AT Delivery note from global waybill (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "note", > "series": "GR SERIES-A", > "issue_date": "2026-04-02", > "currency": "EUR", > "despatch_date": "2026-04-02", > "receive_date": "2026-04-02", > "preceding": [ > { > "series": "GT SERIES-A", > "code": "1", > "issue_date": "2026-04-01" > } > ], > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Gusto Armazém", > "addresses": [ > { > "street": "Zona Industrial, Lote 23", > "locality": "Lisboa", > "code": "1300-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "quantity": "10", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "text": "Stop delivery from global waybill GT SERIES-A/1" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "note", > "series": "GR SERIES-A", > "issue_date": "2026-04-02", > "currency": "EUR", > "preceding": [ > { > "issue_date": "2026-04-01", > "series": "GT SERIES-A", > "code": "1" > } > ], > "despatch_date": "2026-04-02", > "receive_date": "2026-04-02", > "tax": { > "ext": { > "pt-saft-movement-type": "GR" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Gusto Armazém", > "addresses": [ > { > "street": "Zona Industrial, Lote 23", > "locality": "Lisboa", > "code": "1300-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "10", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "sum": "50.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "50.00" > } > ], > "totals": { > "sum": "50.00", > "total": "50.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "50.00", > "percent": "23.0%", > "amount": "11.50" > } > ], > "amount": "11.50" > } > ], > "sum": "11.50" > }, > "tax": "11.50", > "total_with_tax": "61.50", > "payable": "61.50" > }, > "notes": [ > { > "text": "Stop delivery from global waybill GT SERIES-A/1" > } > ] > } > ``` > [accordion] AT return from global waybill > > A return can also be linked back to a global waybill — for example, when surplus goods that were not delivered to any customer come back to the depot at the end of a delivery run. > > Notice: > > * as in the standalone return guide, the `return` tag drives the [`pt-saft-movement-type`](https://docs.gobl.org/addons/pt-saft-v1#movement-type) extension to `GD`, > * the `preceding` array references the originating `GT`, and, > * the `customer` is omitted, since the goods are returning to the issuer's own depot rather than to a specific party. > > ```json AT Return from global waybill (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": ["return"], > "type": "note", > "series": "GD SERIES-A", > "issue_date": "2026-04-03", > "currency": "EUR", > "preceding": [ > { > "issue_date": "2026-04-01", > "series": "GT SERIES-A", > "code": "1" > } > ], > "despatch_date": "2026-04-03", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Innovatech Depot", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "quantity": "2", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "notes": [ > { > "text": "Surplus from global waybill GT SERIES-A/1 returned to depot." > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/delivery", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "return" > ], > "type": "note", > "series": "GD SERIES-A", > "issue_date": "2026-04-03", > "currency": "EUR", > "preceding": [ > { > "issue_date": "2026-04-01", > "series": "GT SERIES-A", > "code": "1" > } > ], > "despatch_date": "2026-04-03", > "tax": { > "ext": { > "pt-saft-movement-type": "GD" > } > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "despatcher": { > "name": "Innovatech Logistics", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "receiver": { > "name": "Innovatech Depot", > "addresses": [ > { > "street": "Rua da Indústria 45", > "locality": "Porto", > "code": "4050-300", > "country": "PT" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "2", > "item": { > "name": "Product A", > "price": "5.00", > "unit": "unit", > "ext": { > "pt-saft-product-type": "P" > } > }, > "sum": "10.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "23.0%", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > } > } > ], > "total": "10.00" > } > ], > "totals": { > "sum": "10.00", > "total": "10.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "10.00", > "percent": "23.0%", > "amount": "2.30" > } > ], > "amount": "2.30" > } > ], > "sum": "2.30" > }, > "tax": "2.30", > "total_with_tax": "12.30", > "payable": "12.30" > }, > "notes": [ > { > "text": "Surplus from global waybill GT SERIES-A/1 returned to depot." > } > ] > } > ``` > [accordion] AT payment receipt > > In this example, we're issuing a payment receipt from a Portuguese supplier to another Portuguese business. > > Notice: > > * the minimal version in the first tab contains only the essential fields required to create the payment document, > * the [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon ensures the document will be validated and normalized using the SAF-T PT v1 rules built into the [GOBL](https://docs.gobl.org) library, > * the `supplier` and `series` fields are set to example values; you'll need to replace them with the details of supplier and series registered as per the previous sections. The series must be registered in the Supplier Portal and follow Portuguese naming conventions (see [Series management](/guides/pt-at-supplier#series-management) for details), > * this is a single `receipt` payment that bundles **multiple payment methods**: 30,00 EUR in cash plus 31,50 EUR by card, summing to the document total of 61,50 EUR. Each method gets its own [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension auto-assigned (`NU` for cash, `CC` for card), > * when running `gobl build`, the system automatically assigns the [`pt-saft-payment-type`](https://docs.gobl.org/addons/pt-saft-v1#payment-type) extension to `RG` and the [`pt-saft-source`](https://docs.gobl.org/addons/pt-saft-v1#document-source) extension to `P`, > * the built version in the second tab shows the normalized document with all automatically generated fields and extensions properly set, > * the payment lines reference the original invoice being paid, though a single receipt can reference multiple invoices if needed, > * this receipt could represent either a full or partial payment of the referenced invoice; it simply records the amounts and taxes being paid, so the total may or may not cover the full invoice amount, and, > * there are no calculations in the minimal version; all normalizations will be made automatically when uploading. > > ```json AT Payment (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "receipt", > "series": "RG SERIES-A", > "issue_date": "2024-12-23", > "currency": "EUR", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ], > "websites": [ > { > "url": "https://gusto.example.com" > } > ], > "telephones": [ > { > "num": "+351912345678" > } > ] > }, > "lines": [ > { > "document": { > "issue_date": "2024-12-23", > "series": "FT SERIES-A", > "code": "1", > "description": "Invoice 1" > }, > "amount": "61.50", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "50.00", > "percent": "23.0%", > "amount": "11.50" > } > ], > "amount": "11.50" > } > ], > "sum": "11.50" > } > } > ], > "methods": [ > { > "key": "cash", > "description": "Cash portion", > "amount": "30.00" > }, > { > "key": "card", > "description": "Card portion", > "amount": "31.50" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "type": "receipt", > "series": "RG SERIES-A", > "issue_date": "2024-12-23", > "currency": "EUR", > "ext": { > "pt-saft-payment-type": "RG", > "pt-saft-source": "P" > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ], > "emails": [ > { > "addr": "gusto@example.com" > } > ], > "websites": [ > { > "url": "https://gusto.example.com" > } > ], > "telephones": [ > { > "num": "+351912345678" > } > ] > }, > "lines": [ > { > "i": 1, > "document": { > "issue_date": "2024-12-23", > "series": "FT SERIES-A", > "code": "1", > "description": "Invoice 1" > }, > "amount": "61.50", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "50.00", > "percent": "23.0%", > "amount": "11.50" > } > ], > "amount": "11.50" > } > ], > "sum": "11.50" > } > } > ], > "methods": [ > { > "key": "cash", > "description": "Cash portion", > "amount": "30.00", > "ext": { > "pt-saft-payment-means": "NU" > } > }, > { > "key": "card", > "description": "Card portion", > "amount": "31.50", > "ext": { > "pt-saft-payment-means": "CC" > } > } > ], > "total": "61.50" > } > ``` > [accordion] AT Cash VAT receipt > > In this example, we're issuing a payment receipt for a supplier under the **Cash VAT scheme** (*regime de IVA de Caixa*). For these suppliers, the receipt is the document that actually triggers the VAT becoming due, so the AT distinguishes it from an ordinary receipt. > > Notice: > > * the document carries the `cash-vat` tag (`$tags: ["cash-vat"]`), exactly as the Cash VAT invoice does, > * on a `receipt`, that tag drives the [`pt-saft-payment-type`](https://docs.gobl.org/addons/pt-saft-v1#payment-type) extension to `RC` (*Recibo no âmbito do regime de IVA de Caixa*) instead of the default `RG` (*Outro Recibo*) you'd get on the ordinary AT payment receipt above, > * the `series` follows the `RC ` prefix convention and must be registered through the Supplier Portal, > * the payment line references the original invoice being settled, carrying its VAT breakdown so the AT can match the now-due tax to the issued invoice, and, > * as with any receipt, the [`pt-saft-payment-means`](https://docs.gobl.org/addons/pt-saft-v1#payment-means) extension is auto-assigned per method (`TB` for the bank transfer) and the [`pt-saft-source`](https://docs.gobl.org/addons/pt-saft-v1#document-source) extension is set to `P`. > > ```json AT Cash VAT receipt (minimal) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "cash-vat" > ], > "type": "receipt", > "series": "RC SERIES-A", > "issue_date": "2024-12-23", > "currency": "EUR", > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "lines": [ > { > "document": { > "issue_date": "2024-12-23", > "series": "FT SERIES-A", > "code": "1", > "description": "Invoice 1" > }, > "amount": "61.50", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "50.00", > "percent": "23.0%", > "amount": "11.50" > } > ], > "amount": "11.50" > } > ], > "sum": "11.50" > } > } > ], > "methods": [ > { > "key": "credit-transfer", > "description": "Bank transfer", > "amount": "61.50" > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/payment", > "$regime": "PT", > "$addons": [ > "pt-saft-v1" > ], > "$tags": [ > "cash-vat" > ], > "type": "receipt", > "series": "RC SERIES-A", > "issue_date": "2024-12-23", > "currency": "EUR", > "ext": { > "pt-saft-payment-type": "RC", > "pt-saft-source": "P" > }, > "supplier": { > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "770013813" > }, > "addresses": [ > { > "street": "Rua das Flores 200 3º Esquerdo", > "locality": "Porto", > "code": "4050-265", > "country": "PT" > } > ], > "registration": { > "capital": "100000.00", > "office": "Porto" > } > }, > "customer": { > "name": "Gusto Unipessoal Lda", > "tax_id": { > "country": "PT", > "code": "514329874" > }, > "addresses": [ > { > "street": "Avenida da Liberdade 152 2º Direito", > "locality": "Lisboa", > "code": "1250-146", > "country": "PT" > } > ] > }, > "lines": [ > { > "i": 1, > "document": { > "issue_date": "2024-12-23", > "series": "FT SERIES-A", > "code": "1", > "description": "Invoice 1" > }, > "amount": "61.50", > "tax": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "pt-region": "PT", > "pt-saft-tax-rate": "NOR" > }, > "base": "50.00", > "percent": "23.0%", > "amount": "11.50" > } > ], > "amount": "11.50" > } > ], > "sum": "11.50" > } > } > ], > "methods": [ > { > "key": "credit-transfer", > "description": "Bank transfer", > "amount": "61.50", > "ext": { > "pt-saft-payment-means": "TB" > } > } > ], > "total": "61.50" > } > ``` ### Cancel a document If you need to cancel a document that has already been issued and reported to the AT, you can use the cancel workflows created during setup. The cancellation process follows the same pattern as sending a document: create a job for the silo entry you want to cancel using the cancel workflow appropriate for the document type. ### Recovering documents issued offline If you lose the connection to Invopop and cannot issue documents through your regular workflow, Portuguese law defines exactly what to do. [Despacho n.º 8632/2014](https://info.portaldasfinancas.gov.pt/pt/informacao_fiscal/legislacao/diplomas_legislativos/Documents/Despacho_n%C2%BA_8632_2014_03_07.pdf), section 2.4, regulates the issuance of documents during a period of software unavailability (*inoperacionalidade do programa*) and their later integration into the certified invoicing system. #### While offline: issue on paper During the outage, documents must be issued manually on pre-printed paper forms acquired from an AT-authorized typography (*tipografia autorizada*). These paper documents: * Carry their own series and sequential numbering, pre-printed by the typography. * Include a pre-printed ATCUD: the typography registers the series with the AT and obtains the validation code on your behalf. * Do **not** require a QR code: the QR code obligation only applies to documents issued by certified software. We recommend keeping a pad of these forms on hand as your offline contingency. #### Once back online: recover the documents Immediately after the connection is restored, each paper document must be re-entered ("recovered") through Invopop so it becomes part of the certified record and gets reported to the AT: 1. **Register a recovery series** ([type `R`](/guides/pt-at-supplier#series-type)), either through the Supplier Portal or the [series registration endpoint](/api-ref/apps/at-pt/series-register). You can do this ahead of time as part of your contingency setup. Documents recovered from paper can only be issued under a recovery series. 2. **Create a GOBL document replicating the paper document exactly** — same line items, taxes, and totals — with these specifics: * The `issue_date` must be the date of the original paper document. * The `$tags` array must include `bypass`, so the totals are taken verbatim from the paper document instead of being recalculated. * The [`pt-saft-source`](https://docs.gobl.org/addons/pt-saft-v1#document-source) extension must be set to `M` (manual). * The [`pt-saft-source-ref`](https://docs.gobl.org/addons/pt-saft-v1#source-document-reference) extension must reference the paper document using the format defined in section 2.4.5 of the despacho: the document type code followed by the letter `M`, a space, and the paper document's series and number separated by a slash. ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "PT", "$addons": ["pt-saft-v1"], "$tags": ["bypass"], "series": "FT RECOVERY", "issue_date": "2026-05-28", "tax": { "ext": { "pt-saft-source": "M", "pt-saft-source-ref": "FTM ABC123/00042" } } } ``` This partial example shows only the recovery-specific fields. Complete the document with the supplier, customer, lines, and totals copied from the paper document. 3. **Run your regular invoice workflow** on the document. The recovered document is sealed like any other software-issued document — it receives a hash, an ATCUD from the recovery series, and a QR code — and is reported to the AT through the usual channels (real-time webservice and/or SAF-T PT). The reference to the paper document is included in the SAF-T `HashControl` field, as required by the despacho. Keep in mind: * Each paper document can be recovered only once. Attempting to recover the same source reference twice is rejected. * Any later document referencing a recovered one (e.g., a credit note rectifying it) must reference the original paper document's series and number, not the number assigned to the recovered document. > [!NOTE] > > Recovery series also cover a second scenario regulated by section 2.5 of the same despacho: re-entering documents lost to a system failure from their printed duplicates. In that case, the `pt-saft-source-ref` extension uses the letter `D` instead of `M` (e.g., `FTD FT SERIES/123`), and the original series is automatically decommissioned once the first document is recovered, as the law requires it to be closed. ### Reporting documents to the AT The AT Portugal app supports two methods for reporting documents to the *Autoridade Tributária e Aduaneira*: 1. **Real-time reporting** - Documents are submitted individually to the AT immediately upon issuance via webservice 2. **SAF-T PT reporting** - Documents are reported in batch format through periodic SAF-T PT reports The workflow templates provided in this guide enable both reporting mechanisms. #### Real-time reporting The **Send document to AT** step uses the AT's webservice to submit each document to the tax authority immediately after it is recorded. Documents submitted by this step are already communicated to the AT, so the supplier does not need to include them in a monthly SAF-T PT submission — real-time reporting replaces the manual monthly upload for those documents. A manual SAF-T PT submission is only needed for documents that are not reported in real time, either because the workflow omits this step or because the AT's webservice does not accept the document type (for example, RG payment receipts). This step is optional. If you prefer to report documents only via SAF-T PT reports, you can remove it from your workflows. > [!NOTE] > > The **Send document to AT** step requires the supplier to have the appropriate AT user permissions (`WFA` for invoices, `WDT` for transport documents) as described in the [supplier registration guide](/guides/pt-at-supplier#register-a-supplier). #### SAF-T PT reporting SAF-T PT reports allow you to submit documents to the AT in batch format. The **Record document for SAF-T** step takes care of recording the documents for this purpose. Suppliers only need to submit monthly SAF-T PT reports for documents that were not reported in real time. If every document a supplier issues goes through the **Send document to AT** step, no manual monthly submission is required. > [!NOTE] > > The **Record document for SAF-T** step is required in all workflows, regardless of whether you also use real-time reporting. The AT may request SAF-T PT reports for audit purposes at any time, so all documents must be properly recorded. To generate a SAF-T PT report, a supplier can follow these steps: 1. Go to the [Invopop AT Portugal Supplier Portal](https://at-pt.invopop.com/portal) 2. Log in using the email address provided with the supplier's information 3. Go to the **SAF-T PT** section, enter a date range and click **Generate** The system will generate a SAF-T PT file containing all documents issued within the specified date range that have been recorded for SAF-T reporting. This file can then be submitted to the AT through [their portal](https://faturas.portaldasfinancas.gov.pt/faturas/comerciante/enviar-saft.action) or via [command line](https://faturas.portaldasfinancas.gov.pt/envioBatchInfoNovo.action). ## FAQ > [accordion] Should our customers upload their SAF-T files manually? > > In Portugal, fiscally relevant documents issued through invoicing software must be reported to the Tax Authority (AT). There are two possible reporting models: > > 1. **SAF-T monthly export** – a single XML file including all documents for the month. This file is generated by the invoicing software and then uploaded manually to the AT portal, as there is no API available for submitting it automatically. > 2. **Real-time transmission** – instead of a monthly file, each invoice is sent individually to the AT at the time of issuance, using the authority's API. > > Whether one model or the other is used usually depends on the issuer's accountant's preference (who typically uploads the SAF-T monthly report should they choose that model). Invopop's [AT Portugal app](/apps/at-portugal) supports both reporting methods, so each supplier can pick the one that best fits their needs. > > If a supplier uses real-time transmission — the **Send document to AT** step in the workflow — the documents submitted this way are already communicated to the AT, so they don't need to upload a monthly SAF-T file for them. The only documents that still require the monthly SAF-T upload are those not reported in real time, such as RG payment receipts, which the AT's webservice does not accept. > [accordion] How do I configure my workspace for Portuguese invoicing? > > Install the AT Portugal app, register the supplier with their NIF, and pick a reporting model (monthly SAF-T or real-time submission). Run invoices through the AT Issue Invoice workflow — Invopop generates the ATCUD, QR, and signature automatically. > [accordion] Why does recording fail with 'payable: too high according to Artigo 40.º do CIVA'? > > When issuing in Portugal you may see an error similar to: > > > `recording envelope: totals: (payable: too high according to Artigo 40.º do CIVA.)` > > **What it means:** Article 40 of the Portuguese VAT Code (*Código do IVA*) caps the amount a **simplified invoice** (*fatura simplificada*) can carry. The limits are: > > * **€1,000** for goods sold by retailers or itinerant sellers to buyers who are not taxable persons (final consumers). > * **€100** for every other supply of goods or services. > * **No limit** for suppliers under the Article 53 small-business exemption regime (since Decree-Law 35/2025). > > Above the applicable limit, a simplified invoice is no longer allowed and the document must be a **full invoice** (*fatura*). Note that a simplified invoice can only carry the fields listed in Article 40, so adding the buyer's name or address to it is not an option — the document type has to change. > > **What to do:** > > * Issue the document as a **full invoice** instead of a simplified one. > * If the buyer is a **taxable person** (a business or a freelancer invoicing with a NIF), include their **name, address, and NIF** — Article 36 requires these identification elements only for taxable-person buyers. > * If the buyer is a **final consumer**, no customer identification is required on a full invoice, whatever the amount. If you don't have their details, leave the `customer` block out, and Invopop will report the document to the AT under the generic final consumer. > > In GOBL, drop the `simplified` tag from `$tags` and adjust the `customer` block as above, then re-run the workflow. > [accordion] Why does my credit note fail with 'The credit note line #N cannot be applied to any line available to credit'? > > **What it means:** when a credit note references an invoice issued through Invopop, every credit note line must be matched against the quantity and price still available to credit on the original invoice's lines. Line `#N` could not be matched to any of them. > > For a credit note line to be applied to an invoice line: > > 1. Its `item.name` must be **exactly identical** to the invoice line's, and both lines must have the same VAT treatment — the same rate and, where applicable, the same exemption. > 2. Among the lines matching by name and VAT, it must satisfy one of: > * **Same unit price** as the invoice line, with a quantity up to the remaining quantity — to credit fewer units at the original price. > * **Same quantity** as the invoice line, with a unit price up to the remaining price — to credit part of the amount for the full quantity. > > Include only the lines you are crediting — the credit note does not need to mirror the full invoice — and the order of the lines is irrelevant. Availability is cumulative: every accepted credit note reduces the remaining quantity or price, so the total credited per line can never exceed the original invoice amount. > > **What to do:** check that line `#N`'s item name and VAT rate or exemption exactly match a line on the referenced invoice (watch for typos or renamed items), and that it keeps either the original unit price or the original quantity as described above. If everything matches, review credit notes previously issued against the same invoice — the remaining quantity or amount may already have been credited. > > Note that a credit note supports exactly **one** `preceding` reference, and line matching only applies when the referenced invoice was issued through Invopop — references to external series (for example, invoices issued by a previous provider) are accepted without matching. > [accordion] Why does my payment workflow fail with 'payment type RG is not supported for real-time reporting'? > > This error means your workflow includes the **Send to the AT** step for a payment receipt. Payment receipts are not supported for real-time reporting — the AT does not accept them via the real-time webservice. > > **The fix:** remove the **Send to the AT** step from your payment workflow. RG receipts are only reportable through the monthly SAF-T file. The **Record for SAF-T reporting** step alone is all you need for full compliance. > [accordion] What payment receipt types are supported in Portugal? > > Portugal defines two payment receipt types: > > * **RG — Outros Recibos**: Standard payment receipts, reported through the monthly SAF-T file only. Real-time reporting is not available for this type. > * **RC — Recibo no âmbito do regime de IVA de Caixa**: Receipts specific to the VAT Cash accounting regime. RC payments are not currently supported by the AT Portugal app. > [accordion] Where do I find Portugal-specific GOBL documentation? > > See the [Portugal tax regime in GOBL](https://docs.gobl.org/regimes/pt) for tax categories, NIF rules, and AT-specific extensions. The [`pt-saft-v1`](https://docs.gobl.org/addons/pt-saft-v1) addon documents fields required by the SAF-T schema. More available in our [Portugal FAQ](/faq/portugal) section *** > [accordion] 🇵🇹 Invopop resources for Portugal > > | | | > | - | - | > | Compliance | [Invoicing compliance in Portugal](/compliance/portugal) [Compliance timeline](/timelines/portugal) | > | Apps | [AT Portugal](/apps/at-portugal) | > | Guides | [Supplier registration](/guides/pt-at-supplier) [Issuing invoices](/guides/pt-at) | > | FAQ | [Portugal FAQ](/faq/portugal) | > | GOBL | [Portugal Tax Regime](https://docs.gobl.org/regimes/pt) [Portugal SAF-T addon](https://docs.gobl.org/addons/pt-saft-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Portugal's regulation → # AT supplier registration guide Source: https://docs.invopop.com/guides/pt-at-supplier Register suppliers with the Autoridade Tributária (AT) to issue tax documents in Portugal. ## Introduction Before a supplier can issue tax documents in Portugal through Invopop's certified implementation, they must be registered with the AT Portugal app, provide their credentials for the *Autoridade Tributária e Aduaneira* (AT) web services, and register the document series they will issue with. In this guide you'll learn how to register a supplier using the [AT Portugal app](/apps/at-portugal), keep their data up to date, manage their document series, and unregister them when they should no longer issue invoices from your workspace. Once a supplier is registered, continue with the companion guide: [Portugal: Issuing invoices](/guides/pt-at). | - | Sandbox | Live | | - | - | - | | **Supplier** | Real company or self-employed details required | Real company or self-employed details required | | **Series type** | `F` (Training) | `N` (Normal) | ## Prerequisites To register a supplier with the AT, you will need: * Supplier details, including: * Legal business name * Tax ID * Business address * An email address for the supplier to access the Supplier Portal * The supplier's credentials to access the AT's web services for registering series and report documents in real-time ## Setup There are four key processes to prepare: * connect the AT Portugal app, * create a supplier post-registration workflow, * configure the AT Portugal app, and, * configure a supplier registration workflow. All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com). **1. Connect the AT Portugal App** 1. Navigate to **Configuration** → **Apps**. 2. Find **AT Portugal** in the app discovery list. 3. Click **Connect** to activate. **2. Create Supplier post-registration workflow** > [card] [AT supplier post-registration workflow](https://console.invopop.com/redirect/workflows/new?template=pt-at-postregistration) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json AT supplier post-registration workflow theme={"system"} > { > "name": "AT supplier post-registration", > "description": "Mark an AT supplier as registered", > "schema": "org/party", > "steps": [ > { > "id": "7e8d8070-3870-11ef-af29-4533d56cea03", > "name": "Set state", > "config": { > "state": "registered" > }, > "summary": "Set state to `registered`{.state .registered}", > "provider": "silo.state" > } > ], > "rescue": [] > } > ``` **3. Configure the AT Portugal App** 1. Navigate to **Configuration** → **Apps**. 2. Find **AT Portugal** in the connected apps list. 3. Click **Configure** and choose the "Post-registration workflow" we created in the previous step. 4. Click the **Save** button. **4. Configure the supplier registration workflow** > [card] [AT supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=pt-at-register-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json AT register supplier workflow theme={"system"} > { > "name": "AT register supplier", > "description": "Register a supplier with AT", > "schema": "org/party", > "steps": [ > { > "id": "6f9282a0-3870-11ef-af29-4533d56cea03", > "name": "Set state", > "config": { > "state": "processing" > }, > "summary": "Set state to `processing`{.state .processing}", > "provider": "silo.state" > }, > { > "id": "1a9bcde0-a816-11ef-87b2-fd751e6d3b88", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "5b6ca7e0-ad93-11ef-a7da-83137f995008", > "name": "Register supplier with AT", > "provider": "at-pt.register" > } > ], > "rescue": [] > } > ``` ## Register a supplier **1. Submit the Supplier Information** This can be done either manually via the Invopop Console or programmatically via the API. The process is essentially the same; here we'll do it manually. Find the **Parties** section of the sidebar and click **Suppliers**. Click the **+ New Supplier** button to be presented with a new editor. You can use the following example as a template, and replace it with the details of your company. Note that you'll need the details of a real company or self-employed individual both in the sandbox and production environments: > [tab] Company > > ```json Portugal AT supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "Innovatech Lda", > "tax_id": { > "country": "PT", > "code": "504614240" > }, > "addresses": [ > { > "num": "156", > "street": "Avenida da República", > "locality": "Lisboa", > "code": "1050-045", > "country": "PT" > } > ], > "emails": [ > { > "addr": "maria@example.com" > } > ], > "registration": { > "capital": "150000.00", > "office": "CRC Lisboa", > "other": "sob NIF 770013813" > } > } > ``` > [tab] Self-employed individual > > A self-employed individual (*trabalhador independente*) is identified by their personal NIF, full name and address. > > > [!NOTE] > > > > The `registration` block is not required for self-employed individuals, as they have no commercial registry details or share capital to report. > > ```json Portugal AT self-employed supplier example theme={"system"} > { > "$schema": "https://gobl.org/draft-0/org/party", > "name": "João Silva Santos", > "tax_id": { > "country": "PT", > "code": "123456789" > }, > "addresses": [ > { > "num": "27", > "street": "Rua de Santa Catarina", > "locality": "Porto", > "code": "4000-447", > "country": "PT" > } > ], > "emails": [ > { > "addr": "joao@example.com" > } > ] > } > ``` > [!NOTE] > > Each supplier must have a unique email address. The email serves as the login for the [Supplier Portal](https://at-pt.invopop.com/portal), so it can only be linked to one supplier. Attempting to register a different supplier with an already-used email will result in an error. Click **Build**, ensure there are no errors, and click **Save**. We should now see the document. Find and click the **Select Workflow** button. Select the **Register Supplier** workflow created during setup, and click **Run Workflow**. The execution should be successful, and the silo entry will now be in the "Processing" state. **2. Obtain the Supplier's AT Credentials** To complete the registration process, the supplier will need to obtain the credentials of a user with the necessary permissions in the AT's Portal das Finanças. To create a new user, the supplier can follow these steps: 1. Go to the AT's [Portal das Finanças](https://www.portaldasfinancas.gov.pt) and click on the **Iniciar Sessão** button. 2. Authenticate by any of the available methods. 3. Go to **Todos os Serviços** > **Autenticação de Contribuintes** > **Gestão de Utilizadores**. 4. Click on the **Criar Novo Utilizador** button. 5. Fill in the form with the required information. We recommend setting a name that identifies the purpose of the user, for example "Invopop User". 6. Select the user permissions, depending on the supplier needs: * `WSE` – Always required. It allows to register series for any document type. * `WFA` – Required if the supplier wants to submit invoices to the AT in real-time, rather than using SAF-T. * `WDT` – Required if the supplier wants to submit transport documents (e.g. "Guia de Remessa", "Guia de Transporte", etc.) to the AT in real-time, rather than using SAF-T. 7. Click on the **Submeter** button to create the user. 8. Store the username and password in a secure location, as they will be needed in the next step. **3. Provide the Supplier's AT Credentials and Register Series** > [!NOTE] > > **White-label integration:** If you need to fully integrate this functionality into your own platform, the [AT Portugal API](/api-ref/apps/at-pt) provides programmatic access to manage credentials, register series, and generate SAF-T reports without requiring suppliers to use the Supplier Portal as described below. Now, the supplier will need to complete the registration process in the Invopop's Supplier Portal: 1. Go to the [Invopop AT Portugal Supplier Portal](https://at-pt.invopop.com/portal) 2. Enter the email address provided in the supplier's information. The system will send to the provided address a code to complete the authentication process. 3. Once logged in, go to **Credentials**, enter the AT credentials obtained in the previous step, and press Save. 4. Go to the **Series** section, click **+ Register** and register at least a series for each document type that the supplier will issue. Once the series are registered, the supplier will be able to issue documents using them. When this happens, the system will automatically execute the "Post-registration workflow" if one was configured. > [!NOTE] > > For detailed information about series management in Portugal, including naming conventions and automatic sequence assignment, see the [Series management](#series-management) section below. At this point, you're ready to start issuing documents on behalf of the supplier. Head over to the [AT issuing invoices guide](/guides/pt-at) to continue. ## Updating supplier data After a supplier has been registered, you may need to update their information over time -- for example, a change of address. Keep in mind that supplier data is used in two different contexts: * **SAF-T reports** use the data stored in the Supplier Record. To have updated information appear in SAF-T reports, update the Supplier Record directly via the API or the Console. Re-running the registration workflow is not necessary for data-only changes. * **Printed PDFs** use the supplier details included in each individual invoice, not from the Supplier Record. Make sure the invoice data is correct at the time of issuance. If you need to change the supplier's login email for the [Supplier Portal](https://at-pt.invopop.com/portal), update the email in the Supplier Record and re-run the registration workflow so the portal access is updated accordingly. ## Series management Series management in Portugal has specific requirements that differ from other countries. Understanding these particularities is essential for proper document issuance. ### Naming All series names in Portugal must follow a specific format: * **Document type prefix**: The name must start with a code indicating the document type (e.g., `FT`, `FS`, `FR`, `NC`...), followed by a space. * **Base name**: After the space, you can add any custom name you prefer. The custom name can contain letters, numbers, and most special characters, but not spaces, forward slashes (`/`), or carets (`^`). **Examples**: `FT A001`, `NC 2024-01`, `FR INV-2024` When you register series through the Supplier Portal, you're asked to provide a base name (without the document prefix) and select the document types you plan to issue. The portal combines each selected prefix with the base name, registers every resulting series with the AT, and retrieves the corresponding validation code required for generating ATCUD codes. ### Sequence assignment Unlike other countries, Portugal regulations do not allow pre-assigning sequence numbers to documents. The sequence number (*i.e.*, the document's `code` property) is automatically assigned during the **Record document for SAF-T** step in your workflow, following AT regulations. This is why you'll find no `sequence` step in Portugal workflow templates and you should not add one. ### Series type Every series registered with the AT has a type that determines its purpose. You must choose one of three types when [registering a series](/api-ref/apps/at-pt/series-register), whether through the Supplier Portal or the API: | Type | Code | Description | | - | - | - | | **Normal** | `N` | The standard type for series used in production. Use this type for all real documents with fiscal effect in live workspaces. | | **Training** *(Formação)* | `F` | For testing and training purposes only. Documents issued under a training series are fictitious and carry no fiscal effect. Use this type in sandbox workspaces when validating your integration before going live. | | **Recovery** *(Recuperação)* | `R` | A special type for registering documents that were issued manually on paper during a system outage. Portuguese law requires that when the invoicing system is unavailable, issuers continue on paper and then re-enter those documents once the system is restored. See [Recovering documents issued offline](/guides/pt-at#recovering-documents-issued-offline) for the full process. | > [!NOTE] > > The series type is set at registration time and cannot be changed afterward. Make sure to choose the correct type for your use case. ## Unregister a supplier Unregistering a supplier revokes their invoice issuing privileges from your workspace. You might need to unregister an entity because the supplier is no longer your client or because of a change in their Tax ID. To do so, use the following workflow template: > [card] [AT unregister supplier](https://console.invopop.com/redirect/workflows/new?template=pt-at-unregister-supplier) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view. > > ```json AT unregister supplier workflow theme={"system"} > { > "name": "AT unregister supplier", > "description": "Unregister a supplier with AT", > "schema": "org/party", > "steps": [ > { > "id": "5b6ca7e0-ad93-11ef-a7da-83137f995008", > "name": "Unregister supplier with AT", > "provider": "at-pt.unregister" > }, > { > "id": "6f9282a0-3870-11ef-af29-4533d56cea03", > "name": "Set state", > "config": { > "state": "void" > }, > "summary": "Set state to `void`{.state .void}", > "provider": "silo.state" > } > ], > "rescue": [ > { > "id": "c3a646c0-ab9f-11f1-ac28-4932cb701e8f", > "name": "Set state", > "config": { > "state": "error" > }, > "summary": "Set state to `error`{.state .error}", > "provider": "silo.state" > } > ] > } > ``` > [!NOTE] > > Unregistering also releases the supplier's [Supplier Portal](https://at-pt.invopop.com/portal) email address, so it becomes available again for registering a supplier in the same or in any other workspace. ## FAQ > [accordion] How do I register a supplier with AT? > > Run the AT Register Supplier workflow on the supplier, provide their AT web-service credentials, then register at least one series per document type they'll issue. Both can be done in the supplier portal or through the API ([credentials](/api-ref/apps/at-pt/credentials), [series](/api-ref/apps/at-pt/series-register)). Each series gets a validation code from the AT, used to build the ATCUD on every document. See [Register a supplier](/guides/pt-at-supplier). > [accordion] What credentials does AT require to authenticate a supplier? > > An AT web-services sub-user (username and password) created in the AT portal, in both models. It always needs the `WSE` permission, to register series; add `WFA` if documents are reported in real time. > [accordion] How are supplier credentials stored in Invopop for Portugal? > > Invopop stores the AT web-service credentials encrypted at rest, in both models: they're needed to register series, and for real-time reporting. In the SAF-T model, the supplier (or their accountant) also downloads the monthly SAF-T file and uploads it to the AT's portal. More available in our [Portugal FAQ](/faq/portugal) section *** > [accordion] 🇵🇹 Invopop resources for Portugal > > | | | > | - | - | > | Compliance | [Invoicing compliance in Portugal](/compliance/portugal) [Compliance timeline](/timelines/portugal) | > | Apps | [AT Portugal](/apps/at-portugal) | > | Guides | [Supplier registration](/guides/pt-at-supplier) [Issuing invoices](/guides/pt-at) | > | FAQ | [Portugal FAQ](/faq/portugal) | > | GOBL | [Portugal Tax Regime](https://docs.gobl.org/regimes/pt) [Portugal SAF-T addon](https://docs.gobl.org/addons/pt-saft-v1) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Portugal's regulation → # Related documents guide Source: https://docs.invopop.com/guides/related-docs Configure linked documents using UUIDs. ## Introduction In the Invopop Console, each document features a `Related` tab. When configured correctly, this tab shows other documents linked to the current one, such as all invoices associated with a supplier or the invoice referenced by a credit note. The key to linking documents reliably is the UUID field. This optional field is generated by Invopop if left blank, but you can use your own internal identifiers if preferred. ## Use case This guide will follow the example of linking a supplier to its invoices. **1. Upload the supplier** Upload a supplier to Invopop. You can either use your own UUID or leave it blank and Invopop will generate it. **2. Sign the supplier** The supplier must be signed for the linked invoice to appear. Send the supplier to a "contacts" workflow with the `Sign envelope` step. For further information on workflows check the [docs](/guides/workflows). **3. Link the invoice** When creating an invoice you want to link to a supplier, add the contact's UUID field to the invoice, just like you would with `name` or `address`. The invoice will then be linked to the supplier, and all invoices with that supplier will appear on its `Related` tab. ![Related Documents](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/related-docs.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=56d1a33012f8eeb656963d550efba1e7) How an invoice appears on the supplier's Related tab > [!WARNING] > > The related document search works in one direction. You will be able to see all invoices linked to a supplier in its `Related` tab, but not the supplier's link in an invoice. ## FAQ Please contact the [Invopop support team](mailto:support@invopop.com) if you have any questions that are not listed here. > [accordion] What is a UUID? > > A UUID (Universally Unique Identifier) is a 128-bit identifier unique across space and time. In Invopop, UUIDs link documents reliably, ensuring each document has a unique reference. > [accordion] Do I need to generate my own UUIDs? > > No. If you don't provide a UUID, Invopop will generate one for you. You can use your own internal identifiers if preferred. > [accordion] Can I change a document's UUID after creation? > > No. Once a document is created and signed with a UUID, that identifier becomes permanent and cannot be modified. > [accordion] What happens if I use an invalid UUID? > > Since the UUID is optional, providing an invalid format or referencing a non-existent document will result in no link being created. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about related documents → # ZATCA clearance & reporting in Saudi Arabia Source: https://docs.invopop.com/guides/sa-zatca-clearance-reporting Clear standard invoices in real time and report simplified invoices to ZATCA. > [!NOTE] > > Make sure you have completed the [registration guide](/guides/sa-zatca-registration) before clearing or reporting invoices. Saudi Arabia runs two e-invoicing flows, and both are driven by the **same GOBL invoice** with the ZATCA add-on. A single send workflow converts the document to UBL 2.1, chains it, signs it, and submits it to the corresponding ZATCA endpoint: | Flow | Invoices | | - | - | | **Clearance** | Standard tax invoices (B2B, B2G) | | **Reporting** | Simplified tax invoices (B2C) | ## Sending The send workflow claims the next ICV, builds and hashes the UBL document, signs it and generates the QR (for simplified invoices), submits to ZATCA and then stores the final XML and QR back on the silo entry. ### How it works ![](https://mintcdn.com/invopop/Qv7A6kpCsShJ1ip-/assets/guides/sa-send-invoice.png?fit=max\&auto=format\&n=Qv7A6kpCsShJ1ip-\&q=85\&s=ab669d40ef9318f4cbae3ab19eeface0) ZATCA send invoice workflow **1. Set State → Processing** Sets the state of the silo entry as "Processing". **2. Send invoice to ZATCA** Converts the GOBL invoice to UBL 2.1, adds the ICV and PIH chain values, hashes the document, and submits it to the clearance or reporting flows. **3. Set state → Sent** Marks the silo entry as "Sent" > [card] [Saudi Arabia send invoice workflow](https://console.invopop.com/redirect/workflows/new?template=sa-send-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice). > > ```json ZATCA send invoice workflow theme={"system"} > { > "name": "ZATCA send invoice", > "description": "Clears standard invoices and reports simplified invoices to ZATCA", > "schema": "bill/invoice", > "steps": [ > { > "id": "cf001030-6fce-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "4d45d610-b821-11f1-a782-f773a0732f50", > "name": "Sign Envelope", > "provider": "silo.close" > }, > { > "id": "d0badf90-6fce-11f1-b09d-79f60b032746", > "name": "Send invoice to ZATCA", > "provider": "gov-sa.invoice.send" > }, > { > "id": "d5f9cca0-6fce-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "d9c3a5e0-6fce-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` > [!WARNING] > > An invoice that is already signed is skipped as "already sent". ## Credit and debit notes Issued invoices can't be cancelled or edited once cleared or reported. Corrections are made with **credit notes** (reduction) or **debit notes** (increase) that reference the original invoice. A note flows through the same clearance or reporting model as the document it corrects, using the same send workflow. ## Reading the chain The ZATCA invoices dashboard lists every invoice the workspace has sent to ZATCA, newest first, so you can follow the cleared and reported chain at a glance. Each row surfaces the chain values ZATCA mandates: Supplier Tax Code, Identity Code, Identity Scheme, Invoice Counter, Silo Entry, the document Hash (each invoice's hash seeds the next invoice's PIH, linking the documents into a tamper-evident chain), the Invoice ID, Previous Invoice ID and Created at timestamp. In sandbox, an extra Environment column follows the silo entry, separating Simulation from Developer invoices. > [!NOTE] > > Rows with an empty **Silo Entry** are the compliance sample invoices Invopop submits during [registration](/guides/sa-zatca-registration) to obtain the Production CSID. They advance the chain but do not have a silo entry. > [!NOTE] > > The **Supplier Tax Code** in each row is a quick filter: selecting it opens the registrations tab filtered to the party that owns the chain. The **Name** column on that tab filters back the other way, to the party's invoices. ## Example invoices Every example pairs the minimal hand-authored GOBL input with the built version produced by `gobl build`. All carry the [`sa-zatca-v1`](https://docs.gobl.org/addons/sa-zatca-v1) add-on. Standard invoices are cleared; simplified invoices are reported. ### Standard tax invoices (clearance) > [accordion] Standard invoice (B2B) > > A standard tax invoice between two VAT-registered parties, billed at the 15% standard rate. This is the baseline document cleared with ZATCA before it is shared with the buyer. > > ```json Standard invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "code": "SAMPLE-001", > "type": "standard", > "regime": "SA", > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "code": "SAMPLE-001", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "currency": "SAR", > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0100000", > "untdid-document-type": "388" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1800.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1800.00", > "percent": "15.0%", > "amount": "270.00" > } > ], > "amount": "270.00" > } > ], > "sum": "270.00" > }, > "tax": "270.00", > "total_with_tax": "2070.00", > "payable": "2070.00" > } > } > ``` > [accordion] Standard credit note > > A credit note that reduces a previously cleared standard invoice. The `preceding` block links it to the original document. > > ```json Standard credit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "a1b2c3d4-1111-4aaa-bbbb-000000000001", > "type": "credit-note", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "series": "CN", > "code": "CN-001", > "regime": "SA", > "preceding": [ > { > "series": "", > "code": "SAMPLE-001", > "issue_date": "2022-02-01", > "reason": "Return of development services" > } > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Refund within 14 days" > } > }, > "lines": [ > { > "quantity": 5, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "uuid": "a1b2c3d4-1111-4aaa-bbbb-000000000001", > "type": "credit-note", > "series": "CN", > "code": "CN-001", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "currency": "SAR", > "preceding": [ > { > "issue_date": "2022-02-01", > "code": "SAMPLE-001", > "reason": "Return of development services" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0100000", > "untdid-document-type": "381" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "450.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "450.00" > } > ], > "payment": { > "terms": { > "notes": "Refund within 14 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "450.00", > "total": "450.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "450.00", > "percent": "15.0%", > "amount": "67.50" > } > ], > "amount": "67.50" > } > ], > "sum": "67.50" > }, > "tax": "67.50", > "total_with_tax": "517.50", > "payable": "517.50" > } > } > ``` > [accordion] Standard debit note > > A debit note that increases the value of a previously cleared standard invoice, referencing the original in `preceding`. > > ```json Standard debit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "a1b2c3d4-2222-4aaa-bbbb-000000000002", > "type": "debit-note", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "series": "DN", > "code": "DN-001", > "regime": "SA", > "preceding": [ > { > "series": "", > "code": "SAMPLE-001", > "issue_date": "2022-02-01", > "reason": "Price adjustment for development services" > } > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 5, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "uuid": "a1b2c3d4-2222-4aaa-bbbb-000000000002", > "type": "debit-note", > "series": "DN", > "code": "DN-001", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "currency": "SAR", > "preceding": [ > { > "issue_date": "2022-02-01", > "code": "SAMPLE-001", > "reason": "Price adjustment for development services" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0100000", > "untdid-document-type": "383" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "450.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "450.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "450.00", > "total": "450.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "450.00", > "percent": "15.0%", > "amount": "67.50" > } > ], > "amount": "67.50" > } > ], > "sum": "67.50" > }, > "tax": "67.50", > "total_with_tax": "517.50", > "payable": "517.50" > } > } > ``` > [accordion] Standard export invoice > > An export to a customer outside the GCC, taxed at the zero rate. Exports carry an exemption reason and are reported with the export tag. > > ```json Standard export invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852d0", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "code": "SAMPLE-EX-001", > "type": "standard", > "regime": "SA", > "$tags": [ > "export" > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Global Importers Ltd", > "identities": [ > { > "type": "PAS", > "code": "X1234567" > } > ], > "addresses": [ > { > "street": "Sheikh Zayed Road", > "num": "100", > "locality": "Dubai", > "code": "00000", > "country": "AE" > } > ] > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "zero", > "ext": { > "untdid-tax-category": "Z", > "cef-vatex": "VATEX-SA-32" > } > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "export" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852d0", > "type": "standard", > "code": "SAMPLE-EX-001", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "currency": "SAR", > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0100100", > "untdid-document-type": "388" > }, > "notes": [ > { > "cat": "VAT", > "key": "zero", > "text": "Export of goods", > "ext": { > "untdid-tax-category": "Z" > } > } > ] > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Global Importers Ltd", > "identities": [ > { > "type": "PAS", > "code": "X1234567" > } > ], > "addresses": [ > { > "num": "100", > "street": "Sheikh Zayed Road", > "locality": "Dubai", > "code": "00000", > "country": "AE" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "zero", > "percent": "0%", > "ext": { > "cef-vatex": "VATEX-SA-32", > "untdid-tax-category": "Z" > } > } > ], > "total": "1800.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "zero", > "ext": { > "cef-vatex": "VATEX-SA-32", > "untdid-tax-category": "Z" > }, > "base": "1800.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "0.00" > } > ], > "sum": "0.00" > }, > "tax": "0.00", > "total_with_tax": "1800.00", > "payable": "1800.00" > } > } > ``` > [accordion] Standard nominal invoice > > A nominal (deemed) supply — goods or services provided without a monetary charge but still subject to VAT. > > ```json Standard nominal invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852c0", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "code": "SAMPLE-NM-001", > "type": "standard", > "regime": "SA", > "$tags": [ > "nominal" > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "nominal" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852c0", > "type": "standard", > "code": "SAMPLE-NM-001", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "currency": "SAR", > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0101000", > "untdid-document-type": "388" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1800.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1800.00", > "percent": "15.0%", > "amount": "270.00" > } > ], > "amount": "270.00" > } > ], > "sum": "270.00" > }, > "tax": "270.00", > "total_with_tax": "2070.00", > "payable": "2070.00" > } > } > ``` > [accordion] Standard self-billed invoice > > A self-billed invoice, where the customer issues the document on the supplier's behalf under a self-billing agreement. > > ```json Standard self-billed invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d853a1", > "issue_date": "2024-06-15", > "issue_time": "12:00:00", > "code": "SAMPLE-SB-001", > "type": "standard", > "regime": "SA", > "$tags": [ > "self-billed" > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "tax_id": { > "country": "SA", > "code": "399999999900003" > }, > "identities": [ > { > "type": "CRN", > "code": "123456789012345" > } > ], > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2024-06-15", > "period": { > "start": "2024-06-01", > "end": "2024-06-30" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "self-billed" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d853a1", > "type": "standard", > "code": "SAMPLE-SB-001", > "issue_date": "2024-06-15", > "issue_time": "12:00:00", > "currency": "SAR", > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0100001", > "untdid-document-type": "388" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "tax_id": { > "country": "SA", > "code": "399999999900003" > }, > "identities": [ > { > "type": "CRN", > "code": "123456789012345" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1800.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2024-06-15", > "period": { > "start": "2024-06-01", > "end": "2024-06-30" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1800.00", > "percent": "15.0%", > "amount": "270.00" > } > ], > "amount": "270.00" > } > ], > "sum": "270.00" > }, > "tax": "270.00", > "total_with_tax": "2070.00", > "payable": "2070.00" > } > } > ``` > [accordion] Standard third-party invoice > > An invoice issued by an authorised third party on behalf of the supplier. > > ```json Standard third-party invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852b0", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "code": "SAMPLE-TP-001", > "type": "standard", > "regime": "SA", > "$tags": [ > "third-party" > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "third-party" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852b0", > "type": "standard", > "code": "SAMPLE-TP-001", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "currency": "SAR", > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0110000", > "untdid-document-type": "388" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1800.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1800.00", > "percent": "15.0%", > "amount": "270.00" > } > ], > "amount": "270.00" > } > ], > "sum": "270.00" > }, > "tax": "270.00", > "total_with_tax": "2070.00", > "payable": "2070.00" > } > } > ``` > [accordion] Standard invoice in foreign currency (USD) > > An invoice issued in USD. The VAT amount must also be expressed in SAR, converted at the SAMA rate on the supply date. > > ```json Standard invoice (USD) theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "currency": "USD", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "code": "SAMPLE-001", > "regime": "SA", > "exchange_rates": [ > { > "from": "USD", > "to": "SAR", > "amount": 3.75 > } > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "name": "Acme Corp Saudi", > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "code": "SAMPLE-001", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "currency": "USD", > "exchange_rates": [ > { > "from": "USD", > "to": "SAR", > "amount": "3.75" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0100000", > "untdid-document-type": "388" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "CRN", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "TIN", > "code": "123456789012345" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1800.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1800.00", > "percent": "15.0%", > "amount": "270.00" > } > ], > "amount": "270.00" > } > ], > "sum": "270.00" > }, > "tax": "270.00", > "total_with_tax": "2070.00", > "payable": "2070.00" > } > } > ``` > [accordion] Summary credit note > > A summary credit note that corrects one or more preceding invoices in a single document, tagged `summary`. > > ```json Summary credit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "8a51fd30-2a27-11ee-be56-0242ac120003", > "issue_date": "2024-02-05", > "issue_time": "09:30:00", > "series": "CN", > "code": "SAMPLE-CN-001", > "regime": "SA", > "type": "credit-note", > "$tags": [ > "summary" > ], > "preceding": [ > { > "series": "INV", > "code": "SAMPLE-001", > "issue_date": "2024-01-31", > "reason": "Partial return of services after monthly close — discount applied per agreement BR-2024-AC-12", > "type": "standard" > } > ], > "notes": [ > { > "key": "general", > "text": "Monthly summary credit note covering January 2024 adjustments." > }, > { > "key": "reason", > "text": "Customer returned 5 hours of consultancy and the office equipment delivered on 28 Jan." > } > ], > "supplier": { > "name": "Acme Corp Saudi LLC", > "alias": "Acme SA", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "SAG", > "code": "1010101010" > } > ], > "people": [ > { > "name": { > "given": "Yara", > "surname": "Al-Harbi", > "prefix": "Eng." > }, > "role": "Billing Manager" > } > ], > "emails": [ > { > "addr": "billing@acme.sa" > } > ], > "telephones": [ > { > "num": "+966112345678", > "label": "office" > } > ], > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "CRN", > "code": "2020202020" > } > ], > "emails": [ > { > "addr": "ap@sample-consumer.sa" > } > ], > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2024-01-31", > "period": { > "start": "2024-01-01", > "end": "2024-01-31" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer", > "detail": "Refund via SEPA-equivalent local transfer", > "credit_transfer": [ > { > "iban": "SA4420000001234567891234", > "bic": "RJHISARIXXX", > "name": "Sample Consumer LLC — Refund Account" > } > ] > }, > "terms": { > "notes": "Refund to be processed within 14 days of receipt." > } > }, > "lines": [ > { > "i": 1, > "quantity": 5, > "item": { > "name": "Development services", > "ref": "SVC-DEV-01", > "price": "120.00", > "unit": "h" > }, > "sum": "600.00", > "discounts": [ > { > "percent": "10%", > "reason": "Loyalty discount adjustment" > } > ], > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ], > "total": "540.00" > }, > { > "i": 2, > "quantity": 1, > "item": { > "name": "Office desk return", > "ref": "ITM-DESK-01", > "price": "850.00", > "unit": "one" > }, > "sum": "850.00", > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ], > "total": "850.00" > }, > { > "i": 3, > "quantity": 2, > "item": { > "name": "Domestic flights for cancelled visit", > "ref": "TRV-FLT-01", > "price": "300.00", > "unit": "one" > }, > "sum": "600.00", > "taxes": [ > { > "cat": "VAT", > "rate": "zero", > "ext": { > "untdid-tax-category": "Z", > "cef-vatex": "VATEX-SA-32" > } > } > ], > "total": "600.00" > } > ], > "charges": [ > { > "reason": "Restocking and handling fee", > "amount": "50.00", > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "summary" > ], > "uuid": "8a51fd30-2a27-11ee-be56-0242ac120003", > "type": "credit-note", > "series": "CN", > "code": "SAMPLE-CN-001", > "issue_date": "2024-02-05", > "issue_time": "09:30:00", > "currency": "SAR", > "preceding": [ > { > "type": "standard", > "issue_date": "2024-01-31", > "series": "INV", > "code": "SAMPLE-001", > "reason": "Partial return of services after monthly close — discount applied per agreement BR-2024-AC-12" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0100010", > "untdid-document-type": "381" > }, > "notes": [ > { > "cat": "VAT", > "key": "zero", > "text": "Export of goods", > "ext": { > "untdid-tax-category": "Z" > } > } > ] > }, > "supplier": { > "name": "Acme Corp Saudi LLC", > "alias": "Acme SA", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "SAG", > "code": "1010101010" > } > ], > "people": [ > { > "name": { > "prefix": "Eng.", > "given": "Yara", > "surname": "Al-Harbi" > }, > "role": "Billing Manager" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ], > "emails": [ > { > "addr": "billing@acme.sa" > } > ], > "telephones": [ > { > "label": "office", > "num": "+966112345678" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "identities": [ > { > "type": "CRN", > "code": "2020202020" > } > ], > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ], > "emails": [ > { > "addr": "ap@sample-consumer.sa" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "ref": "SVC-DEV-01", > "name": "Development services", > "price": "120.00", > "unit": "h" > }, > "sum": "600.00", > "discounts": [ > { > "reason": "Loyalty discount adjustment", > "percent": "10%", > "amount": "60.00" > } > ], > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "540.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "ref": "ITM-DESK-01", > "name": "Office desk return", > "price": "850.00", > "unit": "one" > }, > "sum": "850.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "850.00" > }, > { > "i": 3, > "quantity": "2", > "item": { > "ref": "TRV-FLT-01", > "name": "Domestic flights for cancelled visit", > "price": "300.00", > "unit": "one" > }, > "sum": "600.00", > "taxes": [ > { > "cat": "VAT", > "key": "zero", > "percent": "0%", > "ext": { > "cef-vatex": "VATEX-SA-32", > "untdid-tax-category": "Z" > } > } > ], > "total": "600.00" > } > ], > "charges": [ > { > "i": 1, > "reason": "Restocking and handling fee", > "amount": "50.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ] > } > ], > "payment": { > "terms": { > "notes": "Refund to be processed within 14 days of receipt." > }, > "instructions": { > "key": "credit-transfer", > "detail": "Refund via SEPA-equivalent local transfer", > "credit_transfer": [ > { > "iban": "SA4420000001234567891234", > "bic": "RJHISARIXXX", > "name": "Sample Consumer LLC — Refund Account" > } > ], > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2024-01-31", > "period": { > "start": "2024-01-01", > "end": "2024-01-31" > } > }, > "totals": { > "sum": "1990.00", > "charge": "50.00", > "total": "2040.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1440.00", > "percent": "15.0%", > "amount": "216.00" > }, > { > "key": "zero", > "ext": { > "cef-vatex": "VATEX-SA-32", > "untdid-tax-category": "Z" > }, > "base": "600.00", > "percent": "0%", > "amount": "0.00" > } > ], > "amount": "216.00" > } > ], > "sum": "216.00" > }, > "tax": "216.00", > "total_with_tax": "2256.00", > "payable": "2256.00" > }, > "notes": [ > { > "key": "general", > "text": "Monthly summary credit note covering January 2024 adjustments.", > "ext": { > "untdid-text-subject": "AAI" > } > }, > { > "key": "reason", > "text": "Customer returned 5 hours of consultancy and the office equipment delivered on 28 Jan.", > "ext": { > "untdid-text-subject": "ACD" > } > } > ] > } > ``` ### Simplified tax invoices (reporting) > [accordion] Simplified invoice (B2C) > > A simplified tax invoice for a consumer sale. It is signed and stamped locally with the Production CSID, delivered immediately, and reported to ZATCA within 24 hours. > > ```json Simplified invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "code": "SAMPLE-001", > "regime": "SA", > "type": "standard", > "$tags": [ > "simplified" > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "MLS", > "code": "1234567890" > } > ], > "name": "Acme Corp Saudi", > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 20, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "simplified" > ], > "uuid": "3aea7b56-59d8-4beb-90bd-f8f280d852a0", > "type": "standard", > "code": "SAMPLE-001", > "issue_date": "2022-02-01", > "issue_time": "12:00:00", > "currency": "SAR", > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0200000", > "untdid-document-type": "388" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "MLS", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "20", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "1800.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "1800.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-02-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "1800.00", > "total": "1800.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "1800.00", > "percent": "15.0%", > "amount": "270.00" > } > ], > "amount": "270.00" > } > ], > "sum": "270.00" > }, > "tax": "270.00", > "total_with_tax": "2070.00", > "payable": "2070.00" > } > } > ``` > [accordion] Simplified credit note > > A credit note reducing a previously reported simplified invoice. > > ```json Simplified credit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "a1b2c3d4-3333-4aaa-bbbb-000000000003", > "type": "credit-note", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "series": "CN", > "code": "CN-001", > "regime": "SA", > "$tags": [ > "simplified" > ], > "preceding": [ > { > "series": "", > "code": "SAMPLE-001", > "issue_date": "2022-02-01", > "reason": "Return of development services" > } > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "MLS", > "code": "1234567890" > } > ], > "name": "Acme Corp Saudi", > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Refund within 14 days" > } > }, > "lines": [ > { > "quantity": 5, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "simplified" > ], > "uuid": "a1b2c3d4-3333-4aaa-bbbb-000000000003", > "type": "credit-note", > "series": "CN", > "code": "CN-001", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "currency": "SAR", > "preceding": [ > { > "issue_date": "2022-02-01", > "code": "SAMPLE-001", > "reason": "Return of development services" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0200000", > "untdid-document-type": "381" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "MLS", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "450.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "450.00" > } > ], > "payment": { > "terms": { > "notes": "Refund within 14 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "450.00", > "total": "450.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "450.00", > "percent": "15.0%", > "amount": "67.50" > } > ], > "amount": "67.50" > } > ], > "sum": "67.50" > }, > "tax": "67.50", > "total_with_tax": "517.50", > "payable": "517.50" > } > } > ``` > [accordion] Simplified debit note > > A debit note increasing the value of a previously reported simplified invoice. > > ```json Simplified debit note theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "a1b2c3d4-4444-4aaa-bbbb-000000000004", > "type": "debit-note", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "series": "DN", > "code": "DN-001", > "regime": "SA", > "$tags": [ > "simplified" > ], > "preceding": [ > { > "series": "", > "code": "SAMPLE-001", > "issue_date": "2022-02-01", > "reason": "Price adjustment for development services" > } > ], > "supplier": { > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "MLS", > "code": "1234567890" > } > ], > "name": "Acme Corp Saudi", > "addresses": [ > { > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "num": "1234", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "addresses": [ > { > "street": "Olaya Street", > "street_extra": "Al Malaz", > "num": "5678", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > }, > "lines": [ > { > "quantity": 5, > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ] > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "simplified" > ], > "uuid": "a1b2c3d4-4444-4aaa-bbbb-000000000004", > "type": "debit-note", > "series": "DN", > "code": "DN-001", > "issue_date": "2022-03-01", > "issue_time": "10:00:00", > "currency": "SAR", > "preceding": [ > { > "issue_date": "2022-02-01", > "code": "SAMPLE-001", > "reason": "Price adjustment for development services" > } > ], > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0200000", > "untdid-document-type": "383" > } > }, > "supplier": { > "name": "Acme Corp Saudi", > "tax_id": { > "country": "SA", > "code": "312345678912343" > }, > "identities": [ > { > "type": "MLS", > "code": "1234567890" > } > ], > "addresses": [ > { > "num": "1234", > "street": "King Fahd Road", > "street_extra": "Al Olaya", > "locality": "Riyadh", > "region": "Riyadh", > "code": "12345", > "country": "SA" > } > ] > }, > "customer": { > "name": "Sample Consumer LLC", > "addresses": [ > { > "num": "5678", > "street": "Olaya Street", > "street_extra": "Al Malaz", > "locality": "Riyadh", > "region": "Riyadh", > "code": "54321", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "5", > "item": { > "name": "Development services", > "price": "90.00", > "unit": "h" > }, > "sum": "450.00", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "450.00" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "delivery": { > "date": "2022-03-01", > "period": { > "start": "2022-02-01", > "end": "2022-02-28" > } > }, > "totals": { > "sum": "450.00", > "total": "450.00", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "450.00", > "percent": "15.0%", > "amount": "67.50" > } > ], > "amount": "67.50" > } > ], > "sum": "67.50" > }, > "tax": "67.50", > "total_with_tax": "517.50", > "payable": "517.50" > } > } > ``` > [accordion] Simplified zero-rated invoice > > A simplified invoice on zero-rated supplies, carrying explanatory tax notes for the applied rate. > > ```json Simplified zero-rated invoice theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$addons": [ > "sa-zatca-v1" > ], > "uuid": "8d487816-70b8-4ade-a618-9d620b73814a", > "issue_date": "2022-09-07", > "issue_time": "12:21:28", > "code": "123456", > "regime": "SA", > "type": "standard", > "$tags": [ > "simplified" > ], > "tax": { > "rounding": "currency", > "notes": [ > { > "cat": "VAT", > "key": "zero", > "text": "Medicines", > "ext": { > "untdid-tax-category": "Z" > } > } > ] > }, > "supplier": { > "tax_id": { > "country": "SA", > "code": "399999999900003" > }, > "name": "شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD", > "identities": [ > { > "type": "CRN", > "code": "1010010000" > } > ], > "addresses": [ > { > "street": "الامير سلطان | Prince Sultan", > "street_extra": "المربع | Al-Murabba", > "num": "2322", > "locality": "الرياض | Riyadh", > "code": "23333", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Medicine | الدواء", > "price": "50.00", > "unit": "PCE" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "zero", > "ext": { > "cef-vatex": "VATEX-SA-35" > } > } > ] > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Shampoo | شامبو", > "price": "21.74", > "unit": "PCE" > }, > "taxes": [ > { > "cat": "VAT", > "rate": "standard" > } > ] > } > ], > "payment": { > "instructions": { > "key": "credit-transfer" > }, > "terms": { > "notes": "Payment due within 30 days" > } > } > } > ``` > > ```json Built version theme={"system"} > { > "$schema": "https://gobl.org/draft-0/bill/invoice", > "$regime": "SA", > "$addons": [ > "eu-en16931-v2017", > "sa-zatca-v1" > ], > "$tags": [ > "simplified" > ], > "uuid": "8d487816-70b8-4ade-a618-9d620b73814a", > "type": "standard", > "code": "123456", > "issue_date": "2022-09-07", > "issue_time": "12:21:28", > "currency": "SAR", > "tax": { > "rounding": "currency", > "ext": { > "sa-zatca-invoice-type": "0200000", > "untdid-document-type": "388" > }, > "notes": [ > { > "cat": "VAT", > "key": "zero", > "text": "Medicines", > "ext": { > "untdid-tax-category": "Z" > } > } > ] > }, > "supplier": { > "name": "شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD", > "tax_id": { > "country": "SA", > "code": "399999999900003" > }, > "identities": [ > { > "type": "CRN", > "code": "1010010000" > } > ], > "addresses": [ > { > "num": "2322", > "street": "الامير سلطان | Prince Sultan", > "street_extra": "المربع | Al-Murabba", > "locality": "الرياض | Riyadh", > "code": "23333", > "country": "SA" > } > ] > }, > "lines": [ > { > "i": 1, > "quantity": "1", > "item": { > "name": "Medicine | الدواء", > "price": "50.00", > "unit": "PCE" > }, > "sum": "50.00", > "taxes": [ > { > "cat": "VAT", > "key": "zero", > "percent": "0%", > "ext": { > "cef-vatex": "VATEX-SA-35", > "untdid-tax-category": "Z" > } > } > ], > "total": "50.00" > }, > { > "i": 2, > "quantity": "1", > "item": { > "name": "Shampoo | شامبو", > "price": "21.74", > "unit": "PCE" > }, > "sum": "21.74", > "taxes": [ > { > "cat": "VAT", > "key": "standard", > "rate": "general", > "percent": "15.0%", > "ext": { > "untdid-tax-category": "S" > } > } > ], > "total": "21.74" > } > ], > "payment": { > "terms": { > "notes": "Payment due within 30 days" > }, > "instructions": { > "key": "credit-transfer", > "ext": { > "untdid-payment-means": "30" > } > } > }, > "totals": { > "sum": "71.74", > "total": "71.74", > "taxes": { > "categories": [ > { > "code": "VAT", > "rates": [ > { > "key": "zero", > "ext": { > "cef-vatex": "VATEX-SA-35", > "untdid-tax-category": "Z" > }, > "base": "50.00", > "percent": "0%", > "amount": "0.00" > }, > { > "key": "standard", > "ext": { > "untdid-tax-category": "S" > }, > "base": "21.74", > "percent": "15.0%", > "amount": "3.26" > } > ], > "amount": "3.26" > } > ], > "sum": "3.26" > }, > "tax": "3.26", > "total_with_tax": "75.00", > "payable": "75.00" > } > } > ``` ## FAQ > [accordion] How does Invopop decide between clearance and reporting? > > From the GOBL invoice type. **Simplified** invoices (B2C) are **reported** to ZATCA; all **standard** invoices (B2B and B2G) are **cleared**. > [accordion] When do I submit a standard invoice (clearance) to Invopop? > > **Before you share it with the buyer.** Standard invoices follow the clearance model: Invopop submits the invoice to ZATCA in real time, ZATCA validates it and applies its cryptographic stamp, and the **cleared** document is returned. Only that cleared version is legally valid and shareable — so the invoice must go through Invopop before you send it on to the buyer. > [accordion] When do I submit a simplified invoice (reporting) to Invopop? > > **Within 24 hours of issuing it.** Simplified invoices follow the reporting model, so you can give the invoice to the customer straight away at the point of sale — it does **not** need ZATCA validation first, and you can share it before it ever reaches Invopop. You then have up to **24 hours from issuance** to submit it to Invopop, which forwards it to ZATCA immediately when the workflow runs. > [accordion] Do I need to build the ICV/PIH chain myself? > > No. Invopop calculates the Invoice Counter Value (ICV) and Previous Invoice Hash (PIH) internally on every submission. You only see them reflected in the generated invoice XML. > [accordion] How is the invoice chain created? > > ZATCA requires every document a party issues to form a single, unbroken cryptographic chain. Invopop maintains one chain **per party and environment** (sandbox simulation/developer vs. production are separate sequences), so each registered CSID has its own continuous counter. Two values link it together: > > * **ICV** starts at `1` for the first document and increments by exactly `1` for every document that follows. > * **PIH** of the first document is the hash of the value `0` — the base case defined in ZATCA's data dictionary. Every document after that sets its PIH to the hash of the **immediately preceding document**. > > Each new document takes the hash of the immediately preceding document and increments ICV by 1, **irrespective of type and status**: > > * **Document type does not split the chain.** Standard invoices, simplified invoices, credit notes, and debit notes all share one sequence. > * **Rejected documents still occupy their slot.** A document that ZATCA rejects keeps its ICV and hash; the next document chains off it, not off the last *accepted* one. > > For example, if invoice 2 is rejected, invoice 3 still uses `hash(invoice 2)` as its PIH and `ICV = 3`: > > | Document | ICV | PIH points to | ZATCA result | > | - | - | - | - | > | Invoice 1 | 1 | hash of `0` (base case) | Accepted | > | Invoice 2 | 2 | hash(Invoice 1) | Rejected | > | Invoice 3 | 3 | hash(Invoice 2) | Accepted | > | Credit note 4 | 4 | hash(Invoice 3) | Accepted | > [accordion] Where do I find the cleared invoice? > > In the **Files** section of the silo entry. After a successful submission the final XML is attached as `invoice.xml` — for standard invoices this is the ZATCA-cleared, stamped document. The QR code is also stamped onto the document. More available in our [Saudi Arabia FAQ](/faq/saudi-arabia) section. *** > [accordion] 🇸🇦 Invopop resources for Saudi Arabia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Saudi Arabia](/compliance/saudi-arabia) [Compliance timeline](/timelines/saudi-arabia) | > | Apps | [Saudi Arabia](/apps/saudi-arabia) | > | Guides | [Registration](/guides/sa-zatca-registration) [Clearance & reporting](/guides/sa-zatca-clearance-reporting) | > | FAQ | [Saudi Arabia FAQ](/faq/saudi-arabia) | > | GOBL | [Saudi Arabia Tax Regime](https://docs.gobl.org/regimes/sa) [ZATCA Addon](https://docs.gobl.org/addons/sa-zatca-v1) | > | GitHub | [gobl.sa.zatca](https://github.com/invopop/gobl.sa.zatca) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Saudi Arabia → # ZATCA supplier registration in Saudi Arabia Source: https://docs.invopop.com/guides/sa-zatca-registration Onboard a Saudi VAT-registered party with ZATCA and provision its production CSID. > [!NOTE] > > Registration is required for any Saudi VAT number that will clear or report invoices through Invopop. It is a prerequisite for the [clearance and reporting](/guides/sa-zatca-clearance-reporting) flow. ## Sandbox environments In sandbox, the **Register Party** step's configuration selects which ZATCA portal to onboard against. Production enrollments ignore this and always use the live endpoint. | Mode | Target | OTP in the wizard | Use it to | | - | - | - | - | | `developer` | ZATCA Developer (sandbox) portal | **Dummy** — any placeholder value is accepted | Test the onboarding flow end to end without touching a real ZATCA account. | | `simulation` (default) | ZATCA Simulation portal | **Real** — must be generated from the supplier's FATOORA Simulation account | Rehearse the production onboarding with genuine certificates and compliance checks before going live. | The two modes target different ZATCA sandbox endpoints and differ mainly in how the OTP is treated: * **Developer** is the lightweight sandbox. ZATCA does not validate the OTP, so the value the supplier types in the [onboarding wizard](#the-onboarding-wizard) is a dummy. You can **register any party** in developer mode, but ZATCA only accepts **invoices issued from its fixed test VAT number, `399999999900003`**. * **Simulation** mirrors production. The OTP must be a **real** one-time password the supplier generates from their FATOORA *Simulation* portal, exactly as they would in production. > [!NOTE] > > In both sandbox modes the supplier still completes the same wizard, only the OTP requirement changes. ## How it works Registration spans two parts: a workflow you run against the party document, and a hosted onboarding wizard the supplier completes to provide the FATOORA OTP. **1. Set State → Processing** Sets the state of the silo entry as "Processing". **2. Register supplier with ZATCA** Validates the party's name, tax ID, [supplier identity](#multi-branch-entities), and full address, stakes the claim on that VAT number and identity, then publishes a public onboarding link in the meta section of the party. The supplier follows this link to complete the onboarding wizard. The company name and registered address are recorded on the registration at this point, so correcting either one on the party means re-running this step before the supplier submits the OTP. **3. Wait for ZATCA certificate upload** Pauses until the supplier uploads the compliance CSID. It will then submit the mandatory compliance sample invoices and swaps the Compliance CSID with the Production CSID. **4. Set State → Registered** Sets the state of the silo entry as "Registered". > [card] [ZATCA register party workflow](https://console.invopop.com/redirect/workflows/new?template=sa-register) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party). > > ```json ZATCA register supplier workflow theme={"system"} > { > "name": "ZATCA register supplier", > "description": "Registers a supplier with ZATCA and provisions its production CSID", > "schema": "org/party", > "steps": [ > { > "id": "f60b2e30-6fce-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "fd448bb0-6fce-11f1-b09d-79f60b032746", > "name": "Register supplier with ZATCA", > "provider": "gov-sa.party.register", > "config": { > "mode": "simulation" > } > }, > { > "id": "0064b770-6fcf-11f1-b09d-79f60b032746", > "name": "Wait for OTP submission", > "provider": "gov-sa.wait.authorization" > }, > { > "id": "0236df60-6fcf-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `registered`{.state .registered}", > "config": { > "state": "registered" > } > } > ], > "rescue": [ > { > "id": "04aa0240-6fcf-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## The onboarding wizard The link published by **Register Party** provides an onboarding wizard for the supplier to complete: **1. Company details** ![](https://mintcdn.com/invopop/Qv7A6kpCsShJ1ip-/assets/guides/sa-wizard-1.png?fit=max\&auto=format\&n=Qv7A6kpCsShJ1ip-\&q=85\&s=5568bbcc3820fcccdcf6ff0229218db6) Company details screen The supplier provides the **invoice type** (`1000` standard, `0100` simplified, or `1100` both), **branch name**, and **business category**. These values feed the certificate request, together with the company name and the registered address taken from the party document. **2. Get the OTP from FATOORA** ![](https://mintcdn.com/invopop/Qv7A6kpCsShJ1ip-/assets/guides/sa-wizard-2.png?fit=max\&auto=format\&n=Qv7A6kpCsShJ1ip-\&q=85\&s=623abe190e735a556b14c4e126549d6b) FATOORA instructions screen The supplier signs in to the FATOORA portal and generates a One-Time Password for the EGS unit. The wizard shows the relevant FATOORA screens. **3. Enter the OTP** ![](https://mintcdn.com/invopop/Qv7A6kpCsShJ1ip-/assets/guides/sa-wizard-3.png?fit=max\&auto=format\&n=Qv7A6kpCsShJ1ip-\&q=85\&s=27d0d8497afd2735dd410987dc7fa5ec) OTP Code screen The supplier pastes the OTP and reviews the recap of the details that will be sent to ZATCA. **4. Confirm details** ![](https://mintcdn.com/invopop/vZkW6_JEMNr7jt_k/assets/guides/sa-wizard-4.png?fit=max\&auto=format\&n=vZkW6_JEMNr7jt_k\&q=85\&s=efddf07cac66371303c278b9f14fe071) Confirmation screen Here you will make sure all the details you entered were correct. Click "Back" if you need to change anything. **5. Submit** ![](https://mintcdn.com/invopop/vZkW6_JEMNr7jt_k/assets/guides/sa-wizard-5.png?fit=max\&auto=format\&n=vZkW6_JEMNr7jt_k\&q=85\&s=83e703e5fe278d72cd193fdce5b50b44) Submission screen Upon submit, Invopop requests the **Compliance CSID**, and stores the credentials. This unblocks the **Wait for ZATCA certificate upload** step in the workflow. > [!NOTE] > > The invoice type chosen here determines which compliance samples Invopop submits: `1000` runs standard tax invoices, credit notes, and debit notes; `0100` runs the simplified equivalents; `1100` runs both sets. ## Reading registrations The ZATCA registrations dashboard lists every party the workspace has onboarded, ordered alphabetically by name, so you can confirm what a supplier is registered for without leaving the console. Each row carries the registration's details: Name, Branch Name, Identity Code, Identity Scheme, Business Category, Registered Address, Tax Code, Simplified Invoices and Standard Invoices, showing which document types the party can submit, Status — *Registered*, or *Unregistered* and the Silo Entry the registration was started from. In sandbox, an extra Environment column precedes the tax code, separating Simulation from Developer registrations. > [!NOTE] > > The **Name** in each row is a quick filter: selecting it opens the invoices tab filtered to that party's [cleared and reported chain](/guides/sa-zatca-clearance-reporting). The **Supplier Tax Code** column on that tab filters back the other way, to the registered party. ## Unregistration (sandbox only) Unregistering a party from ZATCA in production environment is handled by the **taxpayers**, directly in the **FATOORA portal**, signing in with their own credentials. Invopop also provides an unregister action that removes the party and its stored credentials from **Invopop's internal systems only**. It does not touch the party's registration with ZATCA. It targets a single registration, the one that matches the party's VAT number and [supplier identity](#multi-branch-entities), so unregistering one branch leaves the other registrations under the same VAT number untouched. > [!WARNING] > > This action is intended for **testing in sandbox** — for example, to re-onboard the same VAT number and identity during development. It is **not** for live environments; unregistering at ZATCA is always done by the taxpayer in the FATOORA portal. > [card] [ZATCA unregister supplier workflow (sandbox only)](https://console.invopop.com/redirect/workflows/new?template=sa-unregister) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party). > > ```json ZATCA unregister supplier workflow theme={"system"} > { > "name": "ZATCA unregister supplier", > "description": "Removes a supplier's registration from Invopop's internal systems", > "schema": "org/party", > "steps": [ > { > "id": "572ac450-6fcf-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "5c0e9910-6fcf-11f1-b09d-79f60b032746", > "name": "Unregister supplier from ZATCA", > "provider": "gov-sa.party.unregister" > }, > { > "id": "5e800e40-6fcf-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `void`{.state .void}", > "config": { > "state": "void" > } > } > ], > "rescue": [ > { > "id": "60e4d940-6fcf-11f1-b09d-79f60b032746", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` ## Multi-branch entities A business can run several branches that all share the same VAT number while each branch onboards its own device or system. A single VAT number therefore often needs more than one registration, and Invopop supports this through the [GOBL identities](https://docs.gobl.org/draft-0/org/identity) field. Every party registered with ZATCA is linked to a unique CSID certificate that identifies both its VAT number and its branch. Invopop gives each unique combination of VAT number and supplier identity its own CSID certificate, allowing them to act independently and through their own invoice chain. Set the identity on the [`org.Party`](https://docs.gobl.org/draft-0/org/party) document as an entry in `identities` whose `type` is one of: | `type` | Identity | | - | - | | `CRN` | Commercial Registration Number | | `MOM` | Momrah license (Ministry of Municipality, Rural Affairs and Housing) | | `MLS` | MLSD license (Ministry of Human Resources and Social Development) | | `700` | 700 number (unified national number) | | `SAG` | Sagia license (Ministry of Investment, formerly SAGIA) | | `OTH` | Other identifier | ## FAQ > [accordion] What do I need to onboard a party with ZATCA? > > A workspace with the **Saudi Arabia** app enabled, and an `org/party` (the supplier) carrying: > > * a **company name**, > * a Saudi **VAT registration number**, > * an **identity** of type `CRN`, `MOM`, `MLS`, `700`, `SAG`, or `OTH`, and > * a complete **national address** (building number, postal code, district, street, additional street, and country). > > During the hosted onboarding wizard the supplier provides the invoice type (`1000` standard / `0100` simplified / `1100` both), branch name, and business category — plus the FATOORA OTP. The company name and registered address are taken from the party document and shown read-only in the recap. > [accordion] How long is the OTP valid? > > **1 hour** from when it is generated in the FATOORA portal. If it expires, generate a new one and re-enter it in the wizard. > [accordion] What is the difference between Developer and Simulation sandbox modes? > > In **Developer** mode the OTP is not validated (any placeholder works) and you can only send invoices from ZATCA's fixed test VAT `399999999900003`. In **Simulation** mode the OTP must be real and you can send from any registered party. > [accordion] Can I test in Simulation without a real FATOORA account? > > No. Simulation requires a real FATOORA account and taxpayer to generate a valid OTP. Use **Developer** mode if you want to test the flow without a real account. More available in our [Saudi Arabia FAQ](/faq/saudi-arabia) section. *** > [accordion] 🇸🇦 Invopop resources for Saudi Arabia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Saudi Arabia](/compliance/saudi-arabia) [Compliance timeline](/timelines/saudi-arabia) | > | Apps | [Saudi Arabia](/apps/saudi-arabia) | > | Guides | [Registration](/guides/sa-zatca-registration) [Clearance & reporting](/guides/sa-zatca-clearance-reporting) | > | FAQ | [Saudi Arabia FAQ](/faq/saudi-arabia) | > | GOBL | [Saudi Arabia Tax Regime](https://docs.gobl.org/regimes/sa) [ZATCA Addon](https://docs.gobl.org/addons/sa-zatca-v1) | > | GitHub | [gobl.sa.zatca](https://github.com/invopop/gobl.sa.zatca) | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about invoicing in Saudi Arabia → # Series guide Source: https://docs.invopop.com/guides/series Learn how to create and use series to generate sequential codes for your documents. ## Introduction **Series** are numbering templates that generate unique, sequential identifiers for your documents. Most countries require sequential numbering for business documents like invoices to ensure traceability and compliance with tax regulations. Invopop's Sequence service provides a reliable, scalable solution for generating sequential codes. Behind the scenes, we use a global transaction database to ensure that even under high-volume, distributed workloads, your series will generate numbers without skips or duplications. ## What is a series? A series defines how sequential codes are formatted and generated. Each series includes: * **Prefix**: Text placed before the numeric portion (e.g., `ES-`, `FR-`) * **Padding**: Number of digits in the sequence (zeros are added to the left when necessary) * **Start Number**: The first number in the sequence * **Suffix**: Text appended after the numeric part (optional) * **Code**: Internal identifier for the series (optional) For example, a series configured with: * Prefix: `ES-` * Padding: `5` * Start number: `1` * Code: `INV` Will generate codes like: ``` ES-00001 ES-00002 ES-00003 ``` The code (`INV`) is an internal identifier and does not appear in the generated sequential code. ## Creating a series You can create series through the Invopop Console or via the API. The Console provides a visual interface with a live preview of the generated codes. ### Using the Console 1. Navigate to the **Series** section in the [Invopop Console](https://console.invopop.com). 2. Click **+ Create Series** or **New Series**. 3. Fill in the series configuration fields. 4. Review the live preview on the right side of the form. 5. Click **Save** to create the series. ![Create a new series in the Console](https://mintcdn.com/invopop/fWniCD0icTwRKXxR/assets/console/series-create.png?fit=max\&auto=format\&n=fWniCD0icTwRKXxR\&q=85\&s=9b5e20444149bf41a124f5581555762a) ### Series properties | **Field** | **Description** | **API Property** | | - | - | - | | **Name** | Human-readable label identifying the series. | `name` | | **Code** (Optional) | Internal or business code used to categorize series. | `code` | | **Prefix** (Optional) | Text placed before the numeric portion of the generated code. | `prefix` | | **Padding** | Total number of digits in the numeric sequence. Zeros are added to the left when necessary. | `padding` | | **Start Number** | The first number to be issued in the sequence. | `start` | | **Suffix** (Optional) | Text appended after the numeric part. | `suffix` | | **Description** (Optional) | Free text for internal documentation or identification. | `description` | ### Preview panel The Console displays a **live preview** of the resulting code based on your current field values. Use this to verify the format before saving. ``` ES-00001 ``` ### Using the API Create a series via the API using a `PUT` request: ```bash theme={"system"} curl -X PUT "https://api.invopop.com/sequence/v1/series/{id}" \ -H "Authorization: Bearer $INVOPOP_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Spanish Invoices", "code": "INV", "prefix": "ES-", "padding": 5, "start": 1, "suffix": "", "description": "Series for Spanish invoice numbering" }' ``` Response: ```json theme={"system"} { "id": "835bb1ca-e7c4-41e6-9e88-464de54cc08e", "name": "Spanish Invoices", "code": "INV", "prefix": "ES-", "padding": 5, "suffix": "", "description": "Series for Spanish invoice numbering", "created_at": "2022-03-03T22:18:50Z", "updated_at": "2022-03-03T22:18:50Z" } ``` ## Using series in workflows The most common way to use series is through the **Add sequential code** step in your workflows. This step automatically generates the next number in the sequence and adds it to your document. ### Dynamic vs. static series When configuring the **Add sequential code** step, you can choose between: * **Dynamic Series**: Creates a new series automatically if one doesn't exist with the specified name. This is useful when you want the workflow to handle series creation automatically. * **Static Series**: Uses an existing series that you've already created. Select the series from a dropdown of available series. ### Adding a sequential code step 1. In your workflow, click **+ Add step**. 2. Search for or select **Add sequential code**. 3. Choose either **Dynamic** or **Static** series mode. 4. If using **Dynamic**, enter a name for the series (e.g., "Invoice"). 5. If using **Static**, select an existing series from the dropdown. 6. Configure additional options if needed (such as signing the document). > [!NOTE] > > The **Add sequential code** step uses the `sequence.enumerate` provider. When using dynamic series, the step will create a new series with default settings (padding: 6, start: 1) if one doesn't exist. ### Passing a series ID via job arguments If you need to specify which series to use at runtime — rather than hardcoding it in the workflow configuration — you can pass a `sequence-series-id` argument when creating a job. This is useful when different documents in the same workflow should use different pre-created series. To use this feature, include the series UUID in the job's `args` map with the key `sequence-series-id` when calling the [Create a Job](/api-ref/transform/jobs/create-a-job-post) endpoint: ```json theme={"system"} { "workflow_id": "your-workflow-uuid", "silo_entry_id": "your-silo-entry-uuid", "args": { "sequence-series-id": "835bb1ca-e7c4-41e6-9e88-464de54cc08e" } } ``` When `sequence-series-id` is provided: * The workflow must contain an **Add sequential code** step — the argument does not add the step for you, it only determines which series the existing step will use. * The step's own series configuration (both dynamic and static) is **ignored** in favor of the series specified by the argument. * The value must be a valid UUID referencing an existing series created via the API or Console. * If the series does not exist, the task will fail with a `"sequence not found"` error — no series will be auto-created. * If `sequence-series-id` is not provided or is empty, the workflow step falls back to its normal behavior (dynamic or static series from the configuration). ## Using series via API You can also generate sequential codes directly via the API by creating entries in a series. ### Creating a series entry To generate the next code in a series, create an entry: ```bash theme={"system"} curl -X PUT "https://api.invopop.com/sequence/v1/series/{series_id}/entries/{entry_id}" \ -H "Authorization: Bearer $INVOPOP_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "meta": { "invoice_id": "abc123", "customer": "Customer Name" } }' ``` Response: ```json theme={"system"} { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "series_id": "835bb1ca-e7c4-41e6-9e88-464de54cc08e", "code": "ES-00001", "meta": { "invoice_id": "abc123", "customer": "Customer Name" }, "previous_id": null, "sigs": [], "created_at": "2023-01-25T08:04:14.245Z", "updated_at": "2023-01-25T08:04:14.245Z" } ``` The `code` field in the response contains the generated sequential code. You can then use this code in your document's `code` field. The series object does not report its current position; to find the latest number, list the series entries, which are returned newest first. ### Fetching series information Retrieve all series in your workspace: ```bash theme={"system"} curl -X GET "https://api.invopop.com/sequence/v1/series" \ -H "Authorization: Bearer $INVOPOP_TOKEN" ``` Fetch a specific series by ID: ```bash theme={"system"} curl -X GET "https://api.invopop.com/sequence/v1/series/{series_id}" \ -H "Authorization: Bearer $INVOPOP_TOKEN" ``` ## Best practices ### Naming conventions * Use descriptive names that indicate the purpose (e.g., "Spanish Invoices", "Credit Notes", "Orders"). * Consider including country codes or business unit identifiers in the name for multi-country or multi-entity setups. ### Prefixes and suffixes * Use **prefixes** for country codes (e.g., `ES-`, `FR-`, `US-`) or business unit identifiers. * Use **suffixes** for year codes (e.g., `-2024`) when you need to reset numbering annually. * Keep prefixes and suffixes short to maintain readable codes. ### Padding considerations * Choose padding that accommodates your expected volume. For example: * Padding of `3` supports up to 999 documents (`001` to `999`). * Padding of `6` supports up to 999,999 documents (`000001` to `999999`). * Ensure padding is adequate for your invoicing volume to avoid running out of numbers. ### Start numbers * **Start Number** is typically `1` for new series. * If you're continuing an existing series (e.g., migrating from another system), set the start number to the next number in your sequence. ### Multiple series Create separate series for different document types or use cases: * **Invoices**: One series for standard invoices * **Credit Notes**: A separate series for credit notes * **Orders**: A series for purchase orders * **Deliveries**: A series for delivery notes Some countries require specific series formats. For example, Portugal requires series names to follow specific formats with document type prefixes (e.g., `FT` for invoices, `NC` for credit notes). ### Code and description fields * **Code**: Use for internal categorization or business logic. This field is optional and doesn't appear in the generated sequential code. * **Description**: Use for internal documentation or notes about the series purpose. This field is optional and doesn't affect code generation. ## Examples ### Example 1: simple invoice series A basic series for invoices with no prefix or suffix: * Name: "Standard Invoices" * Code: `INV` * Prefix: (empty) * Padding: `6` * Start Number: `1` * Suffix: (empty) Generated codes: `000001`, `000002`, `000003`, ... ### Example 2: country-specific series A series for Spanish invoices with country prefix: * Name: "Spanish Invoices" * Code: `INV` * Prefix: `ES-` * Padding: `5` * Start Number: `1` * Suffix: (empty) Generated codes: `ES-00001`, `ES-00002`, `ES-00003`, ... (the `INV` code is internal and never appears in the output) ### Example 3: year-based series A series that resets each year with a year suffix: * Name: "Annual Invoices" * Code: `INV` * Prefix: (empty) * Padding: `4` * Start Number: `1` * Suffix: `-2024` Generated codes: `0001-2024`, `0002-2024`, `0003-2024`, ... > [!NOTE] > > When using year-based suffixes, you'll need to create a new series each year or manually update the suffix and reset the start number. ## FAQ > [accordion] Can I reuse a series for different document types? > > While technically possible, it's recommended to use separate series for different document types (invoices, credit notes, orders, etc.) to maintain clear separation and comply with country-specific requirements. > [accordion] What happens if I reach the maximum number in a series? > > If you reach the maximum number (e.g., `999999` with padding of `6`), you'll need to create a new series or increase the padding. Plan your padding based on expected volume to avoid this issue. > [accordion] Can I skip numbers in a series? > > No. The Sequence service guarantees sequential numbering without skips or duplications. Each entry receives the next number in sequence. If you need to skip numbers (e.g., for voided invoices), handle this in your application logic rather than in the series itself. > [accordion] How do I continue an existing series from another system? > > When creating a new series, set the **Start Number** to the next number in your existing sequence. For example, if your last invoice was `INV-00100`, create a new series with start number `101`. > [accordion] What's the difference between Code and the generated code? > > The **Code** field is an optional internal identifier for the series (stored in the `code` property). The generated sequential code (returned in the `code` field of an entry) is the formatted string that includes prefix, padded number, and suffix (e.g., `ES-00001`). > [accordion] Can I modify a series after creating it? > > You can update some series properties via the API, but be cautious as changes may affect existing entries. The `start` value only applies before the first entry is created. ## API reference * [Sequences - Introduction](/api-ref/sequences/introduction) * [Series - Overview](/api-ref/sequences/series/overview) * [Series - Fetch all series](/api-ref/sequences/series/fetch-all-series) * [Series - Create a series](/api-ref/sequences/series/create-a-series) * [Series - Fetch a series](/api-ref/sequences/series/fetch-a-series) * [Entries - Overview](/api-ref/sequences/entries/overview) * [Entries - Fetch all series entries](/api-ref/sequences/entries/fetch-all-series-entries) * [Entries - Create a series entry](/api-ref/sequences/entries/create-a-series-entry) * [Entries - Fetch a series entry](/api-ref/sequences/entries/fetch-a-series-entry) ## Related guides * [Workflows Guide](/guides/workflows) - Learn how to use series in workflow steps * [PDF Invoice Guide](/guides/pdf-invoice) - See series in action with PDF invoice generation * [Series (Console)](/console/series) - Console-specific series documentation > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about series → # Slack guide Source: https://docs.invopop.com/guides/slack Simple connection to Slack for sending messages. Invopop's [Slack app](/apps/slack) helps you keep your team updated by sending automated messages to a Slack channel of your choice. For instance, you might want to receive a message when one of your job executions fails: ![](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/slack-workflow.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=f8ae509894a0403aa73d06b90c4a9a89) Example workflow with Slack In this example, you will receive in your Slack channel `#random` a message like `Job fe094ad0-3e12-11ef-bfd5-15fe9005edf3 failed!` when the PDF generation fails. ## Prerequisites You need a Slack account with full membership or an admin role within a workspace. ## How to use **1. Configure the Slack App** To configure the Slack app in your workspace, follow these steps: 1. Navigate to **Configuration** → **Apps**. 2. Find the Slack App and click `Connect`. 3. Click `Configure` and then `Add Slack Channel`. 4. In the newly opened window, select the channel where you want to send messages. After you have selected a channel, you will be redirected back to the Invopop console, where you should see a message that says “Authorized and connected to:” followed by the list of channels that you are connected to. This confirms that the connection was successful. In case you want to connect more channels, click the "Add Slack Channel" and connect the new one. **2. Add the Slack step to your workflows** To use the Slack step in your workflows, follow these steps: 1. Navigate to the Workflows section and select the workflow you want to modify. 2. Add the Slack step to your workflow. 3. Select the Slack channel where you want to send messages. 4. Customize the message content as needed. **3. Verify the connection** To verify the connection, you can run the workflow on an existing silo entry and see if you receive a message in the Slack channel. 1. Navigate to the Invoices (or Parties) section and select the silo entry you want to run the workflow on. 2. Click on the workflow you want to run. 3. Click on the "Run Workflow" button. 4. Wait for the workflow to complete and check the Slack channel for the message. If you receive a message in the Slack channel, the connection is successful. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Slack integration → # Stripe guide Source: https://docs.invopop.com/guides/stripe Import and process invoices and credit notes from Stripe ## Introduction In this guide, you'll learn how to connect [Stripe](https://stripe.com/) with Invopop to automatically generate tax-compliant invoices and credit notes, from your Stripe dashboard. The Stripe integration consists of two components: 1. An Invopop app within your Stripe dashboard 2. An app in your Invopop console When a Stripe invoice or credit note reaches the [finalized status](https://support.stripe.com/questions/invoice-states), our integration will automatically create a new job in your selected Invopop workflow. ![stripe details](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-details.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=7bbe187a7a40b1b33aeb825f93c9f665) Track invoice status directly in your Stripe dashboard The job will extract the invoice data from Stripe and execute the actions, such as converting it to any e-invoice format and submitting it to your local tax authority. ![stripe job](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-job-details.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=3da0308220d997196f91fb8581e53d38) View the job information ## Setup Before you begin, ensure you have an active Stripe account. **1. Install Invopop in Stripe** Navigate to the [Invopop app](https://marketplace.stripe.com/apps/invopop) in Stripe's App Marketplace and click **Install**. Next, Stripe will prompt you to select the Stripe environment you'd like to connect to, you can start with test mode or sandbox and switch to live later. ![stripe install](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-install.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=18249659c041224f2ca04f97ab50a5fa) Install Invopop in Stripe **2. Connect Stripe to Invopop** After installation, you should be redirected to your Stripe dashboard and see the Invopop app in the right sidebar. Alternatively, just open the Invopop app in your [Stripe dashboard](https://dashboard.stripe.com/apps/invopop). Click **Connect Invopop**. The next page will ask you to login to your Invopop account. If you're new to Invopop, the connection process will guide you through creating your Invopop account and setting up your first workspace. > [!NOTE] > > When connecting a test or sandbox environment in Stripe, select a sandbox workspace in Invopop. For live environments, select a live workspace. ![stripe connect](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-connect.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=23bc0fb5ed7cdc5f49a761f808fd8eed) Connect your Invopop account **3. Select a workspace** After connecting your Invopop account to Stripe, you'll be redirected back to Stripe to choose the workspace where you want to process your invoices. ![stripe select workspace](https://mintcdn.com/invopop/v95hnKEiP9kgMcLY/assets/guides/stripe-select-workspace.png?fit=max\&auto=format\&n=v95hnKEiP9kgMcLY\&q=85\&s=e784c8bfea80ccb235af58544cbc9f0c) Choose your workspace **4. Configure your workflow** Select or create a workflow to process your invoices and credit notes. To use an existing workflow select it from the Stripe's sidebar menu and click **Save Workflow** To create a new workflow click on **Create New Workflow** in the sidebar menu. You'll be redirected to Invopop. Start from the basic template below, then add the steps your country requires — see [Country workflows](#country-workflows). This workflow syncs with Stripe, signs the invoice and generates a PDF. > [card] [Stripe - Basic PDF invoice workflow](https://console.invopop.com/redirect/workflows/new?template=stripe-invoice) > > Add to my workspace → > [tab] Workflow > [tab] Code > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > ```json Stripe PDF invoice workflow theme={"system"} > { > "name": "Stripe PDF invoice", > "description": "Sync from Stripe and generate a PDF", > "schema": "bill/invoice", > "steps": [ > { > "id": "7dd8e370-139b-11f0-b939-af2e8ae705ac", > "name": "Import invoice from Stripe", > "provider": "stripe.import" > }, > { > "id": "95a82a10-139b-11f0-b939-af2e8ae705ac", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `processing`{.state .processing}", > "config": { > "state": "processing" > } > }, > { > "id": "84cf92a0-139b-11f0-b939-af2e8ae705ac", > "name": "Sign envelope", > "provider": "silo.close" > }, > { > "id": "86a5b230-139b-11f0-b939-af2e8ae705ac", > "name": "Generate PDF", > "provider": "pdf", > "summary": "Spanish · A4", > "config": { > "date_format": "%Y-%m-%d", > "layout": "A4", > "locale": "es", > "logo_height": 40 > } > }, > { > "id": "8b321820-139b-11f0-b939-af2e8ae705ac", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `sent`{.state .sent}", > "config": { > "state": "sent" > } > } > ], > "rescue": [ > { > "id": "90f4b420-139b-11f0-b939-af2e8ae705ac", > "name": "Set state", > "provider": "silo.state", > "summary": "Set state to `error`{.state .error}", > "config": { > "state": "error" > } > } > ] > } > ``` **5. Show your tax ID on invoices** By default, Stripe does not display your tax ID on invoices. To enable it, go to Settings > Billing > Invoices. In the `Invoice Tax Information` section, enter your tax ID, set it as the default, and click **Save**. ![stripe tax id](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-tax-id.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=68b6925bb85d824b981fcf65dd7f8bd7) Show your tax ID on invoices **6. Verify your setup** 1. Navigate to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop) 2. Confirm your workflow configuration is correct ![stripe settings](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-settings.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=038a1599a2a5d3ab869620c423efd528) Review your configuration ## Country workflows Each country needs its own steps between the Stripe import and the send. Two things are worth knowing before you pick one: * **Your tax ID must reach the invoice.** Stripe only attaches your account tax ID when you set it as the default (see [Show your tax ID on invoices](#setup)). Without it, country steps fail with errors such as `supplier SIREN is required for B2B local invoices`. * **The regime comes from the supplier's tax ID country.** A workflow step for one country rejects invoices from another — see the [FAQ](#faq) on unexpected tax regime errors. > [accordion] Europe (Peppol) > > This workflow sends each invoice over the Peppol network, the route Belgian, Dutch and Nordic customers receive invoices on. It looks the customer's participant ID up on the network at run time, and reshapes the parts of a Stripe invoice that Peppol validation rejects: negative line items become discounts, a missing purchase order code becomes `NA`, and card payment instructions get payment terms. Your supplier must be registered on Peppol first — see the [Peppol guide](/guides/peppol). > > > [card] [Stripe - Peppol invoice workflow](https://console.invopop.com/redirect/workflows/new?template=stripe-peppol) > > > > Add to my workspace → > > > [tab] Workflow > > > [tab] Code > > > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > > > ```json Stripe Peppol invoice workflow theme={"system"} > > { > > "name": "Stripe Peppol invoice", > > "description": "Sync from Stripe and send via Peppol", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ab0b8c40-d4e7-11f0-9e5d-e1650cc9a3d1", > > "name": "Import invoice from Stripe", > > "provider": "stripe.import" > > }, > > { > > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "dcb86010-d4e7-11f0-9bd8-c3ca8212c614", > > "name": "Add supplier Peppol ID", > > "provider": "silo.modify", > > "summary": "Add supplier Peppol inbox", > > "config": { > > "merge_type": "application/jq", > > "scope": "doc", > > "jq": ".supplier.inboxes =\n(\n (.supplier.inboxes // []) as $inboxes\n |\n if ($inboxes | any(.key == \"peppol\")) then\n $inboxes\n else\n $inboxes + [\n {\n key: \"peppol\",\n \"scheme\": \"\",\n \"code\": \"\"\n }\n ]\n end\n)\n" > > } > > }, > > { > > "id": "00e00280-d66f-11f0-8fc4-ff91328c62f5", > > "name": "Add purchase order number", > > "provider": "silo.modify", > > "summary": "Add purchase order number", > > "config": { > > "jq": "if (.ordering.code == null) and ((.ordering.purchases // [])[0].code == null) then \n.ordering.purchases[0].code = \"NA\"\nend", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "b54b7000-d779-11f0-8eaf-79de543fb8d0", > > "name": "Move negative line items to discounts", > > "provider": "silo.modify", > > "summary": "Move negative line items to discounts", > > "config": { > > "jq": ". as $doc\n|\n# Select lines that are negative\n($doc.lines | map(select(.item.price|tonumber < 0))) as $neg\n|\n# Select lines that are positive\n($doc.lines | map(select(.item.price|tonumber >= 0))) as $pos\n|\n# Convert negative lines to discount entries\n($neg | map({\n reason: .item.name,\n amount: ((.total|tonumber) * -1 | tostring),\n taxes: .taxes\n})) as $discounts\n|\n$doc\n| .lines = $pos\n| .discounts = $discounts\n", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "896013d0-d515-11f0-a832-01ce614dcba6", > > "name": "Include payment means when empty", > > "provider": "silo.modify", > > "summary": "Include payment means when empty", > > "config": { > > "addons": [ > > "eu-en16931-v2017" > > ], > > "jq": "if (.payment.instructions // null) == null then\n .\nelse\n (\n\n . as $doc\n | .payment |= (\n . // {}\n |\n .instructions.key |= (split(\"+\")[0])\n |\n .terms //= {\n due_dates: [\n {\n date: (\n $doc.issue_date\n | strptime(\"%Y-%m-%d\")\n | .[1] += 1 # add 1 month\n | mktime\n | strftime(\"%Y-%m-%d\")\n ),\n percent: \"100%\"\n }\n ]\n }\n )\n\n # ↑↑↑ end of modifications ↑↑↑\n )\nend\n", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "6c96aac0-d4e8-11f0-9bd8-c3ca8212c614", > > "name": "Lookup Peppol participant", > > "provider": "peppol.lookup", > > "summary": "Lookup customer", > > "config": { > > "party": "customer" > > } > > }, > > { > > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "fc5aa8d0-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol BIS Billing UBL Invoice/CreditNote V3", > > "config": { > > "doc_type": "bis-invoice-v3", > > "private": false > > } > > }, > > { > > "id": "075442a0-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Send Peppol document", > > "provider": "peppol.send" > > }, > > { > > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "97ced0a0-d4e8-11f0-985d-3b44fe520da3", > > "name": "Send email", > > "provider": "email.send", > > "summary": "", > > "config": { > > "add_invoice_customer": false, > > "add_invoice_supplier": false, > > "add_party": false, > > "attach": "", > > "body": "VGhpcyBpbnZvaWNlICh7ey5mdWxsX2NvZGV9fSkgZmFpbGVkIHdpdGggZXJyb3I6IHt7LmZhdWx0c319", > > "connection_id": "default", > > "subject": "The invoice failed - check invopop", > > "zip_attachments": false > > } > > }, > > { > > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > [accordion] France (Plateforme Agréée) > > France routes each invoice on whether the customer is registered in the PPF directory. This workflow imports the Stripe invoice, adds the billing mode and VAT exemption codes France requires, then looks the customer up: registered customers get a Peppol France CIUS document recorded and forwarded to the PPF, and everyone else is recorded for e-reporting instead, then sent over Peppol if they have an inbox. > > > [tab] Workflow > > > [tab] Code > > > > There is no one-click template for this workflow yet. Copy and paste it into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > > > ```json Example Stripe France workflow theme={"system"} > > { > > "name": "Stripe France send invoice", > > "description": "Sync from Stripe and forward to PPF or record for reporting", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "ab0b8c40-d4e7-11f0-9e5d-e1650cc9a3d1", > > "name": "Import invoice from Stripe", > > "provider": "stripe.import" > > }, > > { > > "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "eea78ac0-26f0-11f1-9156-e518ebabd527", > > "name": "Add billing mode", > > "provider": "silo.modify", > > "notes": "S2 (already-paid) ONLY when fully paid (totals.advance == total_with_tax); else S1. S2 also adds payment.terms due_dates (BR-FR-CO-09). Reads .totals.advance (NOT the old .advances bug).", > > "summary": "Modifications configured", > > "config": { > > "jq": ".tax.ext = (.tax.ext // {})\n| .tax.point = \"issue\"\n| if ((.totals.advance // null) != null and (.totals.advance == .totals.total_with_tax)) then\n .tax.ext[\"fr-ctc-billing-mode\"] = \"S2\"\n | .payment = (.payment // {})\n | .payment.terms = (.payment.terms // {\"due_dates\":[{\"date\":.issue_date,\"percent\":\"100%\"}]})\n else\n .tax.ext[\"fr-ctc-billing-mode\"] = \"S1\"\n end", > > "merge_type": "application/jq", > > "scope": "doc" > > } > > }, > > { > > "id": "4f427d80-a44d-11f0-b23b-fd08a0f26c87", > > "name": "Add VATEX", > > "provider": "silo.modify", > > "summary": "Modifications configured", > > "config": { > > "jq": ".lines |= map(\n .taxes |= map(\n (.ext[\"untdid-tax-category\"]? as $cat\n | if $cat then\n {\n key: {\n \"AE\": \"reverse-charge\",\n \"E\": \"export\",\n \"G\": \"export\",\n \"O\": \"outside-scope\",\n \"K\": \"intra-community\"\n }[$cat],\n vatex: {\n \"AE\": \"VATEX-EU-AE\",\n \"G\": \"VATEX-EU-G\",\n \"O\": \"VATEX-EU-O\",\n \"K\": \"VATEX-EU-IC\"\n }[$cat]\n } as $m\n\n | if $m.key then .key = $m.key else . end\n | if $m.vatex then\n .ext = ((.ext // {}) + {\"cef-vatex\": $m.vatex})\n else\n .\n end\n else\n .\n end\n )\n )\n)", > > "merge_type": "application/jq", > > "scope": "doc", > > "sign": false > > } > > }, > > { > > "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5", > > "name": "Add bank details", > > "provider": "silo.modify", > > "notes": "Normalizes the payment key to SEPA credit transfer format", > > "summary": "Modifications configured", > > "config": { > > "allow_invalid_json": false, > > "data": { > > "doc": { > > "payment": { > > "instructions": { > > "credit_transfer": [ > > { > > "bic": "", > > "iban": "" > > } > > ], > > "key": "credit-transfer" > > } > > } > > } > > }, > > "expr": "(doc?.payment?.instructions == nil || doc?.payment?.instructions?.key == \"credit-transfer\")\n&& doc?.payment?.terms?.due_dates != nil", > > "merge_type": "application/merge-patch+json", > > "sign": false > > } > > }, > > { > > "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "86a5b230-139b-11f0-b939-af2e8ae705ac", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "French · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "fr", > > "logo_height": 40 > > } > > }, > > { > > "id": "de2407b0-5e94-11f1-90fe-f3d836f89160", > > "name": "Lookup in Directory", > > "provider": "gov-fr.directory.lookup", > > "next": [ > > { > > "status": "NA", > > "code": "found", > > "steps": [ > > { > > "id": "3ffd50e0-5e95-11f1-90fe-f3d836f89160", > > "name": "Add flow2 addon", > > "provider": "silo.modify", > > "summary": "Modifications configured", > > "config": { > > "addons": [ > > "fr-ctc-flow2-v1" > > ] > > } > > }, > > { > > "id": "1f8bf500-5e95-11f1-90fe-f3d836f89160", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol France CIUS UBL Invoice/CreditNote", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "peppol-fr-cius", > > "private": false > > } > > }, > > { > > "id": "9e22f4a0-485f-11f1-86b7-9745cc4d2380", > > "name": "Record document for e-invoicing", > > "provider": "gov-fr.directory.record" > > }, > > { > > "id": "285c9450-5e95-11f1-90fe-f3d836f89160", > > "name": "Send Peppol Document", > > "provider": "peppol.send" > > }, > > { > > "id": "2d6926c0-5e95-11f1-90fe-f3d836f89160", > > "name": "Forward document to PPF", > > "provider": "gov-fr.directory.forward" > > } > > ] > > }, > > { > > "status": "NA", > > "code": "not-found", > > "steps": [ > > { > > "id": "5cff2420-7470-11f1-9deb-cda1ffc5317f", > > "name": "Add flow10 addon", > > "provider": "silo.modify", > > "summary": "Modifications configured", > > "config": { > > "addons": [ > > "fr-ctc-flow10-v1" > > ] > > } > > }, > > { > > "id": "3a023fc0-5e95-11f1-90fe-f3d836f89160", > > "name": "Record document for reporting", > > "provider": "gov-fr.reporting.record" > > }, > > { > > "id": "aaf85b90-6996-11f1-8722-e7a7821bd54f", > > "name": "Verify invoice can be sent", > > "provider": "peppol.has.inboxes", > > "next": [ > > { > > "status": "NA", > > "code": "true", > > "steps": [ > > { > > "id": "afcc78e0-6996-11f1-8722-e7a7821bd54f", > > "name": "Generate UBL document", > > "provider": "ubl.generate", > > "summary": "Peppol BIS Billing UBL Invoice/CreditNote V3", > > "config": { > > "attach_invoice_pdf": false, > > "doc_type": "bis-invoice-v3", > > "private": false > > } > > }, > > { > > "id": "b798c790-6996-11f1-8722-e7a7821bd54f", > > "name": "Send Peppol document", > > "provider": "peppol.send" > > } > > ] > > }, > > { > > "status": "NA", > > "code": "false" > > } > > ] > > } > > ] > > } > > ] > > }, > > { > > "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "39513240-10ab-11f0-a09e-7b63571a4ae2", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Registering your suppliers and reading the statuses France returns are covered in the [Plateforme Agréée guides](/guides/fr-pa): [registration](/guides/fr-pa-registration), [invoicing](/guides/fr-pa-invoicing), [reporting](/guides/fr-pa-reporting) and [statuses](/guides/fr-pa-status). > [accordion] Spain (VERI\*FACTU) > > This workflow issues a VERI\*FACTU invoice for each finalized Stripe sale: it adds the `es-verifactu-v1` addon, signs the invoice, submits it to the AEAT and generates the PDF. > > > [card] [Stripe - VERI\*FACTU invoice workflow](https://console.invopop.com/redirect/workflows/new?template=stripe-verifactu) > > > > Add to my workspace → > > > [tab] Workflow > > > [tab] Code > > > > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view. > > > > ```json Stripe VERI*FACTU invoice workflow theme={"system"} > > { > > "name": "Stripe VERI*FACTU invoice", > > "description": "Sync from Stripe and issue a VERI*FACTU invoice", > > "schema": "bill/invoice", > > "steps": [ > > { > > "id": "7dd8e370-139b-11f0-b939-af2e8ae705ac", > > "name": "Import invoice from Stripe", > > "provider": "stripe.import" > > }, > > { > > "id": "95a82a10-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `processing`{.state .processing}", > > "config": { > > "state": "processing" > > } > > }, > > { > > "id": "794f78d0-139d-11f0-9ab7-c391120166e0", > > "name": "Modify silo entry", > > "provider": "silo.modify", > > "summary": "Add `es-verifactu-v1` addon and \"Factura\" note", > > "config": { > > "addons": [ > > "es-verifactu-v1" > > ], > > "allow_invalid_json": false, > > "data": { > > "doc": { > > "notes": [ > > { > > "key": "general", > > "text": "Factura" > > } > > ] > > } > > }, > > "expr": "", > > "merge_type": "application/merge-patch+json", > > "sign": false, > > "tags": [] > > } > > }, > > { > > "id": "84cf92a0-139b-11f0-b939-af2e8ae705ac", > > "name": "Sign envelope", > > "provider": "silo.close" > > }, > > { > > "id": "fc307c60-139b-11f0-b939-af2e8ae705ac", > > "name": "Generate VERI*FACTU", > > "provider": "verifactu.generate" > > }, > > { > > "id": "fe479c90-139b-11f0-b939-af2e8ae705ac", > > "name": "Send invoice to VERI*FACTU", > > "provider": "verifactu.send" > > }, > > { > > "id": "86a5b230-139b-11f0-b939-af2e8ae705ac", > > "name": "Generate PDF", > > "provider": "pdf", > > "summary": "Spanish · A4", > > "config": { > > "date_format": "%Y-%m-%d", > > "layout": "A4", > > "locale": "es", > > "logo_height": 40 > > } > > }, > > { > > "id": "8b321820-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `sent`{.state .sent}", > > "config": { > > "state": "sent" > > } > > } > > ], > > "rescue": [ > > { > > "id": "90f4b420-139b-11f0-b939-af2e8ae705ac", > > "name": "Set state", > > "provider": "silo.state", > > "summary": "Set state to `error`{.state .error}", > > "config": { > > "state": "error" > > } > > } > > ] > > } > > ``` > > Onboarding your suppliers is covered in the [VERI\*FACTU supplier registration guide](/guides/es-verifactu-supplier), and the wider flow in the [VERI\*FACTU guide](/guides/es-verifactu). ## Filter imported invoices By default, every finalized invoice and credit note is imported into Invopop. To restrict what gets imported, open the [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop) and use the **Filter Incoming Invoices** section: * The **Basic** tab builds conditions on the customer country, customer email, or invoice total. All added conditions must match for an invoice to be imported. * The **Advanced** tab accepts a [jq](https://jqlang.org/) expression evaluated against the raw Stripe event payload, for example `.data.object.customer_address.country == "DE"`. The same filter can be edited from the Stripe app's configuration page in the Invopop console. Filters apply to newly received invoices and to retries. ## Monitor invoice processing After setup, finalized Stripe invoices are imported into Invopop automatically and saved to the `Sales` folder. Use the steps below to verify status, review details, retry processing, and import historical invoices. **1. Check invoice status in Stripe** Open the invoice in Stripe and check the Invopop panel in the right sidebar to confirm whether processing succeeded. The panel shows the document's state, the timestamp it was signed at, the files generated by the workflow, and an activity list with every processing attempt. ![stripe invoice status](https://mintcdn.com/invopop/EbHEXxyU7O9VKZTc/assets/guides/stripe-successful-import.png?fit=max\&auto=format\&n=EbHEXxyU7O9VKZTc\&q=85\&s=0a2bf7dfbce7d5519dd16ccb7056a6d0) Invoice processed successfully in Stripe **2. Check invoice status in Invopop** In the Invopop console, go to `Sales` and open the invoice to view its status. To review the underlying processing job, go to `Workflows` > `History` and open the job details. ![stripe job details](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-invopop-job.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=0ac3eb5a566bc05a7c875bdf81cd4899) Job details in Invopop **3. Troubleshoot import errors** If an invoice fails, it is usually one of these cases: 1. The invoice was not imported into Invopop because converting from Stripe to Invopop failed. Update the data in Stripe and click **Retry** in the Invopop panel. ![stripe retry invoice](https://mintcdn.com/invopop/EbHEXxyU7O9VKZTc/assets/guides/stripe-retry.png?fit=max\&auto=format\&n=EbHEXxyU7O9VKZTc\&q=85\&s=572bf2a49bbdc9b00b2a683237aac0fc) Retry invoice 2. The document was already signed in Invopop, so it can no longer be retried from Stripe. The panel shows a **Document is signed** notice instead of the **Retry** button — follow its **Modify invoice from Invopop** link to fix the document in the console. ![stripe signed document notice](https://mintcdn.com/invopop/EbHEXxyU7O9VKZTc/assets/guides/stripe-envelope-signed.png?fit=max\&auto=format\&n=EbHEXxyU7O9VKZTc\&q=85\&s=5acf1922cdffe8d5a9758da2f5bc2cde) Signed documents can't be retried from Stripe **4. Get notified of failures** Add a notification action in your workflow's Error Handling section—Slack, email, or webhook—so you're alerted when an import fails. If you need help tailoring a workflow to your use case, contact us at [support@invopop.com](mailto:support@invopop.com). ## Reading documents and events The Stripe app includes a dashboard, embedded in the Invopop console, with a **Documents** tab and an **Events** tab. A document is an invoice or credit note received from Stripe; each document can have any number of associated events, one for every processing attempt. ### Documents tab The **Documents** tab shows one row per Stripe document. Columns show the invoice code, supplier country, type, number of events (click it to open the **Events** tab filtered to that document), customer name, customer email, total, status (the latest attempt's outcome), silo entry ID, Stripe ID, payload (downloads the invoice payload fetched live from Stripe), and document ID. Rows can be filtered by invoice code (prefix), status (multi-select), and type. ### Events tab The **Events** tab shows one row per processing attempt, with the invoice code, source, event ID, event type, status, job ID, and document ID. Rows can be filtered by document ID and status. Each event has one of the following sources: | Source | Meaning | | - | - | | `webhook` | An automatic import triggered by Stripe when an invoice is finalized or paid, depending on the configured trigger. Invoices imported by the historical backfill also appear as `webhook`. | | `retry` | A manual send from the Stripe sidebar, using the **Retry** or **Process this invoice** buttons. | | `console` | A job run from the Invopop console. | Statuses apply to each attempt and, as the latest outcome, to the document: | Status | Meaning | | - | - | | `pending` | The attempt is waiting to be processed. | | `completed` | The invoice was imported and processed by the workflow. | | `filtered` | The invoice was excluded by the import filter. | | `failed` | The attempt errored; the reason is shown on the attempt. | The same attempts appear in the invoice's activity list in the Stripe sidebar. ## FAQ > [accordion] Can I change the workflow that processes my invoices to a different one? > > Yes, you can, at any time select a different workflow to sync your Stripe invoices. You can do this both from Stripe or Invopop. > > Option 1: From Stripe > > 1. Go to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop) > 2. Select a different workflow > 3. Click **Save changes** > > ![stripe change workflow](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-settings.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=038a1599a2a5d3ab869620c423efd528) > > Select a different workflow in Stripe > > Option 2: Through Invopop > > 1. Navigate to the **Apps** section in your [Invopop console](https://console.invopop.com/) > 2. Locate the Stripe app settings > 3. Select your new workflow > > ![stripe change workflow](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-invopop-settings.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=cee0cd319d2002ee5f7b9ffb73ae3278) > > Select a different workflow in Invopop > [accordion] How can I switch to a different Invopop workspace? > > You can switch the Stripe connection to a different workspace by disconnecting and reconnecting the app. > > 1. Go to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop) > 2. Click the **Disconnect** button > 3. Reconnect the app and select your new workspace > [accordion] How can I add a Purchase Order number to the invoice? > > Stripe does not include a dedicated Purchase Order field on invoices. Add it as a custom field named `PO Number`. > > You can add the custom field in any of these places: > > * The specific invoice > * The subscription > * An invoice template > [accordion] Can I import historical invoices (issued before I connected Invopop)? > > Yes. Open the invoice in Stripe and click **Process this invoice** in the Invopop panel (right sidebar). > > Note: The invoice issue date will be set to the sync date (today), as required by tax agencies. The operation date remains the original date of the transaction. > > ![stripe import historic invoices](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-import-historic-invoices.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=f6f59735883724d656ffb448b7646e51) > > Import historic invoices > [accordion] Can I import invoices when paid instead of when finalized? > > Yes. You can import on payment instead of on finalization. Update the invoice import trigger in either Stripe or Invopop: > > Option 1: In Stripe > > 1. Go to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop) > 2. In "Invoice Import Trigger", select "When Paid" (instead of "When Finalized"). > 3. Click **Save Changes**. > > ![stripe import trigger](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-import-trigger.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=cb8effc105b08d07d9a4b04b47407b3e) > > Update invoice import trigger in Stripe > > Option 2: In Invopop > > 1. Go to **Configuration** > **Apps** > **Stripe** > **Configure**. > 2. Click **Update Settings**. > 3. In "Invoice import trigger", select "When Paid" (instead of "When Finalized"). > 4. Click **Save**. > > ![stripe import trigger](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-when-paid.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=54ca8f32750456dafa81efc63728193e) > > Update invoice import trigger > > Note: This applies to invoices from now on; it does not change past imports. > [accordion] I get an "access denied: unexpected tax regime" error when processing invoices > > This error means the invoice's tax regime does not match the one expected by the workflow step. For example, VERI\*FACTU requires a Spanish regime and KSeF requires a Polish regime. The regime is automatically determined by the supplier's tax ID country. > > The most common cause is that the supplier's tax ID is missing from the invoice. To fix this, make sure you have completed Step 5 of the [setup](#setup): go to **Settings** > **Billing** > **Invoices**, enter your tax ID, and set it as the default. Stripe does not automatically include your account tax ID on invoices. > > Once the tax ID is set as default, it will appear on new invoices and the error should disappear. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Stripe integration → # Tables guide Source: https://docs.invopop.com/guides/tables Store structured data in SQL tables and move it in and out of your workflow documents. Invopop's [Tables app](/apps/tables) gives your workspace a managed SQL database that lives right next to your documents. You create tables, load them with data, and then use workflow steps to turn rows into GOBL documents, enrich documents with values looked up from a table, or write results back, all without running any database infrastructure yourself. This guide walks through the full round trip: setting up a table, getting data into it, and wiring the app's four actions into your workflows. ## How it works Everything revolves around one **database** per workspace (backed by [Turso](https://turso.tech), a managed libSQL/SQLite service) that holds your **tables**. Each table row can be linked to a GOBL document through its automatic `silo_entry_id` column, and data moves between rows and documents through four workflow actions: | Action | Direction | What it does | | - | - | - | | **Import** | row → document | Builds a GOBL document from a table row and saves it as a silo entry. | | **Export** | document → row | Writes fields from a GOBL document into a table row. | | **Merge** | table → document | Looks up a matching row and patches its values into the document. | | **Create batch** | table → many jobs | Runs a workflow once for every matching row. | Each action is configured with a [JQ](https://jqlang.org) query that maps columns onto GOBL fields, or the other way around. You can test your queries in the [online JQ playground](https://play.jqlang.org/) before saving them. Before you start, you'll want at least one [workflow](/guides/workflows) to process your documents. ## Set up your database **1. Enable the Tables app** In the Console, open the apps directory by clicking the icon next to **Apps** in the sidebar. Find **Tables** in the list of available apps and enable it in your workspace. A database is created for you automatically the first time you open the app. **2. Open the app** Once enabled, **Tables** appears in the sidebar under **Apps**. Opening it gives you: * a list of the **tables** in your database, * a **SQL editor** for running queries, * your database **connection details** for direct access from your own tools. **3. Create a table** Create a table either from a **template** or by defining your own columns. Templates are the quickest way to start with invoice data: * **Simple**: one row per invoice with a single line item. Best for straightforward, one-line documents. * **Multi-row**: one row per line item, plus a view that aggregates the rows of each invoice back into a single record. * **Multi-table**: normalized `suppliers`, `customers`, `invoices`, and `invoice_lines` tables with a view that reassembles a full invoice. Each template applies an `ordering_code` uniqueness constraint so the same document can't be inserted twice, and comes with a suggested import query (see [Import](#import-turn-a-row-into-a-document) below). > [!NOTE] > > Every table automatically includes an auto-incrementing `id` primary key and an optional `silo_entry_id` column that links a row back to the GOBL document it produced or came from. You don't need to add these yourself. ## Load data into a table There are three ways to get data into a table: * **SQL editor**: run `INSERT` statements (or any other SQL) directly from the app. Handy for seeding reference data and for quick edits. * **Direct connection**: generate database credentials from the app and connect with any libSQL/SQLite-compatible client to bulk-load data from your own systems. * **Export step**: let a workflow write rows for you as documents are processed (see [Export](#export-write-a-document-back-to-a-table) below). ## Use tables in your workflows The four actions are added as steps inside your own workflows. Each step is configured with the fields described below. ### Import: turn a row into a document The **Import** step reads one table row and builds a GOBL document from it, saving the result as a silo entry that the rest of the workflow can process. Configure it with: * **Schema**: the GOBL schema to produce: `bill/invoice`, `bill/payment`, `bill/status`, or `org/party`. * **Scope**: whether the query output is a **Document** or a full **Envelope**. * **Query definition**: the JQ that maps columns onto GOBL fields. Use **Load suggested JQ from template** to start from the query that ships with the table's template. * **Allow invalid envelopes**: store the result even if it doesn't fully pass schema validation. For a flat invoice table, the query looks something like this (the **Schema** selector adds `$schema` for you): ```jq theme={"system"} { series: .series, code: .code, issue_date: .issue_date, currency: .currency, supplier: { name: .supplier_name, tax_id: { country: .supplier_country, code: .supplier_tax_code } }, customer: { name: .customer_name, tax_id: { country: .customer_country, code: .customer_tax_code } }, lines: [ { quantity: .quantity, item: { name: .item_name, price: .item_price }, taxes: [ { cat: "VAT", rate: .tax_rate } ] } ] } ``` > [!TIP] > > Let GOBL do the maths. Map the raw quantities, prices, and tax rates onto the document and let the build step calculate totals. Don't try to write `total` or `sum` fields from your table. ### Export: write a document back to a table The **Export** step writes fields from the document into a table row, for reporting, reconciliation, or to capture values produced earlier in the workflow (such as a tax authority reference number). Configure it with: * **Target table**: where to write the row. * **Scope**: **Document** or **Envelope**. * **Query definition**: JQ that maps GOBL fields onto table columns. * **Upsert key**: one or more columns used to match an existing row. If a match is found the row is updated in place; otherwise a new row is inserted. Leave empty to always insert. Two helper functions are available in the query: `silo_entry_id` returns the current document's ID and `workspace_id` returns the workspace ID. ```jq theme={"system"} { silo_entry_id: silo_entry_id, code: .code, total: .totals.payable, status: "issued" } ``` With an **Upsert key** of `silo_entry_id`, re-running the workflow updates the same row instead of creating duplicates. ### Merge: enrich a document from a table The **Merge** step looks up a row and patches its values into the document currently being processed. This is useful for pulling in reference data such as payment terms, customer details, or tax rates. Configure it with: * **Source table**: the table to look up. * **Scope**: **Document** or **Envelope**. * **Key query**: JQ that returns `{ column: value }` pairs used to find the matching row (a `WHERE` clause). * **Patch query**: JQ that returns the updated document. The matched row is available as the `$row` variable. * **Required**: when on, the step fails if no row matches. When off, the step is simply **skipped** and the workflow continues. * **Allow invalid envelopes**: save the patched document even if it doesn't fully pass schema validation. For example, to look up a customer's default payment terms by their tax code: ```jq theme={"system"} # Key query: find the row for this customer { customer_code: .customer.tax_id.code } ``` ```jq theme={"system"} # Patch query: merge the row's value into the document . + { payment: { terms: { key: $row.payment_terms } } } ``` ### Create batch: process many rows at once The **Create batch** step fans a workflow out over a whole table, running one job per row. It pairs naturally with an Import step to load a large set of rows as individual documents. Configure it with: * **Workflow to run for each row**: the workflow executed once per matching row. * **Filter** *(optional)*: a SQL `WHERE` clause that selects which rows to process, for example `status = 'pending'`. When the batch starts, Tables counts the matching rows, takes a consistent snapshot of the table, and then creates the per-row jobs. Each job receives the row's primary key, so the workflow's Import step knows exactly which row to build from. ## Query and browse your data At any time you can open the **SQL editor** in the app to run `SELECT` queries, inspect a table's schema, and page through its rows. This is the fastest way to check what a workflow wrote, debug a query, or spot-fix a value. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about the Tables app → # Update exchange rates guide Source: https://docs.invopop.com/guides/update-exchange-rates Update the exchange rates of your invoice to the latest values published by the ECB. ## Overview Many countries require that invoices issued in foreign currencies include an exchange rate to the national currency, and they even specify which source to use for the exchange rate. For example, when a Spanish company issues an invoice in Dollars, it must use the rate of the European Central Bank to convert the values to Euros, before reporting it to the Spanish tax authority. This workflow step will help you use the correct exchange rate. ## How to use 1. Start by creating an invoice and include the `exchange_rates` field, specifying the currencies you want to convert from and to, and any amount (it will be updated by the step). 2. Add the **Update Exchange Rates** step to your workflow — no extra setup required. 3. Trigger the workflow as you normally would. 4. The step will automatically update the exchange rates when the workflow runs. ## Example Imagine you created an invoice in USD and you need to convert it to EUR for reporting purposes. At first, the invoice's `exchange_rates` entry may be missing or contain a placeholder `amount`, like this: ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "uuid": "019006f8-67cc-7000-99ce-40969ed20a9e", "type": "standard", "code": "", "issue_date": "2022-04-29", "currency": "USD", "exchange_rates": [ { "from": "USD", "to": "EUR", "amount": "0.9" } ], ... } ``` Once the **Update Exchange Rates** step is run, the invoice will be updated with the actual exchange rate: ```json theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "ES", "uuid": "019006f8-67cc-7000-99ce-40969ed20a9e", "type": "standard", "code": "", "issue_date": "2022-04-29", "currency": "USD", "exchange_rates": [ { "from": "USD", "to": "EUR", "at": "2022-04-29T00:00:00", "amount": "0.94877" } ], ... } ``` ## FAQ > [accordion] Will an invoice without the exchange rates field cause an error during this step? > > No, if the `exchange_rates` field is empty or missing from the invoice, this step will simply be skipped without throwing an error. The process will continue as usual. > [accordion] What happens if a currency in the exchange rates is not supported by the European Central Bank (ECB)? > > If any of the currencies in the `exchange_rates` field isn't supported by the European Central Bank (ECB), the system will skip updating the exchange rate for that currency. No error will be thrown, and the process will continue. > > **List of supported currencies by ECB:** > >
    >
  • AUD
  • >
  • BGN
  • >
  • BRL
  • >
  • CAD
  • >
  • CHF
  • >
  • CNY
  • >
  • CZK
  • >
  • DKK
  • >
  • EUR
  • >
  • GBP
  • >
  • HKD
  • >
  • HUF
  • >
  • IDR
  • >
  • ILS
  • >
  • INR
  • >
  • ISK
  • >
  • JPY
  • >
  • KRW
  • >
  • MXN
  • >
  • MYR
  • >
  • NOK
  • >
  • NZD
  • >
  • PHP
  • >
  • PLN
  • >
  • RON
  • >
  • SEK
  • >
  • SGD
  • >
  • THB
  • >
  • TRY
  • >
  • USD
  • >
  • ZAR
  • >
> [accordion] The timestamp in the exchange rate indicates it was obtained the day before, is this normal? > > The European Central Bank states that the reference rates are usually updated at around 16:00 CET every working day, except on closing days marked with an asterisk on their [ECB Public Holidays list](https://www.ecb.europa.eu/ecb/contacts/working-hours/html/index.en.html). > > When an invoice is issued on a certain day before the update has been published, the system detects this and will automatically use the most recent available official rate (usually from the day before). This ensures we rely on officially released rates rather than estimating or anticipating unpublished ones. ### Support We're always working to improve our features! If you require support for more banks for specific currencies or need any help, feel free to contact us at ([support](mailto:support@invopop.com)). ## Additional resources * [European Central Bank Exchange Rate Reference](https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html) * [Invopop Workflow Configuration Guide](/guides/workflows) > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about exchange rates → # Webhooks guide Source: https://docs.invopop.com/guides/webhooks Integrate your system with Invopop through webhooks. ## Introduction This guide will show you how to configure the **Send Webhook** workflow step to send HTTP requests automatically from your workflows. You can use webhooks to notify external systems, trigger automations, or synchronize data with third-party APIs whenever an event occurs. ## Setup and configuration Add the **Send Webhook** step to your workflow by searching or locating it in the actions list under the **Notify** section. ![Webhook app connected](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/webhooks-list.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=f99c275855360350e83d183f5902da73) Then configure your Webhook: ![Webhook step configuration](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/webhooks.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=7f0a9da2ecdc37d4d9cf749802df8a32) **Webhook URL**\ The endpoint that will receive the `POST` request. **Event (optional)**\ Specify a custom event name such as `success`, `error`, or `invoice_sent`. This will appear under the `event` field in the JSON payload. **Authentication Bearer Token (optional)**\ If your endpoint requires authorization, include a token here. The request will include a header: `Authorization: Bearer `. Invopop does not recommend whitelisting IPs for security as the static IP is likely to change in the future. > [!WARNING] > > Never expose sensitive credentials directly in the webhook URL. Always use Bearer Tokens or custom headers for secure authentication. **Custom Headers (optional)**\ Add one or more HTTP headers. This is useful for services that require API keys, content types, or verification signatures. **Sample Body**\ Below is an example of the JSON payload that will be sent: ```json theme={"system"} { "id": "", "event": "", "transform_job_id": "", "silo_entry_id": "", "owner_id": "", "key": "", "args": {}, "faults": [] } ``` * `id` the id of the webhook event. * `event` custom event name set up in the step (if any). * `transform_job_id` the id of a job run through the [Transform Job endpoint](/api-ref/transform/jobs/fetch-a-job-by-key) * `silo_entry_id` the id of the [silo entry](/api-ref/silo/entries/fetch-an-entry) * `key` the job's [key](/api-ref/transform/jobs/create-a-job-put#body-key) to ensure [idempotency](/api-ref/idempotency). * `args` certain workflow steps can add data to the args field which is then made available to subsequent steps and to webhook payloads. * `faults` array of [fault](/api-ref/transform/jobs/fetch-a-job#response-faults) objects that represent errors that occurred during the processing of the job. > [!NOTE] > > These are the faults of the job identified by `transform_job_id`, and together with the same array on the [job itself](/api-ref/transform/jobs/fetch-a-job) they are the reliable record of what went wrong. Prefer them over the `faults` field on the [silo entry](/api-ref/silo/entries/fetch-an-entry), which exists for backwards compatibility and is only populated when the entry's last state came from a job that errored or failed. > [!NOTE] > > The webhook will expect a `200` or `204` response code. Any other response will be treated as an error and will be automatically retried after a delay. Have your agent build a webhook receiver for job results. Read [https://docs.invopop.com/guides/webhooks.md](https://docs.invopop.com/guides/webhooks.md) and [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md). Implement an HTTPS endpoint in this project that receives Invopop's Send Webhook POST requests. Verify the bearer token or custom header I configure in the workflow step. Parse the JSON body fields id, event, transform\_job\_id, silo\_entry\_id, key, args and faults, and treat deliveries as idempotent using id and key. Respond 200 quickly and process asynchronously. On success events fetch the silo entry from the Invopop API and store its state and attachment URLs. On error events store the faults from the payload and fetch the job for the per-step trace. Return a non-200 status only when Invopop should retry, and document the retry schedule from the guide in a code comment. ## Retries When a webhook is triggered, Invopop will wait for a response. The behavior is as follows: * Success (`200`/`204`) → Webhook will produce an `OK` status and no retry process will be triggered. * Anything else → Webhook will trigger the retry process. Retries happen automatically using exponential backoff for error messages in jobs: 5s → 10s → 20s → 40s → 80s → … doubling up to 1,280s. Subsequently, the system will wait 30 minutes between retries until a maximum of 12 hours is reached. If you wish to change this behavior, include a `retry_in` field in your response with the number of seconds you wish to wait between retries. The system will then retry up to 32 times before returning a `KO` status. Here is an example of such a response: ``` { "code":"503", "message":"Service Unavailable", "retry_in": 20 } ``` ## FAQ > [accordion] What happens if my webhook endpoint is down? > > If your endpoint fails to respond or returns a non-`200`/`204` status code, Invopop will retry automatically. If the > error persists, the webhook step will return a `KO` status. > [accordion] Can I send multiple webhooks in the same workflow? > > Yes. You can add multiple **Send Webhook** actions in the same workflow, each targeting a different endpoint or event. > [accordion] What security options are available? > > You can authenticate using Bearer Tokens or custom headers (e.g. `X-Signature`, `X-API-Key`). It’s recommended to use HTTPS and verify the token or header server-side. > [accordion] What content type do webhooks use? > > All webhook requests are sent with `Content-Type: application/json`. > [accordion] Can I customize the json payload of the webhook? > > You can’t customize the webhook payload. If you need additional information, fetch the corresponding entry or job directly. This design ensures security compliance by preventing sensitive data from being delivered through webhooks. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about webhooks → # Workflows guide Source: https://docs.invopop.com/guides/workflows Configure a workflow in Invopop to process documents. ## What is a workflow? A workflow in Invopop is a sequence of steps executed for each incoming job. Each step is powered by the provider of a service. Examples of services include: * Generating PDFs * Forwarding invoices to tax agencies * Modifying documents * Sending emails * Posting webhooks * Sending documents to ERPs or other systems Workflows automate and streamline your document and invoicing processes. Invopop ensures each step is executed reliably, with built-in retries and error handling. The steps are executed sequentially (the next step only executes after the previous one has completed) so you don't need to handle asynchronous responses. ## Anatomy of a workflow ![Parts of a workflow](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-anatomy.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=b1d787ee924d2623051737618f9b71cf) A workflow is composed of two main areas: * **Main flow:** defines the standard sequence of steps that the workflow follows under normal conditions. It represents the intended execution path, showing how tasks progress when the steps execute correctly (`OK`) and when exceptions or errors are handled within conditions. * **Error handling flow** defines the sequence of steps when an unhandled error or exception occurs. It allows you to specify alternative actions, recovery logic, or notifications to ensure the process can handle unexpected conditions gracefully. Keep in mind the error handling flow is executed if a step does not handle its own error through a condition. Both flows are composed of *steps* which can contain *conditions*. * **Steps** are actions performed on the entry being processed, such as sending the document to a tax authority, generating a PDF, or sending a notification to the customer or issuer. * **Conditions** determine the logic that directs how a workflow proceeds when there's not an error. They evaluate the *status* and *code* outcome of a given step, and if there's a match, it will execute the steps contained within that condition. Conditions are often used in the "If / Else" step but can be used to handle non-error responses from other steps. * **Exceptions** when a step returns a `KO`, the workflow will continue in the error handling flow by default. However, sometimes you need to handle an error differently from the rest, and adding an exception will prevent the workflow from continuing on the error handling flow, allowing you to handle that case specifically. ## How to create a workflow Although workflows can be created via the API, we strongly recommend using the [Invopop Console](https://console.invopop.com) for an easier set up. In the **Workflows** section click on **+ Create workflow**. You will see a template selection screen. The first two items are blank workflows for each document type: ![Parts of a workflow](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-template-empty.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=16d2558750ad5f0e36850e18b9fed24d) * **Empty Invoice workflow**: for sales or expenses. * **Empty Party workflow**: for suppliers or customers. Choose [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) for this example and then click **Load Template**. Give your workflow a name and description by filling the fields on the right sidebar. Add steps to your new workflow by tapping on the **+ Add step** button and selecting an action from the right. Some steps will require configuration in order to function correctly. The "developer mode" ![Developer mode switch](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/workflow-switcher.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=16f39a7bca8b93c60e0e3a42bbf1136a) switch at the top right of the canvas can be used to display the JSON representation of the workflow. This makes it easy to copy and paste workflows from examples or other workspaces. Make sure to return to the visual editor view to ensure the document is validated. Ask your agent to design a workflow for a goal and explain each step. Read [https://docs.invopop.com/guides/workflows.md](https://docs.invopop.com/guides/workflows.md), [https://docs.invopop.com/console/workflow-intro.md](https://docs.invopop.com/console/workflow-intro.md) and the invoicing guide for my country on docs.invopop.com, including the workflow JSON those guides show. Design a workflow for the goal I describe as an ordered list of steps, naming the app and action each step uses, the configuration each needs, which steps set the entry state and to what, where conditions or exceptions belong, and what the error handling branch should do. Point out any app I must enable first and any supplier registration the country requires. If a template already exists for this goal, tell me its name so I can load it in the Console instead of building from scratch. ## Creating conditions and exceptions **Conditions** create blocks that execute when a given *code* matches the response of a workflow step, without an error. There are two status signals (`OK` and `KO`) plus `Any`, which matches regardless of the status. **Exceptions** create blocks that execute when a `KO` is returned from a workflow step, and has an optional *code* to further narrow down the exception condition. **Codes** are generally text or numbers returned by providers. Only some steps will return codes along with their status signals. For example, the *Send VERI\*FACTU (Spain)* step will return the error code as [specified by the AEAT](https://prewww2.aeat.es/static_files/common/internet/dep/aplicaciones/es/aeat/tikeV1.0/cont/ws/errores.properties) along with the `KO` status signal. Since GOBL already handles many of the validations in tax authorities lists, we recommend only implementing conditions which happen in your workflow with certain regularity and which should be automated. As an example, we will handle the case where a supplier is not registered in the taxpayer census by the AEAT: **1. Add a condition or exception on the step** On the desired step, click on the menu button `...` and select **Add condition**. ![Add condition](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=63fcf8884e4f75550fa05a70c43416e9) **2. Configure the condition or exception** ![Add match conditions](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition-match.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=541ad082b478643dbace2929512414f4) Configure the matching conditions in the popover **3. Add an action to the condition block** ![Add condition action](https://mintcdn.com/invopop/gppDYSnFxKXpVvfp/assets/guides/workflow-add-condition-action.png?fit=max\&auto=format\&n=gppDYSnFxKXpVvfp\&q=85\&s=f4d4253fadab0e42c4a831d44fd7bacc) Click on "Select an action" and handle the condition as you wish. In this workflow, we have added an If / Else step that reads the country of a customer, returning `true` or `false`, and then performing the required lookup for each type of customer (AEAT for Spanish customers and VIES lookup for EU ones), then, if the tax id is not found, the error is handled by sending a webhook. ## Running a workflow Workflows in Invopop can be executed through the following methods: * Manually via the Invopop Console * Via API calls to the [create job endpoint](/api-ref/transform/jobs/create-a-job-put) * Automatically by an embedded application. Workflows are executed on *silo entries* (such as invoices or suppliers), this action creates a *job*. When a job is run, the silo entry will be updated with any changes or attachments generated during processing. The status of a job can be seen in the silo entry's activity tab, or in the **Workflows** → **History** section accessible from the left sidebar. ### Running from the Console There are three ways to run a workflow from the Console: #### From a silo entry While viewing an invoice, supplier, or other silo entry, click Run Workflow in the top toolbar. ![Run Workflow button in the silo entry toolbar](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-job-from-entry.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=dbd8e48f5f8494ed1e04ba3fa458fe05) This opens a panel where you search for and select the workflow to run. The current entry is used as the document automatically. ![Workflow selection panel from a silo entry](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflows-run-selected-entry.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=c20081e59cd8bdca3367ee73d89dd4a4) Click Run Workflow to create the job. This method does not support passing arguments — the job runs with the selected entry only. #### From the workflow editor or list You can also start a run from the workflow side: * **From the workflow editor**: Click the **Run** button in the top bar while viewing a workflow. ![Run button in the workflow editor](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-job-from-editor.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=ddb981d90c11963cab627fde56ebb5f8) * **From the workflow list**: Click the `...` menu on any workflow row and select **Run**. ![Run option in the workflow list menu](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-job-from-table.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=91ee5f81659f82bfc6078d7706b9eace) Both options open a panel where you configure the job inputs: ![Run workflow panel with document and arguments fields](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-select.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=784fa8d08ede87efeec3af4b6344c734) * **Select a document**: Search for and select an existing silo entry (invoice, supplier, etc.) to process. * **Arguments**: Provide string key-value pairs that will be passed to the workflow steps. The specific keys and values depend on the workflow — for example, a KSeF import workflow might expect a `ksef-number` and `nip` argument. A job requires **at least one** of these: a document or arguments. You can also provide both. For example, a sync workflow may need a party document selected *and* date range arguments. ![Run workflow panel with a document and arguments filled in](https://mintcdn.com/invopop/sers1hOWPWrRa1NA/assets/guides/workflow-run-select-filled.png?fit=max\&auto=format\&n=sers1hOWPWrRa1NA\&q=85\&s=50d8be1d918f610312a1b7d41d715bf5) Click Run workflow to create the job. > [!NOTE] > > When a job is run with arguments only and no document selected, the workflow will typically create a new silo entry or fetch an existing one based on the arguments provided. For example, an import workflow receiving a document identifier as an argument will download the document and create a corresponding silo entry automatically. ## Error handling Any step that causes an error (`KO`) from which the job can't recover, and is not handled through a condition, will trigger the error handling flow. To enable this section, tap on **Handle Errors** at the bottom of the workflow creation screen, then add steps into this area which you want to execute when the job fails (often times setting the entry's state to `Error` and possibly sending a notification). ## FAQ > [accordion] How do I update deprecated workflow steps? > > If your step conditions display a **This step contains deprecated conditions** warning, your workflow will continue working normally, but we recommend updating your workflow so that you can modify it without unexpected behavior. > > Steps under deprecated conditions will display with a warning symbol ⚠️ with the label "Go to \[action name]". Click on the menu button `...` and select "Replace", and then select the replacement action from the sidebar. So, for example, if the deprecated step is labelled "Go to Set state", replace this step with "Set state" and choose the same configuration as the original step (which you should find further down within the same workflow). > > Once all deprecated steps are replaced, locate the referenced action(s) and delete. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about workflows → # Documentation Source: https://docs.invopop.com/index Invopop helps you issue, receive, and process business documents—such as invoices and receipts—in compliance with local tax regulations across our supported countries Think of **Invopop** as a translation engine for business documents. Our [API](/api-ref/introduction) accepts invoices in a single, universal format [GOBL](https://docs.gobl.org) and converts them into the local format, forwarding them to the customer and tax authorities as needed. We also support receiving incoming invoices from local networks or providers such as Peppol, converting them to the same universal format. Invopop doesn't just handle invoices—we support payment receipts, purchase orders, delivery notes, and more. All documents use [GOBL (Go Business Language)](https://gobl.org/), our open-source universal format. This means you only need to integrate once with Invopop-we manage the complexity of localization. > [card] Get Started (you are here) > > Learn how Invopop works and review country specific legislation. > [card] [Console & Admin](/console/) > > In Console you will create workflows, debug jobs, edit documents and more. > [card] [Guides](/guides/) > > Tutorials guide you from start to finish for common tasks in Invopop. > [card] [Apps](/apps/) > > Extend core functionality and give support for countries' regimes. > [card] [API Reference](/api-ref/) > > Explore technical details and reference material for the Invopop API. ## First steps If you're new to Invopop, we recommend the following reads: > [card] [Quickstart](/get-started/quickstart) > > Sign up instructions and getting your first sandbox working > [card] [GOBL](https://docs.gobl.org) > > The open source format to simplify structured documents. > [card] [Console overview](/console/index) > > The web UI for our API. Create workflows, debug jobs, edit documents and more. > [card] [LLMs and agents](/llms) > > Point your coding agent at the docs and avoid the common GOBL traps. ## Highlights > [card] [API Reference](/api-ref/introduction) > > Five services (Silo, Transform, Sequences, Access and Utils) for each problem domain. > [card] [Idempotence](/api-ref/idempotency) > > Operations with the same input data, when repeated, should provide exactly the same result. > [card] [White Label](/guides/white-label) > > Provide transparent e-invoicing to your customers without them knowing you use us. > [card] [Workflows](/guides/workflows) > > Automate and streamline processes related to document handling. > [card] [PDF Invoice](/guides/pdf-invoice) > > Generate tax-compliant PDF invoices you can send to your customers. > [card] [Authentication](/guides/authentication) > > Generate an authentication token to start using the Invopop API. # Build with LLMs and agents Source: https://docs.invopop.com/llms The shortest correct path for an AI agent to understand Invopop, write valid GOBL documents and run them through the API without falling into the usual traps. This page is written for coding agents and for the people who direct them. It explains the two things you need to hold in your head at the same time, [GOBL](https://docs.gobl.org) (the document format) and Invopop (the platform that stores, transforms and delivers those documents), and it lists the mistakes that agents make most often, each one verified against the current GOBL release. > [!NOTE] > > **If you are an AI agent:** read this page in full, then fetch [docs.invopop.com/AGENTS.md](https://docs.invopop.com/AGENTS.md), a condensed version you can keep in context. Both are plain Markdown. Every other page on this site is available as Markdown by adding `.md` to its URL, and [docs.invopop.com/llms.txt](https://docs.invopop.com/llms.txt) lists them all. ## The model in one minute You write a **GOBL document** (an invoice, a party, an order) as JSON. You upload it to Invopop, which wraps it in a signed **envelope** and stores it as a **silo entry**. You then create a **job** that runs a **workflow** over that entry. Each workflow **step** is provided by an **app** enabled in your **workspace**: number the invoice, sign it, convert it to the local XML, send it to the tax authority or network, generate a PDF, notify you. The step results land back on the entry as files, stamps and a state. ```mermaid theme={"system"} flowchart LR A["Your app or agent"] -->|"1. Create entry
(GOBL JSON)"| S["Silo
stores the envelope"] A -->|"2. Create job"| T["Transform
runs the workflow"] T --> W["Steps: number, sign,
convert, send, PDF"] W --> G["Tax authority
or network"] W -->|"3. Files, stamps, state"| S W -->|"4. Webhook"| A %% Invopop palette - skills/mermaid-style classDef actor fill:#ffffff,stroke:#169958,stroke-width:1px,color:#103830 classDef system fill:#e8f5ee,stroke:#169958,stroke-width:1px,color:#103830 classDef authority fill:#169958,stroke:#0f7a45,stroke-width:1.5px,color:#ffffff classDef decision fill:#f4faf6,stroke:#169958,stroke-width:1px,color:#103830 classDef muted fill:#f4f4f5,stroke:#9ca3af,stroke-width:1px,color:#4b5563 linkStyle default stroke:#94a3b8 class A actor class S,T,W system class G authority ``` Seven words carry most of the meaning. Keep them apart. | Word | What it is | Where you meet it | | - | - | - | | **GOBL document** | The business object itself: an invoice, a party, an order. JSON whose `$schema` names the type. | The `data` you send | | **Envelope** | `head` (UUID, digest, stamps, tags) + `doc` (the document) + `sigs` (signatures). What Invopop stores and signs. | The `data` you get back | | **Silo entry** | Invopop's record of one envelope plus its state, files and metadata. Has its own `id`. | `/silo/v1/entries` | | **Workflow** | A published sequence of steps for one document schema. | Console, `/transform/v1/workflows` | | **Job** | One execution of one workflow over one entry. Holds the step-by-step trace and any faults. | `/transform/v1/jobs` | | **App** | Enabled per workspace. Provides the steps a workflow can use: PDF, Peppol, VERI\*FACTU, KSeF, email. | Console → Configuration → Apps | | **Workspace** | An isolated environment, sandbox or live, with its own API keys, apps, workflows and series. | The token you send | The [technical glossary](/api-ref/glossary) has the full list. ## Reading these docs as an agent Prefer Markdown and structured sources over rendered HTML. * **Any page as Markdown**: append `.md` to the URL, for example [/get-started/quickstart.md](https://docs.invopop.com/get-started/quickstart.md). Tabs, accordions and code that are hidden in the rendered page are included. * **Index of every page**: [/llms.txt](https://docs.invopop.com/llms.txt). Read it first, then fetch only the pages you need. [/llms-full.txt](https://docs.invopop.com/llms-full.txt) concatenates the whole site and is several megabytes, so fetch pages instead. * **Condensed rules for agents**: [/AGENTS.md](https://docs.invopop.com/AGENTS.md). Paste it into your project's own agent instructions. * **Install the docs as a skill**: `npx skills add https://docs.invopop.com` adds [/skill.md](https://docs.invopop.com/skill.md) to Claude Code, Cursor and other agents that follow the agent skills specification. * **GOBL reference**: [docs.gobl.org/llms.txt](https://docs.gobl.org/llms.txt) indexes every schema, tax regime and addon. Schema pages such as [bill/invoice](https://docs.gobl.org/draft-0/bill/invoice.md) list each property with its validation rules and error codes. * **API specs**: the OpenAPI files behind the [API reference](/api-ref/introduction) are linked from the bottom of `/llms.txt`. ### MCP servers Both documentation sites expose a Model Context Protocol server. Connect both so your agent can search Invopop and GOBL docs directly. > [tab] Claude Code > > ```bash theme={"system"} > claude mcp add --transport http invopop-docs https://docs.invopop.com/mcp > claude mcp add --transport http gobl-docs https://docs.gobl.org/mcp > ``` > [tab] Claude > > 1. Open the [Connectors](https://claude.ai/settings/connectors) page in Claude settings. > 2. Select **Add custom connector**. > 3. Add `invopop-docs` with the URL `https://docs.invopop.com/mcp`. > 4. Add `gobl-docs` with the URL `https://docs.gobl.org/mcp`. > 5. In a conversation, select the attachments button and pick the server. > [tab] Cursor > > Open the command palette, search for **Open MCP settings**, select **Add custom MCP** and add the servers to `mcp.json`: > > ```json theme={"system"} > { > "mcpServers": { > "invopop-docs": { "url": "https://docs.invopop.com/mcp" }, > "gobl-docs": { "url": "https://docs.gobl.org/mcp" } > } > } > ``` > [tab] VS Code > > Create `.vscode/mcp.json`: > > ```json theme={"system"} > { > "servers": { > "invopop-docs": { "type": "http", "url": "https://docs.invopop.com/mcp" }, > "gobl-docs": { "type": "http", "url": "https://docs.gobl.org/mcp" } > } > } > ``` ### GOBL tooling for validating documents You do not need an Invopop account to check whether a GOBL document is valid. Use whichever of these fits your environment. > [tab] Public API (no install) > > The [GOBL API](https://docs.gobl.org/api-reference/documents/build-a-gobl-document) at `gobl.dev` builds and validates any document. Wrap your document in a `data` property. > > ```bash theme={"system"} > curl -s -X POST https://gobl.dev/v0/build \ > -H "Content-Type: application/json" \ > -d '{"data": {"$schema": "https://gobl.org/draft-0/bill/invoice", "...": "..."}}' > ``` > > A valid document comes back fully calculated. An invalid one returns `"key": "validation"` and a `faults` array with a `code`, the JSON `paths` affected and a `message`. It is free and stateless, so use it for development and testing. Invopop's authenticated [build endpoint](/api-ref/silo/gobl/build) does the same inside your workspace. > [tab] CLI > > The CLI lives in the `gobl.dev` repository, not in the core `gobl` library. > > ```bash theme={"system"} > go install github.com/invopop/gobl.dev/cmd/gobl@latest > gobl build -i invoice.json # calculate, validate, print > gobl build -i -e invoice.json # the same, wrapped in an envelope > gobl correct -i --credit built.json # draft a credit note > gobl validate built.json # validate a complete document only > ``` > > Prebuilt binaries are on the [releases page](https://github.com/invopop/gobl.dev/releases). > [tab] Local MCP server > > The same CLI runs as an MCP server over stdio, which gives an agent tools named `build`, `validate`, `correct`, `replicate`, `schema`, `regime`, `regime_list`, `addon` and `addon_list`. > > ```bash theme={"system"} > claude mcp add gobl -- gobl mcp > ``` > > Use `regime` and `addon` to look up the exact tax rate keys and extension codes a country expects before you write a document. > [tab] Browser > > [build.gobl.org](https://build.gobl.org) is an editor with the same build and validate behaviour, described in the [GOBL Builder guide](/guides/gobl-builder). ## GOBL in ten rules Each rule below was checked against GOBL `v0.504.0`. Where the behaviour is surprising, the surprise is spelled out. ### 1. Send the minimum and let build do the maths A GOBL document is built in two stages. You provide the raw facts, then `build` normalises, calculates and validates. Never write `sum`, `total`, `totals` or tax `percent` values yourself. ```json What you send theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "series": "TEST", "code": "001", "issue_date": "2026-09-03", "supplier": { "name": "Test Company Ltd.", "tax_id": { "country": "GB", "code": "000472631" } }, "customer": { "name": "Random Company Ltd.", "tax_id": { "country": "GB", "code": "350983637" } }, "lines": [ { "quantity": "20", "item": { "name": "Development services", "price": "90.00" }, "taxes": [{ "cat": "VAT", "rate": "standard" }] } ] } ``` ```json What build returns theme={"system"} { "$schema": "https://gobl.org/draft-0/bill/invoice", "$regime": "GB", "type": "standard", "series": "TEST", "code": "001", "issue_date": "2026-09-03", "currency": "GBP", "supplier": { "name": "Test Company Ltd.", "tax_id": { "country": "GB", "code": "000472631" } }, "customer": { "name": "Random Company Ltd.", "tax_id": { "country": "GB", "code": "350983637" } }, "lines": [ { "i": 1, "quantity": "20", "item": { "name": "Development services", "price": "90.00" }, "sum": "1800.00", "taxes": [ { "cat": "VAT", "key": "standard", "rate": "general", "percent": "20.0%" } ], "total": "1800.00" } ], "totals": { "sum": "1800.00", "total": "1800.00", "taxes": { "categories": [ { "code": "VAT", "rates": [ { "key": "standard", "base": "1800.00", "percent": "20.0%", "amount": "360.00" } ], "amount": "360.00" } ], "sum": "360.00" }, "tax": "360.00", "total_with_tax": "2160.00", "payable": "2160.00" } } ``` Build added `$regime`, `type`, `currency`, line indexes, the tax percentage for that regime on that date, and every total. Building an already-built document again returns it unchanged, so build is safe to repeat. > [!WARNING] > > `validate` is not `build`. Validating a partial document fails with tax and totals errors because nothing has been calculated yet. Build first, then validate the result if you need to. ### 2. Numbers are strings Amounts and percentages are decimal strings: `"90.00"`, `"1800.00"`, `"20.0%"`. Trailing zeros are significant and set the precision. JSON numbers such as `20` or `90` are accepted on input but always come back as strings, so never compare them as floats. If you include `totals` in your input they are recalculated and silently replaced, which means a mismatch between your arithmetic and GOBL's will not raise an error. Read totals from the built document, never from your own calculation. ### 3. `$schema` says what the document is Every document needs a `$schema`. These are the ones Invopop processes. | Schema | Use | | - | - | | `https://gobl.org/draft-0/bill/invoice` | Invoices, credit notes, debit notes, corrective invoices, proformas | | `https://gobl.org/draft-0/org/party` | A supplier or customer stored on its own, needed to register with tax authorities | | `https://gobl.org/draft-0/bill/order` | Purchase or sales orders | | `https://gobl.org/draft-0/bill/delivery` | Delivery notes and despatch advices | | `https://gobl.org/draft-0/bill/payment` | Payment receipts and advices linking to invoices | | `https://gobl.org/draft-0/bill/status` | Lifecycle events reported against a document | | `https://gobl.org/draft-0/org/item` | A product or service in a catalogue | Each schema page on docs.gobl.org lists every property, which ones are calculated, and the validation rules with their error codes. See [Document schemas](/console/doc-schemas) for how Invopop uses them. ### 4. The regime decides the rules The tax regime is a country code in `$regime`. If you omit it, build infers it from the supplier's `tax_id.country`. Set it explicitly anyway, and set it to the country of the supplier, not the customer. GOBL currently ships regimes for 27 countries: `AE`, `AR`, `AT`, `BE`, `BR`, `CA`, `CH`, `CO`, `DE`, `DK`, `EL` (Greece), `ES`, `FI`, `FR`, `GB`, `IE`, `IN`, `IT`, `MX`, `NL`, `NO`, `PL`, `PT`, `SA`, `SE`, `SG` and `US`. Each has a page at `https://docs.gobl.org/regimes/.md` listing tax categories, rate keys, extensions and correction rules. > [!WARNING] > > For a supplier in a country without a regime, build has no defaults to fall back on. You must set `currency` yourself and give each tax an explicit `percent` instead of a rate key. The error you get otherwise is the unhelpful `currency: missing or invalid`. ### 5. Taxes are keys, not numbers A line tax is a category plus a key or rate, and GOBL resolves the percentage for the regime and the `issue_date`. Writing `{"cat": "VAT", "rate": "standard"}` for a Spanish invoice dated 2012 yields 18%, the rate in force at the time. This is how the same document works in every country. | You write | Build returns | Meaning | | - | - | - | | `{"cat":"VAT","rate":"standard"}` | `key: standard, rate: general, percent: 20.0%` | The default rate. `standard` and `general` are the same thing | | `{"cat":"VAT","rate":"reduced"}` | `key: standard, rate: reduced, percent: 5.0%` | A reduced rate defined by the regime | | `{"cat":"VAT","rate":"zero"}` | `key: zero, percent: 0%` | Zero-rated | | `{"cat":"VAT","key":"exempt"}` | `key: exempt` (no percent) | Exempt, usually needs an extension code saying why | | `{"cat":"VAT","key":"reverse-charge"}` | `key: reverse-charge` (no percent) | Customer accounts for the tax | | `{"cat":"VAT","percent":"20%"}` | `key: standard, percent: 20%` | Explicit percentage, for regimes without rates | | `{"cat":"VAT","rate":"bogus"}` | Error: `'bogus' rate not defined for key 'standard' in category 'VAT'` | Unknown keys fail the build | Category codes are also regime specific: `VAT` in Europe, `ST` in the US, `IVA` in Mexico, `GST` in Singapore. When in doubt, read the regime page or call the GOBL MCP `regime` tool instead of guessing. ### 6. Addons switch on a country format `$addons` lists the format rules a document must satisfy in addition to the regime, for example `["es-verifactu-v1"]` to report to Spain's VERI\*FACTU or `["pl-favat-v3"]` for Poland's KSeF. An addon adds **extensions**, coded values under `ext` at document, line or tax level. Build fills in the defaults it can work out and reports the rest as validation faults that name the missing extension key. The addons available today are `ar-arca-v4`, `br-nfe-v4`, `br-nfse-v1`, `co-dian-v2`, `de-xrechnung-v3`, `de-zugferd-v2`, `dk-oioubl-v2`, `es-facturae-v3`, `es-sii-v1`, `es-tbai-v1`, `es-verifactu-v1`, `eu-en16931-v2017`, `fi-finvoice-v3`, `fr-choruspro-v1`, `fr-ctc-flow2-v1`, `fr-ctc-flow6-v1`, `fr-ctc-flow10-v1`, `fr-facturx-v1`, `gr-mydata-v1`, `it-sdi-v1`, `it-ticket-v1`, `mx-cfdi-v4`, `pl-favat-v3`, `pt-saft-v1` and `sa-zatca-v1`. Each is documented at `https://docs.gobl.org/addons/.md`, and the country guide under [Guides](/guides/index) tells you which one its workflow needs. > [!TIP] > > Never invent an extension value. Extension codes come from official code lists. Look them up on the addon page or with the GOBL MCP `addon` tool, and copy a working example from the country guide. ### 7. `series` and `code` are the invoice number, and Invopop usually assigns them `code` is the sequential identifier of the invoice and `series` groups codes. Both may be empty at build time, but `code` is required before the document can be signed. Most workflows start with an **Add sequential code** step that fills `code` from a [series](/guides/series), so leave it empty when you use such a workflow, and set it yourself only if your own system owns the numbering. Tax authorities require codes to be unique and consecutive per series. Invopop enforces the signing rule: creating an entry with `sign: true` and no `code` fails with `GOBL-ENVELOPE-13`, `envelope doc is not ready to be signed`. ### 8. Tax IDs are normalised and checksum-checked A `tax_id` has a `country` and a `code`. Build strips prefixes and punctuation, so `es-b-986.026.42` becomes `B98602642`, then validates the format and checksum. An invalid identity fails the build with codes such as `GOBL-GB-TAX-IDENTITY-03`, and on the Invopop API becomes a `422` whose `fields` object points at the property. Use real, valid identities from the country's sandbox guide when testing, never made-up digits. ### 9. Never edit an issued invoice, correct it Once an invoice has been signed or reported, it is corrected with a new document. Set `type` to `credit-note` (a refund that extends the original), `debit-note` (extra charges) or `corrective` (a full replacement, used in Spain, Poland and a few others), and reference the original in `preceding`. The set of allowed types depends on the regime. Do not assemble corrections by hand. Ask for one: `gobl correct -i --credit invoice.json` locally, or on Invopop, create an entry with `previous_id` set to the original entry and a `correct` object. Invopop copies the lines, builds the `preceding` block with the original's UUID, series, code and issue date, and adds the regime-specific references that Colombia, Mexico, Greece and VERI\*FACTU demand. Correction options are `type` (required; the older `credit: true` form is rejected with `missing correction type`), `series` (defaults to the original's), `issue_date`, `reason`, `copy_tax` and `stamps`. The [correct invoices guide](/guides/correct-invoice) walks through both paths. ### 10. Know your three UUIDs | UUID | Where | What it identifies | | - | - | - | | Silo entry `id` | Entry JSON, URL paths | The stored record. What every Invopop endpoint takes | | Envelope `head.uuid` | Inside `data` | The envelope. Set when the entry is created | | Document `uuid` | Inside `data.doc` | The business document. Used by `preceding[].uuid` and by party and item references | All three are different values, even when you supply the entry ID yourself, and a credit note's `preceding[].uuid` carries the original document's `uuid`, not its entry `id`. Provide your own entry UUID with `PUT` so retries are idempotent. Use version 1 or 7 (time-based) for documents with a lifespan such as invoices, and version 3, 4 or 5 for long-lived data such as parties and items. Invopop enforces these per folder. ### 11. Tags describe scenarios `$tags` lists scenario keys that change how a regime interprets the document: `simplified` when there is no customer, `reverse-charge`, `self-billed`, `partial`, `customer-rates` when taxes follow the customer's country. Older examples put the same keys under `tax.tags`, which still works but is superseded. Regime and addon pages list the tags they recognise. ## Invopop in ten rules ### 1. One token, one workspace API keys are created in Admin (access.invopop.com → API keys, reachable from **Configuration → API keys** in the Console) and are JSON Web Tokens scoped to a single workspace, each with per-service Read or Admin permissions. Send them as `Authorization: Bearer `. Test with the ping endpoint before anything else. ```bash theme={"system"} curl -s -H "Authorization: Bearer $INVOPOP_TOKEN" https://api.invopop.com/utils/v1/ping ``` > [!WARNING] > > The API sits behind Cloudflare, which rejects some default HTTP client signatures with a bare `403` whose body is `error code: 1010`. Python's `urllib` is one of them. Always send a `User-Agent` header that names your application. `curl`, `requests`, `httpx`, Go, Node and Java defaults pass. ### 2. Sandbox and live share one API There is no separate sandbox host. `https://api.invopop.com` serves every workspace and the token decides which one you are in. `GET /access/v1/workspace` tells you which: it returns the workspace `name`, `slug`, `country` and `sandbox: true` or `false`. Check it before you create anything. Start in a sandbox workspace, where government apps run against test environments and most countries ship a pre-enabled test supplier. Going live means a paid subscription, a live workspace and [registering each real supplier](/guides/how-to-go-live). ### 3. Every create is idempotent if you let it be Prefer `PUT` with a UUID you generate to `POST`. Entries and jobs do not replay: repeating a `PUT` with the same ID, or a `POST` with the same `key`, returns `409 Conflict` (`entry already exists with same id`) even when the body is identical. Treat a `409` as "already created" and `GET` the existing record rather than generating a new ID. Jobs also take a `key`, unique for two years, and `GET /transform/v1/jobs/key/{key}` finds them. See [idempotency](/api-ref/idempotency). ### 4. The entry body wraps the document in `data` ```json theme={"system"} { "data": { "$schema": "https://gobl.org/draft-0/bill/invoice", "supplier": { "...": "..." } } } ``` `data` may be a bare document or a full envelope, which keeps its `head.uuid`. Invopop builds it exactly as GOBL would, so everything in the GOBL rules applies here, and a document without `$schema` fails with `unknown-schema`. A `200` returns the entry: `id`, `folder` (`invoices`, `contacts`, ...), `doc_schema`, a `snippet` summarising the document, `version` and `versions`, and the built envelope in `data`. `signed` and `state` are omitted until something sets them, and the deprecated `draft: true` marks an unsigned entry. Listing with `GET /silo/v1/entries?folder=invoices&limit=10` returns the same shape per item; `limit` must be between 10 and 100. A `4xx` means nothing was stored. The body has `key: "validation"`, a `message`, a `faults` array (each with a GOBL `code`, the JSON `paths` affected and a `message`) and a `fields` object mirroring the document path. Two useful options: `sign: true` signs on creation, which requires a `code`; `allow_invalid: true` stores a document that fails validation, marked `invalid: true` with its `faults` on the entry. ### 5. Workflows must be published and match the schema A workflow is created for one schema (`bill/invoice`, `org/party`) and only accepts entries of that schema. It runs jobs only once it is published, not while it is a draft. The fastest way to get one is the Console's **Load template** dialog, or a deep link such as `https://console.invopop.com/redirect/workflows/new?template=pdf-invoice`. Country guides ship their templates and the JSON behind them. Copy the workflow ID from the Console, you need it for every job. The Console's workflow JSON is accepted as-is by `PUT /transform/v1/workflows/{id}`, which publishes it unless you pass `draft: true`. A job for a draft or unknown workflow fails at once with `404` (`invalid workflow id or not published`). Sending an entry of the wrong schema does not fail the request: the job runs, its first step ends `KO` with the code `schema-mismatch`, and the fault appears in the job's `faults`. The [workflows guide](/guides/workflows) covers steps, conditions and error handling. ### 6. Jobs are asynchronous Creating a job returns `202 Accepted` with a stub: `status: "NA"` and no intents yet. Add `?wait=30` to block for up to thirty seconds; if the job finishes in time the response is `200` with the complete job instead. In production, add a **Send Webhook** step to the workflow and its error branch rather than polling. A complete job has `completed_at`, `status`, `intents` (one per executed step, each with `events` whose `status` goes `RUN` then `OK`, `KO`, `SKIP` or `TIMEOUT`, plus a provider `code` and `message`), the generated `attachments` and the resulting `envelope`. When something failed, the job's `faults` array (`provider`, `code`, `message`) is the authoritative record; it is absent when nothing failed. Do not read success off `status` alone: a job whose step failed and whose error branch then ran reports `status: "OK"` and still carries `faults`. Some authorities answer in seconds, Italy's SDI can take days, so design for the asynchronous outcome. ### 7. States are labels, not truth An entry's `state` (`empty`, `processing`, `sent`, `error`, `paid`, `void`) is set by **Set state** steps in the workflow. It tracks progress, it does not certify anything. You can also set one yourself with `POST /silo/v1/entries/{id}/states` and a body of `{"key": "paid"}`. To find out why a job failed, read the job's `faults`, not the entry's state or the entry's own `faults` field, which exists only for backwards compatibility. See [document states](/console/doc-states). ### 8. Apps must be enabled, suppliers must be registered A fresh workspace has no apps enabled. Enable the ones your workflows need under **Configuration → Apps**. Government apps additionally need the supplier registered with the authority before its first invoice: upload an `org/party` entry and run the country's registration workflow, which leaves it in the `registered` state. Sandbox test suppliers skip this. Every country has a supplier registration guide next to its invoicing guide under [Guides](/guides/index). ### 9. Files live on the entry PDFs, XML submissions and authority receipts are `attachments` on the silo entry, each with a `key`, `mime` type and `url`. Fetch the entry after a job completes and download what you need, or upload your own files with the [files endpoints](/guides/file-uploads). Authority identifiers such as a VERI\*FACTU hash or a SAT UUID appear as `stamps` in the envelope header. ### 10. Signed means stop editing Before a workflow's **Sign envelope** step has run you may `PATCH` the entry freely, with a full document or a JSON patch. After it, the API still accepts a `PATCH` as long as the new document is complete enough to sign again, and stores the result as a new signed version in the entry's `versions` list. Do not rely on that. A signed invoice has usually been numbered and reported, and every regime forbids changing it: correct it with a credit note or [replicate](/console/doc-replicate) it into a new draft instead. Signing fixes the document's `$schema` and `type`. > [!TIP] > > Use one workspace per tax regime. Each gets its own apps, workflows, series and keys, so your code routes each supplier's documents to the workspace for their country. See [multi-country setup](/workspace/multi-country). ## Your first document in seven calls This sequence works in any sandbox workspace and needs only `curl`. It assumes `INVOPOP_TOKEN` holds an API key for the workspace. **1. Check the token** ```bash theme={"system"} curl -s -H "Authorization: Bearer $INVOPOP_TOKEN" https://api.invopop.com/utils/v1/ping ``` The response is `{"ping":"pong"}`. **2. Create the PDF invoice workflow** Open [this template](https://console.invopop.com/redirect/workflows/new?template=pdf-invoice) in the Console, click **Publish**, and note its ID. The [workflows endpoint](/api-ref/transform/workflows/fetch-all-workflows) lists it too. It numbers the invoice, signs it and renders a PDF. The steps behind the template are: ```json PDF invoice workflow theme={"system"} { "name": "PDF invoice", "description": "Add a sequential code and generate a PDF", "schema": "bill/invoice", "steps": [ { "id": "6b16c200-a75f-11ef-ba08-91f336761c6c", "name": "Add sequential code", "provider": "sequence.enumerate", "summary": "Dynamic · Invoice · 000001", "config": { "padding": 6, "start": 1, "name": "Invoice" } }, { "id": "fc75e4f0-8721-11ef-a962-73e3f2037a52", "name": "Sign envelope", "provider": "silo.close" }, { "id": "c61adaa0-7b55-11ef-bffc-d9a10ebf9f89", "name": "Generate PDF", "config": { "logo_height": 40, "locale": "en", "date_format": "%Y-%m-%d" }, "summary": "English", "provider": "pdf" } ], "rescue": [ { "id": "9a7b3d50-1358-11ef-af96-a18cfb3774fa", "name": "Set state", "config": { "state": "error" }, "provider": "silo.state", "summary": "Set state to `error`{.state .error}" } ] } ``` To create workflows without the Console, paste that JSON into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) in code view, or use the [workflows API](/api-ref/transform/workflows/create-a-workflow). **3. Preview the calculation** Optional, but it shows you exactly what Invopop will store and catches validation errors before anything is written. ```bash theme={"system"} curl -s -X POST https://api.invopop.com/silo/v1/gobl/build \ -H "Authorization: Bearer $INVOPOP_TOKEN" \ -H "Content-Type: application/json" \ -d @- <<'EOF' { "data": { "$schema": "https://gobl.org/draft-0/bill/invoice", "series": "TEST", "supplier": { "name": "Test Company Ltd.", "tax_id": { "country": "GB", "code": "000472631" } }, "customer": { "name": "Random Company Ltd.", "tax_id": { "country": "GB", "code": "350983637" } }, "lines": [ { "quantity": "20", "item": { "name": "Development services", "price": "90.00" }, "taxes": [{ "cat": "VAT", "rate": "standard" }] } ] } } EOF ``` The response mirrors the request, `{"data": }`; pass `"envelop": true` to get a full envelope instead. Note there is no `code`: the workflow's first step will assign one. **4. Create the entry** Generate a time-based UUID (`GET /utils/v1/uuid?v=7` returns one) and `PUT` the same body. ```bash theme={"system"} ENTRY_ID=$(curl -s -H "Authorization: Bearer $INVOPOP_TOKEN" "https://api.invopop.com/utils/v1/uuid?v=7" | jq -r .uuid) curl -s -X PUT "https://api.invopop.com/silo/v1/entries/$ENTRY_ID" \ -H "Authorization: Bearer $INVOPOP_TOKEN" \ -H "Content-Type: application/json" \ -d @- <<'EOF' { "data": { "$schema": "https://gobl.org/draft-0/bill/invoice", "series": "TEST", "supplier": { "name": "Test Company Ltd.", "tax_id": { "country": "GB", "code": "000472631" } }, "customer": { "name": "Random Company Ltd.", "tax_id": { "country": "GB", "code": "350983637" } }, "lines": [ { "quantity": "20", "item": { "name": "Development services", "price": "90.00" }, "taxes": [{ "cat": "VAT", "rate": "standard" }] } ] } } EOF ``` A `200` returns the entry: `id`, `folder: "invoices"`, `doc_schema`, a `snippet` of the document and the built envelope in `data`. There is no `state` or `signed` yet; those keys appear once a workflow sets them. **5. Run the workflow** ```bash theme={"system"} JOB_ID=$(curl -s -H "Authorization: Bearer $INVOPOP_TOKEN" "https://api.invopop.com/utils/v1/uuid?v=7" | jq -r .uuid) curl -s -X PUT "https://api.invopop.com/transform/v1/jobs/$JOB_ID?wait=30" \ -H "Authorization: Bearer $INVOPOP_TOKEN" \ -H "Content-Type: application/json" \ -d "{\"workflow_id\": \"WORKFLOW_ID\", \"silo_entry_id\": \"$ENTRY_ID\"}" ``` With `wait`, the response is `200` and the completed job. Check `faults` (absent on success) and `intents[].events[].status` for the step-by-step trace. Without `wait` you get `202` and a stub; poll `GET /transform/v1/jobs/$JOB_ID` until `completed_at` is set. **6. Read the results** ```bash theme={"system"} curl -s -H "Authorization: Bearer $INVOPOP_TOKEN" \ "https://api.invopop.com/silo/v1/entries/$ENTRY_ID" | jq '{state, signed, code: .data.doc.code, files: [.attachments[]? | {key, mime, url}]}' ``` The entry now has `signed: true`, the document's `code` is `000001` from the series, and `attachments` holds one file with `key: "pdf"`, named after the series and code (`TEST-000001.pdf`). Download it from its `url` or with `GET /silo/v1/entries/$ENTRY_ID/files/`. **7. Correct it** Issued invoices are never edited. Ask Invopop to draft a credit note from the original entry, then run the same workflow on the new entry. ```bash theme={"system"} curl -s -X POST https://api.invopop.com/silo/v1/entries \ -H "Authorization: Bearer $INVOPOP_TOKEN" \ -H "Content-Type: application/json" \ -d "{\"previous_id\": \"$ENTRY_ID\", \"correct\": {\"type\": \"credit-note\", \"series\": \"CN\"}}" ``` The response is a new entry whose document has `type: credit-note` and a `preceding` block naming the original by its document `uuid`, series, code and issue date. `series` is optional and defaults to the original's. Country regimes add two things to this loop: a registered supplier, and the country's own workflow template, which converts the document and sends it to the authority or network between the sign and PDF steps. Nothing else changes. ## Prompts to copy Each card copies a complete prompt for your coding agent. They point the agent at the Markdown sources above so it works from current documentation rather than memory. Set up a project to integrate Invopop, with the docs wired into your agent. I am integrating Invopop, an e-invoicing platform, into this project. Before writing any code, read [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md) and [https://docs.invopop.com/AGENTS.md](https://docs.invopop.com/AGENTS.md) in full. Then read [https://docs.invopop.com/llms.txt](https://docs.invopop.com/llms.txt) and fetch the Markdown pages relevant to my target countries (the compliance page, the supplier registration guide and the invoicing guide for each country). Add the MCP servers [https://docs.invopop.com/mcp](https://docs.invopop.com/mcp) and [https://docs.gobl.org/mcp](https://docs.gobl.org/mcp) to this project's agent configuration if it supports MCP, and add the key rules from AGENTS.md to this project's own agent instructions file. Then propose an integration plan that covers: which workspaces I need (one per tax regime), how my data model maps onto GOBL bill/invoice and org/party documents, how I will create entries idempotently with my own UUIDs, how I will run jobs and consume webhooks, and how I will handle corrections. Do not compute invoice totals in my code; GOBL does that. Ask me for my target countries and my API token before running anything against the API. Turn your own invoice data into a valid GOBL document and prove it builds. Convert my invoice data into a GOBL bill/invoice document. First read the rules in [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md) under "GOBL in ten rules", then read the schema at [https://docs.gobl.org/draft-0/bill/invoice.md](https://docs.gobl.org/draft-0/bill/invoice.md) and the regime page for the supplier's country at [https://docs.gobl.org/regimes/](https://docs.gobl.org/regimes/) followed by the lowercase country code and .md. Write the minimal document: $schema, $regime, series, issue\_date, supplier and customer with valid tax\_id objects, and lines with quantity, item name and price as strings and taxes expressed as category plus rate key. Do not write sums, totals or tax percentages. If the country guide on docs.invopop.com names an addon, include it in \$addons. Then validate the document by posting it wrapped in a data property to [https://gobl.dev/v0/build](https://gobl.dev/v0/build), or with the gobl CLI if it is installed, and show me the built result. If validation fails, read the fault codes and paths, fix the document and try again. Explain every field you were unsure about. Run a document end to end in a sandbox workspace and report what happened. Using the Invopop API and the token in the INVOPOP\_TOKEN environment variable, take the GOBL document I give you through the full loop described in the "Your first document in seven calls" section of [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md). Ping first. Create the entry with PUT and a UUID from GET /utils/v1/uuid. Create the job with PUT, the workflow ID I give you, and wait=30. Then fetch the entry and the job. Report the entry state, whether it is signed, the assigned code, the attachments with their URLs, and the job's faults and per-step statuses. If any step returned KO, read [https://docs.invopop.com/guides/workflows.md](https://docs.invopop.com/guides/workflows.md) and the relevant country guide, explain the fault in plain language and propose the fix. Never modify or delete anything in the workspace beyond creating this entry and job. Diagnose a failed Invopop job from its ID. A job in my Invopop workspace failed. Fetch it with GET [https://api.invopop.com/transform/v1/jobs/](https://api.invopop.com/transform/v1/jobs/) followed by the job ID, using the token in INVOPOP\_TOKEN. Read the faults array first: each fault has a provider, a code and a message. Then walk the intents in order and find the first event with status KO or TIMEOUT. Read [https://docs.invopop.com/guides/workflows.md](https://docs.invopop.com/guides/workflows.md) for how conditions and the error branch work, and [https://docs.invopop.com/console/doc-states.md](https://docs.invopop.com/console/doc-states.md) for what states mean. If the fault comes from a GOBL validation, fetch the silo entry with GET [https://api.invopop.com/silo/v1/entries/](https://api.invopop.com/silo/v1/entries/) and the silo\_entry\_id and check the document against the regime and addon pages on docs.gobl.org. If the fault comes from a tax authority, find its error code in the country guide or FAQ on docs.invopop.com. Tell me the root cause, whether the entry can be fixed and resent or must be corrected with a credit note, and the exact change to make. Add Invopop and GOBL guidance to this project's agent instructions. Fetch [https://docs.invopop.com/AGENTS.md](https://docs.invopop.com/AGENTS.md) and add its content to this project's agent instructions file (AGENTS.md, CLAUDE.md or the equivalent this project uses), under a heading that says it is the Invopop integration guide. Keep the section verbatim except for removing parts that clearly do not apply to this project, and add a short subsection at the end listing this project's own Invopop specifics: the workspaces and their countries, where API keys are stored, the workflow IDs in use, and which webhook endpoint receives job results. Do not paste any secret values into the file. ## Where to look | To find out | Read | | - | - | | Whether a country needs e-invoicing, e-reporting or both, and from when | `/compliance/.md` and `/timelines/.md` | | How to register a supplier in a country | `/guides/--supplier.md`, for example [pl-ksef-supplier](/guides/pl-ksef-supplier) | | How to issue an invoice in a country, with a workflow template and example documents | `/guides/-[-].md`, for example [co-dian-invoicing](/guides/co-dian-invoicing) | | Common questions and authority error codes for a country | `/faq/.md` | | What a workflow step does and how to configure it | The app page under [Apps](/apps/index) | | Which fields a document has and how they are validated | `https://docs.gobl.org/draft-0/.md` | | Which tax categories, rates, tags and corrections a country allows | `https://docs.gobl.org/regimes/.md` | | Which extension codes an addon requires | `https://docs.gobl.org/addons/.md` | | An endpoint's parameters and response | [API reference](/api-ref/introduction), or the OpenAPI files linked from `/llms.txt` | | How Console features map onto the API | [Platform](/console/index) | Page paths use the full country name for compliance, timeline and FAQ pages (`spain`, `saudi-arabia`) and the ISO code for guides (`es-verifactu`, `sa-zatca-registration`). The complete list is in [/llms.txt](https://docs.invopop.com/llms.txt). ## Vocabulary map | If you are thinking | Invopop or GOBL says | API | | - | - | - | | Upload an invoice | Create a silo entry | `PUT /silo/v1/entries/{id}` | | Send it, report it, issue it | Create a job on a workflow | `PUT /transform/v1/jobs/{id}` | | Invoice number | `series` + `code`, from a series via **Add sequential code** | `/sequence/v1/series` | | Customer, vendor, company, contact | `org/party` with a `tax_id` | `supplier`, `customer`, or its own entry | | Line item, product, SKU | `lines[].item` (or an `org/item` entry) | inside the document | | VAT rate 21% | `{"cat": "VAT", "rate": "standard"}` for that regime and date | inside the document | | Refund, cancel, void an invoice | Credit note (or corrective invoice) referencing the original in `preceding` | entry with `previous_id` + `correct` | | Status of the invoice | Entry `state` for the label, job `faults` and `intents` for the truth | `GET /silo/v1/entries/{id}`, `GET /transform/v1/jobs/{id}` | | The PDF, the XML, the authority receipt | Entry `attachments`, envelope `head.stamps` | `GET /silo/v1/entries/{id}/files/{id}` | | Callback, notification | **Send Webhook** step in the workflow | your endpoint receives `silo_entry_id` and `transform_job_id` | | Test mode | A sandbox workspace and its own API key | same host, different token | | Country, jurisdiction, tax rules | Regime (`$regime`) plus addons (`$addons`) | inside the document | | Environment, tenant, project | Workspace, grouped in an organization | the token | > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about building with agents → # Argentina's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/argentina Key dates and milestones for Argentina's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Argentina](/compliance/argentina) > > ← Back to main article ## Timeline Current and upcoming regulation for Argentina. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Argentina regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [Factura Electrónica](/compliance/argentina) | Argentina's mandatory electronic invoicing system, used to record, validate, and report all taxable transactions to ARCA in real time through a clearance model. | [Yes](/apps/argentina) | **1 Jun 2026** **Real-time invoice issuance using C.A.E.**\\ [Mandate 5782 / 2025](https://www.argentina.gob.ar/normativa/nacional/resolución-5782-2025-419496/texto) comes into effect, with [CAE](https://servicioscf.afip.gob.ar/publico/comprobantes/cae.aspx) as the default real-time system. CAEA (the previous default batch reporting system) will only be used as a fallback when online systems are unavailable. The resolution now makes C.A.E. (Código de Autorización Electrónico) the default standard. > [card] [Argentina](/apps/argentina) > > Get covered → *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Argentina's regulation → # Australia's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/australia Key dates and milestones for Australia's Peppol eInvoicing, from the ATO's role as Peppol Authority to eInvoicing as the default for federal government entities > [card] [Invoicing compliance in Australia](/compliance/australia) > > ← Back to main article ## Timeline Current and upcoming regulation for Australia. **Now** **E-invoicing systems enforced to date**\\ Australia uses the 4-corner Peppol network, with the ATO as Australian Peppol Authority. Federal government entities (NCEs) must be able to receive e-invoices since 1 July 2022, and they are moving to eInvoicing as the default. PINT A-NZ is the only invoice specification on the network. B2B e-invoicing is voluntary, and B2C is out of scope. | System | Description | Invopop Coverage | | - | - | - | | [Peppol PINT A-NZ](/compliance/australia#invoicing-in-australia) | B2G and voluntary B2B e-invoicing through the Peppol network | Work in progress | **25 October 2018** **Trans-Tasman Electronic Invoicing Arrangement**\\ Australia and New Zealand agree on a common approach to e-invoicing. Both countries later adopt Peppol and one shared invoice specification. **31 October 2019** **The ATO becomes the Australian Peppol Authority**\\ The Australian Taxation Office takes on the Peppol Authority role. It sets the Australian requirements and accredits Peppol service providers. **1 January 2020** **5-day payment for e-invoices**\\ Under the Supplier Pay On-Time or Pay Interest Policy (RMG 417), federal entities pay e-invoices within 5 days, for contracts up to \$1 million. **1 July 2022** **Federal entities must receive e-invoices**\\ Non-corporate Commonwealth entities (NCEs) must be able to receive e-invoices. The 5-day payment term now applies to all contract values. **15 May 2025** **PINT A-NZ becomes mandatory**\\ PINT A-NZ Billing becomes the only mandatory invoice specification. The earlier A-NZ Peppol BIS Billing 3.0 is removed from the network on 31 March 2026. **1 July 2026** **eInvoicing default: 30% target**\\ NCEs aim to receive 30% of all their invoices through eInvoicing. **December 2026** **eInvoicing default: automation**\\ NCEs enable automated processing and sending of e-invoices. > [!NOTE] > > For inquiries about Australia, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Australia's regulation → # Belgium's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/belgium Key dates and milestones for Belgium's phased e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Belgium](/compliance/belgium) > > ← Back to main article ## Timeline Current and upcoming regulation for Belgium. **Now** **E-invoicing and e-reporting systems enforced to date**\\ From January 1st 2026, all invoices must be delivered in the `EN 16931` electronic format. Even though legislation doesn't mention Peppol, in practice it's the only compliant network in Belgium. Businesses supplying the public sector are already required to issue EN 16931 electronic invoices when the contract meets the criteria. | System | Description | Invopop Coverage | | - | - | - | | [Peppol](/compliance/belgium) | Peppol is a standardized European network that enables the secure exchange of electronic business documents—such as invoices—between organizations using interoperable formats and certified access points. For B2G transactions in Belgium, invoices are routed through Mercurium transparently. | Yes | > [card] [Peppol](/apps/peppol) > > Get covered → **1 Jan 2028** **E-reporting roll-out**\\ Belgium plans to complement the e-invoicing mandate with an electronic reporting (e-reporting) regime enabling near-live data transmission. **Future (tbd)** **VAT in the Digital Age (ViDA)**\\ Belgium may extend real-time e-reporting or e-invoicing to all domestic and cross-border sales as part of the EU **VAT in the Digital Age (ViDA)** initiative. # Brazil's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/brazil Key dates and milestones for Brazil's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Brazil](/compliance/brazil) > > ← Back to main article ## Timeline Current and upcoming regulation for Brazil. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Brazil regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [Documentos Fiscais Eletrônicos](/apps/documentos-fiscais-electronicos-brazil) | Brazil's mandatory electronic invoicing system | Yes (NF-e, NFS-e, NFC-e) | | SPED | Brazil's mandatory e-reporting system | No | > [card] [Documentos Fiscais Eletrônicos](/apps/documentos-fiscais-electronicos-brazil) > > Get covered → # Chile's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/chile Key dates and milestones for Chile's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Chile](/compliance/chile) > > ← Back to main article ## Timeline Documentation for Chile's e-invoicing regulation timeline is in active development. > [!NOTE] > > For inquiries about Chile, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Chile's regulation → # Colombia's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/colombia Key dates and milestones for Colombia's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Colombia](/compliance/colombia) > > ← Back to main article ## Timeline Current and upcoming regulation for Colombia. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Colombia regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [FEV](/compliance/colombia) | Colombia's mandatory electronic invoicing system, used to record, validate, and report all taxable transactions to the DIAN in real time. | Yes | > [card] [Colombia](/apps/colombia) > > Get covered → # Croatia's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/croatia Key dates and milestones for Croatia's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Croatia](/compliance/croatia) > > ← Back to main article ## Timeline Current and upcoming regulation for Croatia. **Now** **Systems in force today**\\ Croatia's **Fiskalizacija 2.0 (eRačun)** is live since 1 January 2026. VAT-registered businesses established in Croatia exchange structured e-invoices over the national 4-corner network and report each invoice to the tax authority. Public bodies receive e-invoices through FINA's central platform. Croatian suppliers reach it over the national network, and foreign suppliers reach it over Peppol. Consumer sales stay on the older receipt system. | System | Description | Invopop coverage | | - | - | - | | [Fiskalizacija 2.0 (eRačun)](/compliance/croatia) | B2B and B2G e-invoicing over the national 4-corner network, with reporting to the tax authority | Coming soon | | [B2G over Peppol](/compliance/croatia#invoicing-public-bodies-b2g) | Invoices from foreign suppliers to Croatian public bodies, in Peppol BIS Billing 3.0 | Yes, with the [Peppol app](/apps/peppol) | | [Receipt fiscalization (B2C)](/compliance/croatia) | Real-time reporting of consumer receipts | Coming soon | **1 July 2019** **B2G e-invoicing mandatory**\\ Under the Act on e-invoicing in public procurement (NN 94/18), all suppliers must send structured e-invoices to public bodies. FINA runs the central platform that receives them, with a Peppol access point for foreign suppliers. **1 September 2025** **New Fiscalization Act in force**\\ Croatia's Fiscalization Act (NN 89/25) comes into force. It sets the rules for structured e-invoicing between businesses and for the reporting of each invoice to the tax authority. **1 January 2026** **Mandatory for VAT-registered businesses**\\ VAT-registered Croatian businesses must issue and receive domestic e-invoices and report each one to the tax authority. This reporting also applies to their invoices to public bodies. Businesses that are not VAT-registered must receive e-invoices. Consumer receipt fiscalization now applies to all payment methods. **1 January 2027** **Extended to remaining businesses**\\ Businesses and public bodies that are not VAT-registered must also issue e-invoices. They can use the free MIKROeRAČUN app from the tax authority. **\~1 July 2030** **EU-wide digital reporting (ViDA)**\\ The EU's VAT in the Digital Age initiative is expected to introduce harmonized digital reporting across member states. > [!NOTE] > > For inquiries about Croatia, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Croatia's regulation → # Denmark's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/denmark Key dates and milestones for Denmark's e-invoicing and digital bookkeeping requirements > [card] [Invoicing compliance in Denmark](/compliance/denmark) > > ← Back to main article ## Timeline Current and upcoming regulation for Denmark. **2005–2019** **B2G e-invoicing mandate established and expanded**\\ Denmark became the first country in Europe to mandate electronic invoicing to public authorities. | System | Description | Invopop Coverage | | - | - | - | | [NemHandel / OIOUBL](/compliance/denmark) | Electronic invoicing to all Danish public authorities via NemHandel, using the OIOUBL format. Mandatory since February 2005. | Yes | | [Peppol BIS Billing 3.0](/compliance/denmark) | From April 2019, all public authorities must also accept invoices compliant with the EU standard EN 16931 via Peppol. | Yes | > [card] [Peppol](/apps/peppol) > > Get covered → **Now** **Digital Bookkeeping Act — phased rollout in progress**\\ Denmark's 2022 Bookkeeping Act requires businesses to use certified digital bookkeeping systems capable of issuing and receiving structured e-invoices (Peppol BIS 3.0 and OIOUBL) and generating SAF-T files on demand. | Phase | Scope | Date | | - | - | - | | Phase 1 | Medium/large companies (classes B, C, D) using certified standard systems | 1 Jul 2024 | | Phase 2 | Same companies using custom/self-developed systems | 1 Jan 2025 | | Phase 3 | All businesses with turnover > DKK 300,000 for two consecutive years, incl. foreign entities with Danish VAT registration | 1 Jan 2026 | | Phase 4 | Remaining businesses using in-house developed systems | No earlier than 1 Jul 2026 | > [card] [Peppol](/apps/peppol) > > Get covered → **15 May 2026** **Updated OIOUBL validation rules mandatory**\\ Schematron validation rules v1.17 for OIOUBL 2.1 become mandatory for all B2G e-invoicing. This follows the January 2026 cancellation of OIOUBL 3.0, with Denmark now converging on a single Peppol-aligned standard. **≈ 2028** **Domestic e-reporting obligation (estimate)**\\ Denmark is expected to introduce a domestic digital reporting requirement for B2B transactions, potentially replacing the annual VAT client listing. The Bookkeeping Act already authorizes the government to establish a common public data reception for e-documents, laying the groundwork for a future continuous transaction control (CTC) model. **Future (tbd)** **Single unified Peppol-aligned format**\\ Following the cancellation of OIOUBL 3.0 in January 2026, Erhvervsstyrelsen is developing a single unified standard to replace the current dual-format landscape (OIOUBL 2.1 + Peppol BIS 3.0). This is likely to be based on Peppol PINT or a Danish National CIUS of EN 16931. Details and timelines will be published once the technical specification is finalized. **1 Jul 2030** **VAT in the Digital Age (ViDA) — cross-border e-invoicing**\\ The EU ViDA Directive (adopted March 2025) requires mandatory e-invoicing and digital reporting for all intra-EU B2B transactions. Denmark, as an EU member state, must comply by this date. This is expected to accelerate the introduction of a domestic B2B e-invoicing transmission mandate ahead of the deadline. # Finland's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/finland Key dates and milestones for Finland's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Finland](/compliance/finland) > > ← Back to main article ## Timeline Current and upcoming regulation for Finland. **Now** **E-invoicing systems enforced to date**\\ Under Act 241/2019, public contracting entities must receive e-invoices: central government since 1 April 2019, and all other contracting entities since 1 April 2020. Since 1 April 2021, the state receives only invoices that follow EN 16931. Since 1 April 2020, public buyers and businesses with a turnover above EUR 10,000 can ask each other for e-invoices. Most invoices travel on the domestic operator network as Finvoice or TEAPPSXML. Peppol is the second network, with the State Treasury (Valtiokonttori) as Peppol Authority. | System | Description | Invopop Coverage | | - | - | - | | [Domestic operator network](/compliance/finland#domestic-operator-network-finvoice-and-teappsxml) | B2B and B2G e-invoices between operators and banks, as Finvoice or TEAPPSXML | Yes | | [Peppol](/compliance/finland#peppol-network) | B2G and B2B e-invoices on Peppol BIS Billing 3.0 | Yes | > [card] [Finland](/apps/finland) > > Get covered on the domestic network → > [card] [Peppol](/apps/peppol) > > Get covered on Peppol → **1 July 2030** **ViDA digital reporting for intra-EU supplies**\\ The EU's VAT in the Digital Age (ViDA) directive brings digital reporting requirements for intra-EU supplies in all member states, Finland included. **2026** **State Treasury consultation on a wider e-invoicing obligation**\\ From 2 February to 13 March 2026, the State Treasury consulted on options for e-invoices, from a general obligation to no change. In May 2026 it sent the results to the ministries. No bill exists yet. **1 January 2026** **Reduced VAT rate falls to 13.5%**\\ The reduced VAT rate changes from 14% to 13.5%. **31 December 2024** **Only the 0216 Peppol scheme stays for Finland**\\ Peppol removes the older Finnish identifier schemes 0037, 0212, 0213 and 0215. Finnish organisations use their OVT code with the scheme 0216. **1 September 2024** **General VAT rate rises to 25.5%**\\ The general VAT rate changes from 24% to 25.5%. **1 April 2024** **Peppol ordering for central government**\\ Central government starts to use Peppol orders and order responses with its suppliers. **2022** **Valtiokonttori becomes the national Peppol Authority**\\ The Finnish State Treasury joins OpenPeppol in July 2022 and sets up its Peppol Authority function in autumn 2022. It supervises Peppol service providers that serve Finnish organisations. **6 April 2021** **Operators validate against EN 16931**\\ E-invoice operators start to validate invoices against the European standard. They reject an invoice that fails, and the sender gets an error message. **1 April 2021** **EN 16931 only for the state**\\ The state receives only invoices that follow EN 16931. The State Treasury moved this date from 2020 because of COVID-19. **1 April 2020** **All contracting entities receive e-invoices, and the right to request starts**\\ All Finnish contracting entities must receive e-invoices. Public buyers and businesses with a turnover above EUR 10,000 can ask each other for e-invoices. **1 April 2019** **Act 241/2019 takes effect**\\ The Act on Electronic Invoicing by Contracting Entities and Traders takes effect. Central government must receive and process e-invoices. > [!NOTE] > > For inquiries about Finland, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Finland's regulation → # France's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/france Key dates and milestones for France's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in France](/compliance/france) > > ← Back to main article ## Timeline Current and upcoming regulation for France. **2025** **Voluntary pilot phase**\\ Businesses can voluntarily participate in the pilot phase to test B2B e-invoicing systems before the mandatory rollout begins. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in France regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [Chorus Pro](/compliance/france) | All suppliers invoicing French public entities must submit electronic invoices through Chorus Pro, a mandatory service provided by the French government | Yes | | [Peppol](/compliance/france) | B2G e-invoicing through the Peppol network for businesses invoicing public authorities | Yes | > [card] [Chorus Pro France](/apps/choruspro-france) > > Get covered → > [card] [Peppol](/apps/peppol) > > Get covered → **1 Sept 2026** **B2B e-invoicing and e-reporting for large and medium-sized companies**\\ All businesses must be able to receive e-invoices. Large and medium-sized companies (more than 250 employees and exceeding either €50 million in turnover or €43 million in balance sheet) must issue e-invoices. E-reporting of issued transactions (B2C sales and cross-border B2B) becomes mandatory for these companies. > [!NOTE] > > Non-established taxable persons are exempt from this e-reporting obligation until 1 September 2027. | System | Description | Invopop Coverage | | - | - | - | | [PPF (Portail Public de Facturation)](/compliance/france) | The French PA system relies on the Peppol network infrastructure with additional French-specific requirements, creating a "five corner model" for e-invoicing compliance | Available — see [PA guide](/guides/fr-pa) | **1 Sept 2027** **B2B e-invoicing and e-reporting for all businesses**\\ All remaining businesses (small and micro-businesses) must issue e-invoices. E-reporting of issued transactions (B2C sales and cross-border B2B) becomes mandatory for all businesses. **1 Sept 2027** **E-reporting of acquisitions for non-established taxable persons**\\ Non-established taxable persons must start e-reporting of acquisitions, regardless of the size of the business. This obligation is postponed from 1 September 2026 so that it applies to all non-established taxable persons on the same date. # Germany's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/germany Key dates and milestones for Germany's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Germany](/compliance/germany) > > ← Back to main article ## Timeline Current and upcoming regulation for Germany. **Now** **E-invoicing systems enforced to date**\\ B2G invoices require sending through the Peppol network in the XRechnung format. In B2B, all German businesses must be able to receive e‑invoices in a structured format complying with the European standard EN 16931. Until the end of 2026, any business can still issue paper invoices, and PDF invoices if the customer agrees. **1 Jan 2027** **B2B e-invoicing for medium and large businesses**\\ Businesses with prior-year turnover above €800,000 must issue e‑invoices in the structured format (i.e., move away from paper or unsecured electronic formats). Businesses at or below €800,000 can keep issuing paper or PDF invoices during 2027. **1 Jan 2028** **B2B e-invoicing for all businesses**\\ The requirement to issue structured e‑invoices extends to all businesses for domestic B2B transactions, regardless of turnover. Small-amount invoices of €250 or less (VAT included), passenger transport tickets, and tax-exempt supplies under § 4 Nr. 8 to 29 UStG remain exempt. # Greece's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/greece Key dates and milestones for Greece's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Greece](/compliance/greece) > > ← Back to main article ## Timeline Current and upcoming regulation for Greece. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Greece regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [EN 16931](/compliance/greece) | All public sector entities are required to receive and process structured eInvoices compliant with the European standard EN 16931 | Yes | | [myDATA reporting](/compliance/greece) | From Jan 1, 2024, all companies must declare their sales invoices (Accounts Receivable) in real-time to the myDATA platform | Yes | > [card] [ILYDA Greece](/apps/ilyda-greece) > > Get covered → **1 Feb 2026** **B2B invoicing for large companies**\\ Companies with revenues exceeding €1 million in the 2023 fiscal year in Greece will be required to issue electronic invoices for the sale of goods and provision of services within the country, as well as for transactions with companies from third countries (outside the European Union) **1 Oct 2026** **B2B invoicing for all companies**\\ Greece's B2B invoicing mandate phases in smaller companies' obligations by October 2026. **Future (tbd)** **VAT in the Digital Age (ViDA)**\\ Greece has expressed strong interest in extending real-time e-reporting or e-invoicing to all domestic and cross-border sales as part of the EU VAT in the Digital Age (ViDA) initiative. # Hungary's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/hungary Key dates and milestones for Hungary's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Hungary](/compliance/hungary) > > ← Back to main article ## Timeline Documentation for Hungary's e-invoicing regulation timeline is in active development. > [!NOTE] > > For inquiries about Hungary, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Hungary's regulation → # Italy's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/italy Key dates and milestones for Italy's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Italy](/compliance/italy) > > ← Back to main article ## Timeline Current and upcoming regulation for Italy. **Now** **E-invoicing and e-reporting systems enforced to date**\\ * Business-to-Government (B2G): All suppliers to public authorities must send electronic invoices. This has been in place since 2014-2015 and is enforced through the Sistema di Interscambio (SDI) platform. * Business-to-Business (B2B): Since 1 January 2019, all VAT-registered businesses must issue eInvoices via SDI. * Business-to-Consumer (B2C): Also mandatory from 2019 for transactions with consumers. | System | Description | Invopop Coverage | | - | - | - | | [SDI](/apps/italy) | Italy's mandatory electronic invoicing system | [Italy](/apps/italy) (B2B, B2G) [Smart Receipts](/apps/smart-receipts-italy) (B2C) | > [card] [Italy](/apps/italy) > > Get covered → > [card] [Smart Receipts Italy](/apps/smart-receipts-italy) > > Get covered → **1 Jan 2028** **EU derogation ends**\\ Italy's derogation from the EU VAT Directive expires; the SDI regime is expected to be adapted to align with the EU's ViDA requirements. # Malaysia's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/malaysia Key dates and milestones for Malaysia's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Malaysia](/compliance/malaysia) > > ← Back to main article ## Timeline Current and upcoming regulation for Malaysia. **Now** **MyInvois in force for all phases**\\ All four phases of the MyInvois mandate are in force. Taxpayers with annual turnover below RM3 million are exempt. Suppliers submit each e-invoice to MyInvois for validation and then share it with the buyer. Phase 4 businesses have a relaxation period until 31 December 2027. | System | Description | Invopop coverage | | - | - | - | | [MyInvois](/compliance/malaysia) | Real-time clearance of B2B, B2G and B2C e-invoices by LHDN | Coming soon | | [Peppol PINT-MY](/compliance/malaysia) | Optional delivery channel through MDEC-accredited providers | Not available | **1 August 2024** **Phase 1**\\ MyInvois becomes mandatory for taxpayers with annual turnover above RM100 million. **1 January 2025** **Phase 2**\\ MyInvois becomes mandatory for taxpayers with annual turnover above RM25 million, up to RM100 million. **1 July 2025** **Phase 3 and wider SST scope**\\ MyInvois becomes mandatory for taxpayers with annual turnover above RM5 million, up to RM25 million. On the same day, the scope of Sales Tax and Service Tax becomes wider. **1 January 2026** **Phase 4 and new consolidation limits**\\ MyInvois becomes mandatory for taxpayers with annual turnover up to RM5 million, above the RM3 million exemption floor. Consolidated e-invoices are no longer allowed for a single transaction above RM10,000, in all industries. **1 July 2026** **New businesses**\\ Businesses that started between 2023 and 2025 with turnover of at least RM3 million, and all businesses that start from 2026, must comply. **1 August 2026** **TIN and BRN validation**\\ MyInvois starts to validate the tax identification number (TIN) and the business registration number (BRN) of the parties. **31 December 2027** **End of the Phase 4 relaxation period**\\ The relaxation period for Phase 4 businesses ends. After this date, they must follow all e-invoice rules, including the limits on consolidated e-invoices. > [!NOTE] > > For inquiries about Malaysia, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Malaysia's regulation → # Mexico's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/mexico Key dates and milestones for Mexico's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Mexico](/compliance/mexico) > > ← Back to main article ## Timeline Current and upcoming regulation for Mexico. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Mexico regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [CFDI](/compliance/mexico) | Mexico’s mandatory electronic invoicing system, used to record, validate, and report all taxable transactions to the SAT in real time. | Yes | > [card] [SAT Mexico](/apps/sat-mexico) > > Get covered → # New Zealand's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/new-zealand Key dates and milestones for New Zealand's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in New Zealand](/compliance/new-zealand) > > ← Back to main article ## Timeline Documentation for New Zealand's e-invoicing regulation timeline is in active development. > [!NOTE] > > For inquiries about New Zealand, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about New Zealand's regulation → # Norway's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/norway Key dates and milestones for Norway's e-invoicing, SAF-T, and VAT reporting requirements > [card] [Invoicing compliance in Norway](/compliance/norway) > > ← Back to main article ## Timeline Current and upcoming regulation for Norway. **Now** **Current mandatory requirements in force**\\ Norway currently enforces mandatory B2G e-invoicing through Peppol, SAF-T Financial v1.30 for bookkeeping-obligated businesses with electronic accounting data, and digital VAT return filing through *mva-meldingen*. | System | Description | Invopop Coverage | | - | - | - | | [Peppol BIS Billing 3.0](/compliance/norway) | Mandatory for all suppliers to the public sector | Yes | | [SAF-T Financial](/compliance/norway) v1.30 | Mandatory audit file format for bookkeeping-obligated businesses with electronic accounting data | No | | [mva-meldingen](/compliance/norway) | Mandatory digital VAT return via Altinn, aligned with SAF-T tax codes | No | > [card] [Peppol](/apps/peppol) > > Get covered → **1 Jan 2028** **Mandatory B2B e-invoice sending (proposed)**\\ The Norwegian Ministry of Finance has proposed that all businesses with bookkeeping obligations must send e-invoices in Peppol BIS Billing 3.0 format to recipients registered in ELMA. Consultation closed 31 October 2025 — final legislative decision pending. > [!NOTE] > > This date is proposed, not yet confirmed in law. **1 Jan 2030** **Mandatory B2B e-invoice receiving and digital bookkeeping (proposed)**\\ All businesses with bookkeeping obligations would also be required to receive e-invoices and maintain digital bookkeeping systems. This aligns with the EU's ViDA cross-border deadline, reflecting Norway's deliberate alignment with European norms despite not being an EU member state. > [!NOTE] > > This date is proposed, not yet confirmed in law. **Future (tbd)** **VAT in the Digital Age (ViDA)**\\ Norway is not directly bound by the EU's **VAT in the Digital Age (ViDA)** initiative (formally adopted 11 March 2025), but as an EEA member the directive is likely to be deemed EEA-relevant and incorporated via Joint Committee decision. Norway's proposed B2B mandate timeline is explicitly designed to align with ViDA's 2030 cross-border deadline. # Perú's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/peru Key dates and milestones for Perú's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Perú](/compliance/peru) > > ← Back to main article ## Timeline Documentation for Perú's e-invoicing regulation timeline is in active development. > [!NOTE] > > For inquiries about Perú, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Perú's regulation → # Poland's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/poland Key dates and milestones for Poland's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Poland](/compliance/poland) > > ← Back to main article ## Timeline Current and upcoming regulation for Poland. **Now** **E-invoicing systems enforced to date**\ Existing systems enforced in Poland regarding e-invoicing and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [PEF](/compliance/poland) | XML-based format for B2G invoices used on the government's PEF platform | Yes | | [KSeF](/compliance/poland) | Mandatory e-invoicing for B2B transactions | Yes | > [card] [KSeF 2.0](/apps/poland) > > Get covered → > [card] [PEF](/apps/poland) > > Get covered → **1 Feb 2026** **KSeF enforced for B2B companies** * All companies with a **NIP** code (a Polish tax identification number) are required to *receive* e-invoices. * Large companies with annual sales exceeding PLN 200 million (\~€47 million) in 2024 are required to issue e-invoices. | System | Description | Invopop Coverage | | - | - | - | | [Poland](/compliance/poland) | XML-based format for B2B invoices used on the government's KSeF platform. | Yes | **1 Apr 2026** **KSeF enforced for all other taxable companies**\ The majority of tax paying companies are required to issue e-invoices via KSeF. **1 Jan 2027** **KSeF enforced for Micro entrepreneurs**\ Micro entrepreneurs with individual invoices under PLN 450 (~~€105) and monthly sales under PLN 10,000 (~~€2,350) are required to issue e-invoices. **1 Jan 2027** **KSeF enforced for cash register receipts**\ Cash register receipts up to PLN 10,000 (\~€2,350) per month can be issued outside of KSeF until 31 Dec 2026. In the new year, receipts will need to be reported through KSeF to be compliant. # Portugal's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/portugal Key dates and milestones for Portugal's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Portugal](/compliance/portugal) > > ← Back to main article ## Timeline Current and upcoming regulation for Portugal. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Portugal regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | QR/ATCUD | Invoices are required to have an ATCUD and QR Code | Yes | | SAF-T | E-reporting required either in real-time or via SAF-T reports | Yes | | CIUS-PT | B2G XML invoice format | No | > [card] [AT Portugal](/apps/at-portugal) > > Get covered → **1 Jan 2027** **Qualified Electronic Signature**\\ Companies in Portugal that issue PDF invoices will be required to include a Qualified Electronic Signature (QES) that confirms the authenticity and integrity of the document. **Future (tbd)** **VAT in the Digital Age (ViDA)**\\ Portugal may extend real-time e-reporting or e-invoicing to all domestic and cross-border sales as part of the EU VAT in the Digital Age (ViDA) initiative. # Romania's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/romania Key dates and milestones for Romania's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Romania](/compliance/romania) > > ← Back to main article ## Timeline Current and upcoming regulation for Romania. **2021 – 2026** **How RO e-Factura became mandatory**\\ OUG 120/2021 created RO e-Factura in November 2021. The obligation then came in phases: * **1 July 2022**: B2G e-invoicing becomes mandatory (Law 139/2022). * **1 January 2024**: suppliers report domestic B2B invoices. Full B2B clearance follows on **1 July 2024** (Law 296/2023 and OUG 115/2023). * **1 January 2025**: suppliers report invoices to consumers, with penalties from 1 July 2025 (OUG 69/2024 and OUG 138/2024). * **1 January 2026**: the deadline to send an invoice becomes 5 working days from issue, and invoices to buyers that are registered for VAT in Romania but not established there come into scope (OUG 89/2025). * **1 June 2026**: individuals who work under their personal ID number (CNP) and farmers under the special regime become optional users (Law 88/2026). **Now** **RO e-Factura in force for all domestic invoices**\\ In-scope taxable persons established in Romania send every domestic invoice to RO e-Factura within 5 working days of issue. The platform validates and seals B2B and B2G invoices and delivers them to the buyer in SPV. Suppliers report their invoices to consumers to the platform. Individuals who work under their CNP and farmers under the special regime can use it voluntarily. The standard VAT rate is 21% and the reduced rate is 11%. | System | Description | Invopop coverage | | - | - | - | | [RO e-Factura](/compliance/romania) | National clearance platform for B2B and B2G invoices, and reporting of B2C invoices | Coming soon | **1 November 2026** **QR codes on fiscal receipts**\\ The suspension of penalties for fiscal receipts without a QR code, last extended by OUG 68/2025, ends. Fines range from RON 2,000 to 4,000 (OUG 69/2024). Fiscal receipts that meet the conditions of a simplified invoice stay out of RO e-Factura. The technical rules for the QR code are not yet published, and the date may be postponed again. **1 July 2030** **EU digital reporting (ViDA)**\\ The EU's VAT in the Digital Age package (Directive 2025/516) makes e-invoicing and digital reporting mandatory for intra-EU B2B transactions. Intra-Community supplies, which are out of scope of RO e-Factura today, come into scope at EU level. **1 January 2035** **Domestic system aligned with EU standards (ViDA)**\\ Member States with e-invoicing systems in place before 2024 have until this date to align them with the EU model, which is based on the European standard EN 16931. RO e-Factura already uses CIUS-RO, the Romanian profile of EN 16931, so the extent of any changes is not yet clear. > [!NOTE] > > For inquiries about Romania, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Romania's regulation → # Saudi Arabia's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/saudi-arabia Key dates and milestones for Saudi Arabia's phased e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Saudi Arabia](/compliance/saudi-arabia) > > ← Back to main article ## Timeline Current and upcoming regulation for Saudi Arabia. **Now** **Phase 2 — Integration phase begins**\\ Phase 2 introduces a continuous transaction control model and is rolled out in turnover-based waves. All in-scope taxpayers must integrate their e-invoicing solutions with ZATCA's Fatoora platform and produce UBL 2.1 invoices aligned with EN 16931, signed with a ZATCA-issued Cryptographic Stamp Identifier (CSID) using a XAdES digital signature, with a UUID, hash chain and TLV-encoded base64 QR code. Two flows apply: | Flow | Applies to | Mechanism | | - | - | - | | [Clearance](/compliance/saudi-arabia) | B2B and B2G standard tax invoices | The invoice is submitted to Fatoora and cryptographically stamped by ZATCA *before* being issued to the buyer. Without clearance, the invoice is not valid. | | [Reporting](/compliance/saudi-arabia) | B2C simplified tax invoices | The invoice is issued to the customer at point of sale with its QR code and reported to Fatoora within 24 hours. | Wave 1 covered taxpayers with turnover above SAR 3 billion in 2021. Subsequent waves have progressively lowered the threshold, with ZATCA notifying each wave at least six months before its integration deadline. **30 Jun 2026** **Wave 24 — SME threshold**\\ Taxpayers with VAT-taxable turnover exceeding SAR 375,000 in 2022, 2023 or 2024 must integrate their e-invoicing systems with the Fatoora platform by 30 June 2026. This is the first wave to drop the threshold below SAR 750,000 and brings a large share of the Saudi SME population into Phase 2. Further waves are expected to be announced as ZATCA progressively extends the mandate to smaller taxpayers. # Singapore's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/singapore Key dates and milestones for Singapore's InvoiceNow e-invoicing and GST reporting requirements > [card] [Invoicing compliance in Singapore](/compliance/singapore) > > ← Back to main article ## Timeline Current and upcoming regulation for Singapore. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Singapore regarding e-invoicing and e-reporting. | System | Description | Invopop Coverage | | - | - | - | | [GST InvoiceNow Requirement](/compliance/singapore) | Peppol-based e-invoicing and near real-time reporting to IRAS. Mandatory for newly incorporated companies that voluntarily register for GST. | Coming soon | | [GST F5 Reporting](/compliance/singapore) | Quarterly aggregate GST return filed via IRAS myTax Portal. Mandatory for all GST-registered businesses. | Coming soon | **1 Apr 2026** **GST InvoiceNow Requirement extended to all new voluntary GST registrants**\\ All businesses that voluntarily register for GST from this date must comply with the GST InvoiceNow Requirement, regardless of business type or incorporation date. | System | Description | Invopop Coverage | | - | - | - | | [GST InvoiceNow Requirement](/compliance/singapore) | Mandatory for all new voluntary GST registrants. | Coming soon | **Future (tbd)** **GST InvoiceNow Requirement extended to all GST-registered businesses**\\ IRAS has confirmed the mandate will extend to new compulsory GST registrants and eventually all existing GST-registered businesses in subsequent phases. Specific dates have not yet been published. # Slovakia's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/slovakia Key dates and milestones for Slovakia's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Slovakia](/compliance/slovakia) > > ← Back to main article ## Timeline Current and upcoming regulation for Slovakia. **Now** **Voluntary transition period**\\ Throughout 2026, businesses can voluntarily send e-invoices through a digital postman, if their buyer also has one. The Financial Administration continues to certify digital postmen and publishes the list on its portal. E-invoicing and reporting become mandatory for domestic B2B and B2G transactions on 1 January 2027. | System | Description | Invopop coverage | | - | - | - | | [eFaktúra](/compliance/slovakia) | Domestic e-invoicing over Peppol. Digital postmen report every invoice to the Financial Administration | Work in progress | **Q4 2025** **E-invoicing law approved**\\ Act 385/2025 amends the VAT Act to introduce mandatory structured e-invoicing and reporting of invoice data to the Financial Administration. **1 January 2026** **Transition period starts**\\ The law enters into force. Businesses can start exchanging e-invoices voluntarily through certified digital postmen. **1 January 2027** **Mandatory domestic e-invoicing**\\ VAT payers established in Slovakia must issue e-invoices for domestic B2B and B2G supplies, and every business must be able to receive them. The supplier's and the buyer's digital postmen both report each invoice to the Financial Administration. **1 July 2030** **Cross-border transactions and end of the control statement**\\ The mandate extends to cross-border transactions, in line with the EU's VAT in the Digital Age (ViDA) initiative. The periodic VAT control statement and the summary statement end. Companies registered for VAT in Slovakia but not established there come into scope. > [!NOTE] > > For inquiries about Slovakia, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about Slovakia's regulation → # Spain's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/spain Key dates and milestones for Spain's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in Spain](/compliance/spain) > > ← Back to main article ## Timeline Current and upcoming regulation for Spain. **Now** **E-invoicing and e-reporting systems enforced to date**\\ Existing systems enforced in Spain regarding e-invoicing, e-reporting and fiscalization. | System | Description | Invopop Coverage | | - | - | - | | [Facturae](/compliance/spain) via FACe | XML-based format for B2G invoices used on the government's FACe platform | Yes | | [SII](/compliance/spain) | Near real-time reporting for B2B companies above €6M annual turnover | Yes | | [TicketBAI](/compliance/spain) | The Basque Country's B2B invoicing and anti-fraud system | Yes | > [card] [Facturae Spain](/apps/facturae-spain) > > Get covered → > [card] [TicketBAI](/apps/spain) > > Get covered → **Apr 2026** **Real Decreto 238/2026 enters into force**\\ Spain's regulation developing the mandatory B2B e-invoicing system between businesses and professionals (Ley Crea y Crece) was published in the BOE on 31 March 2026 and entered into force on 20 April 2026. Its third final provision ties the effective dates to the entry into force of the Orden Ministerial regulating the Solución Pública. **6 Oct 2026** **Orden HAC/1028/2026 enters into force**\\ The Orden HAC/1028/2026, of 2 October, regulating the Solución Pública de Facturación Electrónica entered into force on 6 October 2026. Under the third final provision of Real Decreto 238/2026, this is the date from which the 12-, 24- and 36-month Crea y Crece deadlines below are counted. **5 Oct 2026** **AEAT announces VERI\*FACTU postponement to October 2028**\\ The AEAT published an informative note announcing that the pending obligations of Real Decreto 1007/2023 (VERI\*FACTU) will be postponed to October 2028, so that they coincide with the Crea y Crece e-invoicing mandate for businesses and professionals with annual turnover of €8M or less. The former deadlines of 1 January 2027 (companies) and 1 July 2027 (self-employed) no longer apply once the amendment is approved. A follow-up amendment will converge the scope and technical aspects of both regulations with ViDA in mind, while keeping the integrity, conservation, traceability and unalterability requirements substantially equivalent. **6 Oct 2027** **Crea y Crece B2B for large companies**\\ Companies and professionals whose VAT turnover exceeded €8M in the previous calendar year must issue and receive structured electronic invoices and report invoice and payment states through the new "sistema español de factura electrónica" — either via private interoperable platforms or via the AEAT's free Solución Pública. During the first 12 months, their e-invoices must be accompanied by a PDF that guarantees legibility for other businesses. The specific obligations of private exchange platforms under RD 238/2026 also apply from this date. This is not related to VERI\*FACTU. | System | Description | Invopop Coverage | | - | - | - | | Solución Pública / Plataformas privadas | EN 16931–compliant exchange (Facturae, UBL/Peppol BIS, CII, EDIFACT). Private platforms must send a UBL "copia fiel" to the AEAT Solución Pública at issuance. | TBD | **Oct 2028** **VERI\*FACTU enforced for companies and self-employed autónomos**\\ Companies and other taxpayers not covered by SII or TicketBAI must use certified invoicing systems to issue and report invoices to AEAT under the VERI\*FACTU framework. Postponed from 1 January / 1 July 2027 by the AEAT announcement of 5 October 2026, to coincide with the 6 October 2028 Crea y Crece phase below. | System | Description | Invopop Coverage | | - | - | - | | [VERI\*FACTU](/compliance/spain) | Certified invoicing software with digitally signed invoices and reporting to the AEAT | Yes | > [card] [VERI\*FACTU Spain](/apps/verifactu-spain) > > Get coverage → **6 Oct 2028** **Crea y Crece B2B for all remaining businesses**\\ All other businesses and professionals must issue and receive electronic invoices. From the same date, legal entities and other organisations must also report invoice and payment states. **6 Oct 2029** **Crea y Crece invoice-state reporting for individuals**\\ Self-employed individuals (personas físicas) and entities under the income attribution regime (atribución de rentas) must start reporting invoice and payment states, 36 months after the Orden Ministerial. **≈ 2028** **NaTicket roll-out (estimate)**\\ Without any deadlines, Navarra's tax agency announced in September 2025 the implementation of NaTicket for their territory. It will be analogous to TicketBAI and VERI\*FACTU. **Future (tbd)** **VAT in the Digital Age (ViDA)**\\ Spain may extend real-time e-reporting or e-invoicing to all domestic and cross-border sales as part of the EU **VAT in the Digital Age (ViDA)** initiative. # UAE's e-invoicing regulation timeline Source: https://docs.invopop.com/timelines/uae Key dates and milestones for UAE's e-invoicing and e-reporting requirements > [card] [Invoicing compliance in UAE](/compliance/uae) > > ← Back to main article ## Timeline Current and upcoming regulation for the UAE. **Now** **Pilot and voluntary phase**\\ The UAE **Electronic Invoicing System** is open for voluntary use since 1 July 2026. Accredited Service Providers (ASPs) exchange PINT AE invoices over Peppol and report each one to the Federal Tax Authority. Mandatory use starts on 1 January 2027 for businesses with revenue of AED 50 million or more. These businesses must appoint an ASP by 30 October 2026. | System | Description | Invopop coverage | | - | - | - | | [Electronic Invoicing System](/compliance/uae) | B2B and B2G e-invoicing in PINT AE through ASPs, with reporting to the Federal Tax Authority | Planned | **March 2025** **Rules for service providers**\\ Ministerial Decision No. 64 of 2025 sets the rules to become an Accredited Service Provider (ASP). Only an ASP can exchange and report e-invoices in the UAE. **September 2025** **Scope and phases published**\\ The Ministry of Finance publishes Ministerial Decision No. 243 of 2025 on the Electronic Invoicing System and Ministerial Decision No. 244 of 2025 on its phases. **December 2025** **Penalties set**\\ Cabinet Decision No. 106 of 2025 sets the penalties. For example, a business with no ASP by its deadline pays AED 5,000 for each month of delay. **May 2026** **ASP deadline extended**\\ Ministerial Decision No. 66 of 2026 moves the ASP deadline for businesses with revenue of AED 50 million or more from 31 July 2026 to 30 October 2026. The go-live date of 1 January 2027 does not change. The Ministry of Finance says that no further extensions will be granted. **1 July 2026** **Pilot and voluntary use start**\\ A pilot group of taxpayers that the Ministry of Finance invites starts to use the system. Any other business can also start voluntarily. Voluntary users follow all technical rules but get no e-invoicing penalties. **30 October 2026** **ASP deadline for large businesses**\\ Businesses with revenue of AED 50 million or more must appoint an Accredited Service Provider. **1 January 2027** **Mandatory for large businesses**\\ Businesses with revenue of AED 50 million or more must issue, receive and report e-invoices. Transactions between members of the same VAT group get a 24-month grace period from this date. **31 March 2027** **ASP deadline for other businesses and government entities**\\ Businesses with revenue below AED 50 million and government entities must appoint an Accredited Service Provider. **1 July 2027** **Mandatory for other businesses**\\ Businesses with revenue below AED 50 million must issue, receive and report e-invoices. **1 October 2027** **Mandatory for government entities**\\ Government entities must issue, receive and report e-invoices. **1 January 2029** **End of the VAT group grace period**\\ E-invoicing applies in full to transactions between members of the same VAT group. > [!NOTE] > > For inquiries about the UAE, contact us at [support@invopop.com](mailto:support@invopop.com). *** > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about UAE's regulation → # Set up your account for multiple countries Source: https://docs.invopop.com/workspace/multi-country How to organize your workspaces for multiple countries ## Introduction [GOBL](https://gobl.org) (Go Business Language) normalizes data across different tax regimes, making it easier to work with invoices and documents from multiple countries. However, organizing your workspaces effectively is key to managing complexity and maintaining compliance. A [regime](/api-ref/glossary#regime) represents the tax jurisdiction where a company is fiscally registered—typically a country, though it can also be a state or region. The regime determines which rules apply to your documents and which providers and tasks are available. ## One workspace per regime Use one workspace per regime unless you have a specific need to issue invoices for different regimes from a single workspace. There is no limit or extra charge for creating additional workspaces. This approach helps you manage the complexity of supporting each regime effectively. ### Benefits of separate workspaces Separating workspaces by regime provides several advantages: **Simplified app management** Enable only the apps required to support each specific regime. For example, a Portuguese workspace might use the [AT Portugal](/apps/at-portugal) app, while an Italian workspace uses the [SDI Italy](/apps/sdi-italy) app. This keeps your configuration focused and reduces unnecessary complexity. **Easier workflow configuration** Configure workflow steps directly without managing conditions that depend on the regime. Each workspace can have straightforward, regime-specific workflows that are easier to understand, test, and maintain. **Independent settings and series** Each workspace can have its own invoice series, settings, and compliance boundaries. This is particularly useful in strict regulatory environments where you need clear separation between different jurisdictions. **Better data organization** Keep your console clean with suppliers and invoices from only one country per workspace. This makes it easier to: * Test and debug issues specific to a regime * Aggregate regime-specific data for reporting * Maintain clear boundaries between different compliance requirements > [!TIP] > > Separate workspaces help you maintain clear boundaries between different tax regimes, making compliance and auditing simpler. ## When to use multiple regimes in a single workspace While one workspace per regime is the recommended approach, there are specific scenarios where using multiple regimes in a single workspace makes sense. **Legacy integration constraints** Some clients, especially those migrating from existing integrations that provide little control over data routing, may require sending everything to a single workspace. In these cases, setting up your workspace to handle multiple regimes is necessary. **Peppol network operations** Clients who want to onboard [Peppol](/apps/peppol) issuers from multiple countries might prefer a single workspace. Since Peppol is a global network that supports multiple countries, managing all Peppol participants in one workspace can simplify operations. > [!WARNING] > > When using multiple regimes in a single workspace, you'll need to add conditional logic to your workflows to handle regime-specific requirements. This increases complexity compared to using separate workspaces. ## Considerations Before setting up multiple workspaces, consider the following operational aspects. ### API key management Each workspace has its own [API keys](/console/api-keys). If you use multiple workspaces, you'll need to manage one API key per workspace in your application. This means: * Storing and managing multiple authentication tokens * Routing API requests to the correct workspace based on the regime * Implementing logic to select the appropriate API key for each request ### User access We currently manage user access at the organization level, not at the workspace level. This means users with access to your organization can access all workspaces within that organization. We are planning to implement workspace-level access control in the future. This will help you divide operations more effectively, as finance team members rarely need access to all countries simultaneously. > [!TIP] > > For now, if you need to restrict access to specific workspaces, consider creating separate organizations for different business units or regions. ## Country-specific resources > [accordion] 🇧🇪 Invopop resources for Belgium > > | | | > | - | - | > | Compliance | [Invoicing compliance in Belgium](/compliance/belgium) [Compliance timeline](/timelines/belgium) | > | Apps | [Peppol](/apps/peppol) [OASIS UBL](/apps/oasis-ubl) [UN/CEFACT CII](/apps/uncefact-cii) | > | Guides | [Peppol guide](/guides/peppol) [Chargebee guide](/guides/cb-belgium) | > | FAQ | [Belgium FAQ](/faq/belgium) | > | GOBL | [Belgium Tax Regime](https://docs.gobl.org/regimes/be) [EN 16931-1:2017 Addon](https://docs.gobl.org/addons/eu-en16931-v2017) | > | GitHub | [gobl.ubl](https://github.com/invopop/gobl.ubl) [gobl.cii](https://github.com/invopop/gobl.cii) | > [accordion] 🇧🇷 Invopop resources for Brazil > > | | | > | - | - | > | Compliance | [Invoicing compliance in Brazil](/compliance/brazil) [Compliance timeline](/timelines/brazil) | > | Apps | [Documentos Fiscais Eletrônicos Brazil](/apps/documentos-fiscais-electronicos-brazil) | > | Guides | [Supplier registration](/guides/br-dfe-supplier) [Issuing invoices](/guides/br-dfe) | > | FAQ | [Brazil FAQ](/faq/brazil) | > | GOBL | [Brazil Tax Regime](https://docs.gobl.org/regimes/br) [Brazil NF-e Addon](https://docs.gobl.org/addons/br-nfe-v4) [Brazil NFS-e Addon](https://docs.gobl.org/addons/br-nfse-v1) | > [accordion] 🇨🇴 Invopop resources for Colombia > > | | | > | - | - | > | Compliance | [Invoicing compliance in Colombia](/compliance/colombia) [Compliance timeline](/timelines/colombia) | > | Apps | [Colombia](/apps/colombia) | > | Guides | [Supplier registration](/guides/co-dian-registration) [Issuing invoices](/guides/co-dian-invoicing) | > | FAQ | [Colombia FAQ](/faq/colombia) | > | GOBL | [Colombia Tax Regime](https://docs.gobl.org/regimes/co) [Colombia DIAN Addon](https://docs.gobl.org/addons/co-dian-v2) | > [accordion] 🇫🇷 Invopop resources for France > > | | | > | - | - | > | Compliance | [Invoicing compliance in France](/compliance/france) [Compliance timeline](/timelines/france) | > | Apps | [France](/apps/france) [Peppol](/apps/peppol) [Chorus Pro France](/apps/choruspro-france) | > | Guides | Chorus Pro — [Supplier registration](/guides/fr-chorus-pro-supplier) · [Issuing invoices](/guides/fr-chorus-pro) [PA Guide](/guides/fr-pa) — [Registration](/guides/fr-pa-registration) · [Invoicing](/guides/fr-pa-invoicing) · [Status](/guides/fr-pa-status) · [Reporting](/guides/fr-pa-reporting) · [Public sector](/guides/fr-pa-b2g) | > | FAQ | [France FAQ](/faq/france) | > | GOBL | [France Tax Regime](https://docs.gobl.org/regimes/fr) [Chorus Pro Addon](https://docs.gobl.org/addons/fr-choruspro-v1) [French Factur-X Addon](https://docs.gobl.org/addons/fr-facturx-v1) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [accordion] 🇩🇪 Invopop resources for Germany > > | | | > | - | - | > | Compliance | [Invoicing compliance in Germany](/compliance/germany) [Compliance timeline](/timelines/germany) | > | Apps | [OASIS UBL](/apps/oasis-ubl) [ZUGFeRD](/apps/uncefact-cii) | > | Guides | [XRechnung & ZUGFeRD guide](/guides/de-ubl) [Chargebee guide](/guides/cb-germany) | > | FAQ | [Germany FAQ](/faq/germany) | > | GOBL | [Germany Tax Regime](https://docs.gobl.org/regimes/de) [German XRechnung Addon](https://docs.gobl.org/addons/de-xrechnung-v3) [German ZUGFeRD Addon](https://docs.gobl.org/addons/de-zugferd-v2) | > | GitHub | [gobl.xinvoice](https://github.com/invopop/gobl.xinvoice) | > [accordion] 🇬🇷 Invopop resources for Greece > > | | | > | - | - | > | Compliance | [Invoicing compliance in Greece](/compliance/greece) [Compliance timeline](/timelines/greece) | > | Apps | [ILYDA Greece](/apps/ilyda-greece) | > | Guides | [Supplier registration](/guides/gr-iapr-supplier) [Issuing invoices](/guides/gr-iapr) | > | FAQ | [Greece FAQ](/faq/greece) | > | GOBL | [Greece Tax Regime](https://docs.gobl.org/regimes/gr) [Greece myDATA addon](https://docs.gobl.org/addons/gr-mydata-v1) | > [accordion] 🇮🇹 Invopop resources for Italy > > | | | > | - | - | > | Compliance | [Invoicing compliance in Italy](/compliance/italy) [Compliance timeline](/timelines/italy) | > | Apps | [Italy](/apps/italy) [SDI Italy](/apps/sdi-italy) [Smart Receipts Italy](/apps/smart-receipts-italy) | > | Guides | SDI — [Issuing invoices](/guides/it-sdi-invoicing) · [Status](/guides/it-sdi-status) · [Receiving invoices](/guides/it-sdi-reception) · [Archiving](/guides/it-sdi-archiving) [SDI sending guide (legacy)](/guides/it-sdi-sending) [SDI receiving guide (legacy)](/guides/it-sdi-receiving) [Smart Receipts supplier registration](/guides/it-ticket-supplier) [Smart Receipts issuing guide](/guides/it-ticket) | > | FAQ | [Italy FAQ](/faq/italy) | > | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it) [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1) [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) | > | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) | > [accordion] 🇲🇽 Invopop resources for Mexico > > | | | > | - | - | > | Compliance | [Invoicing compliance in Mexico](/compliance/mexico) [Compliance timeline](/timelines/mexico) | > | Apps | [SAT Mexico](/apps/sat-mexico) [SW Sapien](/apps/sw-sapien) [Cron](/apps/cron) | > | Guides | [Supplier registration](/guides/mx-sat-supplier) [Issuing documents](/guides/mx-sat-issuing) [Cancelling documents](/guides/mx-sat-cancelling) [Receiving invoices](/guides/mx-sat-receiving) | > | FAQ | [Mexico FAQ](/faq/mexico) | > | GOBL | [Mexico Tax Regime](https://docs.gobl.org/regimes/mx) [Mexican SAT CFDI Addon](https://docs.gobl.org/addons/mx-cfdi-v4) | > | GitHub | [gobl.cfdi](https://github.com/invopop/gobl.cfdi) | > [accordion] 🇵🇹 Invopop resources for Portugal > > | | | > | - | - | > | Compliance | [Invoicing compliance in Portugal](/compliance/portugal) [Compliance timeline](/timelines/portugal) | > | Apps | [AT Portugal](/apps/at-portugal) | > | Guides | [Supplier registration](/guides/pt-at-supplier) [Issuing invoices](/guides/pt-at) | > | FAQ | [Portugal FAQ](/faq/portugal) | > | GOBL | [Portugal Tax Regime](https://docs.gobl.org/regimes/pt) [Portugal SAF-T addon](https://docs.gobl.org/addons/pt-saft-v1) | > [accordion] 🇪🇸 Invopop resources for Spain > > | | | > | - | - | > | Compliance | [Invoicing compliance in Spain](/compliance/spain) [Compliance timeline](/timelines/spain) | > | Apps | [Spain](/apps/spain) [VERI\*FACTU Spain](/apps/verifactu-spain) [TicketBAI (Spain app)](/apps/spain) | > | Guides | [Facturae guide](/guides/es-facturae) [VERI\*FACTU invoicing guide](/guides/es-verifactu) [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier) [SII invoicing guide](/guides/es-sii) [SII supplier onboarding](/guides/es-sii-supplier) [TicketBAI guide](/guides/es-ticketbai) | > | FAQ | [Spain FAQ](/faq/spain) | > | GOBL | [Spain Tax Regime](https://docs.gobl.org/regimes/es) [VERI\*FACTU Addon](https://docs.gobl.org/addons/es-verifactu-v1) [Facturae Addon](https://docs.gobl.org/addons/es-facturae-v3) [SII Addon](https://docs.gobl.org/addons/es-sii-v1) | > | GitHub | [gobl.facturae](https://github.com/invopop/gobl.facturae) [gobl.verifactu](https://github.com/invopop/gobl.verifactu) [gobl.ticketbai](https://github.com/invopop/gobl.ticketbai) | # Replicate a sandbox workspace in live Source: https://docs.invopop.com/workspace/sandbox-to-live What changes between sandbox and live, and how to carry your workflows, apps, series and API key permissions over to a live workspace. A workspace is created as either **Sandbox** or **Live** and its type cannot be changed afterwards. Going live therefore means creating a live workspace and rebuilding its configuration so that it matches the sandbox you tested in. Nothing is copied automatically. This guide lists exactly what differs between the two environments and walks through replicating each piece. > [!NOTE] > > Before you start, you need a billing account with a payment method and a live workspace. See [How to go live](/guides/how-to-go-live) for those steps. This guide picks up once the live workspace exists. ## What changes between sandbox and live Both workspace types run on the same platform, the same API host and the same Console. The differences are in what each workspace contains and in how government apps behave. | | Sandbox | Live | | - | - | - | | **API host** | `https://api.invopop.com` | Same host. The token decides which workspace you are in. | | **API keys** | Scoped to the sandbox workspace | New key, scoped to the live workspace, with the same permissions | | **Console URL** | `console.invopop.com/sandbox/` | `console.invopop.com/` | | **Workflows** | Defined per workspace | Must be re-created. Every workflow gets a **new workflow ID**. | | **Apps** | Enabled and configured per workspace | Must be enabled and configured again, this time with production credentials | | **Government endpoints** | Apps talk to the tax authority's test environment | Apps talk to the production environment. Documents are legally binding. | | **Suppliers** | Pre-enabled test suppliers in most countries | Real suppliers, registered through the country's registration workflow | | **Series** | Defined per workspace | Must be re-created, usually starting from the number your real numbering requires | | **Members and roles** | Shared at organisation level | No change. Everyone with access to the organisation sees the live workspace. | | **Email and Slack** | Emailing customers and suppliers is disabled | Emails are delivered | | **Billing** | Free | Consumes pops from the billing account attached to the workspace | The most important consequence for your integration: **the only thing that changes in your code is the token**, plus the workflow IDs you call, because they are different in the live workspace. There is no separate sandbox host or sandbox header to remove. > [!TIP] > > You can confirm which environment a token points at with `GET /access/v1/workspace`. The response includes `"sandbox": true` or `false`. Add this check to your deployment so that a live system can never run with a sandbox key by mistake. ## What you need to re-create Go through this list for the sandbox workspace you are replicating. Everything on it lives inside the workspace and does not exist yet in the live one. * [ ] **Apps**: every app in the **Enabled apps** section, with its configuration. * [ ] **Workflows**: every published workflow, including supplier registration and cancellation workflows, not only the ones that issue invoices. * [ ] **Series**: every numbering series your workflows or your integration refer to. * [ ] **Suppliers**: every real company you will issue invoices for, registered with the tax authority. * [ ] **API key**: one key per integration, with the same permissions as its sandbox counterpart. Let your agent diff the two workspaces and hand you the workflow JSON that is still missing in live. Read [https://docs.invopop.com/workspace/sandbox-to-live.md](https://docs.invopop.com/workspace/sandbox-to-live.md) and [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md). I have two Invopop API keys: INVOPOP\_SANDBOX\_TOKEN for my sandbox workspace and INVOPOP\_LIVE\_TOKEN for my live workspace. Using curl, call GET /access/v1/workspace with each token and confirm that the first reports sandbox true and the second sandbox false. Then fetch all workflows from both workspaces with GET /transform/v1/workflows, compare them by name, and list the workflows that exist in sandbox but not in live. For each missing workflow, fetch its full definition from the sandbox and print the JSON of name, description, schema, steps and rescue so that I can paste it into the Code view of a new workflow in the live Console. Do not create anything in the live workspace yourself. Do not modify any workflow in the sandbox. ## Replicate the workspace Keep two browser tabs open, one on the sandbox workspace and one on the live workspace, and work through the sections in order. Apps come first because a job fails at the first step whose app is not enabled, and the Console does not warn you about it when you paste a workflow. **1. Enable and configure the apps** In the sandbox workspace open **Apps** from the sidebar and note every app under **Enabled apps**. Switch to the live workspace, open **Apps** and click **Connect** on each of them. ![Apps page of a live workspace with the VERI\*FACTU Spain app under Enabled apps](https://mintcdn.com/invopop/380gS3yI1XhUygNx/assets/guides/sandbox-to-live-apps.png?fit=max\&auto=format\&n=380gS3yI1XhUygNx\&q=85\&s=68582acd259f424419188ba0bf62912f) The live workspace must list the same enabled apps as the sandbox Then open **Configure** on each app that has settings and fill them in for production. Configuration never carries over, and the values are usually different: * **Government apps** need production credentials, certificates or agreements, and they are issued by the tax authority for the real company rather than for a test one. Each app page under [Apps](/apps) explains what is required. * **Integration apps** such as Stripe, Chargebee, Slack, Email or Google Drive must be connected to the production account of the third-party service. A Stripe test-mode connection, for example, will not import live Stripe invoices. * **PDF Generator** settings such as the logo and the footer are per workspace too. **2. Copy each workflow with the Code view** Open the workflow in the sandbox workspace. At the top right of the canvas, switch from the **Form view** to the **Code view**. The editor shows the complete JSON definition of the workflow: its name, description, schema, steps, conditions and exception handling. Select all of it and copy it. ![Workflow editor in Code view showing the JSON of a VERI\*FACTU issue invoice workflow](https://mintcdn.com/invopop/380gS3yI1XhUygNx/assets/guides/sandbox-to-live-code-view.png?fit=max\&auto=format\&n=380gS3yI1XhUygNx\&q=85\&s=a44c4dfa28113475664f3edd833cdaca) Code view of a workflow in the sandbox workspace In the live workspace, go to **Workflows**, click **Create workflow**, close the template picker if it opens, switch the new empty workflow to the **Code view** and paste over the empty definition. The step IDs inside the JSON can stay as they are. ![New workflow in a live workspace with the pasted JSON in Code view](https://mintcdn.com/invopop/380gS3yI1XhUygNx/assets/guides/sandbox-to-live-paste.png?fit=max\&auto=format\&n=380gS3yI1XhUygNx\&q=85\&s=2e501a38904bd1532b5f5b10376ddd76) The same JSON pasted into a new workflow in the live workspace Switch back to the **Form view**. The name, description and schema fill in from the JSON and every step renders with its icon and configuration. The Console does not check at this point whether the apps behind the steps are enabled: a workflow pastes and publishes either way, and a job only fails when it reaches a step whose app is missing. That is why apps come first. Review any step that holds workspace-specific values, in particular: * **Add sequential code** steps. A dynamic series is created in the live workspace the first time the step runs, using the `start` number in its configuration. Set it to continue your real numbering if you are migrating from another system. * **Email** and **Slack** steps whose recipients or channels were test addresses. * **Wait for supplier approval** style steps that were configured to auto-accept or reject in sandbox. Click **Save draft** and then **Publish**. Repeat for every workflow on your list. > [!WARNING] > > The live workflow has a **new workflow ID**. Copy it from the workflows list and update every place in your integration that creates jobs for it. Calling a sandbox workflow ID with a live token returns a `404`. **3. Re-create the series** Open **Series** in the sandbox workspace and re-create each one you created by hand in the live workspace under **Configuration → Series**, with the same name, code, prefix, padding and suffix. Set **Start number** to the next number your real numbering requires rather than `1` if you are migrating from another invoicing system. Series created dynamically by an **Add sequential code** step do not need this: they appear in the live workspace on the step's first run. See [Series](/console/series) for the field reference. **4. Register your real suppliers** Sandbox workspaces ship with pre-enabled test suppliers so that you can issue invoices right away. They do not exist in live. For every company you issue invoices for, upload its `org/party` entry and run the country's supplier registration workflow, which you copied in the previous step. The supplier ends in the `registered` state once the tax authority accepts it. Every country has a supplier onboarding guide next to its invoicing guide under [Guides](/guides/index), for example [VERI\*FACTU supplier onboarding](/guides/es-verifactu-supplier). In live, steps that waited for a manual approval in sandbox complete on their own as soon as the required documents are uploaded. **5. Create an API key with the same permissions** API keys are created from Admin, which is where their permissions are set. From the Console, click your avatar and choose **Configure \{organization\_name}**, open **API keys** in the sidebar and click **New API key**. Select the **live workspace** in the **Workspace** field, then tick exactly the same **Read** and **Admin** boxes as the sandbox key your integration uses. The permissions are grouped by service: **Access** (workspace and enrollments), **Transform** (workflows and jobs) and **Silo** (entries). **Everything** grants blanket access to all current and future services. ![New API key form in Admin with the live workspace selected and permissions ticked](https://mintcdn.com/invopop/380gS3yI1XhUygNx/assets/guides/sandbox-to-live-api-key.png?fit=max\&auto=format\&n=380gS3yI1XhUygNx\&q=85\&s=b365c90294903f4f30ba661b0adc5078) Creating the live key in Admin with the same permissions as the sandbox key The Admin **API keys** page lists every key in the organisation grouped by workspace with its permission level, so you can compare the sandbox key and the live key side by side. The token is shown once when you click **Create API key**; copy it into your secrets store now. > [!TIP] > > Keys are tied to the workspace, not to the person who created them, so they keep working when that person leaves the organisation. Give each integration its own key so that one can be revoked without affecting the others. **6. Point your integration at the live workspace** Two values change in your application's configuration: 1. The **API key**, swapped for the live one. 2. The **workflow IDs**, swapped for the IDs of the workflows you published in the live workspace. Everything else stays the same: the host, the endpoints, the document format and your workflow logic. Before you issue the first real invoice, ping the workspace with the new key and check that it is not a sandbox: ```bash theme={"system"} curl -s -H "Authorization: Bearer $INVOPOP_TOKEN" https://api.invopop.com/access/v1/workspace ``` ```json theme={"system"} { "id": "…", "name": "Cyberdyne Sistemas Live", "slug": "cyberdyne_sistemas_live", "sandbox": false, … } ``` If `sandbox` is `true`, you are still holding the sandbox key. ## Verify before issuing real invoices Run one document through the live workspace as the final check. Create an invoice for a registered supplier, run the issuing workflow from the entry's menu in the Console, and open **Job history**. Every step should report `OK`, the entry should end in the state your workflow sets, and the attachments (PDF, XML, government receipt) should be on the entry. From this point on every document is a real, legally binding invoice: use the sandbox workspace for anything experimental. ## FAQ > [accordion] Can I copy workflows through the API instead of the Console? > > Yes. Fetch the definition with [Fetch a workflow](/api-ref/transform/workflows/fetch-a-workflow) using the sandbox key, then send `name`, `description`, `schema`, `steps` and `rescue` to [Create a workflow](/api-ref/transform/workflows/create-a-workflow) using the live key. Workflows created through the API are published immediately, so review the steps in the Console first if you prefer to keep a draft. > [accordion] Can I keep the same workflow IDs in live? > > No. A workflow ID identifies one workflow inside one workspace. Your integration must store a separate ID per environment, for example in the same place it stores the token for that environment. > [accordion] Do I need a new live workspace for every country? > > We recommend one workspace per regime, in sandbox and in live. See [Set up your account for multiple countries](/workspace/multi-country). Repeat this guide for each pair. > [accordion] Do test documents move over? > > No. Invoices, parties, jobs and attachments stay in the sandbox workspace. The live workspace starts empty. > [accordion] Do I need to invite the team again? > > No. Members and roles belong to the organisation and apply to every workspace in it. > [accordion] Can I archive the sandbox afterwards? > > Keep it. The sandbox is where you test changes to workflows before copying them to live, and where government apps run against test environments at no cost. ## Related resources | | | | - | - | | API Reference | [Fetch workspace](/api-ref/access/workspace/fetch) [Fetch all workflows](/api-ref/transform/workflows/fetch-all-workflows) [Create a workflow](/api-ref/transform/workflows/create-a-workflow) | | Related Guides | [How to go live](/guides/how-to-go-live) [Create & configure workspaces](/admin/workspace-configure) [API keys](/console/api-keys) [Series](/console/series) | # White label guide Source: https://docs.invopop.com/workspace/white-label Issue compliant invoices on behalf of your customers, under your own brand. ## What white labeling means White labeling — also called **B2B2B** — is when your platform issues invoices *on behalf of* your customers. Your customers keep working in your product, and Invopop does the compliance work behind your API calls without ever appearing in their interface. ```mermaid theme={"system"} flowchart LR U["Your customer
(the supplier)"] <--> A["Your platform"] A <-->|"Invopop API"| I["Invopop"] I <--> T["Tax authority
or network"] %% Invopop palette - skills/mermaid-style classDef actor fill:#ffffff,stroke:#169958,stroke-width:1px,color:#103830 classDef system fill:#e8f5ee,stroke:#169958,stroke-width:1px,color:#103830 classDef authority fill:#169958,stroke:#0f7a45,stroke-width:1.5px,color:#ffffff classDef decision fill:#f4faf6,stroke:#169958,stroke-width:1px,color:#103830 classDef muted fill:#f4f4f5,stroke:#9ca3af,stroke-width:1px,color:#4b5563 linkStyle default stroke:#94a3b8 class U actor class A,I system class T authority ``` This is how Point-of-Sale, ERP and vertical SaaS platforms use Invopop. Take a hotel management platform: the hotel's front desk creates an invoice in the platform's own UI, and the platform submits it to the tax authority through Invopop, in the hotel's name. The one thing that changes compared to invoicing under your own name is who the **supplier** is: | | Invoicing yourself | White label | | - | - | - | | **Supplier** | Your company, the same on every invoice | Your customer, different on every invoice | | **Onboarding** | Once, when you set up your workspace | Once per customer, before their first invoice | | **Credentials and authorizations** | Yours | Each customer's, collected through your UI | | **Who sees Invopop** | Your team, in the Console | Nobody — your platform is the only interface | Everything else is identical: the same [GOBL](/guides/gobl) documents, the same [workflows](/guides/workflows), the same [API](/api-ref/introduction). A white-label integration is the standard integration plus a supplier onboarding step, repeated for each customer. > [!NOTE] > > Before starting, work through the [Quickstart](/get-started/quickstart) and the guide for your target country so you have uploaded an invoice and run it through a workflow at least once. Have your agent plan a white-label integration for your platform. Read [https://docs.invopop.com/workspace/white-label.md](https://docs.invopop.com/workspace/white-label.md), [https://docs.invopop.com/workspace/multi-country.md](https://docs.invopop.com/workspace/multi-country.md) and [https://docs.invopop.com/llms.md](https://docs.invopop.com/llms.md), then the supplier registration guide and the invoicing guide for each country I name. Produce an integration plan for issuing invoices on behalf of my customers: one workspace per tax regime and how requests are routed to them; the onboarding flow per customer as an org/party entry plus the country's registration workflow, listing what each country needs from the customer; the invoice loop of create entry, create job, receive webhook and fetch results, with idempotent UUIDs; how corrections work in each regime; and how totals shown in my UI stay consistent with GOBL by calling the build endpoint. Flag every point where my product must collect a credential or a signature from the customer. ## Set up your workspaces Your customers do not get their own Invopop account. You own the organization, and every supplier and document your platform creates lives in one of your [workspaces](/api-ref/glossary). Use [one workspace per tax regime](/workspace/multi-country) rather than one per customer. There is no limit or extra charge for extra workspaces, and each one gets its own apps, workflows, series and [API keys](/console/api-keys) — so your platform routes each request to the workspace for that supplier's country. See the [authentication guide](/guides/authentication) for how to manage those keys. ## Onboard each supplier Most jurisdictions require a company to be registered before it can issue its first e-invoice. This is the step that only exists in a white-label setup, and it runs once per customer. The mechanics mirror invoicing: build an [`org.party`](https://docs.gobl.org/draft-0/org/party) GOBL document with your customer's details, upload it as a silo entry, and send it to a registration workflow. When the workflow completes, the entry is left in the [`Registered`](/console/doc-states) state. What that workflow needs depends on the country: * **Nothing beyond the party details** in regimes with no pre-registration, such as [Germany](/guides/de-ubl). * **Credentials or a certificate** from your customer, such as [Mexico's CSD](/guides/mx-sat-supplier) or a [qualified certificate in Poland](/guides/pl-ksef-supplier). * **A signed authorization** letting Invopop invoice on their behalf, as in [VERI\*FACTU](/guides/es-verifactu-supplier) or [Portugal](/guides/pt-at-supplier). Where a signature or credential upload is needed, Invopop provides a hosted onboarding wizard you can send customers to. In a white-label setup you will usually prefer the equivalent [app APIs](/api-ref/introduction) instead, so the whole flow stays inside your product — for example [uploading a signed agreement](/api-ref/apps/verifactu/agreement-upload) or a [certificate](/api-ref/apps/gov-pl/certificate-upload). Pick your country's supplier registration guide from the [Guides](/guides/index) section for the exact requirements and a ready-made workflow template. ## Issue an invoice Once a supplier is registered, issuing an invoice in their name is the standard four-step loop. **1. Upload the invoice** When your user confirms an invoice, convert it to GOBL and upload it with [**Create an Entry**](/api-ref/silo/entries/create-an-entry-put), using a UUID your system owns so the call is [idempotent](/api-ref/idempotency). The call is synchronous and typically answers in milliseconds, so you can block your UI on it. Invopop validates the document, recalculates its totals, and stores it as a silo entry. A `4xx` response means nothing was stored: surface the message to your user, keep the invoice as a draft on your side, and let them retry. > [accordion] 422 returned when uploading an invoice with an incorrect tax ID > > ```json theme={"system"} > { > "key": "validation", > "message": "validation", > "fields": { > "data": { > "doc": { > "customer": { > "tax_id": { > "code": "unknown type" > } > } > } > } > } > } > ``` **2. Start a job** Send the stored entry to a workflow with [**Create a Job**](/api-ref/transform/jobs/create-a-job-put). The workflow handles format conversion, submission to the tax authority, and webhooks. This endpoint also responds quickly, so keep your spinner up until it returns, then mark the invoice as processing in your own database. Most tax authorities answer within seconds, but some take much longer — Italy's SDI can take up to two days — so design your UI for an asynchronous outcome. **3. Receive a webhook** Rather than polling the job, add a [**Send Webhook**](/guides/webhooks) step to your workflow and use the callback as the trigger for the next step. Add one to the error-handling branch too, so failures notify you just as successes do. > [accordion] Example workflow with error handling and webhooks > > This workflow sends a webhook when the job completes, leaving the silo entry in the `Sent` state if every step succeeded and `Error` if any of them failed. > > ![Workflow with error handling and webhooks](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/saas-guide-workflow-error-handling.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=8fbeee542fab0942f75bea4425836c85) **4. Fetch the results** Use the `silo_entry_id` from the webhook to [fetch the entry](/api-ref/silo/entries/fetch-an-entry). It gives you the [state](/console/doc-states) to mirror in your UI and the attachments — typically the PDF and XML — to store or show to your user. When something went wrong, read the errors from the **job**, not the entry: take the `transform_job_id` from the same webhook and [fetch the job](/api-ref/transform/jobs/fetch-a-job), then map its `faults` array onto your own error types. The webhook payload already carries that job's faults, so in many cases you can act on it without a second call. > [!WARNING] > > Don't build fault handling on the `faults` field of the **silo entry**. A single entry can be processed by many jobs, and the entry only exposes faults as a backwards-compatible convenience: they are copied from the job that assigned the entry's most recent state, and only when that state is an error or failure. One job has exactly one set of faults, which makes the job the deterministic source. > > The exception is entries uploaded with `allow_invalid`, where the entry's faults describe why the stored document itself is invalid. ## Correct an invoice An issued invoice should never be edited; it is corrected with a credit note, a debit note, or a corrective invoice, depending on the country. The [correct invoices guide](/guides/correct-invoice) covers all three, including how to auto-generate a credit note from an existing entry with the [correct](/api-ref/silo/gobl/correct) endpoint. From your platform's point of view the flow is the same as issuing: upload a document, start a job, wait for the webhook. Corrections also matter for the errors that only surface *after* a job has started. Invopop catches most problems synchronously through GOBL validations, but some checks only the tax authority can make — such as whether a well-formed tax ID belongs to a registered business. When a job fails, you can either: 1. **Fix and resend.** Let the user edit the invoice, [update the entry](/api-ref/silo/entries/update-an-entry), and send it to the workflow again. 2. **Void and reissue.** Cancel the original with a credit note and issue a corrected invoice. The first is simpler, but fiscalized regimes such as [TicketBAI](/guides/es-ticketbai), [VERI\*FACTU](/guides/es-verifactu) and [Portugal](/guides/pt-at) do not allow an invoice to change past a certain point, so plan for the second. ## Keep calculations consistent Invopop recalculates line sums, taxes and totals on upload, because each tax authority defines its own rounding and aggregation rules. If your platform shows totals before sending — and it almost certainly does — those numbers need to match. Three ways to get there: * **Call [Build GOBL Document](/api-ref/silo/gobl/build)** while the invoice is still a draft. It validates and calculates without storing anything, so your UI can display exactly what Invopop will store. * **Embed the [GOBL library](https://docs.gobl.org)** and calculate locally. The best option if your backend is written in Go. * **Match GOBL's algorithms** in your own code, using the open-source implementation as the reference. ## FAQs > [accordion] Should I fetch the silo entry or the job? > > Both, for different things. The silo entry is the source of truth for the document itself — its current [state](/console/doc-states), its contents and its attachments — and it is what you mirror in your UI. The job is the source of truth for one execution of a workflow, so it is where you read `faults` from when a job errors or fails. Fetch the entry for the outcome, the job for the reason. > [accordion] Does each of my customers need their own workspace? > > No. Group workspaces by tax regime, not by customer. A single workspace holds as many registered suppliers as you need, and each invoice names the supplier it belongs to. > [card] [Participate in our community](https://community.invopop.com) > > Ask and answer questions about white-label integration →