How does e-invoicing work?

See here: