Order Controller
Create customer upSell order
Allows customers to purchase recommended products. Fetches details from parent order. No authentication required.
post/orders/upsell
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,
"instrumentCopyNumber": "123456789"
}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
No recorded changes to this endpoint across all 1 revision of this API.