POST api/GreenOffsetShipment
Add offset a shipment
Request Information
URI Parameters
None.
Body Parameters
OffsetShipmentName | Description | Type | Additional information |
---|---|---|---|
OffsetCertificateId | integer |
None. |
|
GR_SH_ID | integer |
None. |
|
ContainerNo | string |
None. |
|
ProjectID | integer |
None. |
|
DistPercentage | decimal number |
None. |
|
MemberCode | integer |
None. |
|
CO2 | decimal number |
None. |
|
EmmisionCost | decimal number |
None. |
Request Formats
application/json
Sample:
Binary JSON content. See http://bsonspec.org for details.
text/json
Sample:
{ "OffsetCertificateId": 1, "GR_SH_ID": 2, "ContainerNo": "sample string 3", "ProjectID": 4, "DistPercentage": 5.0, "MemberCode": 6, "CO2": 7.0, "EmmisionCost": 8.0 }
application/xml, text/xml
Sample:
<OffsetShipment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GeminiShippers.Common.RESTfulGreenable"> <CO2>7</CO2> <ContainerNo>sample string 3</ContainerNo> <DistPercentage>5</DistPercentage> <EmmisionCost>8</EmmisionCost> <GR_SH_ID>2</GR_SH_ID> <MemberCode>6</MemberCode> <OffsetCertificateId>1</OffsetCertificateId> <ProjectID>4</ProjectID> </OffsetShipment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json
Sample:
Binary JSON content. See http://bsonspec.org for details.
text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>