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-29T12:25:44.5418352+03:00", "amount": 3.1, "isPaid": true, "paymentDate": "2025-08-29T12:25:44.5418352+03:00", "creditID": "64692f20-dca4-48e1-870a-7764f5f27168", "accountID": "a3bc3c5b-5018-4ae1-99d7-51d53b1d9fc7", "companyID": "676a770a-cd76-468e-aaf2-176da17c116d" }
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>a3bc3c5b-5018-4ae1-99d7-51d53b1d9fc7</AccountID> <Amount>3.1</Amount> <CompanyID>676a770a-cd76-468e-aaf2-176da17c116d</CompanyID> <CreditID>64692f20-dca4-48e1-870a-7764f5f27168</CreditID> <Date>2025-08-29T12:25:44.5418352+03:00</Date> <ExpenseAmount>1.1</ExpenseAmount> <IsPaid>true</IsPaid> <PaymentDate>2025-08-29T12:25:44.5418352+03:00</PaymentDate> </CreditActionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"expenseAmount":1.1,"date":"2025-08-29T12:25:44.5418352+03:00","amount":3.1,"isPaid":true,"paymentDate":"2025-08-29T12:25:44.5418352+03:00","creditID":"64692f20-dca4-48e1-870a-7764f5f27168","accountID":"a3bc3c5b-5018-4ae1-99d7-51d53b1d9fc7","companyID":"676a770a-cd76-468e-aaf2-176da17c116d"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.