I have tried many ways of creating orders with customer IDs but the customer ID is always ignored or causes an error.
API /v3/merchants/{mId}/orders/{orderId}
{"customers:["VA48NN5QQVH1G"],"total":5000} <- causes error
{"customers:"VA48NN5QQVH1G","total":5000}
{"customers":[{"id":"VA48NN5QQVH1G"}],"total":5000}.
The first method throws this error:
'Invalid value in JSON: Can not instantiate value of type [simple type, class com.clover.server.data.customers.Customer] from String value ('VA48NN5QQVH1G'); no single-String constructor/factory method at [Source: N/A; line: -1, column: -1] (through reference chain: com.clover.server.data.order.Order["customers"]->java.util.ArrayList[0])'
UPDATE: Documentation has changed for get single order, it now refers to "customerId": "long". I attempted to use this and it failed. Also customer IDs are hashes instead of long integers so that may be the problem.