POST api/book/calculate/summary
Request Information
URI Parameters
None.
Body Parameters
DNGCalculateSummaryDTOName | Description | Type | Additional information |
---|---|---|---|
Boxes | Collection of DNGCalculateSummaryBoxDTO |
None. |
|
Origin | integer |
None. |
|
Destination | integer |
None. |
|
PickUpCharge | decimal number |
None. |
|
DeliveryCharge | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "Boxes": [ { "BoxId": "sample string 1", "Quantity": 2, "Declared": 3.0 }, { "BoxId": "sample string 1", "Quantity": 2, "Declared": 3.0 } ], "Origin": 1, "Destination": 2, "PickUpCharge": 3.0, "DeliveryCharge": 4.0 }
application/xml, text/xml
Sample:
<DNGCalculateSummaryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shipping_API.Models.DTO"> <Boxes> <DNGCalculateSummaryBoxDTO> <BoxId>sample string 1</BoxId> <Declared>3</Declared> <Quantity>2</Quantity> </DNGCalculateSummaryBoxDTO> <DNGCalculateSummaryBoxDTO> <BoxId>sample string 1</BoxId> <Declared>3</Declared> <Quantity>2</Quantity> </DNGCalculateSummaryBoxDTO> </Boxes> <DeliveryCharge>4</DeliveryCharge> <Destination>2</Destination> <Origin>1</Origin> <PickUpCharge>3</PickUpCharge> </DNGCalculateSummaryDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.