What is the "line_items.edges[0].node.id" value in PO Update webhook

I’m having a hard time figuring out what line_items.edges[0].node.id’s value is in the webhook body. It does seem to be globally unique but it is not equal to btoa('PurchaseOrderLineItem:22334455') !=='127204ddb3c63145f146'. It looks like an md5 hash of something but i’ve tried all the obvious combinations I can think of.

I expected this to be the same function like the po_uuid uses btoa('PurchaseOrder:2019927') === 'UHVyY2hhc2VPcmRlcjoyMDE5OTI3'

Hi @kyle,

Thanks for bringing this to our attention. I started investigating this discrepancy.

Hi @kyle
That ID is a random number the system generates on manually created POs. It corresponds to the partner_line_item_id, as we need that field to be not empty. It is unique to each PO.
Creating the PO from the API, for example, allows you to set that field in case it needs to be tracked with an ID from your end.
I will work internally to confirm the viability of exposing the actual IDs, those that match in the encoded and unencoded versions. As we are in our peak season, I cannot confirm whether this will be possible this year.

Oh, interesting! Thank you @tomasfd. I mainly just needed a way to match that line item to the purchase_order graphql query.