Registers
Example Mutation
mutation AddRegisterClosureNote($id: ID!, $note: String!) {
addRegisterClosureNote(id: $id, note: $note) {
id,
movement,
totalExpected,
totalReceived,
totalTransactions
}
}
# Example variables
{
"id": "<ID>",
"note": "<NOTE>"
}Mutation
closeRegister — Returns RegisterClosure
Scopes Required: see_manage_takings
| Arguments | Type | Description |
|---|---|---|
|
user |
The user who performed the register closure |
|
|
register |
The register that was closed |
|
|
paymentMethods |
The payment method totals |
|
|
note |
String |
The note on the register closure |
|
openTime |
The time the register was opened, defaults to the current open time of the register |
|
|
closeTime |
The time the register was closed |
Example Mutation
mutation CloseRegister($user: ID!, $register: ID!, $paymentMethods: [CloseRegisterPaymentsInput!]!) {
closeRegister(user: $user, register: $register, paymentMethods: $paymentMethods) {
id,
movement,
totalExpected,
totalReceived,
totalTransactions
}
}
# Example variables
{
"user": "<USER>",
"register": "<REGISTER>",
"paymentMethods": [
{
"id": "<ID>",
"expected": "<EXPECTED>",
"received": "<RECEIVED>"
}
]
}Mutation
overrideRegisterInvoiceNumber — Returns Register
Scopes Required: modify_registers_outlets
| Arguments | Type | Description |
|---|---|---|
|
id |
The ID of the register to update |
|
|
invoiceNumber |
Int! |
The new invoice number for the register |
Example Mutation
mutation OverrideRegisterInvoiceNumber($id: ID!, $invoiceNumber: Int!) {
overrideRegisterInvoiceNumber(id: $id, invoiceNumber: $invoiceNumber) {
id,
name,
invoiceNumber,
openTime,
closed
}
}
# Example variables
{
"id": "<ID>",
"invoiceNumber": "<INVOICE_NUMBER>"
}Mutation
updateRegister — Returns Register
Scopes Required: modify_registers_outlets
| Arguments | Type | Description |
|---|---|---|
|
id |
The ID of the register to update |
|
|
name |
String |
The new name of the register |
|
paymentMethods |
A list of payment methods to display on the sell screen when using this register |
|
|
float |
The float for each day to assist with counting the cash on the close register screen |
|
|
registerClosurePrintSettings |
The settings for what is printed in the register closure for this register |
|
|
closeRegisterTags |
The tags to show revenue for on the close register screen |
Example Mutation
mutation UpdateRegister($id: ID!, $float: CashFloatInput!) {
updateRegister(id: $id, float: $float) {
id,
name,
invoiceNumber,
openTime,
closed
}
}
# Example variables
{
"id": "<ID>",
"float": {
"monday": "<MONDAY>",
"tuesday": "<TUESDAY>",
"wednesday": "<WEDNESDAY>",
"thursday": "<THURSDAY>",
"friday": "<FRIDAY>",
"saturday": "<SATURDAY>",
"sunday": "<SUNDAY>"
}
}Mutation
updateRegisterSurcharging — Returns Register
Scopes Required: modify_surcharges
| Arguments | Type | Description |
|---|---|---|
|
register |
The register to update the surcharging for |
|
|
enabled |
Boolean |
Whether the surcharging schedule is enabled or disabled |
|
schedule |
The schedule to run the surcharging on |
Example Mutation
mutation UpdateRegisterSurcharging($register: ID!) {
updateRegisterSurcharging(register: $register) {
id,
name,
invoiceNumber,
openTime,
closed
}
}
# Example variables
{
"register": "<REGISTER>"
}