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 |
The register the movement was performed on |
|
|
user |
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 |
The payment method that the movement occurred on (defaults to cash) |
|
|
reason |
String |
The reason for the movement |
|
denominations |
The denominations for the movement |
|
|
timestamp |
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>"
}