To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
HTTP + JSV
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.bernhardt.com
Accept: text/jsv
Content-Type: text/jsv
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: text/jsv
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
}