All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| wallets_get | GET /v2.01/Wallets/{WalletId} | View a Wallet |
| wallets_get_list | GET /v2.01/Wallets | |
| wallets_get_transaction_list | GET /v2.01/Wallets/{WalletId}/transactions | List a Wallet's Transactions |
| wallets_post | POST /v2.01/Wallets | Create a Wallet |
| wallets_put | PUT /v2.01/Wallets/{WalletId} | Update a Wallet |
WalletResponse wallets_get(wallet_id)
View a Wallet
A Wallet is an object in which PayIns and Transfers from users are stored in order to collect money. You can pay into a Wallet, withdraw funds from a wallet or transfer funds from a Wallet to another Wallet. Once a wallet is created, its Currency can not be changed
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.WalletsApi()
wallet_id = 789 # int | The Id of a wallet
try:
# View a Wallet
api_response = api_instance.wallets_get(wallet_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling WalletsApi->wallets_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wallet_id | int | The Id of a wallet |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseListWalletResponse wallets_get_list(page=page, per_page=per_page)
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.WalletsApi()
page = 56 # int | (optional)
per_page = 56 # int | (optional)
try:
api_response = api_instance.wallets_get_list(page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling WalletsApi->wallets_get_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| page | int | [optional] | |
| per_page | int | [optional] |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[TransactionResponse] wallets_get_transaction_list(wallet_id, page=page, per_page=per_page)
List a Wallet's Transactions
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.WalletsApi()
wallet_id = 789 # int | The Id of a wallet
page = 56 # int | The page number of results you wish to return (optional)
per_page = 56 # int | The number of results to return per page (optional)
try:
# List a Wallet's Transactions
api_response = api_instance.wallets_get_transaction_list(wallet_id, page=page, per_page=per_page)
pprint(api_response)
except ApiException as e:
print("Exception when calling WalletsApi->wallets_get_transaction_list: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wallet_id | int | The Id of a wallet | |
| page | int | The page number of results you wish to return | [optional] |
| per_page | int | The number of results to return per page | [optional] |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WalletResponse wallets_post(wallet=wallet)
Create a Wallet
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.WalletsApi()
wallet = swagger_client.WalletPost() # WalletPost | Wallet Object params (optional)
try:
# Create a Wallet
api_response = api_instance.wallets_post(wallet=wallet)
pprint(api_response)
except ApiException as e:
print("Exception when calling WalletsApi->wallets_post: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wallet | WalletPost | Wallet Object params | [optional] |
- Content-Type: application/json, text/json, application/json-patch+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WalletResponse wallets_put(wallet_id, wallet=wallet)
Update a Wallet
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth2
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.WalletsApi()
wallet_id = 789 # int | The Id of a wallet
wallet = swagger_client.WalletPut() # WalletPut | Wallet Object params (optional)
try:
# Update a Wallet
api_response = api_instance.wallets_put(wallet_id, wallet=wallet)
pprint(api_response)
except ApiException as e:
print("Exception when calling WalletsApi->wallets_put: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wallet_id | int | The Id of a wallet | |
| wallet | WalletPut | Wallet Object params | [optional] |
- Content-Type: application/json, text/json, application/json-patch+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]