POST api/NewContract

Creates a new future/renewal contract with the given information.

Request Information

URI Parameters

None.

Body Parameters

The renewal contract binding model.

CreateNewContractBindingModel
NameDescriptionTypeAdditional information
boatNo

The boat that the new contract is for.

integer

None.

startDate

The start date of the new contract.

string

None.

endDate

The end date of the new contract.

string

None.

marinaCode

The marina that the new contract is at.

string

None.

contractType

The charging rate code for the new contract. Only the RATE part, the Type/Group is implied.

string

None.

baseValue

The base value of the contract, before discounts and adjustments.

decimal number

None.

adjustment

The amount to adjust the contract value by.

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "boatNo": 1,
  "startDate": "sample string 2",
  "endDate": "sample string 3",
  "marinaCode": "sample string 4",
  "contractType": "sample string 5",
  "baseValue": 6.1,
  "adjustment": 7.1
}

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="boatNo"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="startDate"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="endDate"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="marinaCode"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="contractType"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="baseValue"

6.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="adjustment"

7.1
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

The Http result, for WebAPI.

IHttpActionResult

None.

Response Formats

application/json, text/json, multipart/form-data

Sample:

Sample not available.