Reference for https://api.rivhit.co.il/online/RivhitOnlineAPI.svc/Receipt.Last

Get details of the last receipt

Url: https://api.rivhit.co.il/online/RivhitOnlineAPI.svc/Receipt.Last

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example,Schema
Response Json Example

The following is an example request Xml body:

<ReceiptLastRequestDTO xmlns="http://api.rivhit.co.il">
  <api_token>1627aea5-8e0a-4371-9022-9b504344e724</api_token>
  <receipt_type>2147483647</receipt_type>
</ReceiptLastRequestDTO>

The following is an example request Json body:

{
	"api_token":"1627aea5-8e0a-4371-9022-9b504344e724",
	"receipt_type":2147483647
}

The following is an example response Xml body:

<ReceiptDetailsResponse xmlns="http://api.rivhit.co.il">
  <error_code>2147483647</error_code>
  <client_message>String content</client_message>
  <debug_message>String content</debug_message>
  <data>
    <agent_id>2147483647</agent_id>
    <comments>String content</comments>
    <company_address>String content</company_address>
    <company_fax>String content</company_fax>
    <company_id>2147483647</company_id>
    <company_name>String content</company_name>
    <company_phone>String content</company_phone>
    <crm_user_id>2147483647</crm_user_id>
    <currency_id>2147483647</currency_id>
    <customer_city>String content</customer_city>
    <customer_email>String content</customer_email>
    <customer_id>2147483647</customer_id>
    <customer_id_number>2147483647</customer_id_number>
    <customer_name>String content</customer_name>
    <customer_phone>String content</customer_phone>
    <customer_zipcode>2147483647</customer_zipcode>
    <exchange_rate>12678967.543233</exchange_rate>
    <payments>
      <PaymentPrintData>
        <account_number>String content</account_number>
        <amount>12678967.543233</amount>
        <bank>2147483647</bank>
        <branch>2147483647</branch>
        <check_number>2147483647</check_number>
        <details>String content</details>
        <due_date>String content</due_date>
        <line_number>2147483647</line_number>
        <payment_type>String content</payment_type>
        <payment_type_format>2147483647</payment_type_format>
        <payment_type_id>2147483647</payment_type_id>
      </PaymentPrintData>
      <PaymentPrintData>
        <account_number>String content</account_number>
        <amount>12678967.543233</amount>
        <bank>2147483647</bank>
        <branch>2147483647</branch>
        <check_number>2147483647</check_number>
        <details>String content</details>
        <due_date>String content</due_date>
        <line_number>2147483647</line_number>
        <payment_type>String content</payment_type>
        <payment_type_format>2147483647</payment_type_format>
        <payment_type_id>2147483647</payment_type_id>
      </PaymentPrintData>
    </payments>
    <project_id>2147483647</project_id>
    <receipt_date>String content</receipt_date>
    <receipt_number>String content</receipt_number>
    <receipt_time>String content</receipt_time>
    <receipt_total>12678967.543233</receipt_total>
    <receipt_type>String content</receipt_type>
    <reference>2147483647</reference>
  </data>
</ReceiptDetailsResponse>

The following is an example response Json body:

{
	"error_code":2147483647,
	"client_message":"String content",
	"debug_message":"String content",
	"data":{
		"agent_id":2147483647,
		"comments":"String content",
		"company_address":"String content",
		"company_fax":"String content",
		"company_id":2147483647,
		"company_name":"String content",
		"company_phone":"String content",
		"crm_user_id":2147483647,
		"currency_id":2147483647,
		"customer_city":"String content",
		"customer_email":"String content",
		"customer_id":2147483647,
		"customer_id_number":2147483647,
		"customer_name":"String content",
		"customer_phone":"String content",
		"customer_zipcode":2147483647,
		"exchange_rate":12678967.543233,
		"payments":[{
			"account_number":"String content",
			"amount":12678967.543233,
			"bank":2147483647,
			"branch":2147483647,
			"check_number":2147483647,
			"details":"String content",
			"due_date":"String content",
			"line_number":2147483647,
			"payment_type":"String content",
			"payment_type_format":2147483647,
			"payment_type_id":2147483647
		}],
		"project_id":2147483647,
		"receipt_date":"String content",
		"receipt_number":"String content",
		"receipt_time":"String content",
		"receipt_total":12678967.543233,
		"receipt_type":"String content",
		"reference":2147483647
	}
}

The following is the request Xml Schema:

<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://api.rivhit.co.il" elementFormDefault="qualified" targetNamespace="http://api.rivhit.co.il" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="ReceiptLastRequestDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="api_token" type="ser:guid" />
      <xs:element minOccurs="0" name="receipt_type" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ReceiptLastRequestDTO" nillable="true" type="tns:ReceiptLastRequestDTO" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://api.rivhit.co.il" elementFormDefault="qualified" targetNamespace="http://api.rivhit.co.il" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ReceiptDetailsResponse">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Response">
        <xs:sequence>
          <xs:element minOccurs="0" name="data" nillable="true" type="tns:ReceiptDetailsData" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ReceiptDetailsResponse" nillable="true" type="tns:ReceiptDetailsResponse" />
  <xs:complexType name="Response">
    <xs:sequence>
      <xs:element minOccurs="0" name="error_code" type="xs:int" />
      <xs:element minOccurs="0" name="client_message" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="debug_message" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Response" nillable="true" type="tns:Response" />
  <xs:complexType name="ReceiptDetailsData">
    <xs:sequence>
      <xs:element minOccurs="0" name="agent_id" type="xs:int" />
      <xs:element minOccurs="0" name="comments" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="company_address" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="company_fax" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="company_id" type="xs:int" />
      <xs:element minOccurs="0" name="company_name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="company_phone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="crm_user_id" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="currency_id" type="xs:int" />
      <xs:element minOccurs="0" name="customer_city" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="customer_email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="customer_id" type="xs:int" />
      <xs:element minOccurs="0" name="customer_id_number" type="xs:int" />
      <xs:element minOccurs="0" name="customer_name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="customer_phone" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="customer_zipcode" type="xs:int" />
      <xs:element minOccurs="0" name="exchange_rate" type="xs:decimal" />
      <xs:element minOccurs="0" name="payments" nillable="true" type="tns:ArrayOfPaymentPrintData" />
      <xs:element minOccurs="0" name="project_id" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="receipt_date" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="receipt_number" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="receipt_time" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="receipt_total" type="xs:decimal" />
      <xs:element minOccurs="0" name="receipt_type" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="reference" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ReceiptDetailsData" nillable="true" type="tns:ReceiptDetailsData" />
  <xs:complexType name="ArrayOfPaymentPrintData">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PaymentPrintData" nillable="true" type="tns:PaymentPrintData" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPaymentPrintData" nillable="true" type="tns:ArrayOfPaymentPrintData" />
  <xs:complexType name="PaymentPrintData">
    <xs:sequence>
      <xs:element minOccurs="0" name="account_number" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="amount" type="xs:decimal" />
      <xs:element minOccurs="0" name="bank" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="branch" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="check_number" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="details" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="due_date" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="line_number" type="xs:int" />
      <xs:element minOccurs="0" name="payment_type" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="payment_type_format" type="xs:int" />
      <xs:element minOccurs="0" name="payment_type_id" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PaymentPrintData" nillable="true" type="tns:PaymentPrintData" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>