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-07-08T21:06:31.0910446+03:00", "credit": 5.0, "debt": 6.0, "currencyRate": 7.1, "isCurrencyReverse": true, "currencyAmount": 9.0, "kdvAmount": 10.0, "currencyID": "d932ab28-8c55-4969-ab0b-64984a216b1c", "fromAccountID": "dedc3552-e8fa-488d-8e4a-7e20133cfcd1", "toAccountID": "1bbc452e-2790-4ef7-bc07-90e94d618282", "invoiceID": "6d3db435-200b-446f-af09-f14396d51f62", "productStokActionID": "a05d017f-3ab7-49ff-84c6-b42c0e895e66", "checkAndBillID": "9a59aa3b-e39a-4332-beb5-3e192de00742", "creditActionID": "2d6c1f5a-1d10-49eb-be97-8cd1b4789429", "serviceReceiptID": "ee7eb713-bcd9-4734-97e1-49f29079da63", "isRepeat": true, "startDate": "2025-07-08T21:06:31.1066608+03:00", "endDate": "2025-07-08T21:06:31.1066608+03:00", "expenseRepeatType": 1, "expenseRepeatDays": "sample string 12", "companyID": "4cce4d0d-94ad-41e9-90ae-ba9b7fca0b2a", "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>9a59aa3b-e39a-4332-beb5-3e192de00742</CheckAndBillID> <Code>sample string 15</Code> <CompanyID>4cce4d0d-94ad-41e9-90ae-ba9b7fca0b2a</CompanyID> <Credit>5</Credit> <CreditActionID>2d6c1f5a-1d10-49eb-be97-8cd1b4789429</CreditActionID> <CurrencyAmount>9</CurrencyAmount> <CurrencyID>d932ab28-8c55-4969-ab0b-64984a216b1c</CurrencyID> <CurrencyRate>7.1</CurrencyRate> <Date>2025-07-08T21:06:31.0910446+03:00</Date> <Debt>6</Debt> <Description>sample string 2</Description> <DocumentNumber>sample string 3</DocumentNumber> <EndDate>2025-07-08T21:06:31.1066608+03:00</EndDate> <ExpenseRepeatDays>sample string 12</ExpenseRepeatDays> <ExpenseRepeatType>Monthly</ExpenseRepeatType> <FromAccountID>dedc3552-e8fa-488d-8e4a-7e20133cfcd1</FromAccountID> <FromServiceReceipt>true</FromServiceReceipt> <InvoiceID>6d3db435-200b-446f-af09-f14396d51f62</InvoiceID> <IsCurrencyReverse>true</IsCurrencyReverse> <IsGivenNewCheckAndBill>true</IsGivenNewCheckAndBill> <IsOpenAccount>true</IsOpenAccount> <IsRepeat>true</IsRepeat> <KDVAmount>10</KDVAmount> <ProductStokActionID>a05d017f-3ab7-49ff-84c6-b42c0e895e66</ProductStokActionID> <SafeActionDocumentNumber>sample string 16</SafeActionDocumentNumber> <SafeActionType>CariOdeme</SafeActionType> <ServiceReceiptID>ee7eb713-bcd9-4734-97e1-49f29079da63</ServiceReceiptID> <StartDate>2025-07-08T21:06:31.1066608+03:00</StartDate> <Title>sample string 1</Title> <ToAccountID>1bbc452e-2790-4ef7-bc07-90e94d618282</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-07-08T21:06:31.0910446+03:00","credit":5.0,"debt":6.0,"currencyRate":7.1,"isCurrencyReverse":true,"currencyAmount":9.0,"kdvAmount":10.0,"currencyID":"d932ab28-8c55-4969-ab0b-64984a216b1c","fromAccountID":"dedc3552-e8fa-488d-8e4a-7e20133cfcd1","toAccountID":"1bbc452e-2790-4ef7-bc07-90e94d618282","invoiceID":"6d3db435-200b-446f-af09-f14396d51f62","productStokActionID":"a05d017f-3ab7-49ff-84c6-b42c0e895e66","checkAndBillID":"9a59aa3b-e39a-4332-beb5-3e192de00742","creditActionID":"2d6c1f5a-1d10-49eb-be97-8cd1b4789429","serviceReceiptID":"ee7eb713-bcd9-4734-97e1-49f29079da63","isRepeat":true,"startDate":"2025-07-08T21:06:31.1066608+03:00","endDate":"2025-07-08T21:06:31.1066608+03:00","expenseRepeatType":1,"expenseRepeatDays":"sample string 12","companyID":"4cce4d0d-94ad-41e9-90ae-ba9b7fca0b2a","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.