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-24T17:04:31.3487598+03:00", "amount": 3.1, "isPaid": true, "paymentDate": "2025-05-24T17:04:31.3487598+03:00", "creditID": "847f2ea4-7007-4f2e-90e4-629365c0da7d", "accountID": "62eef56a-68a4-4170-94ae-e6193b0c7ade", "companyID": "b6da6be7-ba49-4e99-a8aa-d676832918ce" }
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>62eef56a-68a4-4170-94ae-e6193b0c7ade</AccountID> <Amount>3.1</Amount> <CompanyID>b6da6be7-ba49-4e99-a8aa-d676832918ce</CompanyID> <CreditID>847f2ea4-7007-4f2e-90e4-629365c0da7d</CreditID> <Date>2025-05-24T17:04:31.3487598+03:00</Date> <ExpenseAmount>1.1</ExpenseAmount> <IsPaid>true</IsPaid> <PaymentDate>2025-05-24T17:04:31.3487598+03:00</PaymentDate> </CreditActionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"expenseAmount":1.1,"date":"2025-05-24T17:04:31.3487598+03:00","amount":3.1,"isPaid":true,"paymentDate":"2025-05-24T17:04:31.3487598+03:00","creditID":"847f2ea4-7007-4f2e-90e4-629365c0da7d","accountID":"62eef56a-68a4-4170-94ae-e6193b0c7ade","companyID":"b6da6be7-ba49-4e99-a8aa-d676832918ce"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.