question

wm1 avatar image
wm1 asked

Ecommerce /returns expand fields not implemented?

We'd like to get refund ID from v1/returns

Docs for v1/returns have "expand" which doesn't seem to work

1668371273917.png


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.



ecommerce
1668371273917.png (21.5 KiB)
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community