PaymentApi

com.usemoon.MoonSDK.Api.PaymentApi

All URIs are relative to https://vault-api.usemoon.ai

Method
HTTP request
Description

MoralisWebhook

POST /payment/webhook/{id}

PaymentCreatePaymentIntent

POST /payment

PaymentDeletePaymentIntent

DELETE /payment/{id}

PaymentGetAllPaymentIntents

GET /payment

PaymentGetAvailableChains

GET /payment/chains

PaymentGetPaymentIntent

GET /payment/{id}

PaymentUpdatePaymentIntent

PUT /payment/{id}

TatumWebhook

POST /payment/tatum/webhook/{id}

MoralisWebhook

Object MoralisWebhook (string id, IWebhook iWebhook)

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 MoralisWebhookExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://vault-api.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 PaymentApi(config);
            var id = "id_example";  // string | 
            var iWebhook = new IWebhook(); // IWebhook | 

            try
            {
                Object result = apiInstance.MoralisWebhook(id, iWebhook);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling PaymentApi.MoralisWebhook: " + e.Message);
                Debug.Print("Status Code: " + e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Using the MoralisWebhookWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

id

string

iWebhook

IWebhook

Return type

Object

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PaymentCreatePaymentIntent

PaymentIntentResponse PaymentCreatePaymentIntent (string authorization, CreatePaymentIntentInput createPaymentIntentInput)

Example

Using the PaymentCreatePaymentIntentWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

createPaymentIntentInput

CreatePaymentIntentInput

Return type

PaymentIntentResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PaymentDeletePaymentIntent

PaymentIntentResponse PaymentDeletePaymentIntent (string authorization, string id)

Example

Using the PaymentDeletePaymentIntentWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

id

string

Return type

PaymentIntentResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PaymentGetAllPaymentIntents

List<PaymentIntentResponse> PaymentGetAllPaymentIntents (string authorization)

Example

Using the PaymentGetAllPaymentIntentsWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

Return type

List<PaymentIntentResponse>

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PaymentGetAvailableChains

List<string> PaymentGetAvailableChains ()

Example

Using the PaymentGetAvailableChainsWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PaymentGetPaymentIntent

PaymentIntentResponse PaymentGetPaymentIntent (string authorization, string id)

Example

Using the PaymentGetPaymentIntentWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

id

string

Return type

PaymentIntentResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PaymentUpdatePaymentIntent

PaymentIntentResponse PaymentUpdatePaymentIntent (string authorization, string id, CreatePaymentIntentInput createPaymentIntentInput)

Example

Using the PaymentUpdatePaymentIntentWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

authorization

string

id

string

createPaymentIntentInput

CreatePaymentIntentInput

Return type

PaymentIntentResponse

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

TatumWebhook

Object TatumWebhook (string id, Object body)

Example

Using the TatumWebhookWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

Name
Type
Description
Notes

id

string

body

Object

Return type

Object

Authorization

ApiKeyAuth, BearerAuth

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code
Description
Response headers

200

Ok

-

[Back to top] [Back to API list] [Back to Model list] [Back to README]