Integration Stripe Admin API

Highlighted
New Member
7 0 0

Hello.

I'm trying integrate your Admin API features into a bank.

For example there are some company which uses your service and our bank.

We want to provide this company ability to see it's balance and transactions.

I found balance and transactions in Admin API, but I still don't understand how to make requests.

Where can I read instructions how to get api keys and how to use them to make requests?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
516 100 97

Tutorial here: https://shopify.dev/tutorials/make-your-first-shopify-api-request

 
 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes
Highlighted
New Member
7 0 0

Is that only one way to make requests to Admin API?

Do I need to force each user to go through the same way to get api keys for fetching balance and transactions?

0 Likes
Highlighted
Shopify Partner
78 2 3

Hi

That only applies to private apps. If you are publishing a public app or connecting a third party application to Shopify you can also authenticate through OAuth so you don't need to get the user to generate the API keys. https://shopify.dev/concepts/about-apis/authentication

Regards

Tom

Over 16 years experience in operating ecommerce businesses.
DM me on here or via message at Channelup
0 Likes
Highlighted
New Member
7 0 0

But why you can't just show your users in their dashboards some api keys and they can't give me them to fetch their balance data like the most services do?

Why I have to create apps in your service?

As a user I just want to see my keys in dashboard to make api admin requests.

Why so many steps to do the simplest thing?

0 Likes
Highlighted
Shopify Partner
78 2 3

Hi

That is what your user does when they create a private app under your name: https://shopify.dev/tutorials/authenticate-a-private-app-with-shopify-admin#generate-credentials-fro...

After they create the private app they are shown API key and password which they then provide to you. It is very similar to other applications where you have to manually generate API keys. The main difference is the user is sorting their private keys under specific apps. Not much difference from other platforms as you want unique API key for each third party you are providing access to. 

Regards

Tom

Over 16 years experience in operating ecommerce businesses.
DM me on here or via message at Channelup
0 Likes
Highlighted
New Member
7 0 0

Ok, I've created a private app in your service.

Now how to fetch balance and balance transactions using ruby or at least curl?

I've read this https://shopify.dev/docs/admin-api/rest/reference/shopify_payments/balance and this https://github.com/Shopify/shopify_api and still don't understand.

0 Likes
Highlighted
New Member
7 0 0

I try use at least curl, but:

admin/api/2020-10/shop.json # got response
admin/api/2020-10/shopify_payments/balance.json # empty
admin/api/2020-10/shopify_payments/transactions.json # empty

 What's wrong?

0 Likes