@datafire/apacta v6.0.0
@datafire/apacta
Client library for Apacta
Installation and Usage
npm install --save @datafire/apacta
let apacta = require('@datafire/apacta').create({
"X-Auth-Token": "",
api_key: ""
});
.then(data => {
console.log(data);
});
Description
API for a tool to craftsmen used to register working hours, material usage and quality assurance.
Endpoint
The endpoint https://app.apacta.com/api/v1
should be used to communicate with the API. API access is only allowed with SSL encrypted connection (https).
Authentication
URL query authentication with an API key is used, so appending ?api_key={api_key}
to the URL where {api_key}
is found within Apacta settings is used for authentication
Pagination
If the endpoint returns a pagination
object it means the endpoint supports pagination - currently it's only possible to change pages with ?page={page_number}
but implementing custom page sizes are on the road map.
Search/filter
Is experimental but implemented in some cases - see the individual endpoints' docs for further explanation.
Ordering
Is currently experimental, but on some endpoints it's implemented on URL querys so eg. to order Invoices by invoice_number
appending ?sort=Invoices.invoice_number&direction=desc
would sort the list descending by the value of invoice_number
.
Associations
Is currently implemented on an experimental basis where you can append eg. ?include=Contacts,Projects
to the /api/v1/invoices/
endpoint to embed Contact
and Project
objects directly.
Project Files
Currently project files can be retrieved from two endpoints. /projects/{project_id}/files
handles files uploaded from wall posts or forms. /projects/{project_id}/project_files
allows uploading and showing files, not belonging to specific form or wall post.
Errors/Exceptions
422 (Validation)
Write something about how the errors
object contains keys with the properties that failes validation like:
{
"success": false,
"data": {
"code": 422,
"url": "/api/v1/contacts?api_key=5523be3b-30ef-425d-8203-04df7caaa93a",
"message": "A validation error occurred",
"errorCount": 1,
"errors": {
"contact_types": [ ## Property name that failed validation
"Contacts must have at least one contact type" ## Message with further explanation
]
}
}
}
Code examples
Running examples of how to retrieve the 5 most recent forms registered and embed the details of the User that made the form, and eventual products contained in the form
Swift
Java
OkHttp
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5")
.get()
.addHeader("x-auth-token", "{INSERT_YOUR_TOKEN}")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
Unirest
HttpResponse<String> response = Unirest.get("https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5")
.header("x-auth-token", "{INSERT_YOUR_TOKEN}")
.header("accept", "application/json")
.asString();
Javascript
Native
var data = null;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5");
xhr.setRequestHeader("x-auth-token", "{INSERT_YOUR_TOKEN}");
xhr.setRequestHeader("accept", "application/json");
xhr.send(data);
jQuery
var settings = {
"async": true,
"crossDomain": true,
"url": "https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5",
"method": "GET",
"headers": {
"x-auth-token": "{INSERT_YOUR_TOKEN}",
"accept": "application/json",
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
NodeJS (Request)
var request = require("request");
var options = { method: 'GET',
url: 'https://app.apacta.com/api/v1/forms',
qs:
{ extended: 'true',
sort: 'Forms.created',
direction: 'DESC',
include: 'Products,CreatedBy',
limit: '5' },
headers:
{ accept: 'application/json',
'x-auth-token': '{INSERT_YOUR_TOKEN}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Python 3
import http.client
conn = http.client.HTTPSConnection("app.apacta.com")
payload = ""
headers = {
'x-auth-token': "{INSERT_YOUR_TOKEN}",
'accept': "application/json",
}
conn.request("GET", "/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
C
RestSharp
var client = new RestClient("https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5");
var request = new RestRequest(Method.GET);
request.AddHeader("accept", "application/json");
request.AddHeader("x-auth-token", "{INSERT_YOUR_TOKEN}");
IRestResponse response = client.Execute(request);
Ruby
require 'uri'
require 'net/http'
url = URI("https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
request["x-auth-token"] = '{INSERT_YOUR_TOKEN}'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
PHP (HttpRequest)
<?php
$request = new HttpRequest();
$request->setUrl('https://app.apacta.com/api/v1/forms');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData(array(
'extended' => 'true',
'sort' => 'Forms.created',
'direction' => 'DESC',
'include' => 'Products,CreatedBy',
'limit' => '5'
));
$request->setHeaders(array(
'accept' => 'application/json',
'x-auth-token' => '{INSERT_YOUR_TOKEN}'
));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
Shell (cURL)
$ curl --request GET --url 'https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5' --header 'accept: application/json' --header 'x-auth-token: {INSERT_YOUR_TOKEN}'
Actions
cities.get
Get list of cities supported in Apacta
apacta.cities.get({}, context)
Input
- input
object
- zip_code
string
: Used to search for a city with specific zip code
- zip_code
Output
- output
object
- data
array
- items City
- pagination PaginationDetails
- success
boolean
- data
cities.city_id.get
Get details about one city
apacta.cities.city_id.get({
"city_id": ""
}, context)
Input
- input
object
- city_id required
string
- city_id required
Output
- output
object
- data City
- success
boolean
clocking_records.get
Get a list of clocking records
apacta.clocking_records.get({}, context)
Input
- input
object
- active
boolean
: Used to search for active clocking records
- active
Output
- output
object
- data
array
- items ClockingRecord
- pagination PaginationDetails
- success
boolean
- data
clocking_records.post
Create clocking record for authenticated user
apacta.clocking_records.post({
"clocking_record": {}
}, context)
Input
- input
object
- clocking_record required
object
- checkin_latitude
string
- checkin_longitude
string
- checkout_latitude
string
- checkout_longitude
string
- project_id
string
- checkin_latitude
- clocking_record required
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
clocking_records.checkout.post
Checkout active clocking record for authenticated user
apacta.clocking_records.checkout.post(null, context)
Input
This action has no parameters
Output
- output
object
- success
boolean
- success
clocking_records.clocking_record_id.delete
Delete a clocking record
apacta.clocking_records.clocking_record_id.delete({
"clocking_record_id": ""
}, context)
Input
- input
object
- clocking_record_id required
string
- clocking_record_id required
Output
- output
object
- data
array
- items
string
- items
- success
boolean
- data
clocking_records.clocking_record_id.get
Details of 1 clocking_record
apacta.clocking_records.clocking_record_id.get({
"clocking_record_id": ""
}, context)
Input
- input
object
- clocking_record_id required
string
- clocking_record_id required
Output
- output
object
- data ClockingRecord
- success
boolean
clocking_records.clocking_record_id.put
Edit a clocking record
apacta.clocking_records.clocking_record_id.put({
"clocking_record_id": ""
}, context)
Input
- input
object
- clocking_record_id required
string
- clocking_record_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
companies.get
Get a list of companies
apacta.companies.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items Company
- pagination PaginationDetails
- success
boolean
- data
companies.company_id.get
Details of 1 company
apacta.companies.company_id.get({
"company_id": ""
}, context)
Input
- input
object
- company_id required
string
- company_id required
Output
- output
object
- data Company
- success
boolean
companies.company_id.integration_feature_settings.get
Get a list of integration feature settings
apacta.companies.company_id.integration_feature_settings.get({
"company_id": ""
}, context)
Input
- input
object
- company_id required
string
- company_id required
Output
- output
object
- data
array
- pagination PaginationDetails
- success
boolean
- data
companies.company_id.integration_feature_settings.integration_feature_setting_id.get
Show details of 1 integration feature setting
apacta.companies.company_id.integration_feature_settings.integration_feature_setting_id.get({
"company_id": "",
"integration_feature_setting_id": ""
}, context)
Input
- input
object
- company_id required
string
- integration_feature_setting_id required
string
- company_id required
Output
- output
object
- data IntegrationFeatureSetting
- success
boolean
contact_types.get
Get list of contact types supported in Apacta
apacta.contact_types.get({}, context)
Input
- input
object
- identifier
string
: Search for specific identifier value
- identifier
Output
- output
object
- data
array
- items ContactType
- pagination PaginationDetails
- success
boolean
- data
contact_types.contact_type_id.get
Get details about one contact type
apacta.contact_types.contact_type_id.get({
"contact_type_id": ""
}, context)
Input
- input
object
- contact_type_id required
string
- contact_type_id required
Output
- output
object
- data ContactType
- success
boolean
contacts.get
Get a list of contacts
apacta.contacts.get({}, context)
Input
- input
object
- name
string
: Used to search for a contact with a specific name - cvr
string
: Search for values in CVR field - ean
string
: Search for values in EAN field - erp_id
string
: Search for values in ERP id field - contact_type
string
: Used to show only contacts with with one specificContactType
- city
string
: Used to show only contacts with with one specificCity
- name
Output
- output
object
- data
array
- items Contact
- pagination PaginationDetails
- success
boolean
- data
contacts.post
Add a new contact
apacta.contacts.post({}, context)
Input
- input
object
- contact
object
- address
string
: Street address - city_id
string
- contact_types
object
- _ids
array
- items
string
- items
- _ids
- cvr
string
- description
string
- email
string
- erp_id
string
: If company has integration to an ERP system, and the contacts are synchronized, this will be the ERP-systems ID of this contact - name
string
- phone
string
: Format like eg.28680133
or046158971404
- website
string
- address
- contact
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
contacts.contact_id.delete
Delete a contact
apacta.contacts.contact_id.delete({
"contact_id": ""
}, context)
Input
- input
object
- contact_id required
string
- contact_id required
Output
- output
object
- data
array
- items
string
- items
- success
boolean
- data
contacts.contact_id.get
Details of 1 contact
apacta.contacts.contact_id.get({
"contact_id": ""
}, context)
Input
- input
object
- contact_id required
string
- contact_id required
Output
- output
object
- data Contact
- success
boolean
contacts.contact_id.put
Edit a contact
apacta.contacts.contact_id.put({
"contact_id": ""
}, context)
Input
- input
object
- contact_id required
string
- contact
object
- address
string
: Street address - city_id
string
- contact_types
object
- _ids
array
- items
string
- items
- _ids
- cvr
string
- description
string
- email
string
- erp_id
string
: If company has integration to an ERP system, and the contacts are synchronized, this will be the ERP-systems ID of this contact - name
string
- phone
string
: Format like eg.28680133
or046158971404
- website
string
- address
- contact_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
currencies.get
Get list of currencies supported in Apacta
apacta.currencies.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items Currency
- pagination PaginationDetails
- success
boolean
- data
currencies.currency_id.get
Get details about one currency
apacta.currencies.currency_id.get({
"currency_id": ""
}, context)
Input
- input
object
- currency_id required
string
- currency_id required
Output
- output
object
- data Currency
- success
boolean
employee_hours.get
Used to retrieve details about the logged in user's hours
apacta.employee_hours.get({
"date_from": "",
"date_to": ""
}, context)
Input
- input
object
- date_from required
string
: Date formatted as Y-m-d (2016-06-28) - date_to required
string
: Date formatted as Y-m-d (2016-06-28)
- date_from required
Output
- output
object
- data
array
: One element per form in the period- items
object
- form_date
string
: Y-m-d formatted - form_id
string
- project_name
string
- total_hours
integer
: The amount of hours in seconds - working_description
string
: Trimmed at 50 characters - working_description_full
string
: Full work description (if available)
- form_date
- items
- success
boolean
- data
expense_files.get
Show list of expense files
apacta.expense_files.get({}, context)
Input
- input
object
- created_by_id
string
- expense_id
string
- created_by_id
Output
- output
object
- data
array
- items ExpenseFile
- pagination PaginationDetails
- success
boolean
- data
expense_files.post
Add file to expense
apacta.expense_files.post({
"file": ""
}, context)
Input
- input
object
- file required
string
,object
- content
string
- encoding
string
(values: ascii, utf8, utf16le, base64, binary, hex) - contentType
string
- filename
string
- content
- description
string
- file required
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
expense_files.expense_file_id.delete
Delete file
apacta.expense_files.expense_file_id.delete({
"expense_file_id": ""
}, context)
Input
- input
object
- expense_file_id required
string
- expense_file_id required
Output
- output
object
- data
array
- items
string
- items
- success
boolean
- data
expense_files.expense_file_id.get
Show file
apacta.expense_files.expense_file_id.get({
"expense_file_id": ""
}, context)
Input
- input
object
- expense_file_id required
string
- expense_file_id required
Output
- output
object
- data
array
- items
string
- items
- success
boolean
- data
expense_files.expense_file_id.put
Edit file
apacta.expense_files.expense_file_id.put({
"expense_file_id": ""
}, context)
Input
- input
object
- expense_file_id required
string
- expense_file_id required
Output
- output
object
- data
object
- success
boolean
- data
expense_lines.get
Show list of expense lines
apacta.expense_lines.get({}, context)
Input
- input
object
- created_by_id
string
- currency_id
string
- expense_id
string
- created_by_id
Output
- output
object
- data
array
- items ExpenseLine
- pagination PaginationDetails
- success
boolean
- data
expense_lines.post
Add line to expense
apacta.expense_lines.post({}, context)
Input
- input
object
- expense_line
object
- buying_price
number
- currency_id
string
- expense_id
string
- quantity
integer
- selling_price
number
- text
string
- buying_price
- expense_line
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
expense_lines.expense_line_id.delete
Delete expense line
apacta.expense_lines.expense_line_id.delete({
"expense_line_id": ""
}, context)
Input
- input
object
- expense_line_id required
string
- expense_line_id required
Output
- output
object
- data ExpenseLine
- success
boolean
expense_lines.expense_line_id.get
Show expense line
apacta.expense_lines.expense_line_id.get({
"expense_line_id": ""
}, context)
Input
- input
object
- expense_line_id required
string
- expense_line_id required
Output
- output
object
- data ExpenseLine
- success
boolean
expense_lines.expense_line_id.put
Edit expense line
apacta.expense_lines.expense_line_id.put({
"expense_line_id": ""
}, context)
Input
- input
object
- expense_line_id required
string
- expense_line_id required
Output
- output
object
- data ExpenseLine
- success
boolean
expenses.get
Show list of expenses
apacta.expenses.get({}, context)
Input
- input
object
- created_by_id
string
- company_id
string
- contact_id
string
- project_id
string
- gt_created
string
: Created after date - lt_created
string
: Created before date
- created_by_id
Output
- output
object
- data
array
- items Expense
- pagination PaginationDetails
- success
boolean
- data
expenses.post
Add line to expense
apacta.expenses.post({}, context)
Input
- input
object
- expense_line
object
- contact_id
string
- currency_id
string
- delivery_date
string
- description
string
- project_id
string
- reference
string
- short_text
string
- supplier_invoice_number
string
- contact_id
- expense_line
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
expenses.expense_id.delete
Delete expense
apacta.expenses.expense_id.delete({
"expense_id": ""
}, context)
Input
- input
object
- expense_id required
string
- expense_id required
Output
- output
object
- data Expense
- success
boolean
expenses.expense_id.get
Show expense
apacta.expenses.expense_id.get({
"expense_id": ""
}, context)
Input
- input
object
- expense_id required
string
- expense_id required
Output
- output
object
- data Expense
- success
boolean
expenses.expense_id.put
Edit expense
apacta.expenses.expense_id.put({
"expense_id": ""
}, context)
Input
- input
object
- expense_id required
string
- expense_id required
Output
- output
object
- data Expense
- success
boolean
expenses.expense_id.original_files.get
Show list of all OIOUBL files for the expense
apacta.expenses.expense_id.original_files.get({
"expense_id": ""
}, context)
Input
- input
object
- expense_id required
string
- expense_id required
Output
- output
object
- success
boolean
- success
expenses.expense_id.original_files.file_id.get
Show OIOUBL file
apacta.expenses.expense_id.original_files.file_id.get({
"expense_id": "",
"file_id": ""
}, context)
Input
- input
object
- expense_id required
string
- file_id required
string
- expense_id required
Output
- output
object
- success
boolean
- success
form_field_types.get
Get list of form field types
apacta.form_field_types.get({}, context)
Input
- input
object
- name
string
: Used to filter on thename
of the form_fields - identifier
string
: Used to filter on theidentifier
of the form_fields
- name
Output
- output
object
- data
array
- items FormFieldType
- pagination PaginationDetails
- success
boolean
- data
form_field_types.form_field_type_id.get
Get details about single FormField
apacta.form_field_types.form_field_type_id.get({
"form_field_type_id": ""
}, context)
Input
- input
object
- form_field_type_id required
string
- form_field_type_id required
Output
- output
object
- data FormFieldType
- success
boolean
form_fields.post
Add a new field to a Form
apacta.form_fields.post({}, context)
Input
- input
object
- form_field
object
- comment
string
- content_value
string
- file_id
string
- form_field_type_id
string
- form_id
string
- form_template_field_id
string
- placement
integer
- comment
- form_field
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
form_fields.form_field_id.get
Get details about single FormField
apacta.form_fields.form_field_id.get({
"form_field_id": ""
}, context)
Input
- input
object
- form_field_id required
string
- form_field_id required
Output
- output
object
- data FormField
- success
boolean
form_templates.get
Get array of form_templates for your company
apacta.form_templates.get({}, context)
Input
- input
object
- name
string
: Used to filter on thename
of the form_templates - identifier
string
: Used to filter on theidentifier
of the form_templates - pdf_template_identifier
string
: Used to filter on thepdf_template_identifier
of the form_templates - description
string
: Used to filter on thedescription
of the form_templates
- name
Output
- output
object
- data
array
- items FormTemplate
- pagination PaginationDetails
- success
boolean
- data
form_templates.form_template_id.get
View one form template
apacta.form_templates.form_template_id.get({
"form_template_id": ""
}, context)
Input
- input
object
- form_template_id required
string
- form_template_id required
Output
- output
object
- data FormTemplate
- success
boolean
forms.get
Retrieve array of forms
apacta.forms.get({}, context)
Input
- input
object
- extended
string
(values: true, false): Used to have extended details from the forms from theForm
'sFormFields
- date_from
string
: Used in conjunction withdate_to
to only show forms within these dates - format like2016-28-05
- date_to
string
: Used in conjunction withdate_from
to only show forms within these dates - format like2016-28-30
- project_id
string
: Used to filter on theproject_id
of the forms - created_by_id
string
: Used to filter on thecreated_by_id
of the forms - form_template_id
string
: Used to filter on theform_template_id
of the forms
- extended
Output
- output
object
- data
array
- items Form
- pagination PaginationDetails
- success
boolean
- data
forms.post
Used to add a form into the system
apacta.forms.post({}, context)
Input
- input
object
- form
object
- form_template_id required
string
- project_id required
string
- form_template_id required
- form
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
forms.form_id.delete
You can only delete the forms that you've submitted yourself
apacta.forms.form_id.delete({
"form_id": ""
}, context)
Input
- input
object
- form_id required
string
- form_id required
Output
Output schema unknown
forms.form_id.get
View form
apacta.forms.form_id.get({
"form_id": ""
}, context)
Input
- input
object
- form_id required
string
- form_id required
Output
- output
object
- data Form
- success
boolean
forms.form_id.put
Edit a form
apacta.forms.form_id.put({
"form_id": ""
}, context)
Input
- input
object
- form_id required
string
- form_id required
Output
Output schema unknown
invoice_lines.get
View list of invoice lines
apacta.invoice_lines.get({}, context)
Input
- input
object
- invoice_id
string
- product_id
string
- user_id
string
- name
string
- discount_text
string
- invoice_id
Output
- output
object
- data
array
- items InvoiceLine
- pagination PaginationDetails
- success
boolean
- data
invoice_lines.post
Add invoice
apacta.invoice_lines.post({}, context)
Input
- input
object
- invoice_line
object
- description
string
- discount_percent
integer
- discount_text
string
- invoice_id
string
- name
string
- product_id
string
- quantity
integer
- selling_price
number
- user_id
string
- description
- invoice_line
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
invoice_lines.invoice_line_id.delete
Delete invoice line
apacta.invoice_lines.invoice_line_id.delete({
"invoice_line_id": ""
}, context)
Input
- input
object
- invoice_line_id required
string
- invoice_line_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
invoice_lines.invoice_line_id.get
View invoice line
apacta.invoice_lines.invoice_line_id.get({
"invoice_line_id": ""
}, context)
Input
- input
object
- invoice_line_id required
string
- invoice_line_id required
Output
- output
object
- data InvoiceLine
- success
boolean
invoice_lines.invoice_line_id.put
Edit invoice line
apacta.invoice_lines.invoice_line_id.put({
"invoice_line_id": ""
}, context)
Input
- input
object
- invoice_line_id required
string
- invoice_line
object
- description
string
- discount_percent
integer
- discount_text
string
- invoice_id
string
- name
string
- product_id
string
- quantity
integer
- selling_price
number
- user_id
string
- description
- invoice_line_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
invoices.get
View list of invoices
apacta.invoices.get({}, context)
Input
- input
object
- contact_id
string
: Used to filter on thecontact_id
of the invoices - project_id
string
: Used to filter on theproject_id
of the invoices - invoice_number
string
: Used to filter on theinvoice_number
of the invoices - offer_number
string
- is_draft
integer
(values: 0, 1) - is_offer
integer
(values: 0, 1) - is_locked
integer
(values: 0, 1) - date_from
string
- date_to
string
- issued_date
string
- contact_id
Output
- output
object
- data
array
- items Invoice
- pagination PaginationDetails
- success
boolean
- data
invoices.post
Add invoice
apacta.invoices.post({}, context)
Input
- input
object
- invoice
object
- contact_id
string
- created_or_modified_gte
string
- date_from
string
- date_to
string
- erp_id
string
- erp_payment_term_id
string
- invoice_number
integer
- is_draft
boolean
- is_locked
boolean
- is_offer
boolean
- issued_date
string
- message
string
- offer_number
integer
- payment_due_date
string
- payment_term_id
string
- project_id
string
- reference
string
- vat_percent
integer
- contact_id
- invoice
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
invoices.invoice_id.delete
Delete invoice
apacta.invoices.invoice_id.delete({
"invoice_id": ""
}, context)
Input
- input
object
- invoice_id required
string
- invoice_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
invoices.invoice_id.get
View invoice
apacta.invoices.invoice_id.get({
"invoice_id": ""
}, context)
Input
- input
object
- invoice_id required
string
- invoice_id required
Output
- output
object
- data Invoice
- success
boolean
invoices.invoice_id.put
Edit invoice
apacta.invoices.invoice_id.put({
"invoice_id": ""
}, context)
Input
- input
object
- invoice_id required
string
- invoice
object
- contact_id
string
- date_from
string
- date_to
string
- erp_id
string
- erp_payment_term_id
string
- invoice_number
integer
- is_draft
boolean
- is_locked
boolean
- is_offer
boolean
- issued_date
string
- message
string
- offer_number
integer
- payment_due_date
string
- payment_term_id
string
- project_id
string
- reference
string
- vat_percent
integer
- contact_id
- invoice_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
mass_messages_users.get
View list of mass messages for specific user
apacta.mass_messages_users.get({}, context)
Input
- input
object
- is_read
boolean
: Used to filter on theis_read
of the mass messages
- is_read
Output
- output
object
- data
array
- items MassMessagesUser
- pagination PaginationDetails
- success
boolean
- data
mass_messages_users.mass_messages_user_id.get
View mass message
apacta.mass_messages_users.mass_messages_user_id.get({
"mass_messages_user_id": ""
}, context)
Input
- input
object
- mass_messages_user_id required
string
- mass_messages_user_id required
Output
- output
object
- data MassMessagesUser
- success
boolean
mass_messages_users.mass_messages_user_id.put
Edit mass message
apacta.mass_messages_users.mass_messages_user_id.put({
"mass_messages_user_id": ""
}, context)
Input
- input
object
- mass_messages_user_id required
string
- mass_messages_user_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
materials.get
View list of all materials
apacta.materials.get({}, context)
Input
- input
object
- barcode
string
: Used to filter on thebarcode
of the materials - name
string
: Used to filter on thename
of the materials - project_id
string
: Used to find materials used in specific project byproject_id
- currently_rented
boolean
: Used to find currently rented materials
- barcode
Output
- output
object
- data
array
- items Material
- pagination PaginationDetails
- success
boolean
- data
materials.material_id.delete
Delete material
apacta.materials.material_id.delete({
"material_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
materials.material_id.get
View material
apacta.materials.material_id.get({
"material_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_id required
Output
- output
object
- data Material
- success
boolean
materials.material_id.put
Edit material
apacta.materials.material_id.put({
"material_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
materials.material_id.rentals.get
Show list of rentals for specific material
apacta.materials.material_id.rentals.get({
"material_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_id required
Output
- output
object
- data
array
- items MaterialRental
- pagination PaginationDetails
- success
boolean
- data
materials.material_id.rentals.post
Add material rental
apacta.materials.material_id.rentals.post({
"material_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_rental
object
- form_id
string
- from_date
string
- is_invoiced
string
- material_id
string
- project_id
string
- quantity
number
- to_date
string
- form_id
- material_id required
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
materials.material_id.rentals.checkout.post
Checkout material rental
apacta.materials.material_id.rentals.checkout.post({
"material_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_rental
object
- form_id
string
- material_rental_id
string
- to_date
string
- form_id
- material_id required
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
materials.material_id.rentals.material_rental_id.delete
Delete rental for material
apacta.materials.material_id.rentals.material_rental_id.delete({
"material_id": "",
"material_rental_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_rental_id required
string
- material_id required
Output
- output
object
- data
object
- success
boolean
- data
materials.material_id.rentals.material_rental_id.get
Show rental foor materi
apacta.materials.material_id.rentals.material_rental_id.get({
"material_id": "",
"material_rental_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_rental_id required
string
- material_id required
Output
- output
object
- data MaterialRental
- success
boolean
materials.material_id.rentals.material_rental_id.post
Add material
apacta.materials.material_id.rentals.material_rental_id.post({
"material_id": "",
"material_rental_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_rental_id required
string
- material
object
- barcode
string
- billing_cysle
string
(values: hourly, daily, weekly) - cost_price
number
- description
string
- is_single_usage
boolean
- name
string
- selling_price
number
- barcode
- material_id required
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
materials.material_id.rentals.material_rental_id.put
Edit material rental
apacta.materials.material_id.rentals.material_rental_id.put({
"material_id": "",
"material_rental_id": ""
}, context)
Input
- input
object
- material_id required
string
- material_rental_id required
string
- material_id required
Output
- output
object
- data
object
- success
boolean
- data
payment_term_types.get
Get a list of payment term types
apacta.payment_term_types.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items PaymentTermType
- pagination PaginationDetails
- success
boolean
- data
payment_term_types.payment_term_type_id.get
Details of 1 payment term type
apacta.payment_term_types.payment_term_type_id.get({
"payment_term_type_id": ""
}, context)
Input
- input
object
- payment_term_type_id required
string
- payment_term_type_id required
Output
- output
object
- data PaymentTermType
- success
boolean
payment_terms.get
Get a list of payment terms
apacta.payment_terms.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items PaymentTerm
- pagination PaginationDetails
- success
boolean
- data
payment_terms.payment_term_id.get
Details of 1 payment term
apacta.payment_terms.payment_term_id.get({
"payment_term_id": ""
}, context)
Input
- input
object
- payment_term_id required
string
- payment_term_id required
Output
- output
object
- data PaymentTerm
- success
boolean
ping.get
Check if API is up and API key works
apacta.ping.get(null, context)
Input
This action has no parameters
Output
- output
object
- status
string
- status
products.get
List products
apacta.products.get({}, context)
Input
- input
object
- name
string
: Used to filter on thename
of the products - product_number
string
: Used to filter on theproduct_number
of the products - barcode
string
: Used to filter on thebarcode
of the products
- name
Output
- output
object
- data
array
- items Product
- pagination PaginationDetails
- success
boolean
- data
products.post
Add new product
apacta.products.post({}, context)
Input
- input
object
- product
object
- barcode
string
- buying_price
number
- description
string
- erp_id
string
- name required
string
- product_number
string
- selling_price
number
- barcode
- product
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
products.product_id.delete
Delete a product
apacta.products.product_id.delete({
"product_id": ""
}, context)
Input
- input
object
- product_id required
string
- product_id required
Output
- output
object
- data
array
- items
string
- items
- success
boolean
- data
products.product_id.get
View single product
apacta.products.product_id.get({
"product_id": ""
}, context)
Input
- input
object
- product_id required
string
- product_id required
Output
- output
object
- data Product
- success
boolean
products.product_id.put
Edit a product
apacta.products.product_id.put({
"product_id": ""
}, context)
Input
- input
object
- product_id required
string
- product_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
project_statuses.get
Get list of project statuses
apacta.project_statuses.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items ProjectStatus
- pagination PaginationDetails
- success
boolean
- data
project_statuses.project_status_id.get
Get details about one contact type
apacta.project_statuses.project_status_id.get({
"project_status_id": ""
}, context)
Input
- input
object
- project_status_id required
string
- project_status_id required
Output
- output
object
- data ProjectStatus
- success
boolean
projects.get
View list of projects
apacta.projects.get({}, context)
Input
- input
object
- show_all
boolean
: Unless this is set totrue
only open projects will be shown - contact_id
string
: Used to filter on thecontact_id
of the projects - project_status_id
string
: Used to filter on theproject_status_id
of the projects - project_status_ids
array
: Used to filter on theproject_status_id
of the projects (match any of the provided values) - name
string
: Used to search on thename
of the projects - erp_project_id
string
: Used to search on theerp_project_id
of the projects - erp_task_id
string
: Used to search on theerp_task_id
of the projects - start_time_gte
string
: Show projects with start time after than this value - start_time_lte
string
: Show projects with start time before this value - start_time_eq
string
: Show only projects with start time on specific date
- show_all
Output
- output
object
- data
array
- items Project
- pagination PaginationDetails
- success
boolean
- data
projects.post
Add a project
apacta.projects.post({}, context)
Input
- input
object
- project
object
- contact_id
string
- description
string
- erp_project_id
string
- erp_task_id
string
- name required
string
- project_status_id
string
- start_time
string
- street_name
string
- contact_id
- project
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
projects.project_id.delete
Delete a project
apacta.projects.project_id.delete({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- project_id required
Output
- output
object
- data
array
- items
string
- items
- success
boolean
- data
projects.project_id.get
View specific project
apacta.projects.project_id.get({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- project_id required
Output
- output
object
- data Project
- success
boolean
projects.project_id.put
Edit a project
apacta.projects.project_id.put({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- project
object
- contact_id
string
- description
string
- erp_project_id
string
- erp_task_id
string
- name required
string
- project_status_id
string
- start_time
string
- street_name
string
- contact_id
- project_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
projects.project_id.files.get
Used to show files uploaded to a project from wall post or form
apacta.projects.project_id.files.get({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- project_id required
Output
- output
object
- data
array
- items
string
- items
- pagination PaginationDetails
- success
boolean
- data
projects.project_id.files.file_id.delete
Delete file uploaded to a project from wall post or form
apacta.projects.project_id.files.file_id.delete({
"project_id": "",
"file_id": ""
}, context)
Input
- input
object
- project_id required
string
- file_id required
string
- project_id required
Output
- output
object
- data
object
- success
boolean
- data
projects.project_id.files.file_id.get
Show file uploaded to a project from wall post or form
apacta.projects.project_id.files.file_id.get({
"project_id": "",
"file_id": ""
}, context)
Input
- input
object
- project_id required
string
- file_id required
string
- project_id required
Output
- output
object
- data
object
- success
boolean
- data
projects.project_id.files.file_id.put
Edit file uploaded to a project from wall post or form
apacta.projects.project_id.files.file_id.put({
"project_id": "",
"file_id": ""
}, context)
Input
- input
object
- project_id required
string
- file_id required
string
- project_id required
Output
- output
object
- data
object
- success
boolean
- data
projects.project_id.project_files.get
Returns files belonging to the project, not uploaded from wall post or form
apacta.projects.project_id.project_files.get({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- project_id required
Output
- output
object
- data
array
- items
string
- items
- pagination PaginationDetails
- success
boolean
- data
projects.project_id.project_files.post
Add project file to projects
apacta.projects.project_id.project_files.post({
"project_id": "",
"file": ""
}, context)
Input
- input
object
- project_id required
string
- file required
string
,object
- content
string
- encoding
string
(values: ascii, utf8, utf16le, base64, binary, hex) - contentType
string
- filename
string
- content
- project_id required
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
projects.project_id.project_files.project_file_id.delete
Delete project file
apacta.projects.project_id.project_files.project_file_id.delete({
"project_file_id": "",
"project_id": ""
}, context)
Input
- input
object
- project_file_id required
string
- project_id required
string
- project_file_id required
Output
- output
object
- data
object
- success
boolean
- data
projects.project_id.project_files.project_file_id.get
Show project file
apacta.projects.project_id.project_files.project_file_id.get({
"project_id": "",
"project_file_id": ""
}, context)
Input
- input
object
- project_id required
string
- project_file_id required
string
- project_id required
Output
- output
object
- data
object
- success
boolean
- data
projects.project_id.project_files.project_file_id.put
Edit project file
apacta.projects.project_id.project_files.project_file_id.put({
"project_id": "",
"project_file_id": ""
}, context)
Input
- input
object
- project_id required
string
- project_file_id required
string
- project_id required
Output
- output
object
- data
object
- success
boolean
- data
projects.project_id.users.get
Show list of users added to project
apacta.projects.project_id.users.get({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- project_id required
Output
- output
object
- data
array
- items User
- pagination PaginationDetails
- success
boolean
- data
projects.project_id.users.post
Add user to project
apacta.projects.project_id.users.post({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- user_id
object
- user_id required
string
- user_id required
- project_id required
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
projects.project_id.users.user_id.delete
Delete user from project
apacta.projects.project_id.users.user_id.delete({
"user_id": "",
"project_id": ""
}, context)
Input
- input
object
- user_id required
string
- project_id required
string
- user_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
projects.project_id.users.user_id.get
View specific user assigned to project
apacta.projects.project_id.users.user_id.get({
"user_id": "",
"project_id": ""
}, context)
Input
- input
object
- user_id required
string
- project_id required
string
- user_id required
Output
- output
object
- data User
- success
boolean
stock_locations.get
List stock_locations
apacta.stock_locations.get({}, context)
Input
- input
object
- name
string
: Used to filter on thename
of the stock_locations
- name
Output
- output
object
- data
array
- items StockLocation
- pagination PaginationDetails
- success
boolean
- data
stock_locations.post
Add new stock_locations
apacta.stock_locations.post({}, context)
Input
- input
object
- location
object
- name required
string
- name required
- location
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
stock_locations.location_id.delete
Delete location
apacta.stock_locations.location_id.delete({
"location_id": ""
}, context)
Input
- input
object
- location_id required
string
- location_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
stock_locations.location_id.get
View single location
apacta.stock_locations.location_id.get({
"location_id": ""
}, context)
Input
- input
object
- location_id required
string
- location_id required
Output
- output
object
- data StockLocation
- success
boolean
stock_locations.location_id.put
Edit location
apacta.stock_locations.location_id.put({
"location_id": ""
}, context)
Input
- input
object
- location_id required
string
- location_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
time_entries.get
List time entries
apacta.time_entries.get({}, context)
Input
- input
object
- user_id
string
- form_id
string
- project_id
string
- gt_from_time
string
- lt_from_time
string
- gt_to_time
string
- lt_to_time
string
- lt_sum
string
- gt_sum
string
- user_id
Output
- output
object
- data
array
- items TimeEntry
- pagination PaginationDetails
- success
boolean
- data
time_entries.post
Add new time entry
apacta.time_entries.post({}, context)
Input
- input
object
- time_entry
object
- form_id
string
- from_time
string
- is_all_day
boolean
- project_id
string
- sum
integer
: Amount of seconds - should only be included when using is_all_day, otherwise will be calculated from from_time and to_time - time_entry_type_id required
string
- to_time
string
- user_id required
string
- form_id
- time_entry
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
time_entries.time_entry_id.delete
Delete time entry
apacta.time_entries.time_entry_id.delete({
"time_entry_id": ""
}, context)
Input
- input
object
- time_entry_id required
string
- time_entry_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
time_entries.time_entry_id.get
View time entry
apacta.time_entries.time_entry_id.get({
"time_entry_id": ""
}, context)
Input
- input
object
- time_entry_id required
string
- time_entry_id required
Output
- output
object
- data TimeEntry
- success
boolean
time_entries.time_entry_id.put
Edit time entry
apacta.time_entries.time_entry_id.put({
"time_entry_id": ""
}, context)
Input
- input
object
- time_entry_id required
string
- time_entry_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
time_entry_intervals.get
List possible time entry intervals
apacta.time_entry_intervals.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items TimeEntryInterval
- pagination PaginationDetails
- success
boolean
- data
time_entry_intervals.time_entry_interval_id.get
View time entry interval
apacta.time_entry_intervals.time_entry_interval_id.get({
"time_entry_interval_id": ""
}, context)
Input
- input
object
- time_entry_interval_id required
string
- time_entry_interval_id required
Output
- output
object
- data TimeEntryInterval
- success
boolean
time_entry_types.get
List time entries types
apacta.time_entry_types.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items TimeEntryType
- pagination PaginationDetails
- success
boolean
- data
time_entry_types.post
Add new time entry type
apacta.time_entry_types.post({}, context)
Input
- input
object
- time_entry_type
object
- description
string
- name required
string
- time_entry_interval_id required
string
- time_entry_value_type_id required
string
- description
- time_entry_type
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
time_entry_types.time_entry_type_id.delete
Delete time entry type
apacta.time_entry_types.time_entry_type_id.delete({
"time_entry_type_id": ""
}, context)
Input
- input
object
- time_entry_type_id required
string
- time_entry_type_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
time_entry_types.time_entry_type_id.get
View time entry type
apacta.time_entry_types.time_entry_type_id.get({
"time_entry_type_id": ""
}, context)
Input
- input
object
- time_entry_type_id required
string
- time_entry_type_id required
Output
- output
object
- data TimeEntryType
- success
boolean
time_entry_types.time_entry_type_id.put
Edit time entry type
apacta.time_entry_types.time_entry_type_id.put({
"time_entry_type_id": ""
}, context)
Input
- input
object
- time_entry_type_id required
string
- time_entry_type_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
time_entry_unit_types.get
List possible time entry unit types
apacta.time_entry_unit_types.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items TimeEntryUnitType
- pagination PaginationDetails
- success
boolean
- data
time_entry_unit_types.time_entry_unit_type_id.get
View time entry unit type
apacta.time_entry_unit_types.time_entry_unit_type_id.get({
"time_entry_unit_type_id": ""
}, context)
Input
- input
object
- time_entry_unit_type_id required
string
- time_entry_unit_type_id required
Output
- output
object
- data TimeEntryUnitType
- success
boolean
time_entry_value_types.get
List possible time entry value types
apacta.time_entry_value_types.get(null, context)
Input
This action has no parameters
Output
- output
object
- data
array
- items TimeEntryValueType
- pagination PaginationDetails
- success
boolean
- data
time_entry_value_types.time_entry_value_type_id.get
View time entry value type
apacta.time_entry_value_types.time_entry_value_type_id.get({
"time_entry_value_type_id": ""
}, context)
Input
- input
object
- time_entry_value_type_id required
string
- time_entry_value_type_id required
Output
- output
object
- data TimeEntryValueType
- success
boolean
users.get
Get list of users in company
apacta.users.get({}, context)
Input
- input
object
- first_name
string
: Used to filter on thefirst_name
of the users - last_name
string
: Used to filter on thelast_name
of the users - email
string
: Used to filter on theemail
of the users - stock_location_id
string
: Used to filter on thestock_location_id
of the users
- first_name
Output
- output
object
- data
array
- items User
- pagination PaginationDetails
- success
boolean
- data
users.post
Add user to company
apacta.users.post({}, context)
Input
- input
object
- user
object
- city_id
string
- cost_price
number
: Cost of salaries - email
string
- extra_price
number
: Additional cost on this employee (pension, vacation etc.) - first_name required
string
- is_active
boolean
- language_id
string
- last_name
string
- mobile
string
- mobile_countrycode
string
- password
string
- phone
string
- phone_countrycode
string
- receive_form_mails
boolean
: Iftrue
the employee will receive an email receipt of every form submitted - sale_price
number
: The price this employee costs per hour when working - street_name
string
- city_id
- user
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
users.user_id.delete
Delete user
apacta.users.user_id.delete({
"user_id": ""
}, context)
Input
- input
object
- user_id required
string
- user_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
users.user_id.get
View user
apacta.users.user_id.get({
"user_id": ""
}, context)
Input
- input
object
- user_id required
string
- user_id required
Output
- output
object
- data User
- success
boolean
users.user_id.put
Edit user
apacta.users.user_id.put({
"user_id": ""
}, context)
Input
- input
object
- user_id required
string
- user_id required
Output
- output
object
- data
array
- items
object
- items
- success
boolean
- data
vendor_products.get
List vendor products
apacta.vendor_products.get({}, context)
Input
- input
object
- name
string
: Used to filter on thename
of the vendor products - product_number
string
: Used to filter on theproduct_number
of the vendor products - barcode
string
: Used to filter on thebarcode
of the vendor products - vendor_id
string
: Used to filter on thevendor_id
of the vendor products
- name
Output
- output
object
- data
array
- items VendorProduct
- pagination PaginationDetails
- success
boolean
- data
vendor_products.vendor_product_id.get
View single vendor product
apacta.vendor_products.vendor_product_id.get({
"vendor_product_id": ""
}, context)
Input
- input
object
- vendor_product_id required
string
- vendor_product_id required
Output
- output
object
- data VendorProduct
- success
boolean
wall_comments.post
Add wall comment
apacta.wall_comments.post({}, context)
Input
- input
object
- wall_comment
object
- message required
string
- wall_post_id required
string
- message required
- wall_comment
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
wall_comments.wall_comment_id.get
View wall comment
apacta.wall_comments.wall_comment_id.get({
"wall_comment_id": ""
}, context)
Input
- input
object
- wall_comment_id required
string
- wall_comment_id required
Output
- output
object
- data WallComment
- success
boolean
wall_posts.get
View list of wall posts
apacta.wall_posts.get({
"project_id": ""
}, context)
Input
- input
object
- project_id required
string
- user_id
string
- project_id required
Output
- output
object
- data
array
- items WallPost
- pagination PaginationDetails
- success
boolean
- data
wall_posts.post
Add a wall post
apacta.wall_posts.post({}, context)
Input
- input
object
- wall_post
object
- message required
string
- project_id required
string
- message required
- wall_post
Output
- output
object
- data
object
- id
string
- id
- success
boolean
- data
wall_posts.wall_post_id.get
View wall post
apacta.wall_posts.wall_post_id.get({
"wall_post_id": ""
}, context)
Input
- input
object
- wall_post_id required
string
- wall_post_id required
Output
- output
object
- data WallPost
- success
boolean
wall_posts.wall_post_id.wall_comments.get
See wall comments to a wall post
apacta.wall_posts.wall_post_id.wall_comments.get({
"wall_post_id": ""
}, context)
Input
- input
object
- wall_post_id required
string
- wall_post_id required
Output
- output
object
- data
array
- items WallComment
- pagination PaginationDetails
- success
boolean
- data
Definitions
City
ClockingRecord
- ClockingRecord
object
Company
- Company
object
- city_id
string
- contact_person_id
string
- created created
- created_by_id
string
: Read-only - cvr
string
- deleted deleted
- expired
string
- file_id
string
- id
string
- invoice_email
string
- language_id
string
- modified modified
- name
string
- next_invoice_number
integer
- phone
string
: Format like eg.28680133
or046158971404
- phone_countrycode
string
: Format like eg.45
or49
- receive_form_mails
string
- street_name
string
- vat_percent
integer
- website
string
- city_id
Contact
- Contact
object
- address
string
: Street address - city_id
string
- company_id
string
: Only filled out if this represents another company within Apacta (used for partners) - created created
- created_by_id
string
: Read-only - cvr
string
- deleted deleted
- description
string
- email
string
- erp_id
string
: If company has integration to an ERP system, and the contacts are synchronized, this will be the ERP-systems ID of this contact - id
string
- modified modified
- name
string
- phone
string
: Format like eg.28680133
or046158971404
- website
string
- address
ContactType
- ContactType
object
Currency
- Currency
object
ErrorNotFound
- ErrorNotFound
object
- data
object
- code
integer
: The HTTP status code - message
string
: Error message - url
string
: The url from which this originated
- code
- success
boolean
- data
ErrorValidation
- ErrorValidation
object
- data
object
- code
integer
: The HTTP status code - errorCount
integer
: The amount of validation errors - errors
object
: Object that contains details information about which properties failed validation and what rules they failed. - message
string
: Error message - url
string
: The url from which this originated
- code
- success
boolean
- data
Expense
- Expense
object
ExpenseFile
- ExpenseFile
object
ExpenseLine
- ExpenseLine
object
Form
- Form
object
- approved_by_id
string
- com
- approved_by_id