Backend documentation

Authentication

Authentication in OS2BOS is based on SAML 2.0 single sign-on. Support for this is implemented through the module PySAML2.

Once a user has been authenticated, a session is created containing the attributes given to us from the IdP, e.g. the Active Directory groups the user belongs to.

SAML based single sign-on (SSO)

SAML SSO delegates the login process to the IdP, and as such, requires an IdP supporting SAML single sign-on.

Settings related to SAML SSO can be found in the SAML2_AUTH object in settings.py.

User setup

In local development and test, SAML SSO is used with SimpleSamlPHP as idP.

Users and user profiles are defined in dev-environment/authsources.php for local development. If you wish to add a new user, you need to add an entry to the file following this template:

'<brugernavn>:<password>' => array(
     'email' => '<email_adresse>',
     'username' => '<brugernavn>',
     'first_name' => '<fornavn>',
     'last_name' => '<efternavn>',
     'team' => '<team (navn)>',
     'bos_profile' => '<profil>'
),

A user that is not allowed to use OS2BOS, must have a SAML-token with an empty or missing bos_profile entry.

User profiles

There are five user profiles corresponding to five different levels of permissions.

  • “readonly” - the user can only read, not write.

  • “edit” - the user can both read and write, but cannot perform grant operations.

  • “grant” - the user can both read, write and perform grant operations, but cannot access Django admin.

  • “workflow_engine” - the user can both read, write and perform grant operations, and can access only classifications in Django admin.

  • “admin” - the user can read, write, perform grant operations and access Django admin.

Integrations

Serviceplatformen

We use Serviceplatformen to fetch information from the CPR register. Support for this is implemented through the module service_person_stamdata_udvidet.

Settings relevant to Serviceplatformen can be found in the SERVICEPLATFORM_UUIDS object and the SERVICEPLATFORM_CERTIFICATE_PATH, USE_SERVICEPLATFORM, USE_SERVICEPLATFORM_PROD keys in settings.py.

Virk.dk

We use Virk.dk to fetch information from their CVR register. Support for this is implemented through the module virk.dk.

Settings relevant to Virk.dk are the USE_VIRK, VIRK_USER, VIRK_PASS and VIRK_URL keys found in settings.py.

PRISME

OS2BOS can export daily payment files for import into the PRISME economy system. The format of the files are based on KMD’s interface specification GF200001Q for creditor records (transaction type G68).

Generating database documentation

The database documentation can be found in an online version here: os2bosdocs.

We generate database documentation using the tool SchemaSpy. The following commands are run from inside the container as root: docker-compose exec -u 0 bev bash

Install a JRE:

apt-get install default-jre

Install graphviz:

apt-get install graphviz

Download the latest schemaspy.jar

wget https://github.com/schemaspy/schemaspy/releases/download/v6.1.0/schemaspy-6.1.0.jar -O schemaspy.jar

Download the latest JDBC for Postgresql:

wget https://jdbc.postgresql.org/download/postgresql-42.2.8.jar -O postgresql.jar

Run SchemaSpy against the database:

java -jar schemaspy.jar -dp postgresql.jar -t pgsql -s public -db bev -host db -u bev -p bev -o er_html

The documentation is now found in the er_html folder.

Django debugging

To debug end-to-end you can set the breakpoint() you want and use docker attach:

docker attach bevillingsplatform_bev_1

Release procedure

We manage releases using the Gitflow model.

  • Create a release branch for the release, e.g. release/1.0.0.

  • Bump the version and changelog in NEWS.rst and VERSION according to Semantic Versioning.

  • Optional: Check our dependencies for new security bugfixes.

  • Optional: In case of API changes, save the OpenAPI schema openapi.yml from <OS2BOS URL>/api/openapi/?format=api for use in documentation.

  • Optional: In case of model changes, update the database model graph by running tox -e graph for use in documentation.

  • Test the release and verify that it doesn’t contain any breaking bugs or regressions.

  • Create an rc tag, e.g. 1.0.0-rc1 on the release branch to make it deployable on staging.

  • In case of further development, make pull requests against the release branch and create a new rc tag.

  • Proceed with development and rc-tagging on the release branch until the customer is happy.

  • Create a pull request from the release branch to master for review of VERSION and ǸEWS.rst bump.

  • Create a pull request from the release branch to develop.

  • Merge the pull requests.

  • Create a release tag, e.g. 1.0.0 from master.

  • Push develop, master and tags to the OS2BOS Github as the new core version.

  • Delete the release branch.

API documentation

GET /api/cases/

Viewset exposing Case in the REST API.

Note the custom actions history and change_case_worker.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • cpr_number (string) – cpr_number

  • name (string) – name

  • case_worker (string) – Sagsbehandler

  • district (string) – district

  • paying_municipality (string) – paying_municipality

  • acting_municipality (string) – acting_municipality

  • residence_municipality (string) – residence_municipality

  • target_group (string) – target_group

  • effort_step (string) – effort_step

  • scaling_step (string) – scaling_step

  • assessment_comment (string) – assessment_comment

  • efforts (string) – efforts

  • note (string) – note

  • expired (string) – Udgået

Example request:

GET /api/cases/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "expired": "string",
            "num_ongoing_appropriations": "string",
            "num_ongoing_draft_or_expected_appropriations": "string",
            "team": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "sbsys_id": "string",
            "cpr_number": "string",
            "name": "string",
            "scaling_step": 1,
            "assessment_comment": "string",
            "note": "string",
            "case_worker": 1,
            "district": 1,
            "paying_municipality": 1,
            "acting_municipality": 1,
            "residence_municipality": 1,
            "target_group": 1,
            "effort_step": 1,
            "efforts": [
                1
            ]
        }
    ]
    

POST /api/cases/

Viewset exposing Case in the REST API.

Note the custom actions history and change_case_worker.

Example request:

POST /api/cases/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "cpr_number": "string",
    "name": "string",
    "scaling_step": 1,
    "assessment_comment": "string",
    "note": "string",
    "case_worker": 1,
    "district": 1,
    "paying_municipality": 1,
    "acting_municipality": 1,
    "residence_municipality": 1,
    "target_group": 1,
    "effort_step": 1,
    "efforts": [
        1
    ]
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "expired": "string",
        "num_ongoing_appropriations": "string",
        "num_ongoing_draft_or_expected_appropriations": "string",
        "team": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "cpr_number": "string",
        "name": "string",
        "scaling_step": 1,
        "assessment_comment": "string",
        "note": "string",
        "case_worker": 1,
        "district": 1,
        "paying_municipality": 1,
        "acting_municipality": 1,
        "residence_municipality": 1,
        "target_group": 1,
        "effort_step": 1,
        "efforts": [
            1
        ]
    }
    

GET /api/cases/{id}/

Viewset exposing Case in the REST API.

Note the custom actions history and change_case_worker.

Parameters
  • id (string) – A unique integer value identifying this sag.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • cpr_number (string) – cpr_number

  • name (string) – name

  • case_worker (string) – Sagsbehandler

  • district (string) – district

  • paying_municipality (string) – paying_municipality

  • acting_municipality (string) – acting_municipality

  • residence_municipality (string) – residence_municipality

  • target_group (string) – target_group

  • effort_step (string) – effort_step

  • scaling_step (string) – scaling_step

  • assessment_comment (string) – assessment_comment

  • efforts (string) – efforts

  • note (string) – note

  • expired (string) – Udgået

Example request:

GET /api/cases/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "expired": "string",
        "num_ongoing_appropriations": "string",
        "num_ongoing_draft_or_expected_appropriations": "string",
        "team": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "cpr_number": "string",
        "name": "string",
        "scaling_step": 1,
        "assessment_comment": "string",
        "note": "string",
        "case_worker": 1,
        "district": 1,
        "paying_municipality": 1,
        "acting_municipality": 1,
        "residence_municipality": 1,
        "target_group": 1,
        "effort_step": 1,
        "efforts": [
            1
        ]
    }
    

PUT /api/cases/{id}/

Viewset exposing Case in the REST API.

Note the custom actions history and change_case_worker.

Parameters
  • id (string) – A unique integer value identifying this sag.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • cpr_number (string) – cpr_number

  • name (string) – name

  • case_worker (string) – Sagsbehandler

  • district (string) – district

  • paying_municipality (string) – paying_municipality

  • acting_municipality (string) – acting_municipality

  • residence_municipality (string) – residence_municipality

  • target_group (string) – target_group

  • effort_step (string) – effort_step

  • scaling_step (string) – scaling_step

  • assessment_comment (string) – assessment_comment

  • efforts (string) – efforts

  • note (string) – note

  • expired (string) – Udgået

Example request:

PUT /api/cases/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "cpr_number": "string",
    "name": "string",
    "scaling_step": 1,
    "assessment_comment": "string",
    "note": "string",
    "case_worker": 1,
    "district": 1,
    "paying_municipality": 1,
    "acting_municipality": 1,
    "residence_municipality": 1,
    "target_group": 1,
    "effort_step": 1,
    "efforts": [
        1
    ]
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "expired": "string",
        "num_ongoing_appropriations": "string",
        "num_ongoing_draft_or_expected_appropriations": "string",
        "team": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "cpr_number": "string",
        "name": "string",
        "scaling_step": 1,
        "assessment_comment": "string",
        "note": "string",
        "case_worker": 1,
        "district": 1,
        "paying_municipality": 1,
        "acting_municipality": 1,
        "residence_municipality": 1,
        "target_group": 1,
        "effort_step": 1,
        "efforts": [
            1
        ]
    }
    

PATCH /api/cases/{id}/

Viewset exposing Case in the REST API.

Note the custom actions history and change_case_worker.

Parameters
  • id (string) – A unique integer value identifying this sag.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • cpr_number (string) – cpr_number

  • name (string) – name

  • case_worker (string) – Sagsbehandler

  • district (string) – district

  • paying_municipality (string) – paying_municipality

  • acting_municipality (string) – acting_municipality

  • residence_municipality (string) – residence_municipality

  • target_group (string) – target_group

  • effort_step (string) – effort_step

  • scaling_step (string) – scaling_step

  • assessment_comment (string) – assessment_comment

  • efforts (string) – efforts

  • note (string) – note

  • expired (string) – Udgået

Example request:

PATCH /api/cases/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "cpr_number": "string",
    "name": "string",
    "scaling_step": 1,
    "assessment_comment": "string",
    "note": "string",
    "case_worker": 1,
    "district": 1,
    "paying_municipality": 1,
    "acting_municipality": 1,
    "residence_municipality": 1,
    "target_group": 1,
    "effort_step": 1,
    "efforts": [
        1
    ]
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "expired": "string",
        "num_ongoing_appropriations": "string",
        "num_ongoing_draft_or_expected_appropriations": "string",
        "team": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "cpr_number": "string",
        "name": "string",
        "scaling_step": 1,
        "assessment_comment": "string",
        "note": "string",
        "case_worker": 1,
        "district": 1,
        "paying_municipality": 1,
        "acting_municipality": 1,
        "residence_municipality": 1,
        "target_group": 1,
        "effort_step": 1,
        "efforts": [
            1
        ]
    }
    

DELETE /api/cases/{id}/

Viewset exposing Case in the REST API.

Note the custom actions history and change_case_worker.

Parameters
  • id (string) – A unique integer value identifying this sag.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • cpr_number (string) – cpr_number

  • name (string) – name

  • case_worker (string) – Sagsbehandler

  • district (string) – district

  • paying_municipality (string) – paying_municipality

  • acting_municipality (string) – acting_municipality

  • residence_municipality (string) – residence_municipality

  • target_group (string) – target_group

  • effort_step (string) – effort_step

  • scaling_step (string) – scaling_step

  • assessment_comment (string) – assessment_comment

  • efforts (string) – efforts

  • note (string) – note

  • expired (string) – Udgået

Status Codes
GET /api/cases/{id}/history/

Fetch history of HistoricalCases which we use as assessments.

Parameters
  • id (string) – A unique integer value identifying this sag.

Example request:

GET /api/cases/{id}/history/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "expired": "string",
        "num_ongoing_appropriations": "string",
        "num_ongoing_draft_or_expected_appropriations": "string",
        "team": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "cpr_number": "string",
        "name": "string",
        "scaling_step": 1,
        "assessment_comment": "string",
        "note": "string",
        "case_worker": 1,
        "district": 1,
        "paying_municipality": 1,
        "acting_municipality": 1,
        "residence_municipality": 1,
        "target_group": 1,
        "effort_step": 1,
        "efforts": [
            1
        ]
    }
    

GET /api/appropriations/

Expose appropriations in REST API.

Note the custom action grant for approving an appropriation and all its activities.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • section (string) – section

  • case (string) – Sag

  • note (string) – note

  • main_activity__details__id (string) – Aktivitetsdetalje for hovedaktivitet

Example request:

GET /api/appropriations/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "status": "string",
            "granted_from_date": "string",
            "granted_to_date": "string",
            "case__cpr_number": "string",
            "case__name": "string",
            "case__sbsys_id": "string",
            "num_ongoing_draft_or_expected_activities": "string",
            "num_ongoing_activities": "string",
            "main_activity__details__id": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "sbsys_id": "string",
            "note": "string",
            "section": 1,
            "case": 1
        }
    ]
    

POST /api/appropriations/

Expose appropriations in REST API.

Note the custom action grant for approving an appropriation and all its activities.

Example request:

POST /api/appropriations/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "note": "string",
    "section": 1,
    "case": 1
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "status": "string",
        "granted_from_date": "string",
        "granted_to_date": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "case__sbsys_id": "string",
        "num_ongoing_draft_or_expected_activities": "string",
        "num_ongoing_activities": "string",
        "main_activity": {
            "id": 1,
            "monthly_payment_plan": "string",
            "total_cost": "string",
            "total_cost_this_year": "string",
            "total_cost_full_year": "string",
            "total_granted_this_year": "string",
            "total_expected_this_year": "string",
            "payment_plan": {
                "id": 1,
                "payments": [
                    {
                        "id": 1,
                        "account_string": "string",
                        "account_alias": "string",
                        "payment_schedule__payment_id": "string",
                        "case__cpr_number": "string",
                        "case__name": "string",
                        "activity__id": "string",
                        "activity__status": "string",
                        "activity__details__id": "string",
                        "payment_schedule__fictive": "string",
                        "is_payable_manually": "string",
                        "date": "2021-12-08",
                        "recipient_type": "INTERNAL",
                        "recipient_id": "string",
                        "recipient_name": "string",
                        "payment_method": "CASH",
                        "amount": "string",
                        "paid_amount": "string",
                        "paid": true,
                        "paid_date": "2021-12-08",
                        "note": "string",
                        "payment_schedule": 1
                    }
                ],
                "price_per_unit": {
                    "id": 1,
                    "rates_per_date": [
                        {
                            "rate": "string",
                            "start_date": "2021-12-08",
                            "end_date": "2021-12-08",
                            "changed_date": "2021-12-08T10:56:12.898839",
                            "changed_by": 1
                        }
                    ],
                    "current_amount": "string",
                    "amount": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08"
                },
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "payment_frequency": "DAILY",
                "payment_date": "2021-12-08",
                "payment_day_of_month": 1,
                "payment_type": "ONE_TIME_PAYMENT",
                "payment_units": "string",
                "payment_amount": "string",
                "fictive": true,
                "payment_id": 1,
                "payment_cost_type": "FIXED",
                "payment_method_details": 1,
                "payment_rate": "string"
            },
            "details__name": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "status": "DRAFT",
            "approval_note": "string",
            "appropriation_date": "2021-12-08",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08",
            "activity_type": "MAIN_ACTIVITY",
            "note": "string",
            "details": 1,
            "approval_level": 1,
            "approval_user": 1,
            "modifies": 1,
            "appropriation": 1,
            "service_provider": 1
        },
        "activities": "string",
        "total_granted_this_year": "string",
        "total_granted_full_year": "string",
        "total_expected_this_year": "string",
        "total_expected_full_year": "string",
        "total_cost_expected": "string",
        "total_cost_granted": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "note": "string",
        "section": 1,
        "case": 1
    }
    

GET /api/appropriations/{id}/

Expose appropriations in REST API.

Note the custom action grant for approving an appropriation and all its activities.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • section (string) – section

  • case (string) – Sag

  • note (string) – note

  • main_activity__details__id (string) – Aktivitetsdetalje for hovedaktivitet

Example request:

GET /api/appropriations/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "status": "string",
        "granted_from_date": "string",
        "granted_to_date": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "case__sbsys_id": "string",
        "num_ongoing_draft_or_expected_activities": "string",
        "num_ongoing_activities": "string",
        "main_activity": {
            "id": 1,
            "monthly_payment_plan": "string",
            "total_cost": "string",
            "total_cost_this_year": "string",
            "total_cost_full_year": "string",
            "total_granted_this_year": "string",
            "total_expected_this_year": "string",
            "payment_plan": {
                "id": 1,
                "payments": [
                    {
                        "id": 1,
                        "account_string": "string",
                        "account_alias": "string",
                        "payment_schedule__payment_id": "string",
                        "case__cpr_number": "string",
                        "case__name": "string",
                        "activity__id": "string",
                        "activity__status": "string",
                        "activity__details__id": "string",
                        "payment_schedule__fictive": "string",
                        "is_payable_manually": "string",
                        "date": "2021-12-08",
                        "recipient_type": "INTERNAL",
                        "recipient_id": "string",
                        "recipient_name": "string",
                        "payment_method": "CASH",
                        "amount": "string",
                        "paid_amount": "string",
                        "paid": true,
                        "paid_date": "2021-12-08",
                        "note": "string",
                        "payment_schedule": 1
                    }
                ],
                "price_per_unit": {
                    "id": 1,
                    "rates_per_date": [
                        {
                            "rate": "string",
                            "start_date": "2021-12-08",
                            "end_date": "2021-12-08",
                            "changed_date": "2021-12-08T10:56:12.898839",
                            "changed_by": 1
                        }
                    ],
                    "current_amount": "string",
                    "amount": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08"
                },
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "payment_frequency": "DAILY",
                "payment_date": "2021-12-08",
                "payment_day_of_month": 1,
                "payment_type": "ONE_TIME_PAYMENT",
                "payment_units": "string",
                "payment_amount": "string",
                "fictive": true,
                "payment_id": 1,
                "payment_cost_type": "FIXED",
                "payment_method_details": 1,
                "payment_rate": "string"
            },
            "details__name": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "status": "DRAFT",
            "approval_note": "string",
            "appropriation_date": "2021-12-08",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08",
            "activity_type": "MAIN_ACTIVITY",
            "note": "string",
            "details": 1,
            "approval_level": 1,
            "approval_user": 1,
            "modifies": 1,
            "appropriation": 1,
            "service_provider": 1
        },
        "activities": "string",
        "total_granted_this_year": "string",
        "total_granted_full_year": "string",
        "total_expected_this_year": "string",
        "total_expected_full_year": "string",
        "total_cost_expected": "string",
        "total_cost_granted": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "note": "string",
        "section": 1,
        "case": 1
    }
    

PUT /api/appropriations/{id}/

Expose appropriations in REST API.

Note the custom action grant for approving an appropriation and all its activities.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • section (string) – section

  • case (string) – Sag

  • note (string) – note

  • main_activity__details__id (string) – Aktivitetsdetalje for hovedaktivitet

Example request:

PUT /api/appropriations/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "note": "string",
    "section": 1,
    "case": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "status": "string",
        "granted_from_date": "string",
        "granted_to_date": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "case__sbsys_id": "string",
        "num_ongoing_draft_or_expected_activities": "string",
        "num_ongoing_activities": "string",
        "main_activity": {
            "id": 1,
            "monthly_payment_plan": "string",
            "total_cost": "string",
            "total_cost_this_year": "string",
            "total_cost_full_year": "string",
            "total_granted_this_year": "string",
            "total_expected_this_year": "string",
            "payment_plan": {
                "id": 1,
                "payments": [
                    {
                        "id": 1,
                        "account_string": "string",
                        "account_alias": "string",
                        "payment_schedule__payment_id": "string",
                        "case__cpr_number": "string",
                        "case__name": "string",
                        "activity__id": "string",
                        "activity__status": "string",
                        "activity__details__id": "string",
                        "payment_schedule__fictive": "string",
                        "is_payable_manually": "string",
                        "date": "2021-12-08",
                        "recipient_type": "INTERNAL",
                        "recipient_id": "string",
                        "recipient_name": "string",
                        "payment_method": "CASH",
                        "amount": "string",
                        "paid_amount": "string",
                        "paid": true,
                        "paid_date": "2021-12-08",
                        "note": "string",
                        "payment_schedule": 1
                    }
                ],
                "price_per_unit": {
                    "id": 1,
                    "rates_per_date": [
                        {
                            "rate": "string",
                            "start_date": "2021-12-08",
                            "end_date": "2021-12-08",
                            "changed_date": "2021-12-08T10:56:12.898839",
                            "changed_by": 1
                        }
                    ],
                    "current_amount": "string",
                    "amount": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08"
                },
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "payment_frequency": "DAILY",
                "payment_date": "2021-12-08",
                "payment_day_of_month": 1,
                "payment_type": "ONE_TIME_PAYMENT",
                "payment_units": "string",
                "payment_amount": "string",
                "fictive": true,
                "payment_id": 1,
                "payment_cost_type": "FIXED",
                "payment_method_details": 1,
                "payment_rate": "string"
            },
            "details__name": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "status": "DRAFT",
            "approval_note": "string",
            "appropriation_date": "2021-12-08",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08",
            "activity_type": "MAIN_ACTIVITY",
            "note": "string",
            "details": 1,
            "approval_level": 1,
            "approval_user": 1,
            "modifies": 1,
            "appropriation": 1,
            "service_provider": 1
        },
        "activities": "string",
        "total_granted_this_year": "string",
        "total_granted_full_year": "string",
        "total_expected_this_year": "string",
        "total_expected_full_year": "string",
        "total_cost_expected": "string",
        "total_cost_granted": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "note": "string",
        "section": 1,
        "case": 1
    }
    

PATCH /api/appropriations/{id}/

Expose appropriations in REST API.

Note the custom action grant for approving an appropriation and all its activities.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • section (string) – section

  • case (string) – Sag

  • note (string) – note

  • main_activity__details__id (string) – Aktivitetsdetalje for hovedaktivitet

Example request:

PATCH /api/appropriations/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "note": "string",
    "section": 1,
    "case": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "status": "string",
        "granted_from_date": "string",
        "granted_to_date": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "case__sbsys_id": "string",
        "num_ongoing_draft_or_expected_activities": "string",
        "num_ongoing_activities": "string",
        "main_activity": {
            "id": 1,
            "monthly_payment_plan": "string",
            "total_cost": "string",
            "total_cost_this_year": "string",
            "total_cost_full_year": "string",
            "total_granted_this_year": "string",
            "total_expected_this_year": "string",
            "payment_plan": {
                "id": 1,
                "payments": [
                    {
                        "id": 1,
                        "account_string": "string",
                        "account_alias": "string",
                        "payment_schedule__payment_id": "string",
                        "case__cpr_number": "string",
                        "case__name": "string",
                        "activity__id": "string",
                        "activity__status": "string",
                        "activity__details__id": "string",
                        "payment_schedule__fictive": "string",
                        "is_payable_manually": "string",
                        "date": "2021-12-08",
                        "recipient_type": "INTERNAL",
                        "recipient_id": "string",
                        "recipient_name": "string",
                        "payment_method": "CASH",
                        "amount": "string",
                        "paid_amount": "string",
                        "paid": true,
                        "paid_date": "2021-12-08",
                        "note": "string",
                        "payment_schedule": 1
                    }
                ],
                "price_per_unit": {
                    "id": 1,
                    "rates_per_date": [
                        {
                            "rate": "string",
                            "start_date": "2021-12-08",
                            "end_date": "2021-12-08",
                            "changed_date": "2021-12-08T10:56:12.898839",
                            "changed_by": 1
                        }
                    ],
                    "current_amount": "string",
                    "amount": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08"
                },
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "payment_frequency": "DAILY",
                "payment_date": "2021-12-08",
                "payment_day_of_month": 1,
                "payment_type": "ONE_TIME_PAYMENT",
                "payment_units": "string",
                "payment_amount": "string",
                "fictive": true,
                "payment_id": 1,
                "payment_cost_type": "FIXED",
                "payment_method_details": 1,
                "payment_rate": "string"
            },
            "details__name": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "status": "DRAFT",
            "approval_note": "string",
            "appropriation_date": "2021-12-08",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08",
            "activity_type": "MAIN_ACTIVITY",
            "note": "string",
            "details": 1,
            "approval_level": 1,
            "approval_user": 1,
            "modifies": 1,
            "appropriation": 1,
            "service_provider": 1
        },
        "activities": "string",
        "total_granted_this_year": "string",
        "total_granted_full_year": "string",
        "total_expected_this_year": "string",
        "total_expected_full_year": "string",
        "total_cost_expected": "string",
        "total_cost_granted": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "note": "string",
        "section": 1,
        "case": 1
    }
    

DELETE /api/appropriations/{id}/

Expose appropriations in REST API.

Note the custom action grant for approving an appropriation and all its activities.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • sbsys_id (string) – sbsys_id

  • section (string) – section

  • case (string) – Sag

  • note (string) – note

  • main_activity__details__id (string) – Aktivitetsdetalje for hovedaktivitet

Status Codes
GET /api/activities/

Expose activities in REST API.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • details (string) – details

  • status (string) – status

  • approval_level (string) – approval_level

  • approval_note (string) – approval_note

  • approval_user (string) – approval_user

  • appropriation_date (string) – appropriation_date

  • start_date (string) – start_date

  • end_date (string) – end_date

  • activity_type (string) – activity_type

  • modifies (string) – modifies

  • appropriation (string) – appropriation

  • service_provider (string) – service_provider

  • note (string) – note

Example request:

GET /api/activities/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "monthly_payment_plan": "string",
            "total_cost": "string",
            "total_cost_this_year": "string",
            "total_cost_full_year": "string",
            "total_granted_this_year": "string",
            "total_expected_this_year": "string",
            "payment_plan": {
                "id": 1,
                "payments": [
                    {
                        "id": 1,
                        "account_string": "string",
                        "account_alias": "string",
                        "payment_schedule__payment_id": "string",
                        "case__cpr_number": "string",
                        "case__name": "string",
                        "activity__id": "string",
                        "activity__status": "string",
                        "activity__details__id": "string",
                        "payment_schedule__fictive": "string",
                        "is_payable_manually": "string",
                        "date": "2021-12-08",
                        "recipient_type": "INTERNAL",
                        "recipient_id": "string",
                        "recipient_name": "string",
                        "payment_method": "CASH",
                        "amount": "string",
                        "paid_amount": "string",
                        "paid": true,
                        "paid_date": "2021-12-08",
                        "note": "string",
                        "payment_schedule": 1
                    }
                ],
                "price_per_unit": {
                    "id": 1,
                    "rates_per_date": [
                        {
                            "rate": "string",
                            "start_date": "2021-12-08",
                            "end_date": "2021-12-08",
                            "changed_date": "2021-12-08T10:56:12.898839",
                            "changed_by": 1
                        }
                    ],
                    "current_amount": "string",
                    "amount": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08"
                },
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "payment_frequency": "DAILY",
                "payment_date": "2021-12-08",
                "payment_day_of_month": 1,
                "payment_type": "ONE_TIME_PAYMENT",
                "payment_units": "string",
                "payment_amount": "string",
                "fictive": true,
                "payment_id": 1,
                "payment_cost_type": "FIXED",
                "payment_method_details": 1,
                "payment_rate": "string"
            },
            "details__name": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "status": "DRAFT",
            "approval_note": "string",
            "appropriation_date": "2021-12-08",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08",
            "activity_type": "MAIN_ACTIVITY",
            "note": "string",
            "details": 1,
            "approval_level": 1,
            "approval_user": 1,
            "modifies": 1,
            "appropriation": 1,
            "service_provider": 1
        }
    ]
    

POST /api/activities/

Expose activities in REST API.

Example request:

POST /api/activities/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "payment_plan": {
        "price_per_unit": {
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        },
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "payment_frequency": "DAILY",
        "payment_date": "2021-12-08",
        "payment_day_of_month": 1,
        "payment_type": "ONE_TIME_PAYMENT",
        "payment_units": "string",
        "payment_amount": "string",
        "fictive": true,
        "payment_cost_type": "FIXED",
        "payment_method_details": 1,
        "payment_rate": "string"
    },
    "user_created": "string",
    "user_modified": "string",
    "status": "DRAFT",
    "approval_note": "string",
    "appropriation_date": "2021-12-08",
    "start_date": "2021-12-08",
    "end_date": "2021-12-08",
    "activity_type": "MAIN_ACTIVITY",
    "note": "string",
    "details": 1,
    "approval_level": 1,
    "approval_user": 1,
    "modifies": 1,
    "appropriation": 1,
    "service_provider": 1
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "monthly_payment_plan": "string",
        "total_cost": "string",
        "total_cost_this_year": "string",
        "total_cost_full_year": "string",
        "total_granted_this_year": "string",
        "total_expected_this_year": "string",
        "payment_plan": {
            "id": 1,
            "payments": [
                {
                    "id": 1,
                    "account_string": "string",
                    "account_alias": "string",
                    "payment_schedule__payment_id": "string",
                    "case__cpr_number": "string",
                    "case__name": "string",
                    "activity__id": "string",
                    "activity__status": "string",
                    "activity__details__id": "string",
                    "payment_schedule__fictive": "string",
                    "is_payable_manually": "string",
                    "date": "2021-12-08",
                    "recipient_type": "INTERNAL",
                    "recipient_id": "string",
                    "recipient_name": "string",
                    "payment_method": "CASH",
                    "amount": "string",
                    "paid_amount": "string",
                    "paid": true,
                    "paid_date": "2021-12-08",
                    "note": "string",
                    "payment_schedule": 1
                }
            ],
            "price_per_unit": {
                "id": 1,
                "rates_per_date": [
                    {
                        "rate": "string",
                        "start_date": "2021-12-08",
                        "end_date": "2021-12-08",
                        "changed_date": "2021-12-08T10:56:12.898839",
                        "changed_by": 1
                    }
                ],
                "current_amount": "string",
                "amount": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08"
            },
            "recipient_type": "INTERNAL",
            "recipient_id": "string",
            "recipient_name": "string",
            "payment_method": "CASH",
            "payment_frequency": "DAILY",
            "payment_date": "2021-12-08",
            "payment_day_of_month": 1,
            "payment_type": "ONE_TIME_PAYMENT",
            "payment_units": "string",
            "payment_amount": "string",
            "fictive": true,
            "payment_id": 1,
            "payment_cost_type": "FIXED",
            "payment_method_details": 1,
            "payment_rate": "string"
        },
        "details__name": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "status": "DRAFT",
        "approval_note": "string",
        "appropriation_date": "2021-12-08",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08",
        "activity_type": "MAIN_ACTIVITY",
        "note": "string",
        "details": 1,
        "approval_level": 1,
        "approval_user": 1,
        "modifies": 1,
        "appropriation": 1,
        "service_provider": 1
    }
    

GET /api/activities/{id}/

Expose activities in REST API.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • details (string) – details

  • status (string) – status

  • approval_level (string) – approval_level

  • approval_note (string) – approval_note

  • approval_user (string) – approval_user

  • appropriation_date (string) – appropriation_date

  • start_date (string) – start_date

  • end_date (string) – end_date

  • activity_type (string) – activity_type

  • modifies (string) – modifies

  • appropriation (string) – appropriation

  • service_provider (string) – service_provider

  • note (string) – note

Example request:

GET /api/activities/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "monthly_payment_plan": "string",
        "total_cost": "string",
        "total_cost_this_year": "string",
        "total_cost_full_year": "string",
        "total_granted_this_year": "string",
        "total_expected_this_year": "string",
        "payment_plan": {
            "id": 1,
            "payments": [
                {
                    "id": 1,
                    "account_string": "string",
                    "account_alias": "string",
                    "payment_schedule__payment_id": "string",
                    "case__cpr_number": "string",
                    "case__name": "string",
                    "activity__id": "string",
                    "activity__status": "string",
                    "activity__details__id": "string",
                    "payment_schedule__fictive": "string",
                    "is_payable_manually": "string",
                    "date": "2021-12-08",
                    "recipient_type": "INTERNAL",
                    "recipient_id": "string",
                    "recipient_name": "string",
                    "payment_method": "CASH",
                    "amount": "string",
                    "paid_amount": "string",
                    "paid": true,
                    "paid_date": "2021-12-08",
                    "note": "string",
                    "payment_schedule": 1
                }
            ],
            "price_per_unit": {
                "id": 1,
                "rates_per_date": [
                    {
                        "rate": "string",
                        "start_date": "2021-12-08",
                        "end_date": "2021-12-08",
                        "changed_date": "2021-12-08T10:56:12.898839",
                        "changed_by": 1
                    }
                ],
                "current_amount": "string",
                "amount": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08"
            },
            "recipient_type": "INTERNAL",
            "recipient_id": "string",
            "recipient_name": "string",
            "payment_method": "CASH",
            "payment_frequency": "DAILY",
            "payment_date": "2021-12-08",
            "payment_day_of_month": 1,
            "payment_type": "ONE_TIME_PAYMENT",
            "payment_units": "string",
            "payment_amount": "string",
            "fictive": true,
            "payment_id": 1,
            "payment_cost_type": "FIXED",
            "payment_method_details": 1,
            "payment_rate": "string"
        },
        "details__name": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "status": "DRAFT",
        "approval_note": "string",
        "appropriation_date": "2021-12-08",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08",
        "activity_type": "MAIN_ACTIVITY",
        "note": "string",
        "details": 1,
        "approval_level": 1,
        "approval_user": 1,
        "modifies": 1,
        "appropriation": 1,
        "service_provider": 1
    }
    

PUT /api/activities/{id}/

Expose activities in REST API.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • details (string) – details

  • status (string) – status

  • approval_level (string) – approval_level

  • approval_note (string) – approval_note

  • approval_user (string) – approval_user

  • appropriation_date (string) – appropriation_date

  • start_date (string) – start_date

  • end_date (string) – end_date

  • activity_type (string) – activity_type

  • modifies (string) – modifies

  • appropriation (string) – appropriation

  • service_provider (string) – service_provider

  • note (string) – note

Example request:

PUT /api/activities/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "payment_plan": {
        "price_per_unit": {
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        },
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "payment_frequency": "DAILY",
        "payment_date": "2021-12-08",
        "payment_day_of_month": 1,
        "payment_type": "ONE_TIME_PAYMENT",
        "payment_units": "string",
        "payment_amount": "string",
        "fictive": true,
        "payment_cost_type": "FIXED",
        "payment_method_details": 1,
        "payment_rate": "string"
    },
    "user_created": "string",
    "user_modified": "string",
    "status": "DRAFT",
    "approval_note": "string",
    "appropriation_date": "2021-12-08",
    "start_date": "2021-12-08",
    "end_date": "2021-12-08",
    "activity_type": "MAIN_ACTIVITY",
    "note": "string",
    "details": 1,
    "approval_level": 1,
    "approval_user": 1,
    "modifies": 1,
    "appropriation": 1,
    "service_provider": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "monthly_payment_plan": "string",
        "total_cost": "string",
        "total_cost_this_year": "string",
        "total_cost_full_year": "string",
        "total_granted_this_year": "string",
        "total_expected_this_year": "string",
        "payment_plan": {
            "id": 1,
            "payments": [
                {
                    "id": 1,
                    "account_string": "string",
                    "account_alias": "string",
                    "payment_schedule__payment_id": "string",
                    "case__cpr_number": "string",
                    "case__name": "string",
                    "activity__id": "string",
                    "activity__status": "string",
                    "activity__details__id": "string",
                    "payment_schedule__fictive": "string",
                    "is_payable_manually": "string",
                    "date": "2021-12-08",
                    "recipient_type": "INTERNAL",
                    "recipient_id": "string",
                    "recipient_name": "string",
                    "payment_method": "CASH",
                    "amount": "string",
                    "paid_amount": "string",
                    "paid": true,
                    "paid_date": "2021-12-08",
                    "note": "string",
                    "payment_schedule": 1
                }
            ],
            "price_per_unit": {
                "id": 1,
                "rates_per_date": [
                    {
                        "rate": "string",
                        "start_date": "2021-12-08",
                        "end_date": "2021-12-08",
                        "changed_date": "2021-12-08T10:56:12.898839",
                        "changed_by": 1
                    }
                ],
                "current_amount": "string",
                "amount": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08"
            },
            "recipient_type": "INTERNAL",
            "recipient_id": "string",
            "recipient_name": "string",
            "payment_method": "CASH",
            "payment_frequency": "DAILY",
            "payment_date": "2021-12-08",
            "payment_day_of_month": 1,
            "payment_type": "ONE_TIME_PAYMENT",
            "payment_units": "string",
            "payment_amount": "string",
            "fictive": true,
            "payment_id": 1,
            "payment_cost_type": "FIXED",
            "payment_method_details": 1,
            "payment_rate": "string"
        },
        "details__name": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "status": "DRAFT",
        "approval_note": "string",
        "appropriation_date": "2021-12-08",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08",
        "activity_type": "MAIN_ACTIVITY",
        "note": "string",
        "details": 1,
        "approval_level": 1,
        "approval_user": 1,
        "modifies": 1,
        "appropriation": 1,
        "service_provider": 1
    }
    

PATCH /api/activities/{id}/

Expose activities in REST API.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • details (string) – details

  • status (string) – status

  • approval_level (string) – approval_level

  • approval_note (string) – approval_note

  • approval_user (string) – approval_user

  • appropriation_date (string) – appropriation_date

  • start_date (string) – start_date

  • end_date (string) – end_date

  • activity_type (string) – activity_type

  • modifies (string) – modifies

  • appropriation (string) – appropriation

  • service_provider (string) – service_provider

  • note (string) – note

Example request:

PATCH /api/activities/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "payment_plan": {
        "price_per_unit": {
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        },
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "payment_frequency": "DAILY",
        "payment_date": "2021-12-08",
        "payment_day_of_month": 1,
        "payment_type": "ONE_TIME_PAYMENT",
        "payment_units": "string",
        "payment_amount": "string",
        "fictive": true,
        "payment_cost_type": "FIXED",
        "payment_method_details": 1,
        "payment_rate": "string"
    },
    "user_created": "string",
    "user_modified": "string",
    "status": "DRAFT",
    "approval_note": "string",
    "appropriation_date": "2021-12-08",
    "start_date": "2021-12-08",
    "end_date": "2021-12-08",
    "activity_type": "MAIN_ACTIVITY",
    "note": "string",
    "details": 1,
    "approval_level": 1,
    "approval_user": 1,
    "modifies": 1,
    "appropriation": 1,
    "service_provider": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "monthly_payment_plan": "string",
        "total_cost": "string",
        "total_cost_this_year": "string",
        "total_cost_full_year": "string",
        "total_granted_this_year": "string",
        "total_expected_this_year": "string",
        "payment_plan": {
            "id": 1,
            "payments": [
                {
                    "id": 1,
                    "account_string": "string",
                    "account_alias": "string",
                    "payment_schedule__payment_id": "string",
                    "case__cpr_number": "string",
                    "case__name": "string",
                    "activity__id": "string",
                    "activity__status": "string",
                    "activity__details__id": "string",
                    "payment_schedule__fictive": "string",
                    "is_payable_manually": "string",
                    "date": "2021-12-08",
                    "recipient_type": "INTERNAL",
                    "recipient_id": "string",
                    "recipient_name": "string",
                    "payment_method": "CASH",
                    "amount": "string",
                    "paid_amount": "string",
                    "paid": true,
                    "paid_date": "2021-12-08",
                    "note": "string",
                    "payment_schedule": 1
                }
            ],
            "price_per_unit": {
                "id": 1,
                "rates_per_date": [
                    {
                        "rate": "string",
                        "start_date": "2021-12-08",
                        "end_date": "2021-12-08",
                        "changed_date": "2021-12-08T10:56:12.898839",
                        "changed_by": 1
                    }
                ],
                "current_amount": "string",
                "amount": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08"
            },
            "recipient_type": "INTERNAL",
            "recipient_id": "string",
            "recipient_name": "string",
            "payment_method": "CASH",
            "payment_frequency": "DAILY",
            "payment_date": "2021-12-08",
            "payment_day_of_month": 1,
            "payment_type": "ONE_TIME_PAYMENT",
            "payment_units": "string",
            "payment_amount": "string",
            "fictive": true,
            "payment_id": 1,
            "payment_cost_type": "FIXED",
            "payment_method_details": 1,
            "payment_rate": "string"
        },
        "details__name": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "status": "DRAFT",
        "approval_note": "string",
        "appropriation_date": "2021-12-08",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08",
        "activity_type": "MAIN_ACTIVITY",
        "note": "string",
        "details": 1,
        "approval_level": 1,
        "approval_user": 1,
        "modifies": 1,
        "appropriation": 1,
        "service_provider": 1
    }
    

DELETE /api/activities/{id}/

Handle deletion according to their business logic.

Drafts are deleted, expectations are logically deleted, granted activities cannot be deleted.

Parameters
  • id (string) –

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • details (string) – details

  • status (string) – status

  • approval_level (string) – approval_level

  • approval_note (string) – approval_note

  • approval_user (string) – approval_user

  • appropriation_date (string) – appropriation_date

  • start_date (string) – start_date

  • end_date (string) – end_date

  • activity_type (string) – activity_type

  • modifies (string) – modifies

  • appropriation (string) – appropriation

  • service_provider (string) – service_provider

  • note (string) – note

Status Codes
GET /api/payment_schedules/

Expose payment schedules in REST API.

Example request:

GET /api/payment_schedules/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "payments": [
                {
                    "id": 1,
                    "account_string": "string",
                    "account_alias": "string",
                    "payment_schedule__payment_id": "string",
                    "case__cpr_number": "string",
                    "case__name": "string",
                    "activity__id": "string",
                    "activity__status": "string",
                    "activity__details__id": "string",
                    "payment_schedule__fictive": "string",
                    "is_payable_manually": "string",
                    "date": "2021-12-08",
                    "recipient_type": "INTERNAL",
                    "recipient_id": "string",
                    "recipient_name": "string",
                    "payment_method": "CASH",
                    "amount": "string",
                    "paid_amount": "string",
                    "paid": true,
                    "paid_date": "2021-12-08",
                    "note": "string",
                    "payment_schedule": 1
                }
            ],
            "price_per_unit": {
                "id": 1,
                "rates_per_date": [
                    {
                        "rate": "string",
                        "start_date": "2021-12-08",
                        "end_date": "2021-12-08",
                        "changed_date": "2021-12-08T10:56:12.898839",
                        "changed_by": 1
                    }
                ],
                "current_amount": "string",
                "amount": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08"
            },
            "recipient_type": "INTERNAL",
            "recipient_id": "string",
            "recipient_name": "string",
            "payment_method": "CASH",
            "payment_frequency": "DAILY",
            "payment_date": "2021-12-08",
            "payment_day_of_month": 1,
            "payment_type": "ONE_TIME_PAYMENT",
            "payment_units": "string",
            "payment_amount": "string",
            "fictive": true,
            "payment_id": 1,
            "payment_cost_type": "FIXED",
            "payment_method_details": 1,
            "payment_rate": "string"
        }
    ]
    

POST /api/payment_schedules/

Expose payment schedules in REST API.

Example request:

POST /api/payment_schedules/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "price_per_unit": {
        "amount": "string",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08"
    },
    "recipient_type": "INTERNAL",
    "recipient_id": "string",
    "recipient_name": "string",
    "payment_method": "CASH",
    "payment_frequency": "DAILY",
    "payment_date": "2021-12-08",
    "payment_day_of_month": 1,
    "payment_type": "ONE_TIME_PAYMENT",
    "payment_units": "string",
    "payment_amount": "string",
    "fictive": true,
    "payment_cost_type": "FIXED",
    "payment_method_details": 1,
    "payment_rate": "string"
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "payments": [
            {
                "id": 1,
                "account_string": "string",
                "account_alias": "string",
                "payment_schedule__payment_id": "string",
                "case__cpr_number": "string",
                "case__name": "string",
                "activity__id": "string",
                "activity__status": "string",
                "activity__details__id": "string",
                "payment_schedule__fictive": "string",
                "is_payable_manually": "string",
                "date": "2021-12-08",
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "amount": "string",
                "paid_amount": "string",
                "paid": true,
                "paid_date": "2021-12-08",
                "note": "string",
                "payment_schedule": 1
            }
        ],
        "price_per_unit": {
            "id": 1,
            "rates_per_date": [
                {
                    "rate": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08",
                    "changed_date": "2021-12-08T10:56:12.898839",
                    "changed_by": 1
                }
            ],
            "current_amount": "string",
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        },
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "payment_frequency": "DAILY",
        "payment_date": "2021-12-08",
        "payment_day_of_month": 1,
        "payment_type": "ONE_TIME_PAYMENT",
        "payment_units": "string",
        "payment_amount": "string",
        "fictive": true,
        "payment_id": 1,
        "payment_cost_type": "FIXED",
        "payment_method_details": 1,
        "payment_rate": "string"
    }
    

GET /api/payment_schedules/{id}/

Expose payment schedules in REST API.

Parameters
  • id (string) –

Example request:

GET /api/payment_schedules/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "payments": [
            {
                "id": 1,
                "account_string": "string",
                "account_alias": "string",
                "payment_schedule__payment_id": "string",
                "case__cpr_number": "string",
                "case__name": "string",
                "activity__id": "string",
                "activity__status": "string",
                "activity__details__id": "string",
                "payment_schedule__fictive": "string",
                "is_payable_manually": "string",
                "date": "2021-12-08",
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "amount": "string",
                "paid_amount": "string",
                "paid": true,
                "paid_date": "2021-12-08",
                "note": "string",
                "payment_schedule": 1
            }
        ],
        "price_per_unit": {
            "id": 1,
            "rates_per_date": [
                {
                    "rate": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08",
                    "changed_date": "2021-12-08T10:56:12.898839",
                    "changed_by": 1
                }
            ],
            "current_amount": "string",
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        },
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "payment_frequency": "DAILY",
        "payment_date": "2021-12-08",
        "payment_day_of_month": 1,
        "payment_type": "ONE_TIME_PAYMENT",
        "payment_units": "string",
        "payment_amount": "string",
        "fictive": true,
        "payment_id": 1,
        "payment_cost_type": "FIXED",
        "payment_method_details": 1,
        "payment_rate": "string"
    }
    

PUT /api/payment_schedules/{id}/

Expose payment schedules in REST API.

Parameters
  • id (string) –

Example request:

PUT /api/payment_schedules/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "price_per_unit": {
        "amount": "string",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08"
    },
    "recipient_type": "INTERNAL",
    "recipient_id": "string",
    "recipient_name": "string",
    "payment_method": "CASH",
    "payment_frequency": "DAILY",
    "payment_date": "2021-12-08",
    "payment_day_of_month": 1,
    "payment_type": "ONE_TIME_PAYMENT",
    "payment_units": "string",
    "payment_amount": "string",
    "fictive": true,
    "payment_cost_type": "FIXED",
    "payment_method_details": 1,
    "payment_rate": "string"
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "payments": [
            {
                "id": 1,
                "account_string": "string",
                "account_alias": "string",
                "payment_schedule__payment_id": "string",
                "case__cpr_number": "string",
                "case__name": "string",
                "activity__id": "string",
                "activity__status": "string",
                "activity__details__id": "string",
                "payment_schedule__fictive": "string",
                "is_payable_manually": "string",
                "date": "2021-12-08",
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "amount": "string",
                "paid_amount": "string",
                "paid": true,
                "paid_date": "2021-12-08",
                "note": "string",
                "payment_schedule": 1
            }
        ],
        "price_per_unit": {
            "id": 1,
            "rates_per_date": [
                {
                    "rate": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08",
                    "changed_date": "2021-12-08T10:56:12.898839",
                    "changed_by": 1
                }
            ],
            "current_amount": "string",
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        },
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "payment_frequency": "DAILY",
        "payment_date": "2021-12-08",
        "payment_day_of_month": 1,
        "payment_type": "ONE_TIME_PAYMENT",
        "payment_units": "string",
        "payment_amount": "string",
        "fictive": true,
        "payment_id": 1,
        "payment_cost_type": "FIXED",
        "payment_method_details": 1,
        "payment_rate": "string"
    }
    

PATCH /api/payment_schedules/{id}/

Expose payment schedules in REST API.

Parameters
  • id (string) –

Example request:

PATCH /api/payment_schedules/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "price_per_unit": {
        "amount": "string",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08"
    },
    "recipient_type": "INTERNAL",
    "recipient_id": "string",
    "recipient_name": "string",
    "payment_method": "CASH",
    "payment_frequency": "DAILY",
    "payment_date": "2021-12-08",
    "payment_day_of_month": 1,
    "payment_type": "ONE_TIME_PAYMENT",
    "payment_units": "string",
    "payment_amount": "string",
    "fictive": true,
    "payment_cost_type": "FIXED",
    "payment_method_details": 1,
    "payment_rate": "string"
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "payments": [
            {
                "id": 1,
                "account_string": "string",
                "account_alias": "string",
                "payment_schedule__payment_id": "string",
                "case__cpr_number": "string",
                "case__name": "string",
                "activity__id": "string",
                "activity__status": "string",
                "activity__details__id": "string",
                "payment_schedule__fictive": "string",
                "is_payable_manually": "string",
                "date": "2021-12-08",
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "amount": "string",
                "paid_amount": "string",
                "paid": true,
                "paid_date": "2021-12-08",
                "note": "string",
                "payment_schedule": 1
            }
        ],
        "price_per_unit": {
            "id": 1,
            "rates_per_date": [
                {
                    "rate": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08",
                    "changed_date": "2021-12-08T10:56:12.898839",
                    "changed_by": 1
                }
            ],
            "current_amount": "string",
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        },
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "payment_frequency": "DAILY",
        "payment_date": "2021-12-08",
        "payment_day_of_month": 1,
        "payment_type": "ONE_TIME_PAYMENT",
        "payment_units": "string",
        "payment_amount": "string",
        "fictive": true,
        "payment_id": 1,
        "payment_cost_type": "FIXED",
        "payment_method_details": 1,
        "payment_rate": "string"
    }
    

DELETE /api/payment_schedules/{id}/

Expose payment schedules in REST API.

Parameters
  • id (string) –

Status Codes
GET /api/rates/

Expose rates in REST API.

Example request:

GET /api/rates/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "rates_per_date": [
                {
                    "rate": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08",
                    "changed_date": "2021-12-08T10:56:12.898839",
                    "changed_by": 1
                }
            ],
            "active": true,
            "name": "string",
            "description": "string",
            "needs_recalculation": true
        }
    ]
    

GET /api/rates/{id}/

Expose rates in REST API.

Parameters
  • id (string) – A unique integer value identifying this takst.

Example request:

GET /api/rates/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "rates_per_date": [
            {
                "rate": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08",
                "changed_date": "2021-12-08T10:56:12.898839",
                "changed_by": 1
            }
        ],
        "active": true,
        "name": "string",
        "description": "string",
        "needs_recalculation": true
    }
    

GET /api/prices/

Expose Price objects in REST API.

Example request:

GET /api/prices/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "rates_per_date": [
                {
                    "rate": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08",
                    "changed_date": "2021-12-08T10:56:12.898839",
                    "changed_by": 1
                }
            ],
            "current_amount": "string",
            "amount": "string",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08"
        }
    ]
    

POST /api/prices/

Expose Price objects in REST API.

Example request:

POST /api/prices/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "amount": "string",
    "start_date": "2021-12-08",
    "end_date": "2021-12-08"
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "rates_per_date": [
            {
                "rate": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08",
                "changed_date": "2021-12-08T10:56:12.898839",
                "changed_by": 1
            }
        ],
        "current_amount": "string",
        "amount": "string",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08"
    }
    

GET /api/prices/{id}/

Expose Price objects in REST API.

Parameters
  • id (string) – A unique integer value identifying this pris.

Example request:

GET /api/prices/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "rates_per_date": [
            {
                "rate": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08",
                "changed_date": "2021-12-08T10:56:12.898839",
                "changed_by": 1
            }
        ],
        "current_amount": "string",
        "amount": "string",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08"
    }
    

PUT /api/prices/{id}/

Expose Price objects in REST API.

Parameters
  • id (string) – A unique integer value identifying this pris.

Example request:

PUT /api/prices/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "amount": "string",
    "start_date": "2021-12-08",
    "end_date": "2021-12-08"
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "rates_per_date": [
            {
                "rate": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08",
                "changed_date": "2021-12-08T10:56:12.898839",
                "changed_by": 1
            }
        ],
        "current_amount": "string",
        "amount": "string",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08"
    }
    

PATCH /api/prices/{id}/

Expose Price objects in REST API.

Parameters
  • id (string) – A unique integer value identifying this pris.

Example request:

PATCH /api/prices/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "amount": "string",
    "start_date": "2021-12-08",
    "end_date": "2021-12-08"
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "rates_per_date": [
            {
                "rate": "string",
                "start_date": "2021-12-08",
                "end_date": "2021-12-08",
                "changed_date": "2021-12-08T10:56:12.898839",
                "changed_by": 1
            }
        ],
        "current_amount": "string",
        "amount": "string",
        "start_date": "2021-12-08",
        "end_date": "2021-12-08"
    }
    

DELETE /api/prices/{id}/

Expose Price objects in REST API.

Parameters
  • id (string) – A unique integer value identifying this pris.

Status Codes
GET /api/payment_method_details/

Expose payment method details in REST API.

Example request:

GET /api/payment_method_details/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "tax_card": "MAIN_CARD"
        }
    ]
    

POST /api/payment_method_details/

Expose payment method details in REST API.

Example request:

POST /api/payment_method_details/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "tax_card": "MAIN_CARD"
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "tax_card": "MAIN_CARD"
    }
    

GET /api/payment_method_details/{id}/

Expose payment method details in REST API.

Parameters
  • id (string) – A unique integer value identifying this betalingsmåde detalje.

Example request:

GET /api/payment_method_details/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "tax_card": "MAIN_CARD"
    }
    

PUT /api/payment_method_details/{id}/

Expose payment method details in REST API.

Parameters
  • id (string) – A unique integer value identifying this betalingsmåde detalje.

Example request:

PUT /api/payment_method_details/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "tax_card": "MAIN_CARD"
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "tax_card": "MAIN_CARD"
    }
    

PATCH /api/payment_method_details/{id}/

Expose payment method details in REST API.

Parameters
  • id (string) – A unique integer value identifying this betalingsmåde detalje.

Example request:

PATCH /api/payment_method_details/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "tax_card": "MAIN_CARD"
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "tax_card": "MAIN_CARD"
    }
    

DELETE /api/payment_method_details/{id}/

Expose payment method details in REST API.

Parameters
  • id (string) – A unique integer value identifying this betalingsmåde detalje.

Status Codes
GET /api/payments/

Expose payments in REST API.

Note, this viewset supports pagination.

Query Parameters
  • page (integer) – A page number within the paginated result set.

  • date (string) – date

  • recipient_type (string) – recipient_type

  • recipient_id (string) – recipient_id

  • recipient_name (string) – recipient_name

  • payment_method (string) – payment_method

  • amount (string) – amount

  • paid_amount (string) – paid_amount

  • paid (string) – paid

  • paid_date (string) – paid_date

  • note (string) – note

  • saved_account_string (string) – saved_account_string

  • saved_account_alias (string) – saved_account_alias

  • payment_schedule (string) – payment_schedule

  • case (string) – Sag

  • activity (string) – Aktivitet

  • paid_date__gte (string) – Betalingsdato større eller lig med

  • paid_date__lte (string) – Betalingsdato mindre eller lig med

  • date__gte (string) – Dato større eller lig med

  • date__lte (string) – Dato mindre eller lig med

  • paid_date_or_date__gte (string) – Betalingsdato eller Dato større eller lig med

  • paid_date_or_date__lte (string) – Betalingsdato eller Dato mindre eller lig med

  • paid_date_or_date_week (string) – Betalingsdato eller Dato for uge

  • paid_date_or_date_month (string) – Betalingsdato eller Dato for måned

  • paid_date_or_date_year (string) – Betalingsdato eller Dato for år

Example request:

GET /api/payments/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "count": 1,
        "next": "https://example.com",
        "previous": "https://example.com",
        "results": [
            {
                "id": 1,
                "account_string": "string",
                "account_alias": "string",
                "payment_schedule__payment_id": "string",
                "case__cpr_number": "string",
                "case__name": "string",
                "activity__id": "string",
                "activity__status": "string",
                "activity__details__id": "string",
                "payment_schedule__fictive": "string",
                "is_payable_manually": "string",
                "date": "2021-12-08",
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "amount": "string",
                "paid_amount": "string",
                "paid": true,
                "paid_date": "2021-12-08",
                "note": "string",
                "payment_schedule": 1
            }
        ]
    }
    

POST /api/payments/

Expose payments in REST API.

Note, this viewset supports pagination.

Example request:

POST /api/payments/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "date": "2021-12-08",
    "recipient_type": "INTERNAL",
    "recipient_id": "string",
    "recipient_name": "string",
    "payment_method": "CASH",
    "amount": "string",
    "paid_amount": "string",
    "paid": true,
    "paid_date": "2021-12-08",
    "note": "string",
    "payment_schedule": 1
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "account_string": "string",
        "account_alias": "string",
        "payment_schedule__payment_id": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "activity__id": "string",
        "activity__status": "string",
        "activity__details__id": "string",
        "payment_schedule__fictive": "string",
        "is_payable_manually": "string",
        "date": "2021-12-08",
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "amount": "string",
        "paid_amount": "string",
        "paid": true,
        "paid_date": "2021-12-08",
        "note": "string",
        "payment_schedule": 1
    }
    

GET /api/payments/{id}/

Expose payments in REST API.

Note, this viewset supports pagination.

Parameters
  • id (string) – A unique integer value identifying this betaling.

Query Parameters
  • date (string) – date

  • recipient_type (string) – recipient_type

  • recipient_id (string) – recipient_id

  • recipient_name (string) – recipient_name

  • payment_method (string) – payment_method

  • amount (string) – amount

  • paid_amount (string) – paid_amount

  • paid (string) – paid

  • paid_date (string) – paid_date

  • note (string) – note

  • saved_account_string (string) – saved_account_string

  • saved_account_alias (string) – saved_account_alias

  • payment_schedule (string) – payment_schedule

  • case (string) – Sag

  • activity (string) – Aktivitet

  • paid_date__gte (string) – Betalingsdato større eller lig med

  • paid_date__lte (string) – Betalingsdato mindre eller lig med

  • date__gte (string) – Dato større eller lig med

  • date__lte (string) – Dato mindre eller lig med

  • paid_date_or_date__gte (string) – Betalingsdato eller Dato større eller lig med

  • paid_date_or_date__lte (string) – Betalingsdato eller Dato mindre eller lig med

  • paid_date_or_date_week (string) – Betalingsdato eller Dato for uge

  • paid_date_or_date_month (string) – Betalingsdato eller Dato for måned

  • paid_date_or_date_year (string) – Betalingsdato eller Dato for år

Example request:

GET /api/payments/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "account_string": "string",
        "account_alias": "string",
        "payment_schedule__payment_id": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "activity__id": "string",
        "activity__status": "string",
        "activity__details__id": "string",
        "payment_schedule__fictive": "string",
        "is_payable_manually": "string",
        "date": "2021-12-08",
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "amount": "string",
        "paid_amount": "string",
        "paid": true,
        "paid_date": "2021-12-08",
        "note": "string",
        "payment_schedule": 1
    }
    

PUT /api/payments/{id}/

Expose payments in REST API.

Note, this viewset supports pagination.

Parameters
  • id (string) – A unique integer value identifying this betaling.

Query Parameters
  • date (string) – date

  • recipient_type (string) – recipient_type

  • recipient_id (string) – recipient_id

  • recipient_name (string) – recipient_name

  • payment_method (string) – payment_method

  • amount (string) – amount

  • paid_amount (string) – paid_amount

  • paid (string) – paid

  • paid_date (string) – paid_date

  • note (string) – note

  • saved_account_string (string) – saved_account_string

  • saved_account_alias (string) – saved_account_alias

  • payment_schedule (string) – payment_schedule

  • case (string) – Sag

  • activity (string) – Aktivitet

  • paid_date__gte (string) – Betalingsdato større eller lig med

  • paid_date__lte (string) – Betalingsdato mindre eller lig med

  • date__gte (string) – Dato større eller lig med

  • date__lte (string) – Dato mindre eller lig med

  • paid_date_or_date__gte (string) – Betalingsdato eller Dato større eller lig med

  • paid_date_or_date__lte (string) – Betalingsdato eller Dato mindre eller lig med

  • paid_date_or_date_week (string) – Betalingsdato eller Dato for uge

  • paid_date_or_date_month (string) – Betalingsdato eller Dato for måned

  • paid_date_or_date_year (string) – Betalingsdato eller Dato for år

Example request:

PUT /api/payments/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "date": "2021-12-08",
    "recipient_type": "INTERNAL",
    "recipient_id": "string",
    "recipient_name": "string",
    "payment_method": "CASH",
    "amount": "string",
    "paid_amount": "string",
    "paid": true,
    "paid_date": "2021-12-08",
    "note": "string",
    "payment_schedule": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "account_string": "string",
        "account_alias": "string",
        "payment_schedule__payment_id": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "activity__id": "string",
        "activity__status": "string",
        "activity__details__id": "string",
        "payment_schedule__fictive": "string",
        "is_payable_manually": "string",
        "date": "2021-12-08",
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "amount": "string",
        "paid_amount": "string",
        "paid": true,
        "paid_date": "2021-12-08",
        "note": "string",
        "payment_schedule": 1
    }
    

PATCH /api/payments/{id}/

Expose payments in REST API.

Note, this viewset supports pagination.

Parameters
  • id (string) – A unique integer value identifying this betaling.

Query Parameters
  • date (string) – date

  • recipient_type (string) – recipient_type

  • recipient_id (string) – recipient_id

  • recipient_name (string) – recipient_name

  • payment_method (string) – payment_method

  • amount (string) – amount

  • paid_amount (string) – paid_amount

  • paid (string) – paid

  • paid_date (string) – paid_date

  • note (string) – note

  • saved_account_string (string) – saved_account_string

  • saved_account_alias (string) – saved_account_alias

  • payment_schedule (string) – payment_schedule

  • case (string) – Sag

  • activity (string) – Aktivitet

  • paid_date__gte (string) – Betalingsdato større eller lig med

  • paid_date__lte (string) – Betalingsdato mindre eller lig med

  • date__gte (string) – Dato større eller lig med

  • date__lte (string) – Dato mindre eller lig med

  • paid_date_or_date__gte (string) – Betalingsdato eller Dato større eller lig med

  • paid_date_or_date__lte (string) – Betalingsdato eller Dato mindre eller lig med

  • paid_date_or_date_week (string) – Betalingsdato eller Dato for uge

  • paid_date_or_date_month (string) – Betalingsdato eller Dato for måned

  • paid_date_or_date_year (string) – Betalingsdato eller Dato for år

Example request:

PATCH /api/payments/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "date": "2021-12-08",
    "recipient_type": "INTERNAL",
    "recipient_id": "string",
    "recipient_name": "string",
    "payment_method": "CASH",
    "amount": "string",
    "paid_amount": "string",
    "paid": true,
    "paid_date": "2021-12-08",
    "note": "string",
    "payment_schedule": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "account_string": "string",
        "account_alias": "string",
        "payment_schedule__payment_id": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "activity__id": "string",
        "activity__status": "string",
        "activity__details__id": "string",
        "payment_schedule__fictive": "string",
        "is_payable_manually": "string",
        "date": "2021-12-08",
        "recipient_type": "INTERNAL",
        "recipient_id": "string",
        "recipient_name": "string",
        "payment_method": "CASH",
        "amount": "string",
        "paid_amount": "string",
        "paid": true,
        "paid_date": "2021-12-08",
        "note": "string",
        "payment_schedule": 1
    }
    

DELETE /api/payments/{id}/

Expose payments in REST API.

Note, this viewset supports pagination.

Parameters
  • id (string) – A unique integer value identifying this betaling.

Query Parameters
  • date (string) – date

  • recipient_type (string) – recipient_type

  • recipient_id (string) – recipient_id

  • recipient_name (string) – recipient_name

  • payment_method (string) – payment_method

  • amount (string) – amount

  • paid_amount (string) – paid_amount

  • paid (string) – paid

  • paid_date (string) – paid_date

  • note (string) – note

  • saved_account_string (string) – saved_account_string

  • saved_account_alias (string) – saved_account_alias

  • payment_schedule (string) – payment_schedule

  • case (string) – Sag

  • activity (string) – Aktivitet

  • paid_date__gte (string) – Betalingsdato større eller lig med

  • paid_date__lte (string) – Betalingsdato mindre eller lig med

  • date__gte (string) – Dato større eller lig med

  • date__lte (string) – Dato mindre eller lig med

  • paid_date_or_date__gte (string) – Betalingsdato eller Dato større eller lig med

  • paid_date_or_date__lte (string) – Betalingsdato eller Dato mindre eller lig med

  • paid_date_or_date_week (string) – Betalingsdato eller Dato for uge

  • paid_date_or_date_month (string) – Betalingsdato eller Dato for måned

  • paid_date_or_date_year (string) – Betalingsdato eller Dato for år

Status Codes

Expose related persons - typically family relations - in REST API.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • relation_type (string) – relation_type

  • cpr_number (string) – cpr_number

  • name (string) – name

  • related_case (string) – related_case

  • from_serviceplatformen (string) – from_serviceplatformen

  • main_case (string) – main_case

Example request:

GET /api/related_persons/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "relation_type": "string",
            "cpr_number": "string",
            "name": "string",
            "related_case": "string",
            "from_serviceplatformen": true,
            "main_case": 1
        }
    ]
    

POST /api/related_persons/

Expose related persons - typically family relations - in REST API.

Example request:

POST /api/related_persons/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "relation_type": "string",
    "cpr_number": "string",
    "name": "string",
    "related_case": "string",
    "from_serviceplatformen": true,
    "main_case": 1
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "id": 1,
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "relation_type": "string",
        "cpr_number": "string",
        "name": "string",
        "related_case": "string",
        "from_serviceplatformen": true,
        "main_case": 1
    }
    

Fetch relations for a person using the CPR from Serviceplatformen.

Returns the data as serialized RelatedPersons data.

GET params: cpr

Example request:

GET /api/related_persons/fetch_from_serviceplatformen/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "relation_type": "string",
        "cpr_number": "string",
        "name": "string",
        "related_case": "string",
        "from_serviceplatformen": true,
        "main_case": 1
    }
    

Expose related persons - typically family relations - in REST API.

Parameters
  • id (string) – A unique integer value identifying this relateret person.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • relation_type (string) – relation_type

  • cpr_number (string) – cpr_number

  • name (string) – name

  • related_case (string) – related_case

  • from_serviceplatformen (string) – from_serviceplatformen

  • main_case (string) – main_case

Example request:

GET /api/related_persons/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "relation_type": "string",
        "cpr_number": "string",
        "name": "string",
        "related_case": "string",
        "from_serviceplatformen": true,
        "main_case": 1
    }
    

Expose related persons - typically family relations - in REST API.

Parameters
  • id (string) – A unique integer value identifying this relateret person.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • relation_type (string) – relation_type

  • cpr_number (string) – cpr_number

  • name (string) – name

  • related_case (string) – related_case

  • from_serviceplatformen (string) – from_serviceplatformen

  • main_case (string) – main_case

Example request:

PUT /api/related_persons/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "relation_type": "string",
    "cpr_number": "string",
    "name": "string",
    "related_case": "string",
    "from_serviceplatformen": true,
    "main_case": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "relation_type": "string",
        "cpr_number": "string",
        "name": "string",
        "related_case": "string",
        "from_serviceplatformen": true,
        "main_case": 1
    }
    

Expose related persons - typically family relations - in REST API.

Parameters
  • id (string) – A unique integer value identifying this relateret person.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • relation_type (string) – relation_type

  • cpr_number (string) – cpr_number

  • name (string) – name

  • related_case (string) – related_case

  • from_serviceplatformen (string) – from_serviceplatformen

  • main_case (string) – main_case

Example request:

PATCH /api/related_persons/{id}/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "relation_type": "string",
    "cpr_number": "string",
    "name": "string",
    "related_case": "string",
    "from_serviceplatformen": true,
    "main_case": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "relation_type": "string",
        "cpr_number": "string",
        "name": "string",
        "related_case": "string",
        "from_serviceplatformen": true,
        "main_case": 1
    }
    

Expose related persons - typically family relations - in REST API.

Parameters
  • id (string) – A unique integer value identifying this relateret person.

Query Parameters
  • created (string) – created

  • modified (string) – modified

  • user_created (string) – user_created

  • user_modified (string) – user_modified

  • relation_type (string) – relation_type

  • cpr_number (string) – cpr_number

  • name (string) – name

  • related_case (string) – related_case

  • from_serviceplatformen (string) – from_serviceplatformen

  • main_case (string) – main_case

Status Codes
GET /api/municipalities/

Expose municipalities in REST API.

Query Parameters
  • active (string) – active

  • name (string) – name

Example request:

GET /api/municipalities/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "name": "string"
        }
    ]
    

GET /api/municipalities/{id}/

Expose municipalities in REST API.

Parameters
  • id (string) – A unique integer value identifying this kommune.

Query Parameters
  • active (string) – active

  • name (string) – name

Example request:

GET /api/municipalities/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "name": "string"
    }
    

GET /api/school_districts/

Expose school districts in REST API.

Query Parameters
  • active (string) – active

  • name (string) – name

Example request:

GET /api/school_districts/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "name": "string"
        }
    ]
    

GET /api/school_districts/{id}/

Expose school districts in REST API.

Parameters
  • id (string) – A unique integer value identifying this distrikt.

Query Parameters
  • active (string) – active

  • name (string) – name

Example request:

GET /api/school_districts/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "name": "string"
    }
    

GET /api/teams/

Expose teams in REST API.

Example request:

GET /api/teams/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "name": "string",
            "leader": 1
        }
    ]
    

GET /api/teams/{id}/

Expose teams in REST API.

Parameters
  • id (string) – A unique integer value identifying this team.

Example request:

GET /api/teams/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "name": "string",
        "leader": 1
    }
    

GET /api/sections/

Expose law sections in REST API.

Query Parameters
  • active (string) – active

  • paragraph (string) – paragraph

  • text (string) – text

  • allowed_for_target_groups (string) – allowed_for_target_groups

  • allowed_for_steps (string) – allowed_for_steps

  • law_text_name (string) – law_text_name

Example request:

GET /api/sections/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "paragraph": "string",
            "text": "string",
            "law_text_name": "string",
            "allowed_for_target_groups": [
                1
            ],
            "allowed_for_steps": [
                1
            ]
        }
    ]
    

GET /api/sections/{id}/

Expose law sections in REST API.

Parameters
  • id (string) – A unique integer value identifying this paragraf.

Query Parameters
  • active (string) – active

  • paragraph (string) – paragraph

  • text (string) – text

  • allowed_for_target_groups (string) – allowed_for_target_groups

  • allowed_for_steps (string) – allowed_for_steps

  • law_text_name (string) – law_text_name

Example request:

GET /api/sections/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "paragraph": "string",
        "text": "string",
        "law_text_name": "string",
        "allowed_for_target_groups": [
            1
        ],
        "allowed_for_steps": [
            1
        ]
    }
    

GET /api/sectioninfos/

Expose section infos in REST API.

Query Parameters
  • activity_details (string) – activity_details

  • section (string) – section

  • activity_category (string) – activity_category

  • kle_number (string) – kle_number

  • sbsys_template_id (string) – sbsys_template_id

  • main_activity_main_account_number (string) – main_activity_main_account_number

  • supplementary_activity_main_account_number (string) – supplementary_activity_main_account_number

Example request:

GET /api/sectioninfos/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "kle_number": "string",
            "sbsys_template_id": "string",
            "main_activity_main_account_number": "string",
            "supplementary_activity_main_account_number": "string",
            "activity_details": 1,
            "section": 1,
            "activity_category": 1
        }
    ]
    

GET /api/sectioninfos/{id}/

Expose section infos in REST API.

Parameters
  • id (string) – A unique integer value identifying this paragraf-info.

Query Parameters
  • activity_details (string) – activity_details

  • section (string) – section

  • activity_category (string) – activity_category

  • kle_number (string) – kle_number

  • sbsys_template_id (string) – sbsys_template_id

  • main_activity_main_account_number (string) – main_activity_main_account_number

  • supplementary_activity_main_account_number (string) – supplementary_activity_main_account_number

Example request:

GET /api/sectioninfos/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "kle_number": "string",
        "sbsys_template_id": "string",
        "main_activity_main_account_number": "string",
        "supplementary_activity_main_account_number": "string",
        "activity_details": 1,
        "section": 1,
        "activity_category": 1
    }
    

GET /api/activity_details/

Expose activity details in REST API.

Query Parameters
  • active (string) – active

  • name (string) – name

  • description (string) – description

  • activity_id (string) – activity_id

  • max_tolerance_in_percent (string) – max_tolerance_in_percent

  • max_tolerance_in_dkk (string) – max_tolerance_in_dkk

  • main_activity_for (string) – main_activity_for

  • supplementary_activity_for (string) – supplementary_activity_for

  • service_providers (string) – service_providers

  • main_activities (string) – main_activities

Example request:

GET /api/activity_details/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "name": "string",
            "description": "string",
            "activity_id": "string",
            "max_tolerance_in_percent": 1,
            "max_tolerance_in_dkk": 1,
            "main_activity_for": [
                "string"
            ],
            "supplementary_activity_for": [
                1
            ],
            "service_providers": [
                1
            ],
            "main_activities": [
                1
            ]
        }
    ]
    

GET /api/activity_details/{id}/

Expose activity details in REST API.

Parameters
  • id (string) – A unique integer value identifying this aktivitetsdetalje.

Query Parameters
  • active (string) – active

  • name (string) – name

  • description (string) – description

  • activity_id (string) – activity_id

  • max_tolerance_in_percent (string) – max_tolerance_in_percent

  • max_tolerance_in_dkk (string) – max_tolerance_in_dkk

  • main_activity_for (string) – main_activity_for

  • supplementary_activity_for (string) – supplementary_activity_for

  • service_providers (string) – service_providers

  • main_activities (string) – main_activities

Example request:

GET /api/activity_details/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "name": "string",
        "description": "string",
        "activity_id": "string",
        "max_tolerance_in_percent": 1,
        "max_tolerance_in_dkk": 1,
        "main_activity_for": [
            "string"
        ],
        "supplementary_activity_for": [
            1
        ],
        "service_providers": [
            1
        ],
        "main_activities": [
            1
        ]
    }
    

GET /api/service_providers/

Expose service providers in REST API.

Query Parameters
  • active (string) – active

  • cvr_number (string) – cvr_number

  • name (string) – name

  • vat_factor (string) – vat_factor

Example request:

GET /api/service_providers/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "cvr_number": "string",
            "name": "string",
            "vat_factor": "string"
        }
    ]
    

GET /api/service_providers/{id}/

Expose service providers in REST API.

Parameters
  • id (string) – A unique integer value identifying this leverandør.

Query Parameters
  • active (string) – active

  • cvr_number (string) – cvr_number

  • name (string) – name

  • vat_factor (string) – vat_factor

Example request:

GET /api/service_providers/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "cvr_number": "string",
        "name": "string",
        "vat_factor": "string"
    }
    

GET /api/approval_levels/

Expose approval levels in REST API.

Query Parameters
  • active (string) – active

  • name (string) – name

Example request:

GET /api/approval_levels/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "name": "string"
        }
    ]
    

GET /api/approval_levels/{id}/

Expose approval levels in REST API.

Parameters
  • id (string) – A unique integer value identifying this bevillingsniveau.

Query Parameters
  • active (string) – active

  • name (string) – name

Example request:

GET /api/approval_levels/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "name": "string"
    }
    

GET /api/users/

Expose users in REST API.

Example request:

GET /api/users/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "username": "string",
            "first_name": "string",
            "last_name": "string",
            "cases": [
                1
            ],
            "team": 1,
            "profile": "readonly"
        }
    ]
    

GET /api/users/{id}/

Expose users in REST API.

Parameters
  • id (string) – A unique integer value identifying this bruger.

Example request:

GET /api/users/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "username": "string",
        "first_name": "string",
        "last_name": "string",
        "cases": [
            1
        ],
        "team": 1,
        "profile": "readonly"
    }
    

GET /api/effort_steps/

Expose effort steps in REST API.

Query Parameters
  • active (string) – active

  • name (string) – name

  • number (string) – number

Example request:

GET /api/effort_steps/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "name": "string",
            "number": 1
        }
    ]
    

GET /api/effort_steps/{id}/

Expose effort steps in REST API.

Parameters
  • id (string) – A unique integer value identifying this indsatstrappetrin.

Query Parameters
  • active (string) – active

  • name (string) – name

  • number (string) – number

Example request:

GET /api/effort_steps/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "name": "string",
        "number": 1
    }
    

GET /api/target_groups/

Expose target groups in REST API.

Example request:

GET /api/target_groups/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "name": "string",
            "required_fields_for_case": "string"
        }
    ]
    

GET /api/target_groups/{id}/

Expose target groups in REST API.

Parameters
  • id (string) – A unique integer value identifying this målgruppe.

Example request:

GET /api/target_groups/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "name": "string",
        "required_fields_for_case": "string"
    }
    

GET /api/internal_payment_recipients/

Expose internal payment recipients in REST API.

Example request:

GET /api/internal_payment_recipients/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "name": "string"
        }
    ]
    

GET /api/internal_payment_recipients/{id}/

Expose internal payment recipients in REST API.

Parameters
  • id (string) – A unique integer value identifying this intern betalingsmodtager.

Example request:

GET /api/internal_payment_recipients/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "name": "string"
    }
    

GET /api/efforts/

Expose efforts in REST API.

Query Parameters
  • active (string) – active

  • name (string) – name

  • description (string) – description

  • allowed_for_target_groups (string) – allowed_for_target_groups

Example request:

GET /api/efforts/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {
            "id": 1,
            "active": true,
            "name": "string",
            "description": "string",
            "allowed_for_target_groups": [
                1
            ]
        }
    ]
    

GET /api/efforts/{id}/

Expose efforts in REST API.

Parameters
  • id (string) – A unique integer value identifying this indsats.

Query Parameters
  • active (string) – active

  • name (string) – name

  • description (string) – description

  • allowed_for_target_groups (string) – allowed_for_target_groups

Example request:

GET /api/efforts/{id}/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "active": true,
        "name": "string",
        "description": "string",
        "allowed_for_target_groups": [
            1
        ]
    }
    

GET /api/editing_past_payments_allowed/

Return the Django setting allowing changes to the past.

Example request:

GET /api/editing_past_payments_allowed/ HTTP/1.1
Host: example.com
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    [
        {}
    ]
    

POST /api/token/

Takes a set of user credentials and returns an access and refresh JSON web token pair to prove the authentication of those credentials.

Example request:

POST /api/token/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "username": "string",
    "password": "string"
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "username": "string",
        "password": "string"
    }
    

POST /api/token/refresh/

Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.

Example request:

POST /api/token/refresh/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "refresh": "string"
}
Status Codes
  • 201 Created

    Example response:

    HTTP/1.1 201 Created
    Content-Type: application/json
    
    {
        "refresh": "string"
    }
    

PATCH /api/cases/change_case_worker/

Change the case_worker of several Cases.

Parameters
  • case_pks – A list of case pks.

  • case_worker_pk – the case worker pk to change to.

Example request:

PATCH /api/cases/change_case_worker/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "cpr_number": "string",
    "name": "string",
    "scaling_step": 1,
    "assessment_comment": "string",
    "note": "string",
    "case_worker": 1,
    "district": 1,
    "paying_municipality": 1,
    "acting_municipality": 1,
    "residence_municipality": 1,
    "target_group": 1,
    "effort_step": 1,
    "efforts": [
        1
    ]
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "expired": "string",
        "num_ongoing_appropriations": "string",
        "num_ongoing_draft_or_expected_appropriations": "string",
        "team": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "cpr_number": "string",
        "name": "string",
        "scaling_step": 1,
        "assessment_comment": "string",
        "note": "string",
        "case_worker": 1,
        "district": 1,
        "paying_municipality": 1,
        "acting_municipality": 1,
        "residence_municipality": 1,
        "target_group": 1,
        "effort_step": 1,
        "efforts": [
            1
        ]
    }
    

PATCH /api/appropriations/{id}/grant/

Grant the specified activities on this appropriation.

Parameters
  • id (string) –

Example request:

PATCH /api/appropriations/{id}/grant/ HTTP/1.1
Host: example.com
Content-Type: application/json

{
    "user_created": "string",
    "user_modified": "string",
    "sbsys_id": "string",
    "note": "string",
    "section": 1,
    "case": 1
}
Status Codes
  • 200 OK

    Example response:

    HTTP/1.1 200 OK
    Content-Type: application/json
    
    {
        "id": 1,
        "status": "string",
        "granted_from_date": "string",
        "granted_to_date": "string",
        "case__cpr_number": "string",
        "case__name": "string",
        "case__sbsys_id": "string",
        "num_ongoing_draft_or_expected_activities": "string",
        "num_ongoing_activities": "string",
        "main_activity": {
            "id": 1,
            "monthly_payment_plan": "string",
            "total_cost": "string",
            "total_cost_this_year": "string",
            "total_cost_full_year": "string",
            "total_granted_this_year": "string",
            "total_expected_this_year": "string",
            "payment_plan": {
                "id": 1,
                "payments": [
                    {
                        "id": 1,
                        "account_string": "string",
                        "account_alias": "string",
                        "payment_schedule__payment_id": "string",
                        "case__cpr_number": "string",
                        "case__name": "string",
                        "activity__id": "string",
                        "activity__status": "string",
                        "activity__details__id": "string",
                        "payment_schedule__fictive": "string",
                        "is_payable_manually": "string",
                        "date": "2021-12-08",
                        "recipient_type": "INTERNAL",
                        "recipient_id": "string",
                        "recipient_name": "string",
                        "payment_method": "CASH",
                        "amount": "string",
                        "paid_amount": "string",
                        "paid": true,
                        "paid_date": "2021-12-08",
                        "note": "string",
                        "payment_schedule": 1
                    }
                ],
                "price_per_unit": {
                    "id": 1,
                    "rates_per_date": [
                        {
                            "rate": "string",
                            "start_date": "2021-12-08",
                            "end_date": "2021-12-08",
                            "changed_date": "2021-12-08T10:56:12.898839",
                            "changed_by": 1
                        }
                    ],
                    "current_amount": "string",
                    "amount": "string",
                    "start_date": "2021-12-08",
                    "end_date": "2021-12-08"
                },
                "recipient_type": "INTERNAL",
                "recipient_id": "string",
                "recipient_name": "string",
                "payment_method": "CASH",
                "payment_frequency": "DAILY",
                "payment_date": "2021-12-08",
                "payment_day_of_month": 1,
                "payment_type": "ONE_TIME_PAYMENT",
                "payment_units": "string",
                "payment_amount": "string",
                "fictive": true,
                "payment_id": 1,
                "payment_cost_type": "FIXED",
                "payment_method_details": 1,
                "payment_rate": "string"
            },
            "details__name": "string",
            "created": "2021-12-08T10:56:12.898839",
            "modified": "2021-12-08T10:56:12.898839",
            "user_created": "string",
            "user_modified": "string",
            "status": "DRAFT",
            "approval_note": "string",
            "appropriation_date": "2021-12-08",
            "start_date": "2021-12-08",
            "end_date": "2021-12-08",
            "activity_type": "MAIN_ACTIVITY",
            "note": "string",
            "details": 1,
            "approval_level": 1,
            "approval_user": 1,
            "modifies": 1,
            "appropriation": 1,
            "service_provider": 1
        },
        "activities": "string",
        "total_granted_this_year": "string",
        "total_granted_full_year": "string",
        "total_expected_this_year": "string",
        "total_expected_full_year": "string",
        "total_cost_expected": "string",
        "total_cost_granted": "string",
        "created": "2021-12-08T10:56:12.898839",
        "modified": "2021-12-08T10:56:12.898839",
        "user_created": "string",
        "user_modified": "string",
        "sbsys_id": "string",
        "note": "string",
        "section": 1,
        "case": 1
    }