{
"$schema": "https://gobl.org/draft-0/envelope",
"head": {
"uuid": "706bade0-ec92-11ec-8cfe-e2c0624703d9",
"dig": {
"alg": "sha256",
"val": "1e11c95c78f0a5de339dcb837a662b31b954cf923c879f61f29149b556bdb1d7"
},
"draft": true
},
"doc": {
"$schema": "https://gobl.org/draft-0/bill/invoice",
"code": "SAMPLE-001",
"currency": "EUR",
"issue_date": "2022-02-01",
"supplier": {
"tax_id": {
"country": "ES",
"code": "B98602642"
},
"name": "Provider One S.L.",
"addresses": [
{
"num": "42",
"street": "Calle Pradillo",
"locality": "Madrid",
"region": "Madrid",
"code": "28002",
"country": "ES"
}
],
"emails": [
{
"addr": "billing@example.com"
}
]
},
"customer": {
"tax_id": {
"country": "ES",
"code": "54387763P"
},
"name": "Sample Consumer"
},
"lines": [
{
"i": 1,
"quantity": "10",
"item": {
"name": "Item being purchased",
"price": "100.00"
},
"sum": "1000.00",
"discounts": [
{
"percent": "10%",
"amount": "100.00"
}
],
"taxes": [
{
"cat": "VAT",
"rate": "standard",
"percent": "21.0%"
}
],
"total": "900.00"
}
],
"totals": {
"sum": "900.00",
"total": "900.00",
"taxes": {
"categories": [
{
"code": "VAT",
"rates": [
{
"key": "standard",
"base": "900.00",
"percent": "21.0%",
"amount": "189.00"
}
],
"base": "900.00",
"amount": "189.00"
}
],
"sum": "189.00"
},
"tax": "189.00",
"total_with_tax": "1089.00",
"payable": "1089.00"
}
}
}