cURL
curl --request POST \ --url https://gobl.dev/v0/correct \ --header 'Content-Type: application/json' \ --data ' { "data": "<unknown>", "options": "<unknown>", "schema": false } '
{ "code": 422, "key": "<string>", "message": "<string>", "faults": [ { "properties": [ "<string>" ], "description": "<string>" } ] }
Generates a credit note, debit note, or other correction from an existing document. When the schema flag is set, returns the available correction options instead.
schema
Original document to correct.
Correction options (method, reason, stamps, etc.).
When true, returns the available correction options schema instead of correcting.
Corrected document, or correction options schema when schema is true