Hi,
It seems that my webhook set to receive PO Update notifications seems to be receiving multiple pings on a PO being closed. This happens every single time for me - could you pls see if this is something that is incorrectly set on my end or an SH issue?
Here’s the first and second webhook export of a test PO I closed:
[
{
"headers": {
"host": "redacted",
"x-forwarded-scheme": "https",
"x-forwarded-proto": "https",
"x-forwarded-for": "redacted",
"x-real-ip": "redacted",
"content-length": "1199",
"cdn-loop": "cloudflare",
"cf-ipcountry": "US",
"accept-encoding": "gzip, br",
"cf-ray": "898dc54219b68000-IAD",
"cf-visitor": "{\"scheme\":\"https\"}",
"sentry-trace": "e4f717e61767414494dd10a7940afd39-adb68c90aee8f12c-0",
"baggage": "sentry-trace_id=e4f717e61767414494dd10a7940afd39,sentry-environment=prod,sentry-release=293c323,sentry-public_key=613bdf17979047029f3c4b2e7afe6a5d,sentry-transaction=customers_webhooks.process_webhooks",
"user-agent": "ShipHero Request V1.0",
"accept": "*/*",
"content-type": "application/json",
"x-shiphero-hmac-sha256": "xTWlAMaf9kKv+/KGIX9hShDoyQLH+byiUejccg3KGUM=",
"cf-connecting-ip": "redacted"
},
"params": {},
"query": {},
"body": {
"test": "0",
"purchase_order": {
"id": 1493614,
"po_number": "multitest1",
"po_id": 8,
"po_uuid": "UHVyY2hhc2VPcmRlcjoxNDkzNjE0",
"account_id": 69683,
"line_items": [
{
"id": "23106a9b49684d04a6dc",
"quantity": 1,
"quantity_received": 0,
"sku": "Test5",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "4ba7da7d92dbc5a7709e",
"quantity": 1,
"quantity_received": 0,
"sku": "Test3",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "bcdfb49052f90f6f5155",
"quantity": 1,
"quantity_received": 0,
"sku": "Test4",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "c908e2c064fb3d15989d",
"quantity": 1,
"quantity_received": 0,
"sku": "Test2",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "fd5b40a73d516543c238",
"quantity": 1,
"quantity_received": 0,
"sku": "Test1",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
}
],
"warehouse_id": 74776,
"status": "closed",
"webhook_type": "PO Update"
}
},
"webhookUrl": "http://localhost:5678/webhook/sh/po",
"executionMode": "production"
}
]
[
{
"headers": {
"host": "redacted",
"x-forwarded-scheme": "https",
"x-forwarded-proto": "https",
"x-forwarded-for": "redacted",
"x-real-ip": "redacted",
"content-length": "1199",
"cdn-loop": "cloudflare",
"cf-ipcountry": "US",
"accept-encoding": "gzip, br",
"cf-ray": "898dc5597b3581b5-IAD",
"cf-visitor": "{\"scheme\":\"https\"}",
"sentry-trace": "3e0bd6e10e384bc082d2235487a34549-bb1d5fbd3d6956b4-0",
"baggage": "sentry-trace_id=3e0bd6e10e384bc082d2235487a34549,sentry-environment=prod,sentry-release=293c323,sentry-public_key=613bdf17979047029f3c4b2e7afe6a5d,sentry-transaction=customers_webhooks.process_webhooks",
"user-agent": "ShipHero Request V1.0",
"accept": "*/*",
"content-type": "application/json",
"x-shiphero-hmac-sha256": "xTWlAMaf9kKv+/KGIX9hShDoyQLH+byiUejccg3KGUM=",
"cf-connecting-ip": "redacted"
},
"params": {},
"query": {},
"body": {
"test": "0",
"purchase_order": {
"id": 1493614,
"po_number": "multitest1",
"po_id": 8,
"po_uuid": "UHVyY2hhc2VPcmRlcjoxNDkzNjE0",
"account_id": 69683,
"line_items": [
{
"id": "23106a9b49684d04a6dc",
"quantity": 1,
"quantity_received": 0,
"sku": "Test5",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "4ba7da7d92dbc5a7709e",
"quantity": 1,
"quantity_received": 0,
"sku": "Test3",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "bcdfb49052f90f6f5155",
"quantity": 1,
"quantity_received": 0,
"sku": "Test4",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "c908e2c064fb3d15989d",
"quantity": 1,
"quantity_received": 0,
"sku": "Test2",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
},
{
"id": "fd5b40a73d516543c238",
"quantity": 1,
"quantity_received": 0,
"sku": "Test1",
"vendor_id": null,
"vendor_uuid": "VmVuZG9yOk5vbmU=",
"vendor_account_number": null,
"vendor_sku": null
}
],
"warehouse_id": 74776,
"status": "closed",
"webhook_type": "PO Update"
}
},
"webhookUrl": "http://localhost:5678/webhook/sh/po",
"executionMode": "production"
}
]