All URIs are relative to https://my.sevdesk.de/api/v1, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
contactCustomerNumberAvailabilityCheck() | GET /Contact/Mapper/checkCustomerNumberAvailability | Check if a customer number is available |
createContact() | POST /Contact | Create a new contact |
deleteContact() | DELETE /Contact/{contactId} | Deletes a contact |
findContactsByCustomFieldValue() | GET /Contact/Factory/findContactsByCustomFieldValue | Find contacts by custom field value |
getContactById() | GET /Contact/{contactId} | Find contact by ID |
getContactTabsItemCountById() | GET /Contact/{contactId}/getTabsItemCount | Get number of all items |
getContacts() | GET /Contact | Retrieve contacts |
getNextCustomerNumber() | GET /Contact/Factory/getNextCustomerNumber | Get next free customer number |
updateContact() | PUT /Contact/{contactId} | Update a existing contact |
contactCustomerNumberAvailabilityCheck($customer_number): \Itsmind\Sevdesk\Model\ContactCustomerNumberAvailabilityCheck200Response
Check if a customer number is available
Checks if a given customer number is available or already used.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$customer_number = 'customer_number_example'; // string | The customer number to be checked.
try {
$result = $apiInstance->contactCustomerNumberAvailabilityCheck($customer_number);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->contactCustomerNumberAvailabilityCheck: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
customer_number | string | The customer number to be checked. | [optional] |
\Itsmind\Sevdesk\Model\ContactCustomerNumberAvailabilityCheck200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createContact($model_contact): \Itsmind\Sevdesk\Model\CreateContact201Response
Create a new contact
Creates a new contact.
For adding addresses and communication ways, you will need to use the ContactAddress and CommunicationWay endpoints.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$model_contact = new \Itsmind\Sevdesk\Model\ModelContact(); // \Itsmind\Sevdesk\Model\ModelContact | Creation data
try {
$result = $apiInstance->createContact($model_contact);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->createContact: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
model_contact | \Itsmind\Sevdesk\Model\ModelContact | Creation data | [optional] |
\Itsmind\Sevdesk\Model\CreateContact201Response
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteContact($contact_id): \Itsmind\Sevdesk\Model\DeleteCheckAccount200Response
Deletes a contact
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$contact_id = 56; // int | Id of contact resource to delete
try {
$result = $apiInstance->deleteContact($contact_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->deleteContact: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
contact_id | int | Id of contact resource to delete |
\Itsmind\Sevdesk\Model\DeleteCheckAccount200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
findContactsByCustomFieldValue($value, $custom_field_name, $custom_field_setting_id, $custom_field_setting_object_name): \Itsmind\Sevdesk\Model\FindContactsByCustomFieldValue200Response
Find contacts by custom field value
Returns an array of contacts having a certain custom field value set.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$value = 'value_example'; // string | The value to be checked.
$custom_field_name = 'custom_field_name_example'; // string | The ContactCustomFieldSetting name, if no ContactCustomFieldSetting is provided.
$custom_field_setting_id = 'custom_field_setting_id_example'; // string | ID of ContactCustomFieldSetting for which the value has to be checked.
$custom_field_setting_object_name = ContactCustomFieldSetting; // string | Object name. Only needed if you also defined the ID of a ContactCustomFieldSetting.
try {
$result = $apiInstance->findContactsByCustomFieldValue($value, $custom_field_name, $custom_field_setting_id, $custom_field_setting_object_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->findContactsByCustomFieldValue: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
value | string | The value to be checked. | |
custom_field_name | string | The ContactCustomFieldSetting name, if no ContactCustomFieldSetting is provided. | |
custom_field_setting_id | string | ID of ContactCustomFieldSetting for which the value has to be checked. | [optional] |
custom_field_setting_object_name | string | Object name. Only needed if you also defined the ID of a ContactCustomFieldSetting. | [optional] [default to 'ContactCustomFieldSetting'] |
\Itsmind\Sevdesk\Model\FindContactsByCustomFieldValue200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getContactById($contact_id, $embed): \Itsmind\Sevdesk\Model\FindContactsByCustomFieldValue200Response
Find contact by ID
Returns a single contact
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$contact_id = 56; // int | ID of contact to return
$embed = array('embed_example'); // string[] | Get some additional information. Embed can handle multiple values, they must be separated by comma.
try {
$result = $apiInstance->getContactById($contact_id, $embed);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->getContactById: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
contact_id | int | ID of contact to return | |
embed | string[] | Get some additional information. Embed can handle multiple values, they must be separated by comma. | [optional] |
\Itsmind\Sevdesk\Model\FindContactsByCustomFieldValue200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getContactTabsItemCountById($contact_id): \Itsmind\Sevdesk\Model\GetContactTabsItemCountById200Response
Get number of all items
Get number of all invoices, orders, etc. of a specified contact
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$contact_id = 56; // int | ID of contact to return
try {
$result = $apiInstance->getContactTabsItemCountById($contact_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->getContactTabsItemCountById: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
contact_id | int | ID of contact to return |
\Itsmind\Sevdesk\Model\GetContactTabsItemCountById200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getContacts($depth, $customer_number, $count_all, $limit, $offset, $embed): \Itsmind\Sevdesk\Model\GetContacts200Response
Retrieve contacts
There are a multitude of parameter which can be used to filter.
A few of them are attached but for a complete list please check out this list
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$depth = 'depth_example'; // string | Defines if both organizations <b>and</b> persons should be returned.<br> '0' -> only organizations, '1' -> organizations and persons
$customer_number = 'customer_number_example'; // string | Retrieve all contacts with this customer number
$count_all = True; // bool | If all contacts should be counted
$limit = 56; // int | The max number of contacts
$offset = 56; // int | Which offset to start with
$embed = array('embed_example'); // string[] | Get some additional information. Embed can handle multiple values, they must be separated by comma.
try {
$result = $apiInstance->getContacts($depth, $customer_number, $count_all, $limit, $offset, $embed);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->getContacts: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
depth | string | Defines if both organizations <b>and</b> persons should be returned.<br> '0' -> only organizations, '1' -> organizations and persons | [optional] |
customer_number | string | Retrieve all contacts with this customer number | [optional] |
count_all | bool | If all contacts should be counted | [optional] |
limit | int | The max number of contacts | [optional] |
offset | int | Which offset to start with | [optional] |
embed | string[] | Get some additional information. Embed can handle multiple values, they must be separated by comma. | [optional] |
\Itsmind\Sevdesk\Model\GetContacts200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getNextCustomerNumber(): \Itsmind\Sevdesk\Model\GetNextCustomerNumber200Response
Get next free customer number
Retrieves the next available customer number. Avoids duplicates.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getNextCustomerNumber();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->getNextCustomerNumber: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Itsmind\Sevdesk\Model\GetNextCustomerNumber200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateContact($contact_id, $model_contact_update): \Itsmind\Sevdesk\Model\CreateContact201Response
Update a existing contact
Update a contact
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Itsmind\Sevdesk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Itsmind\Sevdesk\Api\ContactApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$contact_id = 56; // int | ID of contact to update
$model_contact_update = new \Itsmind\Sevdesk\Model\ModelContactUpdate(); // \Itsmind\Sevdesk\Model\ModelContactUpdate | Update data
try {
$result = $apiInstance->updateContact($contact_id, $model_contact_update);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactApi->updateContact: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
contact_id | int | ID of contact to update | |
model_contact_update | \Itsmind\Sevdesk\Model\ModelContactUpdate | Update data | [optional] |
\Itsmind\Sevdesk\Model\CreateContact201Response
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]