You should now start seeing refund
or exchange
instead of the null
value.
Query
query {
return(id: "UmV0dXJuOjQ2MTM4NjA=") {
data {
id
order_id
line_items {
type
}
}
}
}
Response
{
"data": {
"return": {
"data": {
"id": "UmV0dXJuOjQ2MTM4NjA=",
"order_id": "T3JkZXI6MjgzMDUzMDE1",
"line_items": [
{
"type": "refund"
},
{
"type": "exchange"
}
]
}
}
},
"extensions": {
"throttling": {
"estimated_complexity": 2,
"cost": 2,
"cost_detail": {
"return": {
"items_count": 1,
"cost": 1,
"total_cost": 2,
"fields": {}
}
},
"user_quota": {
"credits_remaining": 2000,
"max_available": 2002,
"increment_rate": 30
}
}
}
}