EMUN1 ASP.NET

<back to all web services

CreateShipment

Requires Authentication
The following routes are available for this service:
All Verbs/service/CreateShipment
CreateShipment Parameters:
NameParameterData TypeRequiredDescription
orderNumberquerystringNo
weightquerydecimalNo
lengthquerydecimalNo
widthquerydecimalNo
heightquerydecimalNo
namequerystringNo
senderAddressqueryAddressInfoNo
recipientAddressqueryAddressInfoNo
emailquerystringNo
AddressInfo Parameters:
NameParameterData TypeRequiredDescription
companyNameformstringNo
addressformstringNo
address2formstringNo
cityformstringNo
stateformstringNo
zipformstringNo
phoneformstringNo
ShipmentCreated Parameters:
NameParameterData TypeRequiredDescription
LabelGeneratedformboolNo
LabelUrlformstringNo
LabelIdformstringNo
TrackingNumberformstringNo
MessageformstringNo
OrderNumberformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /service/CreateShipment HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/xlsx
Content-Type: application/xlsx
Content-Length: length

{"orderNumber":"String","weight":0,"length":0,"width":0,"height":0,"name":"String","senderAddress":{"companyName":"String","address":"String","address2":"String","city":"String","state":"String","zip":"String","phone":"String"},"recipientAddress":{"companyName":"String","address":"String","address2":"String","city":"String","state":"String","zip":"String","phone":"String"},"email":"String"}
HTTP/1.1 200 OK
Content-Type: application/xlsx
Content-Length: length

{"labelGenerated":false,"labelUrl":"String","labelId":"String","trackingNumber":"String","message":"String","orderNumber":"String","orderNumber":"String","weight":0,"length":0,"width":0,"height":0,"name":"String","senderAddress":{"companyName":"String","address":"String","address2":"String","city":"String","state":"String","zip":"String","phone":"String"},"recipientAddress":{"companyName":"String","address":"String","address2":"String","city":"String","state":"String","zip":"String","phone":"String"},"email":"String"}