Multi Wallet

Multi Wallet Transactions

GET ‎https://<domain>/<api prefix>/<version>/mlm/mwallet-transactions/

get the multi-wallet transactions

Query Parameters

NameTypeDescription

wallet

string

Wallet Key

category

string

Possible values are tds-other-charge, payout, earnings, earning_credited, credited and debited

period

string

Possible values are today, yesterday, this-week, last-week, this-month, last-month, this-year, and last-year

Headers

NameTypeDescription

apikey*

string

apikey

Authorization*

string

Bearer Access token

HTTP/1.1 200 OK
Content-Type: application/json

Body:
{
    "status_code": 200,
    "errors": {},
    "data": [
        {
            "category": "<category>",
            "amount_paid": "<amount_paid>",
            "currency_code": "<currency_code>",
            "currency_symbol": "<currency_symbol>",
            "credit_status": "<credit_status>",
            "created": "<created>",
            "associated_user_id__username": "<ssociated_user_id__username>"
       },
       ...
    ]
}

Sample Code

Node

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://<domain>/<api prefix>/<version>/mlm/mwallet-transactions/',
  'headers': {
    'apikey': '<apikey>',
    'Authorization': 'Bearer <access token>',
  },
  formData: {}
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

PHP

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://<domain>/<api prefix>/<version>/mlm/mwallet-transactions/',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'apikey: <apikey>',
    'Authorization: Bearer <access token>',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Multi Wallet Summary

GET ‎https://<domain>/<api prefix>/<version>/mlm/mwallet-summary/

get the summary of transactions

Headers

NameTypeDescription

apikey*

string

apikey

Authorization*

string

Bearer Access Token

HTTP/1.1 200 OK
Content-Type: application/json

Body:
{
    "status_code": 200,
    "errors": {},
    "data": {
        "walletdata": [
            {
                "wallet_overview_data": [
                    {
                        "category": "<category>",
                        "total_vol": "<total_vol>",
                        "amount": <amount>
                    },
                    ...
                ],
                "wallet_data": {
                    "hold_amount": "<hold_amount>",
                    "available_balance": "<available_balance>",
                    "total_earnings": "<total_earnings>",
                    "total_debits": "<total_debits>",
                    "pending_commissions": "<pending_commissions>",
                    "payout_completed": "<payout_completed>",
                    "payout_in_progress": "<payout_in_progress>"
                },
                "wallet": "<wallet>",
                "wallet_name": "<wallet_name>",
                "currency": "<currency>"
            },
            ...
        ],
        "finance": {
            "total_investments": {
                "amount": <amount>,
                "value": "<value>"
            },
            "tds_or_charges": {
               "amount": <amount>,
               "value": "<value>"
            },
            "completed_withrawal": {
                "amount": <amount>,
                "value": "<value>"
            },
            "net_benifits": {
                "amount": <amount>,
                "value": "<value>"
            },
            "total_bonus": {
                "amount": <amount>,
                "value": "<value>"
            },
            "currency_symbol": "<currency_symbol>"
        }
    }
}

Sample Code

Node

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://<domain>/<api prefix>/<version>/mlm/mwallet-summary/',
  'headers': {
    'apikey': '<apikey>',
    'Authorization': 'Bearer <access token>',
  },
  formData: {}
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

PHP

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://<domain>/<api prefix>/<version>/mlm/mwallet-summary/',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'apikey: <apikey>',
    'Authorization: Bearer <access token>'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Last updated