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.
An example of a cheque structure in the ChequeItems parameter:
{"items":[ { "id": 1, "product": "123460176", "name": "First item", "price": 201.45, "quantity": 42.345, "amount": 8530.40, "tax": "vat10"}, "hscode": "8528722001", "fpmode": 1}, { "id": 2, "product": "123460189", "name": "Second item", "price": 15301.01, "quantity": 0.128, "amount": 1958.53, "tax": "vat20"}, "fpmode": 1} ]} |
The following cheque item parameters are transfered in the structure:
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 |
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) | Tax rate identifier |
hscode | No | string(13) | Code of Harmonized Commodity Description and Coding System (13 digits) |
fpmode | No** | int | Payment method (see Annex) |