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-05T21:16:42.6973471+03:00", "period": 1, "accountID": "c2eed6ee-29b9-40a8-8a11-60cb6217f744", "currencyID": "124d040c-51aa-450e-acef-a29d7a6a44d1", "companyID": "efc068df-98c4-495a-abe0-dc98697da48b", "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>c2eed6ee-29b9-40a8-8a11-60cb6217f744</AccountID> <Amount>2.1</Amount> <CompanyID>efc068df-98c4-495a-abe0-dc98697da48b</CompanyID> <CurrencyID>124d040c-51aa-450e-acef-a29d7a6a44d1</CurrencyID> <ExpenseAmount>5.1</ExpenseAmount> <FirstInstallmentDate>2025-08-05T21:16:42.6973471+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-05T21:16:42.6973471+03:00","period":1,"accountID":"c2eed6ee-29b9-40a8-8a11-60cb6217f744","currencyID":"124d040c-51aa-450e-acef-a29d7a6a44d1","companyID":"efc068df-98c4-495a-abe0-dc98697da48b","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.