POST api/data/upload

Uploads message.

Request Information

URI Parameters

None.

Body Parameters

MessageUploadModel
NameDescriptionTypeAdditional information
Recipient_OrganizationNumber

Recipient's iBox Id.

string

String length: inclusive between 0 and 32

Matter

Subject of the data. Optional. Subject/Matter of sent message.

string

String length: inclusive between 0 and 255

ContentType

MIME content type. Optional. If not set will be resolved from FileName.

string

String length: inclusive between 0 and 255

FileName

Original file name. Required.

string

String length: inclusive between 0 and 255

ReferenceNumber

Reference number. Optional. Additional information helping recipient match this message with business case. For example invoice number or order number.

string

String length: inclusive between 0 and 50

Data

Raw data sent by Sender. Required. Date has to be encoded in base64 string.

Collection of byte

None.

SenderMessageKey

Sender message internal key. Optional. Any string value helping sender match message to some artifact in his information system. For example invoice GUID from issuing system.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Recipient_OrganizationNumber": "sample string 1",
  "Matter": "sample string 2",
  "ContentType": "sample string 3",
  "FileName": "sample string 4",
  "ReferenceNumber": "sample string 5",
  "Data": "QEA=",
  "SenderMessageKey": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MessageUploadModel'.

Response Information

Resource Description

RefId of posted message.

globally unique identifier

Response Formats

application/json, text/json

Sample:
"357e7a89-fc4a-46c8-8b19-2f6b412682c6"