All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| FetchWalletItemFromShopifyTerminal | GET /v2/pos/shopify/item/{itemID} | Get item |
| RedeemWalletItemFromShopifyTerminal | POST /v2/pos/shopify/item/redeem/{itemID} | Redeem item |
| RefundWalletItemFromShopifyTerminal | POST /v2/pos/shopify/item/refund/{ledgerEntryID} | Refund transaction |
Object FetchWalletItemFromShopifyTerminal (string itemID)
Get item
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class FetchWalletItemFromShopifyTerminalExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ShopifyTerminalApi(httpClient, config, httpClientHandler);
var itemID = "itemID_example"; // string |
try
{
// Get item
Object result = apiInstance.FetchWalletItemFromShopifyTerminal(itemID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ShopifyTerminalApi.FetchWalletItemFromShopifyTerminal: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get item
ApiResponse<Object> response = apiInstance.FetchWalletItemFromShopifyTerminalWithHttpInfo(itemID);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ShopifyTerminalApi.FetchWalletItemFromShopifyTerminalWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| itemID | string |
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]
Object RedeemWalletItemFromShopifyTerminal (string itemID, WTWalletItemRedemption wTWalletItemRedemption)
Redeem item
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class RedeemWalletItemFromShopifyTerminalExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ShopifyTerminalApi(httpClient, config, httpClientHandler);
var itemID = "itemID_example"; // string |
var wTWalletItemRedemption = new WTWalletItemRedemption(); // WTWalletItemRedemption |
try
{
// Redeem item
Object result = apiInstance.RedeemWalletItemFromShopifyTerminal(itemID, wTWalletItemRedemption);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ShopifyTerminalApi.RedeemWalletItemFromShopifyTerminal: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Redeem item
ApiResponse<Object> response = apiInstance.RedeemWalletItemFromShopifyTerminalWithHttpInfo(itemID, wTWalletItemRedemption);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ShopifyTerminalApi.RedeemWalletItemFromShopifyTerminalWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| itemID | string | ||
| wTWalletItemRedemption | WTWalletItemRedemption |
Object
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]
Object RefundWalletItemFromShopifyTerminal (string ledgerEntryID)
Refund transaction
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class RefundWalletItemFromShopifyTerminalExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.wall.et";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ShopifyTerminalApi(httpClient, config, httpClientHandler);
var ledgerEntryID = "ledgerEntryID_example"; // string |
try
{
// Refund transaction
Object result = apiInstance.RefundWalletItemFromShopifyTerminal(ledgerEntryID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ShopifyTerminalApi.RefundWalletItemFromShopifyTerminal: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Refund transaction
ApiResponse<Object> response = apiInstance.RefundWalletItemFromShopifyTerminalWithHttpInfo(ledgerEntryID);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ShopifyTerminalApi.RefundWalletItemFromShopifyTerminalWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| ledgerEntryID | string |
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]