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 .xml suffix or ?format=xml

HTTP + XML

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

POST /xml/reply/Promotion HTTP/1.1 
Host: parkmobile.us 
Content-Type: application/xml
Content-Length: length

<Promotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:parkmobile:phonixx:api:v1">
  <AddPromoErrors>
    <ErrorType>Undefined</ErrorType>
    <Message>String</Message>
  </AddPromoErrors>
  <ClaimTimeUtc>String</ClaimTimeUtc>
  <Description>String</Description>
  <DiscountDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/ParkMobile.PhonixxApi.ServiceInterfaces.Account.Discounts">
    <d2p1:DiscountDetails>
      <d2p1:DiscountUnit>String</d2p1:DiscountUnit>
      <d2p1:DiscountValue>String</d2p1:DiscountValue>
      <d2p1:FeeType>String</d2p1:FeeType>
    </d2p1:DiscountDetails>
  </DiscountDetails>
  <DiscountType>String</DiscountType>
  <EndDate>String</EndDate>
  <InfoUrl>String</InfoUrl>
  <InternalZoneCode>String</InternalZoneCode>
  <IsValidation>false</IsValidation>
  <ParkingActionId>0</ParkingActionId>
  <PromoCode>String</PromoCode>
  <PromoTitle>String</PromoTitle>
  <ShowValidationConfirm>false</ShowValidationConfirm>
  <StartDate>String</StartDate>
  <UsageCount>0</UsageCount>
  <ValidationConfirmMessage>String</ValidationConfirmMessage>
</Promotion>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PromotionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:parkmobile:phonixx:api:v1">
  <Discounts>
    <Promotion>
      <AddPromoErrors>
        <ErrorType>Undefined</ErrorType>
        <Message>String</Message>
      </AddPromoErrors>
      <ClaimTimeUtc>String</ClaimTimeUtc>
      <Description>String</Description>
      <DiscountDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/ParkMobile.PhonixxApi.ServiceInterfaces.Account.Discounts">
        <d4p1:DiscountDetails>
          <d4p1:DiscountUnit>String</d4p1:DiscountUnit>
          <d4p1:DiscountValue>String</d4p1:DiscountValue>
          <d4p1:FeeType>String</d4p1:FeeType>
        </d4p1:DiscountDetails>
      </DiscountDetails>
      <DiscountType>String</DiscountType>
      <EndDate>String</EndDate>
      <InfoUrl>String</InfoUrl>
      <InternalZoneCode>String</InternalZoneCode>
      <IsValidation>false</IsValidation>
      <ParkingActionId>0</ParkingActionId>
      <PromoCode>String</PromoCode>
      <PromoTitle>String</PromoTitle>
      <ShowValidationConfirm>false</ShowValidationConfirm>
      <StartDate>String</StartDate>
      <UsageCount>0</UsageCount>
      <ValidationConfirmMessage>String</ValidationConfirmMessage>
    </Promotion>
  </Discounts>
</PromotionResponse>