RentPay API

ClientOrder

calculateProductPrices

Wycena produktu


/order/calculation

Usage and SDK Samples

curl -X POST -H "api_key: [[apiKey]]" "https://test.rentup.pl/api-client/order/calculation"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientOrderApi;

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

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        ClientOrderApi apiInstance = new ClientOrderApi();
        ProductCalculation productCalcultation = ; // ProductCalculation | Obiekt typu Produkt do wyceny
        try {
            RentUPCalculation result = apiInstance.calculateProductPrices(productCalcultation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#calculateProductPrices");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientOrderApi;

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ClientOrderApi apiInstance = new ClientOrderApi();
        ProductCalculation productCalcultation = ; // ProductCalculation | Obiekt typu Produkt do wyceny
        try {
            RentUPCalculation result = apiInstance.calculateProductPrices(productCalcultation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#calculateProductPrices");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

ProductCalculation *productCalcultation = ; // Obiekt typu Produkt do wyceny

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

// Wycena produktu
[apiInstance calculateProductPricesWith:productCalcultation
              completionHandler: ^(RentUPCalculation output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RentPayApi = require('rent_pay_api');
var defaultClient = RentPayApi.ApiClient.instance;

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

var api = new RentPayApi.ClientOrderApi()

var productCalcultation = ; // {ProductCalculation} Obiekt typu Produkt do wyceny


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

namespace Example
{
    public class calculateProductPricesExample
    {
        public void main()
        {
            
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new ClientOrderApi();
            var productCalcultation = new ProductCalculation(); // ProductCalculation | Obiekt typu Produkt do wyceny

            try
            {
                // Wycena produktu
                RentUPCalculation result = apiInstance.calculateProductPrices(productCalcultation);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientOrderApi.calculateProductPrices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\ClientOrderApi();
$productCalcultation = ; // ProductCalculation | Obiekt typu Produkt do wyceny

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

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

my $api_instance = WWW::SwaggerClient::ClientOrderApi->new();
my $productCalcultation = WWW::SwaggerClient::Object::ProductCalculation->new(); # ProductCalculation | Obiekt typu Produkt do wyceny

eval { 
    my $result = $api_instance->calculateProductPrices(productCalcultation => $productCalcultation);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientOrderApi->calculateProductPrices: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ClientOrderApi()
productCalcultation =  # ProductCalculation | Obiekt typu Produkt do wyceny

try: 
    # Wycena produktu
    api_response = api_instance.calculate_product_prices(productCalcultation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientOrderApi->calculateProductPrices: %s\n" % e)

Parameters

Body parameters
Name Description
productCalcultation *

Responses

Status: 201 - Created

Status: 401 - Unauthorized


createOrder

Tworzenie zamówienia


/order

Usage and SDK Samples

curl -X POST -H "api_key: [[apiKey]]" "https://test.rentup.pl/api-client/order"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientOrderApi;

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

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        ClientOrderApi apiInstance = new ClientOrderApi();
        ClientOrder clientOrder = ; // ClientOrder | Obiekt typu ClientOrder
        try {
            ClientOrderStatus result = apiInstance.createOrder(clientOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#createOrder");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientOrderApi;

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ClientOrderApi apiInstance = new ClientOrderApi();
        ClientOrder clientOrder = ; // ClientOrder | Obiekt typu ClientOrder
        try {
            ClientOrderStatus result = apiInstance.createOrder(clientOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#createOrder");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

ClientOrder *clientOrder = ; // Obiekt typu ClientOrder

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

// Tworzenie zamówienia
[apiInstance createOrderWith:clientOrder
              completionHandler: ^(ClientOrderStatus output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RentPayApi = require('rent_pay_api');
var defaultClient = RentPayApi.ApiClient.instance;

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

var api = new RentPayApi.ClientOrderApi()

var clientOrder = ; // {ClientOrder} Obiekt typu ClientOrder


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

namespace Example
{
    public class createOrderExample
    {
        public void main()
        {
            
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new ClientOrderApi();
            var clientOrder = new ClientOrder(); // ClientOrder | Obiekt typu ClientOrder

            try
            {
                // Tworzenie zamówienia
                ClientOrderStatus result = apiInstance.createOrder(clientOrder);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientOrderApi.createOrder: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\ClientOrderApi();
$clientOrder = ; // ClientOrder | Obiekt typu ClientOrder

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

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

my $api_instance = WWW::SwaggerClient::ClientOrderApi->new();
my $clientOrder = WWW::SwaggerClient::Object::ClientOrder->new(); # ClientOrder | Obiekt typu ClientOrder

eval { 
    my $result = $api_instance->createOrder(clientOrder => $clientOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientOrderApi->createOrder: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ClientOrderApi()
clientOrder =  # ClientOrder | Obiekt typu ClientOrder

try: 
    # Tworzenie zamówienia
    api_response = api_instance.create_order(clientOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientOrderApi->createOrder: %s\n" % e)

Parameters

Body parameters
Name Description
clientOrder *

Responses

Status: 201 - Created

Status: 401 - Unauthorized


orderStatus

Status zamówienia


/orders/status/{rentUPOrderId}

Usage and SDK Samples

curl -X GET -H "api_key: [[apiKey]]" "https://test.rentup.pl/api-client/orders/status/{rentUPOrderId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientOrderApi;

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

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        ClientOrderApi apiInstance = new ClientOrderApi();
        String rentUPOrderId = rentUPOrderId_example; // String | Identyfikator zamówienia w systemie RentUP
        try {
            ClientOrderStatus result = apiInstance.orderStatus(rentUPOrderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#orderStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientOrderApi;

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ClientOrderApi apiInstance = new ClientOrderApi();
        String rentUPOrderId = rentUPOrderId_example; // String | Identyfikator zamówienia w systemie RentUP
        try {
            ClientOrderStatus result = apiInstance.orderStatus(rentUPOrderId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#orderStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

String *rentUPOrderId = rentUPOrderId_example; // Identyfikator zamówienia w systemie RentUP

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

// Status zamówienia
[apiInstance orderStatusWith:rentUPOrderId
              completionHandler: ^(ClientOrderStatus output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RentPayApi = require('rent_pay_api');
var defaultClient = RentPayApi.ApiClient.instance;

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

var api = new RentPayApi.ClientOrderApi()

var rentUPOrderId = rentUPOrderId_example; // {String} Identyfikator zamówienia w systemie RentUP


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

namespace Example
{
    public class orderStatusExample
    {
        public void main()
        {
            
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new ClientOrderApi();
            var rentUPOrderId = rentUPOrderId_example;  // String | Identyfikator zamówienia w systemie RentUP

            try
            {
                // Status zamówienia
                ClientOrderStatus result = apiInstance.orderStatus(rentUPOrderId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientOrderApi.orderStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\ClientOrderApi();
$rentUPOrderId = rentUPOrderId_example; // String | Identyfikator zamówienia w systemie RentUP

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

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

my $api_instance = WWW::SwaggerClient::ClientOrderApi->new();
my $rentUPOrderId = rentUPOrderId_example; # String | Identyfikator zamówienia w systemie RentUP

eval { 
    my $result = $api_instance->orderStatus(rentUPOrderId => $rentUPOrderId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientOrderApi->orderStatus: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ClientOrderApi()
rentUPOrderId = rentUPOrderId_example # String | Identyfikator zamówienia w systemie RentUP

try: 
    # Status zamówienia
    api_response = api_instance.order_status(rentUPOrderId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientOrderApi->orderStatus: %s\n" % e)

Parameters

Path parameters
Name Description
rentUPOrderId*
String
Identyfikator zamówienia w systemie RentUP
Required

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 404 - Not Found


orderStatuses

Lista statusów zamówień


/orders/status

Usage and SDK Samples

curl -X GET -H "api_key: [[apiKey]]" "https://test.rentup.pl/api-client/orders/status?status="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientOrderApi;

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

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        ClientOrderApi apiInstance = new ClientOrderApi();
        String status = status_example; // String | Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień.
        try {
            ClientOrderStatus result = apiInstance.orderStatuses(status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#orderStatuses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientOrderApi;

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ClientOrderApi apiInstance = new ClientOrderApi();
        String status = status_example; // String | Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień.
        try {
            ClientOrderStatus result = apiInstance.orderStatuses(status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#orderStatuses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

String *status = status_example; // Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień. (optional)

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

// Lista statusów zamówień
[apiInstance orderStatusesWith:status
              completionHandler: ^(ClientOrderStatus output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RentPayApi = require('rent_pay_api');
var defaultClient = RentPayApi.ApiClient.instance;

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

var api = new RentPayApi.ClientOrderApi()

var opts = { 
  'status': status_example // {String} Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień.
};

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

namespace Example
{
    public class orderStatusesExample
    {
        public void main()
        {
            
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new ClientOrderApi();
            var status = status_example;  // String | Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień. (optional) 

            try
            {
                // Lista statusów zamówień
                ClientOrderStatus result = apiInstance.orderStatuses(status);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientOrderApi.orderStatuses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\ClientOrderApi();
$status = status_example; // String | Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień.

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

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

my $api_instance = WWW::SwaggerClient::ClientOrderApi->new();
my $status = status_example; # String | Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień.

eval { 
    my $result = $api_instance->orderStatuses(status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientOrderApi->orderStatuses: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ClientOrderApi()
status = status_example # String | Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień. (optional)

try: 
    # Lista statusów zamówień
    api_response = api_instance.order_statuses(status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientOrderApi->orderStatuses: %s\n" % e)

Parameters

Query parameters
Name Description
status
String
Status zamówień dostawcy do wyszukania. Nie podanie parametru skutkuje zwróceniem wszystkich statusów zamówień.

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 404 - Not Found


products

Lista produktów dostawcy


/products

Usage and SDK Samples

curl -X GET -H "api_key: [[apiKey]]" "https://test.rentup.pl/api-client/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClientOrderApi;

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

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        ClientOrderApi apiInstance = new ClientOrderApi();
        try {
            array[Product] result = apiInstance.products();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#products");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClientOrderApi;

public class ClientOrderApiExample {

    public static void main(String[] args) {
        ClientOrderApi apiInstance = new ClientOrderApi();
        try {
            array[Product] result = apiInstance.products();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClientOrderApi#products");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


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

// Lista produktów dostawcy
[apiInstance productsWithCompletionHandler: 
              ^(array[Product] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RentPayApi = require('rent_pay_api');
var defaultClient = RentPayApi.ApiClient.instance;

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

var api = new RentPayApi.ClientOrderApi()

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

namespace Example
{
    public class productsExample
    {
        public void main()
        {
            
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new ClientOrderApi();

            try
            {
                // Lista produktów dostawcy
                array[Product] result = apiInstance.products();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClientOrderApi.products: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\ClientOrderApi();

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

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

my $api_instance = WWW::SwaggerClient::ClientOrderApi->new();

eval { 
    my $result = $api_instance->products();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClientOrderApi->products: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ClientOrderApi()

try: 
    # Lista produktów dostawcy
    api_response = api_instance.products()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClientOrderApi->products: %s\n" % e)

Parameters

Responses

Status: 200 - OK

Status: 401 - Unauthorized

Status: 404 - Not Found