POST api/SalesRateCard/Upsert

Request Information

URI Parameters

None.

Body Parameters

Collection of SalesRateCardViewModel
NameDescriptionTypeAdditional information
SalesRateCardID

integer

None.

CompanyDetailID

integer

None.

ItemID

integer

None.

InventoryType

string

None.

SellingPrice

decimal number

None.

StartDate

date

None.

EndDate

date

None.

DeactivateDate

date

None.

IsActive

boolean

None.

LoginId

integer

None.

ItemCode

string

None.

ItemIDs

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "SalesRateCardID": 1,
    "CompanyDetailID": 2,
    "ItemID": 3,
    "InventoryType": "sample string 4",
    "SellingPrice": 5.0,
    "StartDate": "2025-12-16T11:03:46.139619+00:00",
    "EndDate": "2025-12-16T11:03:46.139619+00:00",
    "DeactivateDate": "2025-12-16T11:03:46.139619+00:00",
    "IsActive": true,
    "LoginId": 10,
    "ItemCode": "sample string 11",
    "ItemIDs": [
      1,
      2
    ]
  },
  {
    "SalesRateCardID": 1,
    "CompanyDetailID": 2,
    "ItemID": 3,
    "InventoryType": "sample string 4",
    "SellingPrice": 5.0,
    "StartDate": "2025-12-16T11:03:46.139619+00:00",
    "EndDate": "2025-12-16T11:03:46.139619+00:00",
    "DeactivateDate": "2025-12-16T11:03:46.139619+00:00",
    "IsActive": true,
    "LoginId": 10,
    "ItemCode": "sample string 11",
    "ItemIDs": [
      1,
      2
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfSalesRateCardViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAL.ViewModel">
  <SalesRateCardViewModel>
    <CompanyDetailID>2</CompanyDetailID>
    <DeactivateDate>2025-12-16T11:03:46.139619+00:00</DeactivateDate>
    <EndDate>2025-12-16T11:03:46.139619+00:00</EndDate>
    <InventoryType>sample string 4</InventoryType>
    <IsActive>true</IsActive>
    <ItemCode>sample string 11</ItemCode>
    <ItemID>3</ItemID>
    <ItemIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </ItemIDs>
    <LoginId>10</LoginId>
    <SalesRateCardID>1</SalesRateCardID>
    <SellingPrice>5</SellingPrice>
    <StartDate>2025-12-16T11:03:46.139619+00:00</StartDate>
  </SalesRateCardViewModel>
  <SalesRateCardViewModel>
    <CompanyDetailID>2</CompanyDetailID>
    <DeactivateDate>2025-12-16T11:03:46.139619+00:00</DeactivateDate>
    <EndDate>2025-12-16T11:03:46.139619+00:00</EndDate>
    <InventoryType>sample string 4</InventoryType>
    <IsActive>true</IsActive>
    <ItemCode>sample string 11</ItemCode>
    <ItemID>3</ItemID>
    <ItemIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </ItemIDs>
    <LoginId>10</LoginId>
    <SalesRateCardID>1</SalesRateCardID>
    <SellingPrice>5</SellingPrice>
    <StartDate>2025-12-16T11:03:46.139619+00:00</StartDate>
  </SalesRateCardViewModel>
</ArrayOfSalesRateCardViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.