---
title: "Document.Close"
method: POST
path: "/online/RivhitOnlineAPI.svc/Document.Close"
---

# Document.Close

`POST /online/RivhitOnlineAPI.svc/Document.Close`

## Request body

- object
  - `api_token` string, uuid, required — Rivhit Merchant API Identifier. **Default:** No
  - `document_type` integer, required — The Type of the Document to Close. **Range:** 0 to 999 **Default:** No
  - `document_number` integer, required — The Number of the Document to Close. **Range:** 0 to 999999 **Default:** No
  - `closing_type` integer, required — The Type of the Document that is Closing. ~ For manual closing send 0 **Range:** 0 to 999 **Default:** No
  - `closing_number` integer, required — The Number of the Document that is Closing. ~ For manual closing send 0 **Range:** 0 to 999999 **Default:** No
  - `closing_date` string, date, required — The Closing Date. **Format:** DD-MM-YY or DD/MM/YYYY **Default:** No
  - `amount_close` number, double, required — Amount to Close. **Default:** No
  - `document_is_receipt` boolean, required — Set if the Closing Document is a Receipt. ~ For manual closing send true **Default:** No
  - `request_reference` string, nullable — Closing Action Request Reference. ~ Use for future search with method - Status.LastRequest ~ Should be unique value **Length:** 2GB **Default:** No

## Response `200`

Success - Document Closed

- object
  - `error_code` integer — The Response Error/Status Number (0 = Success)
  - `client_message` string — The Client Error Message.
  - `debug_message` string — The Response Error Message.
  - `data` object
    - `status` boolean — Closing Status (true = Success)

## Other responses

- `400` — Request Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/rivhit/apis/get-payment-url-22-12.md) · [All operations](https://skmtc.net/rivhit/apis/get-payment-url-22-12/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rivhit/get-payment-url-22-12/revisions/ed5261a52458/schema)
