Takings

Mutation

createMovement — Returns RegisterClosureMovements

Scopes Required: manage_takings_adjust_movement

Arguments Type Description

clientId

String

The local ID of the movement (you can put your ID here)

register

ID!

The register the movement was performed on

user

ID!

The user who performed the movement

amount

Float!

The amount that was moved (positive increases the value in the register, negative decreases it). The max absolute value is 999,999.99

paymentMethod

ID

The payment method that the movement occurred on (defaults to cash)

reason

String

The reason for the movement

denominations

MovementDirectionInput

The denominations for the movement

timestamp

DateTime

The time the movement occurred

Example Mutation
mutation CreateMovement($register: ID!, $user: ID!, $amount: Float!) {
    createMovement(register: $register, user: $user, amount: $amount) {
        id,
        amount,
        reason,
        timestamp
    }
}

# Example variables
{
    "register": "<REGISTER>",
    "user": "<USER>",
    "amount": "<AMOUNT>"
}