Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

I have a couple of technical question about Shopify API

I have a couple of technical question about Shopify API

postas
Shopify Partner
4 0 0

To whom it may concern

 

Hi ! I’m Jun Nakamura from Japan and work as a backend developer.

I have a couple of technical question about Shopify API.

①What I’d like to know is that its possible to get sales data via the orders API ?

Because I read a article, it said if we use the orders API, we can do it.

②When we use the orders API( https://github.com/Shopify/shopify-api-php/blob/main/docs/getting_started.md) we suppose We have to install Packagist (https://packagist.org/)  So here is a question, would it be enough to install Packagist version 1.0.0 ? or need to do higher version ?

 

If you happen to have a free moment, I'd be very grateful if you could give me advices : )

 

Yours sincerely,

Jun Nakamura

Replies 5 (5)

PaulNewton
Shopify Partner
7536 666 1595

Hello @postas 

FYI there is a Japan language forum, I do no know the quality however.

https://community.shopify.com/c/shopify-community-japan-jp/ct-p/jp?profile.language=ja

 

① You can use the orders api to brute force your way to sales date by parsing whatever info the orders api passes back from the requests you make.

 

The old admin analytics api was depreciated

https://community.shopify.com/c/shopify-apis-and-sdks/analytics-api-deprecated/td-p/1209202 

 

See ShopifyQL via graphql

https://shopify.dev/api/shopifyql 

https://www.shopify.com/editions/summer2022/dev#shopifyql 

 

And a longer discussion about confusion of how the "sales" reports api works

https://community.shopify.com/c/shopify-apis-and-sdks/reports-api/td-p/1545613 

 

Example workshop

https://shopify.github.io/workshops/codelabs/shopifyql-with-polaris-viz/index.html?index=./workshops...

 

Plus stores get access to ShopifyQL Notebooks announed at Shopify-Editions Summer `22 https://www.shopify.com/enterprise/shopifyql-notebooks 

 

② As for Packagist I am not a php developer, so the only thing to do is to try and if errors see any dicussions by searching the forums for that , or the php library github repo

https://github.com/Shopify/shopify-api-php 

If Packagist is a primary issue avoid burying the lead when learning or troubleshooting.

If you find no solutions for packagist related issues it should either be in the title or it's own stand alone post.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


postas
Shopify Partner
4 0 0

PaulNewton san

 

Nice to meet you !

Thank you for repling me and giving nice solutions : ) 

Could you do me a favour ? I'm not sure about  [own stand alone post] ... 😭   sorry...

What does it mean of it ? Even I googled about it, didn't come up 😫

 

If you happen to have a free moment, I'd be very grateful if you could give me advices : )

 

Yours sincerely,

Jun Nakamura

PaulNewton
Shopify Partner
7536 666 1595

 [own stand alone post]

That means you create a post dedicated and focused only on packagist.

This is to increases chances someone familar with packagist might see that post.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


postas
Shopify Partner
4 0 0

PaulNewton san

 

Thank you for giving us useful info ! ありがとうございます!

And I have an additional quesion that
we have to update PHP version more than v7.3.0 if We would like to use Orders API ??
Because we are developing our application (Web service) by PHP which is v7.2.5
Furthermore using Shopify API which is [ graphql.json ], [ graphql.json ], [ graphql.json ]
I must apologize to ask you a lot of quesions.

If you know anything about useful info for above question, Could please you inform about that

 

Yours sincerely,

Jun Nakamura

PaulNewton
Shopify Partner
7536 666 1595

I'm not a expert on PHP migrations.

You really need to break problems apart to increase chances the right people see the question with proper titles.

 

If you think there is an incompatibility requiring to use a higher version ,  or something is indicating a problem you should provide a reference to that documentation.

 

Generally if platforms library requires a specific version of PHP to interact with a specific endpoint then yes you have to use a higher version of the language, or should by default try to use the highest version of a software to avoid a lot of headache.

 

Otherwise you may need to implement your own api in backend language that works with in the target version being used.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org