POST api/Subcontracts/{subcontractId}/Advances

Creates an advance on a subcontract

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subcontractId

integer

Required

Body Parameters

AdvanceCreateDto
NameDescriptionTypeAdditional information
Name

string

String length: inclusive between 0 and 50

AdvanceAmount

decimal number

None.

GuaranteeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 2",
  "advanceAmount": 1.0,
  "guaranteeId": 1
}

text/html

Sample:
{"name":"sample string 2","advanceAmount":1.0,"guaranteeId":1}

application/xml, text/xml

Sample:
<AdvanceCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TR.eSAM.SubcontractModule.Application.Dtos.Dtos.SubcontractAgg">
  <AdvanceAmount>1</AdvanceAmount>
  <GuaranteeId>1</GuaranteeId>
  <Name>sample string 2</Name>
</AdvanceCreateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>