Order Controller
Update order (Open API)
Changed onOpen API to update order with all order details. Uses CreateUpdateOrderDto to update all fields including products, customer, address, shipping, and UTM tracking.
patch/orders/update/{id}
Request
- Base URLhttps://api.findmydocument.net
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idnumber required
Request body
Example request
{
"titleNumber": "TN123456",
"instrumentCopyNumber": "IC123456",
"customerEmail": "customer@example.com",
"customerId": 1,
"tenure": "Freehold",
"address1": "123 Main Street",
"flatUnit": "Flat 5B",
"municipality": "Madrid",
"registry": "Registro de la Propiedad",
"cruIdufir": "1234567890",
"cadastralRef": "1234567VK4700N0001AA",
"propertyType": "house",
"ownerName": "Juan García",
"floor": "3",
"door": "B",
"requestReason": "Purchase due diligence",
"identificationType": "None",
"identificationNumber": "X1234567L",
"nameAsPerIdentification": "John Doe",
"city": "London",
"suburb": "Ponsonby",
"county": "Greater London",
"postCode": "SW1A 1AA",
"country": "United Kingdom",
"state": "England",
"currency": "GBP",
"totalAmount": 199.99,
"orderStatusId": 1,
"products": [
{
"productId": 1
},
{
"productId": 2
}
],
"shippingAddress1": "456 Delivery Street",
"shippingAddress2": "Apartment 5B",
"shippingCity": "Manchester",
"shippingPostcode": "M1 1AA",
"shippingCounty": "Greater Manchester",
"shippingPhone": "+44 123 456 7890",
"shippingFirstName": "John",
"shippingLastName": "Doe",
"utmCampaign": "summer_sale",
"utmTerm": "land_registry",
"utmContent": "banner_ad",
"utmSource": "google",
"utmMedium": "cpc",
"applicantFirstName": "John",
"applicantLastName": "Smith",
"orderLng": "en",
"productType": "pf"
}Response
Order updated successfully
Example response
{
"orderId": 1,
"customerEmail": "customer@example.com",
"emailValid": true,
"emailValidationStatus": "UNKNOWN",
"isNewCustomer": true,
"documentAccessLink": "https://api.example.com/orders/track/abc-123-xyz"
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
- info
added the new
deenum value to the request property
- info