We rely on webhooks to know about updates.
Starting yesterday, it seems that the po_number
field has been removed from the webhook payload. The old po_id
is still there, but I do not think this matches the legacy_id
field that we can access in GraphQL. So, if we create the PO through GraphQL, as far as I can tell there is no identifiers that match between the webhook and the GraphQL response.
Here is an example of what we received through March 12th:
{
"test":"0",
"purchase_order":{
"id":XXXXX,
"po_id":1670,
"status":"closed",
"po_number":"1374",
"line_items":[
{
"id":"XXXXX",
"sku":"YYYYYY",
"quantity":1,
"vendor_id":ZZZZZ,
"vendor_sku":"AAAAA",
"quantity_received":1,
"vendor_account_number":"BBBBB"
},
...
]
}
}
and here is an example of what we started receiving yesterday/today.
{
"test":"0",
"purchase_order":{
"po_id":1679,
"status":"Pending",
"line_items":[
{
"id":"XXXXX",
"sku":"YYYYY",
"quantity_received":0
},
...
]
}
}
Would you please let me know if I’m missing something or if I should be able to match the po_id
being returned with the GraphQL response? Thanks!
-David