I tried to change order state to CANCELED. Error: need to change fulfillment state. I can’t change fulfillment state:
I send the following and get an HTTP_CODE of 200 ( ) and an order object in return that shows no change ( ). I queried the order to verify no change.
Is this a bug?
curl https://connect.squareup.com/v2/orders/{ORDER_ID}\
-X PUT \
-H 'Square-Version: 2020-10-28' \
-H 'Authorization: Bearer TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"order": {
"location_id":"LOCATION_ID",
"version":LATEST_VERSION,
"fulfillment": [
{
"state": "CANCELED"
}
]
}
}'