All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| ArchivePromoCode | DELETE /v2/promoCodes/{id} | Archive Promotion Code |
| CreatePromoCode | POST /v2/promoCodes | Create Promotion Code |
| FetchAllPromoCodes | GET /v2/promoCodes/all | Get all Promotion Codes |
| RestorePromoCode | PATCH /v2/promoCodes/{id} | Restore Promotion Code |
| UpdatePromoCode | PUT /v2/promoCodes/{id} | Update Promotion Code |
PromoCode ArchivePromoCode (string id)
Archive Promotion Code
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class ArchivePromoCodeExample
{
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 PromotionCodesApi(httpClient, config, httpClientHandler);
var id = "id_example"; // string |
try
{
// Archive Promotion Code
PromoCode result = apiInstance.ArchivePromoCode(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PromotionCodesApi.ArchivePromoCode: " + 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
{
// Archive Promotion Code
ApiResponse<PromoCode> response = apiInstance.ArchivePromoCodeWithHttpInfo(id);
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 PromotionCodesApi.ArchivePromoCodeWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string |
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]
PromoCode CreatePromoCode (WTPromoCodeCreateParams wTPromoCodeCreateParams)
Create Promotion Code
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class CreatePromoCodeExample
{
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 PromotionCodesApi(httpClient, config, httpClientHandler);
var wTPromoCodeCreateParams = new WTPromoCodeCreateParams(); // WTPromoCodeCreateParams |
try
{
// Create Promotion Code
PromoCode result = apiInstance.CreatePromoCode(wTPromoCodeCreateParams);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PromotionCodesApi.CreatePromoCode: " + 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
{
// Create Promotion Code
ApiResponse<PromoCode> response = apiInstance.CreatePromoCodeWithHttpInfo(wTPromoCodeCreateParams);
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 PromotionCodesApi.CreatePromoCodeWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| wTPromoCodeCreateParams | WTPromoCodeCreateParams |
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 FetchAllPromoCodes (bool? isArchiveIncluded = null)
Get all Promotion Codes
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class FetchAllPromoCodesExample
{
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 PromotionCodesApi(httpClient, config, httpClientHandler);
var isArchiveIncluded = true; // bool? | (optional)
try
{
// Get all Promotion Codes
Object result = apiInstance.FetchAllPromoCodes(isArchiveIncluded);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PromotionCodesApi.FetchAllPromoCodes: " + 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 all Promotion Codes
ApiResponse<Object> response = apiInstance.FetchAllPromoCodesWithHttpInfo(isArchiveIncluded);
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 PromotionCodesApi.FetchAllPromoCodesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| isArchiveIncluded | bool? | [optional] |
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]
PromoCode RestorePromoCode (string id)
Restore Promotion Code
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class RestorePromoCodeExample
{
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 PromotionCodesApi(httpClient, config, httpClientHandler);
var id = "id_example"; // string |
try
{
// Restore Promotion Code
PromoCode result = apiInstance.RestorePromoCode(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PromotionCodesApi.RestorePromoCode: " + 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
{
// Restore Promotion Code
ApiResponse<PromoCode> response = apiInstance.RestorePromoCodeWithHttpInfo(id);
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 PromotionCodesApi.RestorePromoCodeWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string |
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]
PromoCode UpdatePromoCode (string id, WTPromoCodeUpdateParams wTPromoCodeUpdateParams)
Update Promotion Code
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using WalletInc.Api;
using WalletInc.Client;
using WalletInc.Model;
namespace Example
{
public class UpdatePromoCodeExample
{
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 PromotionCodesApi(httpClient, config, httpClientHandler);
var id = "id_example"; // string |
var wTPromoCodeUpdateParams = new WTPromoCodeUpdateParams(); // WTPromoCodeUpdateParams |
try
{
// Update Promotion Code
PromoCode result = apiInstance.UpdatePromoCode(id, wTPromoCodeUpdateParams);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PromotionCodesApi.UpdatePromoCode: " + 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
{
// Update Promotion Code
ApiResponse<PromoCode> response = apiInstance.UpdatePromoCodeWithHttpInfo(id, wTPromoCodeUpdateParams);
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 PromotionCodesApi.UpdatePromoCodeWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| wTPromoCodeUpdateParams | WTPromoCodeUpdateParams |
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]