POST api/PCXMLExchange/AddPCXMLExchange

Request Information

URI Parameters

None.

Body Parameters

PCXMLExchange
NameDescriptionTypeAdditional information
CCCD

string

None.

ExchangeID

integer

None.

Code

string

None.

Name

string

None.

PictureFile

string

None.

CountryID

integer

None.

Label

string

None.

LastUpdateDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CCCD": "sample string 1",
  "ExchangeID": 2,
  "Code": "sample string 3",
  "Name": "sample string 4",
  "PictureFile": "sample string 5",
  "CountryID": 6,
  "Label": "sample string 7",
  "LastUpdateDate": "2025-08-02T19:58:57.1257458+05:30"
}

text/html

Sample:
{"CCCD":"sample string 1","ExchangeID":2,"Code":"sample string 3","Name":"sample string 4","PictureFile":"sample string 5","CountryID":6,"Label":"sample string 7","LastUpdateDate":"2025-08-02T19:58:57.1257458+05:30"}

application/xml, text/xml

Sample:
<PCXMLExchange xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PowerCashAPI.Models">
  <CCCD>sample string 1</CCCD>
  <Code>sample string 3</Code>
  <CountryID>6</CountryID>
  <ExchangeID>2</ExchangeID>
  <Label>sample string 7</Label>
  <LastUpdateDate>2025-08-02T19:58:57.1257458+05:30</LastUpdateDate>
  <Name>sample string 4</Name>
  <PictureFile>sample string 5</PictureFile>
</PCXMLExchange>

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 'PCXMLExchange'.

Response Information

Resource Description

StatusResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "ErrorMessage": "sample string 2"
}

text/html

Sample:
{"Status":true,"ErrorMessage":"sample string 2"}

application/xml, text/xml

Sample:
<StatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PowerCashAPI.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Status>true</Status>
</StatusResponse>