Über diese Operation kann ein neues Test-Agenturpaket bestellt werden
POST https://api.mittwald.de/v1/orders/testagencies
The request body takes a complete TestAgencyOrderRequest resource, containing the following writable properties:
{
"customer": {
"city": "string",
"company": "string",
"country": "string",
"emailAddress": "email",
"firstName": "string",
"houseNumber": "string",
"lastName": "string",
"phone": "string",
"salutation": "string",
"street": "string",
"title": "string",
"zip": "string"
},
"isRegisteredForNewsletter": "boolean"
}
Name | Typ | Beschreibung | Weiteres |
---|---|---|---|
customer | object | TestHostingOrderCustomer | |
customer.city | string | Optional | |
customer.company | string | Optional | |
customer.country | string |
iso country short code (ISO 3166-1 alpha-2) |
|
customer.emailAddress | |||
customer.firstName | string | ||
customer.houseNumber | string | Optional | |
customer.lastName | string | ||
customer.phone | string | Optional | |
customer.salutation | string |
Mögliche Werte sind:
|
|
customer.street | string | Optional | |
customer.title | string | Optional | |
customer.zip | string of integer | Optional | |
isRegisteredForNewsletter | boolean | Optional |
Diese Operation kann mit den folgenden HTTP-Statuscodes antworten:
Statuscode | Beschreibung | Ressource |
---|---|---|
202 | Accepted Die Anfrage wurde zur Bearbeitung angenommen |
|
400 | Bad Request Ungültige Anfrage. Dies kann beispielsweise geschehen, wenn die Anfrage ungültig codierte Inhalte enthält oder der Inhalt semantisch inkorrekt ist. |
Error |
403 | Forbidden Zugriff verweigert |
Error |
500 | Internal Server Error Bei der Verarbeitung der Anfrage ist ein Fehler aufgetreten. |
Error |