Phonixx Api

<back to all web services

Promotion

The following routes are available for this service:
GET,POST,OPTIONS/account/promos
GET,OPTIONS/account/promo/{PromoCode}
GET,POST,OPTIONS/account/promo/zone/{InternalZoneCode}

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/Promotion HTTP/1.1 
Host: parkmobile.us 
Content-Type: application/json
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: application/json
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}]}