younifyd
Menu

cashTrackingSession

Fetch a single cash tracking session by its ID.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the cashTrackingSession action (under Cash).
  3. Fill in the fields below, then reference the result from later steps as {{cashtrackingsession.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 CashTrackingSession($id: ID!) {
  cashTrackingSession(id: $id) {
    cashTrackingEnabled
    closingBalance {
      amount
      currencyCode
    }
    closingNote
    closingStaffMember {
      accountType
      active
      email
      exists
      firstName
      id
      initials
      isShopOwner
      lastName
      locale
      name
      phone
      privateData {
        accountSettingsUrl
        createdAt
        permissions
      }
    }
    closingTime
    expectedBalance {
      amount
      currencyCode
    }
    expectedClosingBalance {
      amount
      currencyCode
    }
    expectedOpeningBalance {
      amount
      currencyCode
    }
    id
    location {
      activatable
      address {
        address1
        address2
        city
        country
        countryCode
        formatted
        latitude
        longitude
        phone
        province
        provinceCode
        zip
      }
      addressVerified
      createdAt
      deactivatable
      deactivatedAt
      deletable
      fulfillmentService {
        callbackUrl
        fulfillmentOrdersOptIn
        handle
        id
        inventoryManagement
        location
        requiresShippingMethod
        serviceName
        trackingSupport
        type
      }
      fulfillsOnlineOrders
      hasActiveInventory
      hasUnfulfilledOrders
      id
      isActive
      isFulfillmentService
      isPrimary
      legacyResourceId
      localPickupSettingsV2 {
        instructions
        pickupTime
      }
      name
      shipsInventory
      suggestedAddresses {
        address1
        address2
        city
        country
        countryCode
        formatted
        province
        provinceCode
        zip
      }
      updatedAt
    }
    netCashSales {
      amount
      currencyCode
    }
    openingBalance {
      amount
      currencyCode
    }
    openingNote
    openingStaffMember {
      accountType
      active
      email
      exists
      firstName
      id
      initials
      isShopOwner
      lastName
      locale
      name
      phone
      privateData {
        accountSettingsUrl
        createdAt
        permissions
      }
    }
    openingTime
    registerName
    totalAdjustments {
      amount
      currencyCode
    }
    totalCashRefunds {
      amount
      currencyCode
    }
    totalCashSales {
      amount
      currencyCode
    }
    totalDiscrepancy {
      amount
      currencyCode
    }
  }
}

Variables

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

idstringrequired

The ID of the `CashTrackingSession` to return.

json
{
  "id": "string"
}

Response

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

cashTrackingEnabledboolean
closingBalanceobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

closingNotestring
closingStaffMemberobject
accountTypestring

One ofREGULARRESTRICTEDINVITEDREQUESTEDCOLLABORATORCOLLABORATOR_TEAM_MEMBERSAMLINVITED_STORE_OWNER

activeboolean
emailstring
existsboolean
firstNamestring
idstring
initialsarray<object>
isShopOwnerboolean
lastNamestring
localestring
namestring
phonestring
privateDataobject3 fields
closingTimestring
expectedBalanceobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

expectedClosingBalanceobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

expectedOpeningBalanceobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

idstring
locationobject
activatableboolean
addressobject12 fields
addressVerifiedboolean
createdAtstring
deactivatableboolean
deactivatedAtstring
deletableboolean
fulfillmentServiceobject10 fields
fulfillsOnlineOrdersboolean
hasActiveInventoryboolean
hasUnfulfilledOrdersboolean
idstring
isActiveboolean
isFulfillmentServiceboolean
isPrimaryboolean
legacyResourceIdstring
localPickupSettingsV2object2 fields
namestring
shipsInventoryboolean
suggestedAddressesarray<object>
updatedAtstring
netCashSalesobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

openingBalanceobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

openingNotestring
openingStaffMemberobject
accountTypestring

One ofREGULARRESTRICTEDINVITEDREQUESTEDCOLLABORATORCOLLABORATOR_TEAM_MEMBERSAMLINVITED_STORE_OWNER

activeboolean
emailstring
existsboolean
firstNamestring
idstring
initialsarray<object>
isShopOwnerboolean
lastNamestring
localestring
namestring
phonestring
privateDataobject3 fields
openingTimestring
registerNamestring
totalAdjustmentsobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

totalCashRefundsobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

totalCashSalesobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

totalDiscrepancyobject
amountstring
currencyCodestring

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

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

cashTrackingSession — Shopify — Documentation