API reference
setKarmaSurplusQuantity
Required permission: RestaurantMenuStockWrite
setKarmaSurplusQuantity(
restaurantId: ID!
productVariantId: ID!
input: SetKarmaSurplusQuantityInput!
): KarmaSurplusEntryArguments
| Name | Type | Description |
|---|---|---|
restaurantId |
ID! |
|
productVariantId |
ID! |
|
input |
SetKarmaSurplusQuantityInput! |
Returns
Example
mutation SetKarmaSurplusQuantity($restaurantId: ID!, $productVariantId: ID!, $input: SetKarmaSurplusQuantityInput!) {
setKarmaSurplusQuantity(restaurantId: $restaurantId, productVariantId: $productVariantId, input: $input) {
id
date
quantity
quantitySold
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { setKarmaSurplusQuantity(...) { __typename } }"}'