POST api/ContractService/CopyPayerContract

Request Information

URI Parameters

None.

Body Parameters

PayerContractModel
NameDescriptionTypeAdditional information
ContractId

string

None.

ContractShipToDetails

Collection of ContractShipToDetail

None.

ContractItemDetails

Collection of ContractItemDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "ContractId": "sample string 1",
  "ContractShipToDetails": [
    {
      "shiptoId": "f681122f-d93c-42b2-876c-2249c8b20cbe",
      "deliveryPoint": 2,
      "onewayDistance": 3.0,
      "freightOption": 4,
      "byTime": 1.0,
      "byBottle": 1.0,
      "pickUp": true
    },
    {
      "shiptoId": "f681122f-d93c-42b2-876c-2249c8b20cbe",
      "deliveryPoint": 2,
      "onewayDistance": 3.0,
      "freightOption": 4,
      "byTime": 1.0,
      "byBottle": 1.0,
      "pickUp": true
    }
  ],
  "ContractItemDetails": [
    {
      "itemId": "ca301b54-c3b2-4a99-87dc-303692e6f2f6",
      "monthVolume": 2.0,
      "pricingType": 3,
      "cylinderMeet": true,
      "dwBottle": true,
      "company": "142baf9c-a81b-4dd9-81cf-c23a331a4009",
      "deliveryMeasurement": 7,
      "qualityCertificateType": 8,
      "gasPricesType": 1,
      "gasPriceEffectDate": "2025-12-10T08:29:19.3760448+08:00",
      "gasPriceTaxIncluding": true,
      "gasPricePrice": 1.0,
      "rentalPricesType": 1,
      "rentalPriceEffectDate": "2025-12-10T08:29:19.3760448+08:00",
      "rentalPriceTaxIncluding": true,
      "rentalPricePrice": 1.0,
      "cylinderPledge": 1,
      "deposit": 1.0,
      "cylinderCustomer": 1,
      "cylinderTrusteeFee": 1.0
    },
    {
      "itemId": "ca301b54-c3b2-4a99-87dc-303692e6f2f6",
      "monthVolume": 2.0,
      "pricingType": 3,
      "cylinderMeet": true,
      "dwBottle": true,
      "company": "142baf9c-a81b-4dd9-81cf-c23a331a4009",
      "deliveryMeasurement": 7,
      "qualityCertificateType": 8,
      "gasPricesType": 1,
      "gasPriceEffectDate": "2025-12-10T08:29:19.3760448+08:00",
      "gasPriceTaxIncluding": true,
      "gasPricePrice": 1.0,
      "rentalPricesType": 1,
      "rentalPriceEffectDate": "2025-12-10T08:29:19.3760448+08:00",
      "rentalPriceTaxIncluding": true,
      "rentalPricePrice": 1.0,
      "cylinderPledge": 1,
      "deposit": 1.0,
      "cylinderCustomer": 1,
      "cylinderTrusteeFee": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<ContractController.PayerContractModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Net.MSCrm.MiddleTable.ServiceApi.Controllers">
  <ContractId>sample string 1</ContractId>
  <ContractItemDetails>
    <ContractController.ContractItemDetail>
      <company>142baf9c-a81b-4dd9-81cf-c23a331a4009</company>
      <cylinderCustomer>1</cylinderCustomer>
      <cylinderMeet>true</cylinderMeet>
      <cylinderPledge>1</cylinderPledge>
      <cylinderTrusteeFee>1</cylinderTrusteeFee>
      <deliveryMeasurement>7</deliveryMeasurement>
      <deposit>1</deposit>
      <dwBottle>true</dwBottle>
      <gasPriceEffectDate>2025-12-10T08:29:19.3760448+08:00</gasPriceEffectDate>
      <gasPricePrice>1</gasPricePrice>
      <gasPriceTaxIncluding>true</gasPriceTaxIncluding>
      <gasPricesType>1</gasPricesType>
      <itemId>ca301b54-c3b2-4a99-87dc-303692e6f2f6</itemId>
      <monthVolume>2</monthVolume>
      <pricingType>3</pricingType>
      <qualityCertificateType>8</qualityCertificateType>
      <rentalPriceEffectDate>2025-12-10T08:29:19.3760448+08:00</rentalPriceEffectDate>
      <rentalPricePrice>1</rentalPricePrice>
      <rentalPriceTaxIncluding>true</rentalPriceTaxIncluding>
      <rentalPricesType>1</rentalPricesType>
    </ContractController.ContractItemDetail>
    <ContractController.ContractItemDetail>
      <company>142baf9c-a81b-4dd9-81cf-c23a331a4009</company>
      <cylinderCustomer>1</cylinderCustomer>
      <cylinderMeet>true</cylinderMeet>
      <cylinderPledge>1</cylinderPledge>
      <cylinderTrusteeFee>1</cylinderTrusteeFee>
      <deliveryMeasurement>7</deliveryMeasurement>
      <deposit>1</deposit>
      <dwBottle>true</dwBottle>
      <gasPriceEffectDate>2025-12-10T08:29:19.3760448+08:00</gasPriceEffectDate>
      <gasPricePrice>1</gasPricePrice>
      <gasPriceTaxIncluding>true</gasPriceTaxIncluding>
      <gasPricesType>1</gasPricesType>
      <itemId>ca301b54-c3b2-4a99-87dc-303692e6f2f6</itemId>
      <monthVolume>2</monthVolume>
      <pricingType>3</pricingType>
      <qualityCertificateType>8</qualityCertificateType>
      <rentalPriceEffectDate>2025-12-10T08:29:19.3760448+08:00</rentalPriceEffectDate>
      <rentalPricePrice>1</rentalPricePrice>
      <rentalPriceTaxIncluding>true</rentalPriceTaxIncluding>
      <rentalPricesType>1</rentalPricesType>
    </ContractController.ContractItemDetail>
  </ContractItemDetails>
  <ContractShipToDetails>
    <ContractController.ContractShipToDetail>
      <byBottle>1</byBottle>
      <byTime>1</byTime>
      <deliveryPoint>2</deliveryPoint>
      <freightOption>4</freightOption>
      <onewayDistance>3</onewayDistance>
      <pickUp>true</pickUp>
      <shiptoId>f681122f-d93c-42b2-876c-2249c8b20cbe</shiptoId>
    </ContractController.ContractShipToDetail>
    <ContractController.ContractShipToDetail>
      <byBottle>1</byBottle>
      <byTime>1</byTime>
      <deliveryPoint>2</deliveryPoint>
      <freightOption>4</freightOption>
      <onewayDistance>3</onewayDistance>
      <pickUp>true</pickUp>
      <shiptoId>f681122f-d93c-42b2-876c-2249c8b20cbe</shiptoId>
    </ContractController.ContractShipToDetail>
  </ContractShipToDetails>
</ContractController.PayerContractModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.