POST api/Subcontracts/{subcontractId}/Backcharge/{backchargeId}/Version/{backchargeVersionId}/BackchargeLine

Create Backcharges Line.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subcontractId

integer

Required

backchargeId

integer

Required

backchargeVersionId

integer

Required

Body Parameters

BackchargeLineDto
NameDescriptionTypeAdditional information
Id

integer

None.

Concept

string

None.

Quantity

decimal number

None.

MeasurementUnit

string

None.

UnitPrice

decimal number

None.

Amount

decimal number

None.

BackchargeVersionId

integer

None.

BackchargeableLineCode

string

None.

BachargeableDeleted

boolean

None.

Backchargeable

BackchargeableLineDto

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "concept": "sample string 1",
  "quantity": 1.0,
  "measurementUnit": "sample string 2",
  "unitPrice": 1.0,
  "amount": 1.0,
  "backchargeVersionId": 3,
  "backchargeableLineCode": "sample string 4",
  "bachargeableDeleted": true,
  "backchargeable": {
    "id": 1,
    "businessEntityTypeId": 1,
    "businessEntityTypeDesc": "sample string 2",
    "subcontractId": 3,
    "subcontractCode": "sample string 4",
    "subcontractSubcontractor": "sample string 5",
    "subcontractSubcontractorName": "sample string 6",
    "code": "sample string 7",
    "poCode": "sample string 8",
    "poName": "sample string 9",
    "subcontractorVendor": "sample string 10",
    "subcontractorVendorName": "sample string 11",
    "entityId": 12,
    "entityName": "sample string 13",
    "entityCode": "sample string 14",
    "entityAmount": 1.0,
    "backchargToChargCosttypeId": 1,
    "backchargToChargCosttypeDesc": "Subcontractor",
    "amountToBackcharge": 1.0,
    "currencyCode": "sample string 15",
    "exchangeCode": "sample string 16",
    "exchangeRate": 1.0,
    "backchargeableAssignmentDate": "2026-05-09T14:06:21.2219921+02:00",
    "originConcept": "sample string 17",
    "otherProject": "sample string 18",
    "backchargedStatusId": 1,
    "backchargedStatusDescription": "sample string 19",
    "backchargeCode": "sample string 20",
    "backchargedAmount": 1.0,
    "projectCurrencyCode": "sample string 21",
    "proposedCurrencyCode": "sample string 22",
    "thisSubcontractCurrencyCode": "sample string 23",
    "backchargedCurrencyCode": "sample string 24",
    "fromOriginToDestinationCurrencyRate": 1.0,
    "fromOriginToProjectCurrencyRate": 1.0,
    "fromOriginToProposedCurrencyRate": 1.0,
    "fromBackchargedToOriginCurrencyRate": 1.0,
    "fromBackchargedToProjectCurrencyRate": 1.0,
    "fromBackchargedToProposedCurrencyRate": 1.0,
    "amountToBackchargeInProjectCurrency": 1.0,
    "amountToBackchargeInProposedCurrency": 1.0,
    "amountToBackchargeInThisSubcontractCurrency": 1.0,
    "backchargedAmountInOriginCurrency": 1.0,
    "backchargedAmountInProjectCurrency": 1.0,
    "backchargedAmountInProposedCurrency": 1.0,
    "backchargeActualCost": 1.0,
    "backchargeSubcontractCodeDest": "sample string 25",
    "backchargeProjectCodeDest": "sample string 26",
    "backchargeProjectIdDest": 1,
    "backchargeProjectIdOrig": 1,
    "toBackchargeAmounts": {
      "originCurrencyAmount": {
        "value": 1.0,
        "currencyCode": "sample string 15",
        "formatedValue": "1.00 sample string 15"
      },
      "propDestinationCurrencyAmount": {
        "value": 1.0,
        "currencyCode": "sample string 22",
        "formatedValue": "1.00 sample string 22"
      },
      "thisSubcontractCurrencyAmount": {
        "value": 1.0,
        "currencyCode": "sample string 23",
        "formatedValue": "1.00 sample string 23"
      },
      "projectCurrencyAmount": {
        "value": 1.0,
        "currencyCode": "sample string 21",
        "formatedValue": "1.00 sample string 21"
      },
      "backchargedCurrencyAmount": null
    },
    "backchargedAmounts": {
      "originCurrencyAmount": {
        "value": 1.0,
        "currencyCode": "sample string 15",
        "formatedValue": "1.00 sample string 15"
      },
      "propDestinationCurrencyAmount": null,
      "thisSubcontractCurrencyAmount": null,
      "projectCurrencyAmount": {
        "value": 1.0,
        "currencyCode": "sample string 21",
        "formatedValue": "1.00 sample string 21"
      },
      "backchargedCurrencyAmount": {
        "value": 1.0,
        "currencyCode": "sample string 24",
        "formatedValue": "1.00 sample string 24"
      }
    }
  }
}

text/html

Sample:
{"id":1,"concept":"sample string 1","quantity":1.0,"measurementUnit":"sample string 2","unitPrice":1.0,"amount":1.0,"backchargeVersionId":3,"backchargeableLineCode":"sample string 4","bachargeableDeleted":true,"backchargeable":{"id":1,"businessEntityTypeId":1,"businessEntityTypeDesc":"sample string 2","subcontractId":3,"subcontractCode":"sample string 4","subcontractSubcontractor":"sample string 5","subcontractSubcontractorName":"sample string 6","code":"sample string 7","poCode":"sample string 8","poName":"sample string 9","subcontractorVendor":"sample string 10","subcontractorVendorName":"sample string 11","entityId":12,"entityName":"sample string 13","entityCode":"sample string 14","entityAmount":1.0,"backchargToChargCosttypeId":1,"backchargToChargCosttypeDesc":"Subcontractor","amountToBackcharge":1.0,"currencyCode":"sample string 15","exchangeCode":"sample string 16","exchangeRate":1.0,"backchargeableAssignmentDate":"2026-05-09T14:06:21.2219921+02:00","originConcept":"sample string 17","otherProject":"sample string 18","backchargedStatusId":1,"backchargedStatusDescription":"sample string 19","backchargeCode":"sample string 20","backchargedAmount":1.0,"projectCurrencyCode":"sample string 21","proposedCurrencyCode":"sample string 22","thisSubcontractCurrencyCode":"sample string 23","backchargedCurrencyCode":"sample string 24","fromOriginToDestinationCurrencyRate":1.0,"fromOriginToProjectCurrencyRate":1.0,"fromOriginToProposedCurrencyRate":1.0,"fromBackchargedToOriginCurrencyRate":1.0,"fromBackchargedToProjectCurrencyRate":1.0,"fromBackchargedToProposedCurrencyRate":1.0,"amountToBackchargeInProjectCurrency":1.0,"amountToBackchargeInProposedCurrency":1.0,"amountToBackchargeInThisSubcontractCurrency":1.0,"backchargedAmountInOriginCurrency":1.0,"backchargedAmountInProjectCurrency":1.0,"backchargedAmountInProposedCurrency":1.0,"backchargeActualCost":1.0,"backchargeSubcontractCodeDest":"sample string 25","backchargeProjectCodeDest":"sample string 26","backchargeProjectIdDest":1,"backchargeProjectIdOrig":1,"toBackchargeAmounts":{"originCurrencyAmount":{"value":1.0,"currencyCode":"sample string 15","formatedValue":"1.00 sample string 15"},"propDestinationCurrencyAmount":{"value":1.0,"currencyCode":"sample string 22","formatedValue":"1.00 sample string 22"},"thisSubcontractCurrencyAmount":{"value":1.0,"currencyCode":"sample string 23","formatedValue":"1.00 sample string 23"},"projectCurrencyAmount":{"value":1.0,"currencyCode":"sample string 21","formatedValue":"1.00 sample string 21"},"backchargedCurrencyAmount":null},"backchargedAmounts":{"originCurrencyAmount":{"value":1.0,"currencyCode":"sample string 15","formatedValue":"1.00 sample string 15"},"propDestinationCurrencyAmount":null,"thisSubcontractCurrencyAmount":null,"projectCurrencyAmount":{"value":1.0,"currencyCode":"sample string 21","formatedValue":"1.00 sample string 21"},"backchargedCurrencyAmount":{"value":1.0,"currencyCode":"sample string 24","formatedValue":"1.00 sample string 24"}}}}

application/xml, text/xml

Sample:
<BackchargeLineDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.BackchargeAgg">
  <Amount>1</Amount>
  <BachargeableDeleted>true</BachargeableDeleted>
  <BackchargeVersionId>3</BackchargeVersionId>
  <Backchargeable>
    <AmountToBackcharge>1</AmountToBackcharge>
    <AmountToBackchargeInProjectCurrency>1</AmountToBackchargeInProjectCurrency>
    <AmountToBackchargeInProposedCurrency>1</AmountToBackchargeInProposedCurrency>
    <AmountToBackchargeInThisSubcontractCurrency>1</AmountToBackchargeInThisSubcontractCurrency>
    <BackchargToChargCosttypeId>Subcontractor</BackchargToChargCosttypeId>
    <BackchargeActualCost>1</BackchargeActualCost>
    <BackchargeCode>sample string 20</BackchargeCode>
    <BackchargeProjectCodeDest>sample string 26</BackchargeProjectCodeDest>
    <BackchargeProjectIdDest>1</BackchargeProjectIdDest>
    <BackchargeProjectIdOrig>1</BackchargeProjectIdOrig>
    <BackchargeSubcontractCodeDest>sample string 25</BackchargeSubcontractCodeDest>
    <BackchargeableAssignmentDate>2026-05-09T14:06:21.2219921+02:00</BackchargeableAssignmentDate>
    <BackchargedAmount>1</BackchargedAmount>
    <BackchargedAmountInOriginCurrency>1</BackchargedAmountInOriginCurrency>
    <BackchargedAmountInProjectCurrency>1</BackchargedAmountInProjectCurrency>
    <BackchargedAmountInProposedCurrency>1</BackchargedAmountInProposedCurrency>
    <BackchargedCurrencyCode>sample string 24</BackchargedCurrencyCode>
    <BackchargedStatusDescription>sample string 19</BackchargedStatusDescription>
    <BackchargedStatusId>Available</BackchargedStatusId>
    <BusinessEntityTypeDesc>sample string 2</BusinessEntityTypeDesc>
    <BusinessEntityTypeId>Subcontract</BusinessEntityTypeId>
    <Code>sample string 7</Code>
    <CurrencyCode>sample string 15</CurrencyCode>
    <EntityAmount>1</EntityAmount>
    <EntityCode>sample string 14</EntityCode>
    <EntityId>12</EntityId>
    <EntityName>sample string 13</EntityName>
    <ExchangeCode>sample string 16</ExchangeCode>
    <ExchangeRate>1</ExchangeRate>
    <FromBackchargedToOriginCurrencyRate>1</FromBackchargedToOriginCurrencyRate>
    <FromBackchargedToProjectCurrencyRate>1</FromBackchargedToProjectCurrencyRate>
    <FromBackchargedToProposedCurrencyRate>1</FromBackchargedToProposedCurrencyRate>
    <FromOriginToDestinationCurrencyRate>1</FromOriginToDestinationCurrencyRate>
    <FromOriginToProjectCurrencyRate>1</FromOriginToProjectCurrencyRate>
    <FromOriginToProposedCurrencyRate>1</FromOriginToProposedCurrencyRate>
    <Id>1</Id>
    <OriginConcept>sample string 17</OriginConcept>
    <OtherProject>sample string 18</OtherProject>
    <PoCode>sample string 8</PoCode>
    <PoName>sample string 9</PoName>
    <ProjectCurrencyCode>sample string 21</ProjectCurrencyCode>
    <ProposedCurrencyCode>sample string 22</ProposedCurrencyCode>
    <SubcontractCode>sample string 4</SubcontractCode>
    <SubcontractId>3</SubcontractId>
    <SubcontractSubcontractor>sample string 5</SubcontractSubcontractor>
    <SubcontractSubcontractorName>sample string 6</SubcontractSubcontractorName>
    <SubcontractorVendor>sample string 10</SubcontractorVendor>
    <SubcontractorVendorName>sample string 11</SubcontractorVendorName>
    <ThisSubcontractCurrencyCode>sample string 23</ThisSubcontractCurrencyCode>
  </Backchargeable>
  <BackchargeableLineCode>sample string 4</BackchargeableLineCode>
  <Concept>sample string 1</Concept>
  <Id>1</Id>
  <MeasurementUnit>sample string 2</MeasurementUnit>
  <Quantity>1</Quantity>
  <UnitPrice>1</UnitPrice>
</BackchargeLineDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiDataResultOfBoolean
NameDescriptionTypeAdditional information
Data

boolean

None.

Success

boolean

None.

Message

string

None.

Errors

Collection of CustomError

None.

Warnings

Collection of string

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.