Full Example

The basket items are passed in the object node basket/products. Marketplaces can pass a mixed basket for multiple merchants.

Since mixed baskets are more complex than regular ones, we will discuss this one step after another. The first code block shows the full example with the basket together with its basket_info object:

Smart Transaction
{
// ...
   "basket": {
"products": [
{
"item_type": "sub_transaction",
"desc": "Order for Muster-Elektrogeräte GmbH",
"sum": 9350,
"reference_id": "1002",
"contract_id": "GCR_ZPMJGRH4SU3X0H3Y3WYB69XVXAG8PJ",
"sub_basket": [
{
"id": 1,
"ean": "4999900012342",
                        "articleNumber": 1,
"desc": "Coffee maker with remote control",
"quantity": 2,
"priceOne": 5000,
"tax": 19
},
{
"id": 2,
"item_type": "coupon",
"desc": "Coupon €10",
"quantity": 1,
"priceOne": 1000,
"tax": 0
},
{
"id": 1000,
"item_type": "shipping",
"name": "Standard delivery 2-3 days",
"quantity": 1,
"priceOne": 350,
"tax": "19"
},
{
"item_type": "stakeholder_payment",
"desc": "Marketplace fee",
"sum": 150,
"reference_id": "fee",
"contract_id": "GCR_2H69XY35227V2VKP9WRA3SJ0W95RP0"
}
]
}
]
},
"basket_info": {
"sum": 9350,
"currency": "EUR"
},
   // ...
}