POST api/PickupAndDelivery/Expenses/Save

Request Information

URI Parameters

None.

Body Parameters

ExpensesInputModel
NameDescriptionTypeAdditional 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.

UpdatedDate

date

None.

InvoicePaymentMethod_ID

integer

None.

PayablePaymentMethod_ID

integer

None.

InvoiceToMappingType

integer

None.

PayableToMappingType

integer

None.

PurchaseOrder_ID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ShipmentId": "da2d6595-8c7a-4e2b-ab7c-6581810fb692",
  "PickupOrDeliveryId": "88752282-5385-412e-a269-5130dbbed306",
  "WarehouseReceiptId": "5a1882c2-bd0b-4fbf-9277-1ab1c9c93e81",
  "ReleaseId": "b7d47e33-cfa9-448f-8d61-3e3d09e3a3bb",
  "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": "2025-08-02T14:14:34.01419-04:00",
  "UpdatedDate": "2025-08-02T14:14:34.01419-04:00",
  "InvoicePaymentMethod_ID": 1,
  "PayablePaymentMethod_ID": 1,
  "InvoiceToMappingType": 1,
  "PayableToMappingType": 1,
  "PurchaseOrder_ID": "53718227-739b-45b8-b97e-ba466ab4a0e3"
}

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>
  <BillNumber>sample string 7</BillNumber>
  <ChargeableWeight>1.1</ChargeableWeight>
  <CreatedDate>2025-08-02T14:14:34.01419-04:00</CreatedDate>
  <Currency>sample string 3</Currency>
  <Description>sample string 2</Description>
  <ExpenseType>10</ExpenseType>
  <GrossVolume>1.1</GrossVolume>
  <GrossWeight>1.1</GrossWeight>
  <Id>1</Id>
  <InvoiceNumber>sample string 4</InvoiceNumber>
  <InvoicePaymentMethod_ID>1</InvoicePaymentMethod_ID>
  <InvoiceTo>sample string 5</InvoiceTo>
  <InvoiceToMappingType>1</InvoiceToMappingType>
  <IsConsolidation>true</IsConsolidation>
  <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>88752282-5385-412e-a269-5130dbbed306</PickupOrDeliveryId>
  <Profit>1.1</Profit>
  <ProfitPercentage>1.1</ProfitPercentage>
  <PurchaseOrder_ID>53718227-739b-45b8-b97e-ba466ab4a0e3</PurchaseOrder_ID>
  <RateCharge>1.1</RateCharge>
  <RateCost>1.1</RateCost>
  <ReleaseId>b7d47e33-cfa9-448f-8d61-3e3d09e3a3bb</ReleaseId>
  <ShipmentId>da2d6595-8c7a-4e2b-ab7c-6581810fb692</ShipmentId>
  <ShowInDocuments>true</ShowInDocuments>
  <TotalAmount>1.1</TotalAmount>
  <TotalCost>1.1</TotalCost>
  <UnitPrice>1.1</UnitPrice>
  <UpdatedDate>2025-08-02T14:14:34.01419-04:00</UpdatedDate>
  <WarehouseReceiptId>5a1882c2-bd0b-4fbf-9277-1ab1c9c93e81</WarehouseReceiptId>
</ExpensesInputModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"Id":1,"ShipmentId":"da2d6595-8c7a-4e2b-ab7c-6581810fb692","PickupOrDeliveryId":"88752282-5385-412e-a269-5130dbbed306","WarehouseReceiptId":"5a1882c2-bd0b-4fbf-9277-1ab1c9c93e81","ReleaseId":"b7d47e33-cfa9-448f-8d61-3e3d09e3a3bb","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":"2025-08-02T14:14:34.01419-04:00","UpdatedDate":"2025-08-02T14:14:34.01419-04:00","InvoicePaymentMethod_ID":1,"PayablePaymentMethod_ID":1,"InvoiceToMappingType":1,"PayableToMappingType":1,"PurchaseOrder_ID":"53718227-739b-45b8-b97e-ba466ab4a0e3"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.