Here is the query:
{return(id:“UmV0dXJuOjQ0MzYwMjE=”){request_id data{id partner_id account_id legacy_id label_cost total_items_received total_items_restocked address{name address1 address2 city state country zip phone} order{billing_address{first_name last_name email} order_number rma_labels{id cost tracking_number legacy_id updated_at}} reason status created_at line_items{updated_at id return_id type reason quantity quantity_received restock line_item{sku product_name barcode} condition}}}}
Here is the result:
“data”: {
“return”: {
“request_id”: “63f764e8511283ea125a5650”,
“data”: {
“id”: “UmV0dXJuOjQ0MzYwMjE=”,
“partner_id”: “RMA102417|2016-02-23”,
“account_id”: “QWNjb3VudDo3MDU4Nw==”,
“legacy_id”: 4436021,
“label_cost”: “0.00”,
“total_items_received”: 1,
“total_items_restocked”: 1,
“address”: {
“name”: null,
“address1”: “0 No Street”,
“address2”: “”,
“city”: “Ithaca”,
“state”: “NY”,
“country”: “US”,
“zip”: “14850”,
“phone”: null
},
“order”: {
“billing_address”: {
“first_name”: “Ithaca”,
“last_name”: “Sports”,
“company”: “Customer For RMA102417”,
“email”: null
},
“order_number”: “O_RMA102417”,
“rma_labels”:
},
“reason”: “”,
“status”: “complete”,
“created_at”: “2023-02-22T21:07:12”,
“line_items”: [
{
“updated_at”: “2023-02-23T04:23:39”,
“id”: “UmV0dXJuSXRlbTo3MTAwMzIz”,
“return_id”: “UmV0dXJuOjQ0MzYwMjE=”,
“type”: “refund”,
“reason”: “1|Return from Battle Customer”,
“quantity”: 1,
“quantity_received”: 1,
“restock”: 1,
“line_item”: {
“sku”: “8802”,
“product_name”: “1-White Battle Oxygen MG-Thick Strap”,
“barcode”: “811243020713”
},
“condition”: “unknown”
}
]
}
}
}
Here is what I see on the order in the Shiphero app:
Clearly the order billing_customer has an email. Why is the return query getting null?