POST api/Purchases

Request Information

URI Parameters

None.

Body Parameters

CreatePurchaseDto
NameDescriptionTypeAdditional information
OrderState

OrderStateDto

None.

OrderDetails

OrderDetailsDto

None.

Supplier

Entity

None.

SupplierBranch

Entity

None.

Product

Entity

None.

Broker

Entity

None.

BillTo

Entity

None.

ShipTo

Entity

None.

CustomCostCenter

string

None.

ConfirmedDate

DateDto

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderState": {
    "IsRequestAccepted": true,
    "ETA": {
      "On": {
        "Day": 1,
        "Month": 2,
        "Year": 3,
        "Hour": 4,
        "Minute": 5,
        "Second": 6
      },
      "Value": "sample string 1"
    },
    "MOT": "sample string 2",
    "Storage": {
      "From": "sample string 1",
      "Days": 2,
      "FromDate": {
        "Day": 1,
        "Month": 2,
        "Year": 3,
        "Hour": 4,
        "Minute": 5,
        "Second": 6
      },
      "On": {
        "Day": 1,
        "Month": 2,
        "Year": 3,
        "Hour": 4,
        "Minute": 5,
        "Second": 6
      }
    },
    "Payment": {
      "From": "sample string 1",
      "Days": 2,
      "FromDate": {
        "Day": 1,
        "Month": 2,
        "Year": 3,
        "Hour": 4,
        "Minute": 5,
        "Second": 6
      },
      "On": {
        "Day": 1,
        "Month": 2,
        "Year": 3,
        "Hour": 4,
        "Minute": 5,
        "Second": 6
      }
    },
    "Delivery": {
      "IsDelivered": true,
      "Ex": "sample string 2"
    },
    "Transport": "sample string 3",
    "Packing": "sample string 4",
    "Remarks": "sample string 5",
    "BtType": "sample string 6",
    "SpecificRemark": "sample string 7",
    "Port": "sample string 8",
    "VesselName": "sample string 9",
    "LoanAccount": "sample string 10",
    "ContractNo": "sample string 11",
    "ContractDate": {
      "Day": 1,
      "Month": 2,
      "Year": 3,
      "Hour": 4,
      "Minute": 5,
      "Second": 6
    },
    "BillNo": "sample string 12",
    "BillDate": {
      "Day": 1,
      "Month": 2,
      "Year": 3,
      "Hour": 4,
      "Minute": 5,
      "Second": 6
    },
    "ICC": "sample string 13",
    "HasSpecialTerm": true,
    "SpecialTerm": "sample string 15",
    "DeliveryTerms": "Delivered",
    "PaymentTerms": "2 Days From sample string 1 01/02/3",
    "PaymentDue": "01/02/3",
    "StorageTerms": "2 Days From sample string 1 01/02/3",
    "StorageDue": "01/02/3",
    "ETADetails": "sample string 1 01/02/3",
    "IsIncomplete": false
  },
  "OrderDetails": {
    "FOB": 1.0,
    "Insurance": 2.0,
    "Freight": 3.0,
    "CIFInForignCurrency": 4.0,
    "ForeignCurrency": "sample string 5",
    "CIFExchangeRateCustom": 6.0,
    "CIFExchangeRateBank": 7.0,
    "ServiceCharges": 8.0,
    "NETCIFCustom": 9.0,
    "NETCIFBank": 10.0,
    "FinanceCost": 11.0,
    "StorageCost": 12.0,
    "ClearingCharges": 13.0,
    "TransportCost": 14.0,
    "NETCostCIFCustom": 15.0,
    "LandingChargesPercent": 16.0,
    "LandingCharges": 17.0,
    "AssesableValue": 18.0,
    "CDPercent": 19.0,
    "CESSPercent": 20.0,
    "CDAmount": 21.0,
    "CESSAmount": 22.0,
    "SACDAmount": 23.0,
    "NETCostBasic": 24.0,
    "GSTPercent": 25.0,
    "GSTAmount": 26.0,
    "AntiDumpingDuty": 27.0,
    "TransportCharges": 28.0,
    "DrumCharges": 29.0,
    "OtherCharges": 30.0,
    "TotalNETCost": 31.0,
    "Quantity": 32.0,
    "Rate": 33.0,
    "Amount": 34.0,
    "UnitOfMeasure": "sample string 35",
    "CIFExchangeRateProvisional": 36.0,
    "CIFExchangeRateFinal": 37.0,
    "CIFInInrDuty": 38.0,
    "CIFInInrBank": 39.0,
    "GrossDiff": 40.0,
    "GrossDiffAmount": 41.0,
    "NetDiffAmount": 42.0,
    "NetAmount": 43.0,
    "TransportChargesAmount": 44.0,
    "BrokerageChargesAmount": 45.0,
    "DrumChargesAmount": 46.0,
    "BrokeragePercent": 47.0,
    "BrokerageCharges": 48.0,
    "NetPrice": 49.0,
    "LiftedQuantity": 50.0,
    "FinalQuantity": 51.0,
    "DutyCharges": 52.0,
    "CIFInINRProvisional": 144.0,
    "CIFInINRFinal": 148.0,
    "ExchangeRateDiff": -1.0,
    "ExchangeRateDiffAmount": -4.0,
    "TotalRateAmount": -204.0
  },
  "Supplier": {
    "Id": 1
  },
  "SupplierBranch": {
    "Id": 1
  },
  "Product": {
    "Id": 1
  },
  "Broker": {
    "Id": 1
  },
  "BillTo": {
    "Id": 1
  },
  "ShipTo": {
    "Id": 1
  },
  "CustomCostCenter": "sample string 1",
  "ConfirmedDate": {
    "Day": 1,
    "Month": 2,
    "Year": 3,
    "Hour": 4,
    "Minute": 5,
    "Second": 6
  }
}

application/xml, text/xml

Sample:
<CreatePurchaseDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Logic.DTOs">
  <BillTo>
    <Id>1</Id>
  </BillTo>
  <Broker>
    <Id>1</Id>
  </Broker>
  <ConfirmedDate>
    <Day>1</Day>
    <Hour>4</Hour>
    <Minute>5</Minute>
    <Month>2</Month>
    <Second>6</Second>
    <Year>3</Year>
  </ConfirmedDate>
  <CustomCostCenter>sample string 1</CustomCostCenter>
  <OrderDetails>
    <Amount>34</Amount>
    <AntiDumpingDuty>27</AntiDumpingDuty>
    <AssesableValue>18</AssesableValue>
    <BrokerageCharges>48</BrokerageCharges>
    <BrokerageChargesAmount>45</BrokerageChargesAmount>
    <BrokeragePercent>47</BrokeragePercent>
    <CDAmount>21</CDAmount>
    <CDPercent>19</CDPercent>
    <CESSAmount>22</CESSAmount>
    <CESSPercent>20</CESSPercent>
    <CIFExchangeRateBank>7</CIFExchangeRateBank>
    <CIFExchangeRateCustom>6</CIFExchangeRateCustom>
    <CIFExchangeRateFinal>37</CIFExchangeRateFinal>
    <CIFExchangeRateProvisional>36</CIFExchangeRateProvisional>
    <CIFInForignCurrency>4</CIFInForignCurrency>
    <CIFInInrBank>39</CIFInInrBank>
    <CIFInInrDuty>38</CIFInInrDuty>
    <ClearingCharges>13</ClearingCharges>
    <DrumCharges>29</DrumCharges>
    <DrumChargesAmount>46</DrumChargesAmount>
    <DutyCharges>52</DutyCharges>
    <FOB>1</FOB>
    <FinalQuantity>51</FinalQuantity>
    <FinanceCost>11</FinanceCost>
    <ForeignCurrency>sample string 5</ForeignCurrency>
    <Freight>3</Freight>
    <GSTAmount>26</GSTAmount>
    <GSTPercent>25</GSTPercent>
    <GrossDiff>40</GrossDiff>
    <GrossDiffAmount>41</GrossDiffAmount>
    <Insurance>2</Insurance>
    <LandingCharges>17</LandingCharges>
    <LandingChargesPercent>16</LandingChargesPercent>
    <LiftedQuantity>50</LiftedQuantity>
    <NETCIFBank>10</NETCIFBank>
    <NETCIFCustom>9</NETCIFCustom>
    <NETCostBasic>24</NETCostBasic>
    <NETCostCIFCustom>15</NETCostCIFCustom>
    <NetAmount>43</NetAmount>
    <NetDiffAmount>42</NetDiffAmount>
    <NetPrice>49</NetPrice>
    <OtherCharges>30</OtherCharges>
    <Quantity>32</Quantity>
    <Rate>33</Rate>
    <SACDAmount>23</SACDAmount>
    <ServiceCharges>8</ServiceCharges>
    <StorageCost>12</StorageCost>
    <TotalNETCost>31</TotalNETCost>
    <TransportCharges>28</TransportCharges>
    <TransportChargesAmount>44</TransportChargesAmount>
    <TransportCost>14</TransportCost>
    <UnitOfMeasure>sample string 35</UnitOfMeasure>
  </OrderDetails>
  <OrderState>
    <BillDate>
      <Day>1</Day>
      <Hour>4</Hour>
      <Minute>5</Minute>
      <Month>2</Month>
      <Second>6</Second>
      <Year>3</Year>
    </BillDate>
    <BillNo>sample string 12</BillNo>
    <BtType>sample string 6</BtType>
    <ContractDate>
      <Day>1</Day>
      <Hour>4</Hour>
      <Minute>5</Minute>
      <Month>2</Month>
      <Second>6</Second>
      <Year>3</Year>
    </ContractDate>
    <ContractNo>sample string 11</ContractNo>
    <Delivery>
      <Ex>sample string 2</Ex>
      <IsDelivered>true</IsDelivered>
    </Delivery>
    <ETA>
      <On>
        <Day>1</Day>
        <Hour>4</Hour>
        <Minute>5</Minute>
        <Month>2</Month>
        <Second>6</Second>
        <Year>3</Year>
      </On>
      <Value>sample string 1</Value>
    </ETA>
    <HasSpecialTerm>true</HasSpecialTerm>
    <ICC>sample string 13</ICC>
    <IsRequestAccepted>true</IsRequestAccepted>
    <LoanAccount>sample string 10</LoanAccount>
    <MOT>sample string 2</MOT>
    <Packing>sample string 4</Packing>
    <Payment>
      <Days>2</Days>
      <From>sample string 1</From>
      <FromDate>
        <Day>1</Day>
        <Hour>4</Hour>
        <Minute>5</Minute>
        <Month>2</Month>
        <Second>6</Second>
        <Year>3</Year>
      </FromDate>
      <On>
        <Day>1</Day>
        <Hour>4</Hour>
        <Minute>5</Minute>
        <Month>2</Month>
        <Second>6</Second>
        <Year>3</Year>
      </On>
    </Payment>
    <Port>sample string 8</Port>
    <Remarks>sample string 5</Remarks>
    <SpecialTerm>sample string 15</SpecialTerm>
    <SpecificRemark>sample string 7</SpecificRemark>
    <Storage>
      <Days>2</Days>
      <From>sample string 1</From>
      <FromDate>
        <Day>1</Day>
        <Hour>4</Hour>
        <Minute>5</Minute>
        <Month>2</Month>
        <Second>6</Second>
        <Year>3</Year>
      </FromDate>
      <On>
        <Day>1</Day>
        <Hour>4</Hour>
        <Minute>5</Minute>
        <Month>2</Month>
        <Second>6</Second>
        <Year>3</Year>
      </On>
    </Storage>
    <Transport>sample string 3</Transport>
    <VesselName>sample string 9</VesselName>
  </OrderState>
  <Product>
    <Id>1</Id>
  </Product>
  <ShipTo>
    <Id>1</Id>
  </ShipTo>
  <Supplier>
    <Id>1</Id>
  </Supplier>
  <SupplierBranch>
    <Id>1</Id>
  </SupplierBranch>
</CreatePurchaseDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.