Description
The getServicesforprovider request will retrieve the list of your available services.
URL: https://secure1.sandbox.directpay.online/API/v6/
Usage
Use this method in order to get the list of your active services.
Response
The method will response with the result of your request
Variables to send:
Parameter | Data type | Description | |
Request | Text | getServicesforprovider | Mandatory |
CompanyToken | Token | Token you got from 3G to operate this API | Mandatory |
Request example:
request example
<?xml version="1.0" encoding="utf-8"?> <API3G> <Request>getServicesforprovider</Request> <CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken> </API3G>
Response:
The server will respond for the getServices request according to the following results:
Parameter | Data type | Description |
ServiceID | Number | Number of the service ID |
ServiceName | Text | Service name |
Response example:
response example
<?xml version="1.0" encoding="utf-8"?> <API3G> <Services> <Service> <ServiceID>33</ServiceID> <ServiceName>Safari Holiday</ServiceName> </Service> <Service> <ServiceID>39</ServiceID> <ServiceName>Excursion</ServiceName> </Service> </Services> </API3G>
Codes in the response:
Code | Explanation |
801 | Request missing company token |
802 | Company token does not exist |
803 | No request or error in Request type name |
804 | Error in XML |