---
title: "Create a corrective document"
method: POST
path: "/correct"
tags: ["Documents"]
---

# Create a corrective document

`POST /correct`

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.

## Request body

- CorrectRequest
  - `data` unknown, required
  - `options` unknown
  - `schema` boolean — When true, returns the available correction options schema instead of correcting.

## Response `200`

Corrected document, or correction options schema when `schema` is true

- unknown

## Other responses

- `400` — Error response
- `422` — Error response

---

[API](https://skmtc.dev/gobl/apis/gobl-api.md) · [All operations](https://skmtc.dev/gobl/apis/gobl-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gobl/gobl-api/revisions/66ef451fe34b/schema)
