POST api/Common/CalculateDeliveryCharges

Request Information

URI Parameters

None.

Body Parameters

CalculateDeliveryChargesPrm
NameDescriptionTypeAdditional information
manufacturerCityIdWeights

Collection of ManufacturerCityIdWeight

None.

distributorCityId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "manufacturerCityIdWeights": [
    {
      "manufacturerCityId": 1,
      "totalWeightKg": 2.0
    },
    {
      "manufacturerCityId": 1,
      "totalWeightKg": 2.0
    }
  ],
  "distributorCityId": 1
}

text/html

Sample:
{"manufacturerCityIdWeights":[{"manufacturerCityId":1,"totalWeightKg":2.0},{"manufacturerCityId":1,"totalWeightKg":2.0}],"distributorCityId":1}

application/xml, text/xml

Sample:
<CalculateDeliveryChargesPrm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <distributorCityId>1</distributorCityId>
  <manufacturerCityIdWeights>
    <ManufacturerCityIdWeight>
      <manufacturerCityId>1</manufacturerCityId>
      <totalWeightKg>2</totalWeightKg>
    </ManufacturerCityIdWeight>
    <ManufacturerCityIdWeight>
      <manufacturerCityId>1</manufacturerCityId>
      <totalWeightKg>2</totalWeightKg>
    </ManufacturerCityIdWeight>
  </manufacturerCityIdWeights>
</CalculateDeliveryChargesPrm>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VCAPIResponse
NameDescriptionTypeAdditional information
Version

string

None.

dateTime

string

None.

StatusCode

integer

None.

ErrorMessage

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Version": "1.0.0",
  "dateTime": "2025/12/28 05:10:32",
  "StatusCode": 1,
  "ErrorMessage": "sample string 2",
  "Result": {}
}

text/html

Sample:
{"Version":"1.0.0","dateTime":"2025/12/28 05:10:32","StatusCode":1,"ErrorMessage":"sample string 2","Result":{}}

application/xml, text/xml

Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result />
  <StatusCode>1</StatusCode>
</VCAPIResponse>