Creating and modifying the order
When an item is payable by voucher, you must indicate it by sending the list of MIDs concerned at the level of the “items” object, as follows:
"vouchers":[ { "contract_type":"CVCONNECT" } ]
For CONECS MIDs, you must also specify the eligible amount (always in the smallest currency unit).
Example:
"vouchers":[ { "contract_type":"CONECS", "eligible_amount":1900 } ]
You have the possibility to mention several MIDs for the same item.
Example:
... "items":[ { "seller":"6f167596-07f2-4256-9210-7b4ab54fc3b9", "reference":"Buffet1", "description":"Buffet 1", "amount":8000, "type":"FOOD", "vouchers":[ { "contract_type":"CVCONNECT" }, { "contract_type":"CONECS", "eligible_amount":1400 } ] }, ... ] ...
In this example, “Buffet 1” is payable:
- by Titre-Restaurant (CONECS) up to €14,
- by Chèque-Vacances (CVCONNECT),
- or by both.
In this case, depending on the payment method chosen by the end buyer, the order may eventually result in creating one, two or three transactions.
- 1 transaction:
- By classic card (CB, VISA, MasterCard, etc.) for the whole amount of €80
- Or by Chèque-Vacances for €80
- 2 transactions:
- By CONECS + classic card (CB, VISA, MasterCard, etc.)
- By CONECS + CVCONNECT
- Or by CVCONNECT + classic card (CB, VISA, MasterCard, etc.)
- 3 transactions:
- By CONECS + CVCONNECT + classic card (CB, VISA, MasterCard, etc.)