I have added custom filed in quote and order table, when ever i want to save i get

Property "MetroTimeSlot" does not have corresponding setter in class "Magento\Checkout\Api\Data\ShippingInformationExtensionInterface"

i have already added metro_time_slot in extension_attributes.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
<extension_attributes for="Magento\Checkout\Api\Data\ShippingInformationInterface">
    <attribute code="metro_time_slot" type="string"/>

2 Answers 2


I solved the same issue by removing files from [magento root]/var/generation/ folder.

  • Yes this was solved by removing generation files Commented Apr 20, 2017 at 10:21

how do you pass the attribute in the request? It should be

    extension_attributes: {
         metro_time_slot: "value"
  • yes it is same extension_attributes:{ metro_time_slot: $('[name="metro_time_slot"]').val() } Commented Apr 9, 2017 at 9:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.