All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| archive_merchant_credit | DELETE /v2/payment/merchantcredit/{id} | Archive merchant credit |
| create_merchant_credit | POST /v2/payment/merchantcredit | Create merchant credit |
| fetch_merchant_credit_by_id | GET /v2/payment/merchantcredit/{id} | Fetch merchant credit |
| fetch_merchant_credit_count | GET /v2/payment/merchantcredit/count | Fetch all active merchant credits |
| fetch_merchant_credit_history_log | POST /v2/payment/merchantcredit/history/log | Fetch history |
| fetch_merchant_credit_redemption_log | POST /v2/payment/merchantcredit/redemption/log | Fetch redemption log |
| fetch_merchant_credits_by_page | POST /v2/payment/merchantcredit/page | Fetch merchant credits by page |
| restore_merchant_credit | PATCH /v2/payment/merchantcredit/{id} | Restore merchant credit |
| search_merchant_credits | POST /v2/payment/merchantcredit/search | Search for merchant credits |
| update_merchant_credit | PUT /v2/payment/merchantcredit/{id} | Update merchant credit |
WTMerchantCredit archive_merchant_credit(id)
Archive merchant credit
import wallet
from wallet.models.wt_merchant_credit import WTMerchantCredit
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
id = None # object |
try:
# Archive merchant credit
api_response = api_instance.archive_merchant_credit(id)
print("The response of MerchantCreditsApi->archive_merchant_credit:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->archive_merchant_credit: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WTMerchantCredit create_merchant_credit(wt_merchant_credit_creation_params)
Create merchant credit
import wallet
from wallet.models.wt_merchant_credit import WTMerchantCredit
from wallet.models.wt_merchant_credit_creation_params import WTMerchantCreditCreationParams
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
wt_merchant_credit_creation_params = wallet.WTMerchantCreditCreationParams() # WTMerchantCreditCreationParams |
try:
# Create merchant credit
api_response = api_instance.create_merchant_credit(wt_merchant_credit_creation_params)
print("The response of MerchantCreditsApi->create_merchant_credit:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->create_merchant_credit: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wt_merchant_credit_creation_params | WTMerchantCreditCreationParams |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Created | - |
| 401 | Authentication Failed | - |
| 409 | Duplicate Row Found | - |
| 422 | Validation Failed | - |
| 424 | Merchant Not Initialized | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WTMerchantCredit fetch_merchant_credit_by_id(id)
Fetch merchant credit
import wallet
from wallet.models.wt_merchant_credit import WTMerchantCredit
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
id = None # object |
try:
# Fetch merchant credit
api_response = api_instance.fetch_merchant_credit_by_id(id)
print("The response of MerchantCreditsApi->fetch_merchant_credit_by_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->fetch_merchant_credit_by_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FetchMembersCount200Response fetch_merchant_credit_count()
Fetch all active merchant credits
import wallet
from wallet.models.fetch_members_count200_response import FetchMembersCount200Response
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
try:
# Fetch all active merchant credits
api_response = api_instance.fetch_merchant_credit_count()
print("The response of MerchantCreditsApi->fetch_merchant_credit_count:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->fetch_merchant_credit_count: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MSMerchantCreditHistoryPagination fetch_merchant_credit_history_log(pagination_request_with_id_and_without_sort_options)
Fetch history
import wallet
from wallet.models.ms_merchant_credit_history_pagination import MSMerchantCreditHistoryPagination
from wallet.models.pagination_request_with_id_and_without_sort_options import PaginationRequestWithIDAndWithoutSortOptions
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
pagination_request_with_id_and_without_sort_options = wallet.PaginationRequestWithIDAndWithoutSortOptions() # PaginationRequestWithIDAndWithoutSortOptions |
try:
# Fetch history
api_response = api_instance.fetch_merchant_credit_history_log(pagination_request_with_id_and_without_sort_options)
print("The response of MerchantCreditsApi->fetch_merchant_credit_history_log:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->fetch_merchant_credit_history_log: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| pagination_request_with_id_and_without_sort_options | PaginationRequestWithIDAndWithoutSortOptions |
MSMerchantCreditHistoryPagination
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MSMerchantCreditRedemptionPagination fetch_merchant_credit_redemption_log(pagination_request_with_id_and_without_sort_options)
Fetch redemption log
import wallet
from wallet.models.ms_merchant_credit_redemption_pagination import MSMerchantCreditRedemptionPagination
from wallet.models.pagination_request_with_id_and_without_sort_options import PaginationRequestWithIDAndWithoutSortOptions
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
pagination_request_with_id_and_without_sort_options = wallet.PaginationRequestWithIDAndWithoutSortOptions() # PaginationRequestWithIDAndWithoutSortOptions |
try:
# Fetch redemption log
api_response = api_instance.fetch_merchant_credit_redemption_log(pagination_request_with_id_and_without_sort_options)
print("The response of MerchantCreditsApi->fetch_merchant_credit_redemption_log:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->fetch_merchant_credit_redemption_log: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| pagination_request_with_id_and_without_sort_options | PaginationRequestWithIDAndWithoutSortOptions |
MSMerchantCreditRedemptionPagination
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[WTMerchantCredit] fetch_merchant_credits_by_page(pagination_request_with_sort_options)
Fetch merchant credits by page
import wallet
from wallet.models.pagination_request_with_sort_options import PaginationRequestWithSortOptions
from wallet.models.wt_merchant_credit import WTMerchantCredit
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
pagination_request_with_sort_options = wallet.PaginationRequestWithSortOptions() # PaginationRequestWithSortOptions |
try:
# Fetch merchant credits by page
api_response = api_instance.fetch_merchant_credits_by_page(pagination_request_with_sort_options)
print("The response of MerchantCreditsApi->fetch_merchant_credits_by_page:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->fetch_merchant_credits_by_page: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| pagination_request_with_sort_options | PaginationRequestWithSortOptions |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WTMerchantCredit restore_merchant_credit(id)
Restore merchant credit
import wallet
from wallet.models.wt_merchant_credit import WTMerchantCredit
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
id = None # object |
try:
# Restore merchant credit
api_response = api_instance.restore_merchant_credit(id)
print("The response of MerchantCreditsApi->restore_merchant_credit:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->restore_merchant_credit: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedWTMerchantCredits search_merchant_credits(merchant_credit_search)
Search for merchant credits
import wallet
from wallet.models.merchant_credit_search import MerchantCreditSearch
from wallet.models.paginated_wt_merchant_credits import PaginatedWTMerchantCredits
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
merchant_credit_search = wallet.MerchantCreditSearch() # MerchantCreditSearch |
try:
# Search for merchant credits
api_response = api_instance.search_merchant_credits(merchant_credit_search)
print("The response of MerchantCreditsApi->search_merchant_credits:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->search_merchant_credits: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| merchant_credit_search | MerchantCreditSearch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WTMerchantCredit update_merchant_credit(id, pick_wt_merchant_credit_member_idor_credit_amount_or_mobile_number)
Update merchant credit
import wallet
from wallet.models.pick_wt_merchant_credit_member_idor_credit_amount_or_mobile_number import PickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber
from wallet.models.wt_merchant_credit import WTMerchantCredit
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.MerchantCreditsApi(api_client)
id = None # object |
pick_wt_merchant_credit_member_idor_credit_amount_or_mobile_number = wallet.PickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber() # PickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber |
try:
# Update merchant credit
api_response = api_instance.update_merchant_credit(id, pick_wt_merchant_credit_member_idor_credit_amount_or_mobile_number)
print("The response of MerchantCreditsApi->update_merchant_credit:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling MerchantCreditsApi->update_merchant_credit: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | object | ||
| pick_wt_merchant_credit_member_idor_credit_amount_or_mobile_number | PickWTMerchantCreditMemberIDOrCreditAmountOrMobileNumber |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 409 | Duplicate Row Found | - |
| 422 | Validation Failed | - |
| 424 | Foreign Key does not exist | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]