Kann mir jemand einen Tipp geben, wie ich meine Abfrage (Orderdetails) zum Laufen bekomme? Dabei werden
die Associations country und customerComment völlig ignoriert, obwohl ich sie bei den includes meiner Meinung nach ordnungsgemäß aufgeführt habe.
Vielen Dank im voraus,
Thomas
Uri: /api/search/order
Method: POST
{
"associations": {
"addresses": {
"associations": {
"country": []
}
},
"deliveries": {
"associations": {
"shippingMethod": {},
"shippingOrderAddress": [],
"stateMachineState": {}
}
},
"lineItems": {
"associations": {
"product": {
"associations": {
"options": {},
"tags": {}
}
}
}
},
"orderCustomer": {},
"salesChannel": {
"associations": {
"paymentMethods": []
}
},
"transactions": {
"associations": {
"paymentMethod": {},
"stateMachineState": []
},
},
"log_entry": [
"id",
"customerComment"
]
},
"filter": [
{
"field": "orderNumber",
"parameters": {
"gt": 10001,
"lte": 19999
},
"type": "range"
}
],
"includes": {
"country": [
"iso",
"name"
],
"deliveries": [
"id",
"shippingDateEarliest",
"shippingDateLatest",
"stateMachineState"
],
"order": [
"id",
"orderNumber",
"lineItems",
"addresses",
"deliveries",
"stateMachineState",
"orderCustomer",
"shippinTotal",
"salesChannelId",
"transactions"
],
"order_address": [
"id",
"firstName",
"lastName",
"street",
"zipcode",
"city",
"company",
"department",
"country",
"phoneNumber"
],
"order_customer": [
"email",
"firstName",
"lastName",
"customerNumber",
"vatIds",
"email"
],
"order_line_item": [
"id",
"position",
"quantity",
"description",
"label",
"unitPrice",
"productId",
"payload",
"productNumer",
"parentId",
"product"
],
"order_transaction": [
"id",
"amount",
"stateMachineState",
"paymentMethod"
],
"payment_method": [
"id",
"name"
],
"product": [
"id",
"productNumber",
"attributes",
"type",
"name",
"description",
"metaTitle",
"keywords",
"tags",
"children",
"options"
],
"tags": [
"id",
"name"
],
"log_entry": [
"id",
"customerComment"
]
},
"limit": 500,
"sort": [
{
"field": "orderNumber",
"naturalSorting": true,
"order": "ASC"
}
]
}