younifyd
Menu

pointOfSaleDevice

Fetch a single point of sale device by its ID.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the pointOfSaleDevice action (under Point).
  3. Fill in the fields below, then reference the result from later steps as {{pointofsaledevice.response.data}}.

Query

This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
query PointOfSaleDevice($id: ID!) {
  pointOfSaleDevice(id: $id) {
    activePaymentSession {
      cashCountedAtClose {
        amount
        currencyCode
      }
      cashCountedAtOpen {
        amount
        currencyCode
      }
      cashDrawer {
        balance
        id
        location
        name
      }
      closingAdjustment {
        amount
        currencyCode
      }
      closingBalance {
        amount
        currencyCode
      }
      closingNote
      closingStaffMember {
        accountType
        active
        email
        exists
        firstName
        id
        initials
        isShopOwner
        lastName
        locale
        name
        phone
        privateData
      }
      closingTime
      currency
      expectedCashAtClose {
        amount
        currencyCode
      }
      expectedCashAtOpen {
        amount
        currencyCode
      }
      id
      location {
        activatable
        address
        addressVerified
        createdAt
        deactivatable
        deactivatedAt
        deletable
        fulfillmentService
        fulfillsOnlineOrders
        hasActiveInventory
        hasUnfulfilledOrders
        id
        isActive
        isFulfillmentService
        isPrimary
        legacyResourceId
        localPickupSettingsV2
        name
        shipsInventory
        suggestedAddresses
        updatedAt
      }
      netCashSales {
        amount
        currencyCode
      }
      netSales {
        amount
        currencyCode
      }
      openingNote
      openingStaffMember {
        accountType
        active
        email
        exists
        firstName
        id
        initials
        isShopOwner
        lastName
        locale
        name
        phone
        privateData
      }
      openingTime
      pointOfSaleDevice
      status
      totalAdjustments {
        amount
        currencyCode
      }
      totalCashRefunds {
        amount
        currencyCode
      }
      totalCashSales {
        amount
        currencyCode
      }
      totalDiscrepancy {
        amount
        currencyCode
      }
      totalRefunds {
        amount
        currencyCode
      }
      totalSales {
        amount
        currencyCode
      }
      totalsReady
    }
    cashDrawer {
      balance {
        amount
        currencyCode
      }
      id
      location {
        activatable
        address
        addressVerified
        createdAt
        deactivatable
        deactivatedAt
        deletable
        fulfillmentService
        fulfillsOnlineOrders
        hasActiveInventory
        hasUnfulfilledOrders
        id
        isActive
        isFulfillmentService
        isPrimary
        legacyResourceId
        localPickupSettingsV2
        name
        shipsInventory
        suggestedAddresses
        updatedAt
      }
      name
    }
    id
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

The ID of the `PointOfSaleDevice` to return.

json
{
  "id": "string"
}

Response

Read the result with {{pointofsaledevice.response.data.data.pointOfSaleDevice}}. If the API returns errors, the step fails and they are at {{pointofsaledevice.response.data.errors}}.

activePaymentSessionobject
cashCountedAtCloseobject2 fields
cashCountedAtOpenobject2 fields
cashDrawerobject4 fields
closingAdjustmentobject2 fields
closingBalanceobject2 fields
closingNotestring
closingStaffMemberobject13 fields
closingTimestring
currencystring
expectedCashAtCloseobject2 fields
expectedCashAtOpenobject2 fields
idstring
locationobject21 fields
netCashSalesobject2 fields
netSalesobject2 fields
openingNotestring
openingStaffMemberobject13 fields
openingTimestring
pointOfSaleDeviceobject

Recursive reference to PointOfSaleDevice, not further expanded.

statusstring

One ofOPENCLOSED

totalAdjustmentsobject2 fields
totalCashRefundsobject2 fields
totalCashSalesobject2 fields
totalDiscrepancyobject2 fields
totalRefundsobject2 fields
totalSalesobject2 fields
totalsReadyboolean
cashDrawerobject
balanceobject2 fields
idstring
locationobject21 fields
namestring
idstring

Need more? See the Shopify guide for connection setup and behaviour shared by every action.

pointOfSaleDevice — Shopify — Documentation