Add fiscalDeviceIdentifier to the POS Device API - #4682
Open
shopifyzach wants to merge 2 commits into
Open
Conversation
Assisted-By: devx/1708ff34-a106-41ca-9351-71084c02cdf4
Assisted-By: devx/1708ff34-a106-41ca-9351-71084c02cdf4
shopifyzach
marked this pull request as ready for review
September 10, 2026 16:19
henryStelle
reviewed
Sep 10, 2026
| */ | ||
| registerName: string; | ||
| /** | ||
| * The Shopify-assigned fiscal register identifier for the device, such as Sweden's manufacturing number (tillverkningsnummer). It's the same value as the `fiscalDeviceIdentifier` field on the [PointOfSaleDevice](https://shopify.dev/docs/api/admin-graphql/latest/objects/PointOfSaleDevice) object in the GraphQL Admin API, and it's available while the device is offline. |
Contributor
There was a problem hiding this comment.
it isn't available on latest as linked, only the RC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The GraphQL Admin API exposes a
PointOfSaleDevice.fiscalDeviceIdentifier(API version2026-10). Today the only way for a POS UI extension to read it isshopify.session.deviceId→ build a GID → querypointOfSaleDevice(id:)via the Direct API. That path is online-only, requires an Admin API access scope, costs a network round-trip.Solution
Adds an optional, static property to the POS Device API:
devicealongsidenameandregisterName, which already mirrors the Admin API'sPointOfSaleDevice.handle— same class of Shopify-assigned device identity data.sessiondescribes who/where (shop, user, location, staff);devicedescribes the hardware.registerName).undefinedwhen the device's location doesn't require fiscal device registration. Only available on API version2026-10and later; the host exposes it version-gated (same approach assession.deviceId).Companion changes: the extensibility host
devicePluginreads it from the POS domain bridge and exposes it for2026-10+; POS Mobile supplies the value it already holds locally after device registration.Docs generate from the JSDoc; the checked-in
generated_docs_data_v2.jsonis regenerated in the usualdocs(pos): generate …PR rather than here.Checklist