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 .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 /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
		}
	]
}