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"}