Set Customer Details Inline

The customer details can be passed to the Smart Transaction when it is created or updated. The Smart Transaction takes care to create the needed Payment Customer for you.

Request
POST /api/v2/Smart/Transactions HTTP/1.1
Host: connect-testing.secupay-ag.de
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Content-Type: application/json
Accept: application/json
 
{
// ...
"customer": {
"contact": {
        "forename": "Max",
"surname": "Mustermann",
          "companyname": "Musterfirma GmbH",
           "address": {
"street": "Musterstr.",
"street_number": "55",
"postal_code": "09999",
"city": "Musterstadt",
"country": "DE"
},
"email": "m.mustermann@example.com",
"phone": "+495555555555"
}
},
// ...
}

If everthing is fine, the API responds with 200 OK, and the object representation:

Response
HTTP/1.1 200 OK
Content-Type: application/json
...
 
{
"object": "smart.transactions",
"id": "STX_XUC7NEHFB2X0H6AH2N9GW4ND030AA3",
// ...
"customer": {
"object": "payment.customers",
"id": "PCU_EA2M2F8VP2X0H6AH2N9GW4ND030AA2",
"contact": {
"forename": "Max",
"surname": "Mustermann",
          "companyname": "Musterfirma GmbH",
         "name": "Max Mustermann",
"address": {
"street": "Musterstr.",
"street_number": "55",
"additional_address_data": "App. 902",
"postal_code": "09999",
"city": "Musterstadt",
"country": "DE"
},
"email": "max5@example.org",
"mobile": "+491775555555",
"phone": "+495555555555",
"dob": "1965-12-31T00:00:00+01:00"
}
},
// ...
}

The new Payment Customer has the ID PCU_EA2M2F8VP2X0H6AH2N9GW4ND030AA2.