Pass a Shipping Fee

The basket of a Smart Transaction can also contain a shipping fee. You can pass it while creating the Smart Transaction, or with a later update.

Smart Transaction
POST /api/v2/Smart/Transactions HTTP/1.1
Host: connect-testing.secupay-ag.de
Content-Type: application/json
Accept: application/json
 
{
// ...
"basket": {
"products": [
{
"id": 1,
"articleNumber": 1,
"desc": "Coffee maker with remote control",
"quantity": 1,
"priceOne": 3495,
"tax": 19
},
{
"id": 999,
"item_type": "shipping",
"name": "Standard delivery 2-3 days",
"tax": "19",
"total": 350
}
]
},
"basket_info": {
"sum": 3845,
"currency": "EUR"
},
// ...
}

The shipping fee is passed in line 18-24. There is a special basket item for it. It is €3.50 incl. value-added tax (VAT). The shipping fee is also in the total sum (line 28).

Monetary amounts are expressed in the smallest currency unit (e. g. Euro Cent).