younifyd
Menu

pointOfSaleDevicePaymentSessionAdjust

Adds an adjustment to a point of sale device payment session.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the pointOfSaleDevicePaymentSessionAdjust action (under Point).
  3. Fill in the fields below, then reference the result from later steps as {{pointofsaledevicepaymentsessionadjust.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 PointOfSaleDevicePaymentSessionAdjust($pointOfSaleDevicePaymentSessionId: ID!, $cash: MoneyInput!, $staffMemberId: ID!, $reasonCodeId: ID, $note: String, $time: DateTime) {
  pointOfSaleDevicePaymentSessionAdjust(
    pointOfSaleDevicePaymentSessionId: $pointOfSaleDevicePaymentSessionId
    cash: $cash
    staffMemberId: $staffMemberId
    reasonCodeId: $reasonCodeId
    note: $note
    time: $time
  ) {
    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 {
      field
      message
    }
  }
}

Variables

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

pointOfSaleDevicePaymentSessionIdstringrequired

The point of sale device payment session to be adjusted.

cashobjectrequired

The amount of cash being added or removed.

amountstringrequired
currencyCodestringrequired

One ofUSDEURGBPCADAFNALLDZDAOAARSAMDAWGAUDBBDAZNBDTBSDBHDBIFBYNBZDBMDBTNBAMBRLBOBBWPBNDBGNMMKKHRCVEKYDXAFCLPCNYCOPKMFCDFCRCHRK

staffMemberIdstringrequired

The staff member who made the adjustment.

reasonCodeIdstring

The reason code for the adjustment.

notestring

The note entered when the adjustment was made.

timestring

The time when the adjustment was made. Defaults to the current time.

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

Response

Read the result with {{pointofsaledevicepaymentsessionadjust.response.data.data.pointOfSaleDevicePaymentSessionAdjust}}. If the API returns errors, the step fails and they are at {{pointofsaledevicepaymentsessionadjust.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>
fieldobject
messageobject

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