e-invoicing

Separation of supplier and buyer archives

For invoices archived for both suppliers and buyers, each party must use a separate enabled storage section with the proper StoreFor settings.

Both the supplier and buyer must store the original invoice in compliance with the applicable laws. When a hub archives on behalf of both parties, it must create two separate user organizations with enabled storage sections: one for the supplier and one for the buyer.

Storing for the supplier

When an invoice has been signed on behalf of the supplier, store the signed invoice for the supplier by setting SupplierInfo.StoreFor to true and BuyerInfo.StoreFor to false in the StoreInvoice request. This creates a stored invoice in the supplier's section only.

Storing for the buyer

When the signed invoice has been validated on behalf of the buyer, store the signed and validated invoice for the buyer by setting BuyerInfo.StoreFor to true in the StoreInvoice request.

When storing for the buyer separately (the recommended approach), set SupplierInfo.StoreFor to false in this request. If the buyer's signed and validated invoice must also be archived for the supplier when, for example, a single archiving operation covers both parties, set SupplierInfo.StoreFor to true.

Note: Storing an invoice with StoreFor set to true for both parties in a single StoreInvoice call creates two separate stored invoice records, one per section. Each record is assigned its own unique reference.