CompanyAddress

Company category

APIDescription
GET api/CompanyAddress/Count?id_id={id_id}&id_company={id_company}&sort={sort}&search={search}&skip={skip}&take={take}

Returns count of address's

GET api/CompanyAddress?id_id={id_id}&id_company={id_company}&sort={sort}&search={search}&skip={skip}&take={take}

Returns the list of Company category with filter applied.

GET api/CompanyAddress/{id}

Fast method to get address by id.

POST api/CompanyAddress

Post list of Company category.

Msg

Message's

APIDescription
GET api/Msg/Count?basket_type={basket_type}&letter_type={letter_type}&skip={skip}&take={take}

Returns count of Messages's

GET api/Msg?basket_type={basket_type}&letter_type={letter_type}&skip={skip}&take={take}

Returns the list of msg_positionn with filter applied.

WorkflowStep

Workflow card

APIDescription
GET api/WorkflowStep/Count?outer_id={outer_id}&id_workflow_list={id_workflow_list}&id_workflow_board={id_workflow_board}&id_workflow_card={id_workflow_card}&id_id={id_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&SearchSourceId={SearchSourceId}&due_date_from={due_date_from}&due_date_to={due_date_to}&in_arhive={in_arhive}

Returns count of Workflow card's

GET api/WorkflowStep?outer_id={outer_id}&id_workflow_list={id_workflow_list}&id_workflow_board={id_workflow_board}&id_workflow_card={id_workflow_card}&id_id={id_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&SearchSourceId={SearchSourceId}&due_date_from={due_date_from}&due_date_to={due_date_to}&in_arhive={in_arhive}

Returns the list of Workflow cards with filter applied.

GET api/WorkflowStep/{id}

Fast method to get Workflow card by id.

POST api/WorkflowStep

Post list of Workflow cards.

FpPlan

FP Plan

APIDescription
GET api/FpPlan/Count?id_id={id_id}&skip={skip}&take={take}

Returns count of FpPlan's

GET api/FpPlan?id_id={id_id}&skip={skip}&take={take}

Returns the list of fp periods with filter applied.

GET api/FpPlan/{id}

Fast method to get FP plan by id.

POST api/FpPlan

Creates FP Period. autocreate - create next week FP Period automatically.

History

Historys

APIDescription
GET api/History/Count?id_company={id_company}&id_history_event_type={id_history_event_type}&id_id={id_id}&sort={sort}&search={search}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&id_current_user={id_current_user}

Returns count of History's

GET api/History?id_company={id_company}&id_history_event_type={id_history_event_type}&id_id={id_id}&sort={sort}&search={search}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&id_current_user={id_current_user}

Returns the list of Historys with filter applied.

GET api/History/{id}

Fast method to get History by id.

POST api/History

Post list of Historys.

StockCard

FP Invoices

APIDescription
GET api/StockCard/Count?in_arhive={in_arhive}&id_id={id_id}&outer_id={outer_id}&stockCardFolderId={stockCardFolderId}&stockCardFoldersIdStr={stockCardFoldersIdStr}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}

Returns count of Stock Card's

GET api/StockCard?in_arhive={in_arhive}&id_id={id_id}&outer_id={outer_id}&stockCardFolderId={stockCardFolderId}&stockCardFoldersIdStr={stockCardFoldersIdStr}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}

Returns the list of Stock Card's with filter applied.

GET api/StockCard/{id}

Fast method to get Stock Card by id.

POST api/StockCard

Post list of Stock Card's.

CompanyCategory

Company category

APIDescription
GET api/CompanyCategory/Count?id_id={id_id}&id_company={id_company}&in_arhive={in_arhive}&sort={sort}&search={search}&skip={skip}&take={take}

Returns count of category's

POST api/CompanyCategory/Assign

Post list of Company category.

GET api/CompanyCategory?id_id={id_id}&id_company={id_company}&in_arhive={in_arhive}&sort={sort}&search={search}&skip={skip}&take={take}

Returns the list of Company category with filter applied.

GET api/CompanyCategory/{id}

Fast method to get category by id.

POST api/CompanyCategory

Post list of Company category.

PurchaseOrder

FP Purchase Order's

APIDescription
GET api/PurchaseOrder/Count?id_id={id_id}&outer_id={outer_id}&id_fp_plan={id_fp_plan}&id_position={id_position}&sort={sort}&skip={skip}&take={take}&approvedOnly={approvedOnly}&id_fp_plan_payment={id_fp_plan_payment}&status={status}

Returns count of Purchase Order's

GET api/PurchaseOrder?id_id={id_id}&outer_id={outer_id}&id_fp_plan={id_fp_plan}&id_position={id_position}&sort={sort}&skip={skip}&take={take}&approvedOnly={approvedOnly}&id_fp_plan_payment={id_fp_plan_payment}&status={status}

Returns the list of Purchase Order's with filter applied.

GET api/PurchaseOrder/{id}

Fast method to get Purchase Order by id.

POST api/PurchaseOrder

Post list of Purchase Order's.

MsgEmailAccount

Email account's

APIDescription
GET api/MsgEmailAccount/Count?skip={skip}&take={take}

Returns count of Email account's

Company

CRM Company's

APIDescription
GET api/Company/Count

Returns count of Companie's

GET api/Company

Returns the list of Companie's with filter applied.

GET api/Company/{id}

Fast method to get company or private person by id.

POST api/Company

Updates or creates company or provate person.
If you will send request without ID parameter or OUTER ID parameter, service will create and return new company.

If you will send request without ID and with OUTER ID, it will try to search company with defined outer_id. Create and return new if there is not such company.

If you did successful update service will return updated record.

NOTICE! Better send company via urlencoded form to avoid data loss.
api/company HTTP/1.1
Host: api.asminsolution.org
Authorization: company:key
Content-Type: application/x-www-form-urlencoded

id=81890&name=sample name&desc=Description

Person

Person's

APIDescription
GET api/Person/Count

Returns count of Person's

GET api/Person

Returns the list of person's with filter applied.
Returns including orgboard divisions.

GET api/Person/{id}

Fast method to get person by id.

POST api/Person

Post list of people. Passwords WON'T change!

OrgBoardPosition

FP Bills

APIDescription
GET api/OrgBoardPosition/Count?id_person={id_person}&id_id={id_id}&outer_id={outer_id}&sort={sort}&search={search}&skip={skip}&is_main={is_main}&is_holder={is_holder}&is_executive={is_executive}&take={take}&in_arhive={in_arhive}

Returns count of position's

GET api/OrgBoardPosition?id_person={id_person}&id_id={id_id}&outer_id={outer_id}&sort={sort}&search={search}&skip={skip}&is_main={is_main}&is_holder={is_holder}&is_executive={is_executive}&take={take}&in_arhive={in_arhive}

Returns the list of orgboard position with filter applied.

GET api/OrgBoardPosition/{id}

Fast method to get position by id.

WorkflowCard

Workflow card

APIDescription
GET api/WorkflowCard/Count?outer_id={outer_id}&id_workflow_list={id_workflow_list}&id_workflow_board={id_workflow_board}&id_id={id_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&SearchSourceId={SearchSourceId}&due_date_from={due_date_from}&due_date_to={due_date_to}&in_arhive={in_arhive}

Returns count of Workflow card's

GET api/WorkflowCard?outer_id={outer_id}&id_workflow_list={id_workflow_list}&id_workflow_board={id_workflow_board}&id_id={id_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&SearchSourceId={SearchSourceId}&due_date_from={due_date_from}&due_date_to={due_date_to}&in_arhive={in_arhive}

Returns the list of Workflow cards with filter applied.

GET api/WorkflowCard/{id}

Fast method to get Workflow card by id.

POST api/WorkflowCard

Post list of Workflow cards.

SheetOfAccounts

FP Bills

APIDescription
GET api/SheetOfAccount/GetById?id={id}

Fast method to get bill by id.

GET api/SheetOfAccounts?id_id={id_id}&period_begin={period_begin}&period_end={period_end}&sort={sort}&search={search}&skip={skip}&take={take}&in_arhive={in_arhive}

Returns the list of bills with filter applied.

HistoryEvent

Historys

APIDescription
GET api/HistoryEvent/Count?id_id={id_id}&sort={sort}&search={search}&skip={skip}&take={take}

Returns count of History's

GET api/HistoryEvent?id_id={id_id}&sort={sort}&search={search}&skip={skip}&take={take}

Returns the list of Historys with filter applied.

GET api/HistoryEvent/{id}

Fast method to get History by id.

Stat

Stat's

APIDescription
GET api/Stat/Count?id_id={id_id}&name={name}&stat_type={stat_type}&period={period}&orgboard_position={orgboard_position}&in_arhive={in_arhive}&sort={sort}&skip={skip}&take={take}

Returns count of Person's

GET api/Stat?id_id={id_id}&name={name}&stat_type={stat_type}&period={period}&orgboard_position={orgboard_position}&in_arhive={in_arhive}&sort={sort}&skip={skip}&take={take}

Returns the list of stat with filter applied.

GET api/Stat/{id}

Fast method to get Stat by id.

POST api/Stat

We search stat values to update by period_begin and period begin. ID is NOT key to find actual value.

StatValue

Stat Value's

APIDescription
GET api/StatValue/Count?stat_id={stat_id}&begin={begin}&end={end}&is_quota={is_quota}&search={search}&sort={sort}&skip={skip}&take={take}

Returns count of StatValue

GET api/StatValue?stat_id={stat_id}&begin={begin}&end={end}&is_quota={is_quota}&search={search}&sort={sort}&skip={skip}&take={take}

Returns the list of statValues with filter applied. You must define id_stat
Default sorting is "period_end_desc".

POST api/StatValue

We search stat values to update by period_begin and period begin. ID is NOT key to find actual value.

Task

Tasks

APIDescription
GET api/Task/Count?id_id={id_id}&id_orgboard_position={id_orgboard_position}&id_person={id_person}&id_person_creator={id_person_creator}&id_company={id_company}&id_company_contact={id_company_contact}&status_prepared={status_prepared}&status_not_notified={status_not_notified}&status_executes={status_executes}&status_completed={status_completed}&status_impracticable={status_impracticable}&status_approved={status_approved}&search={search}&is_disabled={is_disabled}&sort={sort}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}

Returns count of Email account's

GET api/Task?id_id={id_id}&id_orgboard_position={id_orgboard_position}&id_person={id_person}&id_person_creator={id_person_creator}&id_company={id_company}&id_company_contact={id_company_contact}&status_prepared={status_prepared}&status_not_notified={status_not_notified}&status_executes={status_executes}&status_completed={status_completed}&status_impracticable={status_impracticable}&status_approved={status_approved}&search={search}&is_disabled={is_disabled}&sort={sort}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}

Returns the list of Task's with filter applied.

GET api/Task/{id}

Fast method to get Task by id.

POST api/Task

[
{
"id": null,
"name": "Tests",
"id_orgboard_position": 123,
"date_from": "2019-01-20T09:00:00",
"date_to": "2019-02-20T17:00:00",
"is_with_no_date": false
}
]

Bill

FP Bills

APIDescription
GET api/Bill/Count?outer_id={outer_id}&id_company={id_company}&id_person={id_person}&id_id={id_id}&id_fp_plan_payment={id_fp_plan_payment}&id_fp_plan_approved={id_fp_plan_approved}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&search_date_type={search_date_type}&SearchSourceId={SearchSourceId}&in_arhive={in_arhive}

Returns count of Bill's

GET api/Bill?outer_id={outer_id}&id_company={id_company}&id_person={id_person}&id_id={id_id}&id_fp_plan_payment={id_fp_plan_payment}&id_fp_plan_approved={id_fp_plan_approved}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&search_date_type={search_date_type}&SearchSourceId={SearchSourceId}&in_arhive={in_arhive}

Returns the list of bills with filter applied.

GET api/Bill/{id}

Fast method to get bill by id.

POST api/Bill

Post list of bills.

DELETE api/Bill/{id}

delete

Invoice

FP Invoices

APIDescription
GET api/Invoice/Count?in_arhive={in_arhive}&id_id={id_id}&outer_id={outer_id}&id_company={id_company}&id_person={id_person}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&search_date_type={search_date_type}

Returns count of Bill's

GET api/Invoice?in_arhive={in_arhive}&id_id={id_id}&outer_id={outer_id}&id_company={id_company}&id_person={id_person}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&search_date_type={search_date_type}

Returns the list of invoice with filter applied.

GET api/Invoice/{id}

Fast method to get invoice by id.

POST api/Invoice

Post list of bills.

DELETE api/Invoice/{id}

delete

RoutingForm

Routing Forms's

APIDescription
GET api/RoutingForm/Count?id_id={id_id}&in_arhive={in_arhive}&basketType={basketType}&sort={sort}&skip={skip}&take={take}&id_routing_form_template={id_routing_form_template}

Returns count of Companie's

GET api/RoutingForm/CustomFieldsForSequence?id_routing_form_step_sequence={id_routing_form_step_sequence}&id_routing_form_template_step_sequence={id_routing_form_template_step_sequence}

Returns List of Custom fields for RF sequence

POST api/RoutingForm

Create/Update RF step by posting model found using GET => "RoutingFormTemplate"

GET api/RoutingForm?id_id={id_id}&in_arhive={in_arhive}&basketType={basketType}&sort={sort}&skip={skip}&take={take}&id_routing_form_template={id_routing_form_template}

Returns the list of routing frorm with filter applied.

Register

FP Register

APIDescription
GET api/Register/Count?id_id={id_id}&outer_id={outer_id}&sort={sort}&search={search}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&operation_type={operation_type}&id_company={id_company}&id_stock_document={id_stock_document}&id_fp_purchase_order={id_fp_purchase_order}&id_fp_payment_type={id_fp_payment_type}

Returns count of Register's

GET api/Register?id_id={id_id}&outer_id={outer_id}&sort={sort}&search={search}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}&operation_type={operation_type}&id_company={id_company}&id_stock_document={id_stock_document}&id_fp_purchase_order={id_fp_purchase_order}&id_fp_payment_type={id_fp_payment_type}

Returns the list of Register with filter applied.

GET api/Register/{id}

Fast method to get bill by id.

CompanyContact

CompanyContact

APIDescription
GET api/CompanyContact/Count?in_arhive={in_arhive}&id_id={id_id}&outer_id={outer_id}&id_company={id_company}&gender={gender}&sort={sort}&search={search}&email={email}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}

Returns count of CompanyContact's

GET api/CompanyContact?in_arhive={in_arhive}&id_id={id_id}&outer_id={outer_id}&id_company={id_company}&gender={gender}&sort={sort}&search={search}&email={email}&skip={skip}&take={take}&period_begin={period_begin}&period_end={period_end}

Returns the list of CompanyContact with filter applied.

GET api/CompanyContact/{id}

Fast method to get CompanyContact by id.

POST api/CompanyContact

Post list of CompanyContact.

Login

Checks Login

APIDescription
GET api/Login?login={login}&password={password}

Cheks if credentials true, returns person_id > 0, if credentials false 0

BillPayment

FP Bill Payment

APIDescription
POST api/BillPayment

No documentation available.

DELETE api/BillPayment/{id}

delete

RoutingFormTemplate

APIDescription
GET api/RoutingFormTemplate?idRoutingFormTemplate={idRoutingFormTemplate}&idPresonStartFrom={idPresonStartFrom}

Returns RF template

CompanyList

APIDescription
POST api/CompanyList

Here you can post list of comapnies. IF XML VERY IMPORTANT to keep order if attributes.

FpIncome

FP Income

APIDescription
GET api/FpIncome?date_from={date_from}&date_to={date_to}&id_income={id_income}&id_company={id_company}&sort={sort}&skip={skip}&take={take}

Returns the list of incom's with filter applied.

POST api/FpIncome

Post list of Income operations.

PurchaseOrderPayment

FP Purchase Order Payment's

APIDescription
POST api/PurchaseOrderPayment

RegisterOuterId

FP Register set oter_id

APIDescription
POST api/RegisterOuterId

FP Register set oter_id

MassmailSendingList

FP Payment Type

APIDescription
GET api/MassmailSendingList?id_id={id_id}&sort={sort}&search={search}&skip={skip}&take={take}&id_massmail={id_massmail}&email={email}

Returns the list of Payment Types with filter applied.

GET api/MassmailSendingList/{id}

Fast method to get Payment Type by id.

POST api/MassmailSendingList

Post list of Payment Types.

IncomeCategory

APIDescription
GET api/IncomeCategory?id_id={id_id}&outer_id={outer_id}&in_archive={in_archive}&sort={sort}&skip={skip}&take={take}

Returns the list of income categories with filter applied.

GET api/IncomeCategory/{id}

Fast method to get income category by id.

DELETE api/IncomeCategory?id_id={id_id}&outer_id={outer_id}&in_archive={in_archive}&sort={sort}&skip={skip}&take={take}&arhive={arhive}

Delete list of income categories.

POST api/IncomeCategory

Post list of income categories.

Helpers

FP Bills

APIDescription
GET api/Helpers?sum={sum}&decimals={decimals}&currency={currency}&localization={localization}

0.00

WorkflowBoard

Workflow board

APIDescription
GET api/WorkflowBoard?id_fp_plan={id_fp_plan}&id_id={id_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&SearchSourceId={SearchSourceId}&in_arhive={in_arhive}

Returns the list of Workflow boards with filter applied.

GET api/WorkflowBoard/{id}

Fast method to get Workflow board by id.

POST api/WorkflowBoard

Post list of Workflow boards.

ExpenseCategory

APIDescription
GET api/ExpenseCategory?id_id={id_id}&outer_id={outer_id}&in_archive={in_archive}&sort={sort}&skip={skip}&take={take}

Returns the list of expense categories with filter applied.

GET api/ExpenseCategory/{id}

Fast method to get company or private person by id.

POST api/ExpenseCategory

Post list of expense categories.

FPFund

FP Fund's

APIDescription
GET api/FPFund?id_id={id_id}&in_archive={in_archive}&sort={sort}&skip={skip}&take={take}

Returns the list of fund's with filter applied.

GET api/FPFund/{id}

Fast method to get fund by id.

FpCurrency

FP Currency

APIDescription
GET api/FpCurrency?id_id={id_id}&outer_id={outer_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&in_arhive={in_arhive}

Returns the list of Currency's with filter applied.

GET api/FpCurrency/{id}

Fast method to get Currency by id.

POST api/FpCurrency

Post list of Currency's.

BankAccount

FP Bills

APIDescription
GET api/BankAccount?id_company={id_company}&id_bank={id_bank}&id_id={id_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&SearchSourceId={SearchSourceId}&in_arhive={in_arhive}

Returns the list of bills with filter applied.

GET api/BankAccount/{id}

Fast method to get bill by id.

POST api/BankAccount

Post list of bills.

WorkflowList

Workflow list

APIDescription
GET api/WorkflowList?id_workflow_board={id_workflow_board}&id_id={id_id}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}&SearchSourceId={SearchSourceId}&in_arhive={in_arhive}

Returns the list of Workflow lists with filter applied.

GET api/WorkflowList/{id}

Fast method to get Workflow list by id.

POST api/WorkflowList

Post list of Workflow lists.

PaymentType

FP Payment Type

APIDescription
GET api/PaymentType?id_person={id_person}&id_id={id_id}&outer_id={outer_id}&sort={sort}&search={search}&skip={skip}&take={take}

Returns the list of Payment Types with filter applied.

GET api/PaymentType/{id}

Fast method to get Payment Type by id.

POST api/PaymentType

Post list of Payment Types.

Bank

FP Bills

APIDescription
GET api/Bank?id_id={id_id}&sort={sort}&search={search}&skip={skip}&take={take}&in_arhive={in_arhive}

Returns the list of bills with filter applied.

GET api/Bank/{id}

Fast method to get bill by id.

POST api/Bank

Post list of bills.

InvoicePayment

FP Invoice Payment's

APIDescription
POST api/InvoicePayment

DELETE api/InvoicePayment/{id}

delete

CompanyInfo

CRM company contact's

APIDescription
GET api/CompanyInfo

Returns the list of company_contact with filter applied.

GET api/CompanyInfo/{id}

Fast method to get company_contact by id.

POST api/CompanyInfo

Updates or creates company_contact or provate person.
If you will send request without ID parameter or OUTER ID parameter, service will create and return new company.

If you will send request without ID and with OUTER ID, it will try to search company with defined outer_id. Create and return new if there is not such company.

If you did successful update service will return updated record.

NOTICE! Better send company via urlencoded form to avoid data loss.
api/company HTTP/1.1
Host: api.asminsolution.org
Authorization: company:key
Content-Type: application/x-www-form-urlencoded

id=81890&name=sample name&desc=Description

Massmail

FP Payment Type

APIDescription
GET api/Massmail?id_id={id_id}&sort={sort}&search={search}&skip={skip}&take={take}&disabled={disabled}&subject={subject}&name={name}&date_from={date_from}&date_to={date_to}&status={status}

Returns the list of Payment Types with filter applied.

GET api/Massmail/{id}

Fast method to get Payment Type by id.

POST api/Massmail

Post list of Payment Types.

StockCardFolder

Card Folder's

APIDescription
GET api/StockCardFolder?in_arhive={in_arhive}&id_id={id_id}&outer_id={outer_id}&except={except}&sort={sort}&search={search}&status={status}&skip={skip}&take={take}

Returns the list of Stock Card Folder's with filter applied.

GET api/StockCardFolder/{id}

Fast method to get Stock Card Folder by id.

POST api/StockCardFolder

Post list of Stock Card Folder's.

File

Card Folder's

APIDescription
GET api/File/{id}?type={type}&parameters={parameters}

Returns the list of file's with filter applied.

POST api/File?type={type}&additionalIntProperties={additionalIntProperties}

Post list of file's.