cURL
curl --request POST \ --url https://gobl.dev/v0/build \ --header 'Content-Type: application/json' \ --data ' { "data": "<unknown>", "template": "<unknown>", "type": "<string>", "envelop": false } '
{ "code": 422, "key": "<string>", "message": "<string>", "faults": [ { "properties": [ "<string>" ], "description": "<string>" } ] }
Parses, calculates, and validates a GOBL document. Optionally wraps the result in an envelope.
GOBL document to build.
Optional template to merge with the data before building.
Document type hint (e.g. bill/invoice).
bill/invoice
Wrap the result in an envelope.
Built document or envelope