API reference
createCashAdjustment
Required permission: RestaurantCashAdjustmentWrite or RestaurantReportWrite
createCashAdjustment(
restaurantId: ID!
amount: Int53!
): CashAdjustmentArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
amount |
Int53! |
Returns
Example
mutation CreateCashAdjustment($restaurantId: ID!, $amount: Int53!) {
createCashAdjustment(restaurantId: $restaurantId, amount: $amount) {
id
amount
createdAt
updatedAt
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { createCashAdjustment(...) { __typename } }"}'