Shopify Stores - View Creation Date of Store - shopify

I want to view a Shopify Store creation date, even without necessarily being an admin of the store
For example, the format should look something like
"2020-07-19T00:06:15.115Z"
However, I am currently unaware of which API endpoint to hit, or where on the site this information can be found.
I know it is possible to check the earliest uploaded product, but that doesn't neccesarily give you the date of site creation. and I'm not talking about date of domain creation, I'm talking about the actual shopify created_at date

you can check the same using the REST API endpoint shop
you need to make a GET request using API to get the data about the shop.
This is the sample request code GET /admin/api/2021-01/shop.json
and here is the same request the contains the data about shop creation along with other data.

Related

how to access shopify Products via API without api-key and password?

i want to develop a chrome extension to see stats for any store which develop in shopify, can i access any store products without API-Key and Password in shopify?
No, you cant access products json without using api-key or permanent token of the store.
But still you want to access the product details you atleast needs the handler of the product.
Lets say your store is "abc.myshopify.com" and handler of your product is "xyz", then you can product json of xyz by HTTP GET call in following url
https://www.abc.myshopify.com/products/xyz.json
in general
https://www.[storename]/products/[product-handle].json
You could try using the Shopify StoreFront API.
It allows to get information of your shop from from your own website or custom app. Although it doesn't need a API Password, it needs a Api Key that doesn't need to be a secret.
The documentation says this (the first point is the important):
Using the Storefront API, you can:
Fetch data about a single product or a collection of products to
display on any website or device.
Create unique checkout experiences
with full control over the shopping cart.
Create new customers or
modify existing ones, including address information.
Allow customers
to select unique product options.
There is no way shopify will provide store details (product list) without api authentication.
For your requirement, I would suggest to create a shopify app which will sync all product details to your storage and you can access data from there.

RecurringApplicationCharge charging

Using oauth we are getting the shop's token with the purpose of using it for creating bills using shopify_api. We successfully create ApplicationCharge and RecurringApplicatiomCharge. The user can confirm or deny that request. But we have a question regarding the RecurringApplicationCharge: will the shopify notify our backend at each withdrawal of money for subscription from the account ? Or should we check the withdrawal fact using API in order to know to prolong the subscription or not?
The charge object has the following attributes:
billing_on
trial_ends_on
activated_on
cancelled_on
Reading the documentation:
billing_on The date and time when the customer will be billed. The
API returns this value in ISO 8601 format.
If you periodically update the charge you can check the next billing_on value. Just be sure to keep checking, if you forget to you won't be able to see previous dates.
There don't seem to be any webhooks for payment notifications of apps.

Paypal rest api express checkout with no shipping field (WebProfile handling)

I'm using Paypal rest api to make payment
the workflow is:
Create payment
Redirect to approval Url
User approved (return back to my site)
Execute payment
But there's one thing that I don't want users re-filling shipping address again because it was filled in my website.
So I change the workflow to:
Create web profile (set no shipping field)
Get web profile ID
Create payment with experienceProfileId given
Redirect to approval Url
User approved (return back to my site)
Execute payment
But I found this will create a lots WebProfile every time user request payment.
I think it is crazy to do:
create and delete it later again and again
attempt listing WebProfiles and check which is the one I want to use every time while creating payment
store experienceProfileId as a constant
What is the best practice for handling WebProfile or does there any solution just hiding shipping address while user approving payments?
Maybe this is not the answer regarding this "WebProfile". As a fact, I dont know what exactly "WebProfile" does or is.
I worked on the same Workflow these days. As you wrote I needed to predefine some address. For me it was obvious, that I have to do the database-stuff on my Website. Then I exactly define the order, shipping_address, etc. and send the users to Paypal.
If you predefine the new ShippingAddress() to your ´new ItemList()´ by
$itemlist->setShippingAddress($shippingaddress) the user cannot change it within the Process.
http://i.imgur.com/nAg8jxU.png
Maybe this helps you a little.

How to get data from multiple sites using executeUserSearchRequest API

I recently signed-up for 30-days Yodlee developer trial.
I am trying to pull the financial data using Yodlee REST APIs. After adding a bank account (for bank B1: site in Yodlee's terminology), I could pull the data using executeUserSearchRequest​ API. However, after that, I added another account (for bank B2), and when I pulled the data, it fetched data ONLY from B2's account and not from B1's account. It seemed like, executeUserSearchRequest​ API is pulling the data from the most recent account. My goal is to pull the data from all added sites.
Any help would be appreciated?
Thanks!
If you need to pull the data from all added accounts, you do not need to pass any account id in the API and it will automatically pull all the data from the integrated accounts. So please make sure that you do not pass any value for transactionSearchRequest.searchFilter.itemAccountId.identifier parameter.
Please refer to the Yoodle API documentation for further details.

How to pass an email to Shopify checkout

I'm working with an external analytics app that requires us to collect email on the /cart page. To save the customer from having to enter their email address again, I'm wondering if there's a way to send that email to the payment form.
You can use the Shopify API to interact with orders, specifically looking at the API documentation you should be able to achieve what you want.
Which language do you code in?/Can you code in?/Would you like to achieve this in? (For example, Ruby, PHP, ASP..)
You can access a users email address from the Order if you know the Order ID..
The Order ID can be found by querying the Shopify orders API based on whatever your criteria are.
Alternatively as per Csaunders answer you can use a Shopify Web-hook which will notify your server when a specific event happens - think of it as an event trigger.. For example:
Customer raises an order
Shopify notices your shop has a web-hook active and so uses it
Your web-system receives all of the order info over a POST request in XML format
You extract the Email address (for example $email = trim($xml->email); )
Push the $email you extracted to whatever your analytics system is
Without further info about your case and setup and what knowledge you have I will struggle to improve this answer - if however you come back and add some more detail or comment on this post I will try to help as best I can.
Thanks