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-07-08T21:44:39.1676843+03:00", "period": 1, "accountID": "93525b59-21f9-4b22-95f4-53c004baa63b", "currencyID": "e87af45c-82b6-475f-b9ba-fca27f32abd8", "companyID": "7d22c69c-d33b-4a8d-befb-d7ea735a234d", "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>93525b59-21f9-4b22-95f4-53c004baa63b</AccountID> <Amount>2.1</Amount> <CompanyID>7d22c69c-d33b-4a8d-befb-d7ea735a234d</CompanyID> <CurrencyID>e87af45c-82b6-475f-b9ba-fca27f32abd8</CurrencyID> <ExpenseAmount>5.1</ExpenseAmount> <FirstInstallmentDate>2025-07-08T21:44:39.1676843+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-07-08T21:44:39.1676843+03:00","period":1,"accountID":"93525b59-21f9-4b22-95f4-53c004baa63b","currencyID":"e87af45c-82b6-475f-b9ba-fca27f32abd8","companyID":"7d22c69c-d33b-4a8d-befb-d7ea735a234d","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.