Franchise account

Good afternoon,
I work as a Franchise Account and need to understand how a few things work:
Can I issue invoices using the CNPJ of each registered store?
How does the integration work for an order containing products from different stores? Do they come under the same ID or are they separate?

Can I issue invoices (NF) using the CNPJ of each registered store?
Yes, each franchise account has an individual dashboard for order management. The APIs are also isolated in case you need to set up integrations.

How does order integration work when products come from different stores? Do they share the same ID or are they separate?
In the VTEX dashboard, 1 order will be generated for each Franchise Account involved in the products. The user and the Franchise Account API can only view the order items that are related to them.

As for the order ID, the main account contains the complete order. In the franchise accounts, the order receives a suffix appended to the ID, and the API includes an identifier linking back to the main order.

Example:
Order
Item A: Franchise1
Item B: Franchise2
Item C: Franchise2

MAIN ACCOUNT:
Order: 1000000-01
Item A

Order: 1000000-02
Item B
Item C

FRANCHISE 1:
Order: SLR-1000000-01
Item A

FRANCHISE 2:
Order: SLR-1000000-02
Item B
Item C