POST api/Action/Add
Request Information
URI Parameters
None.
Body Parameters
ActionAddDtoName | Description | Type | Additional information |
---|---|---|---|
ActionType | ActionType |
None. |
|
Title | string |
None. |
|
Description | string |
None. |
|
DocumentNumber | string |
None. |
|
Date | date |
None. |
|
Credit | decimal number |
None. |
|
Debt | decimal number |
None. |
|
CurrencyRate | decimal number |
None. |
|
IsCurrencyReverse | boolean |
None. |
|
CurrencyAmount | decimal number |
None. |
|
KDVAmount | decimal number |
None. |
|
CurrencyID | globally unique identifier |
None. |
|
FromAccountID | globally unique identifier |
None. |
|
ToAccountID | globally unique identifier |
None. |
|
InvoiceID | globally unique identifier |
None. |
|
ProductStokActionID | globally unique identifier |
None. |
|
CheckAndBillID | globally unique identifier |
None. |
|
CreditActionID | globally unique identifier |
None. |
|
ServiceReceiptID | globally unique identifier |
None. |
|
IsRepeat | boolean |
None. |
|
StartDate | date |
None. |
|
EndDate | date |
None. |
|
ExpenseRepeatType | ExpenseRepeatType |
None. |
|
ExpenseRepeatDays | string |
None. |
|
CompanyID | globally unique identifier |
None. |
|
IsOpenAccount | boolean |
None. |
|
IsGivenNewCheckAndBill | boolean |
None. |
|
Code | string |
None. |
|
SafeActionType | AccountSafeActionType |
None. |
|
SafeActionDocumentNumber | string |
None. |
|
FromServiceReceipt | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "actionType": 1, "title": "sample string 1", "description": "sample string 2", "documentNumber": "sample string 3", "date": "2025-05-24T14:32:23.3879898+03:00", "credit": 5.0, "debt": 6.0, "currencyRate": 7.1, "isCurrencyReverse": true, "currencyAmount": 9.0, "kdvAmount": 10.0, "currencyID": "2220b008-76b0-4291-8a0d-cb85945f2afe", "fromAccountID": "3b46d4f5-efa7-460e-ae2b-8abb4551566d", "toAccountID": "28012193-0504-4864-b1bd-9a01714b94f4", "invoiceID": "06da13ad-9400-4479-bc11-2ef7ed32e742", "productStokActionID": "0a8dfbaf-6c42-4046-9d41-26cc40cff88b", "checkAndBillID": "dddb00be-c43a-4279-ba76-72dff947850e", "creditActionID": "24cafbb0-e5fb-4654-9de2-113337945c4e", "serviceReceiptID": "2cd0f266-8037-449d-82ae-cb12af615df2", "isRepeat": true, "startDate": "2025-05-24T14:32:23.3879898+03:00", "endDate": "2025-05-24T14:32:23.3879898+03:00", "expenseRepeatType": 1, "expenseRepeatDays": "sample string 12", "companyID": "1a7cbe94-1515-4d9f-bc2d-23af1e68c658", "isOpenAccount": true, "isGivenNewCheckAndBill": true, "code": "sample string 15", "safeActionType": 1, "safeActionDocumentNumber": "sample string 16", "fromServiceReceipt": true }
application/xml, text/xml
Sample:
<ActionAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <ActionType>CashCollection</ActionType> <CheckAndBillID>dddb00be-c43a-4279-ba76-72dff947850e</CheckAndBillID> <Code>sample string 15</Code> <CompanyID>1a7cbe94-1515-4d9f-bc2d-23af1e68c658</CompanyID> <Credit>5</Credit> <CreditActionID>24cafbb0-e5fb-4654-9de2-113337945c4e</CreditActionID> <CurrencyAmount>9</CurrencyAmount> <CurrencyID>2220b008-76b0-4291-8a0d-cb85945f2afe</CurrencyID> <CurrencyRate>7.1</CurrencyRate> <Date>2025-05-24T14:32:23.3879898+03:00</Date> <Debt>6</Debt> <Description>sample string 2</Description> <DocumentNumber>sample string 3</DocumentNumber> <EndDate>2025-05-24T14:32:23.3879898+03:00</EndDate> <ExpenseRepeatDays>sample string 12</ExpenseRepeatDays> <ExpenseRepeatType>Monthly</ExpenseRepeatType> <FromAccountID>3b46d4f5-efa7-460e-ae2b-8abb4551566d</FromAccountID> <FromServiceReceipt>true</FromServiceReceipt> <InvoiceID>06da13ad-9400-4479-bc11-2ef7ed32e742</InvoiceID> <IsCurrencyReverse>true</IsCurrencyReverse> <IsGivenNewCheckAndBill>true</IsGivenNewCheckAndBill> <IsOpenAccount>true</IsOpenAccount> <IsRepeat>true</IsRepeat> <KDVAmount>10</KDVAmount> <ProductStokActionID>0a8dfbaf-6c42-4046-9d41-26cc40cff88b</ProductStokActionID> <SafeActionDocumentNumber>sample string 16</SafeActionDocumentNumber> <SafeActionType>CariOdeme</SafeActionType> <ServiceReceiptID>2cd0f266-8037-449d-82ae-cb12af615df2</ServiceReceiptID> <StartDate>2025-05-24T14:32:23.3879898+03:00</StartDate> <Title>sample string 1</Title> <ToAccountID>28012193-0504-4864-b1bd-9a01714b94f4</ToAccountID> </ActionAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"actionType":1,"title":"sample string 1","description":"sample string 2","documentNumber":"sample string 3","date":"2025-05-24T14:32:23.3879898+03:00","credit":5.0,"debt":6.0,"currencyRate":7.1,"isCurrencyReverse":true,"currencyAmount":9.0,"kdvAmount":10.0,"currencyID":"2220b008-76b0-4291-8a0d-cb85945f2afe","fromAccountID":"3b46d4f5-efa7-460e-ae2b-8abb4551566d","toAccountID":"28012193-0504-4864-b1bd-9a01714b94f4","invoiceID":"06da13ad-9400-4479-bc11-2ef7ed32e742","productStokActionID":"0a8dfbaf-6c42-4046-9d41-26cc40cff88b","checkAndBillID":"dddb00be-c43a-4279-ba76-72dff947850e","creditActionID":"24cafbb0-e5fb-4654-9de2-113337945c4e","serviceReceiptID":"2cd0f266-8037-449d-82ae-cb12af615df2","isRepeat":true,"startDate":"2025-05-24T14:32:23.3879898+03:00","endDate":"2025-05-24T14:32:23.3879898+03:00","expenseRepeatType":1,"expenseRepeatDays":"sample string 12","companyID":"1a7cbe94-1515-4d9f-bc2d-23af1e68c658","isOpenAccount":true,"isGivenNewCheckAndBill":true,"code":"sample string 15","safeActionType":1,"safeActionDocumentNumber":"sample string 16","fromServiceReceipt":true}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.