You can also create the Smart Transaction with the basket and the secucard from the beginning.  It is the same endpoint POST /api/v2/Smart/Transactions. The additional parameters are the same as in the update request in the section before.

Request
POST /api/v2/Smart/Transactions HTTP/1.1
Host: connect-testing.secuconnect.com
Authenticate: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Content-Type: application/json
Accept: application/json
 
{
"idents": [
{
"type": "card",
"value": "9276004429942845"
}
],
"basket": {
"products": [
{
"id": 1,
"parent": null,
"articleNumber": 30037,
"ean": null,
"desc": "Sandwich Romano",
"quantity": 1,
"priceOne": 349,
"tax": 7
},
{
"id": 2,
"parent": null,
"articleNumber": 30200,
"ean": null,
"desc": "Fruit salad, small bowl",
"quantity": 1,
"priceOne": 249,
"tax": 7
},
{
"id": 3,
"parent": null,
"articleNumber": 51,
"ean": "4999012345678",
"desc": "Water, mildly sprinkling, 0.25 ltr.",
"quantity": 2,
"priceOne": 99,
"tax": 19
}
]
},
"basket_info": {
"sum": 796,
"currency": "EUR"
},
"merchantRef": "customer nr. 123",
"transactionRef": "order nr. 123"
}

This creates a Smart Transaction about €7.96. The gross unit prices of the articles in the basket are €3.49, €2.49 and €0.99.

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

The response looks exactly like that in the section before (Update Smart Transaction).