getServicesforprovider (V6)
Description
The getServicesforprovider request will retrieve a list of available services for other Provider Token.
URL:Â https://secure1.sandbox.directpay.online/API/v6/
Usage
Use this method in order to get list of active services for other provider.
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 |
ProviderToken | Token | Api token of the provider you retrieve its services. | Mandatory |
Request example:
<?xml version="1.0" encoding="utf-8"?> <API3G> <Request>getServicesforprovider</Request> <CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken> <ProviderToken>CA55CE70-770B-4DFC-BBD0-D02117914C5D</ProviderToken> </API3G>
Response:
The server will respond for the getServicesforprovider request according to the following results:
Parameter | Data type | Description |
ServiceID | Number | Number of the service ID |
ServiceName | Text | Service name |
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 |
902 | Data mismatch in one of the fields |
950 | Wrong Provider Token |