Page History
Table of Contents |
---|
The cheque in the order
The cheque is passed within the authorization request. An additional parameter ChequeItems must be passed in the request. The ChequeItems parameter should contain a structure in JSON-format looking like a following example.
...
Name | Mandatory | Type | Description |
id | Yes | int | # of the cheque's position |
product | Yes/ No* | string(50) | Product's code |
name | Yes/ No* | string(250) | Product's name |
price | Yes | float(10.2) | The cost of a product unit in Russian rubles (RUB) |
quantity | Yes | float | The product's quantity in the units of the product measurements |
amount | Yes | float(18.2) | The cost of a specified quantity of product |
tax | Yes** | string(10) | |
hscode | No | string(13) | Code of Harmonized Commodity Description and Coding System (13 digits) |
fpmode | No** | int |
...
Code Block | ||
---|---|---|
| ||
{"items":[ { "id": 1, "product": "123460176", "name": "First item", "price": 201.45, "quantity": 21.12, "amount": 8530.40, "tax": "vat10"}, "fpmode": 1} { "id": 2, "product": "123460189", "name": "Second item", "price": 15301.01, "quantity": 0.064, "amount": 979.26, "tax": "vat20"}, "fpmode": 1} ]} |
To send a recurring payment cheque via SOAP method, only an additional repeating structure ChequeItem is added, in which the cheque items are transferred, as in following example.
Example of cheque item structures ChequeItem:
Code Block | ||
---|---|---|
| ||
<chequeitem>
<id>1</id>
<product>123460176</product>
<name>First item</name>
<price>201.45</price>
<quantity>21.12</quantity>
<amount>8530.40</amount>
<tax> vat10</tax>
<fpmode>1</fpmode>
</chequeitem>
<chequeitem>
<id>2</id>
<product>123460176</product>
<name>Second item</name>
<price>15301.01</price>
<quantity>0.064</quantity>
<amount>979.26</amount>
<tax> vat20</tax>
<fpmode>1</fpmode>
</chequeitem> |