OK, I corrected my typo. And for future reference here’s what I needed to cancel the fulfillment. Thanks.
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,
"fulfillments": [
{
"uid": UID,
"state": "CANCELED"
}
]
}
}'