Menu
pointOfSaleDevicePaymentSessionClose
Closes a point of sale device payment session.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the pointOfSaleDevicePaymentSessionClose action (under Point).
- Fill in the fields below, then reference the result from later steps as
{{pointofsaledevicepaymentsessionclose.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.
mutation PointOfSaleDevicePaymentSessionClose($pointOfSaleDevicePaymentSessionId: ID!, $balance: MoneyInput!, $staffMemberId: ID!, $time: DateTime, $reasonCodeId: ID, $note: String) {
pointOfSaleDevicePaymentSessionClose(
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.
{
"pointOfSaleDevicePaymentSessionId": "string",
"balance": {
"amount": "string",
"currencyCode": "USD"
},
"staffMemberId": "string",
"time": "string",
"reasonCodeId": "string",
"note": "string"
}
Response
Read the result with {{pointofsaledevicepaymentsessionclose.response.data.data.pointOfSaleDevicePaymentSessionClose}}. If the API returns errors, the step fails and they are at {{pointofsaledevicepaymentsessionclose.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?