Download OpenAPI specification:Download
Create an order from cart.
Key Features:
Key Benefits:
Retrieves tenant's orders for administrative purposes. To be used by tenant's employees.
order.order_read
The request was successful. List of orders with details are returned.
Request was syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Some server side error occurred.
[- {
- "id": "orderId123456",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "additionalCode": {
- "code": "DFG-334-98330-X"
}
}, - "created": "2014-03-31T10:18:21.134Z",
- "completed": "2014-04-15T10:18:21.134Z",
- "status": "COMPLETED",
- "siteCode": "Germany",
- "countryCode": "DE",
- "deliveryWindowId": "5d230f973f05e303d5c30dba",
- "orderCycle": "2014-04-12T14:00:00.000Z",
- "entries": [
- {
- "id": "5c13ccdbba93e00008b8d274",
- "amount": 2,
- "orderedAmount": 2,
- "originalAmount": 450,
- "originalPrice": 450,
- "unitPrice": 420,
- "totalPrice": 840,
- "authorizedAmount": 840,
- "product": {
- "description": "A mug you've always wanted !",
- "name": "Mug",
- "sku": "mug-product",
- "published": true,
- "images": [
- {
- "id": "media123456",
}
]
}
}, - {
- "id": "1234547",
- "amount": 5,
- "orderedAmount": 5,
- "originalAmount": 250,
- "originalPrice": 450,
- "unitPrice": 240,
- "totalPrice": 1200,
- "authorizedAmount": 1200,
- "product": {
- "metadata": {
}, - "description": "A Shirt you've always wanted !",
- "name": "Shirt",
- "sku": "shirt-product",
- "published": true,
- "images": [
- {
- "id": "media1234567",
}
], - "mixins": {
- "color": {
- "red": 234,
- "green": 231,
- "blue": 123
}
}
}
}
], - "discounts": [
- {
- "code": "SUMMER_SALE",
- "name": "Summer Sale 10% off everything",
- "amount": 204,
- "currency": "USD",
- "discountRate": 10,
- "sequenceId": 1,
- "link": {
- "id": "B2TD3JM",
- "type": "y-coupon",
}
}
], - "customer": {
- "id": "C1234567890",
- "title": "Dr.",
- "name": "Example Buyer",
- "firstName": "Example",
- "lastName": "Buyer",
- "email": "noreply@emporix.com",
- "company": "emporix"
}, - "billingAddress": {
- "contactName": "Example Buyer",
- "street": "Nymphenburger Str.",
- "streetNumber": "86",
- "city": "Munich",
- "state": "Bavaria",
- "country": "Germany",
- "zipCode": "132 45",
- "contactPhone": "+49 1111 222 333"
}, - "shippingAddress": {
- "contactName": "Joe Smith",
- "companyName": "Cargo Services Airfreight",
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN",
- "contactPhone": "+86 182 9349 4663",
- "metadata": {
- "mixins": {
- "secondaryContactPhone": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"
}
}, - "mixins": {
- "secondaryContactPhone": {
- "number": "+86 334 0033 9934"
}
}
}, - "subTotalPrice": 1881,
- "totalPrice": 2041,
- "totalAuthorizedAmount": 2041,
- "currency": "USD",
- "payments": [
- {
- "status": "SUCCESS",
- "method": "STRIPE",
- "paymentResponse": "",
- "paidAmount": 2041,
- "currency": "USD"
}
], - "tax": {
- "total": {
- "amount": 150,
- "currency": "USD",
- "inclusive": false
}, - "lines": [
- {
- "amount": 150,
- "currency": "USD",
- "code": "VAT",
- "name": "Regular VAT",
- "rate": 10,
- "taxable": 1500,
- "sequenceId": 1,
- "inclusive": false
}
]
}, - "shipping": {
- "total": {
- "amount": 11.9,
- "currency": "USD"
}, - "lines": [
- {
- "amount": 10,
- "currency": "USD",
- "code": "dhlstd",
- "name": "DHL Standard",
- "localizedName": {
- "en": "DHL Standard",
- "de": "DHL Standard"
}, - "tax": {
- "total": {
- "amount": 1.9,
- "currency": "USD",
- "inclusive": false
}, - "rate": 19
}
}
]
}, - "shipments": [
- {
- "trackingNumber": "123987456",
- "carrier": "UPS",
- "shippedDate": "2016-06-25T16:22:52.966Z",
- "expectDeliveryOn": "2016-06-27"
}
]
}, - {
- "id": "orderId123457",
- "created": "2015-02-11T03:12:33.345Z",
- "status": "CREATED",
- "deliveryWindowId": "5d230f973f05e303d5c30dba",
- "siteCode": "Germany",
- "countryCode": "DE",
- "entries": [
- {
- "metadata": {
- "mixins": {
}
}, - "id": "5c13ccdbba93e00008b8d274",
- "amount": 1,
- "unitPrice": 420,
- "totalPrice": 420,
- "authorizedAmount": 420,
- "product": {
- "description": "A mug you've always wanted !",
- "name": "Mug",
- "sku": "mug-product",
- "published": true,
- "images": [
- {
- "id": "media123456",
}
]
}, - "mixins": {
- "additionalCode": {
- "code": "ABC"
}
}
}
], - "customer": {
- "id": "C1234567890",
- "title": "Dr.",
- "name": "Example Buyer",
- "firstName": "Example",
- "lastName": "Buyer",
- "email": "noreply@emporix.com",
- "company": "emporix",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "work_phone": {
- "number": "+86 334 0033 9934"
}
}
}, - "billingAddress": {
- "contactName": "Example Buyer",
- "street": "Nymphenburger Str.",
- "streetNumber": "86",
- "city": "Munich",
- "state": "Bavaria",
- "country": "DE",
- "zipCode": "132 45",
- "contactPhone": "+49 1111 222 333"
}, - "shippingAddress": {
- "contactName": "Joe Smith",
- "companyName": "Cargo Services Airfreight",
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN",
- "contactPhone": "+86 182 9349 4663",
- "metadata": {
- "mixins": {
- "secondaryContactPhone": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"
}
}, - "mixins": {
- "secondaryContactPhone": {
- "number": "+86 334 0033 9934"
}
}
}, - "totalPrice": 420,
- "totalAuthorizedAmount": 420,
- "currency": "USD",
- "quoteId": "Q10000160"
}
]
Creates an order by the tenant's employee, on behalf of a customer.
Note: The entries.originalAmount
is DEPRECATED. Use the entries.originalPrice
field instead.
order.order_create
The collection resource has been successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "entries": [
- {
- "id": "5c336893a981210009900071",
- "itemYrn": "urn:yaas:saasag:caasproduct:product:mytenant;5c336893a981210009900071",
- "amount": 3,
- "orderedAmount": 3,
- "effectiveQuantity": 3,
- "originalAmount": 34.9,
- "originalPrice": 34.9,
- "unitPrice": 34.9,
- "measurementUnit": {
- "value": 1,
- "unit": "H87"
}, - "totalPrice": 104.7,
- "authorizedAmount": 104.7,
- "product": {
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "id": "5c336893a981210009900071",
- "sku": "A705121365",
- "name": "Moët & Chandon Impérial Brut Champagner 0,375 l Flasche",
- "description": "Der Moët & Chandon Impérial ist der gelungenste Ausdruck des typischen Stils des Hauses. Ein lebhafter und generöser Champagner, der sich durch seine ausgeprägte Frucht, verführerische Gaumennote sowie durch eine elegante Reife auszeichnet.",
- "published": true,
- "images": [
- {
- "id": "8c135ce0-3c5c-4c86-9052-ba2ad2f761cc",
- "stored": false
}
], - "mixins": {
- "productCustomAttributes": {
- "activeTab": "CrossSellings",
- "brand": "59db24c530d7de000e47ba9c",
- "categoryPath": {
- "categoryLevel1": "getraenke-weine",
- "categoryLevel2": "weine",
- "prettyName": "moët-chandon-impérial-brut-champagner-0375-l-flasche",
- "categoryLevel3": ""
}, - "containsAlcohol": true,
- "crossSellings": [
- "5c333885a9812100098ff7c3",
- "5c333aa3a9812100098ff821",
- "5c33570aa9812100098ffd36",
- "5c334d22a9812100098ffb83"
], - "defaultOrderQuantity": 1,
- "deposit": 0,
- "deposits": [
- "59d6216289e840000ead05fb"
], - "inStock": true,
- "lastModifiedDate": "1546873061413",
- "lmiv": {
- "alcoholConcentration": "12",
- "foodBusinessOperator": "<p>Moët Hennessy Deutschland GmbH, Seidlstr. 23, 80335 München<br/></p>"
}, - "maxOrderQuantity": 25,
- "minOrderQuantity": 1,
- "orderUnit": "H87",
- "originCountry": "59db258c30d7de000e47bb21",
- "originRegion": "Champagne",
- "packagingDescription": "Glasflasche",
- "packagingGroup": "2_Standard",
- "packagingPosition": "1_Unten_unempfindlich",
- "packagingUnit": "0,375 l Flasche",
- "pricingMeasure": {
- "unitCode": "H87",
- "value": 1
}, - "pricingMeasurePrice": 34.9,
- "productState": "ok",
- "surcharge": "XXnnsv4m3a8BeRnk50YfQA==",
- "taxClass": "FULL",
- "unitPricingBaseMeasure": {
- "unitCode": "LTR",
- "value": 1
}, - "unitPricingMeasure": {
- "unitCode": "MLT",
- "value": 375
}, - "cutting": [ ],
- "labels": [ ],
- "servicePackaging": [ ],
- "longDescription": "",
- "lmivDescription": "",
- "lastModifiedUser": ""
}, - "salePricesData": {
- "salePrices": [
- {
- "salePriceAmount": 30.9,
- "salePriceEnd": "2020-03-01T23:59:00.000+0000",
- "salePriceStart": "2020-02-27T00:00:00.000+0000"
}
]
}
}
}, - "price": {
- "priceId": "5c3368958232760008f1df0b",
- "productId": "5c336893a981210009900071",
- "yrn": "urn:yaas:hybris:price:price:mytenant;5c3368958232760008f1df0b",
- "siteCode": "main",
- "currency": "EUR",
- "originalAmount": 34.9,
- "effectiveAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}, - "basePrice": {
- "effectiveAmount": 93.0666666667,
- "originalAmount": 93.0666666667,
- "measurementUnit": {
- "unitCode": "LTR",
- "quantity": 1
}
}, - "presentationPrice": {
- "effectiveAmount": 34.9,
- "originalAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}
}, - "metadata": {
- "createdAt": "2019-01-07T14:57:42.988Z",
- "modifiedAt": "2021-04-08T11:53:18.825Z",
- "version": 17
}
}, - "totalDiscount": {
- "currency": "EUR"
}, - "metadata": {
- "mixins": {
- "cartItemOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/cartItemOptionsMixIn.v2.json",
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "mixins": {
- "cartItemOptions": { },
- "productCustomAttributes": { },
- "fees": {
- "elements": [
- {
- "yrn": "urn:yaas:saasag:fee:fee:mytenant;59d6216289e840000ead05fb",
- "taxCode": "ZERO",
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}
}
], - "discounts": [ ],
- "customer": {
- "id": "C6193791300",
- "name": "Anna Schmit",
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "email": "anna.schmit@schmit.com",
- "metadata": {
- "mixins": {
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/customerGeneralAttributesMixIn.v4.json",
- "backofficeAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/accountBoMixIn.v3.json",
- "administration": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/administrativeMixIn.v4.json",
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json"
}
}, - "mixins": {
- "generalAttributes": {
- "lastDeliveryAddress": "a2cb0ce944",
- "invoiceNotDeliveryAddress": false,
- "birthday": "7.7.1972",
- "mobilePhone": "608232233",
- "contactPhone": "608232233",
- "customerType": "private",
- "customerNumber": "K701141"
}, - "backofficeAttributes": {
- "country": "DE"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "marketing": { },
- "administration": {
- "creationDate": "2020-12-08T13:39:45.813Z"
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}
}
}, - "siteCode": "main",
- "countryCode": "DE",
- "billingAddress": {
- "contactName": "Anna Schmit",
- "street": "Maximilianstrasse",
- "streetNumber": "55",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "shippingAddress": {
- "contactName": "Anna Schmit",
- "street": "Maximilianstrasse",
- "streetNumber": "55",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "payments": [
- {
- "status": "PENDING",
- "method": "cash-on-delivery",
- "paidAmount": 0,
- "currency": "EUR"
}
], - "shipping": {
- "total": {
- "amount": 20,
- "currency": "EUR"
}, - "lines": [
- {
- "amount": 20,
- "currency": "EUR",
- "code": "4-more_hours_timeframe",
- "tax": {
- "total": {
- "amount": 0,
- "currency": "USD",
- "inclusive": false
}, - "rate": 0
}, - "shippingTaxCode": "ZERO"
}
]
}, - "tax": {
- "total": {
- "amount": 0,
- "currency": "EUR",
- "inclusive": false
}
}, - "subTotalPrice": 104.7,
- "totalPrice": 124.7,
- "totalAuthorizedAmount": 124.7,
- "currency": "EUR",
- "metadata": {
- "mixins": {
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json",
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
}, - "version": 1
}, - "mixins": {
- "deliveryTime": {
- "replace": false,
- "deliveryDate": "2021-12-09T12:00:00.000Z",
- "deliveryTimeFrom": "15:00",
- "deliveryTimeTo": "22:00",
- "deliveryCosts": 20,
- "pickupSettings": "Fabrikstr. 5.",
- "deliveryTimeId": "5b5572a7f19a51001ad55509"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}, - "generalAttributes": {
- "extendedOrderStatus": "10",
- "orderType": "CUSTOMER_ORDER",
- "customerFirstOrder": false,
- "orderNumber": "B7022093"
}, - "payments": {
- "elements": [
- {
- "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:mytenant;cash-on-delivery",
- "fees": {
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}, - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}, - "orderCycle": "2021-12-09T12:00:00.000Z",
- "deliveryWindowId": "5b5572a7f19a51001ad55509",
- "deliveryWindow": {
- "id": "5b5572a61cf31a000f31eee4",
- "deliveryDate": "2023-06-06",
- "slotId": "5678-8756-3321-1234",
- "deliveryTimeRange": {
- "timeFrom": "06:00:00",
- "timeTo": "09:00:00"
}, - "deliveryCycle": "2021-12-09-11-test"
}, - "quoteId": "Q10000160",
- "channel": { }
}
{- "id": "1234546"
}
Retrieves the number of orders for the specified query and siteCode. To be used by tenant's employees.
order.order_read
The request was successful. Number of orders returned in header.
Request syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Some server side error occurred.
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "client-owner",
- "message": "must be between 3 and 16 characters",
- "type": "invalid_header"
}
]
}
Retrieves a specific order by order ID. To be used by tenant's employees.
order.order_read
The request was successful. Given order details are returned.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
{- "id": "orderId123456",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "additionalCode": {
- "code": "DFG-334-98330-X"
}
}, - "created": "2014-03-31T10:18:21.134Z",
- "completed": "2014-04-15T10:18:21.134Z",
- "status": "COMPLETED",
- "siteCode": "Germany",
- "countryCode": "DE",
- "deliveryWindowId": "5d230f973f05e303d5c30dba",
- "entries": [
- {
- "id": "5c13ccdbba93e00008b8d274",
- "amount": 2,
- "originalAmount": 450,
- "unitPrice": 420,
- "totalPrice": 840,
- "authorizedAmount": 840,
- "product": {
- "description": "A mug you've always wanted !",
- "name": "Mug",
- "sku": "mug-product",
- "published": true,
- "images": [
- {
- "id": "media123456",
}
]
}
}, - {
- "id": "1234547",
- "amount": 5,
- "originalAmount": 250,
- "unitPrice": 240,
- "totalPrice": 1200,
- "authorizedAmount": 1200,
- "product": {
- "metadata": {
}, - "description": "A Shirt you've always wanted !",
- "name": "Shirt",
- "sku": "shirt-product",
- "published": true,
- "images": [
- {
- "id": "media1234567",
}
], - "mixins": {
- "color": {
- "red": 234,
- "green": 231,
- "blue": 123
}
}
}
}
], - "discounts": [
- {
- "code": "SUMMER_SALE",
- "name": "Summer Sale 10% off everything",
- "amount": 204,
- "currency": "USD",
- "discountRate": 10,
- "sequenceId": 1,
- "link": {
- "id": "B2TD3JM",
- "type": "y-coupon",
}
}
], - "customer": {
- "id": "C1234567890",
- "title": "Dr.",
- "name": "Example Buyer",
- "firstName": "Example",
- "lastName": "Buyer",
- "email": "noreply@emporix.com",
- "company": "emporix"
}, - "billingAddress": {
- "contactName": "Example Buyer",
- "street": "Nymphenburger Str.",
- "streetNumber": "86",
- "city": "Munich",
- "state": "Bavaria",
- "country": "Germany",
- "zipCode": "132 45",
- "contactPhone": "+49 1111 222 333"
}, - "shippingAddress": {
- "contactName": "Joe Smith",
- "companyName": "Cargo Services Airfreight",
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN",
- "contactPhone": "+86 182 9349 4663",
- "metadata": {
- "mixins": {
- "secondaryContactPhone": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"
}
}, - "mixins": {
- "secondaryContactPhone": {
- "number": "+86 334 0033 9934"
}
}
}, - "subTotalPrice": 1881,
- "totalPrice": 2041,
- "totalAuthorizedAmount": 2041,
- "currency": "USD",
- "payments": [
- {
- "status": "SUCCESS",
- "method": "STRIPE",
- "paymentResponse": "",
- "paidAmount": 2041,
- "currency": "USD"
}
], - "tax": {
- "total": {
- "amount": 150,
- "currency": "USD",
- "inclusive": false
}, - "lines": [
- {
- "amount": 150,
- "currency": "USD",
- "code": "VAT",
- "name": "Regular VAT",
- "rate": 10,
- "taxable": 1500,
- "sequenceId": 1,
- "inclusive": false
}
]
}, - "shipping": {
- "total": {
- "amount": 11.9,
- "currency": "USD"
}, - "lines": [
- {
- "amount": 10,
- "currency": "USD",
- "code": "dhlstd",
- "name": "DHL Standard",
- "localizedName": {
- "en": "DHL Standard",
- "de": "DHL Standard"
}, - "tax": {
- "total": {
- "amount": 1.9,
- "currency": "USD",
- "inclusive": false
}, - "rate": 19
}
}
]
}, - "shipments": [
- {
- "trackingNumber": "123987456",
- "carrier": "UPS",
- "shippedDate": "2016-06-25T16:22:52.966Z",
- "expectDeliveryOn": "2016-06-27"
}
], - "quoteId": "Q10000160"
}
Updates an order with the specified order ID. To be used by tenant's employees.
order.order_update
order.order_update_completed
- for updating orders with a completed
statusSuccessful order update
Request syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Optimistic locking failed. User sends metadata/version attribute which is outdated (someone else updated order in the time user was performing his changes). User should retrieve the latest order data and retry the request.
Some server side error occurred.
{- "entries": [
- {
- "id": "5c336893a981210009900071",
- "itemYrn": "urn:yaas:saasag:caasproduct:product:mytenant;5c336893a981210009900071",
- "amount": 3,
- "orderedAmount": 3,
- "effectiveQuantity": 3,
- "originalAmount": 34.9,
- "originalPrice": 34.9,
- "unitPrice": 34.9,
- "measurementUnit": {
- "value": 1,
- "unit": "H87"
}, - "totalPrice": 104.7,
- "authorizedAmount": 104.7,
- "product": {
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "id": "5c336893a981210009900071",
- "sku": "A705121365",
- "name": "Moët & Chandon Impérial Brut Champagner 0,375 l Flasche",
- "description": "Der Moët & Chandon Impérial ist der gelungenste Ausdruck des typischen Stils des Hauses. Ein lebhafter und generöser Champagner, der sich durch seine ausgeprägte Frucht, verführerische Gaumennote sowie durch eine elegante Reife auszeichnet.",
- "published": true,
- "images": [
- {
- "id": "8c135ce0-3c5c-4c86-9052-ba2ad2f761cc",
- "stored": false
}
], - "mixins": {
- "productCustomAttributes": {
- "activeTab": "CrossSellings",
- "brand": "59db24c530d7de000e47ba9c",
- "categoryPath": {
- "categoryLevel1": "getraenke-weine",
- "categoryLevel2": "weine",
- "prettyName": "moët-chandon-impérial-brut-champagner-0375-l-flasche",
- "categoryLevel3": ""
}, - "containsAlcohol": true,
- "crossSellings": [
- "5c333885a9812100098ff7c3",
- "5c333aa3a9812100098ff821",
- "5c33570aa9812100098ffd36",
- "5c334d22a9812100098ffb83"
], - "defaultOrderQuantity": 1,
- "deposit": 0,
- "deposits": [
- "59d6216289e840000ead05fb"
], - "inStock": true,
- "lastModifiedDate": "1546873061413",
- "lmiv": {
- "alcoholConcentration": "12",
- "foodBusinessOperator": "<p>Moët Hennessy Deutschland GmbH, Seidlstr. 23, 80335 München<br/></p>"
}, - "maxOrderQuantity": 25,
- "minOrderQuantity": 1,
- "orderUnit": "H87",
- "originCountry": "59db258c30d7de000e47bb21",
- "originRegion": "Champagne",
- "packagingDescription": "Glasflasche",
- "packagingGroup": "2_Standard",
- "packagingPosition": "1_Unten_unempfindlich",
- "packagingUnit": "0,375 l Flasche",
- "pricingMeasure": {
- "unitCode": "H87",
- "value": 1
}, - "pricingMeasurePrice": 34.9,
- "productState": "ok",
- "surcharge": "XXnnsv4m3a8BeRnk50YfQA==",
- "taxClass": "FULL",
- "unitPricingBaseMeasure": {
- "unitCode": "LTR",
- "value": 1
}, - "unitPricingMeasure": {
- "unitCode": "MLT",
- "value": 375
}, - "cutting": [ ],
- "labels": [ ],
- "servicePackaging": [ ],
- "longDescription": "",
- "lmivDescription": "",
- "lastModifiedUser": ""
}, - "salePricesData": {
- "salePrices": [
- {
- "salePriceAmount": 30.9,
- "salePriceEnd": "2020-03-01T23:59:00.000+0000",
- "salePriceStart": "2020-02-27T00:00:00.000+0000"
}
]
}
}
}, - "price": {
- "priceId": "5c3368958232760008f1df0b",
- "productId": "5c336893a981210009900071",
- "yrn": "urn:yaas:hybris:price:price:mytenant;5c3368958232760008f1df0b",
- "siteCode": "main",
- "currency": "EUR",
- "originalAmount": 34.9,
- "effectiveAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}, - "basePrice": {
- "effectiveAmount": 93.0666666667,
- "originalAmount": 93.0666666667,
- "measurementUnit": {
- "unitCode": "LTR",
- "quantity": 1
}
}, - "presentationPrice": {
- "effectiveAmount": 34.9,
- "originalAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}
}, - "metadata": {
- "createdAt": "2019-01-07T14:57:42.988Z",
- "modifiedAt": "2021-04-08T11:53:18.825Z",
- "version": 17
}
}, - "totalDiscount": {
- "currency": "EUR"
}, - "metadata": {
- "mixins": {
- "cartItemOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/cartItemOptionsMixIn.v2.json",
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "mixins": {
- "cartItemOptions": { },
- "productCustomAttributes": { },
- "fees": {
- "elements": [
- {
- "yrn": "urn:yaas:saasag:fee:fee:mytenant;59d6216289e840000ead05fb",
- "taxCode": "ZERO",
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}
}
], - "discounts": [ ],
- "customer": {
- "id": "C6193791300",
- "name": "Anna Schmit",
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "email": "anna.schmit@schmit.com",
- "metadata": {
- "mixins": {
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/customerGeneralAttributesMixIn.v4.json",
- "backofficeAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/accountBoMixIn.v3.json",
- "administration": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/administrativeMixIn.v4.json",
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json"
}
}, - "mixins": {
- "generalAttributes": {
- "lastDeliveryAddress": "a2cb0ce944",
- "invoiceNotDeliveryAddress": false,
- "birthday": "7.7.1972",
- "mobilePhone": "608232233",
- "contactPhone": "608232233",
- "customerType": "private",
- "customerNumber": "K701141"
}, - "backofficeAttributes": {
- "country": "DE"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "marketing": { },
- "administration": {
- "creationDate": "2020-12-08T13:39:45.813Z"
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}
}
}, - "siteCode": "main",
- "countryCode": "DE",
- "billingAddress": {
- "contactName": "Anna Schmit",
- "street": "Eichendorffweg",
- "streetNumber": "5",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "shippingAddress": {
- "contactName": "Anna Schmit",
- "street": "Eichendorffweg",
- "streetNumber": "5",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "payments": [
- {
- "status": "PENDING",
- "method": "cash-on-delivery",
- "paidAmount": 0,
- "currency": "EUR"
}
], - "shipping": {
- "total": {
- "amount": 20,
- "currency": "EUR"
}, - "lines": [
- {
- "amount": 20,
- "currency": "EUR",
- "code": "4-more_hours_timeframe",
- "tax": {
- "total": {
- "amount": 0,
- "currency": "USD",
- "inclusive": false
}, - "rate": 0
}, - "shippingTaxCode": "ZERO"
}
]
}, - "tax": {
- "total": {
- "amount": 0,
- "currency": "EUR",
- "inclusive": false
}
}, - "subTotalPrice": 104.7,
- "totalPrice": 124.7,
- "totalAuthorizedAmount": 124.7,
- "currency": "EUR",
- "metadata": {
- "mixins": {
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json",
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
}, - "version": 1
}, - "mixins": {
- "deliveryTime": {
- "replace": false,
- "deliveryDate": "2021-12-09T12:00:00.000Z",
- "deliveryTimeFrom": "15:00",
- "deliveryTimeTo": "22:00",
- "deliveryCosts": 20,
- "pickupSettings": "Fabrikstr. 5.",
- "deliveryTimeId": "5b5572a7f19a51001ad55509"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}, - "generalAttributes": {
- "extendedOrderStatus": "10",
- "orderType": "CUSTOMER_ORDER",
- "customerFirstOrder": false,
- "orderNumber": "B7022093"
}, - "payments": {
- "elements": [
- {
- "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:mytenant;cash-on-delivery",
- "fees": {
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}, - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}, - "orderCycle": "2021-12-09T12:00:00.000Z",
- "deliveryWindowId": "5b5572a7f19a51001ad55509",
- "channel": { },
- "deliveryWindow": {
- "id": "5b5572a61cf31a000f31eee4",
- "deliveryDate": "2023-06-06",
- "slotId": "5678-8756-3321-1234",
- "deliveryTimeRange": {
- "timeFrom": "06:00:00",
- "timeTo": "09:00:00"
}, - "deliveryCycle": "2021-12-09-12-express"
}
}
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "client-owner",
- "message": "must be between 3 and 16 characters",
- "type": "invalid_header"
}
]
}
Updates partially an order with the specified order ID. To be used by tenant's employees.
order.order_update
order.order_update_completed
- for updating orders with a completed
statusSuccessful order update
Request syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Optimistic locking failed. User sends metadata/version attribute which is outdated (someone else updated order in the time user was performing his changes). User should retrieve the latest order data and retry the request.
Some server side error occurred.
{- "entries": [
- {
- "id": "5c336893a981210009900071",
- "itemYrn": "urn:yaas:saasag:caasproduct:product:mytenant;5c336893a981210009900071",
- "amount": 3,
- "orderedAmount": 3,
- "effectiveQuantity": 3,
- "originalAmount": 34.9,
- "originalPrice": 34.9,
- "unitPrice": 34.9,
- "measurementUnit": {
- "value": 1,
- "unit": "H87"
}, - "totalPrice": 104.7,
- "authorizedAmount": 104.7,
- "product": {
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "id": "5c336893a981210009900071",
- "sku": "A705121365",
- "name": "Moët & Chandon Impérial Brut Champagner 0,375 l Flasche",
- "description": "Der Moët & Chandon Impérial ist der gelungenste Ausdruck des typischen Stils des Hauses. Ein lebhafter und generöser Champagner, der sich durch seine ausgeprägte Frucht, verführerische Gaumennote sowie durch eine elegante Reife auszeichnet.",
- "published": true,
- "images": [
- {
- "id": "8c135ce0-3c5c-4c86-9052-ba2ad2f761cc",
- "stored": false
}
], - "mixins": {
- "productCustomAttributes": {
- "activeTab": "CrossSellings",
- "brand": "59db24c530d7de000e47ba9c",
- "categoryPath": {
- "categoryLevel1": "getraenke-weine",
- "categoryLevel2": "weine",
- "prettyName": "moët-chandon-impérial-brut-champagner-0375-l-flasche",
- "categoryLevel3": ""
}, - "containsAlcohol": true,
- "crossSellings": [
- "5c333885a9812100098ff7c3",
- "5c333aa3a9812100098ff821",
- "5c33570aa9812100098ffd36",
- "5c334d22a9812100098ffb83"
], - "defaultOrderQuantity": 1,
- "deposit": 0,
- "deposits": [
- "59d6216289e840000ead05fb"
], - "inStock": true,
- "lastModifiedDate": "1546873061413",
- "lmiv": {
- "alcoholConcentration": "12",
- "foodBusinessOperator": "<p>Moët Hennessy Deutschland GmbH, Seidlstr. 23, 80335 München<br/></p>"
}, - "maxOrderQuantity": 25,
- "minOrderQuantity": 1,
- "orderUnit": "H87",
- "originCountry": "59db258c30d7de000e47bb21",
- "originRegion": "Champagne",
- "packagingDescription": "Glasflasche",
- "packagingGroup": "2_Standard",
- "packagingPosition": "1_Unten_unempfindlich",
- "packagingUnit": "0,375 l Flasche",
- "pricingMeasure": {
- "unitCode": "H87",
- "value": 1
}, - "pricingMeasurePrice": 34.9,
- "productState": "ok",
- "surcharge": "XXnnsv4m3a8BeRnk50YfQA==",
- "taxClass": "FULL",
- "unitPricingBaseMeasure": {
- "unitCode": "LTR",
- "value": 1
}, - "unitPricingMeasure": {
- "unitCode": "MLT",
- "value": 375
}, - "cutting": [ ],
- "labels": [ ],
- "servicePackaging": [ ],
- "longDescription": "",
- "lmivDescription": "",
- "lastModifiedUser": ""
}, - "salePricesData": {
- "salePrices": [
- {
- "salePriceAmount": 30.9,
- "salePriceEnd": "2020-03-01T23:59:00.000+0000",
- "salePriceStart": "2020-02-27T00:00:00.000+0000"
}
]
}
}
}, - "price": {
- "priceId": "5c3368958232760008f1df0b",
- "productId": "5c336893a981210009900071",
- "yrn": "urn:yaas:hybris:price:price:mytenant;5c3368958232760008f1df0b",
- "siteCode": "main",
- "currency": "EUR",
- "originalAmount": 34.9,
- "effectiveAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}, - "basePrice": {
- "effectiveAmount": 93.0666666667,
- "originalAmount": 93.0666666667,
- "measurementUnit": {
- "unitCode": "LTR",
- "quantity": 1
}
}, - "presentationPrice": {
- "effectiveAmount": 34.9,
- "originalAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}
}, - "metadata": {
- "createdAt": "2019-01-07T14:57:42.988Z",
- "modifiedAt": "2021-04-08T11:53:18.825Z",
- "version": 17
}
}, - "totalDiscount": {
- "currency": "EUR"
}, - "metadata": {
- "mixins": {
- "cartItemOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/cartItemOptionsMixIn.v2.json",
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "mixins": {
- "cartItemOptions": { },
- "productCustomAttributes": { },
- "fees": {
- "elements": [
- {
- "yrn": "urn:yaas:saasag:fee:fee:mytenant;59d6216289e840000ead05fb",
- "taxCode": "ZERO",
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}
}
], - "discounts": [ ],
- "customer": {
- "id": "C6193791300",
- "name": "Anna Schmit",
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "email": "anna.schmit@schmit.com",
- "metadata": {
- "mixins": {
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/customerGeneralAttributesMixIn.v4.json",
- "backofficeAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/accountBoMixIn.v3.json",
- "administration": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/administrativeMixIn.v4.json",
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json"
}
}, - "mixins": {
- "generalAttributes": {
- "lastDeliveryAddress": "a2cb0ce944",
- "invoiceNotDeliveryAddress": false,
- "birthday": "7.7.1972",
- "mobilePhone": "608232233",
- "contactPhone": "608232233",
- "customerType": "private",
- "customerNumber": "K701141"
}, - "backofficeAttributes": {
- "country": "DE"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "marketing": { },
- "administration": {
- "creationDate": "2020-12-08T13:39:45.813Z"
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}
}
}, - "siteCode": "main",
- "countryCode": "DE",
- "billingAddress": {
- "contactName": "Anna Schmit",
- "street": "Eichendorffweg",
- "streetNumber": "5",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "shippingAddress": {
- "contactName": "Anna Schmit",
- "street": "Eichendorffweg",
- "streetNumber": "5",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "payments": [
- {
- "status": "PENDING",
- "method": "cash-on-delivery",
- "paidAmount": 0,
- "currency": "EUR"
}
], - "shipping": {
- "total": {
- "amount": 20,
- "currency": "EUR"
}, - "lines": [
- {
- "amount": 20,
- "currency": "EUR",
- "code": "4-more_hours_timeframe",
- "tax": {
- "total": {
- "amount": 0,
- "currency": "USD",
- "inclusive": false
}, - "rate": 0
}, - "shippingTaxCode": "ZERO"
}
]
}, - "tax": {
- "total": {
- "amount": 0,
- "currency": "EUR",
- "inclusive": false
}
}, - "subTotalPrice": 104.7,
- "totalPrice": 124.7,
- "totalAuthorizedAmount": 124.7,
- "currency": "EUR",
- "metadata": {
- "mixins": {
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json",
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
}, - "version": 1
}, - "mixins": {
- "deliveryTime": {
- "replace": false,
- "deliveryDate": "2021-12-09T12:00:00.000Z",
- "deliveryTimeFrom": "15:00",
- "deliveryTimeTo": "22:00",
- "deliveryCosts": 20,
- "pickupSettings": "Fabrikstr. 5.",
- "deliveryTimeId": "5b5572a7f19a51001ad55509"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}, - "generalAttributes": {
- "extendedOrderStatus": "10",
- "orderType": "CUSTOMER_ORDER",
- "customerFirstOrder": false,
- "orderNumber": "B7022093"
}, - "payments": {
- "elements": [
- {
- "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:mytenant;cash-on-delivery",
- "fees": {
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}, - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}, - "orderCycle": "2021-12-09T12:00:00.000Z",
- "deliveryWindowId": "5b5572a7f19a51001ad55509",
- "channel": { },
- "deliveryWindow": {
- "id": "5b5572a61cf31a000f31eee4",
- "deliveryDate": "2023-06-06",
- "slotId": "5678-8756-3321-1234",
- "deliveryTimeRange": {
- "timeFrom": "06:00:00",
- "timeTo": "09:00:00"
}, - "deliveryCycle": "2021-12-09-12-express"
}
}
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "client-owner",
- "message": "must be between 3 and 16 characters",
- "type": "invalid_header"
}
]
}
Deletes order with the specified ID. To be used by tenant's employees.
order.order_delete
Successful deletion
Request syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "client-owner",
- "message": "must be between 3 and 16 characters",
- "type": "invalid_header"
}
]
}
Retrieves all possible status transitions for a specific order. To be used by tenant's employees.
order.order_read
order.order_update
order.order_update_completed
- for orders with a completed
statusThe request was successful. Status transitions for specific order returned.
Request syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
[- {
- "status": "CONFIRMED"
}
]
Updates the status of a specific order. To be used by tenant's employees.
order.order_update
order.order_update_completed
- for updating orders with a completed
statusThe request was successful. Order was succesfully updated.
Request syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
{- "status": "DECLINED"
}
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "client-owner",
- "message": "must be between 3 and 16 characters",
- "type": "invalid_header"
}
]
}
Updates the number of entries in the specific order and recalculates it. To be used by tenant's employees.
order.order_update
order.order_update_completed
- for updating orders with a completed
statusArray of objects (Order Calculation DTO) Order recalculation DTO contains a list of entries, where each entry contains entry ID and delivered amount of items. |
Order recalculated successfully
Bad Request
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
{- "entries": [
- {
- "entryId": "5c336893a981210009900071",
- "deliveredAmount": 10
}, - {
- "entryId": "5c336893a981210009900072",
- "deliveredAmount": 1000,
- "unit": "GRM"
}
]
}
{- "status": 403,
- "message": "Not allowed to access this resource",
- "type": "insufficient_permissions"
}
Updates the entries in the specific order and recalculates it. If provided entry is already assigned to the order then quantity of this entry is updated. If you want to remove entry from order then set quantity to 0.
order.order_update
required | Array of objects (Entries of the order) |
The request was successful. Recalculated order is returned.
Bad Request
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
{- "entries": [
- {
- "productId": "1010234",
- "quantity": 1
}
]
}
{- "id": "orderId123456",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "additionalCode": {
- "code": "DFG-334-98330-X"
}
}, - "created": "2014-03-31T10:18:21.134Z",
- "completed": "2014-04-15T10:18:21.134Z",
- "status": "COMPLETED",
- "siteCode": "Germany",
- "countryCode": "DE",
- "deliveryWindowId": "5d230f973f05e303d5c30dba",
- "entries": [
- {
- "id": "5c13ccdbba93e00008b8d274",
- "amount": 2,
- "originalAmount": 450,
- "unitPrice": 420,
- "totalPrice": 840,
- "authorizedAmount": 840,
- "product": {
- "description": "A mug you've always wanted !",
- "name": "Mug",
- "sku": "mug-product",
- "published": true,
- "images": [
- {
- "id": "media123456",
}
]
}
}, - {
- "id": "1234547",
- "amount": 5,
- "originalAmount": 250,
- "unitPrice": 240,
- "totalPrice": 1200,
- "authorizedAmount": 1200,
- "product": {
- "metadata": {
}, - "description": "A Shirt you've always wanted !",
- "name": "Shirt",
- "sku": "shirt-product",
- "published": true,
- "images": [
- {
- "id": "media1234567",
}
], - "mixins": {
- "color": {
- "red": 234,
- "green": 231,
- "blue": 123
}
}
}
}
], - "discounts": [
- {
- "code": "SUMMER_SALE",
- "name": "Summer Sale 10% off everything",
- "amount": 204,
- "currency": "USD",
- "discountRate": 10,
- "sequenceId": 1,
- "link": {
- "id": "B2TD3JM",
- "type": "y-coupon",
}
}
], - "customer": {
- "id": "C1234567890",
- "title": "Dr.",
- "name": "Example Buyer",
- "firstName": "Example",
- "lastName": "Buyer",
- "email": "noreply@emporix.com",
- "company": "emporix"
}, - "billingAddress": {
- "contactName": "Example Buyer",
- "street": "Nymphenburger Str.",
- "streetNumber": "86",
- "city": "Munich",
- "state": "Bavaria",
- "country": "Germany",
- "zipCode": "132 45",
- "contactPhone": "+49 1111 222 333"
}, - "shippingAddress": {
- "contactName": "Joe Smith",
- "companyName": "Cargo Services Airfreight",
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN",
- "contactPhone": "+86 182 9349 4663",
- "metadata": {
- "mixins": {
- "secondaryContactPhone": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"
}
}, - "mixins": {
- "secondaryContactPhone": {
- "number": "+86 334 0033 9934"
}
}
}, - "subTotalPrice": 1881,
- "totalPrice": 2041,
- "totalAuthorizedAmount": 2041,
- "currency": "USD",
- "payments": [
- {
- "status": "SUCCESS",
- "method": "STRIPE",
- "paymentResponse": "",
- "paidAmount": 2041,
- "currency": "USD"
}
], - "tax": {
- "total": {
- "amount": 150,
- "currency": "USD",
- "inclusive": false
}, - "lines": [
- {
- "amount": 150,
- "currency": "USD",
- "code": "VAT",
- "name": "Regular VAT",
- "rate": 10,
- "taxable": 1500,
- "sequenceId": 1,
- "inclusive": false
}
]
}, - "shipping": {
- "total": {
- "amount": 11.9,
- "currency": "USD"
}, - "lines": [
- {
- "amount": 10,
- "currency": "USD",
- "code": "dhlstd",
- "name": "DHL Standard",
- "localizedName": {
- "en": "DHL Standard",
- "de": "DHL Standard"
}, - "tax": {
- "total": {
- "amount": 1.9,
- "currency": "USD",
- "inclusive": false
}, - "rate": 19
}
}
]
}, - "shipments": [
- {
- "trackingNumber": "123987456",
- "carrier": "UPS",
- "shippedDate": "2016-06-25T16:22:52.966Z",
- "expectDeliveryOn": "2016-06-27"
}
], - "quoteId": "Q10000160"
}
Retrieves a list of orders for a customer. To be used by customers on the storefront.
order.history_view
for logged in customers only.Some server side error occurred.
Request was syntactically incorrect. Any details will be provided within the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
Some server side error occurred.
[- {
- "id": "orderId123456",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "additionalCode": {
- "code": "DFG-334-98330-X"
}
}, - "created": "2014-03-31T10:18:21.134Z",
- "completed": "2014-04-15T10:18:21.134Z",
- "lastStatusChange": "2014-04-15T10:18:21.134Z",
- "status": "COMPLETED",
- "siteCode": "Germany",
- "countryCode": "DE",
- "deliveryWindowId": "5d230f973f05e303d5c30dba",
- "entries": [
- {
- "id": "5c13ccdbba93e00008b8d274",
- "amount": 2,
- "orderedAmount": 2,
- "originalAmount": 450,
- "originalPrice": 450,
- "unitPrice": 420,
- "totalPrice": 840,
- "authorizedAmount": 840,
- "product": {
- "description": "A mug you've always wanted !",
- "name": "Mug",
- "sku": "mug-product",
- "published": true,
- "images": [
- {
- "id": "media123456",
}
]
}
}, - {
- "id": "1234547",
- "amount": 5,
- "unitPrice": 240,
- "totalPrice": 1200,
- "authorizedAmount": 1200,
- "product": {
- "metadata": {
}, - "description": "A Shirt you've always wanted !",
- "name": "Shirt",
- "sku": "shirt-product",
- "published": true,
- "images": [
- {
- "id": "media1234567",
}
], - "mixins": {
- "color": {
- "red": 234,
- "green": 231,
- "blue": 123
}
}
}
}
], - "discounts": [
- {
- "code": "SUMMER_SALE",
- "name": "Summer Sale 10% off everything",
- "amount": 204,
- "currency": "USD",
- "discountRate": 10,
- "sequenceId": 1,
- "link": {
- "id": "B2TD3JM",
- "type": "y-coupon",
}
}
], - "customer": {
- "id": "C1234567890",
- "title": "Dr.",
- "name": "Example Buyer",
- "firstName": "Example",
- "lastName": "Buyer",
- "email": "noreply@emporix.com",
- "company": "emporix"
}, - "billingAddress": {
- "contactName": "Example Buyer",
- "street": "Nymphenburger Str.",
- "streetNumber": "86",
- "city": "Munich",
- "state": "Bavaria",
- "country": "Germany",
- "zipCode": "132 45",
- "contactPhone": "+49 1111 222 333"
}, - "shippingAddress": {
- "contactName": "Joe Smith",
- "companyName": "Cargo Services Airfreight",
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN",
- "contactPhone": "+86 182 9349 4663",
- "metadata": {
- "mixins": {
- "secondaryContactPhone": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"
}
}, - "mixins": {
- "secondaryContactPhone": {
- "number": "+86 334 0033 9934"
}
}
}, - "subTotalPrice": 1881,
- "totalPrice": 2041,
- "totalAuthorizedAmount": 2041,
- "currency": "USD",
- "payments": [
- {
- "status": "SUCCESS",
- "method": "STRIPE",
- "paymentResponse": "",
- "paidAmount": 2041,
- "currency": "USD"
}
], - "tax": {
- "total": {
- "amount": 150,
- "currency": "USD",
- "inclusive": false
}, - "lines": [
- {
- "amount": 150,
- "currency": "USD",
- "code": "VAT",
- "name": "Regular VAT",
- "rate": 10,
- "taxable": 1500,
- "sequenceId": 1,
- "inclusive": false
}
]
}, - "shipping": {
- "total": {
- "amount": 11.9,
- "currency": "USD"
}, - "lines": [
- {
- "amount": 10,
- "currency": "USD",
- "code": "dhlstd",
- "name": "DHL Standard",
- "localizedName": {
- "en": "DHL Standard",
- "de": "DHL Standard"
}, - "tax": {
- "total": {
- "amount": 1.9,
- "currency": "USD",
- "inclusive": false
}, - "rate": 19
}
}
]
}, - "shipments": [
- {
- "trackingNumber": "123987456",
- "carrier": "UPS",
- "shippedDate": "2016-06-25T16:22:52.966Z",
- "expectDeliveryOn": "2016-06-27"
}
]
}, - {
- "id": "orderId123457",
- "created": "2015-02-11T03:12:33.345Z",
- "status": "CREATED",
- "siteCode": "Germany",
- "countryCode": "DE",
- "deliveryWindowId": "5d230f973f05e303d5c30dba",
- "entries": [
- {
- "metadata": {
- "mixins": {
}
}, - "id": "5c13ccdbba93e00008b8d274",
- "amount": 1,
- "orderedAmount": 1,
- "originalAmount": 450,
- "originalPrice": 450,
- "unitPrice": 420,
- "totalPrice": 420,
- "authorizedAmount": 420,
- "product": {
- "description": "A mug you've always wanted !",
- "name": "Mug",
- "sku": "mug-product",
- "published": true,
- "images": [
- {
- "id": "media123456",
}
]
}, - "mixins": {
- "additionalCode": {
- "code": "ABC"
}
}
}
], - "customer": {
- "id": "C1234567890",
- "title": "Dr.",
- "name": "Example Buyer",
- "firstName": "Example",
- "lastName": "Buyer",
- "email": "noreply@emporix.com",
- "company": "emporix",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "work_phone": {
- "number": "+86 334 0033 9934"
}
}
}, - "billingAddress": {
- "contactName": "Example Buyer",
- "street": "Nymphenburger Str.",
- "streetNumber": "86",
- "city": "Munich",
- "state": "Bavaria",
- "country": "DE",
- "zipCode": "132 45",
- "contactPhone": "+49 1111 222 333"
}, - "shippingAddress": {
- "contactName": "Joe Smith",
- "companyName": "Cargo Services Airfreight",
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN",
- "contactPhone": "+86 182 9349 4663",
- "metadata": {
- "mixins": {
- "secondaryContactPhone": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"
}
}, - "mixins": {
- "secondaryContactPhone": {
- "number": "+86 334 0033 9934"
}
}
}, - "totalPrice": 420,
- "totalAuthorizedAmount": 420,
- "currency": "USD"
}
]
Creates an order. To be used by customers on the storefront.
order.order_post
The collection resource has been successfully created.
Request syntactically incorrect. Any details will be provided within the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
Some server side error occurred.
{- "entries": [
- {
- "id": "5c336893a981210009900071",
- "itemYrn": "urn:yaas:saasag:caasproduct:product:mytenant;5c336893a981210009900071",
- "amount": 3,
- "orderedAmount": 3,
- "effectiveQuantity": 3,
- "originalAmount": 34.9,
- "originalPrice": 34.9,
- "unitPrice": 34.9,
- "measurementUnit": {
- "value": 1,
- "unit": "H87"
}, - "totalPrice": 104.7,
- "authorizedAmount": 104.7,
- "product": {
- "metadata": {
- "mixins": {
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "id": "5c336893a981210009900071",
- "sku": "A705121365",
- "name": "Moët & Chandon Impérial Brut Champagner 0,375 l Flasche",
- "description": "Der Moët & Chandon Impérial ist der gelungenste Ausdruck des typischen Stils des Hauses. Ein lebhafter und generöser Champagner, der sich durch seine ausgeprägte Frucht, verführerische Gaumennote sowie durch eine elegante Reife auszeichnet.",
- "published": true,
- "images": [
- {
- "id": "8c135ce0-3c5c-4c86-9052-ba2ad2f761cc",
- "stored": false
}
], - "mixins": {
- "productCustomAttributes": {
- "activeTab": "CrossSellings",
- "brand": "59db24c530d7de000e47ba9c",
- "categoryPath": {
- "categoryLevel1": "getraenke-weine",
- "categoryLevel2": "weine",
- "prettyName": "moët-chandon-impérial-brut-champagner-0375-l-flasche",
- "categoryLevel3": ""
}, - "containsAlcohol": true,
- "crossSellings": [
- "5c333885a9812100098ff7c3",
- "5c333aa3a9812100098ff821",
- "5c33570aa9812100098ffd36",
- "5c334d22a9812100098ffb83"
], - "defaultOrderQuantity": 1,
- "deposit": 0,
- "deposits": [
- "59d6216289e840000ead05fb"
], - "inStock": true,
- "lastModifiedDate": "1546873061413",
- "lmiv": {
- "alcoholConcentration": "12",
- "foodBusinessOperator": "<p>Moët Hennessy Deutschland GmbH, Seidlstr. 23, 80335 München<br/></p>"
}, - "maxOrderQuantity": 25,
- "minOrderQuantity": 1,
- "orderUnit": "H87",
- "originCountry": "59db258c30d7de000e47bb21",
- "originRegion": "Champagne",
- "packagingDescription": "Glasflasche",
- "packagingGroup": "2_Standard",
- "packagingPosition": "1_Unten_unempfindlich",
- "packagingUnit": "0,375 l Flasche",
- "pricingMeasure": {
- "unitCode": "H87",
- "value": 1
}, - "pricingMeasurePrice": 34.9,
- "productState": "ok",
- "surcharge": "XXnnsv4m3a8BeRnk50YfQA==",
- "taxClass": "FULL",
- "unitPricingBaseMeasure": {
- "unitCode": "LTR",
- "value": 1
}, - "unitPricingMeasure": {
- "unitCode": "MLT",
- "value": 375
}, - "cutting": [ ],
- "labels": [ ],
- "servicePackaging": [ ],
- "longDescription": "",
- "lmivDescription": "",
- "lastModifiedUser": ""
}, - "salePricesData": {
- "salePrices": [
- {
- "salePriceAmount": 30.9,
- "salePriceEnd": "2020-03-01T23:59:00.000+0000",
- "salePriceStart": "2020-02-27T00:00:00.000+0000"
}
]
}
}
}, - "price": {
- "priceId": "5c3368958232760008f1df0b",
- "productId": "5c336893a981210009900071",
- "yrn": "urn:yaas:hybris:price:price:mytenant;5c3368958232760008f1df0b",
- "siteCode": "main",
- "currency": "EUR",
- "originalAmount": 34.9,
- "effectiveAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}, - "basePrice": {
- "effectiveAmount": 93.0666666667,
- "originalAmount": 93.0666666667,
- "measurementUnit": {
- "unitCode": "LTR",
- "quantity": 1
}
}, - "presentationPrice": {
- "effectiveAmount": 34.9,
- "originalAmount": 34.9,
- "measurementUnit": {
- "unitCode": "H87",
- "quantity": 1
}
}, - "metadata": {
- "createdAt": "2019-01-07T14:57:42.988Z",
- "modifiedAt": "2021-04-08T11:53:18.825Z",
- "version": 17
}
}, - "totalDiscount": {
- "currency": "EUR"
}, - "metadata": {
- "mixins": {
- "cartItemOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/cartItemOptionsMixIn.v2.json",
- "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json",
}
}, - "mixins": {
- "cartItemOptions": { },
- "productCustomAttributes": { },
- "fees": {
- "elements": [
- {
- "yrn": "urn:yaas:saasag:fee:fee:mytenant;59d6216289e840000ead05fb",
- "taxCode": "ZERO",
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}
}
], - "discounts": [ ],
- "customer": {
- "id": "C6193791300",
- "name": "Anna Schmit",
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "email": "anna.schmit@schmit.com",
- "metadata": {
- "mixins": {
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/customerGeneralAttributesMixIn.v4.json",
- "backofficeAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/accountBoMixIn.v3.json",
- "administration": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/administrativeMixIn.v4.json",
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json"
}
}, - "mixins": {
- "generalAttributes": {
- "lastDeliveryAddress": "a2cb0ce944",
- "invoiceNotDeliveryAddress": false,
- "birthday": "7.7.1972",
- "mobilePhone": "608232233",
- "contactPhone": "608232233",
- "customerType": "private",
- "customerNumber": "K701141"
}, - "backofficeAttributes": {
- "country": "DE"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "marketing": { },
- "administration": {
- "creationDate": "2020-12-08T13:39:45.813Z"
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}
}
}, - "siteCode": "main",
- "countryCode": "DE",
- "billingAddress": {
- "contactName": "Anna Schmit",
- "street": "Maximilianstrasse",
- "streetNumber": "55",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "shippingAddress": {
- "contactName": "Anna Schmit",
- "street": "Maximilianstrasse",
- "streetNumber": "55",
- "streetAppendix": "",
- "zipCode": "70173",
- "city": "Stuttgart-Mitte",
- "country": "DE",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "customAttributes": {
- "title": "MRS",
- "firstName": "Anna",
- "lastName": "Schmit",
- "birthday": "7.7.1972"
}
}
}, - "payments": [
- {
- "status": "PENDING",
- "method": "cash-on-delivery",
- "paidAmount": 0,
- "currency": "EUR"
}
], - "shipping": {
- "total": {
- "amount": 20,
- "currency": "EUR"
}, - "lines": [
- {
- "amount": 20,
- "currency": "EUR",
- "code": "4-more_hours_timeframe",
- "tax": {
- "total": {
- "amount": 0,
- "currency": "USD",
- "inclusive": false
}, - "rate": 0
}, - "shippingTaxCode": "ZERO"
}
]
}, - "tax": {
- "total": {
- "amount": 0,
- "currency": "EUR",
- "inclusive": false
}
}, - "subTotalPrice": 104.7,
- "totalPrice": 124.7,
- "totalAuthorizedAmount": 124.7,
- "currency": "EUR",
- "metadata": {
- "mixins": {
- "deliveryOptions": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/deliveryOptionsMixIn.v6.json",
- "generalAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/orderGeneralAttributesMixIn.v9.json",
}, - "version": 1
}, - "mixins": {
- "deliveryTime": {
- "replace": false,
- "deliveryDate": "2021-12-09T12:00:00.000Z",
- "deliveryTimeFrom": "15:00",
- "deliveryTimeTo": "22:00",
- "deliveryCosts": 20,
- "pickupSettings": "Fabrikstr. 5.",
- "deliveryTimeId": "5b5572a7f19a51001ad55509"
}, - "payment": {
- "paymentType": "paymentByCash",
- "paymentCosts": 0,
- "paymentByDebit": {
- "bankAccountOwner": "",
- "iban": "",
- "bankName": ""
}
}, - "deliveryOptions": {
- "substituteProduct": true,
- "packaging": "Paper",
- "hint": "",
- "pickup": false,
- "pickupAddress": {
- "id": "Pickup 1",
- "street": "Fabrikstr",
- "streetNumber": "5.",
- "city": "Cham",
- "zipCode": "6033",
- "companyName": "SaaS test AG",
- "country": "DE",
- "addressName": "Fabrikstr. 5.",
- "description": "test description for multiple pickup points",
- "addressTag": "pickupAddress"
}
}, - "generalAttributes": {
- "extendedOrderStatus": "10",
- "orderType": "CUSTOMER_ORDER",
- "customerFirstOrder": false,
- "orderNumber": "B7022093"
}, - "payments": {
- "elements": [
- {
- "paymentMethodYrn": "urn:yaas:hybris:payments:payment-method:mytenant;cash-on-delivery",
- "fees": {
- "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}, - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
], - "total": {
- "subTotal": 0,
- "totalTax": 0,
- "total": 0
}
}
}, - "orderCycle": "2021-12-09T12:00:00.000Z",
- "deliveryWindowId": "5b5572a7f19a51001ad55509",
- "channel": { }
}
{- "id": "1234546"
}
Retrieves details of an order. To be used by customers on the storefront.
order.history_view
for logged in customers only.The request was successful. Order details are returned.
Given authorization scopes are not sufficient and do not match required scopes.
Order does not exist
Some server side error occurred.
{- "id": "orderId123456",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "additionalCode": {
- "code": "DFG-334-98330-X"
}
}, - "created": "2014-03-31T10:18:21.134Z",
- "completed": "2014-04-15T10:18:21.134Z",
- "lastStatusChange": "2014-04-15T10:18:21.134Z",
- "status": "COMPLETED",
- "entries": [
- {
- "metadata": {
- "mixins": {
}
}, - "id": "5c13ccdbba93e00008b8d274",
- "amount": 2,
- "orderedAmount": 2,
- "originalAmount": 450,
- "originalPrice": 450,
- "unitPrice": 420,
- "totalPrice": 840,
- "authorizedAmount": 840,
- "product": {
- "description": "A mug you've always wanted !",
- "name": "Mug",
- "sku": "mug-product",
- "published": true,
- "images": [
- {
- "id": "media123456",
}
]
}
}, - {
- "id": "1234547",
- "amount": 5,
- "orderedAmount": 5,
- "originalAmount": 250,
- "originalPrice": 450,
- "unitPrice": 240,
- "totalPrice": 1200,
- "authorizedAmount": 1200,
- "product": {
- "metadata": {
}, - "description": "A Shirt you've always wanted !",
- "name": "Shirt",
- "sku": "shirt-product",
- "published": true,
- "images": [
- {
- "id": "media1234567",
}
], - "mixins": {
- "color": {
- "red": 234,
- "green": 231,
- "blue": 123
}
}
}
}, - {
- "id": "1234548",
- "amount": 1,
- "unitPrice": 45,
- "totalPrice": 45,
- "authorizedAmount": 45,
- "measurementUnit": {
- "value": 2,
- "unit": "kg"
}, - "product": {
- "description": "Vegetables you've always wanted !",
- "name": "Vegetables",
- "sku": "vegetables-product",
- "published": true,
- "images": [
- {
- "id": "media1234548",
}
]
}
}
], - "discounts": [
- {
- "code": "SUMMER_SALE",
- "name": "Summer Sale 10% off everything",
- "amount": 204,
- "currency": "USD",
- "discountRate": 10,
- "sequenceId": 1,
- "link": {
- "id": "B2TD3JM",
- "type": "y-coupon",
}
}
], - "customer": {
- "id": "C1234567890",
- "title": "Dr.",
- "name": "Example Buyer",
- "firstName": "Example",
- "lastName": "Buyer",
- "email": "noreply@emporix.com",
- "company": "emporix",
- "metadata": {
- "mixins": {
}
}, - "mixins": {
- "work_phone": {
- "number": "+86 334 0033 9934"
}
}
}, - "siteCode": "Germany",
- "countryCode": "DE",
- "deliveryWindowId": "5d230f973f05e303d5c30dba",
- "billingAddress": {
- "contactName": "Example Buyer",
- "street": "Nymphenburger Str.",
- "streetNumber": "86",
- "city": "Munich",
- "state": "Bavaria",
- "country": "DE",
- "zipCode": "132 45",
- "contactPhone": "+49 1111 222 333"
}, - "shippingAddress": {
- "contactName": "Joe Smith",
- "companyName": "Cargo Services Airfreight",
- "street": "Cheng Xiang Zhen Guan Tang Lu",
- "streetNumber": "1031",
- "extraLine1": "No. 2058",
- "extraLine2": "Suzhou City",
- "zipCode": "201202",
- "city": "Taicang City",
- "state": "Jiangsu Province",
- "country": "CN",
- "contactPhone": "+86 182 9349 4663",
- "metadata": {
- "mixins": {
- "secondaryContactPhone": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"
}
}, - "mixins": {
- "secondaryContactPhone": {
- "number": "+86 334 0033 9934"
}
}
}, - "subTotalPrice": 1881,
- "totalPrice": 2041,
- "totalAuthorizedAmount": 2041,
- "currency": "USD",
- "payments": [
- {
- "status": "SUCCESS",
- "method": "STRIPE",
- "paymentResponse": "",
- "paidAmount": 2041,
- "currency": "USD"
}
], - "tax": {
- "total": {
- "amount": 150,
- "currency": "USD",
- "inclusive": false
}, - "lines": [
- {
- "amount": 150,
- "currency": "USD",
- "code": "VAT",
- "name": "Regular VAT",
- "rate": 10,
- "taxable": 1500,
- "sequenceId": 1,
- "inclusive": false
}
]
}, - "shipping": {
- "total": {
- "amount": 11.9,
- "currency": "USD"
}, - "lines": [
- {
- "amount": 10,
- "currency": "USD",
- "code": "dhlstd",
- "name": "DHL Standard",
- "localizedName": {
- "en": "DHL Standard",
- "de": "DHL Standard"
}, - "tax": {
- "total": {
- "amount": 1.9,
- "currency": "USD",
- "inclusive": false
}, - "rate": 19
}
}
]
}, - "shipments": [
- {
- "trackingNumber": "123987456",
- "carrier": "UPS",
- "shippedDate": "2016-06-25T16:22:52.966Z",
- "expectDeliveryOn": "2016-06-27"
}
]
}
Retrieves possible status transitions for a specific order. To be used by customers on the storefront.
order.order_updateascustomer
The request was successful. Status transition for given order returned.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
[- {
- "status": "CONFIRMED"
}
]
Updates the status of a specific order. To be used by customers on the storefront.
Note: Customers can only change the order status from CREATED
to DECLINED
.
order.order_updateascustomer
The transition was successful.
Request syntactically incorrect. Any details will be provided within the response payload.
Access forbidden. The caller is not allowed to access this resource.
Order does not exist
Some server side error occurred.
{- "status": "DECLINED"
}
{- "status": 400,
- "message": "There are validation problems, see details section for more information",
- "type": "validation_violation",
- "details": [
- {
- "field": "client-owner",
- "message": "must be between 3 and 16 characters",
- "type": "invalid_header"
}
]
}