The Customers namespace has Entities and Operations concerned with Customer and Company management.
The Customers namespace has Entities and Operations concerned with Customer and Company management.
curl -i -X POST \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/DeleteCompanyPricelist?companyId=0&pricelistId=0'
Success
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
Indicates if the pricelist should be used exclusively for this Company, or not. Exclusive pricelists are not used with any standard pricelists and only exclusive pricelists will be in scope if the Company has any.
[ { "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { … }, "PopulationRules": [ … ], "CurrencyId": 0, "IsExclusive": true } ]
curl -i -X GET \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/GetCompanyPricelist?companyId=0&pricelistId=0'
{ "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 }, "PopulationRules": [ { … } ], "CurrencyId": 0, "IsExclusive": true }
curl -i -X GET \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/GetPricelistItem?partNo=string&pricelistId=0'
{ "PartNo": "string", "PricelistId": 0, "Price": 0, "PriceRecommended": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 } }
The priceList to insert for the Company. The PriceRule for new PriceLists will be 'Use standard price (pct discount)' (id:7) if none is supplied.
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
curl -i -X POST \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/InsertCompanyPricelist?companyId=0' \ -H 'Content-Type: application/json' \ -d '{ "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 }, "PopulationRules": [ { "RuleId": 0, "ManufacturerId": 0, "CategoryId": 0, "IsSupplierRequired": true, "IsInclusive": true } ], "CurrencyId": 0, "IsExclusive": true }'
Success
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
Indicates if the pricelist should be used exclusively for this Company, or not. Exclusive pricelists are not used with any standard pricelists and only exclusive pricelists will be in scope if the Company has any.
[ { "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { … }, "PopulationRules": [ … ], "CurrencyId": 0, "IsExclusive": true } ]
The priceList to insert for the Company. The PriceRule for new PriceLists will be 'Use standard price (pct discount)' (id:7) if none is supplied.
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
curl -i -X POST \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/InsertCompanyPricelist2?companyId=0' \ -H 'Content-Type: application/json' \ -d '{ "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 }, "PopulationRules": [ { "RuleId": 0, "ManufacturerId": 0, "CategoryId": 0, "IsSupplierRequired": true, "IsInclusive": true } ], "CurrencyId": 0, "IsExclusive": true }'
Success
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
Indicates if the pricelist should be used exclusively for this Company, or not. Exclusive pricelists are not used with any standard pricelists and only exclusive pricelists will be in scope if the Company has any.
[ { "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { … }, "PopulationRules": [ … ], "CurrencyId": 0, "IsExclusive": true } ]
The PriceListItem to insert. Prices should be in the currency of the PriceList.
Specifies if the pricelist item is active or not. Ignored when inserting new pricelist items.
curl -i -X POST \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/InsertPricelistItem?createdBy=string' \ -H 'Content-Type: application/json' \ -d '{ "PartNo": "string", "PricelistId": 0, "Price": 0, "PriceRecommended": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 } }'
{ "PartNo": "string", "PricelistId": 0, "Price": 0, "PriceRecommended": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 } }
curl -i -X GET \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/ListCompanyPricelists?companyId=0'
Success
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
Indicates if the pricelist should be used exclusively for this Company, or not. Exclusive pricelists are not used with any standard pricelists and only exclusive pricelists will be in scope if the Company has any.
[ { "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { … }, "PopulationRules": [ … ], "CurrencyId": 0, "IsExclusive": true } ]
curl -i -X GET \ https://demo.storm.io/api/1.1/CustomerService.svc/rest/ListPriceRules
[ { "Id": 0, "Name": "string", "Description": "string", "ImageKey": "string", "Code": "string" } ]
Updates a PriceList for the specified Company. If the PriceList is not an existingPriceList it will be created. Otherwise it will be updated. Note that only Reseller and Application specific priceLists can be updated. Any attempt to update an other priceList type will be ignored. Will set IsExclusive to true as default. Use UpdateCompanyPricelist2 and set PriceList.IsExclusive to false if this is not wanted.
The priceList to update for the Company. The PriceRule for updated PriceLists will be 'Use standard price (pct discount)' (id:7) if none is supplied.
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
curl -i -X POST \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/UpdateCompanyPricelist?companyId=0' \ -H 'Content-Type: application/json' \ -d '{ "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 }, "PopulationRules": [ { "RuleId": 0, "ManufacturerId": 0, "CategoryId": 0, "IsSupplierRequired": true, "IsInclusive": true } ], "CurrencyId": 0, "IsExclusive": true }'
Success
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
Indicates if the pricelist should be used exclusively for this Company, or not. Exclusive pricelists are not used with any standard pricelists and only exclusive pricelists will be in scope if the Company has any.
[ { "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { … }, "PopulationRules": [ … ], "CurrencyId": 0, "IsExclusive": true } ]
Updates a PriceList for the specified Company. If the PriceList is not an existingPriceList it will be created. Otherwise it will be updated. Note that only Reseller and Application specific priceLists can be updated. Any attempt to update an other priceList type will be ignored. If no PriceRule is specified, PriceRule 7, use standard price, with no discount will be used. To delete a Company PriceList use DeleteCompanyPricelist.
The priceList to update for the Company. The PriceRule for updated PriceLists will be 'Use standard price (pct discount)' (id:7) if none is supplied.
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
curl -i -X POST \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/UpdateCompanyPricelist2?companyId=0' \ -H 'Content-Type: application/json' \ -d '{ "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 }, "PopulationRules": [ { "RuleId": 0, "ManufacturerId": 0, "CategoryId": 0, "IsSupplierRequired": true, "IsInclusive": true } ], "CurrencyId": 0, "IsExclusive": true }'
Success
The agreement code of the pricelist. Can be an external id of the priceList. MaxLength: 50.
Specifies if the pricelist is active or not. Set this to false before update if you want to delete the pricelist.
A list of population rules for this pricelist.
Indicates if the pricelist should be used exclusively for this Company, or not. Exclusive pricelists are not used with any standard pricelists and only exclusive pricelists will be in scope if the Company has any.
[ { "Id": 0, "ParentId": 0, "Name": "string", "Description": "string", "Agreement": "string", "Type": 0, "IsActive": true, "PriceRule": { … }, "PopulationRules": [ … ], "CurrencyId": 0, "IsExclusive": true } ]
The PriceListItem to update. Prices should be in the currency of the PriceList.
Specifies if the pricelist item is active or not. Ignored when inserting new pricelist items.
curl -i -X POST \ 'https://demo.storm.io/api/1.1/CustomerService.svc/rest/UpdatePricelistItem?updatedBy=string' \ -H 'Content-Type: application/json' \ -d '{ "PartNo": "string", "PricelistId": 0, "Price": 0, "PriceRecommended": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 } }'
{ "PartNo": "string", "PricelistId": 0, "Price": 0, "PriceRecommended": 0, "IsActive": true, "PriceRule": { "RuleId": 0, "Value": 0 } }