POST api/PCXMLNegotiateOffers/AddPCXMLNegotiateOffers

Request Information

URI Parameters

None.

Body Parameters

PCXMLNegotiateOffers
NameDescriptionTypeAdditional information
CCCD

string

None.

NegotiateID

integer

None.

OfferID

integer

None.

ExchangeID

integer

None.

AccountID

integer

None.

OCashTypeID

integer

None.

SubIndustryID

integer

None.

ProductID

integer

None.

SubProductID

integer

None.

NegoAccountID

integer

None.

NegotiateSubject

string

None.

NegotiateDate

date

None.

NegotiateQty

decimal number

None.

NegotiateRate

decimal number

None.

NegotiatePeriod

decimal number

None.

NegotiatePeriodUOM

integer

None.

NegotiateSecValue

decimal number

None.

NegotiateAmount

decimal number

None.

NegotiateText

string

None.

NegotiateReplyDate

date

None.

NegotiateReplyQty

decimal number

None.

NegotiateReplyRate

decimal number

None.

NegotiateReplyPeriod

decimal number

None.

NegotiateReplyPeriodUOM

decimal number

None.

NegotiateReplySecValue

decimal number

None.

NegotiateReplyAmount

decimal number

None.

NegotiateReply

integer

None.

LastUpdateDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CCCD": "sample string 1",
  "NegotiateID": 2,
  "OfferID": 3,
  "ExchangeID": 4,
  "AccountID": 5,
  "OCashTypeID": 6,
  "SubIndustryID": 7,
  "ProductID": 8,
  "SubProductID": 9,
  "NegoAccountID": 10,
  "NegotiateSubject": "sample string 11",
  "NegotiateDate": "2025-08-02T20:09:48.7985048+05:30",
  "NegotiateQty": 13.0,
  "NegotiateRate": 14.0,
  "NegotiatePeriod": 15.0,
  "NegotiatePeriodUOM": 16,
  "NegotiateSecValue": 17.0,
  "NegotiateAmount": 18.0,
  "NegotiateText": "sample string 19",
  "NegotiateReplyDate": "2025-08-02T20:09:48.7985048+05:30",
  "NegotiateReplyQty": 21.0,
  "NegotiateReplyRate": 22.0,
  "NegotiateReplyPeriod": 23.0,
  "NegotiateReplyPeriodUOM": 24.0,
  "NegotiateReplySecValue": 25.0,
  "NegotiateReplyAmount": 26.0,
  "NegotiateReply": 27,
  "LastUpdateDate": "2025-08-02T20:09:48.7985048+05:30"
}

text/html

Sample:
{"CCCD":"sample string 1","NegotiateID":2,"OfferID":3,"ExchangeID":4,"AccountID":5,"OCashTypeID":6,"SubIndustryID":7,"ProductID":8,"SubProductID":9,"NegoAccountID":10,"NegotiateSubject":"sample string 11","NegotiateDate":"2025-08-02T20:09:48.7985048+05:30","NegotiateQty":13.0,"NegotiateRate":14.0,"NegotiatePeriod":15.0,"NegotiatePeriodUOM":16,"NegotiateSecValue":17.0,"NegotiateAmount":18.0,"NegotiateText":"sample string 19","NegotiateReplyDate":"2025-08-02T20:09:48.7985048+05:30","NegotiateReplyQty":21.0,"NegotiateReplyRate":22.0,"NegotiateReplyPeriod":23.0,"NegotiateReplyPeriodUOM":24.0,"NegotiateReplySecValue":25.0,"NegotiateReplyAmount":26.0,"NegotiateReply":27,"LastUpdateDate":"2025-08-02T20:09:48.7985048+05:30"}

application/xml, text/xml

Sample:
<PCXMLNegotiateOffers xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PowerCashAPI.Models">
  <AccountID>5</AccountID>
  <CCCD>sample string 1</CCCD>
  <ExchangeID>4</ExchangeID>
  <LastUpdateDate>2025-08-02T20:09:48.7985048+05:30</LastUpdateDate>
  <NegoAccountID>10</NegoAccountID>
  <NegotiateAmount>18</NegotiateAmount>
  <NegotiateDate>2025-08-02T20:09:48.7985048+05:30</NegotiateDate>
  <NegotiateID>2</NegotiateID>
  <NegotiatePeriod>15</NegotiatePeriod>
  <NegotiatePeriodUOM>16</NegotiatePeriodUOM>
  <NegotiateQty>13</NegotiateQty>
  <NegotiateRate>14</NegotiateRate>
  <NegotiateReply>27</NegotiateReply>
  <NegotiateReplyAmount>26</NegotiateReplyAmount>
  <NegotiateReplyDate>2025-08-02T20:09:48.7985048+05:30</NegotiateReplyDate>
  <NegotiateReplyPeriod>23</NegotiateReplyPeriod>
  <NegotiateReplyPeriodUOM>24</NegotiateReplyPeriodUOM>
  <NegotiateReplyQty>21</NegotiateReplyQty>
  <NegotiateReplyRate>22</NegotiateReplyRate>
  <NegotiateReplySecValue>25</NegotiateReplySecValue>
  <NegotiateSecValue>17</NegotiateSecValue>
  <NegotiateSubject>sample string 11</NegotiateSubject>
  <NegotiateText>sample string 19</NegotiateText>
  <OCashTypeID>6</OCashTypeID>
  <OfferID>3</OfferID>
  <ProductID>8</ProductID>
  <SubIndustryID>7</SubIndustryID>
  <SubProductID>9</SubProductID>
</PCXMLNegotiateOffers>

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

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>