Pay Fully with the Secucard

Given you have called preTransaction and received a missing_sum of 0 (zero), and the order can be paid fully by secucard. You need to call the endpoint to execute a pure loyalty transaction:

Request
POST /api/v2/Smart/Transactions/STX_3QPGBB72F2NSPDS95JZPWA772DUMAZ/start/loyalty HTTP/1.1
Host: connect-testing.secupay-ag.de
Authenticate: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Accept: application/json

There is no need for a previous authorization call (endpoint POST /api/v2/Smart/Transactions/{id}/prepare) here.

If everything is fine, the API responds with HTTP status 200 OK, and the new object representation:

Response
HTTP/1.1 200 OK
Content-Type: application/json
...
{
"object": "smart.transactions",
"id": "STX_3QPGBB72F2NSPDS95JZPWA772DUMAZ",
// ...
"status": "ok",
// ...
"basket": {
"products": [{
"id": 1,
"parent": null,
"articleNumber": "30037",
"ean": "",
"desc": "Sandwich Romano",
"quantity": 1,
"priceOne": 349,
"tax": 7,
"group": [],
"serialNumber": null,
"item_type": "article",
"reference_id": null,
"contract_id": null,
"sum": null
}, {
"id": 2,
"parent": null,
"articleNumber": "30200",
"ean": "",
"desc": "Fruit salad, small bowl",
"quantity": 1,
"priceOne": 249,
"tax": 7,
"group": [],
"serialNumber": null,
"item_type": "article",
"reference_id": null,
"contract_id": null,
"sum": null
}, {
"id": 3,
"parent": null,
"articleNumber": "51",
"ean": "4999012345678",
"desc": "Water, mildly sprinkling, 0.25 ltr.",
"quantity": 2,
"priceOne": 99,
"tax": 19,
"group": [],
"serialNumber": null,
"item_type": "article",
"reference_id": null,
"contract_id": null,
"sum": null
}, {
"id": 4,
"parent": null,
"articleNumber": "111111117",
"ean": "111111117",
"desc": "Bonus Steuer 7",
"quantity": 1,
"priceOne": -53,
"tax": 7,
"group": [],
"serialNumber": null,
"item_type": "coupon",
"reference_id": null,
"contract_id": null,
"sum": null
}, {
"id": 5,
"parent": null,
"articleNumber": "1111111119",
"ean": "1111111119",
"desc": "Bonus Steuer 19",
"quantity": 1,
"priceOne": -18,
"tax": 19,
"group": [],
"serialNumber": null,
"item_type": "coupon",
"reference_id": null,
"contract_id": null,
"sum": null
}],
"texts": [],
"type": "default"
},
"receipt": [{
"type": "separator",
"value": {
"caption": "Kundenkarte"
}
}, {
"type": "name-value",
"value": {
"name": "Kartennummer:",
"value": "9276004424644352",
"decoration": []
}
}, {
"type": "name-value",
"value": {
"name": "TA Code:",
"value": "30061885",
"decoration": []
}
}, {
"type": "space"
}, {
"type": "textline",
"value": {
"text": "Umsatz erfasst:",
"decoration": []
}
}, {
"type": "textline",
"value": {
"text": "7,25 EUR",
"decoration": ["important"]
}
}, {
"type": "space"
}, {
"type": "textline",
"value": {
"text": "Bonus:",
"decoration": []
}
}, {
"type": "textline",
"value": {
"text": "0,72 EUR",
"decoration": ["important"]
}
}, {
"type": "space"
}, {
"type": "textline",
"value": {
"text": "Aktuelles Guthaben",
"decoration": []
}
}, {
"type": "textline",
"value": {
"text": "0,72 EUR",
"decoration": ["important"]
}
}],
"basket_info": {
"sum": 725,
"currency": "EUR",
"gratuity": null,
"missing_sum": 725
},
"idents": [{
"object": "smart.idents",
"id": "smi_1",
"prefix": "9276",
"name": "secucard Kundenkarte",
"type": "card",
"value": "9276004424644352",
"valid": true,
"merchantcard": {
"object": "loyalty.merchantcards",
"id": "MCD_2UXQJ84A62MENH7UWH6QXDYJSBNAA9",
"merchant": {
"object": "general.merchants",
"id": "MRC_WVHJQFQ4JNVYNG5B55TYK748ZCHQP8"
},
"created_for_merchant": {
"object": "general.merchants",
"id": "MRC_F40KSJYW5AAJHHC93TQ6C7A8X76WO6"
},
"card": {
"object": "loyalty.cards",
"id": "CRD_22H4H5D47Q44URN2K8KTP876H6M3PM",
"cardnumber": "9276004424644352",
"created": "2015-02-20T08:51:46+01:00"
},
"cardgroup": {
"object": "loyalty.cardgroups",
"id": "CRG_4VA6040D2DWRYHJKCWXZEW24654PRH",
"display_name": "Bonus",
"display_name_raw": "Bonus",
"stock_warn_limit": 0,
"picture": "https://connect.secucard.com/ds_g/8e79737df1e2513db48908b342c3cc436edf501a"
},
"created_for_store": {
"object": "general.stores",
"id": "STO_3522R8MS2MSHCN7D37UVJYR4P6C4PX"
},
"is_base_card": false,
"points": 0,
"cash_balance": 0,
"bonus_balance": 72,
"balance": 72,
"last_usage": "2020-10-28T14:16:10+01:00",
"last_charge": "2020-10-28T14:16:10+01:00",
"stock_status": "active",
"lock_status": "unlocked",
"passcode": 1,
"expiry_date": null
}
}],
"payment_method": "loyalty",
// ...
}