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-08-05T21:27:06.5338878+03:00", "amount": 3.1, "isPaid": true, "paymentDate": "2025-08-05T21:27:06.5338878+03:00", "creditID": "69ef956c-fd93-4ec7-9c12-5d344ed684a9", "accountID": "4b841144-d24e-47a9-a566-0f34ba2e3792", "companyID": "787b9084-4340-4ec7-a1c9-bb18068c2992" }
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>4b841144-d24e-47a9-a566-0f34ba2e3792</AccountID> <Amount>3.1</Amount> <CompanyID>787b9084-4340-4ec7-a1c9-bb18068c2992</CompanyID> <CreditID>69ef956c-fd93-4ec7-9c12-5d344ed684a9</CreditID> <Date>2025-08-05T21:27:06.5338878+03:00</Date> <ExpenseAmount>1.1</ExpenseAmount> <IsPaid>true</IsPaid> <PaymentDate>2025-08-05T21:27:06.5338878+03:00</PaymentDate> </CreditActionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"expenseAmount":1.1,"date":"2025-08-05T21:27:06.5338878+03:00","amount":3.1,"isPaid":true,"paymentDate":"2025-08-05T21:27:06.5338878+03:00","creditID":"69ef956c-fd93-4ec7-9c12-5d344ed684a9","accountID":"4b841144-d24e-47a9-a566-0f34ba2e3792","companyID":"787b9084-4340-4ec7-a1c9-bb18068c2992"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.