Nanoom: Nano pull payments made easy

Providers

paymentsPaymentIdGet

Fetches info about a specific payment. Useful to check its status and stuff


/payments/{payment_id}

Usage and SDK Samples

curl -X GET -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/payments/{payment_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProvidersApi;

import java.io.File;
import java.util.*;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        ProvidersApi apiInstance = new ProvidersApi();
        UUID paymentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The payment ID we are trying to fetch
        try {
            Payment result = apiInstance.paymentsPaymentIdGet(paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#paymentsPaymentIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProvidersApi;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ProvidersApi apiInstance = new ProvidersApi();
        UUID paymentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The payment ID we are trying to fetch
        try {
            Payment result = apiInstance.paymentsPaymentIdGet(paymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#paymentsPaymentIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
UUID *paymentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The payment ID we are trying to fetch

ProvidersApi *apiInstance = [[ProvidersApi alloc] init];

// Fetches info about a specific payment. Useful to check its status and stuff
[apiInstance paymentsPaymentIdGetWith:paymentId
              completionHandler: ^(Payment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.ProvidersApi()
var paymentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The payment ID we are trying to fetch

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.paymentsPaymentIdGet(paymentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class paymentsPaymentIdGetExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new ProvidersApi();
            var paymentId = new UUID(); // UUID | The payment ID we are trying to fetch

            try
            {
                // Fetches info about a specific payment. Useful to check its status and stuff
                Payment result = apiInstance.paymentsPaymentIdGet(paymentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProvidersApi.paymentsPaymentIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiProvidersApi();
$paymentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The payment ID we are trying to fetch

try {
    $result = $api_instance->paymentsPaymentIdGet($paymentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProvidersApi->paymentsPaymentIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProvidersApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProvidersApi->new();
my $paymentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The payment ID we are trying to fetch

eval { 
    my $result = $api_instance->paymentsPaymentIdGet(paymentId => $paymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProvidersApi->paymentsPaymentIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProvidersApi()
paymentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The payment ID we are trying to fetch

try: 
    # Fetches info about a specific payment. Useful to check its status and stuff
    api_response = api_instance.payments_payment_id_get(paymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProvidersApi->paymentsPaymentIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
payment_id*
UUID (uuid)
The payment ID we are trying to fetch
Required

Responses

Status: 200 - Payment found just fine

Status: 401 - Unauthorized

Status: 404 - Not found

Status: 500 - We messed up


paymentsRequestPost

Starts a payment request

This method is used by providers to try to send payment requests to the users that have granted them permissions to do so. The user ultimately has to approve or reject the requested payment.


/payments/request

Usage and SDK Samples

curl -X POST -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/payments/request"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProvidersApi;

import java.io.File;
import java.util.*;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        ProvidersApi apiInstance = new ProvidersApi();
        PaymentRequest body = ; // PaymentRequest | 
        try {
            PaymentResponse result = apiInstance.paymentsRequestPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#paymentsRequestPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProvidersApi;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ProvidersApi apiInstance = new ProvidersApi();
        PaymentRequest body = ; // PaymentRequest | 
        try {
            PaymentResponse result = apiInstance.paymentsRequestPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#paymentsRequestPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
PaymentRequest *body = ; //  (optional)

ProvidersApi *apiInstance = [[ProvidersApi alloc] init];

// Starts a payment request
[apiInstance paymentsRequestPostWith:body
              completionHandler: ^(PaymentResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.ProvidersApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.paymentsRequestPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class paymentsRequestPostExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new ProvidersApi();
            var body = new PaymentRequest(); // PaymentRequest |  (optional) 

            try
            {
                // Starts a payment request
                PaymentResponse result = apiInstance.paymentsRequestPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProvidersApi.paymentsRequestPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiProvidersApi();
$body = ; // PaymentRequest | 

try {
    $result = $api_instance->paymentsRequestPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProvidersApi->paymentsRequestPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProvidersApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProvidersApi->new();
my $body = WWW::SwaggerClient::Object::PaymentRequest->new(); # PaymentRequest | 

eval { 
    my $result = $api_instance->paymentsRequestPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProvidersApi->paymentsRequestPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProvidersApi()
body =  # PaymentRequest |  (optional)

try: 
    # Starts a payment request
    api_response = api_instance.payments_request_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProvidersApi->paymentsRequestPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Payment request was created successfully

Status: 400 - Invalid parameters

Status: 401 - Unauthorized

Status: 404 - When the requestee id is not found.

Status: 500 - We messed up ...


permissionsInitPost

Obtains a token to request user permissions to be able to send payment requests

Sent from a provider to get a token that the requestee has to submit to nanoom to grant the permission. Allows to set a custom ID to link a provider user with the permission request


/permissions/init

Usage and SDK Samples

curl -X POST -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/permissions/init"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProvidersApi;

import java.io.File;
import java.util.*;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        ProvidersApi apiInstance = new ProvidersApi();
        InitPermissionRequest body = ; // InitPermissionRequest | 
        try {
            InitPermissionResponse result = apiInstance.permissionsInitPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#permissionsInitPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProvidersApi;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ProvidersApi apiInstance = new ProvidersApi();
        InitPermissionRequest body = ; // InitPermissionRequest | 
        try {
            InitPermissionResponse result = apiInstance.permissionsInitPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#permissionsInitPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
InitPermissionRequest *body = ; //  (optional)

ProvidersApi *apiInstance = [[ProvidersApi alloc] init];

// Obtains a token to request user permissions to be able to send payment requests
[apiInstance permissionsInitPostWith:body
              completionHandler: ^(InitPermissionResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.ProvidersApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.permissionsInitPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class permissionsInitPostExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new ProvidersApi();
            var body = new InitPermissionRequest(); // InitPermissionRequest |  (optional) 

            try
            {
                // Obtains a token to request user permissions to be able to send payment requests
                InitPermissionResponse result = apiInstance.permissionsInitPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProvidersApi.permissionsInitPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiProvidersApi();
$body = ; // InitPermissionRequest | 

try {
    $result = $api_instance->permissionsInitPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProvidersApi->permissionsInitPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProvidersApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProvidersApi->new();
my $body = WWW::SwaggerClient::Object::InitPermissionRequest->new(); # InitPermissionRequest | 

eval { 
    my $result = $api_instance->permissionsInitPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProvidersApi->permissionsInitPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProvidersApi()
body =  # InitPermissionRequest |  (optional)

try: 
    # Obtains a token to request user permissions to be able to send payment requests
    api_response = api_instance.permissions_init_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProvidersApi->permissionsInitPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Permission request has been initialized, needs confirmation from the user.

Status: 400 - Invalid parameters

Status: 401 - Unauthorized

Status: 500 - We messed up


permissionsPermissionIdGet

Fetches info about a specific permission. Useful to check its status and stuff


/permissions/{permission_id}

Usage and SDK Samples

curl -X GET -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/permissions/{permission_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProvidersApi;

import java.io.File;
import java.util.*;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        ProvidersApi apiInstance = new ProvidersApi();
        UUID permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The permission ID we are trying to fetch
        try {
            InitPermissionResponse result = apiInstance.permissionsPermissionIdGet(permissionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#permissionsPermissionIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProvidersApi;

public class ProvidersApiExample {

    public static void main(String[] args) {
        ProvidersApi apiInstance = new ProvidersApi();
        UUID permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The permission ID we are trying to fetch
        try {
            InitPermissionResponse result = apiInstance.permissionsPermissionIdGet(permissionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProvidersApi#permissionsPermissionIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
UUID *permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The permission ID we are trying to fetch

ProvidersApi *apiInstance = [[ProvidersApi alloc] init];

// Fetches info about a specific permission. Useful to check its status and stuff
[apiInstance permissionsPermissionIdGetWith:permissionId
              completionHandler: ^(InitPermissionResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.ProvidersApi()
var permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The permission ID we are trying to fetch

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.permissionsPermissionIdGet(permissionId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class permissionsPermissionIdGetExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new ProvidersApi();
            var permissionId = new UUID(); // UUID | The permission ID we are trying to fetch

            try
            {
                // Fetches info about a specific permission. Useful to check its status and stuff
                InitPermissionResponse result = apiInstance.permissionsPermissionIdGet(permissionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProvidersApi.permissionsPermissionIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiProvidersApi();
$permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The permission ID we are trying to fetch

try {
    $result = $api_instance->permissionsPermissionIdGet($permissionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProvidersApi->permissionsPermissionIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProvidersApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProvidersApi->new();
my $permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The permission ID we are trying to fetch

eval { 
    my $result = $api_instance->permissionsPermissionIdGet(permissionId => $permissionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProvidersApi->permissionsPermissionIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProvidersApi()
permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The permission ID we are trying to fetch

try: 
    # Fetches info about a specific permission. Useful to check its status and stuff
    api_response = api_instance.permissions_permission_id_get(permissionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProvidersApi->permissionsPermissionIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
permission_id*
UUID (uuid)
The permission ID we are trying to fetch
Required

Responses

Status: 200 - Permission found just fine

Status: 401 - Unauthorized

Status: 404 - Not found

Status: 500 - We messed up


Wallets

paymentsResultPost

Sent by the wallet owner to update nanoom about a payment request result.

When a request is either accepted or rejected by a wallet user, the wallet should let nanoom know about how it went. If the request was accepted it should also include the transaction and its ID.


/payments/result

Usage and SDK Samples

curl -X POST -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/payments/result"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WalletsApi;

import java.io.File;
import java.util.*;

public class WalletsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        WalletsApi apiInstance = new WalletsApi();
        PaymentUpdate body = ; // PaymentUpdate | 
        try {
            apiInstance.paymentsResultPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#paymentsResultPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WalletsApi;

public class WalletsApiExample {

    public static void main(String[] args) {
        WalletsApi apiInstance = new WalletsApi();
        PaymentUpdate body = ; // PaymentUpdate | 
        try {
            apiInstance.paymentsResultPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#paymentsResultPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
PaymentUpdate *body = ; //  (optional)

WalletsApi *apiInstance = [[WalletsApi alloc] init];

// Sent by the wallet owner to update nanoom about a payment request result.
[apiInstance paymentsResultPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.WalletsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.paymentsResultPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class paymentsResultPostExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new WalletsApi();
            var body = new PaymentUpdate(); // PaymentUpdate |  (optional) 

            try
            {
                // Sent by the wallet owner to update nanoom about a payment request result.
                apiInstance.paymentsResultPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WalletsApi.paymentsResultPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiWalletsApi();
$body = ; // PaymentUpdate | 

try {
    $api_instance->paymentsResultPost($body);
} catch (Exception $e) {
    echo 'Exception when calling WalletsApi->paymentsResultPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WalletsApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::WalletsApi->new();
my $body = WWW::SwaggerClient::Object::PaymentUpdate->new(); # PaymentUpdate | 

eval { 
    $api_instance->paymentsResultPost(body => $body);
};
if ($@) {
    warn "Exception when calling WalletsApi->paymentsResultPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.WalletsApi()
body =  # PaymentUpdate |  (optional)

try: 
    # Sent by the wallet owner to update nanoom about a payment request result.
    api_instance.payments_result_post(body=body)
except ApiException as e:
    print("Exception when calling WalletsApi->paymentsResultPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Acknowledged


permissionsGrantPost

Grants or rejects a permission from a request initiated by a provider

It is used to grant a permission requested by a provider. It needs to be sent by an authorized nanoom user, or if not (sent through a wallet), include a signature from that user.


/permissions/grant

Usage and SDK Samples

curl -X POST -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/permissions/grant"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WalletsApi;

import java.io.File;
import java.util.*;

public class WalletsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        WalletsApi apiInstance = new WalletsApi();
        GrantPermissionRequest body = ; // GrantPermissionRequest | 
        try {
            apiInstance.permissionsGrantPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#permissionsGrantPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WalletsApi;

public class WalletsApiExample {

    public static void main(String[] args) {
        WalletsApi apiInstance = new WalletsApi();
        GrantPermissionRequest body = ; // GrantPermissionRequest | 
        try {
            apiInstance.permissionsGrantPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#permissionsGrantPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
GrantPermissionRequest *body = ; //  (optional)

WalletsApi *apiInstance = [[WalletsApi alloc] init];

// Grants or rejects a permission from a request initiated by a provider
[apiInstance permissionsGrantPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.WalletsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.permissionsGrantPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class permissionsGrantPostExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new WalletsApi();
            var body = new GrantPermissionRequest(); // GrantPermissionRequest |  (optional) 

            try
            {
                // Grants or rejects a permission from a request initiated by a provider
                apiInstance.permissionsGrantPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WalletsApi.permissionsGrantPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiWalletsApi();
$body = ; // GrantPermissionRequest | 

try {
    $api_instance->permissionsGrantPost($body);
} catch (Exception $e) {
    echo 'Exception when calling WalletsApi->permissionsGrantPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WalletsApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::WalletsApi->new();
my $body = WWW::SwaggerClient::Object::GrantPermissionRequest->new(); # GrantPermissionRequest | 

eval { 
    $api_instance->permissionsGrantPost(body => $body);
};
if ($@) {
    warn "Exception when calling WalletsApi->permissionsGrantPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.WalletsApi()
body =  # GrantPermissionRequest |  (optional)

try: 
    # Grants or rejects a permission from a request initiated by a provider
    api_instance.permissions_grant_post(body=body)
except ApiException as e:
    print("Exception when calling WalletsApi->permissionsGrantPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - ok

Status: 400 - Invalid parameters

Status: 401 - Unauthorized

Status: 404 - When the permission which we are trying to approve it, or the user granting it does not exist.

Status: 500 - We messed up ...


permissionsPermissionIdGet

Fetches info about a specific permission. Useful to check its status and stuff


/permissions/{permission_id}

Usage and SDK Samples

curl -X GET -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/permissions/{permission_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WalletsApi;

import java.io.File;
import java.util.*;

public class WalletsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        WalletsApi apiInstance = new WalletsApi();
        UUID permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The permission ID we are trying to fetch
        try {
            InitPermissionResponse result = apiInstance.permissionsPermissionIdGet(permissionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#permissionsPermissionIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WalletsApi;

public class WalletsApiExample {

    public static void main(String[] args) {
        WalletsApi apiInstance = new WalletsApi();
        UUID permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The permission ID we are trying to fetch
        try {
            InitPermissionResponse result = apiInstance.permissionsPermissionIdGet(permissionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#permissionsPermissionIdGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
UUID *permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The permission ID we are trying to fetch

WalletsApi *apiInstance = [[WalletsApi alloc] init];

// Fetches info about a specific permission. Useful to check its status and stuff
[apiInstance permissionsPermissionIdGetWith:permissionId
              completionHandler: ^(InitPermissionResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.WalletsApi()
var permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The permission ID we are trying to fetch

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.permissionsPermissionIdGet(permissionId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class permissionsPermissionIdGetExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new WalletsApi();
            var permissionId = new UUID(); // UUID | The permission ID we are trying to fetch

            try
            {
                // Fetches info about a specific permission. Useful to check its status and stuff
                InitPermissionResponse result = apiInstance.permissionsPermissionIdGet(permissionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WalletsApi.permissionsPermissionIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiWalletsApi();
$permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The permission ID we are trying to fetch

try {
    $result = $api_instance->permissionsPermissionIdGet($permissionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WalletsApi->permissionsPermissionIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WalletsApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::WalletsApi->new();
my $permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The permission ID we are trying to fetch

eval { 
    my $result = $api_instance->permissionsPermissionIdGet(permissionId => $permissionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WalletsApi->permissionsPermissionIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.WalletsApi()
permissionId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The permission ID we are trying to fetch

try: 
    # Fetches info about a specific permission. Useful to check its status and stuff
    api_response = api_instance.permissions_permission_id_get(permissionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WalletsApi->permissionsPermissionIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
permission_id*
UUID (uuid)
The permission ID we are trying to fetch
Required

Responses

Status: 200 - Permission found just fine

Status: 401 - Unauthorized

Status: 404 - Not found

Status: 500 - We messed up


walletsUsersPost

Onboards a new user to nanoom

As a wallet provider, you need to link your users with nanoom so that we know who to send payment requests to. To onboard a user you just need to send a Nano public key. This key will be used to sign permissions and payments responses.


/wallets/users

Usage and SDK Samples

curl -X POST -H "X-AUTH-APIKEY: [[apiKey]]" "https://nanoom.tech/wallets/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WalletsApi;

import java.io.File;
import java.util.*;

public class WalletsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        WalletsApi apiInstance = new WalletsApi();
        OnboardWalletUserRequest body = ; // OnboardWalletUserRequest | 
        try {
            OnboardWalletUserResponse result = apiInstance.walletsUsersPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#walletsUsersPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WalletsApi;

public class WalletsApiExample {

    public static void main(String[] args) {
        WalletsApi apiInstance = new WalletsApi();
        OnboardWalletUserRequest body = ; // OnboardWalletUserRequest | 
        try {
            OnboardWalletUserResponse result = apiInstance.walletsUsersPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WalletsApi#walletsUsersPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-AUTH-APIKEY"];
OnboardWalletUserRequest *body = ; //  (optional)

WalletsApi *apiInstance = [[WalletsApi alloc] init];

// Onboards a new user to nanoom
[apiInstance walletsUsersPostWith:body
              completionHandler: ^(OnboardWalletUserResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');
var defaultClient = NanoomNanoPullPaymentsMadeEasy.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['X-AUTH-APIKEY'] = "Token"

var api = new NanoomNanoPullPaymentsMadeEasy.WalletsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.walletsUsersPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class walletsUsersPostExample
    {
        public void main()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("X-AUTH-APIKEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-AUTH-APIKEY", "Bearer");

            var apiInstance = new WalletsApi();
            var body = new OnboardWalletUserRequest(); // OnboardWalletUserRequest |  (optional) 

            try
            {
                // Onboards a new user to nanoom
                OnboardWalletUserResponse result = apiInstance.walletsUsersPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WalletsApi.walletsUsersPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-AUTH-APIKEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-AUTH-APIKEY', 'Bearer');

$api_instance = new Swagger\Client\ApiWalletsApi();
$body = ; // OnboardWalletUserRequest | 

try {
    $result = $api_instance->walletsUsersPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WalletsApi->walletsUsersPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WalletsApi;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'X-AUTH-APIKEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-AUTH-APIKEY'} = "Bearer";

my $api_instance = WWW::SwaggerClient::WalletsApi->new();
my $body = WWW::SwaggerClient::Object::OnboardWalletUserRequest->new(); # OnboardWalletUserRequest | 

eval { 
    my $result = $api_instance->walletsUsersPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling WalletsApi->walletsUsersPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['X-AUTH-APIKEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['X-AUTH-APIKEY'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.WalletsApi()
body =  # OnboardWalletUserRequest |  (optional)

try: 
    # Onboards a new user to nanoom
    api_response = api_instance.wallets_users_post(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WalletsApi->walletsUsersPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Success message with nanoom user ID

Status: 400 - Unable to parse, missing parameters, etc ...

Status: 401 - Invalid, missing, expired or revoked api key

Status: 409 - If the user is already registered

Status: 500 - Sometimes we mess up ¯\\\_(ツ)\_/¯


Webhooks

yourOwnCustomUrlPaymentRequestRespondedPost

Notifies a provider when a payment request has a response.

After a provider has sent a payment request to a user, whenever it is that the user replies back, either approving or rejecting, this callback will be sent to the provider. It will include the outcome, some custom data, and info about the transaction.


/your_own_custom_url/payment_request_responded

Usage and SDK Samples

curl -X POST "https://nanoom.tech/your_own_custom_url/payment_request_responded"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WebhooksApi;

import java.io.File;
import java.util.*;

public class WebhooksApiExample {

    public static void main(String[] args) {
        
        WebhooksApi apiInstance = new WebhooksApi();
        PaymentResponseCallback body = ; // PaymentResponseCallback | 
        try {
            apiInstance.yourOwnCustomUrlPaymentRequestRespondedPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebhooksApi#yourOwnCustomUrlPaymentRequestRespondedPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WebhooksApi;

public class WebhooksApiExample {

    public static void main(String[] args) {
        WebhooksApi apiInstance = new WebhooksApi();
        PaymentResponseCallback body = ; // PaymentResponseCallback | 
        try {
            apiInstance.yourOwnCustomUrlPaymentRequestRespondedPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebhooksApi#yourOwnCustomUrlPaymentRequestRespondedPost");
            e.printStackTrace();
        }
    }
}
PaymentResponseCallback *body = ; //  (optional)

WebhooksApi *apiInstance = [[WebhooksApi alloc] init];

// Notifies a provider when a payment request has a response.
[apiInstance yourOwnCustomUrlPaymentRequestRespondedPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');

var api = new NanoomNanoPullPaymentsMadeEasy.WebhooksApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.yourOwnCustomUrlPaymentRequestRespondedPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class yourOwnCustomUrlPaymentRequestRespondedPostExample
    {
        public void main()
        {

            var apiInstance = new WebhooksApi();
            var body = new PaymentResponseCallback(); // PaymentResponseCallback |  (optional) 

            try
            {
                // Notifies a provider when a payment request has a response.
                apiInstance.yourOwnCustomUrlPaymentRequestRespondedPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WebhooksApi.yourOwnCustomUrlPaymentRequestRespondedPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiWebhooksApi();
$body = ; // PaymentResponseCallback | 

try {
    $api_instance->yourOwnCustomUrlPaymentRequestRespondedPost($body);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->yourOwnCustomUrlPaymentRequestRespondedPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WebhooksApi;

my $api_instance = WWW::SwaggerClient::WebhooksApi->new();
my $body = WWW::SwaggerClient::Object::PaymentResponseCallback->new(); # PaymentResponseCallback | 

eval { 
    $api_instance->yourOwnCustomUrlPaymentRequestRespondedPost(body => $body);
};
if ($@) {
    warn "Exception when calling WebhooksApi->yourOwnCustomUrlPaymentRequestRespondedPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.WebhooksApi()
body =  # PaymentResponseCallback |  (optional)

try: 
    # Notifies a provider when a payment request has a response.
    api_instance.your_own_custom_url_payment_request_responded_post(body=body)
except ApiException as e:
    print("Exception when calling WebhooksApi->yourOwnCustomUrlPaymentRequestRespondedPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - As usual, webhook receiver respond with a http status ok (200).


yourOwnCustomUrlPaymentRequestedPost

Notifies a wallet owner about a provider requesting a payment from one of the wallet users.

When a provider requests a payment from a user which has granted them permissions, nanoom will notify the wallet owner about that request so that they can display a notification or something on the wallet. It will be retried 20 times too, or until a http 200 status is received in response.


/your_own_custom_url/payment_requested

Usage and SDK Samples

curl -X POST "https://nanoom.tech/your_own_custom_url/payment_requested"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WebhooksApi;

import java.io.File;
import java.util.*;

public class WebhooksApiExample {

    public static void main(String[] args) {
        
        WebhooksApi apiInstance = new WebhooksApi();
        PaymentRequestCallback body = ; // PaymentRequestCallback | 
        try {
            apiInstance.yourOwnCustomUrlPaymentRequestedPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebhooksApi#yourOwnCustomUrlPaymentRequestedPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WebhooksApi;

public class WebhooksApiExample {

    public static void main(String[] args) {
        WebhooksApi apiInstance = new WebhooksApi();
        PaymentRequestCallback body = ; // PaymentRequestCallback | 
        try {
            apiInstance.yourOwnCustomUrlPaymentRequestedPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebhooksApi#yourOwnCustomUrlPaymentRequestedPost");
            e.printStackTrace();
        }
    }
}
PaymentRequestCallback *body = ; //  (optional)

WebhooksApi *apiInstance = [[WebhooksApi alloc] init];

// Notifies a wallet owner about a provider requesting a payment from one of the wallet users.
[apiInstance yourOwnCustomUrlPaymentRequestedPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');

var api = new NanoomNanoPullPaymentsMadeEasy.WebhooksApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.yourOwnCustomUrlPaymentRequestedPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class yourOwnCustomUrlPaymentRequestedPostExample
    {
        public void main()
        {

            var apiInstance = new WebhooksApi();
            var body = new PaymentRequestCallback(); // PaymentRequestCallback |  (optional) 

            try
            {
                // Notifies a wallet owner about a provider requesting a payment from one of the wallet users.
                apiInstance.yourOwnCustomUrlPaymentRequestedPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WebhooksApi.yourOwnCustomUrlPaymentRequestedPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiWebhooksApi();
$body = ; // PaymentRequestCallback | 

try {
    $api_instance->yourOwnCustomUrlPaymentRequestedPost($body);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->yourOwnCustomUrlPaymentRequestedPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WebhooksApi;

my $api_instance = WWW::SwaggerClient::WebhooksApi->new();
my $body = WWW::SwaggerClient::Object::PaymentRequestCallback->new(); # PaymentRequestCallback | 

eval { 
    $api_instance->yourOwnCustomUrlPaymentRequestedPost(body => $body);
};
if ($@) {
    warn "Exception when calling WebhooksApi->yourOwnCustomUrlPaymentRequestedPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.WebhooksApi()
body =  # PaymentRequestCallback |  (optional)

try: 
    # Notifies a wallet owner about a provider requesting a payment from one of the wallet users.
    api_instance.your_own_custom_url_payment_requested_post(body=body)
except ApiException as e:
    print("Exception when calling WebhooksApi->yourOwnCustomUrlPaymentRequestedPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Webhook receiver should reply with a http status ok.


yourOwnCustomUrlPermissionGrantedPost

Notifies a provider about a permission being granted by a wallet user.

Providers have to first ask permissions to the users to be able to send them payment requests. When one of these permissions is granted to the provider by a user, the provider gets notified. Webhooks will be retried up to 20 times in case they do not respond with a 200 status. Retries are spaced in time, which increases a bit with each failure. If all 20 tries fail, the information is lost. At some point we will add an endpoint to list all the failed webhooks.


/your_own_custom_url/permission_granted

Usage and SDK Samples

curl -X POST "https://nanoom.tech/your_own_custom_url/permission_granted"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WebhooksApi;

import java.io.File;
import java.util.*;

public class WebhooksApiExample {

    public static void main(String[] args) {
        
        WebhooksApi apiInstance = new WebhooksApi();
        PermissionGrantCallback body = ; // PermissionGrantCallback | 
        try {
            apiInstance.yourOwnCustomUrlPermissionGrantedPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebhooksApi#yourOwnCustomUrlPermissionGrantedPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WebhooksApi;

public class WebhooksApiExample {

    public static void main(String[] args) {
        WebhooksApi apiInstance = new WebhooksApi();
        PermissionGrantCallback body = ; // PermissionGrantCallback | 
        try {
            apiInstance.yourOwnCustomUrlPermissionGrantedPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling WebhooksApi#yourOwnCustomUrlPermissionGrantedPost");
            e.printStackTrace();
        }
    }
}
PermissionGrantCallback *body = ; //  (optional)

WebhooksApi *apiInstance = [[WebhooksApi alloc] init];

// Notifies a provider about a permission being granted by a wallet user.
[apiInstance yourOwnCustomUrlPermissionGrantedPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NanoomNanoPullPaymentsMadeEasy = require('nanoom_nano_pull_payments_made_easy');

var api = new NanoomNanoPullPaymentsMadeEasy.WebhooksApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.yourOwnCustomUrlPermissionGrantedPost(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class yourOwnCustomUrlPermissionGrantedPostExample
    {
        public void main()
        {

            var apiInstance = new WebhooksApi();
            var body = new PermissionGrantCallback(); // PermissionGrantCallback |  (optional) 

            try
            {
                // Notifies a provider about a permission being granted by a wallet user.
                apiInstance.yourOwnCustomUrlPermissionGrantedPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WebhooksApi.yourOwnCustomUrlPermissionGrantedPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiWebhooksApi();
$body = ; // PermissionGrantCallback | 

try {
    $api_instance->yourOwnCustomUrlPermissionGrantedPost($body);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->yourOwnCustomUrlPermissionGrantedPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WebhooksApi;

my $api_instance = WWW::SwaggerClient::WebhooksApi->new();
my $body = WWW::SwaggerClient::Object::PermissionGrantCallback->new(); # PermissionGrantCallback | 

eval { 
    $api_instance->yourOwnCustomUrlPermissionGrantedPost(body => $body);
};
if ($@) {
    warn "Exception when calling WebhooksApi->yourOwnCustomUrlPermissionGrantedPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.WebhooksApi()
body =  # PermissionGrantCallback |  (optional)

try: 
    # Notifies a provider about a permission being granted by a wallet user.
    api_instance.your_own_custom_url_permission_granted_post(body=body)
except ApiException as e:
    print("Exception when calling WebhooksApi->yourOwnCustomUrlPermissionGrantedPost: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Webhook receiver should reply with a http status ok.