Is it possible to set an order's extension attribute value when creating the order via the API or is there an appropriate API endpoint to update an existing order with this information?
For example to create an order I'm calling /rest/V1/carts/49/order with the following payload:
{
"paymentMethod": {
"method": "banktransfer"
},
"billing_address": {
"email": "[email protected]",
"region": "New York",
"region_id": 43,
"region_code": "NY",
"country_id": "US",
"street": ["123 Oak Ave"],
"postcode": "10577",
"city": "Purchase",
"telephone": "512-555-1111",
"firstname": "Jane",
"lastname": "Doe"
},
"extension_attributes": {
"legacy_order_id": {
"value": "1111-1111-1111"
}
}
}
But that doesn't appear to get set against the orders extension attribute