Shopify API to get All Records for Customers,Orders & Products (Django)
I have searched for getting all customer one by one.But after some study understand the whole way to solve. for getting 250 data from shopify api we can use limit but pagination and synchronization for getting all data we need some step to get all data.
shop_url = "https://%s:%s@%s.myshopify.com/admin/api/%s/" % (API_KEY, PASSWORD, SHOP_NAME, API_VERSION) endpoint = 'customers.json?limit=250&fields=id,email&since_id=0' r = requests.get(shop_url + endpoint)
Step 1:Where we need to put the initial id to start extraction and store to your db
Step 2:Next changes the since_id value with with last id of your extraction like my image. last id=5103249850543 (suppose) Mentioned in Fields Data (https://i.stack.imgur.com/vFZeH.png)
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.