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-04T22:51:43.7583712+03:00", "amount": 3.1, "isPaid": true, "paymentDate": "2025-08-04T22:51:43.7593676+03:00", "creditID": "d7c6a7ac-244c-4eb7-9c0f-82affa6c8e30", "accountID": "eaf04721-40b4-4bbf-8cfb-2819280ca1e7", "companyID": "f0b6a5ec-b4e9-4f1f-8737-8aefb4a9b38d" }
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>eaf04721-40b4-4bbf-8cfb-2819280ca1e7</AccountID> <Amount>3.1</Amount> <CompanyID>f0b6a5ec-b4e9-4f1f-8737-8aefb4a9b38d</CompanyID> <CreditID>d7c6a7ac-244c-4eb7-9c0f-82affa6c8e30</CreditID> <Date>2025-08-04T22:51:43.7583712+03:00</Date> <ExpenseAmount>1.1</ExpenseAmount> <IsPaid>true</IsPaid> <PaymentDate>2025-08-04T22:51:43.7593676+03:00</PaymentDate> </CreditActionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"expenseAmount":1.1,"date":"2025-08-04T22:51:43.7583712+03:00","amount":3.1,"isPaid":true,"paymentDate":"2025-08-04T22:51:43.7593676+03:00","creditID":"d7c6a7ac-244c-4eb7-9c0f-82affa6c8e30","accountID":"eaf04721-40b4-4bbf-8cfb-2819280ca1e7","companyID":"f0b6a5ec-b4e9-4f1f-8737-8aefb4a9b38d"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.