Order Payment

<RK7Query>
	<RK7CMD CMD="PayOrder">
		<Order guid="{668401AA-BD04-4935-B76C-C8506CC8EF36}"/>
		<Cashier code="5"/>
		<Station code="1"/>
		<Payment id="1" amount="50000"/>
		<Payment id="1030240" amount="10000"/>
	</RK7CMD>
</RK7Query>

Where:

  • Worker — access by code, ID or GUID
  • Station
  • Payment — the payment currency. There may be several currencies
  • Amount — the amount is multiplied by 100

To fulfill the request, it is necessary that the amount of all payments exactly match the amount of the order at the time of payment. If the amount is insufficient, an error will be returned.

Prepayment

The structure is similar to filling an order:

<RK7Query>
 <RK7CMD CMD="SaveOrder">
  <Order guid="{BED30F72-70B1-4929-AF40-A36E652FDC10}"/>
  <Session>
   <Prepay id="1" amount="60000">
    <Reason id="1043926"/>
   </Prepay>
  </Session>
 </RK7CMD>
</RK7Query>

Where:

  • Prepay —  prepayment currency
  • amount - the amount is multiplied by 100
  • Reason — the reason for the prepayment. A required tag.

Bill Printing

<RK7Query>
 <RK7CMD CMD="PrintBill">
	<Order guid="{A3A3D2B0-A1E1-41CF-90AA-6A814A939423}"/>
	<Station code="1"/>
	<Cashier code="2"/>
 </RK7CMD>	
</RK7Query>
  • No labels