You can change basic info (head) of order with this method.
Please note following rules
email.. maxLength 100 charactersphone.. maxLength 32 charactersbillingAddress.company.. maxLength 255 charactersbillingAddress.fullName.. maxLength 255 charactersbillingAddress.street.. maxLength 255 charactersbillingAddress.houseNumber.. maxLength 255 charactersbillingAddress.city.. maxLength 255 charactersbillingAddress.district.. maxLength 255 charactersbillingAddress.additional.. maxLength 255 charactersbillingAddress.zip.. maxLength 255 charactersbillingAddress.regionName.. maxLength 255 charactersbillingAddress.regionShortcut.. maxLength 255 charactersbillingAddress.companyId.. maxLength 18 charactersbillingAddress.vatId.. maxLength 16 charactersbillingAddress.taxId.. maxLength 16 charactersdeliveryAddress.company.. maxLength 255 charactersdeliveryAddress.fullName.. maxLength 255 charactersdeliveryAddress.street.. maxLength 255 charactersdeliveryAddress.houseNumber.. maxLength 255 charactersdeliveryAddress.city.. maxLength 255 charactersdeliveryAddress.district.. maxLength 255 charactersdeliveryAddress.additional.. maxLength 255 charactersdeliveryAddress.zip.. maxLength 255 charactersdeliveryAddress.regionName.. maxLength 255 charactersdeliveryAddress.regionShortcut.. maxLength 255 characters
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/orders/{code}/head
- https://api.myshoptet.comhttps://api.myshoptet.com/api/orders/{code}/head
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X PATCH \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/orders/2018000012/head \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE' \
-d '{
"data": {
"creationTime": "2018-01-21T14:15:47+0100",
"email": "foo@bar.cz",
"phone": "+420123456789",
"birthDate": "1990-01-01",
"customerGuid": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed",
"addressesEqual": true,
"billingAddress": {
"company": "Smith & Smith",
"fullName": "John Doe",
"street": "Main Street",
"houseNumber": "123",
"city": "Flat Country",
"district": "Bohemia",
"additional": "3rd floor",
"zip": "123 00",
"countryCode": "CZ",
"regionName": "Central Bohemia",
"regionShortcut": "SC",
"companyId": "123456",
"vatId": "CZ123456",
"taxId": "CZ123456"
},
"deliveryAddress": {
"company": "Smith & Smith",
"fullName": "John Doe",
"street": "Main Street",
"houseNumber": "123",
"city": "Flat Country",
"district": "Bohemia",
"additional": "3rd floor",
"zip": "123 00",
"countryCode": "CZ",
"regionName": "Central Bohemia",
"regionShortcut": "SC"
}
}
}'{ "data": { "order": { … } }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }