diff --git a/.changeset/pos-device-fiscal-device-identifier.md b/.changeset/pos-device-fiscal-device-identifier.md new file mode 100644 index 0000000000..df143c51ae --- /dev/null +++ b/.changeset/pos-device-fiscal-device-identifier.md @@ -0,0 +1,5 @@ +--- +'@shopify/ui-extensions': minor +--- + +Add `fiscalDeviceIdentifier` to the POS Device API. `shopify.device.fiscalDeviceIdentifier` is the Shopify-assigned fiscal register identifier for the device (such as Sweden's manufacturing number), matching the `fiscalDeviceIdentifier` field on the `PointOfSaleDevice` object in the GraphQL Admin API. It's `undefined` when the device's location doesn't require fiscal device registration. diff --git a/packages/ui-extensions/src/surfaces/point-of-sale/api/device-api/device-api.ts b/packages/ui-extensions/src/surfaces/point-of-sale/api/device-api/device-api.ts index 7219339e3a..2dc3b7de7a 100644 --- a/packages/ui-extensions/src/surfaces/point-of-sale/api/device-api/device-api.ts +++ b/packages/ui-extensions/src/surfaces/point-of-sale/api/device-api/device-api.ts @@ -11,6 +11,10 @@ export interface DeviceApiContent { * A short, unique identifier for the device, assigned by Shopify. */ 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 `PointOfSaleDevice`. + */ + fiscalDeviceIdentifier?: string; /** * Retrieves the unique string identifier for the device. Returns a promise that resolves to the device ID. Use for device-specific data storage, analytics tracking, or implementing device-based permissions and configurations. * Note: While Shopify POS attempts to maintain a stable identifier, it is not guaranteed to be permanent and may change.