Hi Simon,
I don’t generally work with creating orders, rather gathering them and sending the data to suppliers. However, I don’t believe an order can be created with just the product_id, instead the variant_id can be used as noted here in the documentation. I know the error message isn’t very clear but to my assumption this means that the price of the product which is tied to the variant_id cannot be null and cannot be read with just the product_id. The three examples below show the JSON sent using just the product_id and using both product_id and variant_id. Using just the product_id will fail with that money field message just like it would if the variant/product did not exist any longer.
Returns “money field cannot be nil”
{
"order": {
"line_items": [
{
"product_id": 528267411510,
"quantity": 1
}
]
}
}
Both examples below return a created order
Example 1
{
"order": {
"line_items": [
{
"product_id": 528267411510,
"variant_id": 6986261266486,
"quantity": 1
}
]
}
}
Example 2
{
"order": {
"line_items": [
{
"variant_id": 6986261266486,
"quantity": 1
}
]
}
}