POST api/WaybillEmailCreation

Sends the Full New Waybill HTML waybill copy to a specified receiver.

Request Information

URI Parameters

None.

Body Parameters

WaybillEmailCreationRequest
NameDescriptionTypeAdditional information
ReceiverEmailAddress

Single receiver email address, without a display name.

string

Required

String length: inclusive between 0 and 254

AccNr

Account number belonging to the saved waybill.

string

Required

String length: inclusive between 0 and 100

WaybillNumber

Existing, non-deleted DCB Online waybill number.

string

Required

String length: inclusive between 0 and 100

Request Formats

application/json

Sample:
{"ReceiverEmailAddress":"receiver@example.com","AccNr":"ACC001","WaybillNumber":"DCB000123456"}

text/json

Sample:
{
  "ReceiverEmailAddress": "sample string 1",
  "AccNr": "sample string 2",
  "WaybillNumber": "sample string 3"
}

application/xml, text/xml

Sample:
<WaybillEmailCreationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DCB_API">
  <AccNr>sample string 2</AccNr>
  <ReceiverEmailAddress>sample string 1</ReceiverEmailAddress>
  <WaybillNumber>sample string 3</WaybillNumber>
</WaybillEmailCreationRequest>

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 'WaybillEmailCreationRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json

Sample:
{"success":true,"message":"Waybill email accepted by SMTP.","waybillNumber":"DCB000123456"}

text/json, application/xml, text/xml

Sample:

Sample not available.