HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/Promotion HTTP/1.1
Host: parkmobile.us
Content-Type: text/jsv
Content-Length: length
{
promoCode: String,
promoTitle: String,
description: String,
claimTimeUtc: String,
startDate: String,
endDate: String,
discountType: String,
infoUrl: String,
validationConfirmMessage: String,
showValidationConfirm: False,
usageCount: 0,
discountDetails:
[
{
discountUnit: String,
discountValue: String,
feeType: String
}
],
internalZoneCode: String,
addPromoErrors:
{
message: String,
errorType: Undefined
},
isValidation: False,
parkingActionId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
discounts:
[
{
promoCode: String,
promoTitle: String,
description: String,
claimTimeUtc: String,
startDate: String,
endDate: String,
discountType: String,
infoUrl: String,
validationConfirmMessage: String,
showValidationConfirm: False,
usageCount: 0,
discountDetails:
[
{
discountUnit: String,
discountValue: String,
feeType: String
}
],
internalZoneCode: String,
addPromoErrors:
{
message: String,
errorType: Undefined
},
isValidation: False,
parkingActionId: 0
}
]
}