---
title: "Receipt.Last"
method: POST
path: "/online/RivhitOnlineAPI.svc/Receipt.Last"
---

# Receipt.Last

`POST /online/RivhitOnlineAPI.svc/Receipt.Last`

## Request body

- object
  - `api_token` string, uuid, required — Rivhit Merchant API Identifier. **Format:** `UUID` **Default:** No
  - `receipt_type` integer, required — Receipt type. **Range:** 0 to 999 **Default:** All types

## 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
    - `agent_id` integer — Agent Identifier.
    - `comments` string — The Customer Comments (Printed on the Receipt).
    - `company_address` string — The Merchant Address
    - `company_fax` string — The Merchant Fax Number.
    - `company_id` integer — The Merchant Identifier.
    - `company_name` string — Name of the Business/Merchant.
    - `company_phone` string — The Merchant Phone Number.
    - `crm_user_id` integer — CRM User Id (Set the Document Producer).
    - `currency_id` integer — The Item Currency Type.
    - `customer_city` string — Customer City.
    - `customer_email` string, email — Customer email.
    - `customer_id` integer — Rivhit Customer Identifier.
    - `customer_id_number` integer — Customer Israeli ID (by Custom Format).
    - `customer_name` string — Customer Full Name (First and Last Name).
    - `customer_phone` string — Customer Phone Number.
    - `customer_zipcode` integer — Customer Zip Code.
    - `exchange_rate` number, double — Exchange Rate Used for the Document.
    - `payments` object[]
      - `account_number` string — Last Four Digits of the Bank Account/Credit Card Number.
      - `amount` number, double — Receipt Amount.
      - `bank` integer — Bank Code.
      - `branch` integer — Bank Branch.
      - `check_number` integer — Check/Transaction Voucher Number.
      - `details` string — The Receipt Payment Details.
      - `due_date` string — Due Date for the Receipt (DD/MM/YYYY).
      - `line_number` integer — The Line Number of the Payment.
      - `payment_type` string — The Payment Type Name.
      - `payment_type_format` integer — The Payment Type Uniform Structure.
      - `payment_type_id` integer — The Payment Type ID
    - `project_id` integer — Project Identifier.
    - `receipt_date` string, date — Receipt Issue Date (DD/MM/YYYY).
    - `receipt_number` string — Receipt number ("01/000005").
    - `receipt_time` string — Receipt Issue Time (HH:MM:SS).
    - `receipt_type` string — Receipt Type Name.
    - `reference` integer — The Reference Value - Will be Saved in the Invoice.

## 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/versions/ed5261a52458/schema)
