We are using Celigo integrator app (third-party app) which connects our ERP platform of NetSuite with Shopify.
Celigo is trying to build the API for disabling a customer - the flow is if anyone disables a customer in NetSuite (which is the source of truth for us for customer records) then Celigo’s API call will mark the customer as “disabled” in Shopify.
We did see that there is a parameter called “state” on the customer records in Shopify.
We did a test in our shopify’s sandbox store and did a before and after comparison for the json of the customer record.
state was “enabled” before disabling the customer and it got updated to “disabled” after we disabled the customer record manually in Shopify.
But the question is more in regards to the API. If there is a way to update the customer’s “state” parameter from “enabled” to “disabled” via an API. We did refer the below two articles-
Article 1- https://help.shopify.com/en/api/graphql-admin-api/reference/enum/customerstate
In this article, we see under Enum there is a customerState (on the left panel) But we don’t have like a sample way to call it through the API.
Article 2- https://help.shopify.com/en/api/reference/customers/customer
If you see in this article, it actually says “Read-only” for the “state” parameter. But this is for customer’s REST API. The question is can we perhaps call the customerState from article 1, instead of calling the “state” from article 2?
