Second, date_from is filtering created_date. order_date_from is filtering order_date. right?
Last, some shipments data has no line item and no shipping labels but it has shipments_id, order_id, order_number. Are those data vaild?
I saw some of them has multiple shipping labels under one shipment_id…
One more question is you said created_date is when the shipment was created so it is shipment date. However, is there any way I can get when shipment is sent? For me, “Shipment date” makes more sense when shipment was sent, not when shipment was created
I have lots of them which don’t have any line item and shipping labels but it has shipments_id, order_id, order_number.
here are request_id:
5fdba7abc4fee13efed2f303
5fdba7cd070268ddb56b788f
5fdba80404decac0999acec1
I couldn’t find shipment_id has multiple shipping labels at the moment. When I find one, I’ll post agian
In that case, it is because a return has been created for that order, which logs a shipment as well. The way you can spot this kind of shipments is by including:
You’ve clarified that the records which don’t have any line items and shipping labels indicates that a return has been created for that order, which logs a shipment as well.
“request_id”: “5ff36079094a8e537899ddd5”
This is one of this kind of record. You can see two shipments records and one of them is empty line items and shipping labels.
But, I’ve noticed that there is name refunded and needs_refund in Shipments data and also Order rma_labels. And these are set to False.
As you explained, those kind of records indicates a return, doesn’t it make sense that either refunded and needs_refund should be set True?