We'd like to get refund ID from v1/returns
Docs for v1/returns have "expand" which doesn't seem to work
Sending "standard" expand fields in "body" and/or in "path", but the response contains no data on what is requested.
path = '/v1/orders/{Order ID}/returns?expand=refunds,lineItems,payments,order'
AND/OR
data = { expand: [ 'refunds', 'lineItems', 'payments', 'order', 'order.refunds' ]}
always returns
{
"id" : {ORDER ID},
"amount" : 120,
"amount_returned" : 120,
"currency" : "USD",
"status" : "returned",
"status_transitions" : { }
}
Is this not yet implemented, or are there some ecomm-specific expand fields?
For now we have to make a subsequent request to /orders/{ORDER ID}?expand=refunds which contains the refund with ID, but would be great to get it in /returns response.