MasspaySdk 2.0.1

dotnet add package MasspaySdk --version 2.0.1
                    
NuGet\Install-Package MasspaySdk -Version 2.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MasspaySdk" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MasspaySdk" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="MasspaySdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MasspaySdk --version 2.0.1
                    
#r "nuget: MasspaySdk, 2.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MasspaySdk@2.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MasspaySdk&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=MasspaySdk&version=2.0.1
                    
Install as a Cake Tool

<div align='center' class='text-center'> <img alt='' src='./assets/logo.png' width='200' /> <h1 align='center' class='text-center'>MasspaySdk</h1> </div>

<div align='center' class='text-center'> <a aria-label='Version' href='#'> <img alt='' src='https://img.shields.io/badge/version-2.0.1-blue' /> </a> <a aria-label='License' href='https://opensource.org/licenses/MIT'> <img alt='' src='https://img.shields.io/badge/License-MIT-blue.svg' /> </a> </div>

Welcome to our MasspaySdk. We are committed to providing you with the best SDK services experience possible. Please use our step-by-step instructions to become familiar with how to use our SDK.

  • Current API version: 1.0.0
  • Current package version: 2.0.1

Table of Contents

Requirements

  • Installed .NET, stable version >= 8.0. If you do not have it installed, please refer to the Microsoft website.
  • MassPay.io API credentials.

Installation

Use this command to install MasspaySdk in your terminal.

dotnet add package MasspaySdk

Usage

In case that you successfully installed our MasspaySdk please execute this code:

using MasspaySdk.Core;

internal class Program
{
    private static async Task Main(string[] args)
    {
        var config = new OpenAPIConfig();
        config.SetTokenValue("YOUR_API_KEY");
        var sdk = new MasspaySdk.Sdk(config);

        try {
            var response = await sdk.Account.GetAccountBalance(/* query parameters */);
            // Use response data
        } catch (ApiError e) {
            // Handle exception
        }
    }
}

Features

Kindly note that every URI is relative to https://api.masspay.io/v1.0.0.

The table displays all features categorized based on their specific purposes.

Class Method HTTP request Description
MasspaySdk.Sdk.Account GetAccountBalance GET /payout/account/balance Get current available balance
MasspaySdk.Sdk.Account GetAccountStatement GET /payout/account/statement Get certified account statement
MasspaySdk.Sdk.Attribute GetAllAttrs GET /payout/attribute/{user_token} Get all stored user attributes
MasspaySdk.Sdk.Attribute StoreAttrs POST /payout/attribute/{user_token}/{destination_token}/{currency} Store user attributes
MasspaySdk.Sdk.Attribute GetAttrs GET /payout/attribute/{user_token}/{destination_token}/{currency} Get user attributes for destination_token
MasspaySdk.Sdk.Card GetWalletCardInfo GET /payout/wallet/{user_token}/{wallet_token}/card Get MassPay card information
MasspaySdk.Sdk.Card UpdateWalletCardInfo PUT /payout/wallet/{user_token}/{wallet_token}/card Update MassPay card information
MasspaySdk.Sdk.Catalog GetCountryList GET /payout/country/list Gets a list of countries where services offered.
MasspaySdk.Sdk.Catalog GetCountryServices GET /payout/country/{country_code} Gets a list of Companies and their service offerings for the given country code.
MasspaySdk.Sdk.Catalog GetCheapestCountryServices GET /payout/country/{country_code}/cheapest Gets a list of Companies and their cheapest service offerings for the given country code.
MasspaySdk.Sdk.Catalog GetDestinationTokenAlternatives GET /payout/service/{destination_token}/alternatives Returns list of alternative service to a provided service
MasspaySdk.Sdk.Catalog GetDestinationToken GET /payout/service/{destination_token} Returns provided service
MasspaySdk.Sdk.Catalog GetUserAgreement GET /payout/user-agreements Get user agreement
MasspaySdk.Sdk.Catalog GetUserAgreementsNames OPTIONS /payout/user-agreements Get available user agreements
MasspaySdk.Sdk.Kyc FindAttributesVelocity POST /payout/attribute/{user_token}/velocity Attributes velocity check
MasspaySdk.Sdk.Kyc GetUserUserTokenKycAu10Tix GET /payout/user/{user_token}/kyc/au10tix Get an Au10tix session link
MasspaySdk.Sdk.Kyc UploadIdPhotos POST /payout/user/{user_token}/kyc/id Upload ID photos
MasspaySdk.Sdk.Kyc GetUserUserTokenKycAttempts GET /payout/user/{user_token}/kyc/id Get all KYC sessions
MasspaySdk.Sdk.Kyc GetUserUserTokenKycVeriff GET /payout/user/{user_token}/kyc/veriff Get a Veriff session link
MasspaySdk.Sdk.Load ResendBalanceNotification PUT /payout/wallet/{user_token} Resend balance notification
MasspaySdk.Sdk.Load LoadUser POST /payout/load/{user_token} Initiate a load transaction
MasspaySdk.Sdk.Load GetUserLoadsByToken GET /payout/load/{user_token} Get history of loads by user token
MasspaySdk.Sdk.Load ResendLoadNotification PUT /payout/load/{user_token} Resend load notification
MasspaySdk.Sdk.Load CancelUserLoad DELETE /payout/load/{user_token} Reverse a user load
MasspaySdk.Sdk.Payout InitiatePayout POST /payout/{user_token} Initiate a payout transaction
MasspaySdk.Sdk.Payout GetUserPayoutsByToken GET /payout/{user_token} Get history of payouts by user token
MasspaySdk.Sdk.Payout CommitPayoutTxn PUT /payout/{user_token}/{payout_token} Commit payout transaction
MasspaySdk.Sdk.Payout GetPayoutStatus GET /payout/{user_token}/{payout_token} Get status of a payout by payout token
MasspaySdk.Sdk.Payout GetTransactionConfirmationDetails PATCH /payout/{user_token}/{payout_token} Get transaction confirmation details
MasspaySdk.Sdk.SpendBack GetUserSpendbacksByToken GET /payout/spendback/{user_token} Get history of spend backs by user token
MasspaySdk.Sdk.SpendBack InitiateSpendback POST /payout/spendback/{user_token} Initiate a spend back transaction
MasspaySdk.Sdk.Subaccount CreateSubaccount POST /subaccount Create a subaccount
MasspaySdk.Sdk.Subaccount GetSubaccountSubaccountTokenUbo POST /subaccount/{subaccount_token}/ubo Add UBOs to subaccount
MasspaySdk.Sdk.Subaccount UploadSubaccountUboId POST /subaccount/{subaccount_token}/ubo/{ubo_token}/id Upload UBO ID photos
MasspaySdk.Sdk.Tax GetTaxUsers GET /payout/tax Get list of users' annual balance
MasspaySdk.Sdk.Tax GetTaxInterviewLink GET /payout/{user_token}/tax Get link for tax interview
MasspaySdk.Sdk.User CreateUser POST /payout/user Create a user
MasspaySdk.Sdk.User GetUserByToken GET /payout/user/{user_token} Get user by user token
MasspaySdk.Sdk.User UpdateUser PUT /payout/user/{user_token} Updated user
MasspaySdk.Sdk.User UserLookup GET /payout/user/lookup Lookup an existing user
MasspaySdk.Sdk.User GetUserHistory GET /payout/user/{user_token}/history Transactions history
MasspaySdk.Sdk.User GetAllUsersHistory GET /payout/user/history All Users' Transactions history
MasspaySdk.Sdk.Wallet GetWallet GET /payout/wallet/{user_token} Retrieve all available wallets for a user
MasspaySdk.Sdk.Wallet GetAutopayoutRules GET /payout/wallet/{user_token}/{wallet_token}/autopayout Get all AutoPayout rules
MasspaySdk.Sdk.Wallet CreateAutopayoutRule POST /payout/wallet/{user_token}/{wallet_token}/autopayout Add AutoPayout rule
MasspaySdk.Sdk.Wallet DeleteAutopayoutRule DELETE /payout/wallet/{user_token}/{wallet_token}/autopayout Delete AutoPayout rule

Contributing

To learn more about the possibility of contributing to the subsequent development of this SDK, please visit our contributing page. Kindly note that contributions are limited by a unique set of rules in order to ensure clarity.

License

Please refer to the license page for more information about the license type and the corresponding terms of use.

Contact

We kindly request that you direct all questions to our support email:

Frequently Asked Questions (FAQ)

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 481 10/2/2024
2.0.0 186 9/30/2024

Name is now included in pages