Direct/Dossier

Full path Direct/Dossier?BatchID={BatchID}
HTTP Verb POST
Description This endpoint expects an HTTP POST request with the relevant information in Json format. It creates a dossier for one client without IndueD. Requires authentication with an OAuth2 token

Request Information

URI Parameters

NameDescriptionTypeAdditional information
BatchID

integer

None.

Body Parameters

DossierImportModel
NameDescriptionTypeAdditional information
duns

Required field with the DUNS number of a client

string

None.

country

Required field with a country code (BE, NL, FR, ...)

string

None.

language

Required field with a language code (BE, NL, FR, ...)

string

None.

name

Required field with the merchant's company name

string

None.

prefill_values

Optional field that contains a JSON like { field1: "value1", field2: "value2", … }

Object

None.

form_id

Required field with the ID of the form that was created with /CreateForm

string

None.

client_id

Required field with the client ID

string

None.

customer_client_id

Optional field with the client ID within the customer's system

string

None.

contacts

Required field with a list of contacts

Collection of Contact

None.

email_content

Optional field with a message to be added to the invitation email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "duns": "sample string 1",
  "country": "sample string 2",
  "language": "sample string 3",
  "name": "sample string 4",
  "prefill_values": {},
  "form_id": "sample string 6",
  "client_id": "sample string 7",
  "customer_client_id": "sample string 8",
  "contacts": [
    {
      "email": "sample string 1",
      "phone": "sample string 2",
      "first_name": "sample string 3",
      "last_name": "sample string 4"
    },
    {
      "email": "sample string 1",
      "phone": "sample string 2",
      "first_name": "sample string 3",
      "last_name": "sample string 4"
    }
  ],
  "email_content": "sample string 9"
}

application/xml, text/xml

Sample:
<DossierImportModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DocFlowImportServiceInportal.Models">
  <client_id>sample string 7</client_id>
  <contacts>
    <Contact>
      <email>sample string 1</email>
      <first_name>sample string 3</first_name>
      <last_name>sample string 4</last_name>
      <phone>sample string 2</phone>
    </Contact>
    <Contact>
      <email>sample string 1</email>
      <first_name>sample string 3</first_name>
      <last_name>sample string 4</last_name>
      <phone>sample string 2</phone>
    </Contact>
  </contacts>
  <country>sample string 2</country>
  <customer_client_id>sample string 8</customer_client_id>
  <duns>sample string 1</duns>
  <email_content>sample string 9</email_content>
  <form_id>sample string 6</form_id>
  <language>sample string 3</language>
  <name>sample string 4</name>
  <prefill_values />
</DossierImportModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

"success" or an error

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.