QuestionQ30
APIs and ServicesAn Adobe Commerce developer adds a new extension attribute to include an array of values on invoices retrieved through the APIs. After some time, their technical manager reviews the work and finds an issue with the extension_attributes.xml file created in the developer’s module:

What is wrong with this XML snippet?
- A The extension attribute references the wrong interface, it should have referenced the Magento\Sales\Api\Data\InvoiceInterface.
- B The extension attribute references the repository instead of the interface it implements (Magento\Sales\Api\InvoiceRepositoryInterface).
- C The type is wrong, string[] should be replaced with array.
Community Discussion