Bin names query

Hello,

Is it possible to query the API for the new bin names-column added a little while ago? Can’t find any documentation anywhere as to how to actually access it, outside of using the bulk editor or CSV.

Can anyone shed some light on this?

1 Like

Doesn’t look like its supported as a query yet. I’m also waiting for it.
Not in the unstable yet either :see_no_evil_monkey:

+1 @Shopify_com when do you think this will be available in the API?

Hi everyone, (@Deathmelon, @JordanFinners, @EricL),

You can certainly retreive the BIN (business identification number) from an order transaction via the GraphQL Admin API, with the CardPaymentDetails object.

Here’s an example query that returns the BIN for a specific order’s transactions.

{
  order(id: "gid://shopify/Order/12345678910") {
    id
    transactions(first: 20) {
      id
      paymentDetails {
        __typename
        ... on CardPaymentDetails {
          bin
        }
      }
    }
  }
}

If this is not the data that you are looking for, please do provide us with more context, including any screenshots or links to documentation that discusses specifically what you are looking for here, and I can absolutely help look into it further!

Hello @Kellan-Shopify, thanks for answering.

We’re not asking for the business id number, we are asking about the new bin names-feature added to variants, for storing shelf/bin-locations for a product.

To have apps interact with it. Its a native bin names solution with a halfway implementation. It’s not part of the product- or variant admin page, and its not part of the product- or variant api.

This is what we’re asking for. :slight_smile:

Hey @Deathmelon,

Thanks for the additional context, I found the feature that you referencing, as discussed in the Shopify Changelog and Shopify Help Center:

Looking into this further, I can confirm that there is no public API access to this product inventory data at this time, it is only editable via the CSV and Bulk Editor currently.

Our developers are aware of this limitation, and I will be submitting some feedback to our developers and product managers on your behalf that you’d like to see this feature accessible via the Admin API as well in the future.

Just to close the loop: the “solution” here is really “we don’t have this.” The API still doesn’t expose inventory bin names – CSV/Bulk Editor is a manual workaround, not an integration path.

Any ETA or roadmap for API (even read-only) access?

Hi @EricL,

Unfortunately we are unable to provide any ETA’s at this time, though as mentioned I can confirm our developers are aware of this limitation, and we have submitted feedback internally that there is interest from our developer community to add this to the public API in the future.

I’d recommend subscribing to our Shopify.dev changelog’s RSS feed to get notifications of new posts, so you can stay informed if this feature is released in the future.