Create product draft
https://core-api.ancon.io/api/v1/Tenants/{tenantId}/ProductsAuthorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
tenantIdstring (uuid)required
Header parameters
correlationIdstringCorrelation Id for the request
Request body
productGroupIdstring (uuid)requiredProduct group id for this product
productOutletIdstring (uuid) | nullOutlet id this product belongs to
namestringrequiredName of the product
descriptionstring | nullDescription of the product
allergyInformationstring | nullAllergy information for the product if any is available. For example (Contains traces of peanuts)
hasVariantsbooleanTrue means ths product has more than one variants for example a product named Coca-Cola can have two variants: 33cl, 50cl. False means that there will only be one variant
mandatoryToPickVariantbooleanGets a value indicating whether if it is mandatory to select variant instead of default selection. This applies only for standard products and when there are more than one variants.
autoAcceptbooleanGets a value indicating whether auto accept mode is enabled for the product.
availableInAllOutletsbooleanIf true will make the product shared with all outlets within the tenant
flowViewEnabledbooleanGets a value indicating whether the flowview enabled for the product. Default value will be false (which means AccordianView). This should be only applicable to Standard Products and only available in POS.
courseIdstring (uuid) | nullOptional course id this product will have by default when added to a check
Responses
201Created
idstring (uuid)
400Bad Request
messagestring | nullerrorCodestring (uuid)additionalDataany | null
401Unauthorized
messagestring | null
404Not Found
messagestring | nullerrorCodestring (uuid)