POST api/CreditAction/Add
Request Information
URI Parameters
None.
Body Parameters
CreditActionAddDtoName | Description | Type | Additional information |
---|---|---|---|
ExpenseAmount | decimal number |
None. |
|
Date | date |
None. |
|
Amount | decimal number |
None. |
|
IsPaid | boolean |
None. |
|
PaymentDate | date |
None. |
|
CreditID | globally unique identifier |
None. |
|
AccountID | globally unique identifier |
None. |
|
CompanyID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "expenseAmount": 1.1, "date": "2025-05-24T14:50:04.84838+03:00", "amount": 3.1, "isPaid": true, "paymentDate": "2025-05-24T14:50:04.84838+03:00", "creditID": "cf0679f4-ea33-441b-b17c-53ba2fef462a", "accountID": "029b1a6a-efb1-44c3-8502-1c89c23c2199", "companyID": "fa907a80-fb8b-4a89-8582-a5e5be2308d6" }
application/xml, text/xml
Sample:
<CreditActionAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <AccountID>029b1a6a-efb1-44c3-8502-1c89c23c2199</AccountID> <Amount>3.1</Amount> <CompanyID>fa907a80-fb8b-4a89-8582-a5e5be2308d6</CompanyID> <CreditID>cf0679f4-ea33-441b-b17c-53ba2fef462a</CreditID> <Date>2025-05-24T14:50:04.84838+03:00</Date> <ExpenseAmount>1.1</ExpenseAmount> <IsPaid>true</IsPaid> <PaymentDate>2025-05-24T14:50:04.84838+03:00</PaymentDate> </CreditActionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"expenseAmount":1.1,"date":"2025-05-24T14:50:04.84838+03:00","amount":3.1,"isPaid":true,"paymentDate":"2025-05-24T14:50:04.84838+03:00","creditID":"cf0679f4-ea33-441b-b17c-53ba2fef462a","accountID":"029b1a6a-efb1-44c3-8502-1c89c23c2199","companyID":"fa907a80-fb8b-4a89-8582-a5e5be2308d6"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.