# Reject Invoice

Accepts a JSON payload to Set Invoice as Reject.

Endpoint: POST /rest/v1/documents/reject
Version: v2026.12.01
Security: PublicApiKey

## Security:

  - `PublicApiKey` (unknown)
    apiKey in header Authorization

## Request fields (application/json):

  - `documentId` (string, required)
    The unique identifier of the invoice document.
    Example: 6787a98e15306d37eed688a8

  - `documentNumber` (string, required)
    The number of the document.
    Example: 12322

  - `issueDate` (string, required)
    The date when the invoice was issued.
    Example: 2023-10-01T12:00:00Z

  - `senderVatNumber` (string, required)
    The VAT number of the sender.
    Example: 12345678910

  - `receiverVatNumber` (string, required)
    The VAT number of the receiver.
    Example: 09876543210

  - `rejectionDate` (string, required)
    The date when the invoice was rejected.
    Example: 2023-10-02T12:00:00Z

  - `rejectionReason` (string)
    The reason for the rejection of the invoice.
    Example: Invoice not valid

  - `rejectionReasonCode` (string, required)
    The code indicating the reason for rejection Can be N, U or O.
    Example: N|U|O

  - `rejectionReasonDescription` (string)
    The description of the reason for rejection.
    Example: Invoice not valid

## Response 201:

  - `201` (unknown)
    Document mark as rejected successfully.

## Response 201 fields (application/json):

  - `statusCode` (integer, required)
    Http status code of the response.
    Example: 200

  - `resultMessage` (string, required)
    Result message.
    Example: Company registered successfully.

## Response 400:

  - `400` (unknown)
    Invalid input or validation error.

## Response 400 fields (application/json):

  - `statusCode` (integer, required)
    Http status code of the response.
    Example: 200

  - `resultMessage` (string, required)
    Result message.
    Example: Company registered successfully.

## Response 401:

  - `401` (unknown)
    Unauthorized access due to invalid or missing API key.

## Response 401 fields (application/json):

  - `statusCode` (integer, required)
    Http status code of the response.
    Example: 200

  - `resultMessage` (string, required)
    Result message.
    Example: Company registered successfully.

## Response 500:

  - `500` (unknown)
    Internal server error during registration process.

## Response 500 fields (application/json):

  - `statusCode` (integer, required)
    Http status code of the response.
    Example: 200

  - `resultMessage` (string, required)
    Result message.
    Example: Company registered successfully.

