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. |
|
RevertDebtCredit | 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-08-05T20:09:38.1761422+03:00", "credit": 5.0, "debt": 6.0, "currencyRate": 7.1, "isCurrencyReverse": true, "currencyAmount": 9.0, "kdvAmount": 10.0, "currencyID": "cd3bf94e-b27f-4b51-9a60-558ea6b06ea1", "fromAccountID": "12c06816-7831-4f3b-a498-7391e9f3baeb", "toAccountID": "8f0065d7-1e10-4a5c-b20d-25d4349c36c0", "invoiceID": "a7548424-eb71-4caf-a0e5-21ee6ec2dbfb", "productStokActionID": "0bb858b3-e2be-4ef8-be01-edb99e3b8bed", "checkAndBillID": "94658d49-e035-4ad8-ae38-d25a645013f6", "creditActionID": "1415cf36-979d-4310-a130-64c7f8b0f5f4", "serviceReceiptID": "b727d064-4e3a-4091-979b-09f469e9ed14", "isRepeat": true, "startDate": "2025-08-05T20:09:38.1761422+03:00", "endDate": "2025-08-05T20:09:38.1761422+03:00", "expenseRepeatType": 1, "expenseRepeatDays": "sample string 12", "companyID": "69349fd3-48c8-4af7-83f9-adc79df2161c", "isOpenAccount": true, "isGivenNewCheckAndBill": true, "code": "sample string 15", "safeActionType": 1, "safeActionDocumentNumber": "sample string 16", "fromServiceReceipt": true, "revertDebtCredit": 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>94658d49-e035-4ad8-ae38-d25a645013f6</CheckAndBillID> <Code>sample string 15</Code> <CompanyID>69349fd3-48c8-4af7-83f9-adc79df2161c</CompanyID> <Credit>5</Credit> <CreditActionID>1415cf36-979d-4310-a130-64c7f8b0f5f4</CreditActionID> <CurrencyAmount>9</CurrencyAmount> <CurrencyID>cd3bf94e-b27f-4b51-9a60-558ea6b06ea1</CurrencyID> <CurrencyRate>7.1</CurrencyRate> <Date>2025-08-05T20:09:38.1761422+03:00</Date> <Debt>6</Debt> <Description>sample string 2</Description> <DocumentNumber>sample string 3</DocumentNumber> <EndDate>2025-08-05T20:09:38.1761422+03:00</EndDate> <ExpenseRepeatDays>sample string 12</ExpenseRepeatDays> <ExpenseRepeatType>Monthly</ExpenseRepeatType> <FromAccountID>12c06816-7831-4f3b-a498-7391e9f3baeb</FromAccountID> <FromServiceReceipt>true</FromServiceReceipt> <InvoiceID>a7548424-eb71-4caf-a0e5-21ee6ec2dbfb</InvoiceID> <IsCurrencyReverse>true</IsCurrencyReverse> <IsGivenNewCheckAndBill>true</IsGivenNewCheckAndBill> <IsOpenAccount>true</IsOpenAccount> <IsRepeat>true</IsRepeat> <KDVAmount>10</KDVAmount> <ProductStokActionID>0bb858b3-e2be-4ef8-be01-edb99e3b8bed</ProductStokActionID> <RevertDebtCredit>true</RevertDebtCredit> <SafeActionDocumentNumber>sample string 16</SafeActionDocumentNumber> <SafeActionType>CariOdeme</SafeActionType> <ServiceReceiptID>b727d064-4e3a-4091-979b-09f469e9ed14</ServiceReceiptID> <StartDate>2025-08-05T20:09:38.1761422+03:00</StartDate> <Title>sample string 1</Title> <ToAccountID>8f0065d7-1e10-4a5c-b20d-25d4349c36c0</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-08-05T20:09:38.1761422+03:00","credit":5.0,"debt":6.0,"currencyRate":7.1,"isCurrencyReverse":true,"currencyAmount":9.0,"kdvAmount":10.0,"currencyID":"cd3bf94e-b27f-4b51-9a60-558ea6b06ea1","fromAccountID":"12c06816-7831-4f3b-a498-7391e9f3baeb","toAccountID":"8f0065d7-1e10-4a5c-b20d-25d4349c36c0","invoiceID":"a7548424-eb71-4caf-a0e5-21ee6ec2dbfb","productStokActionID":"0bb858b3-e2be-4ef8-be01-edb99e3b8bed","checkAndBillID":"94658d49-e035-4ad8-ae38-d25a645013f6","creditActionID":"1415cf36-979d-4310-a130-64c7f8b0f5f4","serviceReceiptID":"b727d064-4e3a-4091-979b-09f469e9ed14","isRepeat":true,"startDate":"2025-08-05T20:09:38.1761422+03:00","endDate":"2025-08-05T20:09:38.1761422+03:00","expenseRepeatType":1,"expenseRepeatDays":"sample string 12","companyID":"69349fd3-48c8-4af7-83f9-adc79df2161c","isOpenAccount":true,"isGivenNewCheckAndBill":true,"code":"sample string 15","safeActionType":1,"safeActionDocumentNumber":"sample string 16","fromServiceReceipt":true,"revertDebtCredit":true}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.