Your client must use GET, POST, PUT and DELETE HTTP methods to successfully submit your entries or to remove your entry contacts.
The service URL is:
This is a secured service, please visit the IBC authority service first to produce your administrative token using
the Zipx REST services the URL:
The main entries URL: https://api.pactrak.com/zipx/addresses/##[+] .
The customer contact entries URL: https://api.pactrak.com/zipx/addresses/##-#+/contacts.
The ## correspond to your station code, designated by IBC. The customer contact entries include that station code as the prefix, a hyphen
- '-' and your reference ID for that customer.
You may produce HTTP GET, POST, PUT and DELETE requests to these URLs providing the appropriate Zipx station code or your specific Zipx entry number.
These are samples of correctly formatted URL's for station #22.
(Not all HTTP requests are displayed).
Each request entry should be submitted with a token parameter:
For example: https://api.pactrak.com/zipx/addresses/08?token=EROIPISDF:LLX...
The REST service currently accepts the following JSON structure to correctly report your information.
For GET requests you will receive the JSON structures for customer and customer contacts described above.
Note: the listings of the station response do not show the customer_contact entries.
The response objects will only show the properties that have been set. Missing or null values will not be displayed on the JSON response object.
For POST, PUT requests you will need to supply the the JSON structure as input to complete your transactions. POST entries should be submitted as a parameter named 'feed'. PUT can also be submitted as a parameter named feed (usually appended to the URL) or in the body of the AJAX request.
You can combine the customer and customer_entries structure for POST entries.
For PUT entries you should submit a single structure, either customer or customer_contact entry.Here is a sample JQuery ajax call to the service.
After making a POST or PUT submission you should expect a return of the following JSON structure:
Response JSON structure.
Restful services are capable of receiving requests form web based or standalone applications. We have tested our services to comply with REST standards, returning appropriate HTTP codes to help developers using commonly used frameworks as JQuery or Prototype.
Additionally, there are many examples from many different programming languages such as C#, Java, PHP and C++.If you desire to test or need Java sample code, the following project is an example of how to call an HTTP Rest service using HTTP POST protocol, IBCPost.