> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generates a Peppol BIS Billing 3.0 UBL e-invoice from a canonical invoice…

> UBL e-invoice (XML + validation + delivery status)

### Path parameters

**partner\_id** `string` *required*

Partner ID

### Request body

`UblInvoiceInput`

**buyer\_reference** `string,null`

**currency** `string`

ISO 4217 currency, e.g. `EUR`.

**customer** `EInvoiceParty` *required*

A party on a Peppol invoice. `endpoint_id` + `endpoint_scheme` are the Peppol participant identifier (e.g. scheme `0088` GLN, `9930` DE:VAT) that routing depends on; `vat_id` and `country` are BIS-mandatory.

**EInvoiceParty**

**city** `string,null`

**country** `string,null`

ISO 3166-1 alpha-2 country code (BIS-mandatory).

**endpoint\_id** `string,null`

Peppol participant ID (the value), e.g. a GLN or VAT number.

**endpoint\_scheme** `string,null`

Peppol electronic-address scheme (EAS code), e.g. `0088`, `9930`.

**name** `string` *required*

**postal\_code** `string,null`

**street** `string[]`

**vat\_id** `string,null`

**due\_date** `string,null`

**invoice\_number** `string` *required*

**issue\_date** `string` *required*

ISO date `YYYY-MM-DD`.

**lines** `UblLine[]` *required*

**UblLine**

**description** `string` *required*

**quantity** `string` *required*

**unit\_price** `string` *required*

**uom** `string`

**supplier** `EInvoiceParty` *required*

A party on a Peppol invoice. `endpoint_id` + `endpoint_scheme` are the Peppol participant identifier (e.g. scheme `0088` GLN, `9930` DE:VAT) that routing depends on; `vat_id` and `country` are BIS-mandatory.

**EInvoiceParty**

**city** `string,null`

**country** `string,null`

ISO 3166-1 alpha-2 country code (BIS-mandatory).

**endpoint\_id** `string,null`

Peppol participant ID (the value), e.g. a GLN or VAT number.

**endpoint\_scheme** `string,null`

Peppol electronic-address scheme (EAS code), e.g. `0088`, `9930`.

**name** `string` *required*

**postal\_code** `string,null`

**street** `string[]`

**vat\_id** `string,null`

**tax\_percent** `string`

Single VAT rate (percent) applied to the whole invoice — the common case; multi-rate breakdown is a later refinement.

### Response

No response body. UBL e-invoice (XML + validation + delivery status).

### Status codes

| Code | Meaning |
| - | - |
| `200` | UBL e-invoice (XML + validation + delivery status) |
| `403` | Not this credential's partner |
| `422` | Invalid payload |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://api.edi.stateset.com/v1/einvoice/ubl/{partner_id}' \
  --header "Authorization: Bearer $EDI_API_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "buyer_reference": "string",
  "currency": "USD",
  "customer": {
    "city": "San Francisco",
    "country": "US",
    "endpoint_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "endpoint_scheme": "string",
    "name": "Two-Person Tent",
    "postal_code": "94107",
    "street": [
      "548 Market St"
    ],
    "vat_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  },
  "due_date": "2026-08-31T14:22:05Z",
  "invoice_number": "ORD-10042",
  "issue_date": "2026-08-31",
  "lines": [
    {
      "description": "Two-person tent, green — replacement for damaged pole set.",
      "quantity": "2",
      "unit_price": "49.00",
      "uom": "string"
    }
  ],
  "supplier": {
    "city": "San Francisco",
    "country": "US",
    "endpoint_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "endpoint_scheme": "string",
    "name": "Two-Person Tent",
    "postal_code": "94107",
    "street": [
      "548 Market St"
    ],
    "vat_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  },
  "tax_percent": "string"
}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.