Have your say in Community Polls: What was/is your greatest motivation to start your own business?

What is the paylod of the webhook SHOP_UPDATE?

Solved

What is the paylod of the webhook SHOP_UPDATE?

andrew_upo
Shopify Partner
7 1 1

Hello. Could you please tell me what payload the SHOP_UPDATE webhook returns. Which Shop object can I use (GraphQL or REST) and how can I identify development stores and paid plans in the payload of this webhook?

Accepted Solutions (3)

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello @andrew_upo 

Shop Update Webhook Payload : 

{
  "id": 12345,
  "name": "xyz-com",
  "email": "xyz@gamail.com",
  "domain": "test.myshopify.com",
  "province": null,
  "country": "IN",
  "address1": null,
  "zip": null,
  "city": null,
  "source": null,
  "phone": "99999999999",
  "latitude": null,
  "longitude": null,
  "primary_locale": "en",
  "address2": null,
  "created_at": "2024-05-01T07:22:03-04:00",
  "updated_at": "2024-06-06T08:20:46-04:00",
  "country_code": "IN",
  "country_name": "India",
  "currency": "INR",
  "customer_email": "test@gmail.com",
  "timezone": "(GMT-05:00) America/New_York",
  "iana_timezone": "America/New_York",
  "shop_owner": "test",
  "money_format": "Rs. {{amount}}",
  "money_with_currency_format": "Rs. {{amount}}",
  "weight_unit": "kg",
  "province_code": null,
  "taxes_included": false,
  "auto_configure_tax_inclusivity": null,
  "tax_shipping": null,
  "county_taxes": true,
  "plan_display_name": "Developer Preview",
  "plan_name": "partner_test",
  "has_discounts": true,
  "has_gift_cards": true,
  "myshopify_domain": "test.myshopify.com",
  "google_apps_domain": null,
  "google_apps_login_enabled": null,
  "money_in_emails_format": "Rs. {{amount}}",
  "money_with_currency_in_emails_format": "Rs. {{amount}}",
  "eligible_for_payments": false,
  "requires_extra_payments_agreement": false,
  "password_enabled": true,
  "has_storefront": true,
  "finances": true,
  "primary_location_id": 645549,
  "checkout_api_supported": true,
  "multi_location_enabled": true,
  "setup_required": false,
  "pre_launch_enabled": false,
  "enabled_presentment_currencies": [
    "INR",
    "MXN"
  ],
  "transactional_sms_disabled": true,
  "marketing_sms_consent_enabled_at_checkout": false
}


You can use rest API and identify development stores and paid plans in the webhook payload through the plan_name.

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello @andrew_upo 

Here are All Shopify Plan Name : 

[
"affiliate",
"staff",
"professional",
"custom",
"shopify_plus",
"unlimited",
"basic",
"cancelled",
"staff_business",
"trial",
"dormant",
"frozen",
"singtel_unlimited",
"npo_lite",
"singtel_professional",
"singtel_trial",
"npo_full",
"business",
"singtel_basic",
"uafrica_professional",
"sales_training",
"singtel_starter",
"uafrica_basic",
"fraudulent",
"enterprise",
"starter",
"comped",
"shopify_alumni",
"partner_test"
]

 

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello @andrew_upo 

You're correct, The plan.partnerDevelopment field returns true for all development stores.

 

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

View solution in original post

Replies 5 (5)

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello @andrew_upo 

Shop Update Webhook Payload : 

{
  "id": 12345,
  "name": "xyz-com",
  "email": "xyz@gamail.com",
  "domain": "test.myshopify.com",
  "province": null,
  "country": "IN",
  "address1": null,
  "zip": null,
  "city": null,
  "source": null,
  "phone": "99999999999",
  "latitude": null,
  "longitude": null,
  "primary_locale": "en",
  "address2": null,
  "created_at": "2024-05-01T07:22:03-04:00",
  "updated_at": "2024-06-06T08:20:46-04:00",
  "country_code": "IN",
  "country_name": "India",
  "currency": "INR",
  "customer_email": "test@gmail.com",
  "timezone": "(GMT-05:00) America/New_York",
  "iana_timezone": "America/New_York",
  "shop_owner": "test",
  "money_format": "Rs. {{amount}}",
  "money_with_currency_format": "Rs. {{amount}}",
  "weight_unit": "kg",
  "province_code": null,
  "taxes_included": false,
  "auto_configure_tax_inclusivity": null,
  "tax_shipping": null,
  "county_taxes": true,
  "plan_display_name": "Developer Preview",
  "plan_name": "partner_test",
  "has_discounts": true,
  "has_gift_cards": true,
  "myshopify_domain": "test.myshopify.com",
  "google_apps_domain": null,
  "google_apps_login_enabled": null,
  "money_in_emails_format": "Rs. {{amount}}",
  "money_with_currency_in_emails_format": "Rs. {{amount}}",
  "eligible_for_payments": false,
  "requires_extra_payments_agreement": false,
  "password_enabled": true,
  "has_storefront": true,
  "finances": true,
  "primary_location_id": 645549,
  "checkout_api_supported": true,
  "multi_location_enabled": true,
  "setup_required": false,
  "pre_launch_enabled": false,
  "enabled_presentment_currencies": [
    "INR",
    "MXN"
  ],
  "transactional_sms_disabled": true,
  "marketing_sms_consent_enabled_at_checkout": false
}


You can use rest API and identify development stores and paid plans in the webhook payload through the plan_name.

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
andrew_upo
Shopify Partner
7 1 1

Thanks for the reply.
Are there any documented values for the “plan_name” field?
What values can I get there. The documentation gives the value “affiliate” for development stores, but my development store returns “partner_test” as in your reply.

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello @andrew_upo 

Here are All Shopify Plan Name : 

[
"affiliate",
"staff",
"professional",
"custom",
"shopify_plus",
"unlimited",
"basic",
"cancelled",
"staff_business",
"trial",
"dormant",
"frozen",
"singtel_unlimited",
"npo_lite",
"singtel_professional",
"singtel_trial",
"npo_full",
"business",
"singtel_basic",
"uafrica_professional",
"sales_training",
"singtel_starter",
"uafrica_basic",
"fraudulent",
"enterprise",
"starter",
"comped",
"shopify_alumni",
"partner_test"
]

 

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
andrew_upo
Shopify Partner
7 1 1

Thank you so much!
Could you please tell me more, in Shop GraphQL object there is a field “plan.partnerDevelopment”. This field will return true for all development stores, right?
My goal is to make the app free for development stores, but require subscriptions for stores on paid plans.

Huptech-Web
Shopify Partner
1010 204 217

This is an accepted solution.

Hello @andrew_upo 

You're correct, The plan.partnerDevelopment field returns true for all development stores.

 

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required