Use an Existing Payment Container

If you want to authorize with an existing Payment Container, you make nearly the same call, but you pass the Payment Container ID instead of the account details:

Request
POST /api/v2/Smart/Transactions/STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2/prepare/debit HTTP/1.1
Host: connect-testing.secupay-ag.de
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Content-Type: application/json
Accept: application/json
 
{
"container": {
"id"
 }
}

The outcome is the same:

Response
HTTP/1.1 200 OK
Content-Type: application/json
...
{
"object": "smart.transactions",
"id": "STX_33PXAW2YN2NJTPM5KPGMK7QF5PBVA2",
// ...
"container": {
"object": "payment.containers",
"id": "PCT_J0KNRWG67AV66AHKXRF2BU82N90ZES"
},
"transactions": [
{
"object": "payment.transactions",
"id": "PCI_FDBREW9ZS7P6FTN4ZY2ATC6NK0QWO7"
}
],
"created": "2020-03-27T10:55:23+01:00",
"updated": "2020-03-27T10:56:10+01:00",
  "status": "approved",
// ...
}

This is particularly helpful for providing an express checkout experience. If needed, you can also create the Payment Container without utilizing the Smart Transaction.