Problem/Motivation
Entity reference fields payment_gateway and payment_method are required in commerce_order.
Those fields are never required in UI (and making order from BO or FO).
In another hand, this required fields make rest resource creation fail because they are required and there is no way to bypass this.
I don't see reasons to make them required since order is created at first as cart wihtout data in those fields, and add them later (if needed, but not necessary).
Proposed resolution
Make payment_gateway and payment_method entity reference fields of commerce_order optional.
Comments
Comment #2
goz commentedSee https://github.com/drupalcommerce/commerce/pull/817
Comment #3
bojanz commentedComment #5
bojanz commentedCommitted, thanks!