Orders
Create order
Creates an order for the site from the given mode, currency, invoice number, customer email, billing address, and line items, plus optional shipping address, shipping method, payment reference, and inventory sync strategy. Returns the created order.
post/api/sites/multiscreen/{site_name}/ecommerce/orders
Request
- Base URLhttps://api.duda.co
- URLhttps://api.duda.co/api/sites/multiscreen/{site_name}/ecommerce/orders
- AuthHTTP basic
Path parameters
site_namestring required
The site's unique name (its ID), returned when the site is created.
Request body
Example request
{
"currency": "CAD",
"external_id": "my-custom-id-123",
"invoice_number": "ECOMM-1001",
"email": "john.doe@example.org",
"items": [
{
"product_id": "abc123",
"name": "Red T-Shirt",
"image": "https://example.org/my-image.jpg",
"options": [
{
"name": "Color",
"value": "Red"
}
],
"quantity": 2,
"shippable": true,
"unit_price": 10.25,
"unit_weight": 14,
"unit_dimensions": {
"height": 10,
"width": 25,
"length": 12
},
"taxes": [
{
"name": "Federal tax",
"amount": 10.45
}
],
"discounts": [
{
"name": "End of season promotion",
"amount": 10.45
}
],
"metadata": "{\"foo\":\"bar\"}"
}
],
"shipping_method": {
"name": "Express shipping",
"cost": 10.34
},
"shipping_instructions": "Leave the box at the door. Beware of the dog!",
"payment": {
"transaction_id": "my-transaction-123"
},
"user_agent": "\n Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0\n Safari/537.36\n ",
"ip_address": "1.1.1.1",
"created": "2023-02-21T22:34:35.857Z",
"metadata": "{\"foo\": \"bar\"}"
}Response
Created
Changes
No recorded changes to this operation across all 1 revision of this API.