---
title: "Customer. ClosedDocuments"
method: POST
path: "/online/RivhitOnlineAPI.svc/Customer.ClosedDocuments"
---

# Customer. ClosedDocuments

`POST /online/RivhitOnlineAPI.svc/Customer.ClosedDocuments`

### Get the Customer Closed Documents Report.

## Request body

- object
  - `api_token` string, uuid, required — Rivhit Merchant API Identifier. **Default:** No
  - `customer_id` integer, nullable — Rivhit Customer Identifier. **Range:** 0 to 999999999 **Default:** No
  - `document_type` integer, nullable — The Document Type. **Range:** 0 to 999 **Default:** No
  - `until_date` string, date, nullable — Limit the Documents Last Date to Display. ~ Date format DD-MM-YY or DD/MM/YYYY **Length:** 1 to 10 **Default:** Current day
  - `by_produce_date` boolean, nullable — Filter the Documents by Produce Date. **Default:** false
  - `accounting_only` boolean, nullable — Return only Accounting Documents (Invoice,Invoice Receipt, etc..). **Default:** false
  - `no_accounting` boolean, nullable — Return only Non-Accounting Documents (Order, Price Quote, etc..). **Default:** false
  - `agent_id` integer, nullable — Rivhit Agent Identifier. **Range:** 0 to 999999999 **Default:** No
  - `from_date` string, date, nullable — Limit the Documents First Date to Display. ~ Date format DD-MM-YY or DD/MM/YYYY **Length:** 1 to 10 **Default:** No
  - `cartis_code` integer, nullable — Rivhit Customer Type Code. **Options:** (1 = Customers; 20 = Suppliers; 60 = Agents, etc..) **Default:** No

## Response `200`

Success

- 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
    - `closed_documents` object[]
      - `balance` number, double — Customer Balance.
      - `closing_list` object[] — List of Closing Documents.
        - `amount` number, double — Amount of the Closed Document.
        - `close_date` string, date — The Closing Date (DD/MM/YYYY).
        - `close_type` integer — The Closing Type.
        - `sub_num` integer — The Number of the Closed Document.
        - `sub_type` integer — The Type of the Closed Document.
      - `currency_id` integer — Currency Id.
      - `customer_id` integer — Rivhit Customer Identifier.
      - `customer_name` string — Full Name of the Customer
      - `document_number` integer — The Closing Document Number.
      - `document_type` integer — The Closing Document Type.
      - `due_date` string, date — Due Date of the Document (DD/MM/YYYY).
      - `is_receipt` boolean — Indicates if the Closing Document is a Receipt.
      - `issue_date` string, date — Issue Date of the Document (DD/MM/YYYY).
      - `paid_amount` number, double — Amount Paid for the Closing Document.
      - `reference` string — The Reference Value.
      - `total_amount` number, double — Total Amount in ILS.
      - `total_amount_mtc` number, double — Total Amount in MTC.

## 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)
