Error response for Start, Stop and Extend permit requests
If the Authentication header is invalid or missing, empty response is returned with REST 401 Unauthorized.
-
Status values:
OK |
Request succeeded with response code 200 |
NOK |
Request failed with response code 200 |
-
Error field values
key_expired |
Authorization credentials have expired |
key_disabled |
Authorization credentials have been disabled |
invalid_object_id |
ObjectId does not exist |
invalid_vehicle_reg |
Vehicle registry number parsing failed |
invalid_date_format |
Invalid date format |
invalid_time_dilation |
Invalid start and end date |
missing_permit |
Extending/stopping nonexistent permit |
duplicate |
Duplicate permit (still active) |
archived |
Stopping/extending already archived permit |
insufficient_privileges |
Partners permit API credentials have been revoked |
Example
Status: 200
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://soap.eparking.lv/permit/v1/">
<env:Body>
<ns1:StorePermitResponse>
<Status>NOK</Status>
<Error>duplicate</Error>
</ns1:StorePermitResponse>
</env:Body>
</env:Envelope>
Detailed error descriptions can be found in XSD
Error response for malfunctions
Status: 500
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://eparking.lv/soap/permit/v1/">
<env:Body>
<ns1:ErrorResponse>
<Errors>
<Error>
<Message>Opening and ending tag mismatch: ExtendPermitRequest line 3 and ExtenPermitRequest</Message>
<Line>9</Line> <!-- Optional -->
<Column>29</Column> <!-- Optional -->
</Error>
</Errors>
</ns1:ErrorResponse>
</env:Body>
</env:Envelope>
libxml errors
Status: 500
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>rpc:ProcedureNotPresent</env:Value>
</env:Code>
<env:Reason>
<env:Text>Procedure not present</env:Text>
</env:Reason>
</env:Fault>
</env:Body>
</env:Envelope>