Delivery Details for Shipping

A Smart Transaction can store delivery details for you. You can specify the delivery type while creating the Smart Transaction, or with a later update.

In our example we create a Smart Transaction for an order with delivery type shipping:

Request
POST /api/v2/Smart/Transactions HTTP/1.1
Host: connect-testing.secupay-ag.de
Content-Type: application/json
Accept: application/json
 
{
// ...
"intent": "order",
// ...
"delivery_options": {
"type": "shipping"
}
}

If everything is fine, the API responds with status 200 OK, and the representation of the Smart Transaction:

Response
HTTP/1.1 200 OK
Content-Type: application/json
...
 
{
"object": "smart.transactions",
"id": "STX_WNUPCCR822NTDB0PP9A0E3FPYEANA2",
// ...
"intent": "order",
// ...
   "delivery_options": {
"type": "shipping",
"shipped_at": null,
"shipped_by": null,
"tracking_code": null,
"invoice_number": null
},
// ...
}

As you can see, we see more details now that have not been set so far. You will learn later, when and how to mark actual delivery and to set the shipping details.