### Get All Stock Products Source: https://dynaccount.dk/support/api-dokumentation Retrieves a list of all stock products. ```http POST /v7/{API_ID}/{API_KEY}/action/get_stock_product_all HTTP/2 ``` -------------------------------- ### Get Stock Product Source: https://dynaccount.dk/support/api-dokumentation Retrieves information for a specific stock product. ```http POST /v7/{API_ID}/{API_KEY}/action/get_stock_product HTTP/2 ``` -------------------------------- ### Start Debt Collection Source: https://dynaccount.dk/support/api-dokumentation Initiates debt collection via POST request. ```http POST /v7/{API_ID}/{API_KEY}/action/start_debt_collection HTTP/2 ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/enclosure/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves enclosure details. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/enclosure/{ENTRY_ID} ### Description Retrieves the details of a specific accounting enclosure. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/enclosure/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a specific product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/product/{ENTRY_ID} ### Description Deletes the product identified by the ENTRY_ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (string) - Required - The unique identifier of the product. ``` -------------------------------- ### Get Stock Product Batches Source: https://dynaccount.dk/support/api-dokumentation Retrieves batch information for a specific stock product. ```http POST /v7/{API_ID}/{API_KEY}/action/get_stock_product_batches HTTP/2 ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/currency/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves currency details. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/currency/{ENTRY_ID} ### Description Retrieves the details of a specific currency entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/currency/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the currency entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves detailed information for a specific product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/product/{ENTRY_ID} ### Description Retrieves the details of a specific product identified by the ENTRY_ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (string) - Required - The unique identifier of the product. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_product_list/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves a list of debtor subscription products. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_product_list/{ENTRY_ID} ### Description Retrieves a list of subscription products associated with the entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_subscription_product_list/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/enclosure/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes an enclosure. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/enclosure/{ENTRY_ID} ### Description Deletes the specified enclosure. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/enclosure/{ENTRY_ID} ``` -------------------------------- ### Retrieve VAT codes via PHP and HTTP Source: https://dynaccount.dk/support/api-dokumentation Example showing how to fetch VAT codes using the PHP library and the corresponding raw HTTP request and response. ```PHP try{ require_once 'Account.php'; $Dyn = new \Dynaccount_API\Account($api_id, $api_key, $api_secret); $Dyn->connect(); $id = 0; $select = []; $where = []; $order = []; $limit = ''; $result = $Dyn->get('vatcode', $id, $select, $where, $order, $limit); print_r($result); $Dyn->disconnect(); } catch(\Dynaccount_API\Error $e){ echo 'Error: '.$e->getMessage(); } ``` ```HTTP GET /v7/{API_ID}/{API_KEY}/get/vatcode HTTP/2 ``` ```HTTP HTTP/2 200 OK ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_invoice_product_list/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves a list of debtor invoice products. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_invoice_product_list/{ENTRY_ID} ### Description Retrieves a list of debtor invoice products. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_invoice_product_list/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier - **API_KEY** (string) - Required - The API key - **ENTRY_ID** (int) - Required - The ID of the entry ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/draft/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves draft details. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/draft/{ENTRY_ID} ### Description Retrieves the details of a specific draft. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/draft/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_creditnote_product_list/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves the list of products for a credit note. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_creditnote_product_list/{ENTRY_ID} ### Description Retrieves the list of products associated with a credit note. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_creditnote_product_list/{ENTRY_ID} ``` -------------------------------- ### GET /v7/.../get/{table} Source: https://dynaccount.dk/support/api-dokumentation Fetches data from a specified table using optional SQL-like clauses for selection, filtering, ordering, and limiting. ```APIDOC ## GET /v7/.../get/{table} ### Description Fetches entries from the specified table. Supports selecting specific columns, filtering by field values, ordering results, and limiting the number of returned records. ### Method GET ### Endpoint /v7/.../get/{table} ### Parameters #### Path Parameters - **table** (string) - Required - The name of the resource table to query. #### Query Parameters - **select** (string) - Optional - Comma-separated list of columns to fetch. - **order** (string) - Optional - Field name to order by, optionally suffixed with 'desc' for descending order. - **limit** (string) - Optional - Range of records to fetch (e.g., '0,10'). - **{field_name}** (string) - Optional - Filter results where the field matches the provided value. ### Response #### Success Response (200) - **Content-Type** (application/json) - The response body contains the requested data. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor subscription product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_product/{ENTRY_ID} ### Description Retrieves the details of a specific debtor subscription product by its entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_subscription_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the subscription product entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/currency/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a currency entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/currency/{ENTRY_ID} ### Description Deletes a specific currency entry from the system. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/currency/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the currency entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_group_product_list/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves the product list for a debtor subscription group product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_group_product_list/{ENTRY_ID} ### Description Retrieves the list of products associated with a specific subscription group product entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_subscription_group_product_list/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the subscription group product list entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/vatcode Source: https://dynaccount.dk/support/api-dokumentation Fetches VAT code records from the system. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/vatcode ### Description Retrieves VAT code entries from the API. Supports filtering, ordering, and limiting results. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/vatcode ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API ID for authentication. - **API_KEY** (string) - Required - The API key for authentication. ### Response #### Success Response (200) - **result** (array) - The list of VAT code entries. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/debtor_quote_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a product from a debtor quote. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/debtor_quote_product/{ENTRY_ID} ### Description Deletes a specific product entry from a debtor quote. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/debtor_quote_product/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/creditor_invoice_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a creditor invoice product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/creditor_invoice_product/{ENTRY_ID} ### Description Retrieves the product details associated with a specific creditor invoice entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/creditor_invoice_product/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/followup/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details of a specific followup entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/followup/{ENTRY_ID} ### Description Retrieves the details of a specific followup entry by its ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/followup/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The ID of the followup entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/debtor_creditnote_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a product from a credit note. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/debtor_creditnote_product/{ENTRY_ID} ### Description Deletes the specified product entry from a credit note. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/debtor_creditnote_product/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/debtor_subscription_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a specific debtor subscription product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/debtor_subscription_product/{ENTRY_ID} ### Description Deletes the specified debtor subscription product entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/debtor_subscription_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the subscription product entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_order_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details of a specific debtor order product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_order_product/{ENTRY_ID} ### Description Retrieves the details of a specific debtor order product by its entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_order_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the debtor order product entry. ``` -------------------------------- ### Get Debtor Credit Note Product List Source: https://dynaccount.dk/support/api-dokumentation Retrieves the list of products for a specific debtor credit note. ```HTTP GET /v7/{API_ID}/{API_KEY}/get/debtor_creditnote_product_list/{ENTRY_ID} HTTP/2 ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/creditor_order_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a creditor order product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/creditor_order_product/{ENTRY_ID} ### Description Deletes a specific product from a creditor order. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/creditor_order_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the order product. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_group_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor subscription group product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_group_product/{ENTRY_ID} ### Description Retrieves the details of a specific product associated with a subscription group. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_subscription_group_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the subscription group product. ``` -------------------------------- ### Get Stock Product Serials Source: https://dynaccount.dk/support/api-dokumentation Retrieves serial number information for a specific stock product. ```http POST /v7/{API_ID}/{API_KEY}/action/get_stock_product_serials HTTP/2 ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/creditor/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific creditor. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/creditor/{ENTRY_ID} ### Description Retrieves the details of a specific creditor by its entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/creditor/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the creditor. ``` -------------------------------- ### HTTP GET Request Structure Source: https://dynaccount.dk/support/api-dokumentation Standard structure for a GET request to the Dynaccount API. ```http GET /v7/{API_ID}/{API_KEY}/get/vatcode HTTP/2 ``` -------------------------------- ### Fetch resources with filters Source: https://dynaccount.dk/support/api-dokumentation Demonstrates fetching specific fields, applying conditions, ordering, and limiting results. ```PHP try{ require_once 'Account.php'; $Dyn = new \Dynaccount_API\Account($api_id, $api_key, $api_secret); // Open connection $Dyn->connect(); // The resource you want to fetch $table = 'vatcode'; // Fetch entry by ID $id = 0; // Fetch custom fields $select = ['name','percent']; // Fetch by conditions $where = ['account_id_' => 14620]; // Order the result $order = ['name DESC']; // Limit the result $limit = '0,10' $result = $Dyn->get($table, $id, $select, $where, $order, $limit); print_r($result); // Close connection $Dyn->disconnect(); } catch(\Dynaccount_API\Error $e){ echo 'Error: '.$e->getMessage(); } ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_quote_product_list/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves the product list for a specific debtor quote. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_quote_product_list/{ENTRY_ID} ### Description Retrieves the product list associated with a specific debtor quote entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_quote_product_list/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the quote entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/creditor_order_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details of a specific creditor order product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/creditor_order_product/{ENTRY_ID} ### Description Retrieves the details of a specific product associated with a creditor order. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/creditor_order_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the order product. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor/{ENTRY_ID} ### Description Retrieves the full record of a specific debtor. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor/{ENTRY_ID} ``` -------------------------------- ### POST /v7/{API_ID}/{API_KEY}/action/start_debt_collection Source: https://dynaccount.dk/support/api-dokumentation Initiates debt collection. ```APIDOC ## POST /v7/{API_ID}/{API_KEY}/action/start_debt_collection ### Description Initiates debt collection. ### Method POST ### Endpoint /v7/{API_ID}/{API_KEY}/action/start_debt_collection ### Parameters #### Path Parameters - **API_ID** (string) - Required - **API_KEY** (string) - Required #### Request Body - **debtor_id** (int) - Required - **creditor_bank_code** (int) - Required - **creditor_bank_account** (int) - Required - **is_information_verified** (enum) - Required - **is_private** (enum) - Required - **debtor_name** (string) - Required - **debtor_attention** (string) - Optional - **debtor_address** (string) - Required - **debtor_zip** (int) - Required - **debtor_city** (string) - Required - **debtor_country_name** (string) - Required - **debtor_vatno** (string) - Optional - **debtor_phone** (string) - Optional - **is_email_collection** (enum) - Required - **is_objected** (enum) - Required - **debtor_email** (string) - Optional - **fee_amount** (int) - Optional - **payment_reminder_time** (date) - Optional ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/part/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific part entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/part/{ENTRY_ID} ### Description Retrieves the details of a specific part identified by ENTRY_ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/part/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the part. ``` -------------------------------- ### POST /v7/{API_ID}/{API_KEY}/action/get_stock_product_all Source: https://dynaccount.dk/support/api-dokumentation Retrieves all stock products. ```APIDOC ## POST /v7/{API_ID}/{API_KEY}/action/get_stock_product_all ### Description Retrieves all stock products. ### Method POST ### Endpoint /v7/{API_ID}/{API_KEY}/action/get_stock_product_all ``` -------------------------------- ### Generate X-Hash for GET Request in PHP Source: https://dynaccount.dk/support/api-dokumentation Calculate the X-Hash header by hashing the URL and API_SECRET. ```php $url = 'api.dynaccount.com/v7/{API_ID}/{API_KEY}/get/vatcode'; // X-Hash header: SHA-1 hash of URL and API_SECRET $header_x_hash = sha1( $url . '{API_SECRET}' ); ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/draft/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a draft. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/draft/{ENTRY_ID} ### Description Deletes the specified draft. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/draft/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_product_group_discount/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor product group discount entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_product_group_discount/{ENTRY_ID} ### Description Retrieves the details of a specific debtor product group discount by its entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_product_group_discount/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the discount entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/creditor_accounting_module/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a creditor accounting module. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/creditor_accounting_module/{ENTRY_ID} ### Description Retrieves the accounting module details for a specific creditor entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/creditor_accounting_module/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_reminder/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor reminder. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_reminder/{ENTRY_ID} ### Description Retrieves information regarding a specific debtor reminder entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_reminder/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the reminder entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/debtor_subscription_group_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a debtor subscription group product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/debtor_subscription_group_product/{ENTRY_ID} ### Description Deletes a specific subscription group product. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/debtor_subscription_group_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the subscription group product. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/dimension/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a dimension. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/dimension/{ENTRY_ID} ### Description Deletes the specified dimension. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/dimension/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/debtor_order_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a specific debtor order product. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/debtor_order_product/{ENTRY_ID} ### Description Deletes a specific debtor order product entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/debtor_order_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the debtor order product entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_invoice_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor invoice product entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_invoice_product/{ENTRY_ID} ### Description Retrieves details for a specific debtor invoice product entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_invoice_product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier - **API_KEY** (string) - Required - The API key - **ENTRY_ID** (int) - Required - The ID of the invoice product entry ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/account/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific account entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/account/{ENTRY_ID} ### Description Retrieves the details of a specific account by its entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/account/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the account entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/part/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a specific part. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/part/{ENTRY_ID} ### Description Deletes the part identified by ENTRY_ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/part/{ENTRY_ID} ``` -------------------------------- ### Account::get Source: https://dynaccount.dk/support/api-dokumentation Fetches resources from the API using the PHP library. ```APIDOC ## Account::get ### Description Fetches a specific resource from the API with optional filtering, selection of fields, ordering, and pagination. ### Parameters - **table** (string) - Required - The resource name to fetch. - **id** (int) - Required - The ID of the entry to fetch (0 for all). - **select** (array) - Optional - List of fields to retrieve. - **where** (array) - Optional - Conditions for filtering. - **order** (array) - Optional - Ordering criteria. - **limit** (string) - Optional - Pagination limit. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/data_voucher/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific data voucher. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/data_voucher/{ENTRY_ID} ### Description Retrieves the details of a specific data voucher by its entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/data_voucher/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the voucher entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_quote_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific product within a debtor quote. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_quote_product/{ENTRY_ID} ### Description Retrieves the details of a specific product associated with a debtor quote. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_quote_product/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor subscription. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription/{ENTRY_ID} ### Description Retrieves detailed information about a specific debtor subscription. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_subscription/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the subscription entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_creditnote_product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific product associated with a credit note. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_creditnote_product/{ENTRY_ID} ### Description Retrieves product details for a credit note entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_creditnote_product/{ENTRY_ID} ``` -------------------------------- ### Account::action Source: https://dynaccount.dk/support/api-dokumentation Executes a specific system action. ```APIDOC ## Account::action ### Description Executes a predefined system operation, such as sending an invoice. ### Parameters - **action** (string) - Required - The name of the action to perform. - **params** (array) - Required - Parameters required for the action. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_invoice_match/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves matching information for a debtor invoice. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_invoice_match/{ENTRY_ID} ### Description Retrieves the matching status and details for a specific debtor invoice entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_invoice_match/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The unique identifier of the debtor invoice match. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/dimension/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves dimension details. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/dimension/{ENTRY_ID} ### Description Retrieves the name and ID of a specific dimension. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/dimension/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/debtor_order/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific debtor order. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/debtor_order/{ENTRY_ID} ### Description Retrieves details for a specific debtor order. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/debtor_order/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier - **API_KEY** (string) - Required - The API key - **ENTRY_ID** (int) - Required - The ID of the order ``` -------------------------------- ### POST /v7/{API_ID}/{API_KEY}/put/product/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Updates an existing product. ```APIDOC ## POST /v7/{API_ID}/{API_KEY}/put/product/{ENTRY_ID} ### Description Updates the details of an existing product. ### Method POST ### Endpoint /v7/{API_ID}/{API_KEY}/put/product/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (string) - Required - The unique identifier of the product. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/creditor_group/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a creditor group. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/creditor_group/{ENTRY_ID} ### Description Deletes a specific creditor group record. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/creditor_group/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the creditor group. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/creditor_order_product_serial/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details of a specific product serial number. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/creditor_order_product_serial/{ENTRY_ID} ### Description Retrieves the details of a specific product serial number entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/creditor_order_product_serial/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the serial entry. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/creditor_invoice_match/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a creditor invoice match. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/creditor_invoice_match/{ENTRY_ID} ### Description Retrieves the matching details for a specific creditor invoice entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/creditor_invoice_match/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/creditor_order/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details of a specific creditor order. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/creditor_order/{ENTRY_ID} ### Description Retrieves the details of a specific creditor order by its entry ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/creditor_order/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the creditor order. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/creditor/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a specific creditor. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/creditor/{ENTRY_ID} ### Description Deletes a specific creditor record. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/creditor/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The unique identifier of the creditor. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/year/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific fiscal year entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/year/{ENTRY_ID} ### Description Retrieves the details of a specific fiscal year entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/year/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key. - **ENTRY_ID** (int) - Required - The ID of the year entry. ``` -------------------------------- ### Create or update resources Source: https://dynaccount.dk/support/api-dokumentation Uses the put method to create a new entry or update an existing one by ID. ```PHP try{ require_once 'Account.php'; $Dyn = new \Dynaccount_API\Account($api_id, $api_key, $api_secret); // Open connection $Dyn->connect(); // The resource you want to create/update $table = 'account'; // If this is empty (zero) you will create a new entry $id = 0; // Input data $fields = [ 'account_id_' => 1110, 'name' => 'Kontonavn', 'type' => 'BALANCE', 'is_monitored' => 'NO', 'vatcode_name' => '', 'sum_account_id_' => '', 'ref_currency_name' => 'dkk', 'is_dimension' => 'NO' ]; $result = $Dyn->put($table, $id, $fields); print_r($result); // Close Connection $Dyn->disconnect(); } catch(\Dynaccount_API\Error $e){ echo 'Error: '.$e->getMessage(); } ``` -------------------------------- ### Account::put Source: https://dynaccount.dk/support/api-dokumentation Creates or updates a resource entry. ```APIDOC ## Account::put ### Description Creates a new entry or updates an existing one in the specified table. ### Parameters - **table** (string) - Required - The resource name. - **id** (int) - Required - The ID of the entry to update, or 0 to create a new one. - **fields** (array) - Required - The data fields to save. ``` -------------------------------- ### Retrieve Debtor Subscription Product List Source: https://dynaccount.dk/support/api-dokumentation Retrieve a list of debtor subscription products. ```http GET /v7/{API_ID}/{API_KEY}/get/debtor_subscription_product_list/{ENTRY_ID} HTTP/2 ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/document/quote/{DOCUMENT_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves a quote document by its ID. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/document/quote/{DOCUMENT_ID} ### Description Retrieves a quote document by its ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/document/quote/{DOCUMENT_ID} ### Parameters #### Path Parameters - **DOCUMENT_ID** (string) - Required - The quote number. ``` -------------------------------- ### POST /v7/{API_ID}/{API_KEY}/action/get_stock_product_batches Source: https://dynaccount.dk/support/api-dokumentation Retrieves batches for a specific stock product. ```APIDOC ## POST /v7/{API_ID}/{API_KEY}/action/get_stock_product_batches ### Description Retrieves batches for a specific stock product. ### Method POST ### Endpoint /v7/{API_ID}/{API_KEY}/action/get_stock_product_batches ### Parameters #### Request Body - **product_id** (int) - Required - The ID of the product. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/document/order/{DOCUMENT_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves an order document by its ID. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/document/order/{DOCUMENT_ID} ### Description Retrieves an order document by its ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/document/order/{DOCUMENT_ID} ### Parameters #### Path Parameters - **DOCUMENT_ID** (string) - Required - The order number. ``` -------------------------------- ### POST /v7/{API_ID}/{API_KEY}/action/get_stock_product Source: https://dynaccount.dk/support/api-dokumentation Retrieves details for a specific stock product. ```APIDOC ## POST /v7/{API_ID}/{API_KEY}/action/get_stock_product ### Description Retrieves details for a specific stock product. ### Method POST ### Endpoint /v7/{API_ID}/{API_KEY}/action/get_stock_product ### Parameters #### Request Body - **product_id** (int) - Required - The ID of the product. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/document/invoice/{DOCUMENT_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves an invoice document by its ID. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/document/invoice/{DOCUMENT_ID} ### Description Retrieves an invoice document by its ID. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/document/invoice/{DOCUMENT_ID} ### Parameters #### Path Parameters - **DOCUMENT_ID** (string) - Required - The invoice number. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/get/payment/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Retrieves payment term details. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/get/payment/{ENTRY_ID} ### Description Retrieves the configuration for a specific payment term. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/get/payment/{ENTRY_ID} ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/followup/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a specific followup entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/followup/{ENTRY_ID} ### Description Deletes a specific followup entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/followup/{ENTRY_ID} ### Parameters #### Path Parameters - **API_ID** (string) - Required - The API identifier. - **API_KEY** (string) - Required - The API key for authentication. - **ENTRY_ID** (int) - Required - The ID of the followup entry to delete. ``` -------------------------------- ### GET /v7/{API_ID}/{API_KEY}/delete/debtor_product_group_discount/{ENTRY_ID} Source: https://dynaccount.dk/support/api-dokumentation Deletes a specific debtor product group discount entry. ```APIDOC ## GET /v7/{API_ID}/{API_KEY}/delete/debtor_product_group_discount/{ENTRY_ID} ### Description Deletes a specific debtor product group discount entry. ### Method GET ### Endpoint /v7/{API_ID}/{API_KEY}/delete/debtor_product_group_discount/{ENTRY_ID} ``` -------------------------------- ### POST /v7/{API_ID}/{API_KEY}/action/activate_debtor_subscription Source: https://dynaccount.dk/support/api-dokumentation Activates a debtor subscription. ```APIDOC ## POST /v7/{API_ID}/{API_KEY}/action/activate_debtor_subscription ### Description Activates a specific debtor subscription. ### Method POST ### Endpoint /v7/{API_ID}/{API_KEY}/action/activate_debtor_subscription ### Parameters #### Request Body - **subscription_id** (int) - Required - The ID of the subscription to activate. ```