v1

latestOpenAPI 3.1.0Apache 2.02026-07-26141310.8 KB
Documents

Create a corrective document

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.

post/correct

Request body

{"stackTrail":"components:schemas:CorrectRequest:properties:data","oasType":"schema","type":"unknown","description":"Original document to correct."}
{"stackTrail":"components:schemas:CorrectRequest:properties:options","oasType":"schema","type":"unknown","description":"Correction options (method, reason, stamps, etc.)."}
schemaboolean

When true, returns the available correction options schema instead of correcting.

Response

Corrected document, or correction options schema when schema is true

{"stackTrail":"paths:/correct:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}