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-05-24T15:03:23.1373315+03:00", "period": 1, "accountID": "05ed3c60-7e41-4897-b529-753485c84441", "currencyID": "285e38b6-6f47-46d7-ade3-fa69902fe35a", "companyID": "a275a827-2b72-4229-86b5-2aca6d6bda4e", "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>05ed3c60-7e41-4897-b529-753485c84441</AccountID> <Amount>2.1</Amount> <CompanyID>a275a827-2b72-4229-86b5-2aca6d6bda4e</CompanyID> <CurrencyID>285e38b6-6f47-46d7-ade3-fa69902fe35a</CurrencyID> <ExpenseAmount>5.1</ExpenseAmount> <FirstInstallmentDate>2025-05-24T15:03:23.1373315+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-05-24T15:03:23.1373315+03:00","period":1,"accountID":"05ed3c60-7e41-4897-b529-753485c84441","currencyID":"285e38b6-6f47-46d7-ade3-fa69902fe35a","companyID":"a275a827-2b72-4229-86b5-2aca6d6bda4e","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.