File tree Expand file tree Collapse file tree 2 files changed +161
-0
lines changed Expand file tree Collapse file tree 2 files changed +161
-0
lines changed Original file line number Diff line number Diff line change 1+ $schema : " https://gobl.org/draft-0/bill/invoice"
2+ uuid : " 3aea7b56-59d8-4beb-90bd-f8f280d852a0"
3+ currency : " EUR"
4+ issue_date : " 2022-02-01"
5+ series : " SAMPLE"
6+ code : " 001"
7+
8+ supplier :
9+ tax_id :
10+ country : " FI"
11+ code : " 12345671" # random
12+ name : " Provide One Inc."
13+ emails :
14+ 15+ addresses :
16+ - num : " 42"
17+ street : " Calle Pradillo"
18+ locality : " Madrid"
19+ region : " Madrid"
20+ code : " 28002"
21+ country : " ES"
22+
23+ customer :
24+ tax_id :
25+ country : " FI"
26+ code : " 080462602T"
27+ name : " Sample Consumer"
28+ emails :
29+ 30+ addresses :
31+ - num : " 1"
32+ street : " Hakulintie 96"
33+ locality : " Lohja"
34+ code : " 08500"
35+ country" : " FI"
36+
37+ lines :
38+ - quantity : 20
39+ item :
40+ name : " Development services"
41+ price : " 90.00"
42+ unit : " h"
43+ discounts :
44+ - percent : " 10%"
45+ reason : " Special discount"
46+ taxes :
47+ - cat : VAT
48+ rate : standard
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://gobl.org/draft-0/envelope" ,
3+ "head" : {
4+ "uuid" : " 01962129-97e4-7659-a51a-85f5c1e83ffc" ,
5+ "dig" : {
6+ "alg" : " sha256" ,
7+ "val" : " 099bffb625efd6a27160a5e7fa514881e09ec7ef35e95fc13d8a7851e81509c6"
8+ }
9+ },
10+ "doc" : {
11+ "$schema" : " https://gobl.org/draft-0/bill/invoice" ,
12+ "$regime" : " FI" ,
13+ "uuid" : " 3aea7b56-59d8-4beb-90bd-f8f280d852a0" ,
14+ "type" : " standard" ,
15+ "series" : " SAMPLE" ,
16+ "code" : " 001" ,
17+ "issue_date" : " 2022-02-01" ,
18+ "currency" : " EUR" ,
19+ "supplier" : {
20+ "name" : " Provide One Inc." ,
21+ "tax_id" : {
22+ "country" : " FI" ,
23+ "code" : " 12345671"
24+ },
25+ "addresses" : [
26+ {
27+ "num" : " 42" ,
28+ "street" : " Calle Pradillo" ,
29+ "locality" : " Madrid" ,
30+ "region" : " Madrid" ,
31+ "code" : " 28002" ,
32+ "country" : " ES"
33+ }
34+ ],
35+ "emails" : [
36+ {
37+ 38+ }
39+ ]
40+ },
41+ "customer" : {
42+ "name" : " Sample Consumer" ,
43+ "tax_id" : {
44+ "country" : " FI" ,
45+ "code" : " 080462602T"
46+ },
47+ "addresses" : [
48+ {
49+ "num" : " 1" ,
50+ "street" : " Hakulintie 96" ,
51+ "locality" : " Lohja" ,
52+ "code" : " 08500"
53+ }
54+ ],
55+ "emails" : [
56+ {
57+ 58+ }
59+ ]
60+ },
61+ "lines" : [
62+ {
63+ "i" : 1 ,
64+ "quantity" : " 20" ,
65+ "item" : {
66+ "name" : " Development services" ,
67+ "price" : " 90.00" ,
68+ "unit" : " h"
69+ },
70+ "sum" : " 1800.00" ,
71+ "discounts" : [
72+ {
73+ "reason" : " Special discount" ,
74+ "percent" : " 10%" ,
75+ "amount" : " 180.00"
76+ }
77+ ],
78+ "taxes" : [
79+ {
80+ "cat" : " VAT" ,
81+ "rate" : " standard" ,
82+ "percent" : " 24.0%"
83+ }
84+ ],
85+ "total" : " 1620.00"
86+ }
87+ ],
88+ "totals" : {
89+ "sum" : " 1620.00" ,
90+ "total" : " 1620.00" ,
91+ "taxes" : {
92+ "categories" : [
93+ {
94+ "code" : " VAT" ,
95+ "rates" : [
96+ {
97+ "key" : " standard" ,
98+ "base" : " 1620.00" ,
99+ "percent" : " 24.0%" ,
100+ "amount" : " 388.80"
101+ }
102+ ],
103+ "amount" : " 388.80"
104+ }
105+ ],
106+ "sum" : " 388.80"
107+ },
108+ "tax" : " 388.80" ,
109+ "total_with_tax" : " 2008.80" ,
110+ "payable" : " 2008.80"
111+ }
112+ }
113+ }
You can’t perform that action at this time.
0 commit comments