Show/Hide Toolbars

How to set up Purchase Pre-requisites

Navigation: Appendix

Request and Response examples

Scroll Prev Top Next More
MenusCale Support -> System Management -> Service Provider
Cale Support -> System Management -> Service Statistics

The examples show how the message is formatted in the Post Format field in Service Provider, then how the message is sent to the provider as it is visible in "Service Statistics". The last part shows how the response is visible in "Service Statistics".

On generation of the request the variables like {8} (for the Article ID) will be replaces with the values from the purchase data received from CWT or WTP.

For a complete list of available variables see the definition section in REST or SOAP.

Note:
The variables used in the Purchase Pre-Requisites format are different from the variables used in the Ongoing Purchase Transfer format.

XML format example

Request Post Format as in WebOffice Service Provider

<tem:ProcessPurchasePreRequisitesOnline xmlns:tem="http://barrierless.dsp.parkxs.nl/" xmlns:cwo2="http://schemas.datacontract.org/2004/07/Cwo2OngoingPurchaseService.Tests">
<arg0>
<parkingzone>Intertraffic-Amsterdam</parkingzone>
<licenseplate>{0}</licenseplate>
</arg0>
</tem:ProcessPurchasePreRequisitesOnline>

 

Formatted request sent:

The variables are replaced with values.

<tem:ProcessPurchasePreRequisitesOnline xmlns:tem="http://barrierless.dsp.parkxs.nl/" xmlns:cwo2="http://schemas.datacontract.org/2004/07/Cwo2OngoingPurchaseService.Tests"> <arg0> <parkingzone>Intertraffic-Amsterdam</parkingzone> <licenseplate>FXTRF</licenseplate> </arg0> </tem:ProcessPurchasePreRequisitesOnline

 

Response

<p:parkingSessionResponse xmlns:p="com.redora.Redora-CCM-DSS"><p:Licenseplate>FXTRF</p:Licenseplate><p:ParkingSessionID></p:ParkingSessionID><p:TariffID></p:TariffID><p:StartTime></p:StartTime><p:ResultCode>3</p:ResultCode></p:parkingSessionResponse>

JSON format example

Request Post Format as in WebOffice Service Provider

Important:
The JSON setup always MUST start with two {{ and end with two }}

{{
"CarReg":"{0}",
"IdentifierType" :"{1}",
"PaymentServiceid":"{2}",
"Article":"{3}",
"IdMsg":"{4}",
"TerminalID":"{5}",
"PaymentDate":"{6}",
"StartDateUTC":"{7}",
"EndDateUTC":"{8}"
}}

Formatted request sent:

The variables are replaced with values.

{ "CarReg":"DN50914", "IdentifierType" :"1", "PaymentServiceid":"1", "Article":"9000", "IdMsg":"beb7f0fd-1b23-4bd1-84e9-6d9bae8669f6", "TerminalID":"Test", "PaymentDate":"2017-02-24T11:28:44", "StartDateUTC":"2017-02-24T10:01:01", "EndDateUTC":"" }

 

Response

{ "GetStartTime": { "EntryTime": "2017-02-21T19:02:54", "IdMsg": "beb7f0fd-1b23-4bd1-84e9-6d9bae8669f6", "RateId": "15001", "ResultCode": 1 } }