POST /external/api/v3/customer/addfinished

Add finished customer.

Request Information

URI Parameters

None.

Body Parameters

Model containing finished customer to add.

ImportFinishedCustomerRequest
NameDescriptionTypeAdditional informationNullable
IsTest

boolean

None

False
Customer

FinishedCustomer

Required

False

Request Formats

application/json

Sample:
{
  "IsTest": true,
  "Customer": {
    "QuestionnaireId": "2ec40570-e563-45eb-9c25-4dec09dee46b",
    "FinishedDate": "2024-11-21T10:06:50.9843536+01:00",
    "Answers": [
      {
        "QuestionId": "d6de312c-7da4-483d-841c-25a046ea03cd",
        "DateAnswered": "2024-11-21T10:06:50.9843536+01:00",
        "Text": "sample string 2",
        "SelectedScalePositions": [
          {
            "Id": 1,
            "Label": "sample string 1",
            "Value": 1,
            "Ranking": 1
          },
          {
            "Id": 1,
            "Label": "sample string 1",
            "Value": 1,
            "Ranking": 1
          }
        ],
        "FileAnswers": [
          {
            "Id": 1,
            "AnswerId": 2,
            "FileName": "sample string 3",
            "FileSize": 4,
            "FileType": "sample string 5",
            "Data": "QEA=",
            "IsEncrypted": true,
            "CertificateThumbprint": "sample string 7",
            "EncryptionKey": "sample string 8"
          },
          {
            "Id": 1,
            "AnswerId": 2,
            "FileName": "sample string 3",
            "FileSize": 4,
            "FileType": "sample string 5",
            "Data": "QEA=",
            "IsEncrypted": true,
            "CertificateThumbprint": "sample string 7",
            "EncryptionKey": "sample string 8"
          }
        ],
        "PageRepetition": 1,
        "SectionRepetition": 1
      },
      {
        "QuestionId": "d6de312c-7da4-483d-841c-25a046ea03cd",
        "DateAnswered": "2024-11-21T10:06:50.9843536+01:00",
        "Text": "sample string 2",
        "SelectedScalePositions": [
          {
            "Id": 1,
            "Label": "sample string 1",
            "Value": 1,
            "Ranking": 1
          },
          {
            "Id": 1,
            "Label": "sample string 1",
            "Value": 1,
            "Ranking": 1
          }
        ],
        "FileAnswers": [
          {
            "Id": 1,
            "AnswerId": 2,
            "FileName": "sample string 3",
            "FileSize": 4,
            "FileType": "sample string 5",
            "Data": "QEA=",
            "IsEncrypted": true,
            "CertificateThumbprint": "sample string 7",
            "EncryptionKey": "sample string 8"
          },
          {
            "Id": 1,
            "AnswerId": 2,
            "FileName": "sample string 3",
            "FileSize": 4,
            "FileType": "sample string 5",
            "Data": "QEA=",
            "IsEncrypted": true,
            "CertificateThumbprint": "sample string 7",
            "EncryptionKey": "sample string 8"
          }
        ],
        "PageRepetition": 1,
        "SectionRepetition": 1
      }
    ],
    "Email": "sample string 2",
    "TransactionDate": "2024-11-21T10:06:50.9843536+01:00",
    "SurveyClosedDate": "2024-11-21T10:06:50.9843536+01:00",
    "Data": [
      {
        "CustomerDataColumnId": 1,
        "Name": "sample string 2",
        "Value": "sample string 3",
        "IsEncrypted": true,
        "CertificateThumbprint": "sample string 5",
        "EncryptionKey": "sample string 6"
      },
      {
        "CustomerDataColumnId": 1,
        "Name": "sample string 2",
        "Value": "sample string 3",
        "IsEncrypted": true,
        "CertificateThumbprint": "sample string 5",
        "EncryptionKey": "sample string 6"
      }
    ],
    "Language": "sample string 3",
    "IsContactRequested": true,
    "IsConcept": true
  }
}

application/xml

Sample:
<ImportFinishedCustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.V1.Requests">
  <Customer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.V1.Models">
    <Data xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">
      <CustomerData>
        <CertificateThumbprint>sample string 5</CertificateThumbprint>
        <CustomerDataColumnId>1</CustomerDataColumnId>
        <EncryptionKey>sample string 6</EncryptionKey>
        <IsEncrypted>true</IsEncrypted>
        <Name>sample string 2</Name>
        <Value>sample string 3</Value>
      </CustomerData>
      <CustomerData>
        <CertificateThumbprint>sample string 5</CertificateThumbprint>
        <CustomerDataColumnId>1</CustomerDataColumnId>
        <EncryptionKey>sample string 6</EncryptionKey>
        <IsEncrypted>true</IsEncrypted>
        <Name>sample string 2</Name>
        <Value>sample string 3</Value>
      </CustomerData>
    </Data>
    <Email xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">sample string 2</Email>
    <IsConcept xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">true</IsConcept>
    <IsContactRequested xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">true</IsContactRequested>
    <Language xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">sample string 3</Language>
    <SurveyClosedDate xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">2024-11-21T10:06:50.9843536+01:00</SurveyClosedDate>
    <TransactionDate xmlns="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">2024-11-21T10:06:50.9843536+01:00</TransactionDate>
    <d2p1:Answers xmlns:d3p1="http://schemas.datacontract.org/2004/07/Expoints.API.Extern.Models">
      <d3p1:ImportAnswer>
        <d3p1:DateAnswered>2024-11-21T10:06:50.9843536+01:00</d3p1:DateAnswered>
        <d3p1:FileAnswers>
          <d3p1:FileAnswer>
            <d3p1:AnswerId>2</d3p1:AnswerId>
            <d3p1:CertificateThumbprint>sample string 7</d3p1:CertificateThumbprint>
            <d3p1:Data>QEA=</d3p1:Data>
            <d3p1:EncryptionKey>sample string 8</d3p1:EncryptionKey>
            <d3p1:FileName>sample string 3</d3p1:FileName>
            <d3p1:FileSize>4</d3p1:FileSize>
            <d3p1:FileType>sample string 5</d3p1:FileType>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:IsEncrypted>true</d3p1:IsEncrypted>
          </d3p1:FileAnswer>
          <d3p1:FileAnswer>
            <d3p1:AnswerId>2</d3p1:AnswerId>
            <d3p1:CertificateThumbprint>sample string 7</d3p1:CertificateThumbprint>
            <d3p1:Data>QEA=</d3p1:Data>
            <d3p1:EncryptionKey>sample string 8</d3p1:EncryptionKey>
            <d3p1:FileName>sample string 3</d3p1:FileName>
            <d3p1:FileSize>4</d3p1:FileSize>
            <d3p1:FileType>sample string 5</d3p1:FileType>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:IsEncrypted>true</d3p1:IsEncrypted>
          </d3p1:FileAnswer>
        </d3p1:FileAnswers>
        <d3p1:PageRepetition>1</d3p1:PageRepetition>
        <d3p1:SectionRepetition>1</d3p1:SectionRepetition>
        <d3p1:SelectedScalePositions>
          <d3p1:ScalePosition>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:Label>sample string 1</d3p1:Label>
            <d3p1:Ranking>1</d3p1:Ranking>
            <d3p1:Value>1</d3p1:Value>
          </d3p1:ScalePosition>
          <d3p1:ScalePosition>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:Label>sample string 1</d3p1:Label>
            <d3p1:Ranking>1</d3p1:Ranking>
            <d3p1:Value>1</d3p1:Value>
          </d3p1:ScalePosition>
        </d3p1:SelectedScalePositions>
        <d3p1:Text>sample string 2</d3p1:Text>
        <d3p1:QuestionId>d6de312c-7da4-483d-841c-25a046ea03cd</d3p1:QuestionId>
      </d3p1:ImportAnswer>
      <d3p1:ImportAnswer>
        <d3p1:DateAnswered>2024-11-21T10:06:50.9843536+01:00</d3p1:DateAnswered>
        <d3p1:FileAnswers>
          <d3p1:FileAnswer>
            <d3p1:AnswerId>2</d3p1:AnswerId>
            <d3p1:CertificateThumbprint>sample string 7</d3p1:CertificateThumbprint>
            <d3p1:Data>QEA=</d3p1:Data>
            <d3p1:EncryptionKey>sample string 8</d3p1:EncryptionKey>
            <d3p1:FileName>sample string 3</d3p1:FileName>
            <d3p1:FileSize>4</d3p1:FileSize>
            <d3p1:FileType>sample string 5</d3p1:FileType>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:IsEncrypted>true</d3p1:IsEncrypted>
          </d3p1:FileAnswer>
          <d3p1:FileAnswer>
            <d3p1:AnswerId>2</d3p1:AnswerId>
            <d3p1:CertificateThumbprint>sample string 7</d3p1:CertificateThumbprint>
            <d3p1:Data>QEA=</d3p1:Data>
            <d3p1:EncryptionKey>sample string 8</d3p1:EncryptionKey>
            <d3p1:FileName>sample string 3</d3p1:FileName>
            <d3p1:FileSize>4</d3p1:FileSize>
            <d3p1:FileType>sample string 5</d3p1:FileType>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:IsEncrypted>true</d3p1:IsEncrypted>
          </d3p1:FileAnswer>
        </d3p1:FileAnswers>
        <d3p1:PageRepetition>1</d3p1:PageRepetition>
        <d3p1:SectionRepetition>1</d3p1:SectionRepetition>
        <d3p1:SelectedScalePositions>
          <d3p1:ScalePosition>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:Label>sample string 1</d3p1:Label>
            <d3p1:Ranking>1</d3p1:Ranking>
            <d3p1:Value>1</d3p1:Value>
          </d3p1:ScalePosition>
          <d3p1:ScalePosition>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:Label>sample string 1</d3p1:Label>
            <d3p1:Ranking>1</d3p1:Ranking>
            <d3p1:Value>1</d3p1:Value>
          </d3p1:ScalePosition>
        </d3p1:SelectedScalePositions>
        <d3p1:Text>sample string 2</d3p1:Text>
        <d3p1:QuestionId>d6de312c-7da4-483d-841c-25a046ea03cd</d3p1:QuestionId>
      </d3p1:ImportAnswer>
    </d2p1:Answers>
    <d2p1:FinishedDate>2024-11-21T10:06:50.9843536+01:00</d2p1:FinishedDate>
    <d2p1:QuestionnaireId>2ec40570-e563-45eb-9c25-4dec09dee46b</d2p1:QuestionnaireId>
  </Customer>
  <IsTest>true</IsTest>
</ImportFinishedCustomerRequest>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.

Response Status Codes

Status Code Name Description
200 OK The request has succeeded.
400 Bad Request Fulfilling the request would cause an invalid state. Request needs modification.
401 Unauthorized Missing or invalid authentication token.
403 Forbidden Server refuses to authorize the request.
408 Request Timeout The server timed out waiting for the request.
429 Too Many Requests Too many requests in a given amount of time.
500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request.
503 Service Unavailable The server is unable to proces the request at the moment, try again later.