Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Description

Get subscription token with company token

URL: https://secure.3gdirectpay.com/api/v6/index.php

Variables to send:

Parameter
Data type
Description

RequestText getSubscriptionTokenMandatory
CompanyTokenToken

Token you got from 3G to operate this API

Mandatory
SearchCriteriaNumberDetermine if authentication will occur by Email or phone numberMandatory
SearchCriteriaValueTextEmail or phone number (depends on what chosen in SearchCriteria)Mandatory

Request example:

Request example

<?xml version="1.0" encoding="utf-8"?>
<API3G>
<CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0CAABB3</CompanyToken>
<Request>getSubscriptionToken</Request>
<SearchCriteria>1</SearchCriteria>
<SearchCriteriaValue>test@directpay.online</SearchCriteriaValue>
</API3G>

Respond:

The server will respond for the getServicesforprovider request according to the following results:

Parameter
Data type
Description
Result
NumberResault code
ResultExplanation
TextFree text of the response
SubscriptionTokenTokenThe Subscription token

Respond example:

response example

<?xml version="1.0" encoding="utf-8"?>
<API3G>
    <Result>000</Result>
    <ResultExplanation>Success</ResultExplanation>
        <SubscriptionToken>7CE95D1D-F7A8-491D-BFC1-E4CF47249242</SubscriptionToken>
</API3G>
  • No labels