POST api/Currencies

Request Information

URI Parameters

None.

Body Parameters

CurrencyAll
NameDescriptionTypeAdditional information
itemData

Currency

None.

subUnits

Collection of curr_unit

None.

Request Formats

application/json, text/json

Sample:
{
  "itemData": {
    "id": 1,
    "symbol": "sample string 2",
    "nameEN": "sample string 3",
    "barcode": "sample string 4",
    "group_id": 1,
    "unit": 1,
    "IS_Deleted": true,
    "purch_price": 1.1,
    "sale_price": 1.1,
    "limit": 1,
    "tax": 1.1,
    "discount": 1.1,
    "tax_group": 1,
    "itemNo": "sample string 5",
    "min_sale_price": 1.1,
    "img": null,
    "Distributor_price": 1.1,
    "jomla_price": 1.1,
    "PakageNo": 1,
    "Max_rate": 1,
    "currency_type": 1,
    "amount_disc": 1.1,
    "prody_date": "2025-12-13T00:12:47.9065636+03:00",
    "expiry_date": "2025-12-13T00:12:47.9065636+03:00",
    "old_MinSalePrice": 1.1,
    "favorite": 1,
    "type": 1,
    "branch": 1,
    "post": 1,
    "stop_trans": 1,
    "Location": "sample string 6"
  },
  "subUnits": [
    {
      "curr": 1,
      "unit": 1,
      "perc": 1.1,
      "purch": 1.1,
      "sale": 1.1,
      "barcode": "sample string 1"
    },
    {
      "curr": 1,
      "unit": 1,
      "perc": 1.1,
      "purch": 1.1,
      "sale": 1.1,
      "barcode": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<CurrenciesController.CurrencyAll xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLite.Controllers.BisicData">
  <itemData xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
    <d2p1:Distributor_price>1.1</d2p1:Distributor_price>
    <d2p1:IS_Deleted>true</d2p1:IS_Deleted>
    <d2p1:Location>sample string 6</d2p1:Location>
    <d2p1:Max_rate>1</d2p1:Max_rate>
    <d2p1:PakageNo>1</d2p1:PakageNo>
    <d2p1:amount_disc>1.1</d2p1:amount_disc>
    <d2p1:barcode>sample string 4</d2p1:barcode>
    <d2p1:branch>1</d2p1:branch>
    <d2p1:currency_type>1</d2p1:currency_type>
    <d2p1:discount>1.1</d2p1:discount>
    <d2p1:expiry_date>2025-12-13T00:12:47.9065636+03:00</d2p1:expiry_date>
    <d2p1:favorite>1</d2p1:favorite>
    <d2p1:group_id>1</d2p1:group_id>
    <d2p1:id>1</d2p1:id>
    <d2p1:img xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Linq" i:nil="true" />
    <d2p1:itemNo>sample string 5</d2p1:itemNo>
    <d2p1:jomla_price>1.1</d2p1:jomla_price>
    <d2p1:limit>1</d2p1:limit>
    <d2p1:min_sale_price>1.1</d2p1:min_sale_price>
    <d2p1:nameEN>sample string 3</d2p1:nameEN>
    <d2p1:old_MinSalePrice>1.1</d2p1:old_MinSalePrice>
    <d2p1:post>1</d2p1:post>
    <d2p1:prody_date>2025-12-13T00:12:47.9065636+03:00</d2p1:prody_date>
    <d2p1:purch_price>1.1</d2p1:purch_price>
    <d2p1:sale_price>1.1</d2p1:sale_price>
    <d2p1:stop_trans>1</d2p1:stop_trans>
    <d2p1:symbol>sample string 2</d2p1:symbol>
    <d2p1:tax>1.1</d2p1:tax>
    <d2p1:tax_group>1</d2p1:tax_group>
    <d2p1:type>1</d2p1:type>
    <d2p1:unit>1</d2p1:unit>
  </itemData>
  <subUnits xmlns:d2p1="http://schemas.datacontract.org/2004/07/ApiLite.Models">
    <d2p1:curr_unit>
      <d2p1:barcode>sample string 1</d2p1:barcode>
      <d2p1:curr>1</d2p1:curr>
      <d2p1:perc>1.1</d2p1:perc>
      <d2p1:purch>1.1</d2p1:purch>
      <d2p1:sale>1.1</d2p1:sale>
      <d2p1:unit>1</d2p1:unit>
    </d2p1:curr_unit>
    <d2p1:curr_unit>
      <d2p1:barcode>sample string 1</d2p1:barcode>
      <d2p1:curr>1</d2p1:curr>
      <d2p1:perc>1.1</d2p1:perc>
      <d2p1:purch>1.1</d2p1:purch>
      <d2p1:sale>1.1</d2p1:sale>
      <d2p1:unit>1</d2p1:unit>
    </d2p1:curr_unit>
  </subUnits>
</CurrenciesController.CurrencyAll>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.