ShopifyAPI Postman Collection

Hi Folks,
Hope your doing fine.

Here at basico.com we are working on a Platform Migration, in order to enter on the Shopify Domain.
As we are documenting several aspects of the ShopifyAPI, we ended up with a tool we believe it will be very useful for everyone starting with ShopifyAPI or Integrations.

Today we released a Github Repository containin a Postman Collection with all the ShopifyAPI Endpoints available to Store Owners (including the ones for ShopifyPlus)

The Repository is the following:
https://github.com/lojabasico/shopify-postman

Right there, you will find precise instructions to how to customize the Collection to work with your own Store.

Hope it can be pinned or featured somehow, so it can help other store owners in the future.

][`s

Hey Renato,

Wow - this is such a great contribution to our community! Kudos for putting this together.

We’ll make a point to contribute new endpoints and examples as they come in.

All the best,

Jordan L
Developer Experience
Shopify

Hi,

Thanks for adding this. I tried it with the API Key and shared secret but it does not work.

I get this error when i tried the application charge API.

{
“errors”: “[API] Invalid API key or access token (unrecognized login or wrong password)”
}

Can somebody help?

I can’t echo enough how much of a help this is! Can’t wait for the continued development of this repo. Draft order API is going to be a game changer for B2B sales!

Amazing.

Thank you!

This is an amazing suite first off - GREAT WORK!

Problem:
All API calls work, except for Metafield - POST : Create new metafield for a product

I can do PUT on metafields, I can GET all metafields, and my token has literally every single permission that is selectable, yet I always just get a LOGIN page html as the response. I feel like i’m going insane because I already built my own mini suite of calls and no matter what the POST to make NEW product metadata NEVER works :frowning:

Any advice would be amazing! (both built my own based on their api, and tried in your suite and neither will work for me)

UPDATE : RESOLUTION
*USING POSTMAN ADDS HIDDEN COOKIES… DELETE THAT ISH OR USE A BETTER API TOOL…

  • Lux

Fantastic! Great contribution!

Thank you for this. really great job!!

will it contain the rest of apis ? (inventory level ..)

POST /admin/products/XXXXX/variants.json HTTP/1.1
Host: sandbox.myshopify.com
Content-Type: application/json
Authorization: Basic
Cache-Control: no-cache
Postman-Token: 0a3f4fa5-87f1-449c-DDD

{
“variant”: [
{
“id”: XXXX,
“option1”: “Red”,
“product_id”: 78932XXX,
“title”: “REGULAR / Orange”,
“price”: “100.00”
}
]
}

Aboverequest is not working even the standard given in Shopify Documentation does not work, nor the one in above zip. PUT / POST Product Variant API’s are not working for me. Can anyone help me please?

Output in JSON is

“Unexpected ‘<’” and in HTML its long body

Hi

There's some way to send several products in a single call to update the inventory

this is the endpoint that i'm using admin/inventory_levels/set.json

When POSTing a new Webhook I get a redirect to a login-page.

Weh I list the existing Webhooks I get an empty list even though I have manually configured a few in the admin page.

Has anyone been able to configure a webhook through the REST admin API?

Hello all,

I was wonding if anyone has an answer to the issue of getting “errors”: “[API] Invalid API key or access token (unrecognized login or wrong password)”

Thanks,

Mike

Heads up: it appears that the latest Mac OS X upgrade (Mojave) may have updates something in the underlying Chrome Engine (??). This is just me speculating, but whereas before I was able to use the Postman Collection, after the upgrade, my POST requests fail and an HTML page is returned, warning me that “In order to use the Shopify admin you need to enable Javascript.”

I can copy the curl code and execute it from the command line without problems, so the problem seems to be scoped to something within Postman.

Hope this helps a fellow trouble-shooter.

Thanks alot! Great work

Can you please tell me if there are any Client API’s i.e. for adding products to the cart, removing product from the cart, checkout, buy products, etc

Sorry guys, but Shopify documentation is awful, bears strike ressemblance to IBM one. A lot of words and “instructions” but no straight to the point example. I’m using postman collection. GET ORDERS works fine, nothing special with that. POSTing orders is real pain. I tried to post storefront_access_token and I received error: { “errors”: “Internal Server Error” } with service: [email removed]

In fact, I want to post new test order? { “order”: { “line_items”: [ { “variant_id”: 1085584044, “quantity”: 1, “title”: “TEST ORDER”, “price”: 100.00, “grams”: “200” } ] } } What can I have to do? Step by step. That would be nice and easy, not some endless chain documentation with no point at all. I already spent hours in trying and reading docs, manuals and it is quite frustrating.

With the format of request you are trying to make in postman you should be using private app credentials. Check out this doc that has info on how to get started with postman, including how to generate private app credentials

Thanks for answer. Sorry, I tried and lost another hour of very frustrating Sherlock Holmes job. I have 20 years of programming experience and in 98% of cases I figure out an example of almost every programming technology in couple of hours. Your documentation is very confusing. It must be made in small working parts, so users can quickly check and try what is going on and build further. First part is always LOGIN, AUTHENTICATION. Do that this way… with this code, tool.. example one, two, three, etc. You have simple GET calls and I integrate it without any problems, but POST calls are rocket science and endless pain.

Screenshots of not working postman POST order calls are attached. I hope, you will answer me directly what am I doing wrong, not by posting another useless links.

Thanks for answer.

@MikiMiki You have to disable cookies in Postman. You cannot pass cookies in a request to the API.

@Ryan Maybe it’s time to create a dedicated Cookies page in the API docs just because these questions and problems keep repeating at least half a dozen times per week on here (not that it isn’t mentioned anywhere… but yeah) ?