The «%cart_id%» value of a «route/data/parameter» branch of an webapi.xml works only for registered customers, not for guests

Context: How is a «route/data/parameter» branch of a webapi.xml interpreted?

It is impossible to use the following line for the guest customers: