All URIs are relative to https://api.brevo.com/v3
| Method | HTTP request | Description |
|---|---|---|
| CreateNewLP | POST /loyalty/config/programs | Create loyalty program |
| DeleteContactMembers | DELETE /loyalty/config/programs/{pid}/subscription-members | Delete subscription member |
| DeleteLoyaltyProgram | DELETE /loyalty/config/programs/{pid} | Delete Loyalty Program |
| GetLPList | GET /loyalty/config/programs | Get loyalty program list |
| GetLoyaltyProgramInfo | GET /loyalty/config/programs/{pid} | Get loyalty program Info |
| GetParameterSubscriptionInfo | GET /loyalty/config/programs/{pid}/account-info | Get Subscription Data |
| PartiallyUpdateLoyaltyProgram | PATCH /loyalty/config/programs/{pid} | Partially update loyalty program |
| PublishLoyaltyProgram | POST /loyalty/config/programs/{pid}/publish | Publish loyalty program |
| SubscribeMemberToASubscription | POST /loyalty/config/programs/{pid}/subscription-members | Create subscription member |
| SubscribeToLoyaltyProgram | POST /loyalty/config/programs/{pid}/subscriptions | Create subscription |
| UpdateLoyaltyProgram | PUT /loyalty/config/programs/{pid} | Update loyalty program |
LoyaltyProgram CreateNewLP (CreateLoyaltyProgramPayload body)
Create loyalty program
Creates loyalty program
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class CreateNewLPExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var body = new CreateLoyaltyProgramPayload(); // CreateLoyaltyProgramPayload | Create Loyalty Program Payload
try
{
// Create loyalty program
LoyaltyProgram result = apiInstance.CreateNewLP(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.CreateNewLP: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | CreateLoyaltyProgramPayload | Create Loyalty Program Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteContactMembers (Guid? pid, string memberContactIds)
Delete subscription member
Deletes member from a subscription
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class DeleteContactMembersExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
var memberContactIds = memberContactIds_example; // string | Member Contact Ids
try
{
// Delete subscription member
apiInstance.DeleteContactMembers(pid, memberContactIds);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.DeleteContactMembers: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id | |
| memberContactIds | string | Member Contact Ids |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteLoyaltyProgram (Guid? pid)
Delete Loyalty Program
Deletes Loyalty Program
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class DeleteLoyaltyProgramExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
try
{
// Delete Loyalty Program
apiInstance.DeleteLoyaltyProgram(pid);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.DeleteLoyaltyProgram: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoyaltyProgramPage GetLPList (int? limit = null, int? offset = null, string sortField = null, string sort = null)
Get loyalty program list
Returns list of loyalty programs
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class GetLPListExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var limit = 56; // int? | Number of documents per page (optional)
var offset = 56; // int? | Index of the first document in the page (optional)
var sortField = sortField_example; // string | Sort documents by field (optional)
var sort = sort_example; // string | Sort the documents in the ascending or descending order (optional)
try
{
// Get loyalty program list
LoyaltyProgramPage result = apiInstance.GetLPList(limit, offset, sortField, sort);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.GetLPList: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int? | Number of documents per page | [optional] |
| offset | int? | Index of the first document in the page | [optional] |
| sortField | string | Sort documents by field | [optional] |
| sort | string | Sort the documents in the ascending or descending order | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoyaltyProgram GetLoyaltyProgramInfo (Guid? pid)
Get loyalty program Info
Returns loyalty program
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class GetLoyaltyProgramInfoExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
try
{
// Get loyalty program Info
LoyaltyProgram result = apiInstance.GetLoyaltyProgramInfo(pid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.GetLoyaltyProgramInfo: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubscriptionHandlerInfo GetParameterSubscriptionInfo (Guid? pid, string contactId = null, string _params = null, string loyaltySubscriptionId = null)
Get Subscription Data
Get Information of balances, tiers, rewards and subscription members for a subscription
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class GetParameterSubscriptionInfoExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
var contactId = contactId_example; // string | Contact Id (optional)
var _params = _params_example; // string | Filter List (optional)
var loyaltySubscriptionId = loyaltySubscriptionId_example; // string | Loyalty Subscription Id (optional)
try
{
// Get Subscription Data
SubscriptionHandlerInfo result = apiInstance.GetParameterSubscriptionInfo(pid, contactId, _params, loyaltySubscriptionId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.GetParameterSubscriptionInfo: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id | |
| contactId | string | Contact Id | [optional] |
| _params | string | Filter List | [optional] |
| loyaltySubscriptionId | string | Loyalty Subscription Id | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoyaltyProgram PartiallyUpdateLoyaltyProgram (Guid? pid, PatchLoyaltyProgramPayload body)
Partially update loyalty program
Partially updates loyalty program
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class PartiallyUpdateLoyaltyProgramExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
var body = new PatchLoyaltyProgramPayload(); // PatchLoyaltyProgramPayload | Loyalty Program Payload
try
{
// Partially update loyalty program
LoyaltyProgram result = apiInstance.PartiallyUpdateLoyaltyProgram(pid, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.PartiallyUpdateLoyaltyProgram: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id | |
| body | PatchLoyaltyProgramPayload | Loyalty Program Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void PublishLoyaltyProgram (Guid? pid)
Publish loyalty program
Publishes loyalty program
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class PublishLoyaltyProgramExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
try
{
// Publish loyalty program
apiInstance.PublishLoyaltyProgram(pid);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.PublishLoyaltyProgram: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubscriptionMember SubscribeMemberToASubscription (Guid? pid, AddSubscriptionMemberPayload body)
Create subscription member
Add member to a subscription
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class SubscribeMemberToASubscriptionExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
var body = new AddSubscriptionMemberPayload(); // AddSubscriptionMemberPayload | Add Subscription Member Payload
try
{
// Create subscription member
SubscriptionMember result = apiInstance.SubscribeMemberToASubscription(pid, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.SubscribeMemberToASubscription: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id | |
| body | AddSubscriptionMemberPayload | Add Subscription Member Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Subscription SubscribeToLoyaltyProgram (Guid? pid, CreateSubscriptionPayload body)
Create subscription
Subscribes to a loyalty program
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class SubscribeToLoyaltyProgramExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
var body = new CreateSubscriptionPayload(); // CreateSubscriptionPayload | Create Subscription Payload
try
{
// Create subscription
Subscription result = apiInstance.SubscribeToLoyaltyProgram(pid, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.SubscribeToLoyaltyProgram: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id | |
| body | CreateSubscriptionPayload | Create Subscription Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoyaltyProgram UpdateLoyaltyProgram (Guid? pid, UpdateLoyaltyProgramPayload body)
Update loyalty program
Updates loyalty program
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class UpdateLoyaltyProgramExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ProgramApi();
var pid = new Guid?(); // Guid? | Loyalty Program Id
var body = new UpdateLoyaltyProgramPayload(); // UpdateLoyaltyProgramPayload | Update Loyalty Program Payload
try
{
// Update loyalty program
LoyaltyProgram result = apiInstance.UpdateLoyaltyProgram(pid, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProgramApi.UpdateLoyaltyProgram: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pid | Guid? | Loyalty Program Id | |
| body | UpdateLoyaltyProgramPayload | Update Loyalty Program Payload |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]