Accounts
/api/businessaccounts/accounttypes - Account Types
/api/languages - Languages
/api/phonetypes - Phone Types
/api/contacttypes - Contact Types
/api/businessaccounts/getpublisheraccounts - Publishers
/api/businessaccounts/getadvertiseraccounts - Advertisers
/api/businessaccounts/getaccount?id=1057 - Get Publisher or Advertiser account


//Add & Edit Inventory
inventoryJson = {
  "Id" : "",
  "Name" : "",
  "PlatformId" : "",
  "PublisherId" : "",
        "Products": [{"Id":"","Name":""}],
        "RevenueTerms": [{"RevenueTermId" : "", "ProductId" : "", "PropertyId" : "", "RateTypeId" : "", "PercentShare":"","PercentShareString":"" ,"MinimumRate":"", "MinimumRateString":"","ProductName":""}]       
    };
 
//Get,Add,Edit RevenueTerm
revenueTermJson = {
  "RevenueTermId" : "",
  "ProductId" : "",
  "PropertyId" : "",
  "RateTypeId" : "",
  "PercentShare":"",
  "PercentShareString":"",
  "MinimumRate":"",
  "MinimumRateString":"",
  "ProductName":""
}

//Save Zone
zoneJson = {
  "Id" : "",
  "BaseParentId" : "",
  "Name" : "",
  "Description" : "",
  "TargetGroups": [{"Id":"","Name":""}],
  "AdTypes": [{"Id":"","Name":""}]
}
 
 
 API calls
 
/api/inventory/SaveInventory
/api/inventory/GetRevenueTerm
/api/inventory/SaveRevenueTerm
/api/inventory/SaveZone
/api/inventory/Activate - param : PropertyId
/api/inventory/Deactivate - param : PropertyId

Search
http://localhost:8013/api/search/zones/test
http://localhost:8013/api/search/properties/test



Lists and Dropdowns

http://localhost:8013/api/inventory/status - status
http://localhost:8013/api/products - products
http://localhost:8013/api/inventory/Platforms - platforms
http://localhost:8013/api/inventory/RateTypes - RateTypes
http://localhost:8013/api/adtypes - Adtypes
http://localhost:8013/api/targetgroups - targetgroups
http://localhost:8013/api/inventory/ - property list
http://localhost:8013/api/inventory/1022 - property item with zones and revenue terms
/api/businessaccounts/getpublisheraccounts - publishers


Accounts Management

/api/businessaccounts/saveaccount - add/edit publisher/
{
  "Id" : "",
        "Name" : "",
        "Location" :  "", -- can send empty
        "Website" : "",
        "Phone" : "",
        "Line1" : "",
        "Line2" :  "",
        "City" : "",
        "Region" :  "", -- can send empty
        "StateProvince" :  "",
        "PostalCode" :  "",
        "LanguageId" :  "",
        "AdServerId" :  "",
        "ActiveProperties" : "", -- can  send empty
        "Status" : "", --can send empty
        "StatusId" : "",
        "AccountTypeId" : "",
        "Users" : [], -- can send empty
        "Notes" : []  -- can send empty
}



/api/notes/savenote - saving user / account note
{
        "Id" : "",
        "Comment" : "",
        "User" :  "", -- can send empty
        "UserId" : "", -- send zero for account note
        "AccountId" : "", -- send zero for user note
        "Created" : "",
}



/api/users/saveuser - add/edit publisher/advertiser/user account

{
 "Id":"",
 "FirstName":"" ,
 "LastName":"",
 "Title":"",
 "Email":"",
 "Phone":"",
 "PhoneType":"", -- can send empty
 "PhoneTypeId":"",
 "ContactType":"", -- can send empty
 "ContactTypeId":"",
 "Changed":"", -- can send empty
 "Company":"", -- can send empty
 "RolesString":"", -- can send empty
 "FullName":"",-- can send empty
 "Status":"",-- can send empty
 "RoleIds":[], -- role ids
 "Password":"",
 "AccountId":"", -- can send empty if creating a mediabrix user
 "OAuthConsumerView":{} -- can send empty
}