I was using 4.40 spree and recently updated it to 4.6 and updated it accordingly but the issue regarding checkout API is still there attaching error image below. Thank you in advance.
The error was related to the web hooks. I just included the
Spree::Webhooks::HasWebhooks
to overridden order.rb
and the issue got resolved