Create product group v1.1
post
https://core-api.ancon.io/api/v1.1/Tenants/{tenantId}/ProductGroupsAuthorization
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
namestringrequiredtaxesarray<object> | null2 fields in
taxesidstring (uuid)orderFormatsinteger (int32)requiredAllowed values:
0,1,2,4,8,16,32,64,128,159,191.
outletProductGroupSettingsarray<object>required8 fields in
outletProductGroupSettingsoutletIdstring (uuid)accountNumberstring | nullvoucherTrackingobject | null2 fields in
voucherTrackingcostCenterstring | nullprojectstring | null
custom1string | nullcustom2string | nullcustom3string | nullcustom4string | nullcustom5string | null
tagsarray<string> | null
Responses
201Created
productGroupobject | null7 fields in
productGroupidstring (uuid)namestring | nulltypeinteger (int32)Allowed values:
0,1,2,3,4,5.taxesarray<object> | null3 fields in
taxesidstring (uuid)ratenumber (double)orderFormatsinteger (int32)Allowed values:
0,1,2,4,8,16,32,64,128,159,191.
accountsarray<object> | null3 fields in
accountsidstring (uuid)orderFormatsinteger (int32)Allowed values:
0,1,2,4,8,16,32,64,128,159,191.numberstring | null
outletProductGroupSettingsarray<object> | null10 fields in
outletProductGroupSettingsoutletIdstring (uuid)outletNamestring | nullaccountIdstring (uuid) | nullaccountNumberstring | nullvoucherTrackingobject | null2 fields in
voucherTrackingcostCenterstring | nullprojectstring | null
custom1string | nullcustom2string | nullcustom3string | nullcustom4string | nullcustom5string | null
tagsarray<object> | null2 fields in
tagsidstring (uuid)namestring | null
400Bad Request
messagestring | nullerrorCodestring (uuid)additionalDataany | null
401Unauthorized
messagestring | null
404Not Found
messagestring | nullerrorCodestring (uuid)