# Introduction to e-invoice vendor integration

This document is designed to guide service providers through the integration
process, explaining how the system works and what is required for a successful
integration.

## Integration overview

Our system generates invoice data, serialized to XML objects, and sends these to
service providers (hereafter referred to as vendors). Vendors process these
invoice objects by interacting with government systems for e-invoicing or
e-reporting purposes, receive government responses, and then format these
responses back into a format that our system can understand.

### Key components:

- **Google invoice schema**: Outlines how Google presents invoice data.
- **Application response**: Specifies the format vendors should use to send data back to Google.
- **Request batching**: Describes the process for sending multiple invoice objects within a single XML wrapper.
- **Response batching**: Indicates that responses from vendors should also be batched for efficient processing.

An illustrative diagram is provided to show how this workflow:


![Diagram illustrating the e-invoicing vendor workflow](https://developers.google.com/static/invoice-vendor-interface/images/diagrams/e-invoicing_vendor_workflow.svg)

<br />

## UBL 2.4 specification

As part of our integration framework, Google adheres to the Universal Business
Language (UBL) version 2.4 specification to standardize the format for invoices
and application responses. This ensures efficient and reliable data exchange
between Google and our vendors.

For detailed information on UBL 2.4, refer to the [UBL 2.4
Specification](https://docs.oasis-open.org/ubl/os-UBL-2.4/UBL-2.4.html).

## Getting started

To begin integrating with Google's Invoice System, vendors should first
familiarize themselves with the invoice request schema and the batching process
used for data exchange.

- **Review invoice request schema** : [Invoice request XML schema](https://developers.google.com/invoice-vendor-interface/schema/invoice-request/invoice-schema)
- **Understand response schema** : [Application response XML schema](https://developers.google.com/invoice-vendor-interface/schema/invoice-response/response-schema)
- **Explore e-invoice samples** : [E-Invoice XML files and vendor responses repository](https://developers.google.com/invoice-vendor-interface/samples/request)

While Google's implementation adheres to the UBL 2.4 specification it also
incorporates specific adaptations to optimize the exchange of e-invoicing
documents with our vendors.