POST api/ContractService/CopyPayerContract
Request Information
URI Parameters
None.
Body Parameters
PayerContractModel| Name | Description | Type | Additional 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": "be7cd018-81c8-4d51-b16d-cf76b10b1588",
"deliveryPoint": 2,
"onewayDistance": 3.0,
"freightOption": 4,
"byTime": 1.0,
"byBottle": 1.0,
"pickUp": true
},
{
"shiptoId": "be7cd018-81c8-4d51-b16d-cf76b10b1588",
"deliveryPoint": 2,
"onewayDistance": 3.0,
"freightOption": 4,
"byTime": 1.0,
"byBottle": 1.0,
"pickUp": true
}
],
"ContractItemDetails": [
{
"itemId": "955b4d51-f169-4409-a5a4-be498201c087",
"monthVolume": 2.0,
"pricingType": 3,
"cylinderMeet": true,
"dwBottle": true,
"company": "40d77768-65d0-478e-82fe-45a7b908d6d2",
"deliveryMeasurement": 7,
"qualityCertificateType": 8,
"gasPricesType": 1,
"gasPriceEffectDate": "2026-06-02T21:18:20.7291018+08:00",
"gasPriceTaxIncluding": true,
"gasPricePrice": 1.0,
"rentalPricesType": 1,
"rentalPriceEffectDate": "2026-06-02T21:18:20.7291018+08:00",
"rentalPriceTaxIncluding": true,
"rentalPricePrice": 1.0,
"cylinderPledge": 1,
"deposit": 1.0,
"cylinderCustomer": 1,
"cylinderTrusteeFee": 1.0
},
{
"itemId": "955b4d51-f169-4409-a5a4-be498201c087",
"monthVolume": 2.0,
"pricingType": 3,
"cylinderMeet": true,
"dwBottle": true,
"company": "40d77768-65d0-478e-82fe-45a7b908d6d2",
"deliveryMeasurement": 7,
"qualityCertificateType": 8,
"gasPricesType": 1,
"gasPriceEffectDate": "2026-06-02T21:18:20.7291018+08:00",
"gasPriceTaxIncluding": true,
"gasPricePrice": 1.0,
"rentalPricesType": 1,
"rentalPriceEffectDate": "2026-06-02T21:18:20.7291018+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>40d77768-65d0-478e-82fe-45a7b908d6d2</company>
<cylinderCustomer>1</cylinderCustomer>
<cylinderMeet>true</cylinderMeet>
<cylinderPledge>1</cylinderPledge>
<cylinderTrusteeFee>1</cylinderTrusteeFee>
<deliveryMeasurement>7</deliveryMeasurement>
<deposit>1</deposit>
<dwBottle>true</dwBottle>
<gasPriceEffectDate>2026-06-02T21:18:20.7291018+08:00</gasPriceEffectDate>
<gasPricePrice>1</gasPricePrice>
<gasPriceTaxIncluding>true</gasPriceTaxIncluding>
<gasPricesType>1</gasPricesType>
<itemId>955b4d51-f169-4409-a5a4-be498201c087</itemId>
<monthVolume>2</monthVolume>
<pricingType>3</pricingType>
<qualityCertificateType>8</qualityCertificateType>
<rentalPriceEffectDate>2026-06-02T21:18:20.7291018+08:00</rentalPriceEffectDate>
<rentalPricePrice>1</rentalPricePrice>
<rentalPriceTaxIncluding>true</rentalPriceTaxIncluding>
<rentalPricesType>1</rentalPricesType>
</ContractController.ContractItemDetail>
<ContractController.ContractItemDetail>
<company>40d77768-65d0-478e-82fe-45a7b908d6d2</company>
<cylinderCustomer>1</cylinderCustomer>
<cylinderMeet>true</cylinderMeet>
<cylinderPledge>1</cylinderPledge>
<cylinderTrusteeFee>1</cylinderTrusteeFee>
<deliveryMeasurement>7</deliveryMeasurement>
<deposit>1</deposit>
<dwBottle>true</dwBottle>
<gasPriceEffectDate>2026-06-02T21:18:20.7291018+08:00</gasPriceEffectDate>
<gasPricePrice>1</gasPricePrice>
<gasPriceTaxIncluding>true</gasPriceTaxIncluding>
<gasPricesType>1</gasPricesType>
<itemId>955b4d51-f169-4409-a5a4-be498201c087</itemId>
<monthVolume>2</monthVolume>
<pricingType>3</pricingType>
<qualityCertificateType>8</qualityCertificateType>
<rentalPriceEffectDate>2026-06-02T21:18:20.7291018+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>be7cd018-81c8-4d51-b16d-cf76b10b1588</shiptoId>
</ContractController.ContractShipToDetail>
<ContractController.ContractShipToDetail>
<byBottle>1</byBottle>
<byTime>1</byTime>
<deliveryPoint>2</deliveryPoint>
<freightOption>4</freightOption>
<onewayDistance>3</onewayDistance>
<pickUp>true</pickUp>
<shiptoId>be7cd018-81c8-4d51-b16d-cf76b10b1588</shiptoId>
</ContractController.ContractShipToDetail>
</ContractShipToDetails>
</ContractController.PayerContractModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.