Order Controller
Create customer upSell order
Changed onAllows customers to purchase recommended products. Fetches details from parent order. No authentication required.
post/orders/upsell
Request
- Base URLhttps://api.findmydocument.net
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"parentOrderId": 123,
"productIds": [
2,
3,
5
],
"upSellSource": "ORDER",
"orderLng": "en",
"suburb": "Ponsonby",
"shippingAddress1": "221B Baker Street",
"shippingAddress2": "Marylebone",
"shippingCity": "London",
"shippingPostcode": "NW1 6XE",
"shippingCounty": "Greater London",
"shippingPhone": "+441234567890",
"shippingFirstName": "Sherlock",
"shippingLastName": "Holmes",
"hasSwimmingPool": true,
"applicantFirstName": "John",
"applicantLastName": "Smith",
"instrumentCopyNumber": "123456789",
"productType": "pf"
}Response
UpSell order created 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