Shipping Label endpoint (map between Receipt and shipping_label LedgerItems) #1232
Replies: 1 comment
-
There are a few places I'm smashing data together from to try and achieve this but none of it is a complete solution, currently what I am seeing is:
My current approach of matching the transaction.shipped_timestamp to the ledger_entry.created_timestamp works for cases where only one postage label is purchased for the order. An extension to the above is that if a shipping label is cancelled/refunded then when the next shipping label is purchased THEN the transaction.shipped_timestamp is updated. PROPOSED SOLUTION
|
Beta Was this translation helpful? Give feedback.
-
Currently we are able to retrieve shipping_label_id from the ledger items endpoint, which includes the cost associated with the label. I want to be able to attribute these costs to the order that the label was created for. The receipt endpoint includes a receipt_shipping_id and tracking_code but these do not include reference to the shipping_label_id in the ledger with the cost of that label.
This is preventing me from providing accurate financial reports because shipping label costs are having to be aggregated daily rather than at the order level; shipping costs have to be attributed to the date of fulfillment rather than the order date which means profit lines spike up and down depending on orders in vs orders out on any given day (e.g. weekend orders cause profit to spike up and monday fulfillment then spikes down).
I've found this post from 2013 requesting this feature but no updates are being posted anymore and I can't see a discussion in this repo on this topic: https://groups.google.com/g/etsy-api-v2/c/R7X6ZtCzjqc?pli=1
When you inspect the order in the web app, under the shipment section (e.g. "Royal Mail 2nd Class") you can see the shipping_label_id at the bottom which aligns with the refernce id in the ledger items:
Reference Label ID: #231606731492
Beta Was this translation helpful? Give feedback.
All reactions