Hallo zusammen,
wie lassen sich die Produkte (lineItems) einer Bestellung anzeigen.
Standardmäßig erhalte ich mit sales-channel-api/v1/customer/order folgende Ausgabe:
{
"data": {
"05031a4a3318461999cd08dadd41a6f3": {
"orderNumber": "10035",
"currencyId": "b7d2554b0ce847cd82f3ac9bd1c0dfca",
"currencyFactor": 1,
"salesChannelId": "98432def39fc4624b33213a56b8c944d",
"billingAddressId": "f97e3817344148088ff06222c2761eb9",
"orderDateTime": "2019-10-25T09:53:51+00:00",
"orderDate": "2019-10-25T00:00:00+00:00",
"price": {
"netPrice": 8725.37,
"totalPrice": 10383.19,
"calculatedTaxes": [
{
"tax": 1657.8199999999997,
"taxRate": 19,
"price": 10383.193277310926,
"extensions": []
}
],
"taxRules": [
{
"taxRate": 19,
"percentage": 100,
"extensions": []
}
],
"positionPrice": 10383.19,
"taxStatus": "gross",
"extensions": []
},
"amountTotal": 10383.19,
"amountNet": 8725.37,
"positionPrice": 10383.19,
"taxStatus": "gross",
"shippingCosts": {
"unitPrice": 0,
"quantity": 1,
"totalPrice": 0,
"calculatedTaxes": [
{
"tax": 0,
"taxRate": 19,
"price": 0,
"extensions": []
}
],
"taxRules": [
{
"taxRate": 19,
"percentage": 100.0000315636228,
"extensions": []
}
],
"referencePrice": null,
"extensions": []
},
"shippingTotal": 0,
"orderCustomer": {
"email": "test@example.com",
"orderId": "05031a4a3318461999cd08dadd41a6f3",
"salutationId": "6f31032e0042465a933e3cc2394a8650",
"firstName": "Max",
"lastName": "Mustermann",
"title": null,
"company": null,
"customerNumber": "1337",
"customerId": "20f661128ec347b890c4fcdf3f61cd0e",
"customer": null,
"salutation": null,
"order": null,
"customFields": null,
"_uniqueIdentifier": "eaad3eecef0d4e5fb0083108f00e16fe",
"versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425",
"translated": [],
"createdAt": "2019-11-13T09:53:53+00:00",
"updatedAt": null,
"extensions": {
"internal_mapping_storage": {
"_uniqueIdentifier": null,
"versionId": null,
"translated": [],
"createdAt": null,
"updatedAt": null,
"extensions": []
}
},
"id": "eaad3eecef0d4e5fb0083108f00e16fe",
"orderVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425"
},
"currency": null,
"languageId": "2fbb5fe2e29a4d70aa5854ce7ce3e20b",
"language": null,
"salesChannel": null,
"addresses": null,
"deliveries": null,
"lineItems": null,
"transactions": null,
"deepLinkCode": "yWjlb4eMngAIxU1J0tC-6ZTHUIMomydC",
"autoIncrement": 36,
"stateMachineState": {
"name": "Open",
"technicalName": "open",
"stateMachineId": "c43ffe148ef44f6289bf0c37ecdfa8cc",
"stateMachine": null,
"fromStateMachineTransitions": null,
"toStateMachineTransitions": null,
"translations": null,
"orders": null,
"orderTransactions": null,
"orderDeliveries": null,
"fromStateMachineHistoryEntries": null,
"toStateMachineHistoryEntries": null,
"customFields": null,
"_uniqueIdentifier": "3cb1fa5d82dc4f3f9b362f88d6ba3914",
"versionId": null,
"translated": {
"name": "Open",
"customFields": []
},
"createdAt": "2019-11-13T09:50:18+00:00",
"updatedAt": null,
"extensions": {
"internal_mapping_storage": {
"_uniqueIdentifier": null,
"versionId": null,
"translated": [],
"createdAt": null,
"updatedAt": null,
"extensions": []
}
},
"id": "3cb1fa5d82dc4f3f9b362f88d6ba3914"
},
"stateId": "3cb1fa5d82dc4f3f9b362f88d6ba3914",
"customFields": null,
"documents": null,
"tags": null,
"affiliateCode": null,
"campaignCode": null,
"_uniqueIdentifier": "05031a4a3318461999cd08dadd41a6f3",
"versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425",
"translated": [],
"createdAt": "2019-11-13T09:53:53+00:00",
"updatedAt": null,
"extensions": [],
"id": "05031a4a3318461999cd08dadd41a6f3",
"billingAddressVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425"
}
}
}
Versuche, lineItems reinzuladen mit sales-channel-api/v1/customer/order?associations[lineItems][] o.ä. blieben erfolglos
Gruß
Edit: Gelöst, zur Zeit nicht via Sales-Channel-API abfragbar.