POST json/DNKDataExportSingleCompanyArray

Exports one specific Sustainability Code profile of one language and one year.

Request Information

URI Parameters

None.

Body Parameters

Request containing year, language, CompanyID and authentification

DNKExportCompanyRequest
NameDescriptionTypeAdditional information
CompanyID

ID of company

integer

Required

ReportYear

Report year of report

string

Required

Matching regular expression pattern: [0-9][0-9][0-9][0-9]

LanguageISO

Language code with 2 letters according to ISO 639-1

string

Required

Matching regular expression pattern: en|de|EN|DE

SecurityToken

SHA-256 Hash value of the mofified export application code

string

Required

ApplicationName

Name/ID of the import application

string

Required

Request Formats

application/json, text/json

Sample:

Sample not available.

Response Information

Resource Description

Data of requested company

DNKExportRestApiResponse
NameDescriptionTypeAdditional information
exportData

List of export objects

Collection of DNKExportCompanyDataList

None.

ValidRequest

Info about the success of the import

boolean

None.

TokenStatus

Check status of the security or authorization tokens transferred in the Webapi

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "exportData": [
    {
      "company": [
        {
          "exportID": "sample string 1",
          "value": "sample string 2"
        },
        {
          "exportID": "sample string 1",
          "value": "sample string 2"
        }
      ]
    },
    {
      "company": [
        {
          "exportID": "sample string 1",
          "value": "sample string 2"
        },
        {
          "exportID": "sample string 1",
          "value": "sample string 2"
        }
      ]
    }
  ],
  "ValidRequest": true,
  "TokenStatus": 2
}