POST api/Subcontracts

Creates a subcontract

Request Information

URI Parameters

None.

Body Parameters

SubcontractCreateDto
NameDescriptionTypeAdditional information
ProjectId

integer

Required

ProjectCode

string

Required

String length: inclusive between 0 and 5

SeriesTypeId

integer

Required

Name

string

Required

String length: inclusive between 0 and 60

CurrencyCode

string

Required

ProposedCode

string

String length: inclusive between 0 and 10

GeneratedCode

string

String length: inclusive between 0 and 10

Description

string

String length: inclusive between 0 and 2000

SubcontractorCode

string

None.

SubcontractorName

string

None.

PendingClientApproval

boolean

None.

Language

integer

None.

DeliveryPlace

string

None.

MarkupOnChargebacks

decimal number

None.

PaymentTermId

PaymentTermId

None.

CountryForArbitration

string

None.

CityForArbitration

string

None.

CountryBankGuaranteesReg

string

None.

WarrantyPeriod

integer

None.

ManufacturingPlace

string

None.

InspectionPlace

string

None.

KeyPersonMinimumExperience

integer

None.

ProvConstrucAllRiskInsrnc

integer

None.

InsuranceDeductibleAmount

decimal number

None.

InsDeducAmontComsnPerfrmnc

decimal number

None.

MaxRetention

decimal number

None.

RetentionPercentage

decimal number

None.

AdvPaymentDeductionRate

decimal number

None.

MaxLdPercentage

decimal number

None.

ContractorName

string

None.

ContractorEmail

string

None.

CommercialTerm

string

None.

StartDate

date

None.

EndDate

date

None.

RfiCode

string

None.

RfpCode

string

None.

ToChargeCostTypeId

CostChargeToTypeId

None.

CrNconformity

string

None.

DeclaredAsBackchargeableOn

date

None.

PdaAmount

decimal number

None.

PdaDate

date

None.

PdaRevision

string

None.

Request Formats

application/json, text/json

Sample:
{
  "projectId": 1,
  "projectCode": "sample string 2",
  "seriesTypeId": 4,
  "name": "sample string 5",
  "currencyCode": "sample string 6",
  "proposedCode": "sample string 7",
  "generatedCode": "sample string 8",
  "description": "sample string 9",
  "subcontractorCode": "sample string 10",
  "subcontractorName": "sample string 11",
  "pendingClientApproval": true,
  "language": 13,
  "deliveryPlace": "sample string 14",
  "markupOnChargebacks": 15.0,
  "paymentTermId": 1,
  "countryForArbitration": "sample string 16",
  "cityForArbitration": "sample string 17",
  "countryBankGuaranteesReg": "sample string 18",
  "warrantyPeriod": 19,
  "manufacturingPlace": "sample string 20",
  "inspectionPlace": "sample string 21",
  "keyPersonMinimumExperience": 22,
  "provConstrucAllRiskInsrnc": 23,
  "insuranceDeductibleAmount": 24.0,
  "insDeducAmontComsnPerfrmnc": 25.0,
  "maxRetention": 1.0,
  "retentionPercentage": 1.0,
  "advPaymentDeductionRate": 1.0,
  "maxLdPercentage": 1.0,
  "contractorName": "sample string 26",
  "contractorEmail": "sample string 27",
  "commercialTerm": "sample string 28",
  "startDate": "2026-05-09T14:03:47.1409734+02:00",
  "endDate": "2026-05-09T14:03:47.1409734+02:00",
  "rfiCode": "sample string 29",
  "rfpCode": "sample string 30",
  "toChargeCostTypeId": 1,
  "crNconformity": "sample string 31",
  "declaredAsBackchargeableOn": "2026-05-09T14:03:47.1409734+02:00",
  "pdaAmount": 1.0,
  "pdaDate": "2026-05-09T14:03:47.1459698+02:00",
  "pdaRevision": "sample string 41"
}

text/html

Sample:
{"projectId":1,"projectCode":"sample string 2","seriesTypeId":4,"name":"sample string 5","currencyCode":"sample string 6","proposedCode":"sample string 7","generatedCode":"sample string 8","description":"sample string 9","subcontractorCode":"sample string 10","subcontractorName":"sample string 11","pendingClientApproval":true,"language":13,"deliveryPlace":"sample string 14","markupOnChargebacks":15.0,"paymentTermId":1,"countryForArbitration":"sample string 16","cityForArbitration":"sample string 17","countryBankGuaranteesReg":"sample string 18","warrantyPeriod":19,"manufacturingPlace":"sample string 20","inspectionPlace":"sample string 21","keyPersonMinimumExperience":22,"provConstrucAllRiskInsrnc":23,"insuranceDeductibleAmount":24.0,"insDeducAmontComsnPerfrmnc":25.0,"maxRetention":1.0,"retentionPercentage":1.0,"advPaymentDeductionRate":1.0,"maxLdPercentage":1.0,"contractorName":"sample string 26","contractorEmail":"sample string 27","commercialTerm":"sample string 28","startDate":"2026-05-09T14:03:47.1409734+02:00","endDate":"2026-05-09T14:03:47.1409734+02:00","rfiCode":"sample string 29","rfpCode":"sample string 30","toChargeCostTypeId":1,"crNconformity":"sample string 31","declaredAsBackchargeableOn":"2026-05-09T14:03:47.1409734+02:00","pdaAmount":1.0,"pdaDate":"2026-05-09T14:03:47.1459698+02:00","pdaRevision":"sample string 41"}

application/xml, text/xml

Sample:
<SubcontractCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SubcontractAgg">
  <AdvPaymentDeductionRate>1</AdvPaymentDeductionRate>
  <CityForArbitration>sample string 17</CityForArbitration>
  <CommercialTerm>sample string 28</CommercialTerm>
  <ContractorEmail>sample string 27</ContractorEmail>
  <ContractorName>sample string 26</ContractorName>
  <CountryBankGuaranteesReg>sample string 18</CountryBankGuaranteesReg>
  <CountryForArbitration>sample string 16</CountryForArbitration>
  <CrNconformity>sample string 31</CrNconformity>
  <CurrencyCode>sample string 6</CurrencyCode>
  <DeclaredAsBackchargeableOn>2026-05-09T14:03:47.1409734+02:00</DeclaredAsBackchargeableOn>
  <DeliveryPlace>sample string 14</DeliveryPlace>
  <Description>sample string 9</Description>
  <EndDate>2026-05-09T14:03:47.1409734+02:00</EndDate>
  <GeneratedCode>sample string 8</GeneratedCode>
  <InsDeducAmontComsnPerfrmnc>25</InsDeducAmontComsnPerfrmnc>
  <InspectionPlace>sample string 21</InspectionPlace>
  <InsuranceDeductibleAmount>24</InsuranceDeductibleAmount>
  <KeyPersonMinimumExperience>22</KeyPersonMinimumExperience>
  <Language>13</Language>
  <ManufacturingPlace>sample string 20</ManufacturingPlace>
  <MarkupOnChargebacks>15</MarkupOnChargebacks>
  <MaxLdPercentage>1</MaxLdPercentage>
  <MaxRetention>1</MaxRetention>
  <Name>sample string 5</Name>
  <PaymentTermId>Days1</PaymentTermId>
  <PdaAmount>1</PdaAmount>
  <PdaDate>2026-05-09T14:03:47.1459698+02:00</PdaDate>
  <PdaRevision>sample string 41</PdaRevision>
  <PendingClientApproval>true</PendingClientApproval>
  <ProjectCode>sample string 2</ProjectCode>
  <ProjectId>1</ProjectId>
  <ProposedCode>sample string 7</ProposedCode>
  <ProvConstrucAllRiskInsrnc>23</ProvConstrucAllRiskInsrnc>
  <RetentionPercentage>1</RetentionPercentage>
  <RfiCode>sample string 29</RfiCode>
  <RfpCode>sample string 30</RfpCode>
  <SeriesTypeId>4</SeriesTypeId>
  <StartDate>2026-05-09T14:03:47.1409734+02:00</StartDate>
  <SubcontractorCode>sample string 10</SubcontractorCode>
  <SubcontractorName>sample string 11</SubcontractorName>
  <ToChargeCostTypeId>BudgetTR</ToChargeCostTypeId>
  <WarrantyPeriod>19</WarrantyPeriod>
</SubcontractCreateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SubcontractSummaryDto
NameDescriptionTypeAdditional information
Id

integer

None.

Description

string

None.

Name

string

None.

Code

string

None.

ProjectName

string

None.

ProjectId

integer

None.

DivisionName

string

None.

Progress

decimal number

None.

FromMarian

boolean

None.

StateName

string

None.

Pep

string

None.

PepDescription

string

None.

ItemGroupCode

string

None.

DisciplineId

string

None.

PendingForDeferredApprovalSending

boolean

None.

StartDate

date

None.

EndDate

date

None.

ForecastStartDate

date

None.

ForecastEndDate

date

None.

ForecastAmount

decimal number

None.

PoAmount

decimal number

None.

SubcontractCertifiedAmount

decimal number

None.

StorBlSupAllowedFor

string

None.

StorBlDescSupAllowedFor

string

None.

StorBlFinantialAlert

string

None.

StorBlStatusId

integer

None.

StorBlDescStatus

string

None.

NotConnectedToSap

boolean

None.

NeedsPepWarning

boolean

None.

ProyectUseNewSIMethod

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "description": "sample string 2",
  "name": "sample string 3",
  "code": "sample string 4",
  "projectName": "sample string 5",
  "projectId": 6,
  "divisionName": "sample string 7",
  "progress": 8.0,
  "fromMarian": true,
  "stateName": "sample string 9",
  "pep": "sample string 10",
  "pepDescription": "sample string 11",
  "itemGroupCode": "sample string 12",
  "disciplineId": "sample string 13",
  "pendingForDeferredApprovalSending": true,
  "startDate": "2026-05-09T14:03:47.170966+02:00",
  "endDate": "2026-05-09T14:03:47.170966+02:00",
  "forecastStartDate": "2026-05-09T14:03:47.170966+02:00",
  "forecastEndDate": "2026-05-09T14:03:47.170966+02:00",
  "forecastAmount": 1.0,
  "poAmount": 1.0,
  "subcontractCertifiedAmount": 1.0,
  "storBlSupAllowedFor": "sample string 15",
  "storBlDescSupAllowedFor": "sample string 16",
  "storBlFinantialAlert": "sample string 17",
  "storBlStatusId": 1,
  "storBlDescStatus": "sample string 18",
  "notConnectedToSap": true,
  "needsPepWarning": true,
  "proyectUseNewSIMethod": true
}

text/html

Sample:
{"id":1,"description":"sample string 2","name":"sample string 3","code":"sample string 4","projectName":"sample string 5","projectId":6,"divisionName":"sample string 7","progress":8.0,"fromMarian":true,"stateName":"sample string 9","pep":"sample string 10","pepDescription":"sample string 11","itemGroupCode":"sample string 12","disciplineId":"sample string 13","pendingForDeferredApprovalSending":true,"startDate":"2026-05-09T14:03:47.170966+02:00","endDate":"2026-05-09T14:03:47.170966+02:00","forecastStartDate":"2026-05-09T14:03:47.170966+02:00","forecastEndDate":"2026-05-09T14:03:47.170966+02:00","forecastAmount":1.0,"poAmount":1.0,"subcontractCertifiedAmount":1.0,"storBlSupAllowedFor":"sample string 15","storBlDescSupAllowedFor":"sample string 16","storBlFinantialAlert":"sample string 17","storBlStatusId":1,"storBlDescStatus":"sample string 18","notConnectedToSap":true,"needsPepWarning":true,"proyectUseNewSIMethod":true}

application/xml, text/xml

Sample:
<SubcontractSummaryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SubcontractAgg">
  <Code>sample string 4</Code>
  <Description>sample string 2</Description>
  <DisciplineId>sample string 13</DisciplineId>
  <DivisionName>sample string 7</DivisionName>
  <EndDate>2026-05-09T14:03:47.170966+02:00</EndDate>
  <ForecastAmount>1</ForecastAmount>
  <ForecastEndDate>2026-05-09T14:03:47.170966+02:00</ForecastEndDate>
  <ForecastStartDate>2026-05-09T14:03:47.170966+02:00</ForecastStartDate>
  <FromMarian>true</FromMarian>
  <Id>1</Id>
  <ItemGroupCode>sample string 12</ItemGroupCode>
  <Name>sample string 3</Name>
  <NeedsPepWarning>true</NeedsPepWarning>
  <NotConnectedToSap>true</NotConnectedToSap>
  <PendingForDeferredApprovalSending>true</PendingForDeferredApprovalSending>
  <Pep>sample string 10</Pep>
  <PepDescription>sample string 11</PepDescription>
  <PoAmount>1</PoAmount>
  <Progress>8</Progress>
  <ProjectId>6</ProjectId>
  <ProjectName>sample string 5</ProjectName>
  <ProyectUseNewSIMethod>true</ProyectUseNewSIMethod>
  <StartDate>2026-05-09T14:03:47.170966+02:00</StartDate>
  <StateName>sample string 9</StateName>
  <StorBlDescStatus>sample string 18</StorBlDescStatus>
  <StorBlDescSupAllowedFor>sample string 16</StorBlDescSupAllowedFor>
  <StorBlFinantialAlert>sample string 17</StorBlFinantialAlert>
  <StorBlStatusId>1</StorBlStatusId>
  <StorBlSupAllowedFor>sample string 15</StorBlSupAllowedFor>
  <SubcontractCertifiedAmount>1</SubcontractCertifiedAmount>
</SubcontractSummaryDto>