ShopMutation
Fields
acceptOrderOrder!RequiredorderIdInt!RequiredaddProductToVendorMenuBoolean!RequiredmenuIdInt!RequiredproductIdInt!RequiredcancelOrderOrder!RequiredorderIdInt!RequiredcreateBotBot!RequiredinputCreateBotInput!RequiredavatarUrlStringbotTypeBotType!RequiredcategoryStringconfigurationJSONdescriptionStringdisplayNameString!RequiredisPublicBooleanusernameString!RequiredwebhookSecretStringwebhookUrlStringcreateLocationLocation!RequiredinputCreateLocationInput!RequiredaddressString!RequiredcityStringcountryStringdeliveryAvailableBooleandeliveryRadiusFloatemailStringisActiveBooleanlatitudeFloatlongitudeFloatnameString!RequiredphoneStringpickupAvailableBooleanpostalCodeStringstateStringcreateProductProduct!RequiredinputCreateProductInput!RequiredageRestrictedBooleanavailableQtyIntbarcodeStringcapacityStringdeliverableBooleandescriptionStringdigitalBooleandiscountPriceDecimalfeaturedBooleanimageUrls[String!]!RequiredDefaults:isActiveBooleanlocationIdInt!RequirednameString!RequiredpackageCountStringplusOptionBooleanpriceDecimal!RequiredskuStringunitStringcreateVendorCouponCoupon!RequiredinputCreateVendorCouponInput!RequiredcodeString!RequiredcolorString!RequireddescriptionStringdiscountDecimal!RequiredexpiresOnDateTimeforDeliveryBoolean!RequiredisActiveBoolean!RequiredmaxCouponAmountDecimalminOrderAmountDecimalpercentageBoolean!RequiredproductIds[Int!]RequiredtimesIntvendorLocationIds[Int!]RequiredcreateVendorMenuAdminMenu!RequiredinputCreateVendorMenuInput!RequiredinOrderIntisActiveBooleannameLocalizedStringInput!RequiredvendorLocationIdInt!RequiredcreateWebhookWebhook!RequiredinputCreateWebhookInput!Requiredevents[WebhookEvent!]!RequiredisActiveBooleanurlString!RequireddeleteBotBoolean!RequiredbotIdInt!RequireddeleteLocationBoolean!RequiredlocationIdInt!RequireddeleteProductBoolean!RequiredproductIdInt!RequireddeleteVendorCouponBoolean!RequiredcouponIdInt!RequireddeleteVendorMenuBoolean!RequiredmenuIdInt!RequireddeleteWebhookBoolean!RequiredwebhookIdInt!RequiredmarkOrderPreparingOrder!RequiredorderIdInt!RequiredmarkOrderReadyOrder!RequiredorderIdInt!RequiredprovisionUnitCredentialAutonomousUnitCredential!RequiredidInt!RequiredregenerateBotSecretString!RequiredbotIdInt!RequiredregenerateWebhookSecretString!RequiredwebhookIdInt!RequiredregisterUnitAutonomousUnit!RequiredinputRegisterVendorAutonomousUnitInput!RequiredcountryIdIntfirmwareVersionStringhomeBaseLocationIdIntmakeStringmaxRangeKmFloat!RequiredmaxSpeedKphFloat!RequiredmodelStringpayloadCapacityKgFloat!RequiredserialNoString!RequiredunitKindAutonomousUnitKind!RequiredremoveProductFromVendorMenuBoolean!RequiredmenuIdInt!RequiredproductIdInt!RequiredrevokeUnitCredentialBoolean!RequiredidInt!RequiredsetUnitStatusBoolean!RequiredidInt!RequiredstatusAutonomousUnitStatus!RequiredtestBotWebhookBotWebhookTest!RequiredbotIdInt!RequiredupdateBotBot!RequiredbotIdInt!RequiredinputUpdateBotInput!RequiredavatarUrlStringcategoryStringconfigurationJSONdescriptionStringdisplayNameStringisPublicBooleanwebhookSecretStringwebhookUrlStringupdateLocationLocation!RequiredinputUpdateLocationInput!RequiredaddressStringcityStringcountryStringdeliveryAvailableBooleandeliveryRadiusFloatemailStringisActiveBooleanlatitudeFloatlongitudeFloatnameStringphoneStringpickupAvailableBooleanpostalCodeStringstateStringlocationIdInt!RequiredupdateProductProduct!RequiredinputUpdateProductInput!RequiredageRestrictedBooleanavailableQtyIntbarcodeStringcapacityStringdeliverableBooleandescriptionStringdigitalBooleandiscountPriceDecimalfeaturedBooleanisActiveBooleannameStringpackageCountStringplusOptionBooleanpriceDecimalskuStringunitStringproductIdInt!RequiredupdateUnitAutonomousUnit!RequiredidInt!RequiredinputUpdateOwnAutonomousUnitInput!RequiredfirmwareVersionStringhomeBaseLocationIdIntisActiveBooleanmakeStringmaxRangeKmFloatmaxSpeedKphFloatmodelStringpayloadCapacityKgFloatupdateVendorCouponCoupon!RequiredcouponIdInt!RequiredinputUpdateVendorCouponInput!RequiredcodeStringcolorStringdescriptionStringdiscountDecimalexpiresOnDateTimeforDeliveryBooleanisActiveBooleanmaxCouponAmountDecimalminOrderAmountDecimalpercentageBooleanproductIds[Int!]RequiredtimesIntvendorLocationIds[Int!]RequiredupdateVendorMenuAdminMenu!RequiredinputUpdateVendorMenuInput!RequiredinOrderIntisActiveBooleanmenuIdInt!RequiredupdateWebhookWebhook!RequiredinputUpdateWebhookInput!Requiredevents[WebhookEvent!]RequiredisActiveBooleanurlStringwebhookIdInt!Required
Create a new bot owned by the authenticated vendor.
Requires a user-context token, unlike the other bot mutations: The bot records a human author, which is required and must be a real user. A client_credentials token has no honest value to put there, and inventing one would corrupt the attribution the public bot directory renders.
Whether to list the bot in the public directory. Defaults to false.
Handle the bot is mentioned by, without the leading @. 3–50 characters, alphanumeric and underscores only, and unique platform-wide.
Whether the branch delivers. Defaults to true.
Whether the branch is in service. Defaults to true.
Branch name, e.g. Downtown store.
Whether customers can collect from this branch. Defaults to true.
Whether buyers must pass an age check. Defaults to false.
Opening stock for locationId. Omit to leave the branch unstocked.
Packaged size as free text, e.g. 500 alongside a unit of ml.
Whether the product can be delivered. Defaults to true.
Whether the product is digital and needs no physical fulfilment. Defaults to false.
Sale price in major units. Defaults to 0, meaning no discount.
Whether to surface the product in featured placements. Defaults to false.
Whether the product is orderable. Defaults to true.
Whether the product is restricted to Plus members. Defaults to false.
List price in major units of the vendor's currency, e.g. 12.50. Excludes tax.
Unit capacity is expressed in, e.g. g, ml, piece.
Percentage when percentage is true, otherwise a fixed amount.
Never negative: the order paths subtract this, so a negative value would increase what the customer pays.
Whether discount is a percentage rather than a fixed amount.
Permanently delete a bot. Returns true on success.
Delete a location. Returns true on success.
Delete a product (soft delete). Returns true on success.
Permanently delete a webhook. Returns true on success.
Issue machine credentials for a unit.
The plaintext secret is returned exactly once and only its hash is stored, so a lost secret can only be replaced, never recovered. Re-provisioning a credentialed unit is refused rather than silently rotating — that would strand the unit in the field with a secret nobody holds.
Report a unit's operational status.
Restricted to the states an owner legitimately controls. Assigned, Enroute and Returning follow from dispatch decisions and Disabled is an administrative act — accepting either here would let an owner desynchronise a unit from its live job or quietly un-ground it.
New stock level, applied to every branch stocking this product.
Replacement sale price in major units. 0 clears the discount.
Replacement unit for capacity.
New hex colour for display (e.g. #FF5733). Omit to leave it unchanged.
Whether discount is a percentage. Omit to leave it unchanged.
Replaces the location restriction outright. Some(vec![]) clears it.
Whether the webhook delivers. Set false to pause without deleting.