POST api/PO/ExchangeRate

Request Information

URI Parameters

None.

Body Parameters

ExchangeRate
NameDescriptionTypeAdditional information
CurrencyName

string

None.

CurrencyCode

string

None.

BuyValue

decimal number

None.

SellValue

decimal number

None.

TransferValue

decimal number

None.

Source

string

None.

DateCreated

date

None.

Modiefied

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CurrencyName": "sample string 1",
  "CurrencyCode": "sample string 2",
  "BuyValue": 3.1,
  "SellValue": 4.1,
  "TransferValue": 5.1,
  "Source": "sample string 6",
  "DateCreated": "2026-06-11T13:59:22.1559793+07:00",
  "Modiefied": "2026-06-11T13:59:22.1559793+07:00"
}

application/xml, text/xml

Sample:
<ExchangeRate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CreateAPISupplier.Models">
  <BuyValue>3.1</BuyValue>
  <CurrencyCode>sample string 2</CurrencyCode>
  <CurrencyName>sample string 1</CurrencyName>
  <DateCreated>2026-06-11T13:59:22.1559793+07:00</DateCreated>
  <Modiefied>2026-06-11T13:59:22.1559793+07:00</Modiefied>
  <SellValue>4.1</SellValue>
  <Source>sample string 6</Source>
  <TransferValue>5.1</TransferValue>
</ExchangeRate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ExchangeRate'.

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.