POST api/Credit/Add
Request Information
URI Parameters
None.
Body Parameters
CreditAddDtoName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Amount | decimal number |
None. |
|
RemainingAmount | decimal number |
None. |
|
PaymentAmount | decimal number |
None. |
|
ExpenseAmount | decimal number |
None. |
|
RemainingInstallment | decimal number |
None. |
|
FirstInstallmentDate | date |
None. |
|
Period | CreditPeriods |
None. |
|
AccountID | globally unique identifier |
None. |
|
CurrencyID | globally unique identifier |
None. |
|
CompanyID | globally unique identifier |
None. |
|
InterestRate | decimal number |
None. |
|
TotalInterestAmount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "amount": 2.1, "remainingAmount": 3.1, "paymentAmount": 4.1, "expenseAmount": 5.1, "remainingInstallment": 6.1, "firstInstallmentDate": "2025-08-04T22:34:07.494559+03:00", "period": 1, "accountID": "9d972882-2cb6-4c4d-a717-88f4aaefa701", "currencyID": "e327fa1f-b539-4369-822b-7bb2ecd9988d", "companyID": "0f428bd7-ad7d-40e4-b1e7-04fc92e411d4", "interestRate": 9.1, "totalInterestAmount": 10.1 }
application/xml, text/xml
Sample:
<CreditAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <AccountID>9d972882-2cb6-4c4d-a717-88f4aaefa701</AccountID> <Amount>2.1</Amount> <CompanyID>0f428bd7-ad7d-40e4-b1e7-04fc92e411d4</CompanyID> <CurrencyID>e327fa1f-b539-4369-822b-7bb2ecd9988d</CurrencyID> <ExpenseAmount>5.1</ExpenseAmount> <FirstInstallmentDate>2025-08-04T22:34:07.494559+03:00</FirstInstallmentDate> <InterestRate>9.1</InterestRate> <Name>sample string 1</Name> <PaymentAmount>4.1</PaymentAmount> <Period>EveryMonth</Period> <RemainingAmount>3.1</RemainingAmount> <RemainingInstallment>6.1</RemainingInstallment> <TotalInterestAmount>10.1</TotalInterestAmount> </CreditAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"name":"sample string 1","amount":2.1,"remainingAmount":3.1,"paymentAmount":4.1,"expenseAmount":5.1,"remainingInstallment":6.1,"firstInstallmentDate":"2025-08-04T22:34:07.494559+03:00","period":1,"accountID":"9d972882-2cb6-4c4d-a717-88f4aaefa701","currencyID":"e327fa1f-b539-4369-822b-7bb2ecd9988d","companyID":"0f428bd7-ad7d-40e4-b1e7-04fc92e411d4","interestRate":9.1,"totalInterestAmount":10.1}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.