Change in Order payment terms does not trigger Order update webhook or show in GET Order response

Change in Order payment terms does not trigger Order update webhook or show in GET Order response

z832
Shopify Partner
1 0 0

I am working on a Shopify integration to a warehousing system. One of the requirements is to only sync orders that are paid or have fixed payment terms.

 

We have Order create, and Order update webhook notifications configured to trigger the integration workflow. But do not receive any order update notification when payment terms are changed.

 

For example if we create an order with "Due on receipt" payment terms:

On order creation we receive the webhooks but do not integrate as payment terms do not meet criteria.

Then if we edit the order through Shopify Admin UI, changing the payment terms to "Net 90" there is no Order update notification webhook sent.

Using the REST Admin API to Retrieve the specific order, the payment_terms_name still shows "Due on receipt".

Shopify Admin UI still shows "Net 90" after refreshing the order page.

 

Is this a bug? Is there some other way to be notified of an Orders payment terms changing?

 

Reply 1 (1)

AdVision_eComm
Shopify Partner
6 1 1

Hi @z832 :

 

Alvina from AdVision eCommerce here, It sounds like you're running into an issue with webhook notifications not firing when the payment terms on an order are changed. This could be related to how Shopify handles order updates and triggers webhooks for certain actions but not others.

Here are a few possible solutions you can try:

 

  • Check Webhook Scopes: Ensure that the webhook for "Order update" includes changes to payment terms specifically. Sometimes the scope of the webhook may not cover certain fields.

  • Manual Polling: If the webhook doesn't trigger on payment term updates, consider setting up periodic polling using the Shopify REST Admin API to check for changes in payment terms for orders that didn’t initially meet your criteria.

  • Custom Webhook Trigger: You could explore creating a custom trigger that sends a webhook whenever a specific event, like payment terms being edited, occurs. This may require more custom development but could solve the issue.

  • Alternative Webhooks: If Shopify's native webhook doesn’t send the update, you might also want to explore using a third-party app or API integration that tracks order changes more thoroughly.

Hope this helps!

Thank you.