{"openapi":"3.0.0","info":{"version":"1.0.0","title":"3CadPromo","description":"This is a simple API for managing 3CadSupervisor"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/c75364/3CadPromo/1.0.0"},{"url":"https://localhost:44395/","description":"3cadPromo"},{"url":"https://ecad24.dau.it/supervisor","description":"Development environmment"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/c75364/3CadSupervisor/1"}],"paths":{"/login/oauth2":{"get":{"security":[{"oauth2":[]}],"summary":"login into the server","description":"This method respect the **OAuth2.0 Standard**","responses":{"200":{"description":"the access token and the refresh token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"403":{"description":"the user is not authorized to access to this website","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"500":{"description":"an error occur in the server's code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/login/refreshAccessToken":{"get":{"description":"This method respect the **OAuth2.0 Standard**, and it is used to obtain a new access token when it is expired. Use this methods only if you have signed keep me log in, and you have the cookie setted.","responses":{"200":{"description":"the new access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"400":{"description":"bad input parameters or unsupported granttype","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"403":{"description":"the user is not authorized to access to this website","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizationServerError"}}}},"500":{"description":"an error occur in the server's code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/logout/oauth2":{"get":{"tags":["Logout"],"summary":"Logout method","description":"Logout service","responses":{"200":{"description":"Logout success","content":{"application/json":{"schema":{"type":"boolean"}}}},"409":{"description":"Error in data sent","content":{}},"500":{"description":"Internal server error","content":{}}}}},"/PromoClient/Get":{"get":{"description":"Returns a list of valid promo for 3cadlite user","parameters":[{"in":"header","name":"email","description":"3cadlite user registration email","schema":{"type":"string"}},{"in":"header","name":"key","description":"3cadlite user activation key","schema":{"type":"string"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"list of valid promo for 3cadlite user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Promo/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of  all the Promos","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}},{"in":"query","name":"showall","description":"default value is 0","schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"List of all the Promos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Promo/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a promotion","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromo"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Promo/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete Promo","parameters":[{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data for delete promo","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mDelPromo"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Promo/Copy":{"post":{"security":[{"oauth2":[]}],"description":"Duplicate a Promo","parameters":[{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"oldPromo","schema":{"type":"string"},"required":true},{"in":"header","name":"newPromo","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Promo/ImportFromFile":{"post":{"security":[{"oauth2":[]}],"description":"Import promos from XLSX file","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FileData"}}},"required":true},"responses":{"200":{"description":"List of all the Imports","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoComp/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of  all the composition associated to a promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}},{"in":"query","name":"showall","description":"default value is 0","schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"List of all the compositions in promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoComp/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of compositions in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoComp"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoComp/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of compositions in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoComp"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoComp/ImportJson":{"post":{"security":[{"oauth2":[]}],"description":"Import json of the composition","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"codpromo","schema":{"type":"string"},"required":true},{"in":"header","name":"idrow","schema":{"type":"integer"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FileData"}}},"required":true},"responses":{"200":{"description":"if import is ok or not","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/CombinedPromo/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of Combined Promos","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of Combined Promos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/CombinedPromo/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a combined promotion","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mCombinedPromo"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/CombinedPromo/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete CombinedPromo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data for delete combine promo","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mCombinedPromo"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/CombinedPromo/DelAll":{"post":{"security":[{"oauth2":[]}],"description":"Delete CombinedPromo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data for delete combine promo","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mDeleteCombinedPromoAll"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/CombinedPromo/GetCombinableList":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of Promos that can be combined","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"currentCodPromo","schema":{"type":"string"}},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of Combined Promos","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromo/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of item head in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromo/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of item head in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemPromo"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromo/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of item head in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemPromo"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list item added in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List items added in the promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of items to the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemPromoDetail"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of items from the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemPromoDetail"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/GetArtTypeList":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of all avialble arttype based on flag ArtTypeCategory","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"arttypecategory","schema":{"type":"integer","enum":[1,2,3],"description":"* 1 - Article * 2 - Eldom * 3 - Article+Eldom\n"},"required":true}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/GetArtTypeListInPromo":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of all avialble arttype in a specific promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"codpromo","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/GetItemList":{"get":{"security":[{"oauth2":[]}],"description":"Returns a eldom list by arttype","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"arttype","schema":{"type":"string"}},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/GetItemBrandList":{"get":{"security":[{"oauth2":[]}],"description":"Returns a eldom brand list by arttype","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"arttype","schema":{"type":"string"}},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/GetItemBrandListInPromo":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of all avialble brand in a specific promo. If specified, the list is filtered for a specific arttype","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"codpromo","schema":{"type":"string"},"required":true},{"in":"header","name":"arttype","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPromoDetail/GetItemFinalSellCodeList":{"get":{"security":[{"oauth2":[]}],"description":"Returns a eldom final sell code list by arttype","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"arttype","schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPriceGroupDetail/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of couples PriceGroup/Price for each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List items added in the promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPriceGroupDetail/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of couples PriceGroup/Price for each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemPriceGroupDetail"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemPriceGroupDetail/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of couple PriceGroup/Price from each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemPriceGroupDetail"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemAlt/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of alternative items for each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List items added in the promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemAlt/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of alternative items for each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemAlt"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemAlt/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of alternative items for the items in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemAlt"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemOption/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of options for each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List items added in the promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemOption/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of options for each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemOption"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ItemOption/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of options for each item in the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mItemOption"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Conditions/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns head conditions for the promo (as list)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"Conditions head added in the promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Conditions/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update conditions head in the promo (as list)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mConditions"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/Conditions/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete conditions head in the promo (as list)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mConditions"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsDetail/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of conditions for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of promo conditions loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsDetail/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of conditions for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mConditionsDetail"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsDetail/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of conditions for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mConditionsDetail"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsOther/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of other conditions for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of promo other conditions loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsOther/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of other conditions for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mConditionsOther"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsOther/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of other conditions for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mConditionsOther"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsOther/GetTab":{"get":{"security":[{"oauth2":[]}],"description":"Returns a complete tab list of all type of other conditions for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"codpromo","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"List of all types of other conditions loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ConditionsOther/SetTab":{"post":{"security":[{"oauth2":[]}],"description":"Update a complete tab list of all type of other conditions","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mTabConditionsOther"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClient/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns head of promo validity for reference (client,agent,...) (as list)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"Head of promo validity for reference loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClient/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a head of promo validity for reference","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mValPromoClient"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClient/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a head of promo validity for reference","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mValPromoClient"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientData/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of promo validity for reference (client,agent,...)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of promo validity for reference loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientData/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of promo validity for reference","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mValPromoClientData"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientData/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of promo validity for reference","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mValPromoClientData"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientData/GetRefTypeList":{"get":{"security":[{"oauth2":[]}],"description":"Returns the list of reference types enabled for this catalog  (client,agent,...)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"List of reference types enabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientData/GetRefList":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of reference items by type (client,agent,...)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"reftype","schema":{"type":"integer"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of reference items loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientSimilar/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns cod,des of the master promo for the currentpromo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"currentpromo","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"Returns a list of promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientSimilar/GetMaster":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of promo that can be selected","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"currentpromo","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns a list of promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientSimilar/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mValPromoClientSimilar"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/ValPromoClientSimilar/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mValPromoClientSimilar"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroup/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns a list of price groups for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of price groups loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroup/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of price groups for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoPriceGroup"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroup/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of price groups for the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoPriceGroup"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroupDetail/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns the list of var/opz in the price group of the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of var/opz in the price group of the promo loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroupDetail/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of var/opz in the price group of the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoPriceGroupDetail"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroupDetail/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of of var/opz in the price group of the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoPriceGroup"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroupDim/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns the list of max/min dimensions in the price group of the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of max/min dimensions in the price group of the promo loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroupDim/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of max/min dimensions in the price group of the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoPriceGroupDim"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoPriceGroupDim/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of of var/opz in the price group of the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoPriceGroupDim"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoDiscountRef/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns the list of discount for reference (client, agent,...)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}}],"responses":{"200":{"description":"List of max/min dimensions in the price group of the promo loaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoDiscountRef/Set":{"post":{"security":[{"oauth2":[]}],"description":"Add or update a list of discount for reference (client, agent,...)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoDiscountRef"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoDiscountRef/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete a list of discount for reference (client, agent,...)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoDiscountRef"}}}},"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/CatalogRead/GetTable":{"get":{"security":[{"oauth2":[]}],"description":"Returns the content of a table in catalog (eg. table TABELLE, ARTICOLI,...)","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"query","name":"tablename","schema":{"type":"string"},"required":true},{"in":"query","name":"fields","schema":{"type":"string"}},{"in":"query","name":"where","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"string"}},{"in":"query","name":"page","schema":{"type":"string"}},{"in":"query","name":"orderBy","schema":{"type":"string"}},{"in":"query","name":"ascending","schema":{"type":"string"}},{"in":"query","name":"isdbpro","description":"if \"false\" query on Promo db, if \"true\" query on Catalogue db","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoMsg/Get":{"get":{"security":[{"oauth2":[]}],"description":"Returns the list of var/opz in the price group of the promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"codpromo","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"Return a json object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoMsg"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoMsg/Set":{"post":{"security":[{"oauth2":[]}],"description":"Save a static message associated to a promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true}],"requestBody":{"description":"json data to save\\update","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mPromoMsg"}}}},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoMsg/Del":{"post":{"security":[{"oauth2":[]}],"description":"Delete the static message associated to a promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"codpromo","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"integer","example":1}}}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/PromoMsg/GetCodItems":{"get":{"security":[{"oauth2":[]}],"description":"Returns array list of cod,des contained in then promo","parameters":[{"in":"header","name":"serverid","schema":{"type":"integer"}},{"in":"header","name":"progname","schema":{"type":"string"},"required":true},{"in":"header","name":"catalog","schema":{"type":"string"},"required":true},{"in":"header","name":"codpromo","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"Returns array list of cod,des contained in then promo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataTable"}}}},"409":{"description":"Function error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Generic error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"securitySchemes":{"oauth2":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ErrorResponse":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","example":"2021-01-01T12:00:00"},"end_time":{"type":"string","format":"date-time","example":"2021-01-01T12:00:00"},"time_zone":{"type":"string","example":"America/Los_Angeles"},"mime_type":{"type":"string","example":"application/json"},"internal_error":{"type":"integer","example":0},"description":{"type":"string","example":"La risorsa specificata non � stata trovata"}}},"AuthorizationServerError":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["invalid_request","invalid_client","invalid_grat","unauthorized_client","unsupported_grant_type","invalid_scope"],"example":"unauthorized_client"},"error_description":{"type":"string","example":"the password is invalid"},"error_uri":{"type":"string","example":"http://error.dau.it/errortoken"}}},"LoginResponse":{"required":["Email","Access_token","Refresh_token","Prognames"],"type":"object","properties":{"Email":{"type":"string","example":"info@test.com"},"Access_token":{"type":"string","example":"A89nvs9Af0ikds0ls"},"Refresh_token":{"type":"string","example":"9dfKM9fns0nsfyS"},"Prognames":{"$ref":"#/components/schemas/Prognames"}}},"DataTable":{"type":"object","required":["data","count","fields","columnsinfo"],"properties":{"data":{"type":"array","items":{"type":"object"}},"count":{"type":"integer","example":10},"fields":{"type":"array","items":{"type":"string","description":"Column Names"}},"columnsinfo":{"type":"array","items":{"$ref":"#/components/schemas/ColumnsInfo"}}}},"mPromo":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"des":{"type":"string"},"tipology":{"type":"integer","enum":[1,2,3],"description":"* 1 - Article * 2 - Eldom * 3 - Composition\n"},"datestart":{"type":"string","format":"date-time"},"dateend":{"type":"string","format":"date-time"},"dateendco":{"type":"string","format":"date-time"},"datedelivery":{"type":"string","format":"date-time"},"datedeliveryco":{"type":"string","format":"date-time"},"cumulative":{"type":"integer"},"qty":{"type":"integer"},"qtymax":{"type":"integer"},"pdflink":{"type":"string"},"note":{"type":"string"},"status":{"type":"integer","enum":[1,2,3],"description":"* 1 - Disabled * 2 - Enabled * 3 - Debug\n"}}},"mCombinedPromo":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"type":{"type":"integer","enum":[1,2,3],"description":"* 1 - NonCombinable * 2 - Combinable * 3 - CombinableWith\n"},"codpromochild":{"type":"string"}}},"mPromoComp":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"idrow":{"type":"integer"},"des":{"type":"string"},"jpglink":{"type":"string"},"jsoncontent":{"type":"string"}}},"mItemPromo":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"promovalue":{"type":"number","format":"double"},"netvalue":{"type":"number","format":"double"},"ValidityType":{"type":"integer","enum":[1,2,3,4],"description":"* 1 - All * 2 - Only one * 3 - At least one           * 4 - At least\n"},"QtyMin":{"type":"integer"},"CountType":{"type":"integer","enum":[1,2],"description":"* 1 - Typology * 2 - Article\n"},"SelectableArticles":{"type":"integer"}}},"mDelPromo":{"description":"Array list of cod promo to delete","type":"object","required":["codpromo"],"properties":{"codpromo":{"type":"string"}}},"mDeleteCombinedPromoAll":{"description":"Array list of cod promo to delete","type":"object","required":["codpromo"],"properties":{"codpromo":{"type":"string"}}},"mItemPromoDetail":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"coditem":{"type":"string"},"arttype":{"type":"string"},"arttypedescr":{"type":"string"},"pr":{"type":"number","format":"double"},"prtype":{"type":"integer"},"qty":{"type":"number","format":"integer"},"optional":{"type":"integer"},"qtymax":{"type":"integer"},"brand":{"type":"string"},"finalsellcode":{"type":"string"},"description":{"type":"string"}}},"mItemPriceGroupDetail":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"coditem":{"type":"string"},"pricegroup":{"type":"string"},"pr":{"type":"number","format":"double"}}},"mItemAlt":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"coditemfather":{"type":"string"},"coditem":{"type":"string"},"pr":{"type":"number","format":"double"},"prtype":{"type":"integer"}}},"mItemOption":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"coditemfather":{"type":"string"},"codvar":{"type":"string"},"codopz":{"type":"string"},"pr":{"type":"number","format":"double"},"prtype":{"type":"integer"},"um":{"type":"string"}}},"mConditions":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"type":{"type":"integer"},"qtymin":{"type":"integer"},"prmin":{"type":"number","format":"double"},"counttype":{"type":"integer"}}},"mConditionsDetail":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"groupn":{"type":"integer"},"itemtype":{"type":"string"},"itemtypedescr":{"type":"string"},"brand":{"type":"string"},"qtymin":{"type":"integer"},"qtymax":{"type":"integer"},"range":{"type":"string"},"itemsincluded":{"type":"integer"}}},"mConditionsOther":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"type":{"type":"integer","enum":[1,2],"description":"* 1 - Model * 2 - PriceList * 3 - ProductLines * 4 - General\n"},"cod":{"type":"string"}}},"mTabConditionsOther":{"properties":{"CodPromo":{"type":"string"},"Descr":{"type":"string"},"Type":{"type":"integer","enum":[1,2],"description":"* 1 - Model * 2 - PriceList * 3 - ProductLines * 4 - General\n"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/mRowConditionsOther"}}}},"mRowConditionsOther":{"type":"object","required":["code"],"properties":{"code":{"type":"string"},"descr":{"type":"string"},"enable":{"type":"integer"}}},"mValPromoClient":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"type":{"type":"integer"},"category":{"type":"integer","enum":[1,2],"description":"* 1 - Reference * 2 - Nation\n"}}},"mValPromoClientData":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"ref":{"type":"integer"},"sdata":{"type":"string"},"descr":{"type":"string"},"category":{"type":"integer","enum":[1,2],"description":"* 1 - Reference * 2 - Nation\n"}}},"mValPromoClientSimilar":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"type":{"type":"integer","enum":[1,2],"description":"* 1 - Equal * 2 - Reverse\n"},"codpromomaster":{"type":"string"}}},"mPromoPriceGroup":{"type":"object","required":["id","codpromo","pricegroup"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"pricegroup":{"type":"string"},"descr":{"type":"string"}}},"mPromoPriceGroupDetail":{"type":"object","required":["id","codpromo","pricegroup","codvar","codopz"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"pricegroup":{"type":"string"},"codvar":{"type":"string"},"codopz":{"type":"string"},"descvar":{"type":"string"},"descopz":{"type":"string"}}},"mPromoPriceGroupDim":{"type":"object","required":["id","codpromo","pricegroup","codvar","codopz","idrow"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"pricegroup":{"type":"string"},"codvar":{"type":"string"},"codopz":{"type":"string"},"idrow":{"type":"integer"},"minw":{"type":"number","format":"double"},"maxw":{"type":"number","format":"double"},"minh":{"type":"number","format":"double"},"maxh":{"type":"number","format":"double"},"minp":{"type":"number","format":"double"},"maxp":{"type":"number","format":"double"},"descvar":{"type":"string"},"descopz":{"type":"string"}}},"mPromoDiscountRef":{"type":"object","required":["id","codpromo","reftype","codref","discount"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"reftype":{"type":"integer"},"codref":{"type":"string"},"arttype":{"type":"string"},"brand":{"type":"string"},"discount":{"type":"number","format":"double"},"refdesc":{"type":"string"}}},"mEldomSellCode_OnlyForArrayExample":{"type":"object","required":["id","codpromo","coditem","arttype"],"properties":{"id":{"type":"integer"},"codpromo":{"type":"string"},"coditem":{"type":"string"},"arttype":{"type":"string"},"finalsellcode":{"type":"string"},"availablesellarticles":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"descr":{"type":"string"}}}}}},"mPromoMsg":{"type":"object","required":["codpromo"],"properties":{"codpromo":{"type":"string"},"message":{"type":"string"}}},"Prognames":{"type":"object","properties":{"serverId":{"type":"integer"},"serverDes":{"type":"string"},"sqlConn":{"type":"string"},"progname":{"type":"string"},"catalogs":{"type":"object","example":"#/components/schemas/Catalogs","$ref":"#/components/schemas/Catalogs"}}},"ColumnsInfo":{"type":"object","properties":{"desc":{"type":"string"},"field":{"type":"string"},"visible":{"type":"integer"}}},"Catalogs":{"type":"object","properties":{"catalogname":{"type":"string"},"idrole":{"type":"integer"}}},"FileData":{"required":["upfile"],"type":"object","properties":{"note":{"type":"string","description":"Description of file contents."},"upfile":{"type":"string","description":"The file to upload.","format":"binary"}}}}}}