Skip to content

voucherifyio/voucherify-dotNET-sdk

Repository files navigation

Voucherify .NET SDK

Official Voucherify SDK for .NET framework

👋 Intro

Voucherify is an Incentive Optimization Engine that helps digital teams launch, test, and optimize targeted incentives – from coupons and promotions to loyalty programs and personalized offers – all with API.

We build Voucherify so you can run fewer incentives, but better ones.

Launch fast.

Test every day.

Drop what doesn’t work.

And optimize what does.

Integrate easily with your existing stack to make experimentation and optimization effortless.

📝 Useful info

This SDK is automatically generated by the OpenAPI Generator based on Voucherify API reference, v2018-08-01 version.

For more info, visit those places:

Frameworks supported

Voucherify .NET SDK supports the following frameworks:

  • .NET Core >= 1.0
  • .NET Framework >= 4.6
  • Mono/Xamarin >= vNext

Dependencies

Voucherify .NET SDK works with the following dependencies:

The package may include DLLs that don't have the latest version. Use NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations

Note

RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742.

RestSharp for .Net Core creates a new socket for each API call, which can lead to a socket exhaustion problem. See RestSharp#1406.

⚙️ Install

To install the SDK:

  1. Generate the DLL using your preferred tool, for example dotnet build.
  2. Then include the DLL (under the bin folder) in the C# project, and use the namespaces:
using Voucherify.Api;
using Voucherify.Client;
using Voucherify.Model;

🔒 Get your keys and address

Get your Voucherify keys for valid authorization and setting the basePath (cluster) to match your server URL:

  1. In Voucherify dashboard, go to Project settings.
  2. In Application information, find your basePath (cluster) address. For shared clusters:
    • Europe (default): https://api.voucherify.io
    • United States: https://us1.api.voucherify.io
    • Asia (Singapore): https://as1.api.voucherify.io
  3. Scroll down to Application Keys to grab your Application ID and Secret key.

🧑‍💻 Use with HTTP proxy

To use the API client with a HTTP proxy, setup a System.Net.WebProxy.

Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;

🚀 Run code

Once installed, run:

using System.Collections.Generic;
using System.Diagnostics;
using Voucherify.Api;
using Voucherify.Client;
using Voucherify.Model;

namespace Example
{
    public class Example
    {
        public static void Main()
        {

            Configuration config = new Configuration();
            config.BasePath = "https://api.voucherify.io";
            // Configure API key authorization: X-App-Id
            config.ApiKey.Add("X-App-Id", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.ApiKeyPrefix.Add("X-App-Id", "Bearer");
            // Configure API key authorization: X-App-Token
            config.ApiKey.Add("X-App-Token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.ApiKeyPrefix.Add("X-App-Token", "Bearer");
            // Configure OAuth2 access token for authorization: X-Voucherify-OAuth
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new AsyncActionsApi(config);
            var asyncActionId = "asyncActionId_example";  // string | Unique ID of the asynchronous operation.

            try
            {
                // Get Async Action
                AsyncActionGetResponseBody result = apiInstance.GetAsyncAction(asyncActionId);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling AsyncActionsApi.GetAsyncAction: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }

        }
    }
}

Tip

Check the test implementation in the Test folder.

🐳 Run local tests with docker

To run tests locally with docker:

  1. Copy src/Voucherify.Test/.env.example to .env and fill in the values.
  2. Run docker build -t dotnet . to build the image.
  3. Run docker run --rm dotnet to run the tests and delete container immediately after.

🛠️ Contribute

Do you want to contribute?

Read more about how to contribute to this SDK in the Contributing guide in the main repo.

This SDK is auto-generated (except for tests), so changes made here will be overwritten by the generator.

🏷️ Link tags

OpenAPI generated from tag.

🔐 Authorization

Authorization schemes defined for the API.

X-App-Id

  • Type: API key
  • API key parameter name: X-App-Id
  • Location: HTTP header

X-App-Token

  • Type: API key
  • API key parameter name: X-App-Token
  • Location: HTTP header

X-Client-Token

  • Type: API key
  • API key parameter name: X-Client-Token
  • Location: HTTP header

X-Client-Application-Id

  • Type: API key
  • API key parameter name: X-Client-Application-Id
  • Location: HTTP header

X-Management-Id

  • Type: API key
  • API key parameter name: X-Management-Id
  • Location: HTTP header

X-Management-Token

  • Type: API key
  • API key parameter name: X-Management-Token
  • Location: HTTP header

X-Voucherify-OAuth

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: https://api.voucherify.io/v1/oauth/token
  • Scopes:
    • api: Gives access to whole server-side API.
    • vouchers: Gives access to all endpoints and methods starting with v1/vouchers.
    • client_api: Gives access to whole client-side API.
    • client_vouchers: Gives access to all endpoints and methods starting with /client/v1/vouchers.
    • promotions: Gives access to all endpoints and methods starting with /v1/promotions.
    • client_promotions: Gives access to all endpoints and methods starting with /client/v1/promotions
    • campaigns: Gives access to all endpoints and methods starting with v1/campaigns.
    • client_publish: Gives access to all endpoints and methods starting with /client/v1/publish.
    • exports: Gives access to all endpoints and methods starting with /v1/exports.
    • publications: Gives access to all endpoints and methods starting with /v1/publications.
    • client_validate: Gives access to all endpoints and methods starting with /client/v1/validate.
    • validations: Gives access to all endpoints and methods starting with /v1/validations.
    • client_validations: Gives access to all endpoints and methods starting with /client/v1/validations.
    • qualifications: Gives access to all endpoints and methods starting with /v1/qualifications.
    • client_qualifications: Gives access to all endpoints and methods starting with /client/v1/qualifications.
    • client_redeem: Gives access to all endpoints and methods starting with `/client/v1/redeem
    • redemptions: Gives access to all endpoints and methods starting with /v1/redemptions.
    • client_redemptions: Gives access to all endpoints and methods starting with /client/v1/redemptions
    • customers: Gives access to all endpoints and methods starting with /v1/customers.
    • client_customers: Gives access to all endpoints and methods starting with /client/v1/customers.
    • orders: Gives access to all endpoints and methods starting with /v1/orders.
    • products: Gives access to all endpoints and methods starting with /v1/products.
    • skus: Gives access to all endpoints and methods starting with /v1/SKUs.
    • validation-rules: Gives access to all endpoints and methods starting with /v1/validation-rules.
    • validation-rules-assignments: Gives access to all endpoints and methods starting with `/v1/validation-rules-assignments
    • segments: Gives access to all endpoints and methods starting with /v1/segments.
    • events: Gives access to all endpoints and methods starting with /v1/events.
    • client_events: Gives access to all endpoints and methods starting with client/v1/events.
    • rewards: Gives access to all endpoints and methods starting with /v1/rewards.
    • assets: Gives access to all endpoints and methods starting with /v1/assets.
    • task-results: Gives access to all endpoints and methods starting with /v1/task-results.
    • loyalties: Gives access to all endpoints and methods starting with /v1/loyalties.
    • client_consents: Gives access to all endpoints and methods starting with client/v1/consents.
    • consents: Gives access to all endpoints and methods starting with /v1/consents.
    • async-actions: Gives access to all endpoints and methods starting with /v1/async-actions.
    • product-collections: Gives access to all endpoints and methods starting with /v1/product-collections.
    • categories: Gives access to all endpoints and methods starting with /v1/categories.
    • metadata-schemas: Gives access to all endpoints and methods starting with /v1/metadata-schemas.
    • locations: Gives access to all endpoints and methods starting with /v1/locations.
    • referrals: Gives access to all endpoints and methods starting with /v1/referrals.
    • trash-bin: Gives access to all endpoints and methods starting with /v1/trash-bin.
    • templates: Gives access to all endpoints and methods starting with /v1/templates.

📅 Changelog

  • 2024-10-21 - 8.1.0
    • Invalid/New Enums will be parsed as null
    • If a property is missing will be simply skipped, please ensure on your side if parameter is expected
    • Added support for POST /v1/loyalties/members/{memberId}/pending-points/{pendingPointsId}/balance
    • Added new properties:
      • Limit in Bundles
      • UnitsLimitExceeded in Applicable To`
      • ExpirationRules in ExpirationRule
      • CampaignId in ExportParameters
      • PointsFormula is supported now
      • ManagementProjectsStackingRulesUpdateResponseBody has many more properties now.
    • Aligned with the latest OpenAPI definition.
  • 2024-05-06 - 8.0.1
    • Added OAuth support for Loyalty Pending Points endpoints.
  • 2024-05-06 - 8.0.0
    • The new version of the SDK includes coverage for all Voucherify endpoints and supports typed models.

Previous versions of the SDK are no longer supported. We highly recommend upgrading to version 8.0.0 or newer, as it is now designated as Long-Term Support (LTS).

Changelog for previous versions is in the DEPRECATED CHANGELOG file

🌐 Documentation of API endpoints

All URIs are relative to https://api.voucherify.io.

Class Method HTTP request Description
AsyncActionsApi GetAsyncAction GET /v1/async-actions/{asyncActionId} Get Async Action
AsyncActionsApi ListAsyncActions GET /v1/async-actions List Async Actions
BinApi DeleteBinEntry DELETE /v1/trash-bin/{binEntryId} Delete Bin Entry
BinApi ListBinEntries GET /v1/trash-bin List Bin Entries
CampaignsApi AddVoucherWithSpecificCodeToCampaign POST /v1/campaigns/{campaignId}/vouchers/{code} Add Voucher with Specific Code to Campaign
CampaignsApi AddVouchersToCampaign POST /v1/campaigns/{campaignId}/vouchers Add Vouchers to Campaign
CampaignsApi CreateCampaign POST /v1/campaigns Create Campaign
CampaignsApi DeleteCampaign DELETE /v1/campaigns/{campaignId} Delete Campaign
CampaignsApi DisableCampaign POST /v1/campaigns/{campaignId}/disable Disable Campaign
CampaignsApi EnableCampaign POST /v1/campaigns/{campaignId}/enable Enable Campaign
CampaignsApi ExportCampaignTransactions POST /v1/campaigns/{campaignId}/transactions/export Export Campaign Transactions
CampaignsApi GetCampaign GET /v1/campaigns/{campaignId} Get Campaign
CampaignsApi GetCampaignSummary GET /v1/campaigns/{campaignId}/summary Get Campaign Summary
CampaignsApi ImportVouchersToCampaign POST /v1/campaigns/{campaignId}/import Import Vouchers to Campaign
CampaignsApi ImportVouchersToCampaignUsingCsv POST /v1/campaigns/{campaignId}/importCSV Import Vouchers to Campaign by CSV
CampaignsApi ListCampaignTransactions GET /v1/campaigns/{campaignId}/transactions List Campaign Transactions
CampaignsApi ListCampaigns GET /v1/campaigns List Campaigns
CampaignsApi UpdateCampaign PUT /v1/campaigns/{campaignId} Update Campaign
CategoriesApi CreateCategory POST /v1/categories Create Category
CategoriesApi DeleteCategory DELETE /v1/categories/{categoryId} Delete Category
CategoriesApi GetCategory GET /v1/categories/{categoryId} Get Category
CategoriesApi ListCategories GET /v1/categories List Categories
CategoriesApi UpdateCategory PUT /v1/categories/{categoryId} Update Category
ClientSideApi CheckEligibilityClientSide POST /client/v1/qualifications Check Eligibility (client-side)
ClientSideApi ListPromotionTiersClientSide GET /client/v1/promotions/tiers List Promotion Tiers (client-side)
ClientSideApi RedeemStackedDiscountsClientSide POST /client/v1/redemptions Redeem Stackable Discounts (client-side)
ClientSideApi TrackCustomEventClientSide POST /client/v1/events Track Custom Event (client-side)
ClientSideApi ValidateStackedDiscountsClientSide POST /client/v1/validations Validate Stackable Discounts (client-side)
CustomersApi CreateCustomer POST /v1/customers Create Customer
CustomersApi CustomerPermanentlyDeletion POST /v1/customers/{customerId}/permanent-deletion Delete Customer Permanently
CustomersApi DeleteCustomer DELETE /v1/customers/{customerId} Delete Customer
CustomersApi GetCustomer GET /v1/customers/{customerId} Get Customer
CustomersApi ImportCustomersUsingCsv POST /v1/customers/importCSV Import and Update Customers using CSV
CustomersApi ListCustomerActivity GET /v1/customers/{customerId}/activity List Customer Activity
CustomersApi ListCustomerRedeemables GET /v1/customers/{customerId}/redeemables List Customer's Redeemables
CustomersApi ListCustomerSegments GET /v1/customers/{customerId}/segments List Customer's Segments
CustomersApi ListCustomers GET /v1/customers List Customers
CustomersApi UpdateCustomer PUT /v1/customers/{customerId} Update Customer
CustomersApi UpdateCustomersInBulk POST /v1/customers/bulk/async Update Customers in Bulk
CustomersApi UpdateCustomersMetadataInBulk POST /v1/customers/metadata/async Update Customers' Metadata in Bulk
EventsApi TrackCustomEvent POST /v1/events Track Custom Event
ExportsApi CreateExport POST /v1/exports Create Export
ExportsApi DeleteExport DELETE /v1/exports/{exportId} Delete Export
ExportsApi DownloadExport GET /v1/exports/{export_Id} Download Export
ExportsApi GetExport GET /v1/exports/{exportId} Get Export
ExportsApi ListExports GET /v1/exports List Exports
LocationsApi GetLocation GET /v1/locations/{locationId} Get Location
LocationsApi ListLocations GET /v1/locations List Locations
LoyaltiesApi ActivateMemberPendingPoints POST /v1/loyalties/members/{memberId}/pending-points/{pendingPointsId}/activate Activate Member Pending Points
LoyaltiesApi AddMember POST /v1/loyalties/{campaignId}/members Add Member
LoyaltiesApi AdjustMemberPendingPoints POST /v1/loyalties/members/{memberId}/pending-points/{pendingPointsId}/balance Adjust Member Pending Points
LoyaltiesApi CancelMemberPendingPoints POST /v1/loyalties/members/{memberId}/pending-points/{pendingPointsId}/cancel Cancel Member Pending Points
LoyaltiesApi CreateEarningRule POST /v1/loyalties/{campaignId}/earning-rules Create Earning Rule
LoyaltiesApi CreateInBulkLoyaltyTiers POST /v1/loyalties/{campaignId}/tiers Create loyalty tiers
LoyaltiesApi CreateLoyaltyProgram POST /v1/loyalties Create Loyalty Campaign
LoyaltiesApi CreatePointsExpirationExport POST /v1/loyalties/{campaignId}/points-expiration/export Export Loyalty Campaign Point Expiration
LoyaltiesApi CreateRewardAssignment1 POST /v1/loyalties/{campaignId}/rewards Create Loyalty Campaign Reward Assignment
LoyaltiesApi DeleteEarningRule DELETE /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} Delete Earning Rule
LoyaltiesApi DeleteLoyaltyProgram DELETE /v1/loyalties/{campaignId} Delete Loyalty Campaign
LoyaltiesApi DeleteRewardAssignment1 DELETE /v1/loyalties/{campaignId}/rewards/{assignmentId} Delete Campaign Reward Assignment
LoyaltiesApi DisableEarningRule POST /v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/disable Disable Earning Rule
LoyaltiesApi EnableEarningRule POST /v1/loyalties/{campaignId}/earning-rules/{earningRuleId}/enable Enable Earning Rule
LoyaltiesApi ExportLoyaltyCampaignTransactions POST /v1/loyalties/{campaignId}/transactions/export Export Loyalty Campaign Transactions
LoyaltiesApi ExportLoyaltyCardTransactions POST /v1/loyalties/members/{memberId}/transactions/export Export Loyalty Card Transactions
LoyaltiesApi ExportLoyaltyCardTransactions1 POST /v1/loyalties/{campaignId}/members/{memberId}/transactions/export Export Loyalty Card Transactions with campaign ID
LoyaltiesApi GetEarningRule GET /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} Get Earning Rule
LoyaltiesApi GetLoyaltyProgram GET /v1/loyalties/{campaignId} Get Loyalty Campaign
LoyaltiesApi GetLoyaltyTier GET /v1/loyalties/{campaignId}/tiers/{loyaltyTierId} Get Loyalty Tier
LoyaltiesApi GetMember GET /v1/loyalties/members/{memberId} Get Member
LoyaltiesApi GetMember1 GET /v1/loyalties/{campaignId}/members/{memberId} Get Member with campaign ID
LoyaltiesApi GetRewardAssignment1 GET /v1/loyalties/{campaignId}/reward-assignments/{assignmentId} Get Campaign Reward Assignments
LoyaltiesApi GetRewardAssignment2 GET /v1/loyalties/{campaignId}/rewards/{assignmentId} Get Campaign Reward Assignment
LoyaltiesApi GetRewardDetails GET /v1/loyalties/{campaignId}/reward-assignments/{assignmentId}/reward Get Reward Details
LoyaltiesApi ListCampaignPendingPoints GET /v1/loyalties/{campaignId}/pending-points List Campaign Pending Points
LoyaltiesApi ListEarningRules GET /v1/loyalties/{campaignId}/earning-rules List Earning Rules
LoyaltiesApi ListLoyaltyCampaignTransactions GET /v1/loyalties/{campaignId}/transactions List Loyalty Campaign Transactions
LoyaltiesApi ListLoyaltyCardTransactions GET /v1/loyalties/members/{memberId}/transactions List Loyalty Card Transactions
LoyaltiesApi ListLoyaltyCardTransactions1 GET /v1/loyalties/{campaignId}/members/{memberId}/transactions List Loyalty Card Transactions with campaign ID
LoyaltiesApi ListLoyaltyPrograms GET /v1/loyalties List Loyalty Campaigns
LoyaltiesApi ListLoyaltyTierEarningRules GET /v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/earning-rules List Loyalty Tier Earning Rules
LoyaltiesApi ListLoyaltyTierRewards GET /v1/loyalties/{campaignId}/tiers/{loyaltyTierId}/rewards List Loyalty Tier Rewards
LoyaltiesApi ListLoyaltyTiers GET /v1/loyalties/{campaignId}/tiers List Loyalty Tiers
LoyaltiesApi ListMemberActivity GET /v1/loyalties/members/{memberId}/activity List Member Activity
LoyaltiesApi ListMemberActivity1 GET /v1/loyalties/{campaignId}/members/{memberId}/activity List Member Activity with campaign ID
LoyaltiesApi ListMemberLoyaltyTier GET /v1/loyalties/members/{memberId}/tiers List Member's Loyalty Tiers
LoyaltiesApi ListMemberPendingPoints GET /v1/loyalties/members/{memberId}/pending-points List Member Pending Points
LoyaltiesApi ListMemberPendingPoints1 GET /v1/loyalties/{campaignId}/members/{memberId}/pending-points List Member Pending Points with campaign ID
LoyaltiesApi ListMemberRewards GET /v1/loyalties/members/{memberId}/rewards List Member Rewards
LoyaltiesApi ListMembers GET /v1/loyalties/{campaignId}/members List Members
LoyaltiesApi ListPointsExpiration GET /v1/loyalties/{campaignId}/members/{memberId}/points-expiration List Loyalty Card Point Expiration
LoyaltiesApi ListRewardAssignments1 GET /v1/loyalties/{campaignId}/reward-assignments List Reward Assignments with campaign ID
LoyaltiesApi ListRewardAssignments2 GET /v1/loyalties/{campaignId}/rewards List Campaign Rewards
LoyaltiesApi RedeemReward POST /v1/loyalties/members/{memberId}/redemption Redeem Reward
LoyaltiesApi RedeemReward1 POST /v1/loyalties/{campaignId}/members/{memberId}/redemption Redeem Reward with campaign ID
LoyaltiesApi TransferPoints POST /v1/loyalties/{campaignId}/members/{memberId}/transfers Transfer Loyalty Points
LoyaltiesApi UpdateEarningRule PUT /v1/loyalties/{campaignId}/earning-rules/{earningRuleId} Update Earning Rule
LoyaltiesApi UpdateLoyaltyCardBalance POST /v1/loyalties/members/{memberId}/balance Adjust Loyalty Card Balance
LoyaltiesApi UpdateLoyaltyCardBalance1 POST /v1/loyalties/{campaignId}/members/{memberId}/balance Adjust Loyalty Card Balance with campaign ID
LoyaltiesApi UpdateLoyaltyProgram PUT /v1/loyalties/{campaignId} Update Loyalty Campaign
LoyaltiesApi UpdateRewardAssignment1 PUT /v1/loyalties/{campaignId}/rewards/{assignmentId} Update Campaign Reward Assignment
ManagementApi AssignUser POST /management/v1/projects/{projectId}/users Assign User
ManagementApi CreateBrand POST /management/v1/projects/{projectId}/branding Create Brand
ManagementApi CreateCustomEventSchema POST /management/v1/projects/{projectId}/custom-event-schemas Create Custom Event Schema
ManagementApi CreateMetadataSchema POST /management/v1/projects/{projectId}/metadata-schemas Create Metadata Schema
ManagementApi CreateProject POST /management/v1/projects Create Project
ManagementApi CreateStackingRules POST /management/v1/projects/{projectId}/stacking-rules Create Stacking Rules
ManagementApi CreateWebhook POST /management/v1/projects/{projectId}/webhooks Create Webhook
ManagementApi DeleteBrand DELETE /management/v1/projects/{projectId}/branding/{brandingId} Delete Brand
ManagementApi DeleteCustomEventSchema DELETE /management/v1/projects/{projectId}/custom-event-schemas/{customEventSchemaId} Delete Custom Event Schema
ManagementApi DeleteMetadataSchema DELETE /management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId} Delete Metadata Schema
ManagementApi DeleteProject DELETE /management/v1/projects/{projectId} Delete Project
ManagementApi DeleteStackingRules DELETE /management/v1/projects/{projectId}/stacking-rules/{stackingRulesId} Delete Stacking Rules
ManagementApi DeleteWebhook DELETE /management/v1/projects/{projectId}/webhooks/{webhookId} Delete Webhook
ManagementApi GetBrand GET /management/v1/projects/{projectId}/branding/{brandingId} Get Brand
ManagementApi GetCustomEventSchema GET /management/v1/projects/{projectId}/custom-event-schemas/{customEventSchemaId} Get Custom Event Schema
ManagementApi GetMetadataSchema1 GET /management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId} Get Metadata Schema
ManagementApi GetProject GET /management/v1/projects/{projectId} Get Project
ManagementApi GetStackingRules GET /management/v1/projects/{projectId}/stacking-rules/{stackingRulesId} Get Stacking Rules
ManagementApi GetUser GET /management/v1/projects/{projectId}/users/{userId} Get User
ManagementApi GetWebhook GET /management/v1/projects/{projectId}/webhooks/{webhookId} Get Webhook
ManagementApi InviteUser POST /management/v1/projects/users/invite Invite a New User
ManagementApi ListBrands GET /management/v1/projects/{projectId}/branding List Brands
ManagementApi ListCustomEventSchemas GET /management/v1/projects/{projectId}/custom-event-schemas List Custom Event Schemas
ManagementApi ListMetadataSchemas1 GET /management/v1/projects/{projectId}/metadata-schemas List Metadata Schemas
ManagementApi ListProjects GET /management/v1/projects List Projects
ManagementApi ListStackingRules GET /management/v1/projects/{projectId}/stacking-rules List Stacking Rules
ManagementApi ListUsers GET /management/v1/projects/{projectId}/users List Users
ManagementApi ListWebhooks GET /management/v1/projects/{projectId}/webhooks List Webhooks
ManagementApi ManagementCopyCampaignTemplate POST /management/v1/projects/{projectId}/templates/campaigns/{campaignTemplateId}/copy Copy Campaign Template to a Project
ManagementApi ManagementListCampaignTemplates GET /management/v1/projects/{projectId}/templates/campaigns List Campaign Templates
ManagementApi UnassignUser DELETE /management/v1/projects/{projectId}/users/{userId} Unassign User
ManagementApi UpdateBrand PUT /management/v1/projects/{projectId}/branding/{brandingId} Update Brand
ManagementApi UpdateCustomEventSchema PUT /management/v1/projects/{projectId}/custom-event-schemas/{customEventSchemaId} Update Custom Event Schema
ManagementApi UpdateMetadataSchema PUT /management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId} Update Metadata Schema
ManagementApi UpdateProject PUT /management/v1/projects/{projectId} Update Project
ManagementApi UpdateStackingRules PUT /management/v1/projects/{projectId}/stacking-rules/{stackingRulesId} Update Stacking Rules
ManagementApi UpdateUser PUT /management/v1/projects/{projectId}/users/{userId} Update User
ManagementApi UpdateWebhook PUT /management/v1/projects/{projectId}/webhooks/{webhookId} Update Webhook
MetadataSchemasApi GetMetadataSchema GET /v1/metadata-schemas/{resource} Get Metadata Schema
MetadataSchemasApi ListMetadataSchemas GET /v1/metadata-schemas List Metadata Schema Definitions
OAuthApi GenerateOauthToken POST /v1/oauth/token Generate OAuth 2.0 Token
OAuthApi IntrospectOauthToken POST /v1/oauth/introspect Introspect OAuth 2.0 Token
OAuthApi RevokeOauthToken POST /v1/oauth/token/revoke Revoke OAuth 2.0 Token
OrdersApi CreateOrder POST /v1/orders Create Order
OrdersApi CreateOrderExport POST /v1/orders/export Create Orders Export
OrdersApi GetOrder GET /v1/orders/{orderId} Get Order
OrdersApi ImportOrders POST /v1/orders/import Import Orders
OrdersApi ListOrders GET /v1/orders List Orders
OrdersApi UpdateOrder PUT /v1/orders/{orderId} Update Order
ProductCollectionsApi CreateProductCollection POST /v1/product-collections Create Product Collection
ProductCollectionsApi DeleteProductCollection DELETE /v1/product-collections/{productCollectionId} Delete Product Collection
ProductCollectionsApi GetProductCollection GET /v1/product-collections/{productCollectionId} Get Product Collection
ProductCollectionsApi ListProductCollections GET /v1/product-collections List Product Collections
ProductCollectionsApi ListProductsInCollection GET /v1/product-collections/{productCollectionId}/products List Products in Collection
ProductsApi CreateProduct POST /v1/products Create Product
ProductsApi CreateSku POST /v1/products/{productId}/skus Create SKU
ProductsApi DeleteProduct DELETE /v1/products/{productId} Delete Product
ProductsApi DeleteSku DELETE /v1/products/{productId}/skus/{skuId} Delete SKU
ProductsApi GetProduct GET /v1/products/{productId} Get Product
ProductsApi GetSku GET /v1/skus/{skuId} Get SKU
ProductsApi ImportProductsUsingCsv POST /v1/products/importCSV Import Products using CSV
ProductsApi ImportSKUsUsingCsv POST /v1/skus/importCSV Import SKUs using CSV
ProductsApi ListProducts GET /v1/products List Products
ProductsApi ListSKUsInProduct GET /v1/products/{productId}/skus List SKUs in Product
ProductsApi UpdateProduct PUT /v1/products/{productId} Update Product
ProductsApi UpdateProductsInBulk POST /v1/products/bulk/async Update Products in Bulk
ProductsApi UpdateProductsMetadataInBulk POST /v1/products/metadata/async Update Products' Metadata in Bulk
ProductsApi UpdateSku PUT /v1/products/{productId}/skus/{skuId} Update SKU
PromotionsApi AddPromotionTierToCampaign POST /v1/promotions/{campaignId}/tiers Add Promotion Tier to Campaign
PromotionsApi CreatePromotionStack POST /v1/promotions/{campaignId}/stacks Create Promotion Stack
PromotionsApi DeletePromotionStack DELETE /v1/promotions/{campaignId}/stacks/{stackId} Delete Promotion Stack
PromotionsApi DeletePromotionTier DELETE /v1/promotions/tiers/{promotionTierId} Delete Promotion Tier
PromotionsApi DisablePromotionTier POST /v1/promotions/tiers/{promotionTierId}/disable Disable Promotion Tier
PromotionsApi EnablePromotionTier POST /v1/promotions/tiers/{promotionTierId}/enable Enable Promotion Tier
PromotionsApi GetPromotionStack GET /v1/promotions/{campaignId}/stacks/{stackId} Get Promotion Stack
PromotionsApi GetPromotionTier GET /v1/promotions/tiers/{promotionTierId} Get Promotion Tier
PromotionsApi ListAllPromotionStacks GET /v1/promotions/stacks List Promotion Stacks
PromotionsApi ListPromotionStacksInCampaign GET /v1/promotions/{campaignId}/stacks List Promotion Stacks in Campaign
PromotionsApi ListPromotionTiers GET /v1/promotions/tiers List Promotion Tiers
PromotionsApi ListPromotionTiersFromCampaign GET /v1/promotions/{campaignId}/tiers List Promotion Tiers from Campaign
PromotionsApi UpdatePromotionStack PUT /v1/promotions/{campaignId}/stacks/{stackId} Update Promotion Stack
PromotionsApi UpdatePromotionTier PUT /v1/promotions/tiers/{promotionTierId} Update Promotion Tier
PublicationsApi CreatePublication POST /v1/publications Create Publication
PublicationsApi CreatePublication1 GET /v1/publications/create Create Publication with GET
PublicationsApi ListPublications GET /v1/publications List Publications
QualificationsApi CheckEligibility POST /v1/qualifications Check Eligibility
RedemptionsApi GetRedemption GET /v1/redemptions/{redemptionId} Get Redemption
RedemptionsApi GetVoucherRedemptions GET /v1/vouchers/{code}/redemption Get Voucher's Redemptions
RedemptionsApi ListRedemptions GET /v1/redemptions List Redemptions
RedemptionsApi RedeemStackedDiscounts POST /v1/redemptions Redeem Stackable Discounts
RedemptionsApi RollbackRedemption POST /v1/redemptions/{redemptionId}/rollback Rollback Redemption
RedemptionsApi RollbackStackedRedemptions POST /v1/redemptions/{parentRedemptionId}/rollbacks Rollback Stackable Redemptions
ReferralsApi ReferralsAddHolders POST /v1/referrals/members/{memberId}/holders Add Referral Code Holders
ReferralsApi ReferralsAddHolders1 POST /v1/referrals/{campaignId}/members/{memberId}/holders Add Referral Code Holders with Campaign ID
ReferralsApi ReferralsCodeHolders GET /v1/referrals/{campaignId}/members/{memberId}/holders List Referral Code Holders with campaign ID
ReferralsApi ReferralsCodeHolders1 GET /v1/referrals/members/{memberId}/holders List Referral Code Holders
ReferralsApi ReferralsRemoveHolder DELETE /v1/referrals/members/{memberId}/holders/{holderId} Remove Referral Card Holder
ReferralsApi ReferralsRemoveHolder1 DELETE /v1/referrals/{campaignId}/members/{memberId}/holders/{holderId} Remove Referral Card Holder with campaign ID
RewardsApi CreateReward POST /v1/rewards Create Reward
RewardsApi CreateRewardAssignment POST /v1/rewards/{rewardId}/assignments Create Reward Assignment
RewardsApi DeleteReward DELETE /v1/rewards/{rewardId} Delete Reward
RewardsApi DeleteRewardAssignment DELETE /v1/rewards/{rewardId}/assignments/{assignmentId} Delete Reward Assignment
RewardsApi GetReward GET /v1/rewards/{rewardId} Get Reward
RewardsApi GetRewardAssignment GET /v1/rewards/{rewardId}/assignments/{assignmentId} Get Reward Assignment
RewardsApi ListRewardAssignments GET /v1/rewards/{rewardId}/assignments List Reward Assignments
RewardsApi ListRewards GET /v1/rewards List Rewards
RewardsApi UpdateReward PUT /v1/rewards/{rewardId} Update Reward
RewardsApi UpdateRewardAssignment PUT /v1/rewards/{rewardId}/assignments/{assignmentId} Update Reward Assignment
SegmentsApi CreateSegment POST /v1/segments Create Segment
SegmentsApi DeleteSegment DELETE /v1/segments/{segmentId} Delete Segment
SegmentsApi GetSegment GET /v1/segments/{segmentId} Get Segment
TemplatesApi AddTierFromTemplate POST /v1/templates/campaigns/{campaignTemplateId}/tier-setup Add Promotion Tier From Template
TemplatesApi CreateCampaignFromTemplate POST /v1/templates/campaigns/{campaignTemplateId}/campaign-setup Create Campaign From Template
TemplatesApi CreateCampaignTemplate POST /v1/templates/campaigns Create Campaign Template
TemplatesApi DeleteCampaignTemplate DELETE /v1/templates/campaigns/{campaignTemplateId} Delete Campaign Template
TemplatesApi GetCampaignTemplate GET /v1/templates/campaigns/{campaignTemplateId} Get Campaign Template
TemplatesApi ListCampaignTemplates GET /v1/templates/campaigns List Campaign Templates
TemplatesApi UpdateCampaignTemplate PUT /v1/templates/campaigns/{campaignTemplateId} Update Campaign Template
ValidationRulesApi CreateValidationRuleAssignment POST /v1/validation-rules/{validationRuleId}/assignments Create Validation Rules Assignments
ValidationRulesApi CreateValidationRules POST /v1/validation-rules Create Validation Rules
ValidationRulesApi DeleteValidationRuleAssignment DELETE /v1/validation-rules/{validationRuleId}/assignments/{assignmentId} Delete Validation Rule Assignment
ValidationRulesApi DeleteValidationRules DELETE /v1/validation-rules/{validationRuleId} Delete Validation Rule
ValidationRulesApi GetValidationRule GET /v1/validation-rules/{validationRuleId} Get Validation Rule
ValidationRulesApi ListValidationRuleAssignments GET /v1/validation-rules/{validationRuleId}/assignments List Validation Rule Assignments
ValidationRulesApi ListValidationRules GET /v1/validation-rules List Validation Rules
ValidationRulesApi ListValidationRulesAssignments GET /v1/validation-rules-assignments List Validation Rules' Assignment(s)
ValidationRulesApi UpdateValidationRule PUT /v1/validation-rules/{validationRuleId} Update Validation Rule
ValidationsApi ValidateStackedDiscounts POST /v1/validations Validate Stackable Discounts
VouchersApi CreateVoucher POST /v1/vouchers/{code} Create Voucher
VouchersApi DeleteVoucher DELETE /v1/vouchers/{code} Delete Voucher
VouchersApi DisableVoucher POST /v1/vouchers/{code}/disable Disable Voucher
VouchersApi EnableVoucher POST /v1/vouchers/{code}/enable Enable Voucher
VouchersApi ExportVoucherTransactions POST /v1/vouchers/{code}/transactions/export Export Voucher Transactions
VouchersApi GenerateRandomCode POST /v1/vouchers Generate Random Code
VouchersApi GetVoucher GET /v1/vouchers/{code} Get Voucher
VouchersApi ImportVouchers POST /v1/vouchers/import Import Vouchers
VouchersApi ImportVouchersUsingCsv POST /v1/vouchers/importCSV Import Vouchers using CSV
VouchersApi ListVoucherTransactions GET /v1/vouchers/{code}/transactions List Voucher Transactions
VouchersApi ListVouchers GET /v1/vouchers List Vouchers
VouchersApi ReleaseValidationSession DELETE /v1/vouchers/{code}/sessions/{sessionKey} Release Validation Session
VouchersApi UpdateVoucher PUT /v1/vouchers/{code} Update Voucher
VouchersApi UpdateVoucherBalance POST /v1/vouchers/{code}/balance Adjust Voucher Balance
VouchersApi UpdateVouchersInBulk POST /v1/vouchers/bulk/async Update Vouchers in Bulk
VouchersApi UpdateVouchersMetadataInBulk POST /v1/vouchers/metadata/async Update Vouchers' Metadata in Bulk

📚 Documentation of models

About

.Net SDK for Voucherify - coupons, vouchers, promo codes http://www.voucherify.io

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 16

Languages