Reference for https://api.rivhit.co.il/online/RivhitOnlineAPI.svc/POS.Document

Create a new document (Invoice, Shipping List, Order, ect..)

Url: https://api.rivhit.co.il/online/RivhitOnlineAPI.svc/POS.Document

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:

<NewDocumentPOSRequest xmlns="http://api.rivhit.co.il">
  <session>String content</session>
  <document_type>2147483647</document_type>
  <customer_id>2147483647</customer_id>
  <last_name>String content</last_name>
  <first_name>String content</first_name>
  <address>String content</address>
  <city>String content</city>
  <zipcode>2147483647</zipcode>
  <phone>String content</phone>
  <id_number>2147483647</id_number>
  <reference>2147483647</reference>
  <order>String content</order>
  <agent_id>2147483647</agent_id>
  <paying_customer_id>2147483647</paying_customer_id>
  <project_id>2147483647</project_id>
  <comments>String content</comments>
  <sort_code>2147483647</sort_code>
  <discount_type>2147483647</discount_type>
  <discount_value>12678967.543233</discount_value>
  <price_include_vat>true</price_include_vat>
  <due_date>String content</due_date>
  <issue_date>String content</issue_date>
  <issue_time>String content</issue_time>
  <currency_id>2147483647</currency_id>
  <exchange_rate>12678967.543233</exchange_rate>
  <reject_item_quantity>true</reject_item_quantity>
  <no_update_inventory>true</no_update_inventory>
  <crm_user_id>2147483647</crm_user_id>
  <language>String content</language>
  <items>
    <DocumentItemRow>
      <item_id>2147483647</item_id>
      <catalog_number>String content</catalog_number>
      <quantity>12678967.543233</quantity>
      <bruto_price_nis>12678967.543233</bruto_price_nis>
      <price_nis>12678967.543233</price_nis>
      <currency_id>2147483647</currency_id>
      <price_mtc>12678967.543233</price_mtc>
      <exchange_rate>12678967.543233</exchange_rate>
      <storage_id>2147483647</storage_id>
      <description>String content</description>
      <serial_number>String content</serial_number>
      <exempt_vat>true</exempt_vat>
      <closed_document_type>2147483647</closed_document_type>
      <closed_document_num>2147483647</closed_document_num>
      <closed_document_line>2147483647</closed_document_line>
    </DocumentItemRow>
    <DocumentItemRow>
      <item_id>2147483647</item_id>
      <catalog_number>String content</catalog_number>
      <quantity>12678967.543233</quantity>
      <bruto_price_nis>12678967.543233</bruto_price_nis>
      <price_nis>12678967.543233</price_nis>
      <currency_id>2147483647</currency_id>
      <price_mtc>12678967.543233</price_mtc>
      <exchange_rate>12678967.543233</exchange_rate>
      <storage_id>2147483647</storage_id>
      <description>String content</description>
      <serial_number>String content</serial_number>
      <exempt_vat>true</exempt_vat>
      <closed_document_type>2147483647</closed_document_type>
      <closed_document_num>2147483647</closed_document_num>
      <closed_document_line>2147483647</closed_document_line>
    </DocumentItemRow>
  </items>
  <payments>
    <ReceiptPaymentPOSRow>
      <payment_type>2147483647</payment_type>
      <amount_nis>12678967.543233</amount_nis>
      <due_date>String content</due_date>
      <check_number>2147483647</check_number>
      <bank_code>2147483647</bank_code>
      <branch_number>2147483647</branch_number>
      <bank_account_number>String content</bank_account_number>
      <amount_mtc>12678967.543233</amount_mtc>
      <description>String content</description>
      <number_of_payments>2147483647</number_of_payments>
      <change>12678967.543233</change>
    </ReceiptPaymentPOSRow>
    <ReceiptPaymentPOSRow>
      <payment_type>2147483647</payment_type>
      <amount_nis>12678967.543233</amount_nis>
      <due_date>String content</due_date>
      <check_number>2147483647</check_number>
      <bank_code>2147483647</bank_code>
      <branch_number>2147483647</branch_number>
      <bank_account_number>String content</bank_account_number>
      <amount_mtc>12678967.543233</amount_mtc>
      <description>String content</description>
      <number_of_payments>2147483647</number_of_payments>
      <change>12678967.543233</change>
    </ReceiptPaymentPOSRow>
  </payments>
  <check_only>true</check_only>
  <document_number>2147483647</document_number>
  <branch_id>2147483647</branch_id>
  <station_id>2147483647</station_id>
  <workday_id>2147483647</workday_id>
  <thermal_print>true</thermal_print>
  <note>
    <action_type>2147483647</action_type>
    <ash_version>String content</ash_version>
    <card_due_date>String content</card_due_date>
    <card_name>String content</card_name>
    <card_number>String content</card_number>
    <card_type>2147483647</card_type>
    <credit_type>2147483647</credit_type>
    <deal_a>2147483647</deal_a>
    <deal_b>2147483647</deal_b>
    <deal_c>2147483647</deal_c>
    <deal_type>2147483647</deal_type>
    <def_datetime>1999-05-31T11:20:00</def_datetime>
    <defrayel_company_code>2147483647</defrayel_company_code>
    <defrayel_company_id>String content</defrayel_company_id>
    <extra_information>String content</extra_information>
    <first_amount>12678967.543233</first_amount>
    <is_foreign>2147483647</is_foreign>
    <mtc_code>2147483647</mtc_code>
    <note_ccc>2147483647</note_ccc>
    <note_ff>2147483647</note_ff>
    <note_sss>2147483647</note_sss>
    <payment_amount>12678967.543233</payment_amount>
    <payment_number>12678967.543233</payment_number>
    <program_information>String content</program_information>
    <stars_amount>12678967.543233</stars_amount>
    <terminal_name>String content</terminal_name>
    <terminal_number>String content</terminal_number>
    <total_amount>12678967.543233</total_amount>
  </note>
  <validate_id>true</validate_id>
</NewDocumentPOSRequest>

The following is an example request Json body:

{
	"session":"String content",
	"document_type":2147483647,
	"customer_id":2147483647,
	"last_name":"String content",
	"first_name":"String content",
	"address":"String content",
	"city":"String content",
	"zipcode":2147483647,
	"phone":"String content",
	"id_number":2147483647,
	"reference":2147483647,
	"order":"String content",
	"agent_id":2147483647,
	"paying_customer_id":2147483647,
	"project_id":2147483647,
	"comments":"String content",
	"sort_code":2147483647,
	"discount_type":2147483647,
	"discount_value":12678967.543233,
	"price_include_vat":true,
	"due_date":"String content",
	"issue_date":"String content",
	"issue_time":"String content",
	"currency_id":2147483647,
	"exchange_rate":12678967.543233,
	"reject_item_quantity":true,
	"no_update_inventory":true,
	"crm_user_id":2147483647,
	"language":"String content",
	"items":[{
		"item_id":2147483647,
		"catalog_number":"String content",
		"quantity":12678967.543233,
		"bruto_price_nis":12678967.543233,
		"price_nis":12678967.543233,
		"currency_id":2147483647,
		"price_mtc":12678967.543233,
		"exchange_rate":12678967.543233,
		"storage_id":2147483647,
		"description":"String content",
		"serial_number":"String content",
		"exempt_vat":true,
		"closed_document_type":2147483647,
		"closed_document_num":2147483647,
		"closed_document_line":2147483647
	}],
	"payments":[{
		"payment_type":2147483647,
		"amount_nis":12678967.543233,
		"due_date":"String content",
		"check_number":2147483647,
		"bank_code":2147483647,
		"branch_number":2147483647,
		"bank_account_number":"String content",
		"amount_mtc":12678967.543233,
		"description":"String content",
		"number_of_payments":2147483647,
		"change":12678967.543233
	}],
	"check_only":true,
	"document_number":2147483647,
	"branch_id":2147483647,
	"station_id":2147483647,
	"workday_id":2147483647,
	"thermal_print":true,
	"note":{
		"action_type":2147483647,
		"ash_version":"String content",
		"card_due_date":"String content",
		"card_name":"String content",
		"card_number":"String content",
		"card_type":2147483647,
		"credit_type":2147483647,
		"deal_a":2147483647,
		"deal_b":2147483647,
		"deal_c":2147483647,
		"deal_type":2147483647,
		"def_datetime":"\/Date(928138800000+0300)\/",
		"defrayel_company_code":2147483647,
		"defrayel_company_id":"String content",
		"extra_information":"String content",
		"first_amount":12678967.543233,
		"is_foreign":2147483647,
		"mtc_code":2147483647,
		"note_ccc":2147483647,
		"note_ff":2147483647,
		"note_sss":2147483647,
		"payment_amount":12678967.543233,
		"payment_number":12678967.543233,
		"program_information":"String content",
		"stars_amount":12678967.543233,
		"terminal_name":"String content",
		"terminal_number":"String content",
		"total_amount":12678967.543233
	},
	"validate_id":true
}

The following is an example response Xml body:

<DocumentCreateResponse xmlns="http://api.rivhit.co.il">
  <error_code>2147483647</error_code>
  <client_message>String content</client_message>
  <debug_message>String content</debug_message>
  <data>
    <document_type>2147483647</document_type>
    <document_number>2147483647</document_number>
    <customer_id>2147483647</customer_id>
    <document_identity>1627aea5-8e0a-4371-9022-9b504344e724</document_identity>
    <document_link>String content</document_link>
    <print_status>2147483647</print_status>
    <amount>12678967.543233</amount>
    <confirmation_number>2147483647</confirmation_number>
  </data>
</DocumentCreateResponse>

The following is an example response Json body:

{
	"error_code":2147483647,
	"client_message":"String content",
	"debug_message":"String content",
	"data":{
		"document_type":2147483647,
		"document_number":2147483647,
		"customer_id":2147483647,
		"document_identity":"1627aea5-8e0a-4371-9022-9b504344e724",
		"document_link":"String content",
		"print_status":2147483647,
		"amount":12678967.543233,
		"confirmation_number":2147483647
	}
}

The following is the request 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="NewDocumentPOSRequest">
    <xs:sequence>
      <xs:element name="session" nillable="true" type="xs:string" />
      <xs:element name="document_type" type="xs:int" />
      <xs:element name="customer_id" type="xs:int" />
      <xs:element minOccurs="0" name="last_name" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="first_name" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="address" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="city" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="zipcode" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="phone" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="id_number" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="reference" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="order" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="agent_id" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="paying_customer_id" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="project_id" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="comments" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="sort_code" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="discount_type" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="discount_value" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="price_include_vat" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="due_date" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="issue_date" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="issue_time" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="currency_id" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="exchange_rate" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="reject_item_quantity" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="no_update_inventory" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="crm_user_id" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="language" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element name="items" nillable="true" type="tns:ArrayOfDocumentItemRow" />
      <xs:element minOccurs="0" name="payments" nillable="true" type="tns:ArrayOfReceiptPaymentPOSRow">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="check_only" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="document_number" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="branch_id" type="xs:int" />
      <xs:element minOccurs="0" name="station_id" type="xs:int" />
      <xs:element minOccurs="0" name="workday_id" type="xs:int" />
      <xs:element minOccurs="0" name="thermal_print" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="note" nillable="true" type="tns:CreditCardNoteDTO" />
      <xs:element minOccurs="0" name="validate_id" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="NewDocumentPOSRequest" nillable="true" type="tns:NewDocumentPOSRequest" />
  <xs:complexType name="ArrayOfDocumentItemRow">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DocumentItemRow" nillable="true" type="tns:DocumentItemRow" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDocumentItemRow" nillable="true" type="tns:ArrayOfDocumentItemRow" />
  <xs:complexType name="DocumentItemRow">
    <xs:sequence>
      <xs:element minOccurs="0" name="item_id" type="xs:int" />
      <xs:element minOccurs="0" name="catalog_number" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="quantity" type="xs:decimal" />
      <xs:element minOccurs="0" name="bruto_price_nis" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="price_nis" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="currency_id" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="price_mtc" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="exchange_rate" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="storage_id" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="description" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="serial_number" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="exempt_vat" nillable="true" type="xs:boolean">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="closed_document_type" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="closed_document_num" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="closed_document_line" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DocumentItemRow" nillable="true" type="tns:DocumentItemRow" />
  <xs:complexType name="ArrayOfReceiptPaymentPOSRow">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ReceiptPaymentPOSRow" nillable="true" type="tns:ReceiptPaymentPOSRow" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfReceiptPaymentPOSRow" nillable="true" type="tns:ArrayOfReceiptPaymentPOSRow" />
  <xs:complexType name="ReceiptPaymentPOSRow">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:ReceiptPaymentRow">
        <xs:sequence>
          <xs:element minOccurs="0" name="change" nillable="true" type="xs:decimal">
            <xs:annotation>
              <xs:appinfo>
                <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
              </xs:appinfo>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ReceiptPaymentPOSRow" nillable="true" type="tns:ReceiptPaymentPOSRow" />
  <xs:complexType name="ReceiptPaymentRow">
    <xs:sequence>
      <xs:element name="payment_type" type="xs:int" />
      <xs:element minOccurs="0" name="amount_nis" type="xs:decimal" />
      <xs:element minOccurs="0" name="due_date" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="check_number" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="bank_code" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="branch_number" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="bank_account_number" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="amount_mtc" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="description" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="number_of_payments" nillable="true" type="xs:int">
        <xs:annotation>
          <xs:appinfo>
            <DefaultValue EmitDefaultValue="false" xmlns="http://schemas.microsoft.com/2003/10/Serialization/" />
          </xs:appinfo>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ReceiptPaymentRow" nillable="true" type="tns:ReceiptPaymentRow" />
  <xs:complexType name="CreditCardNoteDTO">
    <xs:sequence>
      <xs:element minOccurs="0" name="action_type" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ash_version" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="card_due_date" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="card_name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="card_number" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="card_type" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="credit_type" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="deal_a" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="deal_b" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="deal_c" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="deal_type" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="def_datetime" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="defrayel_company_code" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="defrayel_company_id" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="extra_information" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="first_amount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="is_foreign" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="mtc_code" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="note_ccc" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="note_ff" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="note_sss" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="payment_amount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="payment_number" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="program_information" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="stars_amount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="terminal_name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="terminal_number" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="total_amount" nillable="true" type="xs:decimal" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CreditCardNoteDTO" nillable="true" type="tns:CreditCardNoteDTO" />
</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: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="DocumentCreateResponse">
    <xs:complexContent mixed="false">
      <xs:extension base="tns:Response">
        <xs:sequence>
          <xs:element minOccurs="0" name="data" nillable="true" type="tns:DocumentCreateData" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="DocumentCreateResponse" nillable="true" type="tns:DocumentCreateResponse" />
  <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="DocumentCreateData">
    <xs:sequence>
      <xs:element minOccurs="0" name="document_type" type="xs:int" />
      <xs:element minOccurs="0" name="document_number" type="xs:int" />
      <xs:element minOccurs="0" name="customer_id" type="xs:int" />
      <xs:element minOccurs="0" name="document_identity" type="ser:guid" />
      <xs:element minOccurs="0" name="document_link" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="print_status" type="xs:int" />
      <xs:element minOccurs="0" name="amount" type="xs:decimal" />
      <xs:element minOccurs="0" name="confirmation_number" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DocumentCreateData" nillable="true" type="tns:DocumentCreateData" />
</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>