OnramperApi
com.usemoon.MoonSDK.Api.OnramperApi
All URIs are relative to https://beta.usemoon.ai
OnRamperCheckout
POST /onramper/fund/${accountName}
OnRamperGetQuotesBuy
GET /onramper/quotes/buy
OnRamperGetQuotesSell
GET /onramper/quotes/sell
OnRamperGetSupportedAssets
GET /onramper/assets
OnRamperGetSupportedCurrencies
GET /onramper/currencies
OnRamperGetSupportedDefaultsAll
GET /onramper/defaults
OnRamperGetSupportedOnRampsAll
GET /onramper/onramps
OnRamperGetSupportedPaymentTypes
GET /onramper/payment-types
OnRamperGetSupportedPaymentTypesFiat
GET /onramper/payment-types/fiat
OnRamperCheckout
Object OnRamperCheckout (string authorization, string accountName, TransactionInput transactionInput)
Example
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperCheckoutExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
var accountName = "accountName_example"; // string |
var transactionInput = new TransactionInput(); // TransactionInput |
try
{
Object result = apiInstance.OnRamperCheckout(authorization, accountName, transactionInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperCheckout: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}Using the OnRamperCheckoutWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
accountName
string
transactionInput
TransactionInput
Return type
Object
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: application/json
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetQuotesBuy
List<Quote> OnRamperGetQuotesBuy (string authorization, string fiat, string crypto, double amount, string? paymentMethod = null, string? uuid = null, string? clientName = null, string? country = null)
Example
Using the OnRamperGetQuotesBuyWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
fiat
string
crypto
string
amount
double
paymentMethod
string?
[optional] [default to "creditcard"]
uuid
string?
[optional] [default to ""]
clientName
string?
[optional] [default to ""]
country
string?
[optional] [default to ""]
Return type
List<Quote>
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetQuotesSell
List<SellQuote> OnRamperGetQuotesSell (string authorization, string fiat, string crypto, double amount, string? paymentMethod = null, string? uuid = null, string? clientName = null, string? country = null)
Example
Using the OnRamperGetQuotesSellWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
fiat
string
crypto
string
amount
double
paymentMethod
string?
[optional] [default to "creditcard"]
uuid
string?
[optional] [default to ""]
clientName
string?
[optional] [default to ""]
country
string?
[optional] [default to ""]
Return type
List<SellQuote>
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedAssets
SupportedAssetResponse OnRamperGetSupportedAssets (string authorization, string source, string country)
Example
Using the OnRamperGetSupportedAssetsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
source
string
country
string
Return type
SupportedAssetResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedCurrencies
SupportedCurrenciesResponse OnRamperGetSupportedCurrencies (string authorization, string type)
Example
Using the OnRamperGetSupportedCurrenciesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
type
string
Return type
SupportedCurrenciesResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedDefaultsAll
SupportedDefaultResponse OnRamperGetSupportedDefaultsAll (string authorization, string country, string type)
Example
Using the OnRamperGetSupportedDefaultsAllWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
country
string
type
string
Return type
SupportedDefaultResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedOnRampsAll
GetSupportedOnRampsResponse OnRamperGetSupportedOnRampsAll (string authorization)
Example
Using the OnRamperGetSupportedOnRampsAllWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
Return type
GetSupportedOnRampsResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedPaymentTypes
SupportedPaymentTypesCurrencyResponse OnRamperGetSupportedPaymentTypes (string authorization, string fiat, string country, string type)
Example
Using the OnRamperGetSupportedPaymentTypesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
fiat
string
country
string
type
string
Return type
SupportedPaymentTypesCurrencyResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OnRamperGetSupportedPaymentTypesFiat
SupportedPaymentTypesCurrencyResponse OnRamperGetSupportedPaymentTypesFiat (string authorization, string fiat, string country)
Example
Using the OnRamperGetSupportedPaymentTypesFiatWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
Parameters
authorization
string
fiat
string
country
string
Return type
SupportedPaymentTypesCurrencyResponse
Authorization
ApiKeyAuth, BearerAuth
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
200
Ok
-
[Back to top] [Back to API list] [Back to Model list] [Back to README]