getSubscriptionToken

Description

Get subscription token with company token

URL:  https://secure.3gdirectpay.com/API/v6/

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(1)or phone number(2)Mandatory
SearchCriteriaValueTextEmail or phone number (depends on what chosen in SearchCriteria)Mandatory

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>

Response:

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

Parameter
Data type
Description
Result
NumberResult code
ResultExplanation
TextFree text of the response
SubscriptionTokenTokenThe Subscription token
CustomerTokenTokenThe Customer Token

Response example:

<?xml version="1.0" encoding="utf-8"?>

<API3G>

    <Result>000</Result>

    <ResultExplanation>Success</ResultExplanation>

    <SubscriptionToken>37CB51E6-EF18-4E27-A80E-8448B7B0342A</SubscriptionToken>

    <CustomerToken>C1E0F067-DFB9-4CA0-8CC2-FCC6018243B3</CustomerToken>

</API3G>