We are a invoicing app, which utilizes shopify webhooks to send invoices.From past few months we’re noticing that occasionally when we receive the order update webhook, we just get the order id as payload, For our app to work we need the order data along with created at date, order number etc. to generate the invoice & sending them to customers.Like this:
{“id“: “1234567890“}
Ideally it should have full order, including fields like created_at, order number, order name etc.
I tried looking up docs & shopify dev slack, But so far i was not able to find any reference regarding this.
2 Likes
Hey @tapan_kashyap, when you query the order through API, do you get the full payload data that you would typically get through the webhook? The reason I ask is to see if the data exists on the order or not and to narrow down any permission issues (possibly protected customer data)
@KyleG-Shopify Yes, we get the full payload data.
I’ve checked the payload, we get all order fields, including fulfilments,refunds etc.
Only noticable thing was that, Order is having 70+ line items.
Just wondering if that could be due to if payload size too large, will shopify hit our webhook endpoint with just the order id as payload?
Interesting. I can look in to that. Is it consistent with large orders?
UPDATE: I tested creating an order with over 90 line items and the webhook returned the full order data. From here, I would suggest reaching out to our support teams directly, sharing the webhook ID that didn’t return the expected payload so we can take a closer look in to the shop and find out why this is happening.