POST api/CargoRelease/Expenses/Save
Request Information
URI Parameters
None.
Body Parameters
ExpensesInputModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ShipmentId | globally unique identifier |
None. |
|
| PickupOrDeliveryId | globally unique identifier |
None. |
|
| WarehouseReceiptId | globally unique identifier |
None. |
|
| ReleaseId | globally unique identifier |
None. |
|
| Item | string |
None. |
|
| ItemId | integer |
None. |
|
| Description | string |
None. |
|
| NumberOfPieces | integer |
None. |
|
| UnitPrice | decimal number |
None. |
|
| GrossWeight | decimal number |
None. |
|
| GrossVolume | decimal number |
None. |
|
| ChargeableWeight | decimal number |
None. |
|
| RateCharge | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| Currency | string |
None. |
|
| InvoiceNumber | string |
None. |
|
| InvoiceTo | string |
None. |
|
| RateCost | decimal number |
None. |
|
| TotalCost | decimal number |
None. |
|
| PayableTo | string |
None. |
|
| BillNumber | string |
None. |
|
| ApplyBy | string |
None. |
|
| ApplyByParentId | string |
None. |
|
| ShowInDocuments | boolean |
None. |
|
| ExpenseType | integer |
None. |
|
| IsConsolidation | boolean |
None. |
|
| Profit | decimal number |
None. |
|
| ProfitPercentage | decimal number |
None. |
|
| CreatedDate | date |
None. |
|
| InvoicePaymentMethod_ID | integer |
None. |
|
| PayablePaymentMethod_ID | integer |
None. |
|
| InvoiceToMappingType | integer |
None. |
|
| PayableToMappingType | integer |
None. |
|
| PurchaseOrder_ID | globally unique identifier |
None. |
|
| SalesOrder_ID | globally unique identifier |
None. |
|
| InvoiceId | string |
None. |
|
| BillId | string |
None. |
|
| InvoiceLineId | string |
None. |
|
| BillLineId | string |
None. |
|
| IsUpdateInvoice | boolean |
None. |
|
| Booking_ID | globally unique identifier |
None. |
|
| IsUpdateBill | boolean |
None. |
|
| IsMaxCharge | boolean |
None. |
|
| IsMinCharge | boolean |
None. |
|
| IsGrossWeightInLbs | boolean |
None. |
|
| IsGrossVolumeInCubicFeet | boolean |
None. |
|
| IsChargeableWeightInVlbs | boolean |
None. |
|
| GrossWeightKg | decimal number |
None. |
|
| GrossVolumeCubicMeter | decimal number |
None. |
|
| ChargeableWeightVkg | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"ShipmentId": "c22c441c-0f1e-45a1-9e1f-3479a8277f2f",
"PickupOrDeliveryId": "82ad9099-3a15-4c44-968a-1bb0ba9dbaf5",
"WarehouseReceiptId": "4ce17f4e-75ef-4fbf-956c-1286d26e4a7f",
"ReleaseId": "b18d4c40-68dc-4522-86ec-e5d47999ad8c",
"Item": "sample string 1",
"ItemId": 1,
"Description": "sample string 2",
"NumberOfPieces": 1,
"UnitPrice": 1.1,
"GrossWeight": 1.1,
"GrossVolume": 1.1,
"ChargeableWeight": 1.1,
"RateCharge": 1.1,
"TotalAmount": 1.1,
"Currency": "sample string 3",
"InvoiceNumber": "sample string 4",
"InvoiceTo": "sample string 5",
"RateCost": 1.1,
"TotalCost": 1.1,
"PayableTo": "sample string 6",
"BillNumber": "sample string 7",
"ApplyBy": "sample string 8",
"ApplyByParentId": "sample string 9",
"ShowInDocuments": true,
"ExpenseType": 10,
"IsConsolidation": true,
"Profit": 1.1,
"ProfitPercentage": 1.1,
"CreatedDate": "2026-08-05T17:26:03.3433473-04:00",
"InvoicePaymentMethod_ID": 1,
"PayablePaymentMethod_ID": 1,
"InvoiceToMappingType": 1,
"PayableToMappingType": 1,
"PurchaseOrder_ID": "2a7b6e5b-4152-44b6-bd02-1a26e2c4e7d6",
"SalesOrder_ID": "750b37fe-7b3e-4598-ad6e-73c6e5cc2dd3",
"InvoiceId": "sample string 12",
"BillId": "sample string 13",
"InvoiceLineId": "sample string 14",
"BillLineId": "sample string 15",
"IsUpdateInvoice": true,
"Booking_ID": "ea2fe01e-ac07-4851-ba9f-106010462224",
"IsUpdateBill": true,
"IsMaxCharge": true,
"IsMinCharge": true,
"IsGrossWeightInLbs": true,
"IsGrossVolumeInCubicFeet": true,
"IsChargeableWeightInVlbs": true,
"GrossWeightKg": 1.0,
"GrossVolumeCubicMeter": 1.0,
"ChargeableWeightVkg": 1.0
}
application/xml, text/xml
Sample:
<ExpensesInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels"> <ApplyBy>sample string 8</ApplyBy> <ApplyByParentId>sample string 9</ApplyByParentId> <BillId>sample string 13</BillId> <BillLineId>sample string 15</BillLineId> <BillNumber>sample string 7</BillNumber> <Booking_ID>ea2fe01e-ac07-4851-ba9f-106010462224</Booking_ID> <ChargeableWeight>1.1</ChargeableWeight> <ChargeableWeightVkg>1</ChargeableWeightVkg> <CreatedDate>2026-08-05T17:26:03.3433473-04:00</CreatedDate> <Currency>sample string 3</Currency> <Description>sample string 2</Description> <ExpenseType>10</ExpenseType> <GrossVolume>1.1</GrossVolume> <GrossVolumeCubicMeter>1</GrossVolumeCubicMeter> <GrossWeight>1.1</GrossWeight> <GrossWeightKg>1</GrossWeightKg> <Id>1</Id> <InvoiceId>sample string 12</InvoiceId> <InvoiceLineId>sample string 14</InvoiceLineId> <InvoiceNumber>sample string 4</InvoiceNumber> <InvoicePaymentMethod_ID>1</InvoicePaymentMethod_ID> <InvoiceTo>sample string 5</InvoiceTo> <InvoiceToMappingType>1</InvoiceToMappingType> <IsChargeableWeightInVlbs>true</IsChargeableWeightInVlbs> <IsConsolidation>true</IsConsolidation> <IsGrossVolumeInCubicFeet>true</IsGrossVolumeInCubicFeet> <IsGrossWeightInLbs>true</IsGrossWeightInLbs> <IsMaxCharge>true</IsMaxCharge> <IsMinCharge>true</IsMinCharge> <IsUpdateBill>true</IsUpdateBill> <IsUpdateInvoice>true</IsUpdateInvoice> <Item>sample string 1</Item> <ItemId>1</ItemId> <NumberOfPieces>1</NumberOfPieces> <PayablePaymentMethod_ID>1</PayablePaymentMethod_ID> <PayableTo>sample string 6</PayableTo> <PayableToMappingType>1</PayableToMappingType> <PickupOrDeliveryId>82ad9099-3a15-4c44-968a-1bb0ba9dbaf5</PickupOrDeliveryId> <Profit>1.1</Profit> <ProfitPercentage>1.1</ProfitPercentage> <PurchaseOrder_ID>2a7b6e5b-4152-44b6-bd02-1a26e2c4e7d6</PurchaseOrder_ID> <RateCharge>1.1</RateCharge> <RateCost>1.1</RateCost> <ReleaseId>b18d4c40-68dc-4522-86ec-e5d47999ad8c</ReleaseId> <SalesOrder_ID>750b37fe-7b3e-4598-ad6e-73c6e5cc2dd3</SalesOrder_ID> <ShipmentId>c22c441c-0f1e-45a1-9e1f-3479a8277f2f</ShipmentId> <ShowInDocuments>true</ShowInDocuments> <TotalAmount>1.1</TotalAmount> <TotalCost>1.1</TotalCost> <UnitPrice>1.1</UnitPrice> <WarehouseReceiptId>4ce17f4e-75ef-4fbf-956c-1286d26e4a7f</WarehouseReceiptId> </ExpensesInputModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"Id":1,"ShipmentId":"c22c441c-0f1e-45a1-9e1f-3479a8277f2f","PickupOrDeliveryId":"82ad9099-3a15-4c44-968a-1bb0ba9dbaf5","WarehouseReceiptId":"4ce17f4e-75ef-4fbf-956c-1286d26e4a7f","ReleaseId":"b18d4c40-68dc-4522-86ec-e5d47999ad8c","Item":"sample string 1","ItemId":1,"Description":"sample string 2","NumberOfPieces":1,"UnitPrice":1.1,"GrossWeight":1.1,"GrossVolume":1.1,"ChargeableWeight":1.1,"RateCharge":1.1,"TotalAmount":1.1,"Currency":"sample string 3","InvoiceNumber":"sample string 4","InvoiceTo":"sample string 5","RateCost":1.1,"TotalCost":1.1,"PayableTo":"sample string 6","BillNumber":"sample string 7","ApplyBy":"sample string 8","ApplyByParentId":"sample string 9","ShowInDocuments":true,"ExpenseType":10,"IsConsolidation":true,"Profit":1.1,"ProfitPercentage":1.1,"CreatedDate":"2026-08-05T17:26:03.3433473-04:00","InvoicePaymentMethod_ID":1,"PayablePaymentMethod_ID":1,"InvoiceToMappingType":1,"PayableToMappingType":1,"PurchaseOrder_ID":"2a7b6e5b-4152-44b6-bd02-1a26e2c4e7d6","SalesOrder_ID":"750b37fe-7b3e-4598-ad6e-73c6e5cc2dd3","InvoiceId":"sample string 12","BillId":"sample string 13","InvoiceLineId":"sample string 14","BillLineId":"sample string 15","IsUpdateInvoice":true,"Booking_ID":"ea2fe01e-ac07-4851-ba9f-106010462224","IsUpdateBill":true,"IsMaxCharge":true,"IsMinCharge":true,"IsGrossWeightInLbs":true,"IsGrossVolumeInCubicFeet":true,"IsChargeableWeightInVlbs":true,"GrossWeightKg":1.0,"GrossVolumeCubicMeter":1.0,"ChargeableWeightVkg":1.0}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.