younifyd
Menu

pointOfSaleDevicePaymentSessionCount

Records a mid-session cash count for a point of sale device payment session.

Use it in a workflow

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

Query

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

graphql
mutation PointOfSaleDevicePaymentSessionCount($pointOfSaleDevicePaymentSessionId: ID!, $balance: MoneyInput!, $staffMemberId: ID!, $time: DateTime, $reasonCodeId: ID, $note: String) {
  pointOfSaleDevicePaymentSessionCount(
    pointOfSaleDevicePaymentSessionId: $pointOfSaleDevicePaymentSessionId
    balance: $balance
    staffMemberId: $staffMemberId
    time: $time
    reasonCodeId: $reasonCodeId
    note: $note
  ) {
    pointOfSaleDevicePaymentSession {
      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 {
        activePaymentSession
        cashDrawer
        id
      }
      status
      totalAdjustments {
        amount
        currencyCode
      }
      totalCashRefunds {
        amount
        currencyCode
      }
      totalCashSales {
        amount
        currencyCode
      }
      totalDiscrepancy {
        amount
        currencyCode
      }
      totalRefunds {
        amount
        currencyCode
      }
      totalSales {
        amount
        currencyCode
      }
      totalsReady
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

pointOfSaleDevicePaymentSessionIdstringrequired

The point of sale device payment session to record a count for.

balanceobjectrequired

The counted cash drawer balance.

amountstringrequired
currencyCodestringrequired

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

staffMemberIdstringrequired

The staff member who performed the count.

timestring

When the count was performed. Defaults to the current time.

reasonCodeIdstring

The reason code for the count.

notestring

The note entered when the count was performed.

json
{
  "pointOfSaleDevicePaymentSessionId": "string",
  "balance": {
    "amount": "string",
    "currencyCode": "USD"
  },
  "staffMemberId": "string",
  "time": "string",
  "reasonCodeId": "string",
  "note": "string"
}

Response

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

pointOfSaleDevicePaymentSessionobject
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
pointOfSaleDeviceobject3 fields
statusstring

One ofOPENCLOSED

totalAdjustmentsobject2 fields
totalCashRefundsobject2 fields
totalCashSalesobject2 fields
totalDiscrepancyobject2 fields
totalRefundsobject2 fields
totalSalesobject2 fields
totalsReadyboolean
userErrorsarray<object>
codeobject
fieldobject
messageobject

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