Stages of integration
To integrate with the Pony Express information system, we provide a universal service. You can connect via the WCF service https://svc-api.p2e.ru/UI_Service.svc?singleWsdl, or through the asmx service https://svc-api.p2e.ru/UI_Service.asmx?WSDL. It is preferable to connect through the WCF service, since the asmx service serves for backward compatibility and the development of this technology has been stopped by Microsoft.
Interaction with the service is carried out according to the SOAP protocol.
To interact with the service, you need to use the SubmitRequest method. It takes 2 input parameters:
- accessKey – client access key to the universal Pony Express interface;
- requestBody – XML string containing the request.
In response, the method returns another XML string that contains the result of the query.
To generate the correct XML, you can use examples of queries, as well as xsd-schemes, which can be obtained by the access key at the bottom of the page https://api.p2e.ru/Documentation
To obtain an access key to the API, you need to conclude a contract, fill out the form https://api.p2e.ru/Key/Connect. After confirming the request for the key issuance by the responsible manager, the key will be automatically sent to the client at the email address specified in the key issuance form. TB (transboundary) access keys are issued through access to the service desk. More details
Testing is carried out on a production environment with a test access key. At the same time, orders created with a test key are automatically deleted at night from the Pony Express Pegasus system. At the same time, they are saved in the API and are available for tracking.
To test requests, use a self-developed application.
You can also use the web form at https://api.p2e.ru/Request to interact with the Pony Express information system manually.
In addition, for testing requests, you can use the SoapUI utility
Questions about using the API can be asked here:
The application must indicate:
- topic: API. Customer Name. Briefly the essence of the issue
- in the body: Description of the problem. Applying XML request, XML response and access key.