diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c1a59a8..76f87a6 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -78,7 +78,7 @@ jobs:
echo "maven install";
mvn clean install;
- export CLASSPATH=.:./target/lib/gson-2.8.9.jar:./target/talon-one-client-9.1.0.jar:./target/lib/okio-1.17.2.jar:./target/lib/okhttp-3.14.7.jar:./target/lib/threetenbp-1.4.3.jar:./target/lib/gson-fire-1.8.4.jar;
+ export CLASSPATH=.:./target/lib/gson-2.8.9.jar:./target/talon-one-client-10.0.0.jar:./target/lib/okio-1.17.2.jar:./target/lib/okhttp-3.14.7.jar:./target/lib/threetenbp-1.4.3.jar:./target/lib/gson-fire-1.8.4.jar;
echo "java compile";
javac -d . Example.java;
diff --git a/README.md b/README.md
index 9cd8b2f..55b1013 100644
--- a/README.md
+++ b/README.md
@@ -1,37 +1,19 @@
-# talon-one-client
+# Talon.One Java SDK
-Talon.One API
-- API version:
-
-Use the Talon.One API to integrate with your application and to
-manage applications and campaigns:
-
-- Use the operations in the [Integration API section](#integration-api)
-are used to integrate with our platform
-- Use the operation in the [Management API section](#management-api) to
-manage applications and campaigns.
-
-## Determining the base URL of the endpoints
-
-The API is available at the same hostname as your Campaign Manager deployment.
-For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`,
-the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint
-is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
-
-
-
-*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
+This SDK supports all of the operations of Talon.One's Integration API and Management API.
+If you use Maven, we also host [Maven Artifacts](https://github.com/talon-one/maven-artefacts).
## Requirements
Building the API client library requires:
+
1. Java 1.7+
2. Maven/Gradle
## Installation
-To install the API client library to your local Maven repository, simply execute:
+To install the API client library to your local Maven repository, execute:
```shell
mvn clean install
@@ -53,7 +35,7 @@ Add this dependency to your project's POM:
one.talon
talon-one-client
- 9.1.0
+ 10.0.0
compile
```
@@ -63,29 +45,28 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
-compile "one.talon:talon-one-client:9.1.0"
+compile "one.talon:talon-one-client:10.0.0"
```
### Others
-At first generate the JAR by executing:
-
-```shell
-mvn clean package
-```
-
-Then manually install the following JARs:
+1. Generate the JAR by running `mvn clean package`.
+1. Manually install the following JARs:
+ - `target/talon-one-client-2.0.0.jar`
+ - `target/lib/*.jar`
-* `target/talon-one-client-9.1.0.jar`
-* `target/lib/*.jar`
+## Determining the base URL of the endpoints
-## Getting Started
+The API is available at the same hostname as your Campaign Manager deployment.
+For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one`,
+the URL for the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint
+is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`.
-Please follow the [installation](#installation) instruction and execute the following Java code:
+## Getting started
### Integration API
-**Note:** The Integration API's V1 `Update customer session` and `Update customer profile` endpoints are now deprecated. Use their V2 instead. See [Migrating to V2](https://docs.talon.one/docs/dev/tutorials/migrating-to-v2) for more information.
+The following code shows an example of using the Integration API:
```java
package com.example.consumer;
@@ -105,7 +86,7 @@ public class TalonApiTest {
IntegrationApi iApi = new IntegrationApi(new ApiClient("api_key_v1"));
// Setup: basePath
- iApi.getApiClient().setBasePath("https://yourbaseurl.talon.one");
+ iApi.getApiClient().setBasePath("https://yourbaseurl.talon.one"); // No trailing slash!
// Setup: when using 'api_key_v1', set apiKey & apiKeyPrefix must be provided
iApi.getApiClient().setApiKeyPrefix("ApiKey-v1");
iApi.getApiClient().setApiKey("dbc644d33aa74d582bd9479c59e16f970fe13bf34a208c39d6c7fa7586968468");
@@ -172,6 +153,8 @@ public class TalonApiTest {
### Management API
+The following code shows an example of using the Management API:
+
```java
package com.example.consumer;
@@ -186,7 +169,7 @@ public class TalonApiTest {
ManagementApi mApi = new ManagementApi(new ApiClient("management_key"));
// Setup: basePath
- mApi.getApiClient().setBasePath("https://yourbaseurl.talon.one");
+ mApi.getApiClient().setBasePath("https://yourbaseurl.talon.one"); // No trailing slash!
// Setup: when using 'management_key', set apiKey & apiKeyPrefix must be provided
mApi.getApiClient().setApiKeyPrefix("ManagementKey-v1");
mApi.getApiClient().setApiKey("2f0dce055da01ae595005d7d79154bae7448d319d5fc7c5b2951fadd6ba1ea07");
@@ -202,9 +185,9 @@ public class TalonApiTest {
}
```
-## Documentation for API Endpoints
+## Documentation for API endpoints
-All URIs are relative to *https://yourbaseurl.talon.one*
+All URLs are relative to `https://yourbaseurl.talon.one`.
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
@@ -296,7 +279,6 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**getAchievement**](docs/ManagementApi.md#getAchievement) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Get achievement
*ManagementApi* | [**getAdditionalCost**](docs/ManagementApi.md#getAdditionalCost) | **GET** /v1/additional_costs/{additionalCostId} | Get additional cost
*ManagementApi* | [**getAdditionalCosts**](docs/ManagementApi.md#getAdditionalCosts) | **GET** /v1/additional_costs | List additional costs
-*ManagementApi* | [**getAllAccessLogs**](docs/ManagementApi.md#getAllAccessLogs) | **GET** /v1/access_logs | List access logs
*ManagementApi* | [**getApplication**](docs/ManagementApi.md#getApplication) | **GET** /v1/applications/{applicationId} | Get Application
*ManagementApi* | [**getApplicationApiHealth**](docs/ManagementApi.md#getApplicationApiHealth) | **GET** /v1/applications/{applicationId}/health_report | Get Application health
*ManagementApi* | [**getApplicationCustomer**](docs/ManagementApi.md#getApplicationCustomer) | **GET** /v1/applications/{applicationId}/customers/{customerId} | Get application's customer
@@ -404,524 +386,529 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**updateStore**](docs/ManagementApi.md#updateStore) | **PUT** /v1/applications/{applicationId}/stores/{storeId} | Update store
*ManagementApi* | [**updateUser**](docs/ManagementApi.md#updateUser) | **PUT** /v1/users/{userId} | Update user
-
-## Documentation for Models
-
- - [APIError](docs/APIError.md)
- - [AcceptCouponEffectProps](docs/AcceptCouponEffectProps.md)
- - [AcceptReferralEffectProps](docs/AcceptReferralEffectProps.md)
- - [AccessLogEntry](docs/AccessLogEntry.md)
- - [Account](docs/Account.md)
- - [AccountAdditionalCost](docs/AccountAdditionalCost.md)
- - [AccountAnalytics](docs/AccountAnalytics.md)
- - [AccountDashboardStatistic](docs/AccountDashboardStatistic.md)
- - [AccountDashboardStatisticCampaigns](docs/AccountDashboardStatisticCampaigns.md)
- - [AccountDashboardStatisticDiscount](docs/AccountDashboardStatisticDiscount.md)
- - [AccountDashboardStatisticLoyaltyPoints](docs/AccountDashboardStatisticLoyaltyPoints.md)
- - [AccountDashboardStatisticReferrals](docs/AccountDashboardStatisticReferrals.md)
- - [AccountDashboardStatisticRevenue](docs/AccountDashboardStatisticRevenue.md)
- - [AccountEntity](docs/AccountEntity.md)
- - [AccountLimits](docs/AccountLimits.md)
- - [Achievement](docs/Achievement.md)
- - [AchievementAdditionalProperties](docs/AchievementAdditionalProperties.md)
- - [AchievementProgress](docs/AchievementProgress.md)
- - [AddFreeItemEffectProps](docs/AddFreeItemEffectProps.md)
- - [AddItemCatalogAction](docs/AddItemCatalogAction.md)
- - [AddLoyaltyPoints](docs/AddLoyaltyPoints.md)
- - [AddLoyaltyPointsEffectProps](docs/AddLoyaltyPointsEffectProps.md)
- - [AddToAudienceEffectProps](docs/AddToAudienceEffectProps.md)
- - [AddedDeductedPointsNotificationPolicy](docs/AddedDeductedPointsNotificationPolicy.md)
- - [AdditionalCampaignProperties](docs/AdditionalCampaignProperties.md)
- - [AdditionalCost](docs/AdditionalCost.md)
- - [AnalyticsDataPoint](docs/AnalyticsDataPoint.md)
- - [AnalyticsDataPointWithTrend](docs/AnalyticsDataPointWithTrend.md)
- - [AnalyticsDataPointWithTrendAndInfluencedRate](docs/AnalyticsDataPointWithTrendAndInfluencedRate.md)
- - [AnalyticsDataPointWithTrendAndUplift](docs/AnalyticsDataPointWithTrendAndUplift.md)
- - [Application](docs/Application.md)
- - [ApplicationAPIKey](docs/ApplicationAPIKey.md)
- - [ApplicationAnalyticsDataPoint](docs/ApplicationAnalyticsDataPoint.md)
- - [ApplicationApiHealth](docs/ApplicationApiHealth.md)
- - [ApplicationCIF](docs/ApplicationCIF.md)
- - [ApplicationCIFExpression](docs/ApplicationCIFExpression.md)
- - [ApplicationCampaignAnalytics](docs/ApplicationCampaignAnalytics.md)
- - [ApplicationCampaignStats](docs/ApplicationCampaignStats.md)
- - [ApplicationCustomer](docs/ApplicationCustomer.md)
- - [ApplicationCustomerEntity](docs/ApplicationCustomerEntity.md)
- - [ApplicationEntity](docs/ApplicationEntity.md)
- - [ApplicationEvent](docs/ApplicationEvent.md)
- - [ApplicationNotification](docs/ApplicationNotification.md)
- - [ApplicationReferee](docs/ApplicationReferee.md)
- - [ApplicationSession](docs/ApplicationSession.md)
- - [ApplicationSessionEntity](docs/ApplicationSessionEntity.md)
- - [ApplicationStoreEntity](docs/ApplicationStoreEntity.md)
- - [AsyncCouponCreationResponse](docs/AsyncCouponCreationResponse.md)
- - [AsyncCouponDeletionJobResponse](docs/AsyncCouponDeletionJobResponse.md)
- - [Attribute](docs/Attribute.md)
- - [AttributesMandatory](docs/AttributesMandatory.md)
- - [AttributesSettings](docs/AttributesSettings.md)
- - [Audience](docs/Audience.md)
- - [AudienceAnalytics](docs/AudienceAnalytics.md)
- - [AudienceCustomer](docs/AudienceCustomer.md)
- - [AudienceIntegrationID](docs/AudienceIntegrationID.md)
- - [AudienceMembership](docs/AudienceMembership.md)
- - [AwardGiveawayEffectProps](docs/AwardGiveawayEffectProps.md)
- - [BaseCampaign](docs/BaseCampaign.md)
- - [BaseLoyaltyProgram](docs/BaseLoyaltyProgram.md)
- - [BaseNotification](docs/BaseNotification.md)
- - [BaseNotificationEntity](docs/BaseNotificationEntity.md)
- - [BaseNotificationWebhook](docs/BaseNotificationWebhook.md)
- - [BaseNotifications](docs/BaseNotifications.md)
- - [BaseSamlConnection](docs/BaseSamlConnection.md)
- - [Binding](docs/Binding.md)
- - [BulkApplicationNotification](docs/BulkApplicationNotification.md)
- - [BulkCampaignNotification](docs/BulkCampaignNotification.md)
- - [BulkOperationOnCampaigns](docs/BulkOperationOnCampaigns.md)
- - [Campaign](docs/Campaign.md)
- - [CampaignActivationRequest](docs/CampaignActivationRequest.md)
- - [CampaignAnalytics](docs/CampaignAnalytics.md)
- - [CampaignBudget](docs/CampaignBudget.md)
- - [CampaignCollection](docs/CampaignCollection.md)
- - [CampaignCollectionEditedNotification](docs/CampaignCollectionEditedNotification.md)
- - [CampaignCollectionWithoutPayload](docs/CampaignCollectionWithoutPayload.md)
- - [CampaignCopy](docs/CampaignCopy.md)
- - [CampaignCreatedNotification](docs/CampaignCreatedNotification.md)
- - [CampaignDeletedNotification](docs/CampaignDeletedNotification.md)
- - [CampaignEditedNotification](docs/CampaignEditedNotification.md)
- - [CampaignEntity](docs/CampaignEntity.md)
- - [CampaignEvaluationGroup](docs/CampaignEvaluationGroup.md)
- - [CampaignEvaluationPosition](docs/CampaignEvaluationPosition.md)
- - [CampaignEvaluationTreeChangedNotification](docs/CampaignEvaluationTreeChangedNotification.md)
- - [CampaignGroup](docs/CampaignGroup.md)
- - [CampaignGroupEntity](docs/CampaignGroupEntity.md)
- - [CampaignNotification](docs/CampaignNotification.md)
- - [CampaignNotificationPolicy](docs/CampaignNotificationPolicy.md)
- - [CampaignRulesetChangedNotification](docs/CampaignRulesetChangedNotification.md)
- - [CampaignSearch](docs/CampaignSearch.md)
- - [CampaignSet](docs/CampaignSet.md)
- - [CampaignSetBranchNode](docs/CampaignSetBranchNode.md)
- - [CampaignSetLeafNode](docs/CampaignSetLeafNode.md)
- - [CampaignSetNode](docs/CampaignSetNode.md)
- - [CampaignStateChangedNotification](docs/CampaignStateChangedNotification.md)
- - [CampaignStoreBudget](docs/CampaignStoreBudget.md)
- - [CampaignTemplate](docs/CampaignTemplate.md)
- - [CampaignTemplateCollection](docs/CampaignTemplateCollection.md)
- - [CampaignTemplateCouponReservationSettings](docs/CampaignTemplateCouponReservationSettings.md)
- - [CampaignTemplateParams](docs/CampaignTemplateParams.md)
- - [CampaignVersions](docs/CampaignVersions.md)
- - [CardAddedDeductedPointsNotificationPolicy](docs/CardAddedDeductedPointsNotificationPolicy.md)
- - [CardExpiringPointsNotificationPolicy](docs/CardExpiringPointsNotificationPolicy.md)
- - [CardExpiringPointsNotificationTrigger](docs/CardExpiringPointsNotificationTrigger.md)
- - [CardLedgerPointsEntryIntegrationAPI](docs/CardLedgerPointsEntryIntegrationAPI.md)
- - [CardLedgerTransactionLogEntry](docs/CardLedgerTransactionLogEntry.md)
- - [CardLedgerTransactionLogEntryIntegrationAPI](docs/CardLedgerTransactionLogEntryIntegrationAPI.md)
- - [CartItem](docs/CartItem.md)
- - [Catalog](docs/Catalog.md)
- - [CatalogAction](docs/CatalogAction.md)
- - [CatalogActionFilter](docs/CatalogActionFilter.md)
- - [CatalogItem](docs/CatalogItem.md)
- - [CatalogSyncRequest](docs/CatalogSyncRequest.md)
- - [CatalogsStrikethroughNotificationPolicy](docs/CatalogsStrikethroughNotificationPolicy.md)
- - [Change](docs/Change.md)
- - [ChangeLoyaltyTierLevelEffectProps](docs/ChangeLoyaltyTierLevelEffectProps.md)
- - [ChangeProfilePassword](docs/ChangeProfilePassword.md)
- - [CodeGeneratorSettings](docs/CodeGeneratorSettings.md)
- - [Collection](docs/Collection.md)
- - [CollectionItem](docs/CollectionItem.md)
- - [CollectionWithoutPayload](docs/CollectionWithoutPayload.md)
- - [Coupon](docs/Coupon.md)
- - [CouponConstraints](docs/CouponConstraints.md)
- - [CouponCreatedEffectProps](docs/CouponCreatedEffectProps.md)
- - [CouponCreationJob](docs/CouponCreationJob.md)
- - [CouponDeletionFilters](docs/CouponDeletionFilters.md)
- - [CouponDeletionJob](docs/CouponDeletionJob.md)
- - [CouponLimitConfigs](docs/CouponLimitConfigs.md)
- - [CouponRejectionReason](docs/CouponRejectionReason.md)
- - [CouponReservations](docs/CouponReservations.md)
- - [CouponSearch](docs/CouponSearch.md)
- - [CouponValue](docs/CouponValue.md)
- - [CouponsNotificationPolicy](docs/CouponsNotificationPolicy.md)
- - [CreateAchievement](docs/CreateAchievement.md)
- - [CreateApplicationAPIKey](docs/CreateApplicationAPIKey.md)
- - [CreateManagementKey](docs/CreateManagementKey.md)
- - [CreateTemplateCampaign](docs/CreateTemplateCampaign.md)
- - [CreateTemplateCampaignResponse](docs/CreateTemplateCampaignResponse.md)
- - [CustomEffect](docs/CustomEffect.md)
- - [CustomEffectProps](docs/CustomEffectProps.md)
- - [CustomerActivityReport](docs/CustomerActivityReport.md)
- - [CustomerAnalytics](docs/CustomerAnalytics.md)
- - [CustomerInventory](docs/CustomerInventory.md)
- - [CustomerProfile](docs/CustomerProfile.md)
- - [CustomerProfileAudienceRequest](docs/CustomerProfileAudienceRequest.md)
- - [CustomerProfileAudienceRequestItem](docs/CustomerProfileAudienceRequestItem.md)
- - [CustomerProfileIntegrationRequestV2](docs/CustomerProfileIntegrationRequestV2.md)
- - [CustomerProfileIntegrationResponseV2](docs/CustomerProfileIntegrationResponseV2.md)
- - [CustomerProfileSearchQuery](docs/CustomerProfileSearchQuery.md)
- - [CustomerProfileUpdateV2Response](docs/CustomerProfileUpdateV2Response.md)
- - [CustomerSession](docs/CustomerSession.md)
- - [CustomerSessionV2](docs/CustomerSessionV2.md)
- - [DeactivateUserRequest](docs/DeactivateUserRequest.md)
- - [DeductLoyaltyPoints](docs/DeductLoyaltyPoints.md)
- - [DeductLoyaltyPointsEffectProps](docs/DeductLoyaltyPointsEffectProps.md)
- - [Effect](docs/Effect.md)
- - [EffectEntity](docs/EffectEntity.md)
- - [EmailEntity](docs/EmailEntity.md)
- - [Endpoint](docs/Endpoint.md)
- - [Entity](docs/Entity.md)
- - [EntityWithTalangVisibleID](docs/EntityWithTalangVisibleID.md)
- - [Environment](docs/Environment.md)
- - [ErrorEffectProps](docs/ErrorEffectProps.md)
- - [ErrorResponse](docs/ErrorResponse.md)
- - [ErrorResponseWithStatus](docs/ErrorResponseWithStatus.md)
- - [ErrorSource](docs/ErrorSource.md)
- - [EvaluableCampaignIds](docs/EvaluableCampaignIds.md)
- - [Event](docs/Event.md)
- - [EventType](docs/EventType.md)
- - [EventV2](docs/EventV2.md)
- - [ExpiringCouponsNotificationPolicy](docs/ExpiringCouponsNotificationPolicy.md)
- - [ExpiringCouponsNotificationTrigger](docs/ExpiringCouponsNotificationTrigger.md)
- - [ExpiringPointsNotificationPolicy](docs/ExpiringPointsNotificationPolicy.md)
- - [ExpiringPointsNotificationTrigger](docs/ExpiringPointsNotificationTrigger.md)
- - [Export](docs/Export.md)
- - [FeatureFlag](docs/FeatureFlag.md)
- - [FeaturesFeed](docs/FeaturesFeed.md)
- - [FuncArgDef](docs/FuncArgDef.md)
- - [FunctionDef](docs/FunctionDef.md)
- - [GenerateCampaignDescription](docs/GenerateCampaignDescription.md)
- - [GenerateCampaignTags](docs/GenerateCampaignTags.md)
- - [GenerateItemFilterDescription](docs/GenerateItemFilterDescription.md)
- - [GenerateLoyaltyCard](docs/GenerateLoyaltyCard.md)
- - [GenerateRuleTitle](docs/GenerateRuleTitle.md)
- - [GenerateRuleTitleRule](docs/GenerateRuleTitleRule.md)
- - [GetIntegrationCouponRequest](docs/GetIntegrationCouponRequest.md)
- - [Giveaway](docs/Giveaway.md)
- - [GiveawaysPool](docs/GiveawaysPool.md)
- - [IdentifiableEntity](docs/IdentifiableEntity.md)
- - [ImportEntity](docs/ImportEntity.md)
- - [IncreaseAchievementProgressEffectProps](docs/IncreaseAchievementProgressEffectProps.md)
- - [InlineResponse200](docs/InlineResponse200.md)
- - [InlineResponse2001](docs/InlineResponse2001.md)
- - [InlineResponse20010](docs/InlineResponse20010.md)
- - [InlineResponse20011](docs/InlineResponse20011.md)
- - [InlineResponse20012](docs/InlineResponse20012.md)
- - [InlineResponse20013](docs/InlineResponse20013.md)
- - [InlineResponse20014](docs/InlineResponse20014.md)
- - [InlineResponse20015](docs/InlineResponse20015.md)
- - [InlineResponse20016](docs/InlineResponse20016.md)
- - [InlineResponse20017](docs/InlineResponse20017.md)
- - [InlineResponse20018](docs/InlineResponse20018.md)
- - [InlineResponse20019](docs/InlineResponse20019.md)
- - [InlineResponse2002](docs/InlineResponse2002.md)
- - [InlineResponse20020](docs/InlineResponse20020.md)
- - [InlineResponse20021](docs/InlineResponse20021.md)
- - [InlineResponse20022](docs/InlineResponse20022.md)
- - [InlineResponse20023](docs/InlineResponse20023.md)
- - [InlineResponse20024](docs/InlineResponse20024.md)
- - [InlineResponse20025](docs/InlineResponse20025.md)
- - [InlineResponse20026](docs/InlineResponse20026.md)
- - [InlineResponse20027](docs/InlineResponse20027.md)
- - [InlineResponse20028](docs/InlineResponse20028.md)
- - [InlineResponse20029](docs/InlineResponse20029.md)
- - [InlineResponse2003](docs/InlineResponse2003.md)
- - [InlineResponse20030](docs/InlineResponse20030.md)
- - [InlineResponse20031](docs/InlineResponse20031.md)
- - [InlineResponse20032](docs/InlineResponse20032.md)
- - [InlineResponse20033](docs/InlineResponse20033.md)
- - [InlineResponse20034](docs/InlineResponse20034.md)
- - [InlineResponse20035](docs/InlineResponse20035.md)
- - [InlineResponse20036](docs/InlineResponse20036.md)
- - [InlineResponse20037](docs/InlineResponse20037.md)
- - [InlineResponse20038](docs/InlineResponse20038.md)
- - [InlineResponse20039](docs/InlineResponse20039.md)
- - [InlineResponse2004](docs/InlineResponse2004.md)
- - [InlineResponse20040](docs/InlineResponse20040.md)
- - [InlineResponse20041](docs/InlineResponse20041.md)
- - [InlineResponse20042](docs/InlineResponse20042.md)
- - [InlineResponse20043](docs/InlineResponse20043.md)
- - [InlineResponse20044](docs/InlineResponse20044.md)
- - [InlineResponse20045](docs/InlineResponse20045.md)
- - [InlineResponse20046](docs/InlineResponse20046.md)
- - [InlineResponse20047](docs/InlineResponse20047.md)
- - [InlineResponse2005](docs/InlineResponse2005.md)
- - [InlineResponse2006](docs/InlineResponse2006.md)
- - [InlineResponse2007](docs/InlineResponse2007.md)
- - [InlineResponse2008](docs/InlineResponse2008.md)
- - [InlineResponse2009](docs/InlineResponse2009.md)
- - [InlineResponse201](docs/InlineResponse201.md)
- - [IntegrationCoupon](docs/IntegrationCoupon.md)
- - [IntegrationCustomerSessionResponse](docs/IntegrationCustomerSessionResponse.md)
- - [IntegrationEntity](docs/IntegrationEntity.md)
- - [IntegrationEvent](docs/IntegrationEvent.md)
- - [IntegrationEventV2Request](docs/IntegrationEventV2Request.md)
- - [IntegrationProfileEntity](docs/IntegrationProfileEntity.md)
- - [IntegrationRequest](docs/IntegrationRequest.md)
- - [IntegrationState](docs/IntegrationState.md)
- - [IntegrationStateV2](docs/IntegrationStateV2.md)
- - [IntegrationStoreEntity](docs/IntegrationStoreEntity.md)
- - [InventoryCoupon](docs/InventoryCoupon.md)
- - [InventoryReferral](docs/InventoryReferral.md)
- - [ItemAttribute](docs/ItemAttribute.md)
- - [LedgerEntry](docs/LedgerEntry.md)
- - [LedgerInfo](docs/LedgerInfo.md)
- - [LedgerPointsEntryIntegrationAPI](docs/LedgerPointsEntryIntegrationAPI.md)
- - [LedgerTransactionLogEntryIntegrationAPI](docs/LedgerTransactionLogEntryIntegrationAPI.md)
- - [LibraryAttribute](docs/LibraryAttribute.md)
- - [LimitConfig](docs/LimitConfig.md)
- - [LimitCounter](docs/LimitCounter.md)
- - [ListCampaignStoreBudgets](docs/ListCampaignStoreBudgets.md)
- - [ListCampaignStoreBudgetsStore](docs/ListCampaignStoreBudgetsStore.md)
- - [LoginParams](docs/LoginParams.md)
- - [Loyalty](docs/Loyalty.md)
- - [LoyaltyBalance](docs/LoyaltyBalance.md)
- - [LoyaltyBalanceWithTier](docs/LoyaltyBalanceWithTier.md)
- - [LoyaltyBalances](docs/LoyaltyBalances.md)
- - [LoyaltyBalancesWithTiers](docs/LoyaltyBalancesWithTiers.md)
- - [LoyaltyCard](docs/LoyaltyCard.md)
- - [LoyaltyCardBalances](docs/LoyaltyCardBalances.md)
- - [LoyaltyCardBatch](docs/LoyaltyCardBatch.md)
- - [LoyaltyCardBatchResponse](docs/LoyaltyCardBatchResponse.md)
- - [LoyaltyCardProfileRegistration](docs/LoyaltyCardProfileRegistration.md)
- - [LoyaltyCardRegistration](docs/LoyaltyCardRegistration.md)
- - [LoyaltyDashboardData](docs/LoyaltyDashboardData.md)
- - [LoyaltyDashboardPointsBreakdown](docs/LoyaltyDashboardPointsBreakdown.md)
- - [LoyaltyLedger](docs/LoyaltyLedger.md)
- - [LoyaltyLedgerEntry](docs/LoyaltyLedgerEntry.md)
- - [LoyaltyLedgerTransactions](docs/LoyaltyLedgerTransactions.md)
- - [LoyaltyMembership](docs/LoyaltyMembership.md)
- - [LoyaltyProgram](docs/LoyaltyProgram.md)
- - [LoyaltyProgramBalance](docs/LoyaltyProgramBalance.md)
- - [LoyaltyProgramEntity](docs/LoyaltyProgramEntity.md)
- - [LoyaltyProgramLedgers](docs/LoyaltyProgramLedgers.md)
- - [LoyaltyProgramTransaction](docs/LoyaltyProgramTransaction.md)
- - [LoyaltySubLedger](docs/LoyaltySubLedger.md)
- - [LoyaltyTier](docs/LoyaltyTier.md)
- - [ManagementKey](docs/ManagementKey.md)
- - [ManagerConfig](docs/ManagerConfig.md)
- - [MessageLogEntries](docs/MessageLogEntries.md)
- - [MessageLogEntry](docs/MessageLogEntry.md)
- - [MessageLogRequest](docs/MessageLogRequest.md)
- - [MessageLogResponse](docs/MessageLogResponse.md)
- - [Meta](docs/Meta.md)
- - [ModelImport](docs/ModelImport.md)
- - [ModelReturn](docs/ModelReturn.md)
- - [MultiApplicationEntity](docs/MultiApplicationEntity.md)
- - [MultipleAttribute](docs/MultipleAttribute.md)
- - [MultipleAudiences](docs/MultipleAudiences.md)
- - [MultipleAudiencesItem](docs/MultipleAudiencesItem.md)
- - [MultipleCustomerProfileIntegrationRequest](docs/MultipleCustomerProfileIntegrationRequest.md)
- - [MultipleCustomerProfileIntegrationRequestItem](docs/MultipleCustomerProfileIntegrationRequestItem.md)
- - [MultipleCustomerProfileIntegrationResponseV2](docs/MultipleCustomerProfileIntegrationResponseV2.md)
- - [MultipleNewAttribute](docs/MultipleNewAttribute.md)
- - [MultipleNewAudiences](docs/MultipleNewAudiences.md)
- - [MutableEntity](docs/MutableEntity.md)
- - [NewAccount](docs/NewAccount.md)
- - [NewAccountSignUp](docs/NewAccountSignUp.md)
- - [NewAdditionalCost](docs/NewAdditionalCost.md)
- - [NewAppWideCouponDeletionJob](docs/NewAppWideCouponDeletionJob.md)
- - [NewApplication](docs/NewApplication.md)
- - [NewApplicationAPIKey](docs/NewApplicationAPIKey.md)
- - [NewApplicationCIF](docs/NewApplicationCIF.md)
- - [NewApplicationCIFExpression](docs/NewApplicationCIFExpression.md)
- - [NewAttribute](docs/NewAttribute.md)
- - [NewAudience](docs/NewAudience.md)
- - [NewBaseNotification](docs/NewBaseNotification.md)
- - [NewCampaign](docs/NewCampaign.md)
- - [NewCampaignCollection](docs/NewCampaignCollection.md)
- - [NewCampaignEvaluationGroup](docs/NewCampaignEvaluationGroup.md)
- - [NewCampaignGroup](docs/NewCampaignGroup.md)
- - [NewCampaignSet](docs/NewCampaignSet.md)
- - [NewCampaignStoreBudget](docs/NewCampaignStoreBudget.md)
- - [NewCampaignStoreBudgetStoreLimit](docs/NewCampaignStoreBudgetStoreLimit.md)
- - [NewCampaignTemplate](docs/NewCampaignTemplate.md)
- - [NewCatalog](docs/NewCatalog.md)
- - [NewCollection](docs/NewCollection.md)
- - [NewCouponCreationJob](docs/NewCouponCreationJob.md)
- - [NewCouponDeletionJob](docs/NewCouponDeletionJob.md)
- - [NewCoupons](docs/NewCoupons.md)
- - [NewCouponsForMultipleRecipients](docs/NewCouponsForMultipleRecipients.md)
- - [NewCustomEffect](docs/NewCustomEffect.md)
- - [NewCustomerProfile](docs/NewCustomerProfile.md)
- - [NewCustomerSession](docs/NewCustomerSession.md)
- - [NewCustomerSessionV2](docs/NewCustomerSessionV2.md)
- - [NewEvent](docs/NewEvent.md)
- - [NewEventType](docs/NewEventType.md)
- - [NewExternalInvitation](docs/NewExternalInvitation.md)
- - [NewGiveawaysPool](docs/NewGiveawaysPool.md)
- - [NewInternalAudience](docs/NewInternalAudience.md)
- - [NewInvitation](docs/NewInvitation.md)
- - [NewInviteEmail](docs/NewInviteEmail.md)
- - [NewLoyaltyProgram](docs/NewLoyaltyProgram.md)
- - [NewLoyaltyTier](docs/NewLoyaltyTier.md)
- - [NewManagementKey](docs/NewManagementKey.md)
- - [NewMultipleAudiencesItem](docs/NewMultipleAudiencesItem.md)
- - [NewNotificationTest](docs/NewNotificationTest.md)
- - [NewNotificationWebhook](docs/NewNotificationWebhook.md)
- - [NewOutgoingIntegrationWebhook](docs/NewOutgoingIntegrationWebhook.md)
- - [NewPassword](docs/NewPassword.md)
- - [NewPasswordEmail](docs/NewPasswordEmail.md)
- - [NewPicklist](docs/NewPicklist.md)
- - [NewReferral](docs/NewReferral.md)
- - [NewReferralsForMultipleAdvocates](docs/NewReferralsForMultipleAdvocates.md)
- - [NewReturn](docs/NewReturn.md)
- - [NewRevisionVersion](docs/NewRevisionVersion.md)
- - [NewRole](docs/NewRole.md)
- - [NewRoleV2](docs/NewRoleV2.md)
- - [NewRuleset](docs/NewRuleset.md)
- - [NewSamlConnection](docs/NewSamlConnection.md)
- - [NewStore](docs/NewStore.md)
- - [NewTemplateDef](docs/NewTemplateDef.md)
- - [NewUser](docs/NewUser.md)
- - [NewWebhook](docs/NewWebhook.md)
- - [Notification](docs/Notification.md)
- - [NotificationActivation](docs/NotificationActivation.md)
- - [NotificationListItem](docs/NotificationListItem.md)
- - [NotificationTest](docs/NotificationTest.md)
- - [OktaEvent](docs/OktaEvent.md)
- - [OktaEventPayload](docs/OktaEventPayload.md)
- - [OktaEventPayloadData](docs/OktaEventPayloadData.md)
- - [OktaEventTarget](docs/OktaEventTarget.md)
- - [OneTimeCode](docs/OneTimeCode.md)
- - [OutgoingIntegrationBrazePolicy](docs/OutgoingIntegrationBrazePolicy.md)
- - [OutgoingIntegrationCleverTapPolicy](docs/OutgoingIntegrationCleverTapPolicy.md)
- - [OutgoingIntegrationConfiguration](docs/OutgoingIntegrationConfiguration.md)
- - [OutgoingIntegrationIterablePolicy](docs/OutgoingIntegrationIterablePolicy.md)
- - [OutgoingIntegrationMoEngagePolicy](docs/OutgoingIntegrationMoEngagePolicy.md)
- - [OutgoingIntegrationTemplate](docs/OutgoingIntegrationTemplate.md)
- - [OutgoingIntegrationTemplateWithConfigurationDetails](docs/OutgoingIntegrationTemplateWithConfigurationDetails.md)
- - [OutgoingIntegrationTemplates](docs/OutgoingIntegrationTemplates.md)
- - [OutgoingIntegrationType](docs/OutgoingIntegrationType.md)
- - [OutgoingIntegrationTypes](docs/OutgoingIntegrationTypes.md)
- - [PatchItemCatalogAction](docs/PatchItemCatalogAction.md)
- - [PatchManyItemsCatalogAction](docs/PatchManyItemsCatalogAction.md)
- - [PendingPointsNotificationPolicy](docs/PendingPointsNotificationPolicy.md)
- - [Picklist](docs/Picklist.md)
- - [Product](docs/Product.md)
- - [ProfileAudiencesChanges](docs/ProfileAudiencesChanges.md)
- - [ProjectedTier](docs/ProjectedTier.md)
- - [RedeemReferralEffectProps](docs/RedeemReferralEffectProps.md)
- - [Referral](docs/Referral.md)
- - [ReferralConstraints](docs/ReferralConstraints.md)
- - [ReferralCreatedEffectProps](docs/ReferralCreatedEffectProps.md)
- - [ReferralRejectionReason](docs/ReferralRejectionReason.md)
- - [RejectCouponEffectProps](docs/RejectCouponEffectProps.md)
- - [RejectReferralEffectProps](docs/RejectReferralEffectProps.md)
- - [RemoveFromAudienceEffectProps](docs/RemoveFromAudienceEffectProps.md)
- - [RemoveItemCatalogAction](docs/RemoveItemCatalogAction.md)
- - [RemoveManyItemsCatalogAction](docs/RemoveManyItemsCatalogAction.md)
- - [ReopenSessionResponse](docs/ReopenSessionResponse.md)
- - [ReserveCouponEffectProps](docs/ReserveCouponEffectProps.md)
- - [ReturnIntegrationRequest](docs/ReturnIntegrationRequest.md)
- - [ReturnedCartItem](docs/ReturnedCartItem.md)
- - [Revision](docs/Revision.md)
- - [RevisionActivation](docs/RevisionActivation.md)
- - [RevisionVersion](docs/RevisionVersion.md)
- - [Role](docs/Role.md)
- - [RoleAssign](docs/RoleAssign.md)
- - [RoleMembership](docs/RoleMembership.md)
- - [RoleV2](docs/RoleV2.md)
- - [RoleV2ApplicationDetails](docs/RoleV2ApplicationDetails.md)
- - [RoleV2Base](docs/RoleV2Base.md)
- - [RoleV2PermissionSet](docs/RoleV2PermissionSet.md)
- - [RoleV2Permissions](docs/RoleV2Permissions.md)
- - [RoleV2RolesGroup](docs/RoleV2RolesGroup.md)
- - [RollbackAddedLoyaltyPointsEffectProps](docs/RollbackAddedLoyaltyPointsEffectProps.md)
- - [RollbackCouponEffectProps](docs/RollbackCouponEffectProps.md)
- - [RollbackDeductedLoyaltyPointsEffectProps](docs/RollbackDeductedLoyaltyPointsEffectProps.md)
- - [RollbackDiscountEffectProps](docs/RollbackDiscountEffectProps.md)
- - [RollbackIncreasedAchievementProgressEffectProps](docs/RollbackIncreasedAchievementProgressEffectProps.md)
- - [RollbackReferralEffectProps](docs/RollbackReferralEffectProps.md)
- - [Rule](docs/Rule.md)
- - [RuleFailureReason](docs/RuleFailureReason.md)
- - [Ruleset](docs/Ruleset.md)
- - [SSOConfig](docs/SSOConfig.md)
- - [SamlConnection](docs/SamlConnection.md)
- - [SamlConnectionInternal](docs/SamlConnectionInternal.md)
- - [SamlConnectionMetadata](docs/SamlConnectionMetadata.md)
- - [SamlLoginEndpoint](docs/SamlLoginEndpoint.md)
- - [ScimBaseUser](docs/ScimBaseUser.md)
- - [ScimBaseUserName](docs/ScimBaseUserName.md)
- - [ScimNewUser](docs/ScimNewUser.md)
- - [ScimPatchOperation](docs/ScimPatchOperation.md)
- - [ScimPatchRequest](docs/ScimPatchRequest.md)
- - [ScimResource](docs/ScimResource.md)
- - [ScimResourceTypesListResponse](docs/ScimResourceTypesListResponse.md)
- - [ScimSchemaResource](docs/ScimSchemaResource.md)
- - [ScimSchemasListResponse](docs/ScimSchemasListResponse.md)
- - [ScimServiceProviderConfigResponse](docs/ScimServiceProviderConfigResponse.md)
- - [ScimServiceProviderConfigResponseBulk](docs/ScimServiceProviderConfigResponseBulk.md)
- - [ScimServiceProviderConfigResponseChangePassword](docs/ScimServiceProviderConfigResponseChangePassword.md)
- - [ScimServiceProviderConfigResponseFilter](docs/ScimServiceProviderConfigResponseFilter.md)
- - [ScimServiceProviderConfigResponsePatch](docs/ScimServiceProviderConfigResponsePatch.md)
- - [ScimServiceProviderConfigResponseSort](docs/ScimServiceProviderConfigResponseSort.md)
- - [ScimUser](docs/ScimUser.md)
- - [ScimUsersListResponse](docs/ScimUsersListResponse.md)
- - [Session](docs/Session.md)
- - [SetDiscountEffectProps](docs/SetDiscountEffectProps.md)
- - [SetDiscountPerAdditionalCostEffectProps](docs/SetDiscountPerAdditionalCostEffectProps.md)
- - [SetDiscountPerAdditionalCostPerItemEffectProps](docs/SetDiscountPerAdditionalCostPerItemEffectProps.md)
- - [SetDiscountPerItemEffectProps](docs/SetDiscountPerItemEffectProps.md)
- - [ShowBundleMetadataEffectProps](docs/ShowBundleMetadataEffectProps.md)
- - [ShowNotificationEffectProps](docs/ShowNotificationEffectProps.md)
- - [SlotDef](docs/SlotDef.md)
- - [Store](docs/Store.md)
- - [StrikethroughChangedItem](docs/StrikethroughChangedItem.md)
- - [StrikethroughCustomEffectPerItemProps](docs/StrikethroughCustomEffectPerItemProps.md)
- - [StrikethroughEffect](docs/StrikethroughEffect.md)
- - [StrikethroughLabelingNotification](docs/StrikethroughLabelingNotification.md)
- - [StrikethroughSetDiscountPerItemEffectProps](docs/StrikethroughSetDiscountPerItemEffectProps.md)
- - [StrikethroughTrigger](docs/StrikethroughTrigger.md)
- - [SummaryCampaignStoreBudget](docs/SummaryCampaignStoreBudget.md)
- - [TalangAttribute](docs/TalangAttribute.md)
- - [TalangAttributeVisibility](docs/TalangAttributeVisibility.md)
- - [TemplateArgDef](docs/TemplateArgDef.md)
- - [TemplateDef](docs/TemplateDef.md)
- - [TemplateLimitConfig](docs/TemplateLimitConfig.md)
- - [Tier](docs/Tier.md)
- - [TierDowngradeNotificationPolicy](docs/TierDowngradeNotificationPolicy.md)
- - [TierUpgradeNotificationPolicy](docs/TierUpgradeNotificationPolicy.md)
- - [TierWillDowngradeNotificationPolicy](docs/TierWillDowngradeNotificationPolicy.md)
- - [TierWillDowngradeNotificationTrigger](docs/TierWillDowngradeNotificationTrigger.md)
- - [TimePoint](docs/TimePoint.md)
- - [TrackEventV2Response](docs/TrackEventV2Response.md)
- - [TransferLoyaltyCard](docs/TransferLoyaltyCard.md)
- - [TriggerWebhookEffectProps](docs/TriggerWebhookEffectProps.md)
- - [TwoFAConfig](docs/TwoFAConfig.md)
- - [UpdateAccount](docs/UpdateAccount.md)
- - [UpdateAchievement](docs/UpdateAchievement.md)
- - [UpdateApplication](docs/UpdateApplication.md)
- - [UpdateApplicationAPIKey](docs/UpdateApplicationAPIKey.md)
- - [UpdateApplicationCIF](docs/UpdateApplicationCIF.md)
- - [UpdateAttributeEffectProps](docs/UpdateAttributeEffectProps.md)
- - [UpdateAudience](docs/UpdateAudience.md)
- - [UpdateCampaign](docs/UpdateCampaign.md)
- - [UpdateCampaignCollection](docs/UpdateCampaignCollection.md)
- - [UpdateCampaignEvaluationGroup](docs/UpdateCampaignEvaluationGroup.md)
- - [UpdateCampaignGroup](docs/UpdateCampaignGroup.md)
- - [UpdateCampaignTemplate](docs/UpdateCampaignTemplate.md)
- - [UpdateCatalog](docs/UpdateCatalog.md)
- - [UpdateCollection](docs/UpdateCollection.md)
- - [UpdateCoupon](docs/UpdateCoupon.md)
- - [UpdateCouponBatch](docs/UpdateCouponBatch.md)
- - [UpdateLoyaltyCard](docs/UpdateLoyaltyCard.md)
- - [UpdateLoyaltyProgram](docs/UpdateLoyaltyProgram.md)
- - [UpdateLoyaltyProgramTier](docs/UpdateLoyaltyProgramTier.md)
- - [UpdatePicklist](docs/UpdatePicklist.md)
- - [UpdateReferral](docs/UpdateReferral.md)
- - [UpdateReferralBatch](docs/UpdateReferralBatch.md)
- - [UpdateRole](docs/UpdateRole.md)
- - [UpdateStore](docs/UpdateStore.md)
- - [UpdateUser](docs/UpdateUser.md)
- - [User](docs/User.md)
- - [UserEntity](docs/UserEntity.md)
- - [Webhook](docs/Webhook.md)
- - [WebhookActivationLogEntry](docs/WebhookActivationLogEntry.md)
- - [WebhookLogEntry](docs/WebhookLogEntry.md)
- - [WebhookWithOutgoingIntegrationDetails](docs/WebhookWithOutgoingIntegrationDetails.md)
- - [WillAwardGiveawayEffectProps](docs/WillAwardGiveawayEffectProps.md)
-
-
-## Documentation for Authorization
+## Documentation for models
+
+- [APIError](docs/APIError.md)
+- [AcceptCouponEffectProps](docs/AcceptCouponEffectProps.md)
+- [AcceptReferralEffectProps](docs/AcceptReferralEffectProps.md)
+- [AccessLogEntry](docs/AccessLogEntry.md)
+- [Account](docs/Account.md)
+- [AccountAdditionalCost](docs/AccountAdditionalCost.md)
+- [AccountAnalytics](docs/AccountAnalytics.md)
+- [AccountDashboardStatistic](docs/AccountDashboardStatistic.md)
+- [AccountDashboardStatisticCampaigns](docs/AccountDashboardStatisticCampaigns.md)
+- [AccountDashboardStatisticDiscount](docs/AccountDashboardStatisticDiscount.md)
+- [AccountDashboardStatisticLoyaltyPoints](docs/AccountDashboardStatisticLoyaltyPoints.md)
+- [AccountDashboardStatisticReferrals](docs/AccountDashboardStatisticReferrals.md)
+- [AccountDashboardStatisticRevenue](docs/AccountDashboardStatisticRevenue.md)
+- [AccountEntity](docs/AccountEntity.md)
+- [AccountLimits](docs/AccountLimits.md)
+- [Achievement](docs/Achievement.md)
+- [AchievementAdditionalProperties](docs/AchievementAdditionalProperties.md)
+- [AchievementProgress](docs/AchievementProgress.md)
+- [AddFreeItemEffectProps](docs/AddFreeItemEffectProps.md)
+- [AddItemCatalogAction](docs/AddItemCatalogAction.md)
+- [AddLoyaltyPoints](docs/AddLoyaltyPoints.md)
+- [AddLoyaltyPointsEffectProps](docs/AddLoyaltyPointsEffectProps.md)
+- [AddToAudienceEffectProps](docs/AddToAudienceEffectProps.md)
+- [AddedDeductedPointsNotificationPolicy](docs/AddedDeductedPointsNotificationPolicy.md)
+- [AdditionalCampaignProperties](docs/AdditionalCampaignProperties.md)
+- [AdditionalCost](docs/AdditionalCost.md)
+- [AnalyticsDataPoint](docs/AnalyticsDataPoint.md)
+- [AnalyticsDataPointWithTrend](docs/AnalyticsDataPointWithTrend.md)
+- [AnalyticsDataPointWithTrendAndInfluencedRate](docs/AnalyticsDataPointWithTrendAndInfluencedRate.md)
+- [AnalyticsDataPointWithTrendAndUplift](docs/AnalyticsDataPointWithTrendAndUplift.md)
+- [AnalyticsProduct](docs/AnalyticsProduct.md)
+- [AnalyticsProductSKU](docs/AnalyticsProductSKU.md)
+- [Application](docs/Application.md)
+- [ApplicationAPIKey](docs/ApplicationAPIKey.md)
+- [ApplicationAnalyticsDataPoint](docs/ApplicationAnalyticsDataPoint.md)
+- [ApplicationApiHealth](docs/ApplicationApiHealth.md)
+- [ApplicationCIF](docs/ApplicationCIF.md)
+- [ApplicationCIFExpression](docs/ApplicationCIFExpression.md)
+- [ApplicationCampaignAnalytics](docs/ApplicationCampaignAnalytics.md)
+- [ApplicationCampaignStats](docs/ApplicationCampaignStats.md)
+- [ApplicationCustomer](docs/ApplicationCustomer.md)
+- [ApplicationCustomerEntity](docs/ApplicationCustomerEntity.md)
+- [ApplicationEntity](docs/ApplicationEntity.md)
+- [ApplicationEvent](docs/ApplicationEvent.md)
+- [ApplicationNotification](docs/ApplicationNotification.md)
+- [ApplicationReferee](docs/ApplicationReferee.md)
+- [ApplicationSession](docs/ApplicationSession.md)
+- [ApplicationSessionEntity](docs/ApplicationSessionEntity.md)
+- [ApplicationStoreEntity](docs/ApplicationStoreEntity.md)
+- [AsyncCouponCreationResponse](docs/AsyncCouponCreationResponse.md)
+- [AsyncCouponDeletionJobResponse](docs/AsyncCouponDeletionJobResponse.md)
+- [Attribute](docs/Attribute.md)
+- [AttributesMandatory](docs/AttributesMandatory.md)
+- [AttributesSettings](docs/AttributesSettings.md)
+- [Audience](docs/Audience.md)
+- [AudienceAnalytics](docs/AudienceAnalytics.md)
+- [AudienceCustomer](docs/AudienceCustomer.md)
+- [AudienceIntegrationID](docs/AudienceIntegrationID.md)
+- [AudienceMembership](docs/AudienceMembership.md)
+- [AwardGiveawayEffectProps](docs/AwardGiveawayEffectProps.md)
+- [BaseCampaign](docs/BaseCampaign.md)
+- [BaseLoyaltyProgram](docs/BaseLoyaltyProgram.md)
+- [BaseNotification](docs/BaseNotification.md)
+- [BaseNotificationEntity](docs/BaseNotificationEntity.md)
+- [BaseNotificationWebhook](docs/BaseNotificationWebhook.md)
+- [BaseNotifications](docs/BaseNotifications.md)
+- [BaseSamlConnection](docs/BaseSamlConnection.md)
+- [Binding](docs/Binding.md)
+- [BulkApplicationNotification](docs/BulkApplicationNotification.md)
+- [BulkCampaignNotification](docs/BulkCampaignNotification.md)
+- [BulkOperationOnCampaigns](docs/BulkOperationOnCampaigns.md)
+- [Campaign](docs/Campaign.md)
+- [CampaignActivationRequest](docs/CampaignActivationRequest.md)
+- [CampaignAnalytics](docs/CampaignAnalytics.md)
+- [CampaignBudget](docs/CampaignBudget.md)
+- [CampaignCollection](docs/CampaignCollection.md)
+- [CampaignCollectionEditedNotification](docs/CampaignCollectionEditedNotification.md)
+- [CampaignCollectionWithoutPayload](docs/CampaignCollectionWithoutPayload.md)
+- [CampaignCopy](docs/CampaignCopy.md)
+- [CampaignCreatedNotification](docs/CampaignCreatedNotification.md)
+- [CampaignDeletedNotification](docs/CampaignDeletedNotification.md)
+- [CampaignEditedNotification](docs/CampaignEditedNotification.md)
+- [CampaignEntity](docs/CampaignEntity.md)
+- [CampaignEvaluationGroup](docs/CampaignEvaluationGroup.md)
+- [CampaignEvaluationPosition](docs/CampaignEvaluationPosition.md)
+- [CampaignEvaluationTreeChangedNotification](docs/CampaignEvaluationTreeChangedNotification.md)
+- [CampaignGroup](docs/CampaignGroup.md)
+- [CampaignGroupEntity](docs/CampaignGroupEntity.md)
+- [CampaignNotification](docs/CampaignNotification.md)
+- [CampaignNotificationPolicy](docs/CampaignNotificationPolicy.md)
+- [CampaignRulesetChangedNotification](docs/CampaignRulesetChangedNotification.md)
+- [CampaignSearch](docs/CampaignSearch.md)
+- [CampaignSet](docs/CampaignSet.md)
+- [CampaignSetBranchNode](docs/CampaignSetBranchNode.md)
+- [CampaignSetLeafNode](docs/CampaignSetLeafNode.md)
+- [CampaignSetNode](docs/CampaignSetNode.md)
+- [CampaignStateChangedNotification](docs/CampaignStateChangedNotification.md)
+- [CampaignStoreBudget](docs/CampaignStoreBudget.md)
+- [CampaignTemplate](docs/CampaignTemplate.md)
+- [CampaignTemplateCollection](docs/CampaignTemplateCollection.md)
+- [CampaignTemplateCouponReservationSettings](docs/CampaignTemplateCouponReservationSettings.md)
+- [CampaignTemplateParams](docs/CampaignTemplateParams.md)
+- [CampaignVersions](docs/CampaignVersions.md)
+- [CardAddedDeductedPointsNotificationPolicy](docs/CardAddedDeductedPointsNotificationPolicy.md)
+- [CardExpiringPointsNotificationPolicy](docs/CardExpiringPointsNotificationPolicy.md)
+- [CardExpiringPointsNotificationTrigger](docs/CardExpiringPointsNotificationTrigger.md)
+- [CardLedgerPointsEntryIntegrationAPI](docs/CardLedgerPointsEntryIntegrationAPI.md)
+- [CardLedgerTransactionLogEntry](docs/CardLedgerTransactionLogEntry.md)
+- [CardLedgerTransactionLogEntryIntegrationAPI](docs/CardLedgerTransactionLogEntryIntegrationAPI.md)
+- [CartItem](docs/CartItem.md)
+- [Catalog](docs/Catalog.md)
+- [CatalogAction](docs/CatalogAction.md)
+- [CatalogActionFilter](docs/CatalogActionFilter.md)
+- [CatalogItem](docs/CatalogItem.md)
+- [CatalogSyncRequest](docs/CatalogSyncRequest.md)
+- [CatalogsStrikethroughNotificationPolicy](docs/CatalogsStrikethroughNotificationPolicy.md)
+- [Change](docs/Change.md)
+- [ChangeLoyaltyTierLevelEffectProps](docs/ChangeLoyaltyTierLevelEffectProps.md)
+- [ChangeProfilePassword](docs/ChangeProfilePassword.md)
+- [CodeGeneratorSettings](docs/CodeGeneratorSettings.md)
+- [Collection](docs/Collection.md)
+- [CollectionItem](docs/CollectionItem.md)
+- [CollectionWithoutPayload](docs/CollectionWithoutPayload.md)
+- [Coupon](docs/Coupon.md)
+- [CouponConstraints](docs/CouponConstraints.md)
+- [CouponCreatedEffectProps](docs/CouponCreatedEffectProps.md)
+- [CouponCreationJob](docs/CouponCreationJob.md)
+- [CouponDeletionFilters](docs/CouponDeletionFilters.md)
+- [CouponDeletionJob](docs/CouponDeletionJob.md)
+- [CouponLimitConfigs](docs/CouponLimitConfigs.md)
+- [CouponRejectionReason](docs/CouponRejectionReason.md)
+- [CouponReservations](docs/CouponReservations.md)
+- [CouponSearch](docs/CouponSearch.md)
+- [CouponValue](docs/CouponValue.md)
+- [CouponsNotificationPolicy](docs/CouponsNotificationPolicy.md)
+- [CreateAchievement](docs/CreateAchievement.md)
+- [CreateApplicationAPIKey](docs/CreateApplicationAPIKey.md)
+- [CreateManagementKey](docs/CreateManagementKey.md)
+- [CreateTemplateCampaign](docs/CreateTemplateCampaign.md)
+- [CreateTemplateCampaignResponse](docs/CreateTemplateCampaignResponse.md)
+- [CustomEffect](docs/CustomEffect.md)
+- [CustomEffectProps](docs/CustomEffectProps.md)
+- [CustomerActivityReport](docs/CustomerActivityReport.md)
+- [CustomerAnalytics](docs/CustomerAnalytics.md)
+- [CustomerInventory](docs/CustomerInventory.md)
+- [CustomerProfile](docs/CustomerProfile.md)
+- [CustomerProfileAudienceRequest](docs/CustomerProfileAudienceRequest.md)
+- [CustomerProfileAudienceRequestItem](docs/CustomerProfileAudienceRequestItem.md)
+- [CustomerProfileIntegrationRequestV2](docs/CustomerProfileIntegrationRequestV2.md)
+- [CustomerProfileIntegrationResponseV2](docs/CustomerProfileIntegrationResponseV2.md)
+- [CustomerProfileSearchQuery](docs/CustomerProfileSearchQuery.md)
+- [CustomerProfileUpdateV2Response](docs/CustomerProfileUpdateV2Response.md)
+- [CustomerSession](docs/CustomerSession.md)
+- [CustomerSessionV2](docs/CustomerSessionV2.md)
+- [DeactivateUserRequest](docs/DeactivateUserRequest.md)
+- [DeductLoyaltyPoints](docs/DeductLoyaltyPoints.md)
+- [DeductLoyaltyPointsEffectProps](docs/DeductLoyaltyPointsEffectProps.md)
+- [Effect](docs/Effect.md)
+- [EffectEntity](docs/EffectEntity.md)
+- [EmailEntity](docs/EmailEntity.md)
+- [Endpoint](docs/Endpoint.md)
+- [Entity](docs/Entity.md)
+- [EntityWithTalangVisibleID](docs/EntityWithTalangVisibleID.md)
+- [Environment](docs/Environment.md)
+- [ErrorEffectProps](docs/ErrorEffectProps.md)
+- [ErrorResponse](docs/ErrorResponse.md)
+- [ErrorResponseWithStatus](docs/ErrorResponseWithStatus.md)
+- [ErrorSource](docs/ErrorSource.md)
+- [EvaluableCampaignIds](docs/EvaluableCampaignIds.md)
+- [Event](docs/Event.md)
+- [EventType](docs/EventType.md)
+- [EventV2](docs/EventV2.md)
+- [ExpiringCouponsNotificationPolicy](docs/ExpiringCouponsNotificationPolicy.md)
+- [ExpiringCouponsNotificationTrigger](docs/ExpiringCouponsNotificationTrigger.md)
+- [ExpiringPointsNotificationPolicy](docs/ExpiringPointsNotificationPolicy.md)
+- [ExpiringPointsNotificationTrigger](docs/ExpiringPointsNotificationTrigger.md)
+- [Export](docs/Export.md)
+- [FeatureFlag](docs/FeatureFlag.md)
+- [FeaturesFeed](docs/FeaturesFeed.md)
+- [FuncArgDef](docs/FuncArgDef.md)
+- [FunctionDef](docs/FunctionDef.md)
+- [GenerateCampaignDescription](docs/GenerateCampaignDescription.md)
+- [GenerateCampaignTags](docs/GenerateCampaignTags.md)
+- [GenerateItemFilterDescription](docs/GenerateItemFilterDescription.md)
+- [GenerateLoyaltyCard](docs/GenerateLoyaltyCard.md)
+- [GenerateRuleTitle](docs/GenerateRuleTitle.md)
+- [GenerateRuleTitleRule](docs/GenerateRuleTitleRule.md)
+- [GetIntegrationCouponRequest](docs/GetIntegrationCouponRequest.md)
+- [Giveaway](docs/Giveaway.md)
+- [GiveawaysPool](docs/GiveawaysPool.md)
+- [IdentifiableEntity](docs/IdentifiableEntity.md)
+- [ImportEntity](docs/ImportEntity.md)
+- [IncreaseAchievementProgressEffectProps](docs/IncreaseAchievementProgressEffectProps.md)
+- [InlineResponse200](docs/InlineResponse200.md)
+- [InlineResponse2001](docs/InlineResponse2001.md)
+- [InlineResponse20010](docs/InlineResponse20010.md)
+- [InlineResponse20011](docs/InlineResponse20011.md)
+- [InlineResponse20012](docs/InlineResponse20012.md)
+- [InlineResponse20013](docs/InlineResponse20013.md)
+- [InlineResponse20014](docs/InlineResponse20014.md)
+- [InlineResponse20015](docs/InlineResponse20015.md)
+- [InlineResponse20016](docs/InlineResponse20016.md)
+- [InlineResponse20017](docs/InlineResponse20017.md)
+- [InlineResponse20018](docs/InlineResponse20018.md)
+- [InlineResponse20019](docs/InlineResponse20019.md)
+- [InlineResponse2002](docs/InlineResponse2002.md)
+- [InlineResponse20020](docs/InlineResponse20020.md)
+- [InlineResponse20021](docs/InlineResponse20021.md)
+- [InlineResponse20022](docs/InlineResponse20022.md)
+- [InlineResponse20023](docs/InlineResponse20023.md)
+- [InlineResponse20024](docs/InlineResponse20024.md)
+- [InlineResponse20025](docs/InlineResponse20025.md)
+- [InlineResponse20026](docs/InlineResponse20026.md)
+- [InlineResponse20027](docs/InlineResponse20027.md)
+- [InlineResponse20028](docs/InlineResponse20028.md)
+- [InlineResponse20029](docs/InlineResponse20029.md)
+- [InlineResponse2003](docs/InlineResponse2003.md)
+- [InlineResponse20030](docs/InlineResponse20030.md)
+- [InlineResponse20031](docs/InlineResponse20031.md)
+- [InlineResponse20032](docs/InlineResponse20032.md)
+- [InlineResponse20033](docs/InlineResponse20033.md)
+- [InlineResponse20034](docs/InlineResponse20034.md)
+- [InlineResponse20035](docs/InlineResponse20035.md)
+- [InlineResponse20036](docs/InlineResponse20036.md)
+- [InlineResponse20037](docs/InlineResponse20037.md)
+- [InlineResponse20038](docs/InlineResponse20038.md)
+- [InlineResponse20039](docs/InlineResponse20039.md)
+- [InlineResponse2004](docs/InlineResponse2004.md)
+- [InlineResponse20040](docs/InlineResponse20040.md)
+- [InlineResponse20041](docs/InlineResponse20041.md)
+- [InlineResponse20042](docs/InlineResponse20042.md)
+- [InlineResponse20043](docs/InlineResponse20043.md)
+- [InlineResponse20044](docs/InlineResponse20044.md)
+- [InlineResponse20045](docs/InlineResponse20045.md)
+- [InlineResponse20046](docs/InlineResponse20046.md)
+- [InlineResponse2005](docs/InlineResponse2005.md)
+- [InlineResponse2006](docs/InlineResponse2006.md)
+- [InlineResponse2007](docs/InlineResponse2007.md)
+- [InlineResponse2008](docs/InlineResponse2008.md)
+- [InlineResponse2009](docs/InlineResponse2009.md)
+- [InlineResponse201](docs/InlineResponse201.md)
+- [IntegrationCoupon](docs/IntegrationCoupon.md)
+- [IntegrationCustomerSessionResponse](docs/IntegrationCustomerSessionResponse.md)
+- [IntegrationEntity](docs/IntegrationEntity.md)
+- [IntegrationEvent](docs/IntegrationEvent.md)
+- [IntegrationEventV2Request](docs/IntegrationEventV2Request.md)
+- [IntegrationProfileEntity](docs/IntegrationProfileEntity.md)
+- [IntegrationRequest](docs/IntegrationRequest.md)
+- [IntegrationState](docs/IntegrationState.md)
+- [IntegrationStateV2](docs/IntegrationStateV2.md)
+- [IntegrationStoreEntity](docs/IntegrationStoreEntity.md)
+- [InventoryCoupon](docs/InventoryCoupon.md)
+- [InventoryReferral](docs/InventoryReferral.md)
+- [ItemAttribute](docs/ItemAttribute.md)
+- [LedgerEntry](docs/LedgerEntry.md)
+- [LedgerInfo](docs/LedgerInfo.md)
+- [LedgerPointsEntryIntegrationAPI](docs/LedgerPointsEntryIntegrationAPI.md)
+- [LedgerTransactionLogEntryIntegrationAPI](docs/LedgerTransactionLogEntryIntegrationAPI.md)
+- [LibraryAttribute](docs/LibraryAttribute.md)
+- [LimitConfig](docs/LimitConfig.md)
+- [LimitCounter](docs/LimitCounter.md)
+- [ListCampaignStoreBudgets](docs/ListCampaignStoreBudgets.md)
+- [ListCampaignStoreBudgetsStore](docs/ListCampaignStoreBudgetsStore.md)
+- [LoginParams](docs/LoginParams.md)
+- [Loyalty](docs/Loyalty.md)
+- [LoyaltyBalance](docs/LoyaltyBalance.md)
+- [LoyaltyBalanceWithTier](docs/LoyaltyBalanceWithTier.md)
+- [LoyaltyBalances](docs/LoyaltyBalances.md)
+- [LoyaltyBalancesWithTiers](docs/LoyaltyBalancesWithTiers.md)
+- [LoyaltyCard](docs/LoyaltyCard.md)
+- [LoyaltyCardBalances](docs/LoyaltyCardBalances.md)
+- [LoyaltyCardBatch](docs/LoyaltyCardBatch.md)
+- [LoyaltyCardBatchResponse](docs/LoyaltyCardBatchResponse.md)
+- [LoyaltyCardProfileRegistration](docs/LoyaltyCardProfileRegistration.md)
+- [LoyaltyCardRegistration](docs/LoyaltyCardRegistration.md)
+- [LoyaltyDashboardData](docs/LoyaltyDashboardData.md)
+- [LoyaltyDashboardPointsBreakdown](docs/LoyaltyDashboardPointsBreakdown.md)
+- [LoyaltyLedger](docs/LoyaltyLedger.md)
+- [LoyaltyLedgerEntry](docs/LoyaltyLedgerEntry.md)
+- [LoyaltyLedgerTransactions](docs/LoyaltyLedgerTransactions.md)
+- [LoyaltyMembership](docs/LoyaltyMembership.md)
+- [LoyaltyProgram](docs/LoyaltyProgram.md)
+- [LoyaltyProgramBalance](docs/LoyaltyProgramBalance.md)
+- [LoyaltyProgramEntity](docs/LoyaltyProgramEntity.md)
+- [LoyaltyProgramLedgers](docs/LoyaltyProgramLedgers.md)
+- [LoyaltyProgramTransaction](docs/LoyaltyProgramTransaction.md)
+- [LoyaltySubLedger](docs/LoyaltySubLedger.md)
+- [LoyaltyTier](docs/LoyaltyTier.md)
+- [ManagementKey](docs/ManagementKey.md)
+- [ManagerConfig](docs/ManagerConfig.md)
+- [MessageLogEntries](docs/MessageLogEntries.md)
+- [MessageLogEntry](docs/MessageLogEntry.md)
+- [MessageLogRequest](docs/MessageLogRequest.md)
+- [MessageLogResponse](docs/MessageLogResponse.md)
+- [Meta](docs/Meta.md)
+- [ModelImport](docs/ModelImport.md)
+- [ModelReturn](docs/ModelReturn.md)
+- [MultiApplicationEntity](docs/MultiApplicationEntity.md)
+- [MultipleAttribute](docs/MultipleAttribute.md)
+- [MultipleAudiences](docs/MultipleAudiences.md)
+- [MultipleAudiencesItem](docs/MultipleAudiencesItem.md)
+- [MultipleCustomerProfileIntegrationRequest](docs/MultipleCustomerProfileIntegrationRequest.md)
+- [MultipleCustomerProfileIntegrationRequestItem](docs/MultipleCustomerProfileIntegrationRequestItem.md)
+- [MultipleCustomerProfileIntegrationResponseV2](docs/MultipleCustomerProfileIntegrationResponseV2.md)
+- [MultipleNewAttribute](docs/MultipleNewAttribute.md)
+- [MultipleNewAudiences](docs/MultipleNewAudiences.md)
+- [MutableEntity](docs/MutableEntity.md)
+- [NewAccount](docs/NewAccount.md)
+- [NewAccountSignUp](docs/NewAccountSignUp.md)
+- [NewAdditionalCost](docs/NewAdditionalCost.md)
+- [NewAppWideCouponDeletionJob](docs/NewAppWideCouponDeletionJob.md)
+- [NewApplication](docs/NewApplication.md)
+- [NewApplicationAPIKey](docs/NewApplicationAPIKey.md)
+- [NewApplicationCIF](docs/NewApplicationCIF.md)
+- [NewApplicationCIFExpression](docs/NewApplicationCIFExpression.md)
+- [NewAttribute](docs/NewAttribute.md)
+- [NewAudience](docs/NewAudience.md)
+- [NewBaseNotification](docs/NewBaseNotification.md)
+- [NewCampaign](docs/NewCampaign.md)
+- [NewCampaignCollection](docs/NewCampaignCollection.md)
+- [NewCampaignEvaluationGroup](docs/NewCampaignEvaluationGroup.md)
+- [NewCampaignGroup](docs/NewCampaignGroup.md)
+- [NewCampaignSet](docs/NewCampaignSet.md)
+- [NewCampaignStoreBudget](docs/NewCampaignStoreBudget.md)
+- [NewCampaignStoreBudgetStoreLimit](docs/NewCampaignStoreBudgetStoreLimit.md)
+- [NewCampaignTemplate](docs/NewCampaignTemplate.md)
+- [NewCatalog](docs/NewCatalog.md)
+- [NewCollection](docs/NewCollection.md)
+- [NewCouponCreationJob](docs/NewCouponCreationJob.md)
+- [NewCouponDeletionJob](docs/NewCouponDeletionJob.md)
+- [NewCoupons](docs/NewCoupons.md)
+- [NewCouponsForMultipleRecipients](docs/NewCouponsForMultipleRecipients.md)
+- [NewCustomEffect](docs/NewCustomEffect.md)
+- [NewCustomerProfile](docs/NewCustomerProfile.md)
+- [NewCustomerSession](docs/NewCustomerSession.md)
+- [NewCustomerSessionV2](docs/NewCustomerSessionV2.md)
+- [NewEvent](docs/NewEvent.md)
+- [NewEventType](docs/NewEventType.md)
+- [NewExternalInvitation](docs/NewExternalInvitation.md)
+- [NewGiveawaysPool](docs/NewGiveawaysPool.md)
+- [NewInternalAudience](docs/NewInternalAudience.md)
+- [NewInvitation](docs/NewInvitation.md)
+- [NewInviteEmail](docs/NewInviteEmail.md)
+- [NewLoyaltyProgram](docs/NewLoyaltyProgram.md)
+- [NewLoyaltyTier](docs/NewLoyaltyTier.md)
+- [NewManagementKey](docs/NewManagementKey.md)
+- [NewMultipleAudiencesItem](docs/NewMultipleAudiencesItem.md)
+- [NewNotificationTest](docs/NewNotificationTest.md)
+- [NewNotificationWebhook](docs/NewNotificationWebhook.md)
+- [NewOutgoingIntegrationWebhook](docs/NewOutgoingIntegrationWebhook.md)
+- [NewPassword](docs/NewPassword.md)
+- [NewPasswordEmail](docs/NewPasswordEmail.md)
+- [NewPicklist](docs/NewPicklist.md)
+- [NewReferral](docs/NewReferral.md)
+- [NewReferralsForMultipleAdvocates](docs/NewReferralsForMultipleAdvocates.md)
+- [NewReturn](docs/NewReturn.md)
+- [NewRevisionVersion](docs/NewRevisionVersion.md)
+- [NewRole](docs/NewRole.md)
+- [NewRoleV2](docs/NewRoleV2.md)
+- [NewRuleset](docs/NewRuleset.md)
+- [NewSamlConnection](docs/NewSamlConnection.md)
+- [NewStore](docs/NewStore.md)
+- [NewTemplateDef](docs/NewTemplateDef.md)
+- [NewUser](docs/NewUser.md)
+- [NewWebhook](docs/NewWebhook.md)
+- [Notification](docs/Notification.md)
+- [NotificationActivation](docs/NotificationActivation.md)
+- [NotificationListItem](docs/NotificationListItem.md)
+- [NotificationTest](docs/NotificationTest.md)
+- [OktaEvent](docs/OktaEvent.md)
+- [OktaEventPayload](docs/OktaEventPayload.md)
+- [OktaEventPayloadData](docs/OktaEventPayloadData.md)
+- [OktaEventTarget](docs/OktaEventTarget.md)
+- [OneTimeCode](docs/OneTimeCode.md)
+- [OutgoingIntegrationBrazePolicy](docs/OutgoingIntegrationBrazePolicy.md)
+- [OutgoingIntegrationCleverTapPolicy](docs/OutgoingIntegrationCleverTapPolicy.md)
+- [OutgoingIntegrationConfiguration](docs/OutgoingIntegrationConfiguration.md)
+- [OutgoingIntegrationIterablePolicy](docs/OutgoingIntegrationIterablePolicy.md)
+- [OutgoingIntegrationMoEngagePolicy](docs/OutgoingIntegrationMoEngagePolicy.md)
+- [OutgoingIntegrationTemplate](docs/OutgoingIntegrationTemplate.md)
+- [OutgoingIntegrationTemplateWithConfigurationDetails](docs/OutgoingIntegrationTemplateWithConfigurationDetails.md)
+- [OutgoingIntegrationTemplates](docs/OutgoingIntegrationTemplates.md)
+- [OutgoingIntegrationType](docs/OutgoingIntegrationType.md)
+- [OutgoingIntegrationTypes](docs/OutgoingIntegrationTypes.md)
+- [PatchItemCatalogAction](docs/PatchItemCatalogAction.md)
+- [PatchManyItemsCatalogAction](docs/PatchManyItemsCatalogAction.md)
+- [PendingPointsNotificationPolicy](docs/PendingPointsNotificationPolicy.md)
+- [Picklist](docs/Picklist.md)
+- [Product](docs/Product.md)
+- [ProductSearchMatch](docs/ProductSearchMatch.md)
+- [ProductSkuUnitAnalytics](docs/ProductSkuUnitAnalytics.md)
+- [ProductUnitAnalytics](docs/ProductUnitAnalytics.md)
+- [ProfileAudiencesChanges](docs/ProfileAudiencesChanges.md)
+- [ProjectedTier](docs/ProjectedTier.md)
+- [RedeemReferralEffectProps](docs/RedeemReferralEffectProps.md)
+- [Referral](docs/Referral.md)
+- [ReferralConstraints](docs/ReferralConstraints.md)
+- [ReferralCreatedEffectProps](docs/ReferralCreatedEffectProps.md)
+- [ReferralRejectionReason](docs/ReferralRejectionReason.md)
+- [RejectCouponEffectProps](docs/RejectCouponEffectProps.md)
+- [RejectReferralEffectProps](docs/RejectReferralEffectProps.md)
+- [RemoveFromAudienceEffectProps](docs/RemoveFromAudienceEffectProps.md)
+- [RemoveItemCatalogAction](docs/RemoveItemCatalogAction.md)
+- [RemoveManyItemsCatalogAction](docs/RemoveManyItemsCatalogAction.md)
+- [ReopenSessionResponse](docs/ReopenSessionResponse.md)
+- [ReserveCouponEffectProps](docs/ReserveCouponEffectProps.md)
+- [ReturnIntegrationRequest](docs/ReturnIntegrationRequest.md)
+- [ReturnedCartItem](docs/ReturnedCartItem.md)
+- [Revision](docs/Revision.md)
+- [RevisionActivation](docs/RevisionActivation.md)
+- [RevisionVersion](docs/RevisionVersion.md)
+- [Role](docs/Role.md)
+- [RoleAssign](docs/RoleAssign.md)
+- [RoleMembership](docs/RoleMembership.md)
+- [RoleV2](docs/RoleV2.md)
+- [RoleV2ApplicationDetails](docs/RoleV2ApplicationDetails.md)
+- [RoleV2Base](docs/RoleV2Base.md)
+- [RoleV2PermissionSet](docs/RoleV2PermissionSet.md)
+- [RoleV2Permissions](docs/RoleV2Permissions.md)
+- [RoleV2RolesGroup](docs/RoleV2RolesGroup.md)
+- [RollbackAddedLoyaltyPointsEffectProps](docs/RollbackAddedLoyaltyPointsEffectProps.md)
+- [RollbackCouponEffectProps](docs/RollbackCouponEffectProps.md)
+- [RollbackDeductedLoyaltyPointsEffectProps](docs/RollbackDeductedLoyaltyPointsEffectProps.md)
+- [RollbackDiscountEffectProps](docs/RollbackDiscountEffectProps.md)
+- [RollbackIncreasedAchievementProgressEffectProps](docs/RollbackIncreasedAchievementProgressEffectProps.md)
+- [RollbackReferralEffectProps](docs/RollbackReferralEffectProps.md)
+- [Rule](docs/Rule.md)
+- [RuleFailureReason](docs/RuleFailureReason.md)
+- [Ruleset](docs/Ruleset.md)
+- [SSOConfig](docs/SSOConfig.md)
+- [SamlConnection](docs/SamlConnection.md)
+- [SamlConnectionInternal](docs/SamlConnectionInternal.md)
+- [SamlConnectionMetadata](docs/SamlConnectionMetadata.md)
+- [SamlLoginEndpoint](docs/SamlLoginEndpoint.md)
+- [ScimBaseUser](docs/ScimBaseUser.md)
+- [ScimBaseUserName](docs/ScimBaseUserName.md)
+- [ScimNewUser](docs/ScimNewUser.md)
+- [ScimPatchOperation](docs/ScimPatchOperation.md)
+- [ScimPatchRequest](docs/ScimPatchRequest.md)
+- [ScimResource](docs/ScimResource.md)
+- [ScimResourceTypesListResponse](docs/ScimResourceTypesListResponse.md)
+- [ScimSchemaResource](docs/ScimSchemaResource.md)
+- [ScimSchemasListResponse](docs/ScimSchemasListResponse.md)
+- [ScimServiceProviderConfigResponse](docs/ScimServiceProviderConfigResponse.md)
+- [ScimServiceProviderConfigResponseBulk](docs/ScimServiceProviderConfigResponseBulk.md)
+- [ScimServiceProviderConfigResponseChangePassword](docs/ScimServiceProviderConfigResponseChangePassword.md)
+- [ScimServiceProviderConfigResponseFilter](docs/ScimServiceProviderConfigResponseFilter.md)
+- [ScimServiceProviderConfigResponsePatch](docs/ScimServiceProviderConfigResponsePatch.md)
+- [ScimServiceProviderConfigResponseSort](docs/ScimServiceProviderConfigResponseSort.md)
+- [ScimUser](docs/ScimUser.md)
+- [ScimUsersListResponse](docs/ScimUsersListResponse.md)
+- [Session](docs/Session.md)
+- [SetDiscountEffectProps](docs/SetDiscountEffectProps.md)
+- [SetDiscountPerAdditionalCostEffectProps](docs/SetDiscountPerAdditionalCostEffectProps.md)
+- [SetDiscountPerAdditionalCostPerItemEffectProps](docs/SetDiscountPerAdditionalCostPerItemEffectProps.md)
+- [SetDiscountPerItemEffectProps](docs/SetDiscountPerItemEffectProps.md)
+- [ShowBundleMetadataEffectProps](docs/ShowBundleMetadataEffectProps.md)
+- [ShowNotificationEffectProps](docs/ShowNotificationEffectProps.md)
+- [SlotDef](docs/SlotDef.md)
+- [Store](docs/Store.md)
+- [StrikethroughChangedItem](docs/StrikethroughChangedItem.md)
+- [StrikethroughCustomEffectPerItemProps](docs/StrikethroughCustomEffectPerItemProps.md)
+- [StrikethroughDebugResponse](docs/StrikethroughDebugResponse.md)
+- [StrikethroughEffect](docs/StrikethroughEffect.md)
+- [StrikethroughLabelingNotification](docs/StrikethroughLabelingNotification.md)
+- [StrikethroughSetDiscountPerItemEffectProps](docs/StrikethroughSetDiscountPerItemEffectProps.md)
+- [StrikethroughTrigger](docs/StrikethroughTrigger.md)
+- [SummaryCampaignStoreBudget](docs/SummaryCampaignStoreBudget.md)
+- [TalangAttribute](docs/TalangAttribute.md)
+- [TalangAttributeVisibility](docs/TalangAttributeVisibility.md)
+- [TemplateArgDef](docs/TemplateArgDef.md)
+- [TemplateDef](docs/TemplateDef.md)
+- [TemplateLimitConfig](docs/TemplateLimitConfig.md)
+- [Tier](docs/Tier.md)
+- [TierDowngradeNotificationPolicy](docs/TierDowngradeNotificationPolicy.md)
+- [TierUpgradeNotificationPolicy](docs/TierUpgradeNotificationPolicy.md)
+- [TierWillDowngradeNotificationPolicy](docs/TierWillDowngradeNotificationPolicy.md)
+- [TierWillDowngradeNotificationTrigger](docs/TierWillDowngradeNotificationTrigger.md)
+- [TimePoint](docs/TimePoint.md)
+- [TrackEventV2Response](docs/TrackEventV2Response.md)
+- [TransferLoyaltyCard](docs/TransferLoyaltyCard.md)
+- [TriggerWebhookEffectProps](docs/TriggerWebhookEffectProps.md)
+- [TwoFAConfig](docs/TwoFAConfig.md)
+- [UpdateAccount](docs/UpdateAccount.md)
+- [UpdateAchievement](docs/UpdateAchievement.md)
+- [UpdateApplication](docs/UpdateApplication.md)
+- [UpdateApplicationAPIKey](docs/UpdateApplicationAPIKey.md)
+- [UpdateApplicationCIF](docs/UpdateApplicationCIF.md)
+- [UpdateAttributeEffectProps](docs/UpdateAttributeEffectProps.md)
+- [UpdateAudience](docs/UpdateAudience.md)
+- [UpdateCampaign](docs/UpdateCampaign.md)
+- [UpdateCampaignCollection](docs/UpdateCampaignCollection.md)
+- [UpdateCampaignEvaluationGroup](docs/UpdateCampaignEvaluationGroup.md)
+- [UpdateCampaignGroup](docs/UpdateCampaignGroup.md)
+- [UpdateCampaignTemplate](docs/UpdateCampaignTemplate.md)
+- [UpdateCatalog](docs/UpdateCatalog.md)
+- [UpdateCollection](docs/UpdateCollection.md)
+- [UpdateCoupon](docs/UpdateCoupon.md)
+- [UpdateCouponBatch](docs/UpdateCouponBatch.md)
+- [UpdateLoyaltyCard](docs/UpdateLoyaltyCard.md)
+- [UpdateLoyaltyProgram](docs/UpdateLoyaltyProgram.md)
+- [UpdateLoyaltyProgramTier](docs/UpdateLoyaltyProgramTier.md)
+- [UpdatePicklist](docs/UpdatePicklist.md)
+- [UpdateReferral](docs/UpdateReferral.md)
+- [UpdateReferralBatch](docs/UpdateReferralBatch.md)
+- [UpdateRole](docs/UpdateRole.md)
+- [UpdateStore](docs/UpdateStore.md)
+- [UpdateUser](docs/UpdateUser.md)
+- [User](docs/User.md)
+- [UserEntity](docs/UserEntity.md)
+- [ValueMap](docs/ValueMap.md)
+- [Webhook](docs/Webhook.md)
+- [WebhookActivationLogEntry](docs/WebhookActivationLogEntry.md)
+- [WebhookLogEntry](docs/WebhookLogEntry.md)
+- [WebhookWithOutgoingIntegrationDetails](docs/WebhookWithOutgoingIntegrationDetails.md)
+- [WillAwardGiveawayEffectProps](docs/WillAwardGiveawayEffectProps.md)
+
+## Authorization
Authentication schemes defined for the API:
+
### api_key_v1
- **Type**: API key
@@ -940,12 +927,6 @@ Authentication schemes defined for the API:
- **API key parameter name**: Authorization
- **Location**: HTTP header
-
## Recommendation
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
-
-## Author
-
-
-
diff --git a/api/openapi.yaml b/api/openapi.yaml
index 57f0bc6..76b5ec6 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -1231,15 +1231,22 @@ paths:
description: |
Create a coupon reservation for the specified customer profiles on the specified coupon.
You can also create a reservation via the Campaign Manager using the
- [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code).
+ [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect.
+
+ **Note:**
- If the **Reservation mandatory** option was selected when creating the specified coupon,
the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it.
- Otherwise, the endpoint creates a **soft** reservation, meaning the coupon will be associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it.
+ Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it.
This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store.
- - If the **Coupon visibility** option was selected when creating the specified coupon,
+
+ - If the **Coupon visibility** option was selected when creating the specified coupon,
the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint.
+ - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons).
+ To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder
+ and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint.
+
To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
operationId: createCouponReservation
parameters:
@@ -2232,7 +2239,10 @@ paths:
- management
x-accepts: application/json
put:
- description: Update the given campaign.
+ description: |
+ Update the given campaign.
+
+ **Important:** You cannot use this endpoint to update campaigns if [campaign staging and revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) is enabled for your Application.
operationId: updateCampaign
parameters:
- description: The ID of the Application. It is displayed in your Talon.One
@@ -2849,8 +2859,8 @@ paths:
x-accepts: application/json
put:
description: |
- Update all coupons, or a specific batch of coupons in the given campaign.
- You can find the `batchId` in the **Coupons** view of your Application
+ Update all coupons or a specific batch of coupons in the given campaign.
+ You can find the `batchId` on the **Coupons** page of your campaign
in the Campaign Manager, or you can use [List coupons](#operation/getCouponsWithoutTotalCount).
@@ -2858,7 +2868,8 @@ paths:
- Only send sequential requests to this endpoint.
- - Requests to this endpoint timeout after 30 minutes. If you hit a timeout, reach out to our support team.
+ - Requests to this endpoint time out after 30 minutes. If you hit a timeout, contact our support team.
+ - With this
PUT
endpoint, if you do not explicitly set a value for the startDate
and expiryDate
properties in your request, it is automatically set to null
.
@@ -3242,7 +3253,7 @@ paths:
Important
-
With this PUT
endpoint alone, if you do not explicitly set a value for the startDate
, expiryDate
, and recipientIntegrationId
properties in your request, it is automatically set to null
.
+
With this PUT
endpoint, if you do not explicitly set a value for the startDate
, expiryDate
, and recipientIntegrationId
properties in your request, it is automatically set to null
.
operationId: updateCoupon
@@ -3963,6 +3974,9 @@ paths:
The CSV file contains the following columns:
- `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported.
+
+ **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application
+ until a session or profile update is received for that profile.
- `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported.
- `amount`: The amount of points to award to the customer profile.
- `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date.
@@ -4653,7 +4667,7 @@ paths:
- `identifier` (required): The alphanumeric identifier of the loyalty card.
- `state` (required): The state of the loyalty card. It can be `active` or `inactive`.
- - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card.
+ - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. The identifiers should be separated with a semicolon (;).
**Note:** We recommend limiting your file size to 500MB.
@@ -6450,7 +6464,7 @@ paths:
Display the health of the Application and show the last time the Application
was used.
- You can also display this information from the **Settings** of an Application, in the **Developer Settings** menu.
+ You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**.
See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
operationId: getApplicationApiHealth
parameters:
@@ -6568,93 +6582,6 @@ paths:
tags:
- management
x-accepts: application/json
- /v1/access_logs:
- get:
- description: |
- Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs.
- operationId: getAllAccessLogs
- parameters:
- - description: |
- Only return results from after this timestamp.
-
- **Note:**
- - This must be an RFC3339 timestamp string.
- - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- in: query
- name: rangeStart
- schema:
- format: date-time
- type: string
- - description: |
- Only return results from before this timestamp.
-
- **Note:**
- - This must be an RFC3339 timestamp string.
- - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- in: query
- name: rangeEnd
- schema:
- format: date-time
- type: string
- - description: Only return results where the request path matches the given
- regular expression.
- in: query
- name: path
- schema:
- type: string
- - description: Only return results where the request method matches the given
- regular expression.
- in: query
- name: method
- schema:
- enum:
- - get
- - put
- - post
- - delete
- - patch
- type: string
- - description: Filter results by HTTP status codes.
- in: query
- name: status
- schema:
- enum:
- - success
- - error
- type: string
- - description: The number of items in the response.
- in: query
- name: pageSize
- schema:
- default: 1000
- maximum: 1000
- minimum: 1
- type: integer
- - description: The number of items to skip when paging through large result
- sets.
- in: query
- name: skip
- schema:
- type: integer
- - description: |
- The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`.
-
- **Note:** This parameter works only with numeric fields.
- in: query
- name: sort
- schema:
- type: string
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/inline_response_200_20'
- description: OK
- summary: List access logs
- tags:
- - management
- x-accepts: application/json
/v1/applications/{applicationId}/campaigns/{campaignId}/analytics:
get:
description: Retrieve statistical data about the performance of the given campaign.
@@ -6714,7 +6641,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_21'
+ $ref: '#/components/schemas/inline_response_200_20'
description: OK
summary: Get analytics of campaigns
tags:
@@ -6766,7 +6693,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_22'
+ $ref: '#/components/schemas/inline_response_200_21'
description: OK
summary: List application's customers
tags:
@@ -6822,7 +6749,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_23'
+ $ref: '#/components/schemas/inline_response_200_22'
description: OK
summary: List application customers matching the given attributes
tags:
@@ -6870,7 +6797,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_24'
+ $ref: '#/components/schemas/inline_response_200_23'
description: OK
summary: List customer profiles matching the given attributes
tags:
@@ -6943,7 +6870,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_25'
+ $ref: '#/components/schemas/inline_response_200_24'
description: OK
summary: List customer profiles
tags:
@@ -7067,7 +6994,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_26'
+ $ref: '#/components/schemas/inline_response_200_25'
description: OK
summary: Get Activity Reports for Application Customers
tags:
@@ -7286,7 +7213,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_27'
+ $ref: '#/components/schemas/inline_response_200_26'
description: OK
summary: List Application sessions
tags:
@@ -7427,7 +7354,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_28'
+ $ref: '#/components/schemas/inline_response_200_27'
description: OK
summary: List Applications events
tags:
@@ -7475,7 +7402,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_29'
+ $ref: '#/components/schemas/inline_response_200_28'
description: OK
summary: List Applications event types
tags:
@@ -7523,7 +7450,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_30'
+ $ref: '#/components/schemas/inline_response_200_29'
description: OK
summary: List audiences
tags:
@@ -7555,7 +7482,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_31'
+ $ref: '#/components/schemas/inline_response_200_30'
description: OK
summary: List audience analytics
tags:
@@ -7607,7 +7534,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_32'
+ $ref: '#/components/schemas/inline_response_200_31'
description: OK
"404":
content:
@@ -7787,7 +7714,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_33'
+ $ref: '#/components/schemas/inline_response_200_32'
description: OK
summary: List friends referred by customer profile
tags:
@@ -7831,7 +7758,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_34'
+ $ref: '#/components/schemas/inline_response_200_33'
description: OK
summary: List custom attributes
tags:
@@ -8064,7 +7991,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_35'
+ $ref: '#/components/schemas/inline_response_200_34'
description: OK
summary: List items in a catalog
tags:
@@ -8401,7 +8328,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_36'
+ $ref: '#/components/schemas/inline_response_200_35'
description: OK
summary: List additional costs
tags:
@@ -8556,7 +8483,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_37'
+ $ref: '#/components/schemas/inline_response_200_36'
description: OK
summary: List webhooks
tags:
@@ -8653,7 +8580,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_38'
+ $ref: '#/components/schemas/inline_response_200_37'
description: OK
summary: List webhook activation log entries
tags:
@@ -8735,7 +8662,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_39'
+ $ref: '#/components/schemas/inline_response_200_38'
description: OK
summary: List webhook log entries
tags:
@@ -8786,7 +8713,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_40'
+ $ref: '#/components/schemas/inline_response_200_39'
description: OK
summary: List event types
tags:
@@ -9396,7 +9323,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_41'
+ $ref: '#/components/schemas/inline_response_200_40'
description: OK
summary: List users in account
tags:
@@ -9864,7 +9791,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_42'
+ $ref: '#/components/schemas/inline_response_200_41'
description: OK
summary: Get audit logs for an account
tags:
@@ -10126,7 +10053,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_43'
+ $ref: '#/components/schemas/inline_response_200_42'
description: OK
summary: Get exports
tags:
@@ -10141,7 +10068,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_44'
+ $ref: '#/components/schemas/inline_response_200_43'
description: OK
summary: List roles
tags:
@@ -10274,7 +10201,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_45'
+ $ref: '#/components/schemas/inline_response_200_44'
description: OK
summary: List stores
tags:
@@ -10658,7 +10585,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_46'
+ $ref: '#/components/schemas/inline_response_200_45'
description: OK
summary: List achievements
tags:
@@ -10995,7 +10922,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/inline_response_200_47'
+ $ref: '#/components/schemas/inline_response_200_46'
description: OK
"400":
content:
@@ -11190,6 +11117,16 @@ components:
description: The ID of the loyalty program that owns this entity.
example: 125
type: integer
+ programName:
+ description: The integration name of the loyalty program that owns this
+ entity.
+ example: Loyalty_program
+ type: string
+ programTitle:
+ description: The Campaign Manager-displayed name of the loyalty program
+ that owns this entity.
+ example: Loyalty program
+ type: string
required:
- programID
type: object
@@ -11745,12 +11682,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -11827,12 +11764,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -13382,6 +13319,30 @@ components:
type: string
type: array
type: object
+ NewValueMap:
+ type: object
+ ValueMap:
+ properties:
+ id:
+ description: Unique ID for this entity. Not to be confused with the Integration
+ ID, which is set by your integration layer and used in most endpoints.
+ example: 6
+ type: integer
+ created:
+ example: 2021-07-20T22:00:00Z
+ format: date-time
+ type: string
+ createdBy:
+ description: The ID of the user who created the value map.
+ example: 216
+ type: integer
+ campaignId:
+ example: 244
+ type: integer
+ required:
+ - campaignId
+ - id
+ type: object
CampaignBudget:
example:
limit: 1000.0
@@ -13973,6 +13934,7 @@ components:
- Profile
- Identifier
- Store
+ - Session
type: string
type: array
required:
@@ -14022,6 +13984,7 @@ components:
- Profile
- Identifier
- Store
+ - Session
type: string
type: array
required:
@@ -16449,7 +16412,7 @@ components:
- 71
isAdmin: false
accountId: 3886
- applicationNotificationSubscriptions: '{}'
+ applicationNotificationSubscriptions: {}
inviteToken: Gy9b8w1irmQtEPo5RmbMmSPheL5h4
name: John Doe
modified: 2021-09-12T10:12:42Z
@@ -16462,7 +16425,7 @@ components:
email: john.doe@example.com
policy:
Role: 127
- additionalAttributes: '{}'
+ additionalAttributes: {}
properties:
id:
description: Internal ID of this entity.
@@ -16529,6 +16492,7 @@ components:
type: string
applicationNotificationSubscriptions:
description: Application notifications that the user is subscribed to.
+ example: {}
properties: {}
type: object
lastSignedIn:
@@ -16549,6 +16513,7 @@ components:
additionalAttributes:
description: Additional user attributes, created and used by external identity
providers.
+ example: {}
properties: {}
type: object
required:
@@ -16764,7 +16729,7 @@ components:
Resources:
- active: true
displayName: John Doe
- id: 283
+ id: "283"
meta:
resourceType: User
created: 2024-06-25T17:43:46+02:00
@@ -16822,7 +16787,7 @@ components:
Operations:
- op: replace
path: active
- value: false
+ value: test
- op: add
path: nickName
value: johndoe
@@ -16950,8 +16915,8 @@ components:
description: Parameters for inviting a new user.
example:
roles:
- - 0
- - 0
+ - 13
+ - 13
name: John Doe
isAdmin: false
acl: acl
@@ -16973,6 +16938,7 @@ components:
roles:
description: A list of the IDs of the roles assigned to the user.
items:
+ example: 13
type: integer
type: array
acl:
@@ -17027,7 +16993,7 @@ components:
- loyalty
id: 6727
created: 2020-06-10T09:05:27.993483Z
- old: '{}'
+ old: {}
id: 6
applicationId: 359
userId: 388
@@ -17057,6 +17023,7 @@ components:
type: string
old:
description: Resource before the change occurred.
+ example: {}
properties: {}
type: object
new:
@@ -17229,12 +17196,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -17457,12 +17424,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
items:
$ref: '#/components/schemas/LoyaltyTier'
type: array
@@ -17543,6 +17510,16 @@ components:
description: The ID of the loyalty program that owns this entity.
example: 125
type: integer
+ programName:
+ description: The integration name of the loyalty program that owns this
+ entity.
+ example: Loyalty_program
+ type: string
+ programTitle:
+ description: The Campaign Manager-displayed name of the loyalty program
+ that owns this entity.
+ example: Loyalty program
+ type: string
name:
description: The name of the tier.
example: Gold
@@ -17550,7 +17527,6 @@ components:
minPoints:
description: The minimum amount of points required to enter the tier.
example: 300.0
- exclusiveMaximum: false
maximum: 999999999999.99
minimum: 0
type: number
@@ -17571,7 +17547,6 @@ components:
minPoints:
description: The minimum amount of points required to enter the tier.
example: 300.0
- exclusiveMaximum: false
maximum: 999999999999.99
minimum: 0
type: number
@@ -18018,7 +17993,6 @@ components:
minPoints:
description: The minimum amount of points required to enter the tier.
example: 300.0
- exclusiveMaximum: false
maximum: 999999999999.99
minimum: 0
type: number
@@ -18475,10 +18449,11 @@ components:
startDate: 2021-07-20T22:00:00Z
subLedgers:
mysubledger:
- activePoints: 286
- pendingPoints: 50
- spentPoints: 150
- expiredPoints: 25
+ total: 0
+ totalActivePoints: 286
+ totalPendingPoints: 50
+ totalSpentPoints: 150
+ totalExpiredPoints: 25
properties:
ledger:
$ref: '#/components/schemas/LoyaltySubLedger'
@@ -18488,10 +18463,11 @@ components:
description: A map containing a list of all loyalty subledger balances.
example:
mysubledger:
- activePoints: 286
- pendingPoints: 50
- spentPoints: 150
- expiredPoints: 25
+ total: 0
+ totalActivePoints: 286
+ totalPendingPoints: 50
+ totalSpentPoints: 150
+ totalExpiredPoints: 25
type: object
required:
- ledger
@@ -18757,6 +18733,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -18802,6 +18780,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -18969,17 +18949,18 @@ components:
title: Spent balance
type: number
tentativeCurrentBalance:
- description: Sum of the tentative active points (including additions and
- deductions) inside the currently open session. The `currentBalance` is
- updated to this value when you close the session, and the effects are
- applied.
+ description: |
+ The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value.
+
+ **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer.
example: 100.0
title: Tentative current balance
type: number
tentativePendingBalance:
- description: Sum of pending points (including additions and deductions)
- inside the currently open session. The `pendingBalance` is updated to
- this value when you close the session, and the effects are applied.
+ description: |
+ The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value.
+
+ **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer.
example: 20.0
title: Tentative pending balance
type: number
@@ -19189,6 +19170,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -19209,6 +19192,16 @@ components:
description: The ID of the loyalty program that owns this entity.
example: 125
type: integer
+ programName:
+ description: The integration name of the loyalty program that owns this
+ entity.
+ example: Loyalty_program
+ type: string
+ programTitle:
+ description: The Campaign Manager-displayed name of the loyalty program
+ that owns this entity.
+ example: Loyalty program
+ type: string
status:
description: |
Status of the loyalty card. Can be `active` or `inactive`.
@@ -19947,17 +19940,18 @@ components:
title: Spent balance
type: number
tentativeCurrentBalance:
- description: Sum of the tentative active points (including additions and
- deductions) inside the currently open session. The `currentBalance` is
- updated to this value when you close the session, and the effects are
- applied.
+ description: |
+ The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value.
+
+ **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer.
example: 100.0
title: Tentative current balance
type: number
tentativePendingBalance:
- description: Sum of pending points (including additions and deductions)
- inside the currently open session. The `pendingBalance` is updated to
- this value when you close the session, and the effects are applied.
+ description: |
+ The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value.
+
+ **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer.
example: 20.0
title: Tentative pending balance
type: number
@@ -20317,6 +20311,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -20362,6 +20358,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -20703,7 +20701,7 @@ components:
**Important - for requests only**:
- If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it.
- - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `"couponCodes": null` or omit the parameter entirely.
+ - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely.
example:
- XMAS-20-2021
items:
@@ -20718,7 +20716,7 @@ components:
**Important - for requests only**:
- If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it.
- - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `"referralCode": null` or omit the parameter entirely.
+ - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely.
example: NT2K54D9
maxLength: 100
title: Referral code entered in session
@@ -21046,6 +21044,7 @@ components:
identifiers:
- d41306257915f83fe01e54092ae470f631161ea16fcf4415842eed41470386ea
integrationId: URNGV8294NV
+ closurePrediction: 0.283
total: 119.99
loyaltyCards:
- loyalty-card-1
@@ -21163,7 +21162,7 @@ components:
**Important - for requests only**:
- If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it.
- - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `"couponCodes": null` or omit the parameter entirely.
+ - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely.
example:
- XMAS-20-2021
items:
@@ -21178,7 +21177,7 @@ components:
**Important - for requests only**:
- If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it.
- - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `"referralCode": null` or omit the parameter entirely.
+ - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely.
example: NT2K54D9
maxLength: 100
title: Referral code entered in session
@@ -21264,7 +21263,7 @@ components:
type: object
firstSession:
description: Indicates whether this is the first session for the customer's
- profile. Will always be true for anonymous sessions.
+ profile. It's always `true` for anonymous sessions.
example: true
title: First session ever?
type: boolean
@@ -21291,6 +21290,12 @@ components:
format: date-time
title: Last activity on the session
type: string
+ closurePrediction:
+ description: The likelihood of the customer session closing based on predictive
+ modeling, expressed as a decimal between `0` and `1`.
+ example: 0.283
+ title: Session Closure Probability
+ type: number
required:
- additionalCostTotal
- applicationId
@@ -21892,6 +21897,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -21937,6 +21944,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -22513,6 +22522,7 @@ components:
identifiers:
- d41306257915f83fe01e54092ae470f631161ea16fcf4415842eed41470386ea
integrationId: URNGV8294NV
+ closurePrediction: 0.283
total: 119.99
loyaltyCards:
- loyalty-card-1
@@ -23144,6 +23154,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -23189,6 +23201,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -23853,6 +23867,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -23898,6 +23914,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -24278,6 +24296,7 @@ components:
identifiers:
- d41306257915f83fe01e54092ae470f631161ea16fcf4415842eed41470386ea
integrationId: URNGV8294NV
+ closurePrediction: 0.283
total: 119.99
loyaltyCards:
- loyalty-card-1
@@ -24346,6 +24365,10 @@ components:
customerSession:
$ref: '#/components/schemas/CustomerSessionV2'
effects:
+ description: |
+ The returned effects.
+
+ **Note:** This endpoint returns only the effects that are valid after any rollback effects and their corresponding non-rollback effects are removed.
items:
$ref: '#/components/schemas/Effect'
type: array
@@ -25528,6 +25551,9 @@ components:
this argument.
properties: {}
type: object
+ key:
+ description: The identifier for the associated value within the JSON object.
+ type: string
picklistID:
description: ID of the picklist linked to a template.
type: integer
@@ -27224,10 +27250,11 @@ components:
NewWebhook:
properties:
applicationIds:
- description: The IDs of the Applications that are related to this entity.
+ description: |
+ The IDs of the Applications in which this webhook is available.
+ An empty array means the webhook is available in `All Applications`.
items:
type: integer
- minItems: 1
type: array
title:
description: Name or title for this webhook.
@@ -27319,10 +27346,11 @@ components:
format: date-time
type: string
applicationIds:
- description: The IDs of the Applications that are related to this entity.
+ description: |
+ The IDs of the Applications in which this webhook is available.
+ An empty array means the webhook is available in `All Applications`.
items:
type: integer
- minItems: 1
type: array
title:
description: Name or title for this webhook.
@@ -27420,10 +27448,11 @@ components:
format: date-time
type: string
applicationIds:
- description: The IDs of the Applications that are related to this entity.
+ description: |
+ The IDs of the Applications in which this webhook is available.
+ An empty array means the webhook is available in `All Applications`.
items:
type: integer
- minItems: 1
type: array
title:
description: Name or title for this webhook.
@@ -30793,7 +30822,10 @@ components:
action:
description: |
Defines the action to perform:
- - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created.
+ - `add`: Adds the customer profile to the audience.
+
+ **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application
+ until a session or profile update is received for that profile.
- `delete`: Removes the customer profile from the audience.
enum:
- add
@@ -31128,7 +31160,7 @@ components:
- boolean
- number
- time
- example: 2012-11-01T22:08:41+00:00
+ example: string
type: string
values:
description: The list of allowed values provided by this picklist.
@@ -31163,7 +31195,7 @@ components:
- boolean
- number
- time
- example: 2012-11-01T22:08:41+00:00
+ example: string
type: string
values:
description: The list of allowed values provided by this picklist.
@@ -31209,7 +31241,7 @@ components:
- boolean
- number
- time
- example: 2012-11-01T22:08:41+00:00
+ example: string
type: string
values:
description: The list of allowed values provided by this picklist.
@@ -34065,7 +34097,7 @@ components:
name: sample_product
properties:
name:
- description: The name of the product.
+ description: The product the item belongs to.
example: sample_product
maxLength: 50
type: string
@@ -35127,23 +35159,23 @@ components:
type: object
GenerateCampaignDescription:
properties:
- campaignID:
- description: ID of the campaign.
+ rulesetID:
+ description: ID of a ruleset.
type: integer
currency:
description: Currency for the campaign.
type: string
required:
- - campaignID
- currency
+ - rulesetID
type: object
GenerateCampaignTags:
properties:
- campaignID:
- description: ID of the campaign.
+ rulesetID:
+ description: ID of a ruleset.
type: integer
required:
- - campaignID
+ - rulesetID
type: object
GenerateRuleTitle:
properties:
@@ -35182,6 +35214,137 @@ components:
required:
- itemFilter
type: object
+ StrikethroughDebugResponse:
+ properties:
+ campaignsIDs:
+ description: The campaign IDs that got fetched for the evaluation process.
+ items:
+ type: integer
+ type: array
+ effects:
+ description: The strikethrough effects that are returned from the evaluation
+ process.
+ items:
+ $ref: '#/components/schemas/StrikethroughEffect'
+ type: array
+ type: object
+ ProductSearchMatch:
+ properties:
+ productId:
+ description: The ID of the product.
+ example: 1
+ type: integer
+ value:
+ description: The string matching the given value. Either a product name
+ or SKU.
+ example: MyProduct
+ type: string
+ productSkuId:
+ description: The ID of the SKU linked to a product. If empty, this is an
+ analytics-level product.
+ example: 1
+ type: integer
+ required:
+ - productId
+ - value
+ type: object
+ AnalyticsProduct:
+ properties:
+ id:
+ description: The ID of the analytics-level product.
+ example: 1
+ type: integer
+ isPreliminary:
+ description: Indicates whether the analytics-level product is connected
+ to a catalog and also has a product name.
+ example: false
+ type: boolean
+ name:
+ description: The name of the analytics-level product.
+ example: MyProduct
+ type: string
+ catalogId:
+ description: |
+ The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
+ example: 1
+ type: integer
+ required:
+ - id
+ - isPreliminary
+ - name
+ type: object
+ AnalyticsProductSKU:
+ properties:
+ id:
+ description: The ID of the SKU linked to the analytics-level product.
+ example: 1
+ type: integer
+ sku:
+ description: The SKU linked to the analytics-level product.
+ example: SKU-123
+ type: string
+ lastUpdated:
+ description: Values in UTC for the date the SKU linked to the analytics-level
+ product was last updated.
+ example: 2024-02-01T00:00:00Z
+ format: date-time
+ type: string
+ required:
+ - id
+ - lastUpdated
+ - sku
+ type: object
+ ProductUnitAnalytics:
+ properties:
+ startTime:
+ description: The start of the aggregation time frame in UTC.
+ example: 2024-02-01T00:00:00Z
+ format: date-time
+ type: string
+ endTime:
+ description: The end of the aggregation time frame in UTC.
+ format: date-time
+ type: string
+ purchasedUnits:
+ $ref: '#/components/schemas/AnalyticsDataPointWithTrend'
+ productId:
+ description: The ID of the analytics-level product.
+ example: 1
+ type: integer
+ productName:
+ description: The name of the analytics-level product.
+ example: MyProduct
+ type: string
+ required:
+ - endTime
+ - productId
+ - productName
+ - purchasedUnits
+ - startTime
+ type: object
+ ProductSkuUnitAnalytics:
+ properties:
+ startTime:
+ description: The start of the aggregation time frame in UTC.
+ example: 2024-02-01T00:00:00Z
+ format: date-time
+ type: string
+ endTime:
+ description: The end of the aggregation time frame in UTC.
+ format: date-time
+ type: string
+ purchasedUnits:
+ $ref: '#/components/schemas/AnalyticsDataPointWithTrend'
+ sku:
+ description: The SKU linked to the analytics-level product.
+ example: SKU-123
+ type: string
+ required:
+ - endTime
+ - purchasedUnits
+ - sku
+ - startTime
+ type: object
inline_response_201:
example:
data:
@@ -35464,12 +35627,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -35546,12 +35709,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -35667,12 +35830,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -35749,12 +35912,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -37010,12 +37173,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -37092,12 +37255,12 @@ components:
minPoints: 200
id: 2
created: 2021-06-10T09:04:59.355258Z
- programId: 139
+ programID: 139
- name: Bronze
minPoints: 100
id: 1
created: 2021-06-10T09:04:39.355258Z
- programId: 139
+ programID: 139
canUpdateTiers: true
usersPerCardLimit: 111
tierCycleStartDate: 2021-09-12T10:12:42Z
@@ -37268,6 +37431,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -37313,6 +37478,8 @@ components:
id: 11
startDate: 2000-01-23T04:56:07.000+00:00
batchId: wdefpov
+ programTitle: Loyalty program
+ programName: Loyalty_program
modified: 2021-09-12T10:12:42Z
id: 6
blockReason: Current card lost. Customer needs a new card.
@@ -37476,47 +37643,6 @@ components:
- data
- hasMore
inline_response_200_20:
- example:
- data:
- - method: PUT
- requestPayload: |-
- {
- "customerSession": {
- "profileId": "customer123",
- "state": "closed",
- ...
- }
- responsePayload: '{"coupons":[],"createdCoupons":[],...}'
- requestUri: /v2/customer_sessions/Session136667
- time: 2023-01-16T16:00:00.700763Z
- uuid: 606e7d34-2d36-4d53-ac71-d4442c325985
- status: 200
- - method: PUT
- requestPayload: |-
- {
- "customerSession": {
- "profileId": "customer123",
- "state": "closed",
- ...
- }
- responsePayload: '{"coupons":[],"createdCoupons":[],...}'
- requestUri: /v2/customer_sessions/Session136667
- time: 2023-01-16T16:00:00.700763Z
- uuid: 606e7d34-2d36-4d53-ac71-d4442c325985
- status: 200
- totalResultSize: 1
- properties:
- totalResultSize:
- example: 1
- type: integer
- data:
- items:
- $ref: '#/components/schemas/AccessLogEntry'
- type: array
- required:
- - data
- - totalResultSize
- inline_response_200_21:
example:
data:
- date: 2021-10-12T10:12:42Z
@@ -37581,7 +37707,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_22:
+ inline_response_200_21:
example:
data:
- accountId: 31
@@ -37642,7 +37768,7 @@ components:
type: array
required:
- data
- inline_response_200_23:
+ inline_response_200_22:
example:
data:
- accountId: 31
@@ -37702,7 +37828,7 @@ components:
type: array
required:
- data
- inline_response_200_24:
+ inline_response_200_23:
example:
data:
- accountId: 31
@@ -37760,7 +37886,7 @@ components:
type: array
required:
- data
- inline_response_200_25:
+ inline_response_200_24:
example:
data:
- accountId: 31
@@ -37816,7 +37942,7 @@ components:
required:
- data
- hasMore
- inline_response_200_26:
+ inline_response_200_25:
example:
data:
- couponUseAttempts: 1
@@ -37856,7 +37982,7 @@ components:
required:
- data
- hasMore
- inline_response_200_27:
+ inline_response_200_26:
example:
data:
- coupon: BKDB946
@@ -37985,7 +38111,7 @@ components:
type: array
required:
- data
- inline_response_200_28:
+ inline_response_200_27:
example:
data:
- effects:
@@ -38129,7 +38255,7 @@ components:
required:
- data
- hasMore
- inline_response_200_29:
+ inline_response_200_28:
example:
data:
- data
@@ -38146,7 +38272,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_30:
+ inline_response_200_29:
example:
data:
- accountId: 3886
@@ -38183,7 +38309,7 @@ components:
type: array
required:
- data
- inline_response_200_31:
+ inline_response_200_30:
example:
data:
- membersCount: 1234
@@ -38200,7 +38326,7 @@ components:
type: array
required:
- data
- inline_response_200_32:
+ inline_response_200_31:
example:
data:
- accountId: 31
@@ -38255,7 +38381,7 @@ components:
type: array
required:
- data
- inline_response_200_33:
+ inline_response_200_32:
example:
data:
- friendIntegrationId: friendIntegrationId
@@ -38284,7 +38410,7 @@ components:
type: array
required:
- data
- inline_response_200_34:
+ inline_response_200_33:
example:
data:
- created: 2020-06-10T09:05:27.993483Z
@@ -38357,7 +38483,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_35:
+ inline_response_200_34:
example:
data:
- product:
@@ -38404,7 +38530,7 @@ components:
type: array
required:
- data
- inline_response_200_36:
+ inline_response_200_35:
example:
data:
- accountId: 3886
@@ -38439,7 +38565,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_37:
+ inline_response_200_36:
example:
data:
- headers:
@@ -38492,7 +38618,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_38:
+ inline_response_200_37:
example:
data:
- webhookId: 1
@@ -38517,7 +38643,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_39:
+ inline_response_200_38:
example:
data:
- requestTime: 2021-07-20T22:00:00Z
@@ -38558,7 +38684,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_40:
+ inline_response_200_39:
example:
data:
- created: 2020-06-10T09:05:27.993483Z
@@ -38583,7 +38709,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_41:
+ inline_response_200_40:
example:
data:
- created: 2020-06-10T09:05:27.993483Z
@@ -38591,7 +38717,7 @@ components:
- 71
isAdmin: false
accountId: 3886
- applicationNotificationSubscriptions: '{}'
+ applicationNotificationSubscriptions: {}
inviteToken: Gy9b8w1irmQtEPo5RmbMmSPheL5h4
name: John Doe
modified: 2021-09-12T10:12:42Z
@@ -38604,13 +38730,13 @@ components:
email: john.doe@example.com
policy:
Role: 127
- additionalAttributes: '{}'
+ additionalAttributes: {}
- created: 2020-06-10T09:05:27.993483Z
roles:
- 71
isAdmin: false
accountId: 3886
- applicationNotificationSubscriptions: '{}'
+ applicationNotificationSubscriptions: {}
inviteToken: Gy9b8w1irmQtEPo5RmbMmSPheL5h4
name: John Doe
modified: 2021-09-12T10:12:42Z
@@ -38623,7 +38749,7 @@ components:
email: john.doe@example.com
policy:
Role: 127
- additionalAttributes: '{}'
+ additionalAttributes: {}
totalResultSize: 1
properties:
totalResultSize:
@@ -38636,7 +38762,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_42:
+ inline_response_200_41:
example:
data:
- new:
@@ -38650,7 +38776,7 @@ components:
- loyalty
id: 6727
created: 2020-06-10T09:05:27.993483Z
- old: '{}'
+ old: {}
id: 6
applicationId: 359
userId: 388
@@ -38667,7 +38793,7 @@ components:
- loyalty
id: 6727
created: 2020-06-10T09:05:27.993483Z
- old: '{}'
+ old: {}
id: 6
applicationId: 359
userId: 388
@@ -38687,7 +38813,7 @@ components:
type: array
required:
- data
- inline_response_200_43:
+ inline_response_200_42:
example:
data:
- filter: '{}'
@@ -38714,7 +38840,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_44:
+ inline_response_200_43:
example:
data:
- accountId: 3886
@@ -38821,7 +38947,7 @@ components:
required:
- data
- totalResultSize
- inline_response_200_45:
+ inline_response_200_44:
example:
data:
- linkedCampaignIds:
@@ -38866,7 +38992,7 @@ components:
type: array
required:
- data
- inline_response_200_46:
+ inline_response_200_45:
example:
data:
- period: 1Y
@@ -38921,7 +39047,7 @@ components:
type: array
required:
- data
- inline_response_200_47:
+ inline_response_200_46:
example:
data:
- endDate: 2000-01-23T04:56:07.000+00:00
@@ -39052,13 +39178,13 @@ components:
securitySchemes:
api_key_v1:
description: |
- To authenticate to use the Integration API, generate an API key in the Campaign Manager
- then prefix it with `ApiKey-v1`.
+ To authenticate with the Integration API, generate an API key in the Campaign Manager
+ and prefix it with `ApiKey-v1`.
To generate an API key:
- 1. Log into the Campaign Manager and open the Application of your choice, or create one.
- 1. Click **Settings** > **Developer settings**.
+ 1. Sign in to the Campaign Manager and open the Application of your choice, or create one.
+ 1. Click **Settings** > **Integration API Keys**.
1. Click **Create API Key** and give it a name and an expiration date, then click **Create API Key**.
You can now use the API key in the HTTP header, prefixing it with `ApiKey-v1`:
@@ -39101,7 +39227,7 @@ components:
The key must be generated by an admin and given to the developer that requires it:
- 1. Log into the Campaign Manager and click **Account** > **Management API keys**.
+ 1. Sign in to the Campaign Manager and click **Account** > **Tools** > **Management API Keys**.
1. Click **Create Key** and give it a name.
1. Set an expiration date.
1. Choose the endpoints the key should give access to.
diff --git a/build.gradle b/build.gradle
index b4d4c51..2cf054e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
apply plugin: 'java'
group = 'one.talon'
-version = '9.1.0'
+version = '10.0.0'
buildscript {
repositories {
diff --git a/build.sbt b/build.sbt
index 8fe4e41..edfd30e 100644
--- a/build.sbt
+++ b/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "one.talon",
name := "talon-one-client",
- version := "9.1.0",
+ version := "10.0.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
diff --git a/docs/AnalyticsProduct.md b/docs/AnalyticsProduct.md
new file mode 100644
index 0000000..02672ac
--- /dev/null
+++ b/docs/AnalyticsProduct.md
@@ -0,0 +1,15 @@
+
+
+# AnalyticsProduct
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Integer** | The ID of the analytics-level product. |
+**isPreliminary** | **Boolean** | Indicates whether the analytics-level product is connected to a catalog and also has a product name. |
+**name** | **String** | The name of the analytics-level product. |
+**catalogId** | **Integer** | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. | [optional]
+
+
+
diff --git a/docs/AnalyticsProductSKU.md b/docs/AnalyticsProductSKU.md
new file mode 100644
index 0000000..3636506
--- /dev/null
+++ b/docs/AnalyticsProductSKU.md
@@ -0,0 +1,14 @@
+
+
+# AnalyticsProductSKU
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Integer** | The ID of the SKU linked to the analytics-level product. |
+**sku** | **String** | The SKU linked to the analytics-level product. |
+**lastUpdated** | [**OffsetDateTime**](OffsetDateTime.md) | Values in UTC for the date the SKU linked to the analytics-level product was last updated. |
+
+
+
diff --git a/docs/CustomerProfileAudienceRequestItem.md b/docs/CustomerProfileAudienceRequestItem.md
index e038b75..35b4a2e 100644
--- a/docs/CustomerProfileAudienceRequestItem.md
+++ b/docs/CustomerProfileAudienceRequestItem.md
@@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**action** | [**ActionEnum**](#ActionEnum) | Defines the action to perform: - `add`: Adds the customer profile to the audience. If the customer profile does not exist, it will be created. - `delete`: Removes the customer profile from the audience. |
+**action** | [**ActionEnum**](#ActionEnum) | Defines the action to perform: - `add`: Adds the customer profile to the audience. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `delete`: Removes the customer profile from the audience. |
**profileIntegrationId** | **String** | The ID of this customer profile in the third-party integration. |
**audienceId** | **Integer** | The ID of the audience. You get it via the `id` property when [creating an audience](#operation/createAudienceV2). |
diff --git a/docs/CustomerSessionV2.md b/docs/CustomerSessionV2.md
index 6ddc178..58b9f85 100644
--- a/docs/CustomerSessionV2.md
+++ b/docs/CustomerSessionV2.md
@@ -14,19 +14,20 @@ Name | Type | Description | Notes
**profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. |
**storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
-**couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `\"couponCodes\": null` or omit the parameter entirely. | [optional]
-**referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `\"referralCode\": null` or omit the parameter entirely. | [optional]
+**couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. | [optional]
+**referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. | [optional]
**loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional]
**state** | [**StateEnum**](#StateEnum) | Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). |
**cartItems** | [**List<CartItem>**](CartItem.md) | The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. |
**additionalCosts** | [**Map<String, AdditionalCost>**](AdditionalCost.md) | Use this property to set a value for the additional costs of this session, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). | [optional]
**identifiers** | **List<String>** | Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the [tutorial](https://docs.talon.one/docs/dev/tutorials/using-identifiers). **Important**: Ensure the session contains an identifier by the time you close it if: - You [create a unique identifier budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign. - Your campaign has [coupons](https://docs.talon.one/docs/product/campaigns/coupons/coupon-page-overview). - We recommend passing an anonymized (hashed) version of the identifier value. | [optional]
**attributes** | [**Object**](.md) | Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to your session, like the shipping city. You can use [built-in attributes](https://docs.talon.one/docs/dev/concepts/attributes#built-in-attributes) or [custom ones](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes). Custom attributes must be created in the Campaign Manager before you set them with this property. |
-**firstSession** | **Boolean** | Indicates whether this is the first session for the customer's profile. Will always be true for anonymous sessions. |
+**firstSession** | **Boolean** | Indicates whether this is the first session for the customer's profile. It's always `true` for anonymous sessions. |
**total** | [**BigDecimal**](BigDecimal.md) | The total value of cart items and additional costs in the session, before any discounts are applied. |
**cartItemTotal** | [**BigDecimal**](BigDecimal.md) | The total value of cart items, before any discounts are applied. |
**additionalCostTotal** | [**BigDecimal**](BigDecimal.md) | The total value of additional costs, before any discounts are applied. |
**updated** | [**OffsetDateTime**](OffsetDateTime.md) | Timestamp of the most recent event received on this session. |
+**closurePrediction** | [**BigDecimal**](BigDecimal.md) | The likelihood of the customer session closing based on predictive modeling, expressed as a decimal between `0` and `1`. | [optional]
diff --git a/docs/GenerateCampaignDescription.md b/docs/GenerateCampaignDescription.md
index e374b2f..09e950e 100644
--- a/docs/GenerateCampaignDescription.md
+++ b/docs/GenerateCampaignDescription.md
@@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**campaignID** | **Integer** | ID of the campaign. |
+**rulesetID** | **Integer** | ID of a ruleset. |
**currency** | **String** | Currency for the campaign. |
diff --git a/docs/GenerateCampaignTags.md b/docs/GenerateCampaignTags.md
index abcf31e..29620da 100644
--- a/docs/GenerateCampaignTags.md
+++ b/docs/GenerateCampaignTags.md
@@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**campaignID** | **Integer** | ID of the campaign. |
+**rulesetID** | **Integer** | ID of a ruleset. |
diff --git a/docs/InlineResponse20020.md b/docs/InlineResponse20020.md
index 9f2be59..0c82671 100644
--- a/docs/InlineResponse20020.md
+++ b/docs/InlineResponse20020.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**totalResultSize** | **Integer** | |
-**data** | [**List<AccessLogEntry>**](AccessLogEntry.md) | |
+**data** | [**List<CampaignAnalytics>**](CampaignAnalytics.md) | |
diff --git a/docs/InlineResponse20021.md b/docs/InlineResponse20021.md
index 97f7599..bd67e52 100644
--- a/docs/InlineResponse20021.md
+++ b/docs/InlineResponse20021.md
@@ -6,8 +6,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**totalResultSize** | **Integer** | |
-**data** | [**List<CampaignAnalytics>**](CampaignAnalytics.md) | |
+**totalResultSize** | **Integer** | | [optional]
+**hasMore** | **Boolean** | | [optional]
+**data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | |
diff --git a/docs/InlineResponse20022.md b/docs/InlineResponse20022.md
index 5428c22..09c7489 100644
--- a/docs/InlineResponse20022.md
+++ b/docs/InlineResponse20022.md
@@ -6,8 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**totalResultSize** | **Integer** | | [optional]
**hasMore** | **Boolean** | | [optional]
+**totalResultSize** | **Integer** | | [optional]
**data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | |
diff --git a/docs/InlineResponse20023.md b/docs/InlineResponse20023.md
index d9008a4..9b854a2 100644
--- a/docs/InlineResponse20023.md
+++ b/docs/InlineResponse20023.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hasMore** | **Boolean** | | [optional]
**totalResultSize** | **Integer** | | [optional]
-**data** | [**List<ApplicationCustomer>**](ApplicationCustomer.md) | |
+**data** | [**List<CustomerProfile>**](CustomerProfile.md) | |
diff --git a/docs/InlineResponse20024.md b/docs/InlineResponse20024.md
index 27c23e9..a75bad5 100644
--- a/docs/InlineResponse20024.md
+++ b/docs/InlineResponse20024.md
@@ -6,8 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**hasMore** | **Boolean** | | [optional]
-**totalResultSize** | **Integer** | | [optional]
+**hasMore** | **Boolean** | |
**data** | [**List<CustomerProfile>**](CustomerProfile.md) | |
diff --git a/docs/InlineResponse20025.md b/docs/InlineResponse20025.md
index 537857f..1236a77 100644
--- a/docs/InlineResponse20025.md
+++ b/docs/InlineResponse20025.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hasMore** | **Boolean** | |
-**data** | [**List<CustomerProfile>**](CustomerProfile.md) | |
+**data** | [**List<CustomerActivityReport>**](CustomerActivityReport.md) | |
diff --git a/docs/InlineResponse20026.md b/docs/InlineResponse20026.md
index d294ce9..2c83edb 100644
--- a/docs/InlineResponse20026.md
+++ b/docs/InlineResponse20026.md
@@ -6,8 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**hasMore** | **Boolean** | |
-**data** | [**List<CustomerActivityReport>**](CustomerActivityReport.md) | |
+**hasMore** | **Boolean** | | [optional]
+**data** | [**List<ApplicationSession>**](ApplicationSession.md) | |
diff --git a/docs/InlineResponse20027.md b/docs/InlineResponse20027.md
index d4b0fcf..01169de 100644
--- a/docs/InlineResponse20027.md
+++ b/docs/InlineResponse20027.md
@@ -6,8 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**hasMore** | **Boolean** | | [optional]
-**data** | [**List<ApplicationSession>**](ApplicationSession.md) | |
+**hasMore** | **Boolean** | |
+**data** | [**List<ApplicationEvent>**](ApplicationEvent.md) | |
diff --git a/docs/InlineResponse20028.md b/docs/InlineResponse20028.md
index baaa5c5..582d050 100644
--- a/docs/InlineResponse20028.md
+++ b/docs/InlineResponse20028.md
@@ -6,8 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**hasMore** | **Boolean** | |
-**data** | [**List<ApplicationEvent>**](ApplicationEvent.md) | |
+**totalResultSize** | **Integer** | |
+**data** | **List<String>** | |
diff --git a/docs/InlineResponse20029.md b/docs/InlineResponse20029.md
index 3c194b5..591dd3d 100644
--- a/docs/InlineResponse20029.md
+++ b/docs/InlineResponse20029.md
@@ -6,8 +6,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**totalResultSize** | **Integer** | |
-**data** | **List<String>** | |
+**hasMore** | **Boolean** | | [optional]
+**totalResultSize** | **Integer** | | [optional]
+**data** | [**List<Audience>**](Audience.md) | |
diff --git a/docs/InlineResponse20030.md b/docs/InlineResponse20030.md
index d3189f7..d0bdfd5 100644
--- a/docs/InlineResponse20030.md
+++ b/docs/InlineResponse20030.md
@@ -7,8 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hasMore** | **Boolean** | | [optional]
-**totalResultSize** | **Integer** | | [optional]
-**data** | [**List<Audience>**](Audience.md) | |
+**data** | [**List<AudienceAnalytics>**](AudienceAnalytics.md) | |
diff --git a/docs/InlineResponse20031.md b/docs/InlineResponse20031.md
index 8a81df7..b822a40 100644
--- a/docs/InlineResponse20031.md
+++ b/docs/InlineResponse20031.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hasMore** | **Boolean** | | [optional]
-**data** | [**List<AudienceAnalytics>**](AudienceAnalytics.md) | |
+**data** | [**List<CustomerProfile>**](CustomerProfile.md) | |
diff --git a/docs/InlineResponse20032.md b/docs/InlineResponse20032.md
index 9256aac..b50af52 100644
--- a/docs/InlineResponse20032.md
+++ b/docs/InlineResponse20032.md
@@ -7,7 +7,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hasMore** | **Boolean** | | [optional]
-**data** | [**List<CustomerProfile>**](CustomerProfile.md) | |
+**totalResultSize** | **Integer** | | [optional]
+**data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | |
diff --git a/docs/InlineResponse20033.md b/docs/InlineResponse20033.md
index 7c126f9..ba45f56 100644
--- a/docs/InlineResponse20033.md
+++ b/docs/InlineResponse20033.md
@@ -6,9 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**hasMore** | **Boolean** | | [optional]
-**totalResultSize** | **Integer** | | [optional]
-**data** | [**List<ApplicationReferee>**](ApplicationReferee.md) | |
+**totalResultSize** | **Integer** | |
+**data** | [**List<Attribute>**](Attribute.md) | |
diff --git a/docs/InlineResponse20034.md b/docs/InlineResponse20034.md
index 5704e93..8e73427 100644
--- a/docs/InlineResponse20034.md
+++ b/docs/InlineResponse20034.md
@@ -6,8 +6,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**totalResultSize** | **Integer** | |
-**data** | [**List<Attribute>**](Attribute.md) | |
+**hasMore** | **Boolean** | | [optional]
+**totalResultSize** | **Integer** | | [optional]
+**data** | [**List<CatalogItem>**](CatalogItem.md) | |
diff --git a/docs/InlineResponse20035.md b/docs/InlineResponse20035.md
index 27b24f5..2ea9a4c 100644
--- a/docs/InlineResponse20035.md
+++ b/docs/InlineResponse20035.md
@@ -6,9 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**hasMore** | **Boolean** | | [optional]
-**totalResultSize** | **Integer** | | [optional]
-**data** | [**List<CatalogItem>**](CatalogItem.md) | |
+**totalResultSize** | **Integer** | |
+**data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | |
diff --git a/docs/InlineResponse20036.md b/docs/InlineResponse20036.md
index b9c287f..690ac5a 100644
--- a/docs/InlineResponse20036.md
+++ b/docs/InlineResponse20036.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**totalResultSize** | **Integer** | |
-**data** | [**List<AccountAdditionalCost>**](AccountAdditionalCost.md) | |
+**data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | |
diff --git a/docs/InlineResponse20037.md b/docs/InlineResponse20037.md
index 4b01936..1fc4307 100644
--- a/docs/InlineResponse20037.md
+++ b/docs/InlineResponse20037.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**totalResultSize** | **Integer** | |
-**data** | [**List<WebhookWithOutgoingIntegrationDetails>**](WebhookWithOutgoingIntegrationDetails.md) | |
+**data** | [**List<WebhookActivationLogEntry>**](WebhookActivationLogEntry.md) | |
diff --git a/docs/InlineResponse20038.md b/docs/InlineResponse20038.md
index 2c92f13..aa9c7ea 100644
--- a/docs/InlineResponse20038.md
+++ b/docs/InlineResponse20038.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**totalResultSize** | **Integer** | |
-**data** | [**List<WebhookActivationLogEntry>**](WebhookActivationLogEntry.md) | |
+**data** | [**List<WebhookLogEntry>**](WebhookLogEntry.md) | |
diff --git a/docs/InlineResponse20039.md b/docs/InlineResponse20039.md
index 4531663..58d5ef1 100644
--- a/docs/InlineResponse20039.md
+++ b/docs/InlineResponse20039.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**totalResultSize** | **Integer** | |
-**data** | [**List<WebhookLogEntry>**](WebhookLogEntry.md) | |
+**data** | [**List<EventType>**](EventType.md) | |
diff --git a/docs/InlineResponse20040.md b/docs/InlineResponse20040.md
index 724895c..f947020 100644
--- a/docs/InlineResponse20040.md
+++ b/docs/InlineResponse20040.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**totalResultSize** | **Integer** | |
-**data** | [**List<EventType>**](EventType.md) | |
+**data** | [**List<User>**](User.md) | |
diff --git a/docs/InlineResponse20041.md b/docs/InlineResponse20041.md
index 9514383..604a12f 100644
--- a/docs/InlineResponse20041.md
+++ b/docs/InlineResponse20041.md
@@ -6,8 +6,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**totalResultSize** | **Integer** | |
-**data** | [**List<User>**](User.md) | |
+**totalResultSize** | **Integer** | | [optional]
+**hasMore** | **Boolean** | | [optional]
+**data** | [**List<Change>**](Change.md) | |
diff --git a/docs/InlineResponse20042.md b/docs/InlineResponse20042.md
index d8183c1..5e572b6 100644
--- a/docs/InlineResponse20042.md
+++ b/docs/InlineResponse20042.md
@@ -6,9 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**totalResultSize** | **Integer** | | [optional]
-**hasMore** | **Boolean** | | [optional]
-**data** | [**List<Change>**](Change.md) | |
+**totalResultSize** | **Integer** | |
+**data** | [**List<Export>**](Export.md) | |
diff --git a/docs/InlineResponse20043.md b/docs/InlineResponse20043.md
index f8106df..0e862ef 100644
--- a/docs/InlineResponse20043.md
+++ b/docs/InlineResponse20043.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**totalResultSize** | **Integer** | |
-**data** | [**List<Export>**](Export.md) | |
+**data** | [**List<RoleV2>**](RoleV2.md) | |
diff --git a/docs/InlineResponse20044.md b/docs/InlineResponse20044.md
index 29f58c0..c654f2e 100644
--- a/docs/InlineResponse20044.md
+++ b/docs/InlineResponse20044.md
@@ -6,8 +6,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**totalResultSize** | **Integer** | |
-**data** | [**List<RoleV2>**](RoleV2.md) | |
+**hasMore** | **Boolean** | | [optional]
+**totalResultSize** | **Integer** | | [optional]
+**data** | [**List<Store>**](Store.md) | |
diff --git a/docs/InlineResponse20045.md b/docs/InlineResponse20045.md
index 2645677..0093915 100644
--- a/docs/InlineResponse20045.md
+++ b/docs/InlineResponse20045.md
@@ -7,8 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**hasMore** | **Boolean** | | [optional]
-**totalResultSize** | **Integer** | | [optional]
-**data** | [**List<Store>**](Store.md) | |
+**data** | [**List<Achievement>**](Achievement.md) | |
diff --git a/docs/InlineResponse20046.md b/docs/InlineResponse20046.md
index 969d2c3..9280050 100644
--- a/docs/InlineResponse20046.md
+++ b/docs/InlineResponse20046.md
@@ -6,8 +6,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**hasMore** | **Boolean** | | [optional]
-**data** | [**List<Achievement>**](Achievement.md) | |
+**hasMore** | **Boolean** | |
+**data** | [**List<AchievementProgress>**](AchievementProgress.md) | |
diff --git a/docs/IntegrationApi.md b/docs/IntegrationApi.md
index 46d5e8b..b1b2ae7 100644
--- a/docs/IntegrationApi.md
+++ b/docs/IntegrationApi.md
@@ -1,6 +1,6 @@
# IntegrationApi
-All URIs are relative to *https://yourbaseurl.talon.one*
+All URLs are relative to `https://yourbaseurl.talon.one`.
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -35,8 +35,9 @@ Method | HTTP request | Description
[**updateCustomerSessionV2**](IntegrationApi.md#updateCustomerSessionV2) | **PUT** /v2/customer_sessions/{customerSessionId} | Update customer session
-
-# **createAudienceV2**
+
+## createAudienceV2
+
> Audience createAudienceV2(body)
Create audience
@@ -44,6 +45,7 @@ Create audience
Create an audience. The audience can be created directly from scratch or can come from third party platforms. **Note:** Audiences can also be created from scratch via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/creating-audiences). To create an audience from an existing audience from a [technology partner](https://docs.talon.one/docs/dev/technology-partners/overview): 1. Set the `integration` property to `mparticle`, `segment` etc., depending on a third-party platform. 1. Set `integrationId` to the ID of this audience in a third-party platform. To create an audience from an existing audience in another platform: 1. Do not use the `integration` property. 1. Set `integrationId` to the ID of this audience in the 3rd-party platform. To create an audience from scratch: 1. Only set the `name` property. Once you create your first audience, audience-specific rule conditions are enabled in the Rule Builder.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -54,39 +56,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- NewAudience body = new NewAudience(); // NewAudience | body
- try {
- Audience result = apiInstance.createAudienceV2(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#createAudienceV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ NewAudience body = new NewAudience(); // NewAudience | body
+ try {
+ Audience result = apiInstance.createAudienceV2(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#createAudienceV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewAudience**](NewAudience.md)| body |
-### Return type
+### Return type cool
[**Audience**](Audience.md)
@@ -96,26 +99,28 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**409** | Conflict. An Audience with this ID already exists for this integration. | - |
+| **201** | Created | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **409** | Conflict. An Audience with this ID already exists for this integration. | - |
+
+
+## createCouponReservation
-
-# **createCouponReservation**
> Coupon createCouponReservation(couponValue, body)
Create coupon reservation
-Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon will be associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
+Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -126,41 +131,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String couponValue = "couponValue_example"; // String | The code of the coupon.
- CouponReservations body = new CouponReservations(); // CouponReservations | body
- try {
- Coupon result = apiInstance.createCouponReservation(couponValue, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#createCouponReservation");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String couponValue = "couponValue_example"; // String | The code of the coupon.
+ CouponReservations body = new CouponReservations(); // CouponReservations | body
+ try {
+ Coupon result = apiInstance.createCouponReservation(couponValue, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#createCouponReservation");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**couponValue** | **String**| The code of the coupon. |
**body** | [**CouponReservations**](CouponReservations.md)| body |
-### Return type
+### Return type cool
[**Coupon**](Coupon.md)
@@ -170,19 +176,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **201** | Created | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## createReferral
-
-# **createReferral**
> Referral createReferral(body)
Create referral code for an advocate
@@ -190,6 +197,7 @@ Create referral code for an advocate
Creates a referral code for an advocate. The code will be valid for the referral campaign for which is created, indicated in the `campaignId` parameter, and will be associated with the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -200,39 +208,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- NewReferral body = new NewReferral(); // NewReferral | body
- try {
- Referral result = apiInstance.createReferral(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#createReferral");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ NewReferral body = new NewReferral(); // NewReferral | body
+ try {
+ Referral result = apiInstance.createReferral(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#createReferral");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewReferral**](NewReferral.md)| body |
-### Return type
+### Return type cool
[**Referral**](Referral.md)
@@ -242,18 +251,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
+| **201** | Created | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+
+
+## createReferralsForMultipleAdvocates
-
-# **createReferralsForMultipleAdvocates**
> InlineResponse201 createReferralsForMultipleAdvocates(body, silent)
Create referral codes for multiple advocates
@@ -261,6 +271,7 @@ Create referral codes for multiple advocates
Creates unique referral codes for multiple advocates. The code will be valid for the referral campaign for which it is created, indicated in the `campaignId` parameter, and one referral code will be associated with one advocate using the profile specified in the `advocateProfileIntegrationId` parameter as the advocate's profile.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -271,41 +282,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- NewReferralsForMultipleAdvocates body = new NewReferralsForMultipleAdvocates(); // NewReferralsForMultipleAdvocates | body
- String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
- try {
- InlineResponse201 result = apiInstance.createReferralsForMultipleAdvocates(body, silent);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#createReferralsForMultipleAdvocates");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ NewReferralsForMultipleAdvocates body = new NewReferralsForMultipleAdvocates(); // NewReferralsForMultipleAdvocates | body
+ String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
+ try {
+ InlineResponse201 result = apiInstance.createReferralsForMultipleAdvocates(body, silent);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#createReferralsForMultipleAdvocates");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewReferralsForMultipleAdvocates**](NewReferralsForMultipleAdvocates.md)| body |
**silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"]
-### Return type
+### Return type cool
[**InlineResponse201**](InlineResponse201.md)
@@ -315,19 +327,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
+| **201** | Created | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+
+
+## deleteAudienceMembershipsV2
-
-# **deleteAudienceMembershipsV2**
> deleteAudienceMembershipsV2(audienceId)
Delete audience memberships
@@ -335,6 +348,7 @@ Delete audience memberships
Remove all members from this audience.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -345,38 +359,39 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer audienceId = 56; // Integer | The ID of the audience.
- try {
- apiInstance.deleteAudienceMembershipsV2(audienceId);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#deleteAudienceMembershipsV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer audienceId = 56; // Integer | The ID of the audience.
+ try {
+ apiInstance.deleteAudienceMembershipsV2(audienceId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#deleteAudienceMembershipsV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceId** | **Integer**| The ID of the audience. |
-### Return type
+### Return type cool
null (empty response body)
@@ -386,18 +401,19 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## deleteAudienceV2
-
-# **deleteAudienceV2**
> deleteAudienceV2(audienceId)
Delete audience
@@ -405,6 +421,7 @@ Delete audience
Delete an audience created by a third-party integration. **Warning:** This endpoint also removes any associations recorded between a customer profile and this audience. **Note:** Audiences can also be deleted via the Campaign Manager. See the [docs](https://docs.talon.one/docs/product/audiences/managing-audiences#deleting-an-audience).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -415,38 +432,39 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer audienceId = 56; // Integer | The ID of the audience.
- try {
- apiInstance.deleteAudienceV2(audienceId);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#deleteAudienceV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer audienceId = 56; // Integer | The ID of the audience.
+ try {
+ apiInstance.deleteAudienceV2(audienceId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#deleteAudienceV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceId** | **Integer**| The ID of the audience. |
-### Return type
+### Return type cool
null (empty response body)
@@ -456,19 +474,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## deleteCouponReservation
-
-# **deleteCouponReservation**
> deleteCouponReservation(couponValue, body)
Delete coupon reservations
@@ -476,6 +495,7 @@ Delete coupon reservations
Remove all the coupon reservations from the provided customer profile integration IDs and the provided coupon code.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -486,40 +506,41 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String couponValue = "couponValue_example"; // String | The code of the coupon.
- CouponReservations body = new CouponReservations(); // CouponReservations | body
- try {
- apiInstance.deleteCouponReservation(couponValue, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#deleteCouponReservation");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String couponValue = "couponValue_example"; // String | The code of the coupon.
+ CouponReservations body = new CouponReservations(); // CouponReservations | body
+ try {
+ apiInstance.deleteCouponReservation(couponValue, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#deleteCouponReservation");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**couponValue** | **String**| The code of the coupon. |
**body** | [**CouponReservations**](CouponReservations.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -529,19 +550,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## deleteCustomerData
-
-# **deleteCustomerData**
> deleteCustomerData(integrationId)
Delete customer's personal data
@@ -549,6 +571,7 @@ Delete customer's personal data
Delete all attributes on the customer profile and on entities that reference this customer profile. **Important:** - Customer data is deleted from all Applications in the [environment](https://docs.talon.one/docs/product/applications/overview#application-environments) that the API key belongs to. For example, if you use this endpoint with an API key that belongs to a sandbox Application, customer data will be deleted from all sandbox Applications. This is because customer data is shared between Applications from the same environment. - To preserve performance, we recommend avoiding deleting customer data during peak-traffic hours.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -559,38 +582,39 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String integrationId = "integrationId_example"; // String | The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
- try {
- apiInstance.deleteCustomerData(integrationId);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#deleteCustomerData");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String integrationId = "integrationId_example"; // String | The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
+ try {
+ apiInstance.deleteCustomerData(integrationId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#deleteCustomerData");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**integrationId** | **String**| The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. |
-### Return type
+### Return type cool
null (empty response body)
@@ -600,18 +624,19 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## generateLoyaltyCard
-
-# **generateLoyaltyCard**
> LoyaltyCard generateLoyaltyCard(loyaltyProgramId, body)
Generate loyalty card
@@ -619,6 +644,7 @@ Generate loyalty card
Generate a loyalty card in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview). To link the card to one or more customer profiles, use the `customerProfileIds` parameter in the request body. **Note:** - The number of customer profiles linked to the loyalty card cannot exceed the loyalty program's `usersPerCardLimit`. To find the program's limit, use the [Get loyalty program](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgram) endpoint. - If the loyalty program has a defined code format, it will be used for the loyalty card identifier.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -629,41 +655,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- GenerateLoyaltyCard body = new GenerateLoyaltyCard(); // GenerateLoyaltyCard | body
- try {
- LoyaltyCard result = apiInstance.generateLoyaltyCard(loyaltyProgramId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#generateLoyaltyCard");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ GenerateLoyaltyCard body = new GenerateLoyaltyCard(); // GenerateLoyaltyCard | body
+ try {
+ LoyaltyCard result = apiInstance.generateLoyaltyCard(loyaltyProgramId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#generateLoyaltyCard");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**body** | [**GenerateLoyaltyCard**](GenerateLoyaltyCard.md)| body |
-### Return type
+### Return type cool
[**LoyaltyCard**](LoyaltyCard.md)
@@ -673,18 +700,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
+
+## getCustomerInventory
-
-# **getCustomerInventory**
> CustomerInventory getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements)
List customer data
@@ -692,6 +720,7 @@ List customer data
Return the customer inventory regarding entities referencing this customer profile's `integrationId`. Typical entities returned are: customer profile information, referral codes, loyalty points, loyalty cards and reserved coupons. Reserved coupons also include redeemed coupons.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -702,40 +731,41 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String integrationId = "integrationId_example"; // String | The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
- Boolean profile = true; // Boolean | Set to `true` to include customer profile information in the response.
- Boolean referrals = true; // Boolean | Set to `true` to include referral information in the response.
- Boolean coupons = true; // Boolean | Set to `true` to include coupon information in the response.
- Boolean loyalty = true; // Boolean | Set to `true` to include loyalty information in the response.
- Boolean giveaways = true; // Boolean | Set to `true` to include giveaways information in the response.
- Boolean achievements = true; // Boolean | Set to `true` to include achievement information in the response.
- try {
- CustomerInventory result = apiInstance.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getCustomerInventory");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String integrationId = "integrationId_example"; // String | The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
+ Boolean profile = true; // Boolean | Set to `true` to include customer profile information in the response.
+ Boolean referrals = true; // Boolean | Set to `true` to include referral information in the response.
+ Boolean coupons = true; // Boolean | Set to `true` to include coupon information in the response.
+ Boolean loyalty = true; // Boolean | Set to `true` to include loyalty information in the response.
+ Boolean giveaways = true; // Boolean | Set to `true` to include giveaways information in the response.
+ Boolean achievements = true; // Boolean | Set to `true` to include achievement information in the response.
+ try {
+ CustomerInventory result = apiInstance.getCustomerInventory(integrationId, profile, referrals, coupons, loyalty, giveaways, achievements);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getCustomerInventory");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**integrationId** | **String**| The integration ID of the customer profile. You can get the `integrationId` of a profile using: - A customer session integration ID with the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. - The Management API with the [List application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. |
@@ -746,7 +776,7 @@ Name | Type | Description | Notes
**giveaways** | **Boolean**| Set to `true` to include giveaways information in the response. | [optional]
**achievements** | **Boolean**| Set to `true` to include achievement information in the response. | [optional]
-### Return type
+### Return type cool
[**CustomerInventory**](CustomerInventory.md)
@@ -756,18 +786,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## getCustomerSession
-
-# **getCustomerSession**
> IntegrationCustomerSessionResponse getCustomerSession(customerSessionId)
Get customer session
@@ -775,6 +806,7 @@ Get customer session
Get the details of the given customer session. You can get the same data via other endpoints that also apply changes, which can help you save requests and increase performance. See: - [Update customer session](#tag/Customer-sessions/operation/updateCustomerSessionV2) - [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2)
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -785,39 +817,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
- try {
- IntegrationCustomerSessionResponse result = apiInstance.getCustomerSession(customerSessionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getCustomerSession");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
+ try {
+ IntegrationCustomerSessionResponse result = apiInstance.getCustomerSession(customerSessionId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getCustomerSession");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customerSessionId** | **String**| The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. |
-### Return type
+### Return type cool
[**IntegrationCustomerSessionResponse**](IntegrationCustomerSessionResponse.md)
@@ -827,18 +860,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+
+
+## getLoyaltyBalances
-
-# **getLoyaltyBalances**
> LoyaltyBalancesWithTiers getLoyaltyBalances(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier)
Get customer's loyalty balances
@@ -846,6 +880,7 @@ Get customer's loyalty balances
Retrieve loyalty ledger balances for the given Integration ID in the specified loyalty program. You can filter balances by date and subledger ID, and include tier-related information in the response. **Note**: If no filtering options are applied, you retrieve all loyalty balances on the current date for the given integration ID. Loyalty balances are calculated when Talon.One receives your request using the points stored in our database, so retrieving a large number of balances at once can impact performance. For more information, see: - [Managing card-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards) - [Managing profile-based loyalty program data](https://docs.talon.one/docs/product/loyalty-programs/profile-based/managing-pb-lp-data)
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -856,39 +891,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
- Boolean includeTiers = false; // Boolean | Indicates whether tier information is included in the response. When set to `true`, the response includes information about the current tier and the number of points required to move to next tier.
- Boolean includeProjectedTier = false; // Boolean | Indicates whether the customer's projected tier information is included in the response. When set to `true`, the response includes information about the customer's active points and the name of the projected tier. **Note** We recommend filtering by `subledgerId` for better performance.
- try {
- LoyaltyBalancesWithTiers result = apiInstance.getLoyaltyBalances(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getLoyaltyBalances");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
+ Boolean includeTiers = false; // Boolean | Indicates whether tier information is included in the response. When set to `true`, the response includes information about the current tier and the number of points required to move to next tier.
+ Boolean includeProjectedTier = false; // Boolean | Indicates whether the customer's projected tier information is included in the response. When set to `true`, the response includes information about the customer's active points and the name of the projected tier. **Note** We recommend filtering by `subledgerId` for better performance.
+ try {
+ LoyaltyBalancesWithTiers result = apiInstance.getLoyaltyBalances(loyaltyProgramId, integrationId, endDate, subledgerId, includeTiers, includeProjectedTier);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getLoyaltyBalances");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -898,7 +934,7 @@ Name | Type | Description | Notes
**includeTiers** | **Boolean**| Indicates whether tier information is included in the response. When set to `true`, the response includes information about the current tier and the number of points required to move to next tier. | [optional] [default to false]
**includeProjectedTier** | **Boolean**| Indicates whether the customer's projected tier information is included in the response. When set to `true`, the response includes information about the customer's active points and the name of the projected tier. **Note** We recommend filtering by `subledgerId` for better performance. | [optional] [default to false]
-### Return type
+### Return type cool
[**LoyaltyBalancesWithTiers**](LoyaltyBalancesWithTiers.md)
@@ -908,19 +944,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyCardBalances
-
-# **getLoyaltyCardBalances**
> LoyaltyCardBalances getLoyaltyCardBalances(loyaltyProgramId, loyaltyCardId, endDate, subledgerId)
Get card's point balances
@@ -928,6 +965,7 @@ Get card's point balances
Retrieve loyalty balances for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, all loyalty balances for the given loyalty card are returned.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -938,37 +976,38 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match.
- try {
- LoyaltyCardBalances result = apiInstance.getLoyaltyCardBalances(loyaltyProgramId, loyaltyCardId, endDate, subledgerId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getLoyaltyCardBalances");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match.
+ try {
+ LoyaltyCardBalances result = apiInstance.getLoyaltyCardBalances(loyaltyProgramId, loyaltyCardId, endDate, subledgerId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getLoyaltyCardBalances");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -976,7 +1015,7 @@ Name | Type | Description | Notes
**endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional]
**subledgerId** | [**List<String>**](String.md)| Filter results by one or more subledger IDs. Must be exact match. | [optional]
-### Return type
+### Return type cool
[**LoyaltyCardBalances**](LoyaltyCardBalances.md)
@@ -986,19 +1025,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyCardPoints
-
-# **getLoyaltyCardPoints**
> InlineResponse2003 getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip)
List card's unused loyalty points
@@ -1006,6 +1046,7 @@ List card's unused loyalty points
Get paginated results of loyalty points for a given loyalty card identifier in a card-based loyalty program. This endpoint returns only the balances of unused points on a loyalty card. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1016,39 +1057,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- String status = "active"; // String | Filter points based on their status.
- List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match.
- Integer pageSize = 50; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- try {
- InlineResponse2003 result = apiInstance.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getLoyaltyCardPoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ String status = "active"; // String | Filter points based on their status.
+ List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match.
+ Integer pageSize = 50; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ try {
+ InlineResponse2003 result = apiInstance.getLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, status, subledgerId, pageSize, skip);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getLoyaltyCardPoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -1058,7 +1100,7 @@ Name | Type | Description | Notes
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
-### Return type
+### Return type cool
[**InlineResponse2003**](InlineResponse2003.md)
@@ -1068,19 +1110,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyCardTransactions
-
-# **getLoyaltyCardTransactions**
> InlineResponse2001 getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip)
List card's transactions
@@ -1088,6 +1131,7 @@ List card's transactions
Retrieve loyalty transaction logs for the given loyalty card in the specified loyalty program with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1098,41 +1142,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match.
- String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file.
- OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- try {
- InlineResponse2001 result = apiInstance.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getLoyaltyCardTransactions");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ List subledgerId = Arrays.asList(); // List | Filter results by one or more subledger IDs. Must be exact match.
+ String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file.
+ OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ try {
+ InlineResponse2001 result = apiInstance.getLoyaltyCardTransactions(loyaltyProgramId, loyaltyCardId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getLoyaltyCardTransactions");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -1144,7 +1189,7 @@ Name | Type | Description | Notes
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
-### Return type
+### Return type cool
[**InlineResponse2001**](InlineResponse2001.md)
@@ -1154,19 +1199,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyProgramProfilePoints
-
-# **getLoyaltyProgramProfilePoints**
> InlineResponse2004 getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip)
List customer's unused loyalty points
@@ -1174,6 +1220,7 @@ List customer's unused loyalty points
Get paginated results of loyalty points for a given Integration ID in the specified profile-based loyalty program. This endpoint returns only the balances of unused points linked to a customer profile. You can filter points by status: - `active`: Points ready to be redeemed. - `pending`: Points with a start date in the future. - `expired`: Points with an expiration date in the past.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1184,39 +1231,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
- String status = "active"; // String | Filter points based on their status.
- String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
- Integer pageSize = 50; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- try {
- InlineResponse2004 result = apiInstance.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getLoyaltyProgramProfilePoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
+ String status = "active"; // String | Filter points based on their status.
+ String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
+ Integer pageSize = 50; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ try {
+ InlineResponse2004 result = apiInstance.getLoyaltyProgramProfilePoints(loyaltyProgramId, integrationId, status, subledgerId, pageSize, skip);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getLoyaltyProgramProfilePoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -1226,7 +1274,7 @@ Name | Type | Description | Notes
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
-### Return type
+### Return type cool
[**InlineResponse2004**](InlineResponse2004.md)
@@ -1236,19 +1284,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyProgramProfileTransactions
-
-# **getLoyaltyProgramProfileTransactions**
> InlineResponse2002 getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip)
List customer's loyalty transactions
@@ -1256,6 +1305,7 @@ List customer's loyalty transactions
Retrieve paginated results of loyalty transaction logs for the given Integration ID in the specified loyalty program. You can filter transactions by date. If no filters are applied, the last 50 loyalty transactions for the given integration ID are returned. **Note:** To retrieve all loyalty program transaction logs in a given loyalty program, use the [List loyalty program transactions](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyProgramTransactions) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1266,41 +1316,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
- String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
- String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file.
- OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- Integer pageSize = 50; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- try {
- InlineResponse2002 result = apiInstance.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getLoyaltyProgramProfileTransactions");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
+ String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
+ String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file.
+ OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ Integer pageSize = 50; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ try {
+ InlineResponse2002 result = apiInstance.getLoyaltyProgramProfileTransactions(loyaltyProgramId, integrationId, subledgerId, loyaltyTransactionType, startDate, endDate, pageSize, skip);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getLoyaltyProgramProfileTransactions");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -1312,7 +1363,7 @@ Name | Type | Description | Notes
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
-### Return type
+### Return type cool
[**InlineResponse2002**](InlineResponse2002.md)
@@ -1322,19 +1373,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getReservedCustomers
-
-# **getReservedCustomers**
> InlineResponse200 getReservedCustomers(couponValue)
List customers that have this coupon reserved
@@ -1342,6 +1394,7 @@ List customers that have this coupon reserved
Return all customers that have this coupon marked as reserved. This includes hard and soft reservations.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1352,39 +1405,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String couponValue = "couponValue_example"; // String | The code of the coupon.
- try {
- InlineResponse200 result = apiInstance.getReservedCustomers(couponValue);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#getReservedCustomers");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String couponValue = "couponValue_example"; // String | The code of the coupon.
+ try {
+ InlineResponse200 result = apiInstance.getReservedCustomers(couponValue);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#getReservedCustomers");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**couponValue** | **String**| The code of the coupon. |
-### Return type
+### Return type cool
[**InlineResponse200**](InlineResponse200.md)
@@ -1394,19 +1448,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## linkLoyaltyCardToProfile
-
-# **linkLoyaltyCardToProfile**
> LoyaltyCard linkLoyaltyCardToProfile(loyaltyProgramId, loyaltyCardId, body)
Link customer profile to card
@@ -1414,6 +1469,7 @@ Link customer profile to card
[Loyalty cards](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) allow customers to collect and spend loyalty points within a [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). They are useful to gamify loyalty programs and can be used with or without customer profiles linked to them. Link a customer profile to a given loyalty card for the card to be set as **Registered**. This affects how it can be used. See the [docs](https://docs.talon.one/docs/product/loyalty-programs/card-based/managing-loyalty-cards#linking-customer-profiles-to-a-loyalty-card). **Note:** You can link as many customer profiles to a given loyalty card as the [**card user limit**](https://docs.talon.one/docs/product/loyalty-programs/card-based/creating-cb-programs) allows.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1424,43 +1480,44 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- LoyaltyCardRegistration body = new LoyaltyCardRegistration(); // LoyaltyCardRegistration | body
- try {
- LoyaltyCard result = apiInstance.linkLoyaltyCardToProfile(loyaltyProgramId, loyaltyCardId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#linkLoyaltyCardToProfile");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ LoyaltyCardRegistration body = new LoyaltyCardRegistration(); // LoyaltyCardRegistration | body
+ try {
+ LoyaltyCard result = apiInstance.linkLoyaltyCardToProfile(loyaltyProgramId, loyaltyCardId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#linkLoyaltyCardToProfile");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. |
**body** | [**LoyaltyCardRegistration**](LoyaltyCardRegistration.md)| body |
-### Return type
+### Return type cool
[**LoyaltyCard**](LoyaltyCard.md)
@@ -1470,19 +1527,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## reopenCustomerSession
-
-# **reopenCustomerSession**
> ReopenSessionResponse reopenCustomerSession(customerSessionId)
Reopen customer session
@@ -1490,6 +1548,7 @@ Reopen customer session
Reopen a closed [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). For example, if a session has been completed but still needs to be edited, you can reopen it with this endpoint. A reopen session is treated like a standard open session. When reopening a session: - The `talon_session_reopened` event is triggered. You can see it in the **Events** view in the Campaign Manager. - The session state is updated to `open`. - Modified budgets and triggered effects when the session was closed are rolled back except for the list below. <details> <summary><strong>Effects and budgets unimpacted by a session reopening</strong></summary> <div> <p>The following effects and budgets are left the way they were once the session was originally closed:</p> <ul> <li>Add free item effect</li> <li>Any <strong>non-pending</strong> loyalty points</li> <li>Award giveaway</li> <li>Coupon and referral creation</li> <li>Coupon reservation</li> <li>Custom effect</li> <li>Update attribute value</li> <li>Update cart item attribute value</li> </ul> </div> <p>To see an example of roll back, see the <a href=\"https://docs.talon.one/docs/dev/tutorials/rolling-back-effects\">Cancelling a session with campaign budgets tutorial</a>.</p> </details> **Note:** If your order workflow requires you to create a new session instead of reopening a session, use the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint to cancel a closed session and create a new one.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1500,39 +1559,40 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
- try {
- ReopenSessionResponse result = apiInstance.reopenCustomerSession(customerSessionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#reopenCustomerSession");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
+ try {
+ ReopenSessionResponse result = apiInstance.reopenCustomerSession(customerSessionId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#reopenCustomerSession");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customerSessionId** | **String**| The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. |
-### Return type
+### Return type cool
[**ReopenSessionResponse**](ReopenSessionResponse.md)
@@ -1542,18 +1602,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+
+
+## returnCartItems
-
-# **returnCartItems**
> IntegrationStateV2 returnCartItems(customerSessionId, body, dry)
Return cart items
@@ -1561,6 +1622,7 @@ Return cart items
Create a new return request for the specified cart items. This endpoint automatically changes the session state from `closed` to `partially_returned`. **Note:** This will roll back any effects associated with these cart items. For more information, see [our documentation on session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) and [this tutorial](https://docs.talon.one/docs/dev/tutorials/partially-returning-a-session).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1571,43 +1633,44 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
- ReturnIntegrationRequest body = new ReturnIntegrationRequest(); // ReturnIntegrationRequest | body
- Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`.
- try {
- IntegrationStateV2 result = apiInstance.returnCartItems(customerSessionId, body, dry);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#returnCartItems");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
+ ReturnIntegrationRequest body = new ReturnIntegrationRequest(); // ReturnIntegrationRequest | body
+ Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`.
+ try {
+ IntegrationStateV2 result = apiInstance.returnCartItems(customerSessionId, body, dry);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#returnCartItems");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customerSessionId** | **String**| The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. |
**body** | [**ReturnIntegrationRequest**](ReturnIntegrationRequest.md)| body |
**dry** | **Boolean**| Indicates whether to persist the changes. Changes are ignored when `dry=true`. | [optional]
-### Return type
+### Return type cool
[**IntegrationStateV2**](IntegrationStateV2.md)
@@ -1617,18 +1680,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+
+
+## syncCatalog
-
-# **syncCatalog**
> Catalog syncCatalog(catalogId, body)
Sync cart item catalog
@@ -1636,6 +1700,7 @@ Sync cart item catalog
Perform the following actions for a given cart item catalog: - Add an item to the catalog. - Add multiple items to the catalog. - Update the attributes of an item in the catalog. - Update the attributes of multiple items in the catalog. - Remove an item from the catalog. - Remove multiple items from the catalog. You can either add, update, or delete up to 1000 cart items in a single request. Each item synced to a catalog must have a unique `SKU`. **Important**: You can perform only one type of action in a single sync request. Syncing items with duplicate `SKU` values in a single request returns an error message with a `400` status code. For more information, read [managing cart item catalogs](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). ### Filtering cart items Use [cart item attributes](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) to filter items and select the ones you want to edit or delete when editing or deleting more than one item at a time. The `filters` array contains an object with the following properties: - `attr`: A [cart item attribute](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes) connected to the catalog. It is applied to all items in the catalog. - `op`: The filtering operator indicating the relationship between the value of each cart item in the catalog and the value of the `value` property for the attribute selected in `attr`. The value of `op` can be one of the following: - `EQ`: Equal to `value` - `LT`: Less than `value` - `LE`: Less than or equal to `value` - `GT`: Greater than `value` - `GE`: Greater than or equal to `value` - `IN`: One of the comma-separated values that `value` is set to. **Note:** `GE`, `LE`, `GT`, `LT` are for numeric values only. - `value`: The value of the attribute selected in `attr`. ### Payload examples Synchronization actions are sent as `PUT` requests. See the structure for each action: <details> <summary><strong>Adding an item to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Adding multiple items to the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241027\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" }, { \"payload\": { \"attributes\": { \"color\": \"Navy blue\", \"type\": \"shoes\" }, \"replaceIfExists\": true, \"sku\": \"SKU1241028\", \"price\": 100, \"product\": { \"name\": \"sneakers\" } }, \"type\": \"ADD\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of an item in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"age\": 11, \"origin\": \"germany\" }, \"createIfNotExists\": false, \"sku\": \"SKU1241028\", \"product\": { \"name\": \"sneakers\" } }, \"type\": \"PATCH\" } ] } ``` </div> </details> <details> <summary><strong>Updating the attributes of multiple items in the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"attributes\": { \"color\": \"red\" }, \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"PATCH_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing an item from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"sku\": \"SKU1241028\" }, \"type\": \"REMOVE\" } ] } ``` </div> </details> <details> <summary><strong>Removing multiple items from the catalog</strong></summary> <div> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"color\", \"op\": \"EQ\", \"value\": \"blue\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details> <details> <summary><strong>Removing shoes of sizes above 45 from the catalog</strong></summary> <div> <p> Let's imagine that we have a shoe store and we have decided to stop selling shoes larger than size 45. We can remove from the catalog all the shoes of sizes above 45 with a single action:</p> ```json { \"actions\": [ { \"payload\": { \"filters\": [ { \"attr\": \"size\", \"op\": \"GT\", \"value\": \"45\" } ] }, \"type\": \"REMOVE_MANY\" } ] } ``` </div> </details>
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1646,41 +1711,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
- CatalogSyncRequest body = new CatalogSyncRequest(); // CatalogSyncRequest | body
- try {
- Catalog result = apiInstance.syncCatalog(catalogId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#syncCatalog");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
+ CatalogSyncRequest body = new CatalogSyncRequest(); // CatalogSyncRequest | body
+ try {
+ Catalog result = apiInstance.syncCatalog(catalogId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#syncCatalog");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**catalogId** | **Integer**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. |
**body** | [**CatalogSyncRequest**](CatalogSyncRequest.md)| body |
-### Return type
+### Return type cool
[**Catalog**](Catalog.md)
@@ -1690,19 +1756,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## trackEventV2
-
-# **trackEventV2**
> TrackEventV2Response trackEventV2(body, silent, dry)
Track event
@@ -1710,6 +1777,7 @@ Track event
Triggers a custom event. To use this endpoint: 1. Define a [custom event](https://docs.talon.one/docs/dev/concepts/entities/events#creating-a-custom-event) in the Campaign Manager. 1. Update or create a rule to check for this event. 1. Trigger the event with this endpoint. After you have successfully sent an event to Talon.One, you can list the received events in the **Events** view in the Campaign Manager. Talon.One also offers a set of [built-in events](https://docs.talon.one/docs/dev/concepts/entities/events). Ensure you do not create a custom event when you can use a built-in event. For example, use this endpoint to trigger an event when a customer shares a link to a product. See the [tutorial](https://docs.talon.one/docs/product/tutorials/referrals/incentivizing-product-link-sharing). <div class=\"redoc-section\"> <p class=\"title\">Important</p> 1. `profileId` is required even though the schema does not say it. 1. If the customer profile ID is new, a new profile is automatically created but the `customer_profile_created` [built-in event ](https://docs.talon.one/docs/dev/concepts/entities/events) is **not** triggered. 1. We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div>
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1720,43 +1788,44 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- IntegrationEventV2Request body = new IntegrationEventV2Request(); // IntegrationEventV2Request | body
- String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
- Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`.
- try {
- TrackEventV2Response result = apiInstance.trackEventV2(body, silent, dry);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#trackEventV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ IntegrationEventV2Request body = new IntegrationEventV2Request(); // IntegrationEventV2Request | body
+ String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
+ Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`.
+ try {
+ TrackEventV2Response result = apiInstance.trackEventV2(body, silent, dry);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#trackEventV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**IntegrationEventV2Request**](IntegrationEventV2Request.md)| body |
**silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"]
**dry** | **Boolean**| Indicates whether to persist the changes. Changes are ignored when `dry=true`. | [optional]
-### Return type
+### Return type cool
[**TrackEventV2Response**](TrackEventV2Response.md)
@@ -1766,19 +1835,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**409** | Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **409** | Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). | - |
+
+
+## updateAudienceCustomersAttributes
-
-# **updateAudienceCustomersAttributes**
> updateAudienceCustomersAttributes(audienceId, body)
Update profile attributes for all customers in audience
@@ -1786,6 +1856,7 @@ Update profile attributes for all customers in audience
Update the specified profile attributes to the provided values for all customers in the specified audience.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1796,40 +1867,41 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer audienceId = 56; // Integer | The ID of the audience.
- Object body = null; // Object | body
- try {
- apiInstance.updateAudienceCustomersAttributes(audienceId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#updateAudienceCustomersAttributes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer audienceId = 56; // Integer | The ID of the audience.
+ Object body = null; // Object | body
+ try {
+ apiInstance.updateAudienceCustomersAttributes(audienceId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#updateAudienceCustomersAttributes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceId** | **Integer**| The ID of the audience. |
**body** | **Object**| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -1839,18 +1911,19 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## updateAudienceV2
-
-# **updateAudienceV2**
> Audience updateAudienceV2(audienceId, body)
Update audience name
@@ -1858,6 +1931,7 @@ Update audience name
Update the name of the given audience created by a third-party integration. Sending a request to this endpoint does **not** trigger the Rule Engine. To update the audience's members, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1868,41 +1942,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- Integer audienceId = 56; // Integer | The ID of the audience.
- UpdateAudience body = new UpdateAudience(); // UpdateAudience | body
- try {
- Audience result = apiInstance.updateAudienceV2(audienceId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#updateAudienceV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ Integer audienceId = 56; // Integer | The ID of the audience.
+ UpdateAudience body = new UpdateAudience(); // UpdateAudience | body
+ try {
+ Audience result = apiInstance.updateAudienceV2(audienceId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#updateAudienceV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceId** | **Integer**| The ID of the audience. |
**body** | [**UpdateAudience**](UpdateAudience.md)| body |
-### Return type
+### Return type cool
[**Audience**](Audience.md)
@@ -1912,18 +1987,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## updateCustomerProfileAudiences
-
-# **updateCustomerProfileAudiences**
> updateCustomerProfileAudiences(body)
Update multiple customer profiles' audiences
@@ -1931,6 +2007,7 @@ Update multiple customer profiles' audiences
Add customer profiles to or remove them from an audience. The endpoint supports 1000 audience actions (`add` or `remove`) per request. **Note:** You can also do this using the [Update audience](https://docs.talon.one/docs/product/rules/effects/using-effects#updating-an-audience) effect.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1941,38 +2018,39 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- CustomerProfileAudienceRequest body = new CustomerProfileAudienceRequest(); // CustomerProfileAudienceRequest | body
- try {
- apiInstance.updateCustomerProfileAudiences(body);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#updateCustomerProfileAudiences");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ CustomerProfileAudienceRequest body = new CustomerProfileAudienceRequest(); // CustomerProfileAudienceRequest | body
+ try {
+ apiInstance.updateCustomerProfileAudiences(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#updateCustomerProfileAudiences");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**CustomerProfileAudienceRequest**](CustomerProfileAudienceRequest.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -1982,19 +2060,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## updateCustomerProfileV2
-
-# **updateCustomerProfileV2**
> CustomerProfileIntegrationResponseV2 updateCustomerProfileV2(integrationId, body, runRuleEngine, dry)
Update customer profile
@@ -2002,6 +2081,7 @@ Update customer profile
Update or create a [Customer Profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles). This endpoint triggers the Rule Builder. You can use this endpoint to: - Set attributes on the given customer profile. Ensure you create the attributes in the Campaign Manager, first. - Modify the audience the customer profile is a member of. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer profile returns a response with the requested integration state. - You can use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div>
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2012,37 +2092,38 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
- CustomerProfileIntegrationRequestV2 body = new CustomerProfileIntegrationRequestV2(); // CustomerProfileIntegrationRequestV2 | body
- Boolean runRuleEngine = false; // Boolean | Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body.
- Boolean dry = true; // Boolean | (Only works when `runRuleEngine=true`) Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`, you can use the `evaluableCampaignIds` body property to select specific campaigns to run.
- try {
- CustomerProfileIntegrationResponseV2 result = apiInstance.updateCustomerProfileV2(integrationId, body, runRuleEngine, dry);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#updateCustomerProfileV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String integrationId = "integrationId_example"; // String | The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier.
+ CustomerProfileIntegrationRequestV2 body = new CustomerProfileIntegrationRequestV2(); // CustomerProfileIntegrationRequestV2 | body
+ Boolean runRuleEngine = false; // Boolean | Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body.
+ Boolean dry = true; // Boolean | (Only works when `runRuleEngine=true`) Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`, you can use the `evaluableCampaignIds` body property to select specific campaigns to run.
+ try {
+ CustomerProfileIntegrationResponseV2 result = apiInstance.updateCustomerProfileV2(integrationId, body, runRuleEngine, dry);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#updateCustomerProfileV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**integrationId** | **String**| The integration identifier for this customer profile. Must be: - Unique within the deployment. - Stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. Once set, you cannot update this identifier. |
@@ -2050,7 +2131,7 @@ Name | Type | Description | Notes
**runRuleEngine** | **Boolean**| Indicates whether to run the Rule Engine. If `true`, the response includes: - The effects generated by the triggered campaigns are returned in the `effects` property. - The created coupons and referral objects. If `false`: - The rules are not executed and the `effects` property is always empty. - The response time improves. - You cannot use `responseContent` in the body. | [optional] [default to false]
**dry** | **Boolean**| (Only works when `runRuleEngine=true`) Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`, you can use the `evaluableCampaignIds` body property to select specific campaigns to run. | [optional]
-### Return type
+### Return type cool
[**CustomerProfileIntegrationResponseV2**](CustomerProfileIntegrationResponseV2.md)
@@ -2060,19 +2141,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**409** | Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **409** | Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). | - |
+
+
+## updateCustomerProfilesV2
-
-# **updateCustomerProfilesV2**
> MultipleCustomerProfileIntegrationResponseV2 updateCustomerProfilesV2(body, silent)
Update multiple customer profiles
@@ -2080,6 +2162,7 @@ Update multiple customer profiles
Update (or create) up to 1000 [customer profiles](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) in 1 request. The `integrationId` must be any identifier that remains stable for the customer. Do not use an ID that the customer can update themselves. For example, you can use a database ID. A customer profile [can be linked to one or more sessions](https://docs.talon.one/integration-api#tag/Customer-sessions). **Note:** This endpoint does not trigger the Rule Engine. To trigger the Rule Engine for customer profile updates, use the [Update customer profile](#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2090,41 +2173,42 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- MultipleCustomerProfileIntegrationRequest body = new MultipleCustomerProfileIntegrationRequest(); // MultipleCustomerProfileIntegrationRequest | body
- String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
- try {
- MultipleCustomerProfileIntegrationResponseV2 result = apiInstance.updateCustomerProfilesV2(body, silent);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#updateCustomerProfilesV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ MultipleCustomerProfileIntegrationRequest body = new MultipleCustomerProfileIntegrationRequest(); // MultipleCustomerProfileIntegrationRequest | body
+ String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
+ try {
+ MultipleCustomerProfileIntegrationResponseV2 result = apiInstance.updateCustomerProfilesV2(body, silent);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#updateCustomerProfilesV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**MultipleCustomerProfileIntegrationRequest**](MultipleCustomerProfileIntegrationRequest.md)| body |
**silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"]
-### Return type
+### Return type cool
[**MultipleCustomerProfileIntegrationResponseV2**](MultipleCustomerProfileIntegrationResponseV2.md)
@@ -2134,18 +2218,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+
+
+## updateCustomerSessionV2
-
-# **updateCustomerSessionV2**
> IntegrationStateV2 updateCustomerSessionV2(customerSessionId, body, dry, now)
Update customer session
@@ -2153,6 +2238,7 @@ Update customer session
Update or create a [customer session](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). The endpoint responds with the potential promotion rule [effects](https://docs.talon.one/docs/dev/integration-api/api-effects) that match the current cart. For example, use this endpoint to share the contents of a customer's cart with Talon.One. **Note:** The currency for the session and the cart items in the session is the currency set for the Application that owns this session. ### Session management To use this endpoint, start by learning about [customer sessions](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions) and their states and refer to the `state` parameter documentation the request body schema docs below. ### Sessions and customer profiles - To link a session to a customer profile, set the `profileId` parameter in the request body to a customer profile's `integrationId`. - While you can create an anonymous session with `profileId=\"\"`, we recommend you use a guest ID instead. - A profile can be linked to simultaneous sessions in different Applications. Either: - Use unique session integration IDs or, - Use the same session integration ID across all of the Applications. **Note:** If the specified profile does not exist, an empty profile is **created automatically**. You can update it with [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2). <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> - Updating a customer session returns a response with the new integration state. Use the `responseContent` property to save yourself extra API calls. For example, you can get the customer profile details directly without extra requests. - We recommend sending requests sequentially. See [Managing parallel requests](https://docs.talon.one/docs/dev/getting-started/integration-tutorial#managing-parallel-requests). </div> For more information, see: - The introductory video in [Getting started](https://docs.talon.one/docs/dev/getting-started/overview). - The [integration tutorial](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2163,37 +2249,38 @@ import one.talon.models.*;
import one.talon.api.IntegrationApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: api_key_v1
- ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
- api_key_v1.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //api_key_v1.setApiKeyPrefix("Token");
-
- IntegrationApi apiInstance = new IntegrationApi(defaultClient);
- String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
- IntegrationRequest body = new IntegrationRequest(); // IntegrationRequest | body
- Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests).
- OffsetDateTime now = new OffsetDateTime(); // OffsetDateTime | A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`.
- try {
- IntegrationStateV2 result = apiInstance.updateCustomerSessionV2(customerSessionId, body, dry, now);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling IntegrationApi#updateCustomerSessionV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: api_key_v1
+ ApiKeyAuth api_key_v1 = (ApiKeyAuth) defaultClient.getAuthentication("api_key_v1");
+ api_key_v1.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //api_key_v1.setApiKeyPrefix("Token");
+
+ IntegrationApi apiInstance = new IntegrationApi(defaultClient);
+ String customerSessionId = "customerSessionId_example"; // String | The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint.
+ IntegrationRequest body = new IntegrationRequest(); // IntegrationRequest | body
+ Boolean dry = true; // Boolean | Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests).
+ OffsetDateTime now = new OffsetDateTime(); // OffsetDateTime | A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`.
+ try {
+ IntegrationStateV2 result = apiInstance.updateCustomerSessionV2(customerSessionId, body, dry, now);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling IntegrationApi#updateCustomerSessionV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customerSessionId** | **String**| The `integration ID` of the customer session. You set this ID when you create a customer session. You can see existing customer session integration IDs in the Campaign Manager's **Sessions** menu, or via the [List Application session](https://docs.talon.one/management-api#operation/getApplicationSessions) endpoint. |
@@ -2201,7 +2288,7 @@ Name | Type | Description | Notes
**dry** | **Boolean**| Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint considers **only** the payload that you pass when **closing** the session. When you do not use the `dry` parameter, the endpoint behaves as a typical PUT endpoint. Each update builds upon the previous ones. - You can use the `evaluableCampaignIds` body property to select specific campaigns to run. [See the docs](https://docs.talon.one/docs/dev/integration-api/dry-requests). | [optional]
**now** | **OffsetDateTime**| A timestamp value of a future date that acts as a current date when included in the query. Use this parameter, for example, to test campaigns that would be evaluated for this customer session in the future (say, [scheduled campaigns](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-schedule)). **Note:** - It must be an RFC3339 timestamp string. - It can **only** be a date in the future. - It can **only** be used if the `dry` parameter in the query is set to `true`. | [optional]
-### Return type
+### Return type cool
[**IntegrationStateV2**](IntegrationStateV2.md)
@@ -2211,14 +2298,14 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**409** | Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **409** | Too many requests or limit reached - Avoid parallel requests. See the [docs](https://docs.talon.one/docs/dev/tutorials/integrating-talon-one#managing-parallel-requests). | - |
diff --git a/docs/IntegrationCustomerSessionResponse.md b/docs/IntegrationCustomerSessionResponse.md
index 3e4e72d..c27cf08 100644
--- a/docs/IntegrationCustomerSessionResponse.md
+++ b/docs/IntegrationCustomerSessionResponse.md
@@ -7,7 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customerSession** | [**CustomerSessionV2**](CustomerSessionV2.md) | | [optional]
-**effects** | [**List<Effect>**](Effect.md) | | [optional]
+**effects** | [**List<Effect>**](Effect.md) | The returned effects. **Note:** This endpoint returns only the effects that are valid after any rollback effects and their corresponding non-rollback effects are removed. | [optional]
diff --git a/docs/LedgerInfo.md b/docs/LedgerInfo.md
index e3fe11e..8162baa 100644
--- a/docs/LedgerInfo.md
+++ b/docs/LedgerInfo.md
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
**pendingBalance** | [**BigDecimal**](BigDecimal.md) | Sum of pending points. |
**expiredBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. |
**spentBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. |
-**tentativeCurrentBalance** | [**BigDecimal**](BigDecimal.md) | Sum of the tentative active points (including additions and deductions) inside the currently open session. The `currentBalance` is updated to this value when you close the session, and the effects are applied. |
-**tentativePendingBalance** | [**BigDecimal**](BigDecimal.md) | Sum of pending points (including additions and deductions) inside the currently open session. The `pendingBalance` is updated to this value when you close the session, and the effects are applied. | [optional]
+**tentativeCurrentBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. |
+**tentativePendingBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | [optional]
**currentTier** | [**Tier**](Tier.md) | | [optional]
**pointsToNextTier** | [**BigDecimal**](BigDecimal.md) | Points required to move up a tier. | [optional]
diff --git a/docs/LimitConfig.md b/docs/LimitConfig.md
index 01339b7..077db9c 100644
--- a/docs/LimitConfig.md
+++ b/docs/LimitConfig.md
@@ -33,6 +33,7 @@ REFERRAL | "Referral"
PROFILE | "Profile"
IDENTIFIER | "Identifier"
STORE | "Store"
+SESSION | "Session"
diff --git a/docs/LoyaltyCard.md b/docs/LoyaltyCard.md
index 6a5458e..99d86df 100644
--- a/docs/LoyaltyCard.md
+++ b/docs/LoyaltyCard.md
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
**id** | **Integer** | Internal ID of this entity. |
**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. |
**programID** | **Integer** | The ID of the loyalty program that owns this entity. |
+**programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional]
+**programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional]
**status** | **String** | Status of the loyalty card. Can be `active` or `inactive`. |
**blockReason** | **String** | Reason for transferring and blocking the loyalty card. | [optional]
**identifier** | **String** | The alphanumeric identifier of the loyalty card. |
diff --git a/docs/LoyaltyProgramBalance.md b/docs/LoyaltyProgramBalance.md
index a0a0d20..5bf33a5 100644
--- a/docs/LoyaltyProgramBalance.md
+++ b/docs/LoyaltyProgramBalance.md
@@ -11,8 +11,8 @@ Name | Type | Description | Notes
**pendingBalance** | [**BigDecimal**](BigDecimal.md) | Sum of pending points. |
**expiredBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. |
**spentBalance** | [**BigDecimal**](BigDecimal.md) | **DEPRECATED** Value is shown as 0. |
-**tentativeCurrentBalance** | [**BigDecimal**](BigDecimal.md) | Sum of the tentative active points (including additions and deductions) inside the currently open session. The `currentBalance` is updated to this value when you close the session, and the effects are applied. |
-**tentativePendingBalance** | [**BigDecimal**](BigDecimal.md) | Sum of pending points (including additions and deductions) inside the currently open session. The `pendingBalance` is updated to this value when you close the session, and the effects are applied. | [optional]
+**tentativeCurrentBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `currentBalance` and all point additions and deductions within the current open customer session. When the session is closed, the effects are applied and the `currentBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. |
+**tentativePendingBalance** | [**BigDecimal**](BigDecimal.md) | The tentative points balance, reflecting the `pendingBalance` and all point additions with a future activation date within the current open customer session. When the session is closed, the effects are applied and the `pendingBalance` is updated to this value. **Note:** Tentative balances are specific to the current session and do not take into account other open sessions for the given customer. | [optional]
diff --git a/docs/LoyaltyProgramEntity.md b/docs/LoyaltyProgramEntity.md
index d959413..ccbfb0f 100644
--- a/docs/LoyaltyProgramEntity.md
+++ b/docs/LoyaltyProgramEntity.md
@@ -7,6 +7,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**programID** | **Integer** | The ID of the loyalty program that owns this entity. |
+**programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional]
+**programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional]
diff --git a/docs/LoyaltyTier.md b/docs/LoyaltyTier.md
index 910ccd3..66e877a 100644
--- a/docs/LoyaltyTier.md
+++ b/docs/LoyaltyTier.md
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
**id** | **Integer** | Internal ID of this entity. |
**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. |
**programID** | **Integer** | The ID of the loyalty program that owns this entity. |
+**programName** | **String** | The integration name of the loyalty program that owns this entity. | [optional]
+**programTitle** | **String** | The Campaign Manager-displayed name of the loyalty program that owns this entity. | [optional]
**name** | **String** | The name of the tier. |
**minPoints** | [**BigDecimal**](BigDecimal.md) | The minimum amount of points required to enter the tier. |
diff --git a/docs/ManagementApi.md b/docs/ManagementApi.md
index 02c0d84..aa25e1d 100644
--- a/docs/ManagementApi.md
+++ b/docs/ManagementApi.md
@@ -1,6 +1,6 @@
# ManagementApi
-All URIs are relative to *https://yourbaseurl.talon.one*
+All URLs are relative to `https://yourbaseurl.talon.one`.
Method | HTTP request | Description
------------- | ------------- | -------------
@@ -63,7 +63,6 @@ Method | HTTP request | Description
[**getAchievement**](ManagementApi.md#getAchievement) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/achievements/{achievementId} | Get achievement
[**getAdditionalCost**](ManagementApi.md#getAdditionalCost) | **GET** /v1/additional_costs/{additionalCostId} | Get additional cost
[**getAdditionalCosts**](ManagementApi.md#getAdditionalCosts) | **GET** /v1/additional_costs | List additional costs
-[**getAllAccessLogs**](ManagementApi.md#getAllAccessLogs) | **GET** /v1/access_logs | List access logs
[**getApplication**](ManagementApi.md#getApplication) | **GET** /v1/applications/{applicationId} | Get Application
[**getApplicationApiHealth**](ManagementApi.md#getApplicationApiHealth) | **GET** /v1/applications/{applicationId}/health_report | Get Application health
[**getApplicationCustomer**](ManagementApi.md#getApplicationCustomer) | **GET** /v1/applications/{applicationId}/customers/{customerId} | Get application's customer
@@ -172,8 +171,9 @@ Method | HTTP request | Description
[**updateUser**](ManagementApi.md#updateUser) | **PUT** /v1/users/{userId} | Update user
-
-# **activateUserByEmail**
+
+## activateUserByEmail
+
> activateUserByEmail(body)
Enable user by email address
@@ -181,6 +181,7 @@ Enable user by email address
Enable a [disabled user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -191,44 +192,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- DeactivateUserRequest body = new DeactivateUserRequest(); // DeactivateUserRequest | body
- try {
- apiInstance.activateUserByEmail(body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#activateUserByEmail");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ DeactivateUserRequest body = new DeactivateUserRequest(); // DeactivateUserRequest | body
+ try {
+ apiInstance.activateUserByEmail(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#activateUserByEmail");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **DeactivateUserRequest**| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -238,16 +240,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: Not defined
+- **Content-Type**: application/json
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## addLoyaltyCardPoints
-
-# **addLoyaltyCardPoints**
> addLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body)
Add points to card
@@ -255,6 +258,7 @@ Add points to card
Add points to the given loyalty card in the specified card-based loyalty program.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -265,48 +269,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- AddLoyaltyPoints body = new AddLoyaltyPoints(); // AddLoyaltyPoints | body
- try {
- apiInstance.addLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#addLoyaltyCardPoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ AddLoyaltyPoints body = new AddLoyaltyPoints(); // AddLoyaltyPoints | body
+ try {
+ apiInstance.addLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#addLoyaltyCardPoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. |
**body** | [**AddLoyaltyPoints**](AddLoyaltyPoints.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -316,19 +321,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## addLoyaltyPoints
-
-# **addLoyaltyPoints**
> addLoyaltyPoints(loyaltyProgramId, integrationId, body)
Add points to customer profile
@@ -336,6 +342,7 @@ Add points to customer profile
Add points in the specified loyalty program for the given customer. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -346,48 +353,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
- String integrationId = "integrationId_example"; // String | The identifier of the profile.
- AddLoyaltyPoints body = new AddLoyaltyPoints(); // AddLoyaltyPoints | body
- try {
- apiInstance.addLoyaltyPoints(loyaltyProgramId, integrationId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#addLoyaltyPoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
+ String integrationId = "integrationId_example"; // String | The identifier of the profile.
+ AddLoyaltyPoints body = new AddLoyaltyPoints(); // AddLoyaltyPoints | body
+ try {
+ apiInstance.addLoyaltyPoints(loyaltyProgramId, integrationId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#addLoyaltyPoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **String**| The identifier for the loyalty program. |
**integrationId** | **String**| The identifier of the profile. |
**body** | [**AddLoyaltyPoints**](AddLoyaltyPoints.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -397,19 +405,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## copyCampaignToApplications
-
-# **copyCampaignToApplications**
> InlineResponse2006 copyCampaignToApplications(applicationId, campaignId, body)
Copy the campaign into the specified Application
@@ -417,6 +426,7 @@ Copy the campaign into the specified Application
Copy the campaign into all specified Applications.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -427,49 +437,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- CampaignCopy body = new CampaignCopy(); // CampaignCopy | body
- try {
- InlineResponse2006 result = apiInstance.copyCampaignToApplications(applicationId, campaignId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#copyCampaignToApplications");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ CampaignCopy body = new CampaignCopy(); // CampaignCopy | body
+ try {
+ InlineResponse2006 result = apiInstance.copyCampaignToApplications(applicationId, campaignId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#copyCampaignToApplications");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**body** | [**CampaignCopy**](CampaignCopy.md)| body |
-### Return type
+### Return type cool
[**InlineResponse2006**](InlineResponse2006.md)
@@ -479,16 +490,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## createAccountCollection
-
-# **createAccountCollection**
> Collection createAccountCollection(body)
Create account-level collection
@@ -496,6 +508,7 @@ Create account-level collection
Create an account-level collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -506,45 +519,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewCollection body = new NewCollection(); // NewCollection | body
- try {
- Collection result = apiInstance.createAccountCollection(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createAccountCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewCollection body = new NewCollection(); // NewCollection | body
+ try {
+ Collection result = apiInstance.createAccountCollection(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createAccountCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewCollection**](NewCollection.md)| body |
-### Return type
+### Return type cool
[**Collection**](Collection.md)
@@ -554,19 +568,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**409** | Conflict. A collection with this name already exists. | - |
+| **201** | Created | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **409** | Conflict. A collection with this name already exists. | - |
+
+
+## createAchievement
-
-# **createAchievement**
> Achievement createAchievement(applicationId, campaignId, body)
Create achievement
@@ -574,6 +589,7 @@ Create achievement
Create a new achievement in a specific campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -584,49 +600,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- CreateAchievement body = new CreateAchievement(); // CreateAchievement | body
- try {
- Achievement result = apiInstance.createAchievement(applicationId, campaignId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createAchievement");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ CreateAchievement body = new CreateAchievement(); // CreateAchievement | body
+ try {
+ Achievement result = apiInstance.createAchievement(applicationId, campaignId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createAchievement");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**body** | [**CreateAchievement**](CreateAchievement.md)| body |
-### Return type
+### Return type cool
[**Achievement**](Achievement.md)
@@ -636,19 +653,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**409** | Conflict. An achievement with this name or title already exists. | - |
+| **201** | Created | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **409** | Conflict. An achievement with this name or title already exists. | - |
+
+
+## createAdditionalCost
-
-# **createAdditionalCost**
> AccountAdditionalCost createAdditionalCost(body)
Create additional cost
@@ -656,6 +674,7 @@ Create additional cost
Create an [additional cost](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). These additional costs are shared across all applications in your account, and are never required.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -666,45 +685,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewAdditionalCost body = new NewAdditionalCost(); // NewAdditionalCost | body
- try {
- AccountAdditionalCost result = apiInstance.createAdditionalCost(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createAdditionalCost");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewAdditionalCost body = new NewAdditionalCost(); // NewAdditionalCost | body
+ try {
+ AccountAdditionalCost result = apiInstance.createAdditionalCost(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createAdditionalCost");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewAdditionalCost**](NewAdditionalCost.md)| body |
-### Return type
+### Return type cool
[**AccountAdditionalCost**](AccountAdditionalCost.md)
@@ -714,16 +734,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## createAttribute
-
-# **createAttribute**
> Attribute createAttribute(body)
Create custom attribute
@@ -731,6 +752,7 @@ Create custom attribute
Create a _custom attribute_ in this account. [Custom attributes](https://docs.talon.one/docs/dev/concepts/attributes) allow you to add data to Talon.One domain entities like campaigns, coupons, customers and so on. These attributes can then be given values when creating/updating these entities, and these values can be used in your campaign rules. For example, you could define a `zipCode` field for customer sessions, and add a rule to your campaign that only allows certain ZIP codes. These attributes are shared across all Applications in your account and are never required.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -741,45 +763,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewAttribute body = new NewAttribute(); // NewAttribute | body
- try {
- Attribute result = apiInstance.createAttribute(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createAttribute");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewAttribute body = new NewAttribute(); // NewAttribute | body
+ try {
+ Attribute result = apiInstance.createAttribute(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createAttribute");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewAttribute**](NewAttribute.md)| body |
-### Return type
+### Return type cool
[**Attribute**](Attribute.md)
@@ -789,16 +812,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## createBatchLoyaltyCards
-
-# **createBatchLoyaltyCards**
> LoyaltyCardBatchResponse createBatchLoyaltyCards(loyaltyProgramId, body)
Create loyalty cards
@@ -806,6 +830,7 @@ Create loyalty cards
Create a batch of loyalty cards in a specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types). Customers can use loyalty cards to collect and spend loyalty points. **Important:** - The specified card-based loyalty program must have a defined card code format that is used to generate the loyalty card codes. - Trying to create more than 20,000 loyalty cards in a single request returns an error message with a `400` status code.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -816,47 +841,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- LoyaltyCardBatch body = new LoyaltyCardBatch(); // LoyaltyCardBatch | body
- try {
- LoyaltyCardBatchResponse result = apiInstance.createBatchLoyaltyCards(loyaltyProgramId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createBatchLoyaltyCards");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ LoyaltyCardBatch body = new LoyaltyCardBatch(); // LoyaltyCardBatch | body
+ try {
+ LoyaltyCardBatchResponse result = apiInstance.createBatchLoyaltyCards(loyaltyProgramId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createBatchLoyaltyCards");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**body** | [**LoyaltyCardBatch**](LoyaltyCardBatch.md)| body |
-### Return type
+### Return type cool
[**LoyaltyCardBatchResponse**](LoyaltyCardBatchResponse.md)
@@ -866,19 +892,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## createCampaignFromTemplate
-
-# **createCampaignFromTemplate**
> CreateTemplateCampaignResponse createCampaignFromTemplate(applicationId, body)
Create campaign from campaign template
@@ -886,6 +913,7 @@ Create campaign from campaign template
Use the campaign template referenced in the request body to create a new campaign in one of the connected Applications. If the template was created from a campaign with rules referencing [campaign collections](https://docs.talon.one/docs/product/campaigns/managing-collections), the corresponding collections for the new campaign are created automatically.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -896,47 +924,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- CreateTemplateCampaign body = new CreateTemplateCampaign(); // CreateTemplateCampaign | body
- try {
- CreateTemplateCampaignResponse result = apiInstance.createCampaignFromTemplate(applicationId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createCampaignFromTemplate");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ CreateTemplateCampaign body = new CreateTemplateCampaign(); // CreateTemplateCampaign | body
+ try {
+ CreateTemplateCampaignResponse result = apiInstance.createCampaignFromTemplate(applicationId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createCampaignFromTemplate");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**body** | [**CreateTemplateCampaign**](CreateTemplateCampaign.md)| body |
-### Return type
+### Return type cool
[**CreateTemplateCampaignResponse**](CreateTemplateCampaignResponse.md)
@@ -946,16 +975,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## createCollection
-
-# **createCollection**
> Collection createCollection(applicationId, campaignId, body)
Create campaign-level collection
@@ -963,6 +993,7 @@ Create campaign-level collection
Create a campaign-level collection in a given campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -973,49 +1004,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- NewCampaignCollection body = new NewCampaignCollection(); // NewCampaignCollection | body
- try {
- Collection result = apiInstance.createCollection(applicationId, campaignId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ NewCampaignCollection body = new NewCampaignCollection(); // NewCampaignCollection | body
+ try {
+ Collection result = apiInstance.createCollection(applicationId, campaignId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**body** | [**NewCampaignCollection**](NewCampaignCollection.md)| body |
-### Return type
+### Return type cool
[**Collection**](Collection.md)
@@ -1025,16 +1057,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## createCoupons
-
-# **createCoupons**
> InlineResponse2008 createCoupons(applicationId, campaignId, body, silent)
Create coupons
@@ -1042,6 +1075,7 @@ Create coupons
Create coupons according to some pattern. Up to 20.000 coupons can be created without a unique prefix. When a unique prefix is provided, up to 200.000 coupons can be created.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1052,43 +1086,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- NewCoupons body = new NewCoupons(); // NewCoupons | body
- String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
- try {
- InlineResponse2008 result = apiInstance.createCoupons(applicationId, campaignId, body, silent);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createCoupons");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ NewCoupons body = new NewCoupons(); // NewCoupons | body
+ String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
+ try {
+ InlineResponse2008 result = apiInstance.createCoupons(applicationId, campaignId, body, silent);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createCoupons");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -1096,7 +1131,7 @@ Name | Type | Description | Notes
**body** | [**NewCoupons**](NewCoupons.md)| body |
**silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"]
-### Return type
+### Return type cool
[**InlineResponse2008**](InlineResponse2008.md)
@@ -1106,17 +1141,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**204** | No Content | - |
+| **200** | OK | - |
+| **204** | No Content | - |
+
+
+## createCouponsAsync
-
-# **createCouponsAsync**
> AsyncCouponCreationResponse createCouponsAsync(applicationId, campaignId, body)
Create coupons asynchronously
@@ -1124,6 +1160,7 @@ Create coupons asynchronously
Create up to 5,000,000 coupons asynchronously. You should typically use this enpdoint when you create at least 20,001 coupons. You receive an email when the creation is complete. If you want to create less than 20,001 coupons, you can use the [Create coupons](https://docs.talon.one/management-api#tag/Coupons/operation/createCoupons) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1134,49 +1171,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- NewCouponCreationJob body = new NewCouponCreationJob(); // NewCouponCreationJob | body
- try {
- AsyncCouponCreationResponse result = apiInstance.createCouponsAsync(applicationId, campaignId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createCouponsAsync");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ NewCouponCreationJob body = new NewCouponCreationJob(); // NewCouponCreationJob | body
+ try {
+ AsyncCouponCreationResponse result = apiInstance.createCouponsAsync(applicationId, campaignId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createCouponsAsync");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**body** | [**NewCouponCreationJob**](NewCouponCreationJob.md)| body |
-### Return type
+### Return type cool
[**AsyncCouponCreationResponse**](AsyncCouponCreationResponse.md)
@@ -1186,16 +1224,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## createCouponsDeletionJob
-
-# **createCouponsDeletionJob**
> AsyncCouponDeletionJobResponse createCouponsDeletionJob(applicationId, campaignId, body)
Creates a coupon deletion job
@@ -1203,6 +1242,7 @@ Creates a coupon deletion job
This endpoint handles creating a job to delete coupons asynchronously.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1213,49 +1253,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- NewCouponDeletionJob body = new NewCouponDeletionJob(); // NewCouponDeletionJob | body
- try {
- AsyncCouponDeletionJobResponse result = apiInstance.createCouponsDeletionJob(applicationId, campaignId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createCouponsDeletionJob");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ NewCouponDeletionJob body = new NewCouponDeletionJob(); // NewCouponDeletionJob | body
+ try {
+ AsyncCouponDeletionJobResponse result = apiInstance.createCouponsDeletionJob(applicationId, campaignId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createCouponsDeletionJob");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**body** | [**NewCouponDeletionJob**](NewCouponDeletionJob.md)| body |
-### Return type
+### Return type cool
[**AsyncCouponDeletionJobResponse**](AsyncCouponDeletionJobResponse.md)
@@ -1265,16 +1306,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**202** | The deletion request has been accepted and will be processed asynchronously | - |
+| **202** | The deletion request has been accepted and will be processed asynchronously | - |
+
+
+## createCouponsForMultipleRecipients
-
-# **createCouponsForMultipleRecipients**
> InlineResponse2008 createCouponsForMultipleRecipients(applicationId, campaignId, body, silent)
Create coupons for multiple recipients
@@ -1282,6 +1324,7 @@ Create coupons for multiple recipients
Create coupons according to some pattern for up to 1000 recipients.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1292,43 +1335,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- NewCouponsForMultipleRecipients body = new NewCouponsForMultipleRecipients(); // NewCouponsForMultipleRecipients | body
- String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
- try {
- InlineResponse2008 result = apiInstance.createCouponsForMultipleRecipients(applicationId, campaignId, body, silent);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createCouponsForMultipleRecipients");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ NewCouponsForMultipleRecipients body = new NewCouponsForMultipleRecipients(); // NewCouponsForMultipleRecipients | body
+ String silent = "\"yes\""; // String | Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles.
+ try {
+ InlineResponse2008 result = apiInstance.createCouponsForMultipleRecipients(applicationId, campaignId, body, silent);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createCouponsForMultipleRecipients");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -1336,7 +1380,7 @@ Name | Type | Description | Notes
**body** | [**NewCouponsForMultipleRecipients**](NewCouponsForMultipleRecipients.md)| body |
**silent** | **String**| Possible values: `yes` or `no`. - `yes`: Increases the perfomance of the API call by returning a 204 response. - `no`: Returns a 200 response that contains the updated customer profiles. | [optional] [default to "yes"]
-### Return type
+### Return type cool
[**InlineResponse2008**](InlineResponse2008.md)
@@ -1346,17 +1390,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**204** | No Content | - |
+| **200** | OK | - |
+| **204** | No Content | - |
+
+
+## createInviteEmail
-
-# **createInviteEmail**
> NewInviteEmail createInviteEmail(body)
Resend invitation email
@@ -1364,6 +1409,7 @@ Resend invitation email
Resend an email invitation to an existing user. **Note:** The invitation token is valid for 24 hours after the email has been sent.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1374,45 +1420,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewInviteEmail body = new NewInviteEmail(); // NewInviteEmail | body
- try {
- NewInviteEmail result = apiInstance.createInviteEmail(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createInviteEmail");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewInviteEmail body = new NewInviteEmail(); // NewInviteEmail | body
+ try {
+ NewInviteEmail result = apiInstance.createInviteEmail(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createInviteEmail");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewInviteEmail**](NewInviteEmail.md)| body |
-### Return type
+### Return type cool
[**NewInviteEmail**](NewInviteEmail.md)
@@ -1422,16 +1469,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## createInviteV2
-
-# **createInviteV2**
> User createInviteV2(body)
Invite user
@@ -1439,6 +1487,7 @@ Invite user
Create a new user in the account and send an invitation to their email address. **Note**: The invitation token is valid for 24 hours after the email has been sent. You can resend an invitation to a user with the [Resend invitation email](https://docs.talon.one/management-api#tag/Accounts-and-users/operation/createInviteEmail) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1449,45 +1498,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewInvitation body = new NewInvitation(); // NewInvitation | body
- try {
- User result = apiInstance.createInviteV2(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createInviteV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewInvitation body = new NewInvitation(); // NewInvitation | body
+ try {
+ User result = apiInstance.createInviteV2(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createInviteV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewInvitation**](NewInvitation.md)| body |
-### Return type
+### Return type cool
[**User**](User.md)
@@ -1497,16 +1547,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## createPasswordRecoveryEmail
-
-# **createPasswordRecoveryEmail**
> NewPasswordEmail createPasswordRecoveryEmail(body)
Request a password reset
@@ -1514,6 +1565,7 @@ Request a password reset
Send an email with a password recovery link to the email address of an existing account. **Note:** The password recovery link expires 30 minutes after this endpoint is triggered.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1524,45 +1576,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewPasswordEmail body = new NewPasswordEmail(); // NewPasswordEmail | body
- try {
- NewPasswordEmail result = apiInstance.createPasswordRecoveryEmail(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createPasswordRecoveryEmail");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewPasswordEmail body = new NewPasswordEmail(); // NewPasswordEmail | body
+ try {
+ NewPasswordEmail result = apiInstance.createPasswordRecoveryEmail(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createPasswordRecoveryEmail");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewPasswordEmail**](NewPasswordEmail.md)| body |
-### Return type
+### Return type cool
[**NewPasswordEmail**](NewPasswordEmail.md)
@@ -1572,16 +1625,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | Created | - |
+| **204** | Created | - |
+
+
+## createSession
-
-# **createSession**
> Session createSession(body)
Create session
@@ -1589,6 +1643,7 @@ Create session
Create a session to use the Management API endpoints. Use the value of the `token` property provided in the response as bearer token in other API calls. A token is valid for 3 months. In accordance with best pratices, use your generated token for all your API requests. Do **not** regenerate a token for each request. This endpoint has a rate limit of 3 to 6 requests per second per account, depending on your setup. <div class=\"redoc-section\"> <p class=\"title\">Granular API key</p> Instead of using a session, you can also use the <a href=\"https://docs.talon.one/docs/product/account/dev-tools/managing-mapi-keys\">Management API key feature</a> in the Campaign Manager to decide which endpoints can be used with a given key. </div>
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1599,45 +1654,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- LoginParams body = new LoginParams(); // LoginParams | body
- try {
- Session result = apiInstance.createSession(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createSession");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ LoginParams body = new LoginParams(); // LoginParams | body
+ try {
+ Session result = apiInstance.createSession(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createSession");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**LoginParams**](LoginParams.md)| body |
-### Return type
+### Return type cool
[**Session**](Session.md)
@@ -1647,16 +1703,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## createStore
-
-# **createStore**
> Store createStore(applicationId, body)
Create store
@@ -1664,6 +1721,7 @@ Create store
Create a new store in a specific Application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1674,47 +1732,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- NewStore body = new NewStore(); // NewStore | body
- try {
- Store result = apiInstance.createStore(applicationId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#createStore");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ NewStore body = new NewStore(); // NewStore | body
+ try {
+ Store result = apiInstance.createStore(applicationId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#createStore");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**body** | [**NewStore**](NewStore.md)| body |
-### Return type
+### Return type cool
[**Store**](Store.md)
@@ -1724,18 +1783,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
-**400** | Bad request | - |
-**409** | Conflict. A store with this integration ID already exists for this application. | - |
+| **201** | Created | - |
+| **400** | Bad request | - |
+| **409** | Conflict. A store with this integration ID already exists for this application. | - |
+
+
+## deactivateUserByEmail
-
-# **deactivateUserByEmail**
> deactivateUserByEmail(body)
Disable user by email address
@@ -1743,6 +1803,7 @@ Disable user by email address
[Disable a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#disabling-a-user) by their email address.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1753,44 +1814,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- DeactivateUserRequest body = new DeactivateUserRequest(); // DeactivateUserRequest | body
- try {
- apiInstance.deactivateUserByEmail(body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deactivateUserByEmail");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ DeactivateUserRequest body = new DeactivateUserRequest(); // DeactivateUserRequest | body
+ try {
+ apiInstance.deactivateUserByEmail(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deactivateUserByEmail");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**DeactivateUserRequest**](DeactivateUserRequest.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -1800,16 +1862,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: Not defined
+- **Content-Type**: application/json
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## deductLoyaltyCardPoints
-
-# **deductLoyaltyCardPoints**
> deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body)
Deduct points from card
@@ -1817,6 +1880,7 @@ Deduct points from card
Deduct points from the given loyalty card in the specified card-based loyalty program.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1827,48 +1891,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body
- try {
- apiInstance.deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deductLoyaltyCardPoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body
+ try {
+ apiInstance.deductLoyaltyCardPoints(loyaltyProgramId, loyaltyCardId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deductLoyaltyCardPoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. |
**body** | [**DeductLoyaltyPoints**](DeductLoyaltyPoints.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -1878,19 +1943,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## deleteAccountCollection
-
-# **deleteAccountCollection**
> deleteAccountCollection(collectionId)
Delete account-level collection
@@ -1898,6 +1964,7 @@ Delete account-level collection
Delete a given account-level collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1908,44 +1975,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
- try {
- apiInstance.deleteAccountCollection(collectionId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteAccountCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
+ try {
+ apiInstance.deleteAccountCollection(collectionId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteAccountCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
-### Return type
+### Return type cool
null (empty response body)
@@ -1955,17 +2023,18 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **404** | Not found | - |
+
+
+## deleteAchievement
-
-# **deleteAchievement**
> deleteAchievement(applicationId, campaignId, achievementId)
Delete achievement
@@ -1973,6 +2042,7 @@ Delete achievement
Delete the specified achievement.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -1983,48 +2053,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
- try {
- apiInstance.deleteAchievement(applicationId, campaignId, achievementId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteAchievement");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
+ try {
+ apiInstance.deleteAchievement(applicationId, campaignId, achievementId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteAchievement");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2034,18 +2105,19 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## deleteCampaign
-
-# **deleteCampaign**
> deleteCampaign(applicationId, campaignId)
Delete campaign
@@ -2053,6 +2125,7 @@ Delete campaign
Delete the given campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2063,46 +2136,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- try {
- apiInstance.deleteCampaign(applicationId, campaignId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteCampaign");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ try {
+ apiInstance.deleteCampaign(applicationId, campaignId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteCampaign");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2112,16 +2186,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## deleteCollection
-
-# **deleteCollection**
> deleteCollection(applicationId, campaignId, collectionId)
Delete campaign-level collection
@@ -2129,6 +2204,7 @@ Delete campaign-level collection
Delete a given campaign-level collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2139,48 +2215,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
- try {
- apiInstance.deleteCollection(applicationId, campaignId, collectionId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
+ try {
+ apiInstance.deleteCollection(applicationId, campaignId, collectionId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2190,17 +2267,18 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**401** | Unauthorized | - |
+| **204** | No Content | - |
+| **401** | Unauthorized | - |
+
+
+## deleteCoupon
-
-# **deleteCoupon**
> deleteCoupon(applicationId, campaignId, couponId)
Delete coupon
@@ -2208,6 +2286,7 @@ Delete coupon
Delete the specified coupon.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2218,48 +2297,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response.
- try {
- apiInstance.deleteCoupon(applicationId, campaignId, couponId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteCoupon");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response.
+ try {
+ apiInstance.deleteCoupon(applicationId, campaignId, couponId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteCoupon");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2269,16 +2349,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## deleteCoupons
-
-# **deleteCoupons**
> deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch)
Delete coupons
@@ -2286,6 +2367,7 @@ Delete coupons
Deletes all the coupons matching the specified criteria.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2296,53 +2378,54 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime startsAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime startsBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime expiresAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime expiresBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- String valid = "valid_example"; // String | - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future.
- String batchId = "batchId_example"; // String | Filter results by batches of coupons
- String usable = "usable_example"; // String | - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned.
- Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
- String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field.
- Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code
- try {
- apiInstance.deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteCoupons");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime startsAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime startsBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime expiresAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime expiresBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String valid = "valid_example"; // String | - `expired`: Matches coupons in which the expiration date is set and in the past. - `validNow`: Matches coupons in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches coupons in which start date is set and in the future.
+ String batchId = "batchId_example"; // String | Filter results by batches of coupons
+ String usable = "usable_example"; // String | - `true`: only coupons where `usageCounter < usageLimit` will be returned. - `false`: only coupons where `usageCounter >= usageLimit` will be returned.
+ Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
+ String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field.
+ Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code
+ try {
+ apiInstance.deleteCoupons(applicationId, campaignId, value, createdBefore, createdAfter, startsAfter, startsBefore, expiresAfter, expiresBefore, valid, batchId, usable, referralId, recipientIntegrationId, exactMatch);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteCoupons");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -2361,7 +2444,7 @@ Name | Type | Description | Notes
**recipientIntegrationId** | **String**| Filter results by match with a profile ID specified in the coupon's `RecipientIntegrationId` field. | [optional]
**exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code | [optional] [default to false]
-### Return type
+### Return type cool
null (empty response body)
@@ -2371,16 +2454,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## deleteLoyaltyCard
-
-# **deleteLoyaltyCard**
> deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId)
Delete loyalty card
@@ -2388,6 +2472,7 @@ Delete loyalty card
Delete the given loyalty card.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2398,46 +2483,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- try {
- apiInstance.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteLoyaltyCard");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ try {
+ apiInstance.deleteLoyaltyCard(loyaltyProgramId, loyaltyCardId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteLoyaltyCard");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2447,18 +2533,19 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## deleteReferral
-
-# **deleteReferral**
> deleteReferral(applicationId, campaignId, referralId)
Delete referral
@@ -2466,6 +2553,7 @@ Delete referral
Delete the specified referral.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2476,48 +2564,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- String referralId = "referralId_example"; // String | The ID of the referral code.
- try {
- apiInstance.deleteReferral(applicationId, campaignId, referralId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteReferral");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ String referralId = "referralId_example"; // String | The ID of the referral code.
+ try {
+ apiInstance.deleteReferral(applicationId, campaignId, referralId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteReferral");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**referralId** | **String**| The ID of the referral code. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2527,16 +2616,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## deleteStore
-
-# **deleteStore**
> deleteStore(applicationId, storeId)
Delete store
@@ -2544,6 +2634,7 @@ Delete store
Delete the specified store.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2554,46 +2645,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
- try {
- apiInstance.deleteStore(applicationId, storeId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteStore");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
+ try {
+ apiInstance.deleteStore(applicationId, storeId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteStore");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2603,17 +2695,18 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **404** | Not found | - |
+
+
+## deleteUser
-
-# **deleteUser**
> deleteUser(userId)
Delete user
@@ -2621,6 +2714,7 @@ Delete user
Delete a specific user.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2631,44 +2725,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer userId = 56; // Integer | The ID of the user.
- try {
- apiInstance.deleteUser(userId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer userId = 56; // Integer | The ID of the user.
+ try {
+ apiInstance.deleteUser(userId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **Integer**| The ID of the user. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2678,16 +2773,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## deleteUserByEmail
-
-# **deleteUserByEmail**
> deleteUserByEmail(body)
Delete user by email address
@@ -2695,6 +2791,7 @@ Delete user by email address
[Delete a specific user](https://docs.talon.one/docs/product/account/account-settings/managing-users#deleting-a-user) by their email address.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2705,44 +2802,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- DeactivateUserRequest body = new DeactivateUserRequest(); // DeactivateUserRequest | body
- try {
- apiInstance.deleteUserByEmail(body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#deleteUserByEmail");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ DeactivateUserRequest body = new DeactivateUserRequest(); // DeactivateUserRequest | body
+ try {
+ apiInstance.deleteUserByEmail(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#deleteUserByEmail");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **DeactivateUserRequest**| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -2752,16 +2850,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: Not defined
+- **Content-Type**: application/json
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## destroySession
-
-# **destroySession**
> destroySession()
Destroy session
@@ -2769,6 +2868,7 @@ Destroy session
Destroys the session.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2779,40 +2879,41 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- apiInstance.destroySession();
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#destroySession");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ apiInstance.destroySession();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#destroySession");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
null (empty response body)
@@ -2822,16 +2923,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## disconnectCampaignStores
-
-# **disconnectCampaignStores**
> disconnectCampaignStores(applicationId, campaignId)
Disconnect stores
@@ -2839,6 +2941,7 @@ Disconnect stores
Disconnect the stores linked to a specific campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2849,46 +2952,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- try {
- apiInstance.disconnectCampaignStores(applicationId, campaignId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#disconnectCampaignStores");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ try {
+ apiInstance.disconnectCampaignStores(applicationId, campaignId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#disconnectCampaignStores");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-### Return type
+### Return type cool
null (empty response body)
@@ -2898,19 +3002,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## exportAccountCollectionItems
-
-# **exportAccountCollectionItems**
> String exportAccountCollectionItems(collectionId)
Export account-level collection's items
@@ -2918,6 +3023,7 @@ Export account-level collection's items
Download a CSV file containing items from a given account-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -2928,45 +3034,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
- try {
- String result = apiInstance.exportAccountCollectionItems(collectionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportAccountCollectionItems");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
+ try {
+ String result = apiInstance.exportAccountCollectionItems(collectionId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportAccountCollectionItems");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
-### Return type
+### Return type cool
**String**
@@ -2976,18 +3083,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## exportAchievements
-
-# **exportAchievements**
> String exportAchievements(applicationId, campaignId, achievementId)
Export achievement customer data
@@ -2995,6 +3103,7 @@ Export achievement customer data
Download a CSV file containing a list of all the customers who have participated in and are currently participating in the given achievement. The CSV file contains the following columns: - `profileIntegrationID`: The integration ID of the customer profile participating in the achievement. - `title`: The display name of the achievement in the Campaign Manager. - `target`: The required number of actions or the transactional milestone to complete the achievement. - `progress`: The current progress of the customer in the achievement. - `status`: The status of the achievement. Can be one of: ['inprogress', 'completed', 'expired']. - `startDate`: The date on which the customer profile started the achievement in RFC3339. - `endDate`: The date on which the achievement ends and resets for the customer profile in RFC3339. - `completionDate`: The date on which the customer profile completed the achievement in RFC3339.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3005,49 +3114,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
- try {
- String result = apiInstance.exportAchievements(applicationId, campaignId, achievementId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportAchievements");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
+ try {
+ String result = apiInstance.exportAchievements(applicationId, campaignId, achievementId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportAchievements");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. |
-### Return type
+### Return type cool
**String**
@@ -3057,19 +3167,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## exportAudiencesMemberships
-
-# **exportAudiencesMemberships**
> String exportAudiencesMemberships(audienceId)
Export audience members
@@ -3077,6 +3188,7 @@ Export audience members
Download a CSV file containing the integration IDs of the members of an audience. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The file contains the following column: - `profileintegrationid`: The integration ID of the customer profile.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3087,45 +3199,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer audienceId = 56; // Integer | The ID of the audience.
- try {
- String result = apiInstance.exportAudiencesMemberships(audienceId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportAudiencesMemberships");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer audienceId = 56; // Integer | The ID of the audience.
+ try {
+ String result = apiInstance.exportAudiencesMemberships(audienceId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportAudiencesMemberships");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceId** | **Integer**| The ID of the audience. |
-### Return type
+### Return type cool
**String**
@@ -3135,19 +3248,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## exportCampaignStores
-
-# **exportCampaignStores**
> String exportCampaignStores(applicationId, campaignId)
Export stores
@@ -3155,6 +3269,7 @@ Export stores
Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3165,47 +3280,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- try {
- String result = apiInstance.exportCampaignStores(applicationId, campaignId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportCampaignStores");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ try {
+ String result = apiInstance.exportCampaignStores(applicationId, campaignId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportCampaignStores");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-### Return type
+### Return type cool
**String**
@@ -3215,19 +3331,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## exportCollectionItems
-
-# **exportCollectionItems**
> String exportCollectionItems(applicationId, campaignId, collectionId)
Export campaign-level collection's items
@@ -3235,6 +3352,7 @@ Export campaign-level collection's items
Download a CSV file containing items from a given campaign-level collection. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3245,49 +3363,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
- try {
- String result = apiInstance.exportCollectionItems(applicationId, campaignId, collectionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportCollectionItems");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
+ try {
+ String result = apiInstance.exportCollectionItems(applicationId, campaignId, collectionId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportCollectionItems");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
-### Return type
+### Return type cool
**String**
@@ -3297,18 +3416,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## exportCoupons
-
-# **exportCoupons**
> String exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly)
Export coupons
@@ -3316,6 +3436,7 @@ Export coupons
Download a CSV file containing the coupons that match the given properties. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file can contain the following columns: - `accountid`: The ID of your deployment. - `applicationid`: The ID of the Application this coupon is related to. - `attributes`: A json object describing _custom_ referral attribute names and their values. - `batchid`: The ID of the batch this coupon is part of. - `campaignid`: The ID of the campaign this coupon is related to. - `counter`: The number of times this coupon has been redeemed. - `created`: The creation date in RFC3339 of the coupon code. - `deleted`: Whether the coupon code is deleted. - `deleted_changelogid`: The ID of the delete event in the logs. - `discount_counter`: The amount of discount given by this coupon. - `discount_limitval`: The maximum discount amount that can be given be this coupon. - `expirydate`: The end date in RFC3339 of the code redemption period. - `id`: The internal ID of the coupon code. - `importid`: The ID of the import job that created this coupon. - `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed. - `limits`: The limits set on this coupon. - `limitval`: The maximum number of redemptions of this code. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect). - `reservation`: Whether the coupon can be reserved for multiple customers. - `reservation_counter`: How many times this coupon has been reserved. - `reservation_limitval`: The maximum of number of reservations this coupon can have. - `startdate`: The start date in RFC3339 of the code redemption period. - `value`: The coupon code.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3326,54 +3447,55 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
- String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
- Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
- String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field.
- String batchId = "batchId_example"; // String | Filter results by batches of coupons
- Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
- String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
- String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
- Boolean valuesOnly = false; // Boolean | Filter results to only return the coupon codes (`value` column) without the associated coupon data.
- try {
- String result = apiInstance.exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportCoupons");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
+ String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
+ Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
+ String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile id specified in the coupon's RecipientIntegrationId field.
+ String batchId = "batchId_example"; // String | Filter results by batches of coupons
+ Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
+ String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
+ String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
+ Boolean valuesOnly = false; // Boolean | Filter results to only return the coupon codes (`value` column) without the associated coupon data.
+ try {
+ String result = apiInstance.exportCoupons(applicationId, campaignId, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, dateFormat, campaignState, valuesOnly);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportCoupons");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -3392,7 +3514,7 @@ Name | Type | Description | Notes
**campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. | [optional] [enum: enabled, disabled, archived, scheduled, running, expired, staged]
**valuesOnly** | **Boolean**| Filter results to only return the coupon codes (`value` column) without the associated coupon data. | [optional] [default to false]
-### Return type
+### Return type cool
**String**
@@ -3402,16 +3524,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## exportCustomerSessions
-
-# **exportCustomerSessions**
> String exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState)
Export customer sessions
@@ -3419,6 +3542,7 @@ Export customer sessions
Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/product/server-infrastructure-and-data-retention#data-retention-policy). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3429,45 +3553,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string.
- String profileIntegrationId = "profileIntegrationId_example"; // String | Only return sessions for the customer that matches this customer integration ID.
- String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
- String customerSessionState = "customerSessionState_example"; // String | Filter results by state.
- try {
- String result = apiInstance.exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportCustomerSessions");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string.
+ String profileIntegrationId = "profileIntegrationId_example"; // String | Only return sessions for the customer that matches this customer integration ID.
+ String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
+ String customerSessionState = "customerSessionState_example"; // String | Filter results by state.
+ try {
+ String result = apiInstance.exportCustomerSessions(applicationId, createdBefore, createdAfter, profileIntegrationId, dateFormat, customerSessionState);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportCustomerSessions");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -3477,7 +3602,7 @@ Name | Type | Description | Notes
**dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601]
**customerSessionState** | **String**| Filter results by state. | [optional] [enum: open, closed, partially_returned, cancelled]
-### Return type
+### Return type cool
**String**
@@ -3487,16 +3612,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## exportCustomersTiers
-
-# **exportCustomersTiers**
> String exportCustomersTiers(loyaltyProgramId, subledgerIds, tierNames)
Export customers' tier data
@@ -3504,6 +3630,7 @@ Export customers' tier data
Download a CSV file containing the tier information for customers of the specified loyalty program. The generated file contains the following columns: - `programid`: The identifier of the loyalty program. It is displayed in your Talon.One deployment URL. - `subledgerid`: The ID of the subledger associated with the loyalty program. This column is empty if the loyalty program has no subledger. In this case, refer to the export file name to get the ID of the loyalty program. - `customerprofileid`: The ID used to integrate customer profiles with the loyalty program. - `tiername`: The name of the tier. - `startdate`: The tier start date in RFC3339. - `expirydate`: The tier expiry date in RFC3339. You can filter the results by providing the following optional input parameters: - `subledgerIds` (optional): Filter results by an array of subledger IDs. If no value is provided, all subledger data for the specified loyalty program will be exported. - `tierNames` (optional): Filter results by an array of tier names. If no value is provided, all tier data for the specified loyalty program will be exported.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3514,49 +3641,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
- List subledgerIds = Arrays.asList(); // List | An array of subledgers IDs to filter the export by.
- List tierNames = Arrays.asList(); // List | An array of tier names to filter the export by.
- try {
- String result = apiInstance.exportCustomersTiers(loyaltyProgramId, subledgerIds, tierNames);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportCustomersTiers");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
+ List subledgerIds = Arrays.asList(); // List | An array of subledgers IDs to filter the export by.
+ List tierNames = Arrays.asList(); // List | An array of tier names to filter the export by.
+ try {
+ String result = apiInstance.exportCustomersTiers(loyaltyProgramId, subledgerIds, tierNames);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportCustomersTiers");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **String**| The identifier for the loyalty program. |
**subledgerIds** | [**List<String>**](String.md)| An array of subledgers IDs to filter the export by. | [optional]
**tierNames** | [**List<String>**](String.md)| An array of tier names to filter the export by. | [optional]
-### Return type
+### Return type cool
**String**
@@ -3566,16 +3694,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## exportEffects
-
-# **exportEffects**
> String exportEffects(applicationId, campaignId, createdBefore, createdAfter, dateFormat)
Export triggered effects
@@ -3583,6 +3712,7 @@ Export triggered effects
Download a CSV file containing the triggered effects that match the given attributes. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `applicationid`: The ID of the Application. - `campaignid`: The ID of the campaign. - `couponid`: The ID of the coupon, when applicable to the effect. - `created`: The timestamp of the effect. - `event_type`: The name of the event. See the [docs](https://docs.talon.one/docs/dev/concepts/entities/events). - `eventid`: The internal ID of the effect. - `name`: The effect name. See the [docs](https://docs.talon.one/docs/dev/integration-api/api-effects). - `profileintegrationid`: The ID of the customer profile, when applicable. - `props`: The [properties](https://docs.talon.one/docs/dev/integration-api/api-effects) of the effect. - `ruleindex`: The index of the rule. - `rulesetid`: The ID of the rule set. - `sessionid`: The internal ID of the session that triggered the effect. - `profileid`: The internal ID of the customer profile. - `sessionintegrationid`: The integration ID of the session. - `total_revenue`: The total revenue. - `store_integration_id`: The integration ID of the store. You choose this ID when you create a store.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3593,44 +3723,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
- String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
- try {
- String result = apiInstance.exportEffects(applicationId, campaignId, createdBefore, createdAfter, dateFormat);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportEffects");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
+ try {
+ String result = apiInstance.exportEffects(applicationId, campaignId, createdBefore, createdAfter, dateFormat);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportEffects");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -3639,7 +3770,7 @@ Name | Type | Description | Notes
**createdAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional]
**dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601]
-### Return type
+### Return type cool
**String**
@@ -3649,16 +3780,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## exportLoyaltyBalance
-
-# **exportLoyaltyBalance**
> String exportLoyaltyBalance(loyaltyProgramId, endDate)
Export customer loyalty balance to CSV
@@ -3666,6 +3798,7 @@ Export customer loyalty balance to CSV
⚠️ Deprecation notice: Support for requests to this endpoint will end soon. To export customer loyalty balances to CSV, use the [Export customer loyalty balances to CSV](/management-api#tag/Loyalty/operation/exportLoyaltyBalances) endpoint. Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3676,47 +3809,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- try {
- String result = apiInstance.exportLoyaltyBalance(loyaltyProgramId, endDate);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportLoyaltyBalance");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ try {
+ String result = apiInstance.exportLoyaltyBalance(loyaltyProgramId, endDate);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportLoyaltyBalance");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **String**| The identifier for the loyalty program. |
**endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional]
-### Return type
+### Return type cool
**String**
@@ -3726,18 +3860,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
+
+## exportLoyaltyBalances
-
-# **exportLoyaltyBalances**
> String exportLoyaltyBalances(loyaltyProgramId, endDate)
Export customer loyalty balances
@@ -3745,6 +3880,7 @@ Export customer loyalty balances
Download a CSV file containing the balance of each customer in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `profileIntegrationID`: The integration ID of the customer profile. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points. - `currentTier`: The tier that the customer is in at the time of the export.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3755,47 +3891,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- try {
- String result = apiInstance.exportLoyaltyBalances(loyaltyProgramId, endDate);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportLoyaltyBalances");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ try {
+ String result = apiInstance.exportLoyaltyBalances(loyaltyProgramId, endDate);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportLoyaltyBalances");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **String**| The identifier for the loyalty program. |
**endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional]
-### Return type
+### Return type cool
**String**
@@ -3805,18 +3942,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
+
+## exportLoyaltyCardBalances
-
-# **exportLoyaltyCardBalances**
> String exportLoyaltyCardBalances(loyaltyProgramId, endDate)
Export all card transaction logs
@@ -3824,6 +3962,7 @@ Export all card transaction logs
Download a CSV file containing the balances of all cards in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `loyaltyProgramID`: The ID of the loyalty program. - `loyaltySubledger`: The name of the subdleger, when applicatble. - `cardIdentifier`: The alphanumeric identifier of the loyalty card. - `cardState`:The state of the loyalty card. It can be `active` or `inactive`. - `currentBalance`: The current point balance. - `pendingBalance`: The number of pending points. - `expiredBalance`: The number of expired points. - `spentBalance`: The number of spent points.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3834,47 +3973,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- try {
- String result = apiInstance.exportLoyaltyCardBalances(loyaltyProgramId, endDate);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportLoyaltyCardBalances");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ try {
+ String result = apiInstance.exportLoyaltyCardBalances(loyaltyProgramId, endDate);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportLoyaltyCardBalances");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**endDate** | **OffsetDateTime**| Used to return expired, active, and pending loyalty balances before this timestamp. You can enter any past, present, or future timestamp value. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional]
-### Return type
+### Return type cool
**String**
@@ -3884,18 +4024,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
+
+## exportLoyaltyCardLedger
-
-# **exportLoyaltyCardLedger**
> String exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat)
Export card's ledger log
@@ -3903,6 +4044,7 @@ Export card's ledger log
Download a CSV file containing a loyalty card ledger log of the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3913,44 +4055,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
- try {
- String result = apiInstance.exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportLoyaltyCardLedger");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
+ try {
+ String result = apiInstance.exportLoyaltyCardLedger(loyaltyProgramId, loyaltyCardId, rangeStart, rangeEnd, dateFormat);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportLoyaltyCardLedger");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -3959,7 +4102,7 @@ Name | Type | Description | Notes
**rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. |
**dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601]
-### Return type
+### Return type cool
**String**
@@ -3969,18 +4112,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## exportLoyaltyCards
-
-# **exportLoyaltyCards**
> String exportLoyaltyCards(loyaltyProgramId, batchId, dateFormat)
Export loyalty cards
@@ -3988,6 +4132,7 @@ Export loyalty cards
Download a CSV file containing the loyalty cards from a specified loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `identifier`: The unique identifier of the loyalty card. - `created`: The date and time the loyalty card was created. - `status`: The status of the loyalty card. - `userpercardlimit`: The maximum number of customer profiles that can be linked to the card. - `customerprofileids`: Integration IDs of the customer profiles linked to the card. - `blockreason`: The reason for transferring and blocking the loyalty card. - `generated`: An indicator of whether the loyalty card was generated. - `batchid`: The ID of the batch the loyalty card is in.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -3998,49 +4143,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID.
- String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
- try {
- String result = apiInstance.exportLoyaltyCards(loyaltyProgramId, batchId, dateFormat);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportLoyaltyCards");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID.
+ String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
+ try {
+ String result = apiInstance.exportLoyaltyCards(loyaltyProgramId, batchId, dateFormat);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportLoyaltyCards");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**batchId** | **String**| Filter results by loyalty card batch ID. | [optional]
**dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601]
-### Return type
+### Return type cool
**String**
@@ -4050,18 +4196,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
+
+## exportLoyaltyLedger
-
-# **exportLoyaltyLedger**
> String exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat)
Export customer's transaction logs
@@ -4069,6 +4216,7 @@ Export customer's transaction logs
Download a CSV file containing a customer's transaction logs in the loyalty program. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The generated file can contain the following columns: - `customerprofileid`: The ID of the profile. - `customersessionid`: The ID of the customer session. - `rulesetid`: The ID of the rule set. - `rulename`: The name of the rule. - `programid`: The ID of the loyalty program. - `type`: The transaction type, such as `addition` or `subtraction`. - `name`: The reason for the transaction. - `subledgerid`: The ID of the subledger, when applicable. - `startdate`: The start date of the program. - `expirydate`: The expiration date of the program. - `id`: The ID of the transaction. - `created`: The timestamp of the creation of the loyalty program. - `amount`: The number of points in that transaction. - `archived`: Whether the session related to the transaction is archived. - `campaignid`: The ID of the campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4079,44 +4227,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
- String integrationId = "integrationId_example"; // String | The identifier of the profile.
- String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
- try {
- String result = apiInstance.exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportLoyaltyLedger");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
+ String integrationId = "integrationId_example"; // String | The identifier of the profile.
+ String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
+ try {
+ String result = apiInstance.exportLoyaltyLedger(rangeStart, rangeEnd, loyaltyProgramId, integrationId, dateFormat);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportLoyaltyLedger");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. |
@@ -4125,7 +4274,7 @@ Name | Type | Description | Notes
**integrationId** | **String**| The identifier of the profile. |
**dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601]
-### Return type
+### Return type cool
**String**
@@ -4135,16 +4284,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## exportPoolGiveaways
-
-# **exportPoolGiveaways**
> String exportPoolGiveaways(poolId, createdBefore, createdAfter)
Export giveaway codes of a giveaway pool
@@ -4152,6 +4302,7 @@ Export giveaway codes of a giveaway pool
Download a CSV file containing the giveaway codes of a specific giveaway pool. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `id`: The internal ID of the giveaway. - `poolid`: The internal ID of the giveaway pool. - `code`: The giveaway code. - `startdate`: The validity start date in RFC3339 of the giveaway (can be empty). - `enddate`: The validity end date in RFC3339 of the giveaway (can be empty). - `attributes`: Any custom attributes associated with the giveaway code (can be empty). - `used`: An indication of whether the giveaway is already awarded. - `importid`: The ID of the import which created the giveaway. - `created`: The creation time of the giveaway code. - `profileintegrationid`: The third-party integration ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded. - `profileid`: The internal ID of the customer profile that was awarded the giveaway. Can be empty if the giveaway was not awarded or an internal ID does not exist.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4162,49 +4313,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string.
- try {
- String result = apiInstance.exportPoolGiveaways(poolId, createdBefore, createdAfter);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportPoolGiveaways");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string.
+ try {
+ String result = apiInstance.exportPoolGiveaways(poolId, createdBefore, createdAfter);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportPoolGiveaways");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. |
**createdBefore** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created before this date. Must be an RFC3339 timestamp string. | [optional]
**createdAfter** | **OffsetDateTime**| Timestamp that filters the results to only contain giveaways created after this date. Must be an RFC3339 timestamp string. | [optional]
-### Return type
+### Return type cool
**String**
@@ -4214,17 +4366,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+
+
+## exportReferrals
-
-# **exportReferrals**
> String exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat)
Export referrals
@@ -4232,6 +4385,7 @@ Export referrals
Download a CSV file containing the referrals that match the given parameters. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `code`: The referral code. - `advocateprofileintegrationid`: The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A json object describing _custom_ referral attribute names and their values.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4242,47 +4396,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- String valid = "valid_example"; // String | - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future.
- String usable = "usable_example"; // String | - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned.
- String batchId = "batchId_example"; // String | Filter results by batches of referrals
- String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
- try {
- String result = apiInstance.exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#exportReferrals");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String valid = "valid_example"; // String | - `expired`: Matches referrals in which the expiration date is set and in the past. - `validNow`: Matches referrals in which start date is null or in the past and expiration date is null or in the future. - `validFuture`: Matches referrals in which start date is set and in the future.
+ String usable = "usable_example"; // String | - `true`, only referrals where `usageCounter < usageLimit` will be returned. - `false`, only referrals where `usageCounter >= usageLimit` will be returned.
+ String batchId = "batchId_example"; // String | Filter results by batches of referrals
+ String dateFormat = "dateFormat_example"; // String | Determines the format of dates in the export document.
+ try {
+ String result = apiInstance.exportReferrals(applicationId, campaignId, createdBefore, createdAfter, valid, usable, batchId, dateFormat);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#exportReferrals");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -4294,7 +4449,7 @@ Name | Type | Description | Notes
**batchId** | **String**| Filter results by batches of referrals | [optional]
**dateFormat** | **String**| Determines the format of dates in the export document. | [optional] [enum: excel, ISO8601]
-### Return type
+### Return type cool
**String**
@@ -4304,16 +4459,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/csv
+- **Content-Type**: Not defined
+- **Accept**: application/csv
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getAccessLogsWithoutTotalCount
-
-# **getAccessLogsWithoutTotalCount**
> InlineResponse20019 getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort)
Get access logs for Application
@@ -4321,6 +4477,7 @@ Get access logs for Application
Retrieve the list of API calls sent to the specified Application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4331,48 +4488,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- String path = "path_example"; // String | Only return results where the request path matches the given regular expression.
- String method = "method_example"; // String | Only return results where the request method matches the given regular expression.
- String status = "status_example"; // String | Filter results by HTTP status codes.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20019 result = apiInstance.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAccessLogsWithoutTotalCount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ String path = "path_example"; // String | Only return results where the request path matches the given regular expression.
+ String method = "method_example"; // String | Only return results where the request method matches the given regular expression.
+ String status = "status_example"; // String | Filter results by HTTP status codes.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse20019 result = apiInstance.getAccessLogsWithoutTotalCount(applicationId, rangeStart, rangeEnd, path, method, status, pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAccessLogsWithoutTotalCount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -4385,7 +4543,7 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20019**](InlineResponse20019.md)
@@ -4395,16 +4553,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getAccount
-
-# **getAccount**
> Account getAccount(accountId)
Get account details
@@ -4412,6 +4571,7 @@ Get account details
Return the details of your companies Talon.One account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4422,45 +4582,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property.
- try {
- Account result = apiInstance.getAccount(accountId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAccount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property.
+ try {
+ Account result = apiInstance.getAccount(accountId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAccount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. |
-### Return type
+### Return type cool
[**Account**](Account.md)
@@ -4470,16 +4631,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getAccountAnalytics
-
-# **getAccountAnalytics**
> AccountAnalytics getAccountAnalytics(accountId)
Get account analytics
@@ -4487,6 +4649,7 @@ Get account analytics
Return the analytics of your Talon.One account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4497,45 +4660,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property.
- try {
- AccountAnalytics result = apiInstance.getAccountAnalytics(accountId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAccountAnalytics");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer accountId = 56; // Integer | The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property.
+ try {
+ AccountAnalytics result = apiInstance.getAccountAnalytics(accountId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAccountAnalytics");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**accountId** | **Integer**| The identifier of the account. Retrieve it via the [List users in account](https://docs.talon.one/management-api#operation/getUsers) endpoint in the `accountId` property. |
-### Return type
+### Return type cool
[**AccountAnalytics**](AccountAnalytics.md)
@@ -4545,16 +4709,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getAccountCollection
-
-# **getAccountCollection**
> Collection getAccountCollection(collectionId)
Get account-level collection
@@ -4562,6 +4727,7 @@ Get account-level collection
Retrieve a given account-level collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4572,45 +4738,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
- try {
- Collection result = apiInstance.getAccountCollection(collectionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAccountCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
+ try {
+ Collection result = apiInstance.getAccountCollection(collectionId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAccountCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
-### Return type
+### Return type cool
[**Collection**](Collection.md)
@@ -4620,17 +4787,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **404** | Not found | - |
+
+
+## getAchievement
-
-# **getAchievement**
> Achievement getAchievement(applicationId, campaignId, achievementId)
Get achievement
@@ -4638,6 +4806,7 @@ Get achievement
Get the details of a specific achievement.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4648,49 +4817,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
- try {
- Achievement result = apiInstance.getAchievement(applicationId, campaignId, achievementId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAchievement");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
+ try {
+ Achievement result = apiInstance.getAchievement(applicationId, campaignId, achievementId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAchievement");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. |
-### Return type
+### Return type cool
[**Achievement**](Achievement.md)
@@ -4700,18 +4870,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getAdditionalCost
-
-# **getAdditionalCost**
> AccountAdditionalCost getAdditionalCost(additionalCostId)
Get additional cost
@@ -4719,6 +4890,7 @@ Get additional cost
Returns the additional cost.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4729,45 +4901,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**.
- try {
- AccountAdditionalCost result = apiInstance.getAdditionalCost(additionalCostId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAdditionalCost");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**.
+ try {
+ AccountAdditionalCost result = apiInstance.getAdditionalCost(additionalCostId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAdditionalCost");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. |
-### Return type
+### Return type cool
[**AccountAdditionalCost**](AccountAdditionalCost.md)
@@ -4777,23 +4950,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
-
-# **getAdditionalCosts**
-> InlineResponse20036 getAdditionalCosts(pageSize, skip, sort)
+
+## getAdditionalCosts
+
+> InlineResponse20035 getAdditionalCosts(pageSize, skip, sort)
List additional costs
Returns all the defined additional costs for the account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4804,51 +4979,52 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20036 result = apiInstance.getAdditionalCosts(pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAdditionalCosts");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse20035 result = apiInstance.getAdditionalCosts(pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAdditionalCosts");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20036**](InlineResponse20036.md)
+[**InlineResponse20035**](InlineResponse20035.md)
### Authorization
@@ -4856,23 +5032,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getApplication
-
-# **getAllAccessLogs**
-> InlineResponse20020 getAllAccessLogs(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort)
+> Application getApplication(applicationId)
-List access logs
+Get Application
-Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs.
+Get the application specified by the ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -4883,61 +5061,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- String path = "path_example"; // String | Only return results where the request path matches the given regular expression.
- String method = "method_example"; // String | Only return results where the request method matches the given regular expression.
- String status = "status_example"; // String | Filter results by HTTP status codes.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20020 result = apiInstance.getAllAccessLogs(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAllAccessLogs");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ try {
+ Application result = apiInstance.getApplication(applicationId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplication");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional]
- **rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. | [optional]
- **path** | **String**| Only return results where the request path matches the given regular expression. | [optional]
- **method** | **String**| Only return results where the request method matches the given regular expression. | [optional] [enum: get, put, post, delete, patch]
- **status** | **String**| Filter results by HTTP status codes. | [optional] [enum: success, error]
- **pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
- **skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
- **sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
+ **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
-### Return type
+### Return type cool
-[**InlineResponse20020**](InlineResponse20020.md)
+[**Application**](Application.md)
### Authorization
@@ -4945,98 +5110,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
-
-# **getApplication**
-> Application getApplication(applicationId)
-Get Application
+## getApplicationApiHealth
-Get the application specified by the ID.
-
-### Example
-```java
-// Import classes:
-import one.talon.ApiClient;
-import one.talon.ApiException;
-import one.talon.Configuration;
-import one.talon.auth.*;
-import one.talon.models.*;
-import one.talon.api.ManagementApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
-
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
-
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- try {
- Application result = apiInstance.getApplication(applicationId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplication");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
-
-### Return type
-
-[**Application**](Application.md)
-
-### Authorization
-
-[management_key](../README.md#management_key), [manager_auth](../README.md#manager_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | OK | - |
-
-
-# **getApplicationApiHealth**
> ApplicationApiHealth getApplicationApiHealth(applicationId)
Get Application health
-Display the health of the Application and show the last time the Application was used. You can also display this information from the **Settings** of an Application, in the **Developer Settings** menu. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
+Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5047,45 +5139,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- try {
- ApplicationApiHealth result = apiInstance.getApplicationApiHealth(applicationId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationApiHealth");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ try {
+ ApplicationApiHealth result = apiInstance.getApplicationApiHealth(applicationId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationApiHealth");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
-### Return type
+### Return type cool
[**ApplicationApiHealth**](ApplicationApiHealth.md)
@@ -5095,16 +5188,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getApplicationCustomer
-
-# **getApplicationCustomer**
> ApplicationCustomer getApplicationCustomer(applicationId, customerId)
Get application's customer
@@ -5112,6 +5206,7 @@ Get application's customer
Retrieve the customers of the specified application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5122,47 +5217,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
- try {
- ApplicationCustomer result = apiInstance.getApplicationCustomer(applicationId, customerId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationCustomer");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
+ try {
+ ApplicationCustomer result = apiInstance.getApplicationCustomer(applicationId, customerId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationCustomer");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. |
-### Return type
+### Return type cool
[**ApplicationCustomer**](ApplicationCustomer.md)
@@ -5172,23 +5268,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getApplicationCustomerFriends**
-> InlineResponse20033 getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize)
+## getApplicationCustomerFriends
+
+> InlineResponse20032 getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize)
List friends referred by customer profile
List the friends referred by the specified customer profile in this Application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5199,45 +5297,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- String integrationId = "integrationId_example"; // String | The Integration ID of the Advocate's Profile.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- try {
- InlineResponse20033 result = apiInstance.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationCustomerFriends");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ String integrationId = "integrationId_example"; // String | The Integration ID of the Advocate's Profile.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ try {
+ InlineResponse20032 result = apiInstance.getApplicationCustomerFriends(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationCustomerFriends");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -5247,9 +5346,9 @@ Name | Type | Description | Notes
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
**withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20033**](InlineResponse20033.md)
+[**InlineResponse20032**](InlineResponse20032.md)
### Authorization
@@ -5257,23 +5356,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getApplicationCustomers**
-> InlineResponse20022 getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize)
+## getApplicationCustomers
+
+> InlineResponse20021 getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize)
List application's customers
List all the customers of the specified application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5284,44 +5385,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- try {
- InlineResponse20022 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationCustomers");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ try {
+ InlineResponse20021 result = apiInstance.getApplicationCustomers(applicationId, integrationId, pageSize, skip, withTotalResultSize);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationCustomers");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -5330,9 +5432,9 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20022**](InlineResponse20022.md)
+[**InlineResponse20021**](InlineResponse20021.md)
### Authorization
@@ -5340,23 +5442,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getApplicationCustomersByAttributes**
-> InlineResponse20023 getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize)
+## getApplicationCustomersByAttributes
+
+> InlineResponse20022 getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize)
List application customers matching the given attributes
Get a list of the application customers matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5367,44 +5471,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- try {
- InlineResponse20023 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationCustomersByAttributes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ try {
+ InlineResponse20022 result = apiInstance.getApplicationCustomersByAttributes(applicationId, body, pageSize, skip, withTotalResultSize);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationCustomersByAttributes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -5413,9 +5518,9 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20023**](InlineResponse20023.md)
+[**InlineResponse20022**](InlineResponse20022.md)
### Authorization
@@ -5423,23 +5528,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getApplicationEventTypes**
-> InlineResponse20029 getApplicationEventTypes(applicationId, pageSize, skip, sort)
+## getApplicationEventTypes
+
+> InlineResponse20028 getApplicationEventTypes(applicationId, pageSize, skip, sort)
List Applications event types
Get all of the distinct values of the Event `type` property for events recorded in the application. See also: [Track an event](https://docs.talon.one/integration-api#tag/Events/operation/trackEventV2)
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5450,43 +5557,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20029 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationEventTypes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse20028 result = apiInstance.getApplicationEventTypes(applicationId, pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationEventTypes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -5494,9 +5602,9 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20029**](InlineResponse20029.md)
+[**InlineResponse20028**](InlineResponse20028.md)
### Authorization
@@ -5504,23 +5612,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getApplicationEventsWithoutTotalCount**
-> InlineResponse20028 getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery)
+## getApplicationEventsWithoutTotalCount
+
+> InlineResponse20027 getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery)
List Applications events
Lists all events recorded for an application. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5531,54 +5641,55 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String type = "type_example"; // String | Comma-separated list of types by which to filter events. Must be exact match(es).
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally.
- String session = "session_example"; // String | Session integration ID filter for events. Must be exact match.
- String profile = "profile_example"; // String | Profile integration ID filter for events. Must be exact match.
- String customerName = "customerName_example"; // String | Customer name filter for events. Will match substrings case-insensitively.
- String customerEmail = "customerEmail_example"; // String | Customer e-mail address filter for events. Will match substrings case-insensitively.
- String couponCode = "couponCode_example"; // String | Coupon code
- String referralCode = "referralCode_example"; // String | Referral code
- String ruleQuery = "ruleQuery_example"; // String | Rule name filter for events
- String campaignQuery = "campaignQuery_example"; // String | Campaign name filter for events
- try {
- InlineResponse20028 result = apiInstance.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationEventsWithoutTotalCount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String type = "type_example"; // String | Comma-separated list of types by which to filter events. Must be exact match(es).
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String session = "session_example"; // String | Session integration ID filter for events. Must be exact match.
+ String profile = "profile_example"; // String | Profile integration ID filter for events. Must be exact match.
+ String customerName = "customerName_example"; // String | Customer name filter for events. Will match substrings case-insensitively.
+ String customerEmail = "customerEmail_example"; // String | Customer e-mail address filter for events. Will match substrings case-insensitively.
+ String couponCode = "couponCode_example"; // String | Coupon code
+ String referralCode = "referralCode_example"; // String | Referral code
+ String ruleQuery = "ruleQuery_example"; // String | Rule name filter for events
+ String campaignQuery = "campaignQuery_example"; // String | Campaign name filter for events
+ try {
+ InlineResponse20027 result = apiInstance.getApplicationEventsWithoutTotalCount(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationEventsWithoutTotalCount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -5597,9 +5708,9 @@ Name | Type | Description | Notes
**ruleQuery** | **String**| Rule name filter for events | [optional]
**campaignQuery** | **String**| Campaign name filter for events | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20028**](InlineResponse20028.md)
+[**InlineResponse20027**](InlineResponse20027.md)
### Authorization
@@ -5607,16 +5718,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getApplicationSession
-
-# **getApplicationSession**
> ApplicationSession getApplicationSession(applicationId, sessionId)
Get Application session
@@ -5624,6 +5736,7 @@ Get Application session
Get the details of the given session. You can list the sessions with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5634,47 +5747,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer sessionId = 56; // Integer | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint.
- try {
- ApplicationSession result = apiInstance.getApplicationSession(applicationId, sessionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationSession");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer sessionId = 56; // Integer | The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint.
+ try {
+ ApplicationSession result = apiInstance.getApplicationSession(applicationId, sessionId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationSession");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**sessionId** | **Integer**| The **internal** ID of the session. You can get the ID with the [List Application sessions](https://docs.talon.one/management-api#tag/Customer-data/operation/getApplicationSessions) endpoint. |
-### Return type
+### Return type cool
[**ApplicationSession**](ApplicationSession.md)
@@ -5684,23 +5798,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getApplicationSessions**
-> InlineResponse20027 getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId)
+## getApplicationSessions
+
+> InlineResponse20026 getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId)
List Application sessions
List all the sessions of the specified Application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5711,51 +5827,52 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String profile = "profile_example"; // String | Profile integration ID filter for sessions. Must be exact match.
- String state = "state_example"; // String | Filter by sessions with this state. Must be exact match.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally.
- String coupon = "coupon_example"; // String | Filter by sessions with this coupon. Must be exact match.
- String referral = "referral_example"; // String | Filter by sessions with this referral. Must be exact match.
- String integrationId = "integrationId_example"; // String | Filter by sessions with this integration ID. Must be exact match.
- String storeIntegrationId = "storeIntegrationId_example"; // String | The integration ID of the store. You choose this ID when you create a store.
- try {
- InlineResponse20027 result = apiInstance.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplicationSessions");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String profile = "profile_example"; // String | Profile integration ID filter for sessions. Must be exact match.
+ String state = "state_example"; // String | Filter by sessions with this state. Must be exact match.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String coupon = "coupon_example"; // String | Filter by sessions with this coupon. Must be exact match.
+ String referral = "referral_example"; // String | Filter by sessions with this referral. Must be exact match.
+ String integrationId = "integrationId_example"; // String | Filter by sessions with this integration ID. Must be exact match.
+ String storeIntegrationId = "storeIntegrationId_example"; // String | The integration ID of the store. You choose this ID when you create a store.
+ try {
+ InlineResponse20026 result = apiInstance.getApplicationSessions(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplicationSessions");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -5771,9 +5888,9 @@ Name | Type | Description | Notes
**integrationId** | **String**| Filter by sessions with this integration ID. Must be exact match. | [optional]
**storeIntegrationId** | **String**| The integration ID of the store. You choose this ID when you create a store. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20027**](InlineResponse20027.md)
+[**InlineResponse20026**](InlineResponse20026.md)
### Authorization
@@ -5781,16 +5898,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getApplications
-
-# **getApplications**
> InlineResponse2005 getApplications(pageSize, skip, sort)
List Applications
@@ -5798,6 +5916,7 @@ List Applications
List all applications in the current account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5808,49 +5927,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse2005 result = apiInstance.getApplications(pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getApplications");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse2005 result = apiInstance.getApplications(pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getApplications");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
[**InlineResponse2005**](InlineResponse2005.md)
@@ -5860,16 +5980,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getAttribute
-
-# **getAttribute**
> Attribute getAttribute(attributeId)
Get custom attribute
@@ -5877,6 +5998,7 @@ Get custom attribute
Retrieve the specified custom attribute.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5887,45 +6009,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**.
- try {
- Attribute result = apiInstance.getAttribute(attributeId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAttribute");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**.
+ try {
+ Attribute result = apiInstance.getAttribute(attributeId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAttribute");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. |
-### Return type
+### Return type cool
[**Attribute**](Attribute.md)
@@ -5935,23 +6058,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getAttributes**
-> InlineResponse20034 getAttributes(pageSize, skip, sort, entity)
+## getAttributes
+
+> InlineResponse20033 getAttributes(pageSize, skip, sort, entity)
List custom attributes
Return all the custom attributes for the account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -5962,43 +6087,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String entity = "entity_example"; // String | Returned attributes will be filtered by supplied entity.
- try {
- InlineResponse20034 result = apiInstance.getAttributes(pageSize, skip, sort, entity);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAttributes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String entity = "entity_example"; // String | Returned attributes will be filtered by supplied entity.
+ try {
+ InlineResponse20033 result = apiInstance.getAttributes(pageSize, skip, sort, entity);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAttributes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -6006,9 +6132,9 @@ Name | Type | Description | Notes
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
**entity** | **String**| Returned attributes will be filtered by supplied entity. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20034**](InlineResponse20034.md)
+[**InlineResponse20033**](InlineResponse20033.md)
### Authorization
@@ -6016,23 +6142,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getAudienceMemberships**
-> InlineResponse20032 getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery)
+## getAudienceMemberships
+
+> InlineResponse20031 getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery)
List audience members
Get a paginated list of the customer profiles in a given audience. A maximum of 1000 customer profiles per page is allowed.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6043,44 +6171,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer audienceId = 56; // Integer | The ID of the audience.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String profileQuery = "profileQuery_example"; // String | The filter to select a profile.
- try {
- InlineResponse20032 result = apiInstance.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAudienceMemberships");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer audienceId = 56; // Integer | The ID of the audience.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String profileQuery = "profileQuery_example"; // String | The filter to select a profile.
+ try {
+ InlineResponse20031 result = apiInstance.getAudienceMemberships(audienceId, pageSize, skip, sort, profileQuery);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAudienceMemberships");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceId** | **Integer**| The ID of the audience. |
@@ -6089,9 +6218,9 @@ Name | Type | Description | Notes
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
**profileQuery** | **String**| The filter to select a profile. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20032**](InlineResponse20032.md)
+[**InlineResponse20031**](InlineResponse20031.md)
### Authorization
@@ -6099,24 +6228,26 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **404** | Not found | - |
+
-
-# **getAudiences**
-> InlineResponse20030 getAudiences(pageSize, skip, sort, withTotalResultSize)
+## getAudiences
+
+> InlineResponse20029 getAudiences(pageSize, skip, sort, withTotalResultSize)
List audiences
Get all audiences created in the account. To create an audience, use [Create audience](https://docs.talon.one/integration-api#tag/Audiences/operation/createAudienceV2).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6127,43 +6258,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- try {
- InlineResponse20030 result = apiInstance.getAudiences(pageSize, skip, sort, withTotalResultSize);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAudiences");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ try {
+ InlineResponse20029 result = apiInstance.getAudiences(pageSize, skip, sort, withTotalResultSize);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAudiences");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -6171,9 +6303,9 @@ Name | Type | Description | Notes
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
**withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20030**](InlineResponse20030.md)
+[**InlineResponse20029**](InlineResponse20029.md)
### Authorization
@@ -6181,23 +6313,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getAudiencesAnalytics**
-> InlineResponse20031 getAudiencesAnalytics(audienceIds, sort)
+## getAudiencesAnalytics
+
+> InlineResponse20030 getAudiencesAnalytics(audienceIds, sort)
List audience analytics
Get a list of audience IDs and their member count.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6208,49 +6342,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String audienceIds = "audienceIds_example"; // String | The IDs of one or more audiences, separated by commas, by which to filter results.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20031 result = apiInstance.getAudiencesAnalytics(audienceIds, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getAudiencesAnalytics");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String audienceIds = "audienceIds_example"; // String | The IDs of one or more audiences, separated by commas, by which to filter results.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse20030 result = apiInstance.getAudiencesAnalytics(audienceIds, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getAudiencesAnalytics");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceIds** | **String**| The IDs of one or more audiences, separated by commas, by which to filter results. |
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20031**](InlineResponse20031.md)
+[**InlineResponse20030**](InlineResponse20030.md)
### Authorization
@@ -6258,16 +6393,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCampaign
-
-# **getCampaign**
> Campaign getCampaign(applicationId, campaignId)
Get campaign
@@ -6275,6 +6411,7 @@ Get campaign
Retrieve the given campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6285,47 +6422,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- try {
- Campaign result = apiInstance.getCampaign(applicationId, campaignId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCampaign");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ try {
+ Campaign result = apiInstance.getCampaign(applicationId, campaignId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCampaign");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
-### Return type
+### Return type cool
[**Campaign**](Campaign.md)
@@ -6335,23 +6473,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getCampaignAnalytics**
-> InlineResponse20021 getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity)
+## getCampaignAnalytics
+
+> InlineResponse20020 getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity)
Get analytics of campaigns
Retrieve statistical data about the performance of the given campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6362,44 +6502,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- String granularity = "granularity_example"; // String | The time interval between the results in the returned time-series.
- try {
- InlineResponse20021 result = apiInstance.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCampaignAnalytics");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ String granularity = "granularity_example"; // String | The time interval between the results in the returned time-series.
+ try {
+ InlineResponse20020 result = apiInstance.getCampaignAnalytics(applicationId, campaignId, rangeStart, rangeEnd, granularity);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCampaignAnalytics");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -6408,9 +6549,9 @@ Name | Type | Description | Notes
**rangeEnd** | **OffsetDateTime**| Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. |
**granularity** | **String**| The time interval between the results in the returned time-series. | [optional] [enum: 1 hour, 1 day, 1 week, 1 month, 1 year]
-### Return type
+### Return type cool
-[**InlineResponse20021**](InlineResponse20021.md)
+[**InlineResponse20020**](InlineResponse20020.md)
### Authorization
@@ -6418,16 +6559,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCampaignByAttributes
-
-# **getCampaignByAttributes**
> InlineResponse2006 getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState)
List campaigns that match the given attributes
@@ -6435,6 +6577,7 @@ List campaigns that match the given attributes
Get a list of all the campaigns that match a set of attributes.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6445,45 +6588,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- CampaignSearch body = new CampaignSearch(); // CampaignSearch | body
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
- try {
- InlineResponse2006 result = apiInstance.getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCampaignByAttributes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ CampaignSearch body = new CampaignSearch(); // CampaignSearch | body
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
+ try {
+ InlineResponse2006 result = apiInstance.getCampaignByAttributes(applicationId, body, pageSize, skip, sort, campaignState);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCampaignByAttributes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -6493,7 +6637,7 @@ Name | Type | Description | Notes
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
**campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. | [optional] [enum: enabled, disabled, archived, scheduled, running, expired, staged]
-### Return type
+### Return type cool
[**InlineResponse2006**](InlineResponse2006.md)
@@ -6503,16 +6647,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCampaignGroup
-
-# **getCampaignGroup**
> CampaignGroup getCampaignGroup(campaignGroupId)
Get campaign access group
@@ -6520,6 +6665,7 @@ Get campaign access group
Get a campaign access group specified by its ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6530,45 +6676,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer campaignGroupId = 56; // Integer | The ID of the campaign access group.
- try {
- CampaignGroup result = apiInstance.getCampaignGroup(campaignGroupId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCampaignGroup");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer campaignGroupId = 56; // Integer | The ID of the campaign access group.
+ try {
+ CampaignGroup result = apiInstance.getCampaignGroup(campaignGroupId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCampaignGroup");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**campaignGroupId** | **Integer**| The ID of the campaign access group. |
-### Return type
+### Return type cool
[**CampaignGroup**](CampaignGroup.md)
@@ -6578,16 +6725,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCampaignGroups
-
-# **getCampaignGroups**
> InlineResponse20011 getCampaignGroups(pageSize, skip, sort)
List campaign access groups
@@ -6595,6 +6743,7 @@ List campaign access groups
List the campaign access groups in the current account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6605,49 +6754,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20011 result = apiInstance.getCampaignGroups(pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCampaignGroups");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse20011 result = apiInstance.getCampaignGroups(pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCampaignGroups");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20011**](InlineResponse20011.md)
@@ -6657,16 +6807,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCampaignTemplates
-
-# **getCampaignTemplates**
> InlineResponse20012 getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId)
List campaign templates
@@ -6674,6 +6825,7 @@ List campaign templates
Retrieve a list of campaign templates.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6684,46 +6836,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String state = "state_example"; // String | Filter results by the state of the campaign template.
- String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign template.
- String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values.
- Integer userId = 56; // Integer | Filter results by user ID.
- try {
- InlineResponse20012 result = apiInstance.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCampaignTemplates");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String state = "state_example"; // String | Filter results by the state of the campaign template.
+ String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign template.
+ String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values.
+ Integer userId = 56; // Integer | Filter results by user ID.
+ try {
+ InlineResponse20012 result = apiInstance.getCampaignTemplates(pageSize, skip, sort, state, name, tags, userId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCampaignTemplates");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -6734,7 +6887,7 @@ Name | Type | Description | Notes
**tags** | **String**| Filter results performing case-insensitive matching against the tags of the campaign template. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values. | [optional]
**userId** | **Integer**| Filter results by user ID. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20012**](InlineResponse20012.md)
@@ -6744,16 +6897,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCampaigns
-
-# **getCampaigns**
> InlineResponse2006 getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId)
List campaigns
@@ -6761,6 +6915,7 @@ List campaigns
List the campaigns of the specified application that match your filter criteria.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6771,51 +6926,52 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
- String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign.
- String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- Integer campaignGroupId = 56; // Integer | Filter results to campaigns owned by the specified campaign access group ID.
- Integer templateId = 56; // Integer | The ID of the campaign template this campaign was created from.
- Integer storeId = 56; // Integer | Filter results to campaigns linked to the specified store ID.
- try {
- InlineResponse2006 result = apiInstance.getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCampaigns");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
+ String name = "name_example"; // String | Filter results performing case-insensitive matching against the name of the campaign.
+ String tags = "tags_example"; // String | Filter results performing case-insensitive matching against the tags of the campaign. When used in conjunction with the \"name\" query parameter, a logical OR will be performed to search both tags and name for the provided values
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the campaign creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ Integer campaignGroupId = 56; // Integer | Filter results to campaigns owned by the specified campaign access group ID.
+ Integer templateId = 56; // Integer | The ID of the campaign template this campaign was created from.
+ Integer storeId = 56; // Integer | Filter results to campaigns linked to the specified store ID.
+ try {
+ InlineResponse2006 result = apiInstance.getCampaigns(applicationId, pageSize, skip, sort, campaignState, name, tags, createdBefore, createdAfter, campaignGroupId, templateId, storeId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCampaigns");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -6831,7 +6987,7 @@ Name | Type | Description | Notes
**templateId** | **Integer**| The ID of the campaign template this campaign was created from. | [optional]
**storeId** | **Integer**| Filter results to campaigns linked to the specified store ID. | [optional]
-### Return type
+### Return type cool
[**InlineResponse2006**](InlineResponse2006.md)
@@ -6841,24 +6997,26 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
-
-# **getChanges**
-> InlineResponse20042 getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld)
+
+## getChanges
+
+> InlineResponse20041 getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld)
Get audit logs for an account
Retrieve the audit logs displayed in **Accounts > Audit logs**.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6869,50 +7027,51 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
- String entityPath = "entityPath_example"; // String | Filter results on a case insensitive matching of the url path of the entity
- Integer userId = 56; // Integer | Filter results by user ID.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- Integer managementKeyId = 56; // Integer | Filter results that match the given management key ID.
- Boolean includeOld = true; // Boolean | When this flag is set to false, the state without the change will not be returned. The default value is true.
- try {
- InlineResponse20042 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getChanges");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
+ String entityPath = "entityPath_example"; // String | Filter results on a case insensitive matching of the url path of the entity
+ Integer userId = 56; // Integer | Filter results by user ID.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the change creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ Integer managementKeyId = 56; // Integer | Filter results that match the given management key ID.
+ Boolean includeOld = true; // Boolean | When this flag is set to false, the state without the change will not be returned. The default value is true.
+ try {
+ InlineResponse20041 result = apiInstance.getChanges(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getChanges");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -6927,9 +7086,9 @@ Name | Type | Description | Notes
**managementKeyId** | **Integer**| Filter results that match the given management key ID. | [optional]
**includeOld** | **Boolean**| When this flag is set to false, the state without the change will not be returned. The default value is true. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20042**](InlineResponse20042.md)
+[**InlineResponse20041**](InlineResponse20041.md)
### Authorization
@@ -6937,16 +7096,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCollection
-
-# **getCollection**
> Collection getCollection(applicationId, campaignId, collectionId)
Get campaign-level collection
@@ -6954,6 +7114,7 @@ Get campaign-level collection
Retrieve a given campaign-level collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -6964,49 +7125,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
- try {
- Collection result = apiInstance.getCollection(applicationId, campaignId, collectionId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
+ try {
+ Collection result = apiInstance.getCollection(applicationId, campaignId, collectionId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
-### Return type
+### Return type cool
[**Collection**](Collection.md)
@@ -7016,17 +7178,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **404** | Not found | - |
+
+
+## getCollectionItems
-
-# **getCollectionItems**
> InlineResponse20018 getCollectionItems(collectionId, pageSize, skip)
Get collection items
@@ -7034,6 +7197,7 @@ Get collection items
Retrieve items from a given collection. You can retrieve items from both account-level collections and campaign-level collections using this endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7044,49 +7208,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- try {
- InlineResponse20018 result = apiInstance.getCollectionItems(collectionId, pageSize, skip);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCollectionItems");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ try {
+ InlineResponse20018 result = apiInstance.getCollectionItems(collectionId, pageSize, skip);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCollectionItems");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20018**](InlineResponse20018.md)
@@ -7096,17 +7261,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **404** | Not found | - |
+
+
+## getCouponsWithoutTotalCount
-
-# **getCouponsWithoutTotalCount**
> InlineResponse2009 getCouponsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly)
List coupons
@@ -7114,6 +7280,7 @@ List coupons
List all the coupons matching the specified criteria.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7124,59 +7291,60 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
- String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
- String redeemed = "redeemed_example"; // String | - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter.
- Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
- String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field.
- String batchId = "batchId_example"; // String | Filter results by batches of coupons
- Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
- OffsetDateTime expiresBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime expiresAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime startsBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime startsAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- Boolean valuesOnly = false; // Boolean | Filter results to only return the coupon codes (`value` column) without the associated coupon data.
- try {
- InlineResponse2009 result = apiInstance.getCouponsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCouponsWithoutTotalCount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
+ String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
+ String redeemed = "redeemed_example"; // String | - `true`: only coupons where `usageCounter > 0` will be returned. - `false`: only coupons where `usageCounter = 0` will be returned. - This field cannot be used in conjunction with the `usable` query parameter.
+ Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
+ String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field.
+ String batchId = "batchId_example"; // String | Filter results by batches of coupons
+ Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
+ OffsetDateTime expiresBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime expiresAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon expiration date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime startsBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime startsAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ Boolean valuesOnly = false; // Boolean | Filter results to only return the coupon codes (`value` column) without the associated coupon data.
+ try {
+ InlineResponse2009 result = apiInstance.getCouponsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, redeemed, referralId, recipientIntegrationId, batchId, exactMatch, expiresBefore, expiresAfter, startsBefore, startsAfter, valuesOnly);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCouponsWithoutTotalCount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -7200,7 +7368,7 @@ Name | Type | Description | Notes
**startsAfter** | **OffsetDateTime**| Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon start date timestamp. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional]
**valuesOnly** | **Boolean**| Filter results to only return the coupon codes (`value` column) without the associated coupon data. | [optional] [default to false]
-### Return type
+### Return type cool
[**InlineResponse2009**](InlineResponse2009.md)
@@ -7210,16 +7378,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCustomerActivityReport
-
-# **getCustomerActivityReport**
> CustomerActivityReport getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip)
Get customer's activity report
@@ -7227,6 +7396,7 @@ Get customer's activity report
Fetch the summary report of a given customer in the given application, in a time range.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7237,45 +7407,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- try {
- CustomerActivityReport result = apiInstance.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCustomerActivityReport");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ try {
+ CustomerActivityReport result = apiInstance.getCustomerActivityReport(rangeStart, rangeEnd, applicationId, customerId, pageSize, skip);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCustomerActivityReport");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. |
@@ -7285,7 +7456,7 @@ Name | Type | Description | Notes
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
-### Return type
+### Return type cool
[**CustomerActivityReport**](CustomerActivityReport.md)
@@ -7295,23 +7466,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCustomerActivityReportsWithoutTotalCount
-
-# **getCustomerActivityReportsWithoutTotalCount**
-> InlineResponse20026 getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName)
+> InlineResponse20025 getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName)
Get Activity Reports for Application Customers
Fetch summary reports for all application customers based on a time range. Instead of having the total number of results in the response, this endpoint only mentions whether there are more results.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7322,49 +7495,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String name = "name_example"; // String | Only return reports matching the customer name.
- String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier.
- String campaignName = "campaignName_example"; // String | Only return reports matching the campaign name.
- String advocateName = "advocateName_example"; // String | Only return reports matching the current customer referrer name.
- try {
- InlineResponse20026 result = apiInstance.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCustomerActivityReportsWithoutTotalCount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ OffsetDateTime rangeStart = new OffsetDateTime(); // OffsetDateTime | Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime rangeEnd = new OffsetDateTime(); // OffsetDateTime | Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String name = "name_example"; // String | Only return reports matching the customer name.
+ String integrationId = "integrationId_example"; // String | Filter results performing an exact matching against the profile integration identifier.
+ String campaignName = "campaignName_example"; // String | Only return reports matching the campaign name.
+ String advocateName = "advocateName_example"; // String | Only return reports matching the current customer referrer name.
+ try {
+ InlineResponse20025 result = apiInstance.getCustomerActivityReportsWithoutTotalCount(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCustomerActivityReportsWithoutTotalCount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**rangeStart** | **OffsetDateTime**| Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. |
@@ -7378,9 +7552,9 @@ Name | Type | Description | Notes
**campaignName** | **String**| Only return reports matching the campaign name. | [optional]
**advocateName** | **String**| Only return reports matching the current customer referrer name. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20026**](InlineResponse20026.md)
+[**InlineResponse20025**](InlineResponse20025.md)
### Authorization
@@ -7388,16 +7562,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCustomerAnalytics
-
-# **getCustomerAnalytics**
> CustomerAnalytics getCustomerAnalytics(applicationId, customerId, pageSize, skip, sort)
Get customer's analytics report
@@ -7405,6 +7580,7 @@ Get customer's analytics report
Fetch analytics for a given customer in the given application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7415,44 +7591,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- CustomerAnalytics result = apiInstance.getCustomerAnalytics(applicationId, customerId, pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCustomerAnalytics");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ CustomerAnalytics result = apiInstance.getCustomerAnalytics(applicationId, customerId, pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCustomerAnalytics");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -7461,7 +7638,7 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
[**CustomerAnalytics**](CustomerAnalytics.md)
@@ -7471,16 +7648,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getCustomerProfile
-
-# **getCustomerProfile**
> CustomerProfile getCustomerProfile(customerId)
Get customer profile
@@ -7488,6 +7666,7 @@ Get customer profile
Return the details of the specified customer profile. <div class=\"redoc-section\"> <p class=\"title\">Performance tips</p> You can retrieve the same information via the Integration API, which can save you extra API requests. consider these options: - Request the customer profile to be part of the response content using [Update Customer Session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2). - Send an empty update with the [Update Customer Profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint with `runRuleEngine=false`. </div>
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7498,45 +7677,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
- try {
- CustomerProfile result = apiInstance.getCustomerProfile(customerId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCustomerProfile");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer customerId = 56; // Integer | The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint.
+ try {
+ CustomerProfile result = apiInstance.getCustomerProfile(customerId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCustomerProfile");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customerId** | **Integer**| The value of the `id` property of a customer profile. Get it with the [List Application's customers](https://docs.talon.one/management-api#operation/getApplicationCustomers) endpoint. |
-### Return type
+### Return type cool
[**CustomerProfile**](CustomerProfile.md)
@@ -7546,23 +7726,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
-
-# **getCustomerProfileAchievementProgress**
-> InlineResponse20047 getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title)
+
+## getCustomerProfileAchievementProgress
+
+> InlineResponse20046 getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title)
List customer achievements
For the given customer profile, list all the achievements that match your filter criteria.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7573,45 +7755,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- String integrationId = "integrationId_example"; // String | The identifier of the profile.
- Integer pageSize = 50; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
- String title = "title_example"; // String | Filter results by the `title` of an achievement.
- try {
- InlineResponse20047 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCustomerProfileAchievementProgress");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ String integrationId = "integrationId_example"; // String | The identifier of the profile.
+ Integer pageSize = 50; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
+ String title = "title_example"; // String | Filter results by the `title` of an achievement.
+ try {
+ InlineResponse20046 result = apiInstance.getCustomerProfileAchievementProgress(applicationId, integrationId, pageSize, skip, achievementId, title);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCustomerProfileAchievementProgress");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -7621,9 +7804,9 @@ Name | Type | Description | Notes
**achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. | [optional]
**title** | **String**| Filter results by the `title` of an achievement. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20047**](InlineResponse20047.md)
+[**InlineResponse20046**](InlineResponse20046.md)
### Authorization
@@ -7631,25 +7814,27 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
-
-# **getCustomerProfiles**
-> InlineResponse20025 getCustomerProfiles(pageSize, skip, sandbox)
+## getCustomerProfiles
+
+> InlineResponse20024 getCustomerProfiles(pageSize, skip, sandbox)
List customer profiles
List all customer profiles.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7660,51 +7845,52 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer.
- try {
- InlineResponse20025 result = apiInstance.getCustomerProfiles(pageSize, skip, sandbox);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCustomerProfiles");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer.
+ try {
+ InlineResponse20024 result = apiInstance.getCustomerProfiles(pageSize, skip, sandbox);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCustomerProfiles");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or live customer. | [optional] [default to false]
-### Return type
+### Return type cool
-[**InlineResponse20025**](InlineResponse20025.md)
+[**InlineResponse20024**](InlineResponse20024.md)
### Authorization
@@ -7712,23 +7898,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getCustomersByAttributes**
-> InlineResponse20024 getCustomersByAttributes(body, pageSize, skip, sandbox)
+## getCustomersByAttributes
+
+> InlineResponse20023 getCustomersByAttributes(body, pageSize, skip, sandbox)
List customer profiles matching the given attributes
Get a list of the customer profiles matching the provided criteria. The match is successful if all the attributes of the request are found in a profile, even if the profile has more attributes that are not present on the request.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7739,43 +7927,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer.
- try {
- InlineResponse20024 result = apiInstance.getCustomersByAttributes(body, pageSize, skip, sandbox);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getCustomersByAttributes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ CustomerProfileSearchQuery body = new CustomerProfileSearchQuery(); // CustomerProfileSearchQuery | body
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ Boolean sandbox = false; // Boolean | Indicates whether you are pointing to a sandbox or live customer.
+ try {
+ InlineResponse20023 result = apiInstance.getCustomersByAttributes(body, pageSize, skip, sandbox);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getCustomersByAttributes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**CustomerProfileSearchQuery**](CustomerProfileSearchQuery.md)| body |
@@ -7783,9 +7972,9 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sandbox** | **Boolean**| Indicates whether you are pointing to a sandbox or live customer. | [optional] [default to false]
-### Return type
+### Return type cool
-[**InlineResponse20024**](InlineResponse20024.md)
+[**InlineResponse20023**](InlineResponse20023.md)
### Authorization
@@ -7793,23 +7982,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getEventTypes**
-> InlineResponse20040 getEventTypes(name, includeOldVersions, pageSize, skip, sort)
+## getEventTypes
+
+> InlineResponse20039 getEventTypes(name, includeOldVersions, pageSize, skip, sort)
List event types
Fetch all event type definitions for your account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7820,44 +8011,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String name = "name_example"; // String | Filter results to event types with the given name. This parameter implies `includeOldVersions`.
- Boolean includeOldVersions = false; // Boolean | Include all versions of every event type.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20040 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getEventTypes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String name = "name_example"; // String | Filter results to event types with the given name. This parameter implies `includeOldVersions`.
+ Boolean includeOldVersions = false; // Boolean | Include all versions of every event type.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse20039 result = apiInstance.getEventTypes(name, includeOldVersions, pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getEventTypes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **String**| Filter results to event types with the given name. This parameter implies `includeOldVersions`. | [optional]
@@ -7866,9 +8058,9 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20040**](InlineResponse20040.md)
+[**InlineResponse20039**](InlineResponse20039.md)
### Authorization
@@ -7876,23 +8068,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
-
-# **getExports**
-> InlineResponse20043 getExports(pageSize, skip, applicationId, campaignId, entity)
+## getExports
+
+> InlineResponse20042 getExports(pageSize, skip, applicationId, campaignId, entity)
Get exports
List all past exports
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7903,44 +8097,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
- Integer campaignId = 56; // Integer | Filter by the campaign ID on which the limit counters are used.
- String entity = "entity_example"; // String | The name of the entity type that was exported.
- try {
- InlineResponse20043 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getExports");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
+ Integer campaignId = 56; // Integer | Filter by the campaign ID on which the limit counters are used.
+ String entity = "entity_example"; // String | The name of the entity type that was exported.
+ try {
+ InlineResponse20042 result = apiInstance.getExports(pageSize, skip, applicationId, campaignId, entity);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getExports");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -7949,9 +8144,9 @@ Name | Type | Description | Notes
**campaignId** | **Integer**| Filter by the campaign ID on which the limit counters are used. | [optional]
**entity** | **String**| The name of the entity type that was exported. | [optional] [enum: Coupon, Referral, Effect, CustomerSession, LoyaltyLedger, LoyaltyLedgerLog, Collection, AudienceMembership]
-### Return type
+### Return type cool
-[**InlineResponse20043**](InlineResponse20043.md)
+[**InlineResponse20042**](InlineResponse20042.md)
### Authorization
@@ -7959,16 +8154,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getLoyaltyCard
-
-# **getLoyaltyCard**
> LoyaltyCard getLoyaltyCard(loyaltyProgramId, loyaltyCardId)
Get loyalty card
@@ -7976,6 +8172,7 @@ Get loyalty card
Get the given loyalty card.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -7986,47 +8183,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- try {
- LoyaltyCard result = apiInstance.getLoyaltyCard(loyaltyProgramId, loyaltyCardId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyCard");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ try {
+ LoyaltyCard result = apiInstance.getLoyaltyCard(loyaltyProgramId, loyaltyCardId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyCard");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. |
-### Return type
+### Return type cool
[**LoyaltyCard**](LoyaltyCard.md)
@@ -8036,19 +8234,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyCardTransactionLogs
-
-# **getLoyaltyCardTransactionLogs**
> InlineResponse20016 getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId)
List card's transactions
@@ -8056,6 +8255,7 @@ List card's transactions
Retrieve the transaction logs for the given [loyalty card](https://docs.talon.one/docs/product/loyalty-programs/card-based/card-based-overview) within the specified [card-based loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview#loyalty-program-types) with filtering options applied. If no filtering options are applied, the last 50 loyalty transactions for the given loyalty card are returned.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8066,46 +8266,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
- try {
- InlineResponse20016 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyCardTransactionLogs");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
+ try {
+ InlineResponse20016 result = apiInstance.getLoyaltyCardTransactionLogs(loyaltyProgramId, loyaltyCardId, startDate, endDate, pageSize, skip, subledgerId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyCardTransactionLogs");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -8116,7 +8317,7 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**subledgerId** | **String**| The ID of the subledger by which we filter the data. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20016**](InlineResponse20016.md)
@@ -8126,18 +8327,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyCards
-
-# **getLoyaltyCards**
> InlineResponse20015 getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId)
List loyalty cards
@@ -8145,6 +8347,7 @@ List loyalty cards
For the given card-based loyalty program, list the loyalty cards that match your filter criteria.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8155,46 +8358,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String identifier = "identifier_example"; // String | The card code by which to filter loyalty cards in the response.
- Integer profileId = 56; // Integer | Filter results by customer profile ID.
- String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID.
- try {
- InlineResponse20015 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyCards");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String identifier = "identifier_example"; // String | The card code by which to filter loyalty cards in the response.
+ Integer profileId = 56; // Integer | Filter results by customer profile ID.
+ String batchId = "batchId_example"; // String | Filter results by loyalty card batch ID.
+ try {
+ InlineResponse20015 result = apiInstance.getLoyaltyCards(loyaltyProgramId, pageSize, skip, sort, identifier, profileId, batchId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyCards");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -8205,7 +8409,7 @@ Name | Type | Description | Notes
**profileId** | **Integer**| Filter results by customer profile ID. | [optional]
**batchId** | **String**| Filter results by loyalty card batch ID. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20015**](InlineResponse20015.md)
@@ -8215,18 +8419,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
+
+## getLoyaltyPoints
-
-# **getLoyaltyPoints**
> LoyaltyLedger getLoyaltyPoints(loyaltyProgramId, integrationId)
Get customer's full loyalty ledger
@@ -8234,6 +8439,7 @@ Get customer's full loyalty ledger
Get the loyalty ledger for this profile integration ID. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8244,47 +8450,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
- String integrationId = "integrationId_example"; // String | The identifier of the profile.
- try {
- LoyaltyLedger result = apiInstance.getLoyaltyPoints(loyaltyProgramId, integrationId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyPoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
+ String integrationId = "integrationId_example"; // String | The identifier of the profile.
+ try {
+ LoyaltyLedger result = apiInstance.getLoyaltyPoints(loyaltyProgramId, integrationId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyPoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **String**| The identifier for the loyalty program. |
**integrationId** | **String**| The identifier of the profile. |
-### Return type
+### Return type cool
[**LoyaltyLedger**](LoyaltyLedger.md)
@@ -8294,16 +8501,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getLoyaltyProgram
-
-# **getLoyaltyProgram**
> LoyaltyProgram getLoyaltyProgram(loyaltyProgramId)
Get loyalty program
@@ -8311,6 +8519,7 @@ Get loyalty program
Get the specified [loyalty program](https://docs.talon.one/docs/product/loyalty-programs/overview). To list all loyalty programs in your Application, use [List loyalty programs](#operation/getLoyaltyPrograms). To list the loyalty programs that a customer profile is part of, use the [List customer data](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/getCustomerInventory)
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8321,45 +8530,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- try {
- LoyaltyProgram result = apiInstance.getLoyaltyProgram(loyaltyProgramId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyProgram");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ try {
+ LoyaltyProgram result = apiInstance.getLoyaltyProgram(loyaltyProgramId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyProgram");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
-### Return type
+### Return type cool
[**LoyaltyProgram**](LoyaltyProgram.md)
@@ -8369,16 +8579,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getLoyaltyProgramTransactions
-
-# **getLoyaltyProgramTransactions**
> InlineResponse20014 getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip)
List loyalty program transactions
@@ -8386,6 +8597,7 @@ List loyalty program transactions
Retrieve loyalty program transaction logs in a given loyalty program with filtering options applied. Manual and imported transactions are also included. **Note:** If no filters are applied, the last 50 loyalty transactions for the given loyalty program are returned. **Important:** To get loyalty transaction logs for a given Integration ID in a loyalty program, we recommend using the Integration API's [Get customer's loyalty logs](https://docs.talon.one/integration-api#tag/Loyalty/operation/getLoyaltyProgramProfileTransactions).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8396,46 +8608,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file.
- String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
- OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
- Integer pageSize = 50; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- try {
- InlineResponse20014 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyProgramTransactions");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyTransactionType = "loyaltyTransactionType_example"; // String | Filter results by loyalty transaction type: - `manual`: Loyalty transaction that was done manually. - `session`: Loyalty transaction that resulted from a customer session. - `import`: Loyalty transaction that was imported from a CSV file.
+ String subledgerId = "subledgerId_example"; // String | The ID of the subledger by which we filter the data.
+ OffsetDateTime startDate = new OffsetDateTime(); // OffsetDateTime | Date and time from which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ OffsetDateTime endDate = new OffsetDateTime(); // OffsetDateTime | Date and time by which results are returned. Results are filtered by transaction creation date. **Note:** - It must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.
+ Integer pageSize = 50; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ try {
+ InlineResponse20014 result = apiInstance.getLoyaltyProgramTransactions(loyaltyProgramId, loyaltyTransactionType, subledgerId, startDate, endDate, pageSize, skip);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyProgramTransactions");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
@@ -8446,7 +8659,7 @@ Name | Type | Description | Notes
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 50]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20014**](InlineResponse20014.md)
@@ -8456,19 +8669,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## getLoyaltyPrograms
-
-# **getLoyaltyPrograms**
> InlineResponse20013 getLoyaltyPrograms()
List loyalty programs
@@ -8476,6 +8690,7 @@ List loyalty programs
List the loyalty programs of the account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8486,41 +8701,42 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- InlineResponse20013 result = apiInstance.getLoyaltyPrograms();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyPrograms");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ InlineResponse20013 result = apiInstance.getLoyaltyPrograms();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyPrograms");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
[**InlineResponse20013**](InlineResponse20013.md)
@@ -8530,16 +8746,17 @@ This endpoint does not need any parameter.
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getLoyaltyStatistics
-
-# **getLoyaltyStatistics**
> LoyaltyDashboardData getLoyaltyStatistics(loyaltyProgramId)
Get loyalty program statistics
@@ -8547,6 +8764,7 @@ Get loyalty program statistics
Retrieve the statistics of the specified loyalty program such as the total active points, pending points, spent points, and expired points. **Important:** The returned data does not include the current day. All statistics are updated daily at 11:59 PM in the loyalty program time zone.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8557,45 +8775,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- try {
- LoyaltyDashboardData result = apiInstance.getLoyaltyStatistics(loyaltyProgramId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getLoyaltyStatistics");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ try {
+ LoyaltyDashboardData result = apiInstance.getLoyaltyStatistics(loyaltyProgramId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getLoyaltyStatistics");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
-### Return type
+### Return type cool
[**LoyaltyDashboardData**](LoyaltyDashboardData.md)
@@ -8605,16 +8824,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getReferralsWithoutTotalCount
-
-# **getReferralsWithoutTotalCount**
> InlineResponse20010 getReferralsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate)
List referrals
@@ -8622,6 +8842,7 @@ List referrals
List all referrals of the specified campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8632,50 +8853,51 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String code = "code_example"; // String | Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future.
- String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`.
- String advocate = "advocate_example"; // String | Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field.
- try {
- InlineResponse20010 result = apiInstance.getReferralsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getReferralsWithoutTotalCount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String code = "code_example"; // String | Filter results performing case-insensitive matching against the referral code. Both the code and the query are folded to remove all non-alpha-numeric characters.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the referral creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches referrals in which the expiration date is set and in the past. The second matches referrals in which start date is null or in the past and expiration date is null or in the future, the third matches referrals in which start date is set and in the future.
+ String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`.
+ String advocate = "advocate_example"; // String | Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field.
+ try {
+ InlineResponse20010 result = apiInstance.getReferralsWithoutTotalCount(applicationId, campaignId, pageSize, skip, sort, code, createdBefore, createdAfter, valid, usable, advocate);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getReferralsWithoutTotalCount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -8690,7 +8912,7 @@ Name | Type | Description | Notes
**usable** | **String**| Either \"true\" or \"false\". If \"true\", only referrals where `usageCounter < usageLimit` will be returned, \"false\" will return only referrals where `usageCounter >= usageLimit`. | [optional] [enum: true, false]
**advocate** | **String**| Filter results by match with a profile ID specified in the referral's AdvocateProfileIntegrationId field. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20010**](InlineResponse20010.md)
@@ -8700,16 +8922,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getRoleV2
-
-# **getRoleV2**
> RoleV2 getRoleV2(roleId)
Get role
@@ -8717,6 +8940,7 @@ Get role
Get the details of a specific role. To see all the roles, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8727,45 +8951,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint.
- try {
- RoleV2 result = apiInstance.getRoleV2(roleId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getRoleV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint.
+ try {
+ RoleV2 result = apiInstance.getRoleV2(roleId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getRoleV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**roleId** | **Integer**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. |
-### Return type
+### Return type cool
[**RoleV2**](RoleV2.md)
@@ -8775,16 +9000,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getRuleset
-
-# **getRuleset**
> Ruleset getRuleset(applicationId, campaignId, rulesetId)
Get ruleset
@@ -8792,6 +9018,7 @@ Get ruleset
Retrieve the specified ruleset.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8802,49 +9029,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer rulesetId = 56; // Integer | The ID of the ruleset.
- try {
- Ruleset result = apiInstance.getRuleset(applicationId, campaignId, rulesetId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getRuleset");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer rulesetId = 56; // Integer | The ID of the ruleset.
+ try {
+ Ruleset result = apiInstance.getRuleset(applicationId, campaignId, rulesetId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getRuleset");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**rulesetId** | **Integer**| The ID of the ruleset. |
-### Return type
+### Return type cool
[**Ruleset**](Ruleset.md)
@@ -8854,16 +9082,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getRulesets
-
-# **getRulesets**
> InlineResponse2007 getRulesets(applicationId, campaignId, pageSize, skip, sort)
List campaign rulesets
@@ -8871,6 +9100,7 @@ List campaign rulesets
List all rulesets of this campaign. A ruleset is a revision of the rules of a campaign. **Important:** The response also includes deleted rules. You should only consider the latest revision of the returned rulesets.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8881,44 +9111,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse2007 result = apiInstance.getRulesets(applicationId, campaignId, pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getRulesets");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse2007 result = apiInstance.getRulesets(applicationId, campaignId, pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getRulesets");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -8927,7 +9158,7 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
[**InlineResponse2007**](InlineResponse2007.md)
@@ -8937,16 +9168,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getStore
-
-# **getStore**
> Store getStore(applicationId, storeId)
Get store
@@ -8954,6 +9186,7 @@ Get store
Get store details for a specific store ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -8964,47 +9197,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
- try {
- Store result = apiInstance.getStore(applicationId, storeId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getStore");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
+ try {
+ Store result = apiInstance.getStore(applicationId, storeId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getStore");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. |
-### Return type
+### Return type cool
[**Store**](Store.md)
@@ -9014,17 +9248,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **404** | Not found | - |
+
+
+## getUser
-
-# **getUser**
> User getUser(userId)
Get user
@@ -9032,6 +9267,7 @@ Get user
Retrieve the data (including an invitation code) for a user. Non-admin users can only get their own profile.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9042,45 +9278,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer userId = 56; // Integer | The ID of the user.
- try {
- User result = apiInstance.getUser(userId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer userId = 56; // Integer | The ID of the user.
+ try {
+ User result = apiInstance.getUser(userId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **Integer**| The ID of the user. |
-### Return type
+### Return type cool
[**User**](User.md)
@@ -9090,23 +9327,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getUsers
-
-# **getUsers**
-> InlineResponse20041 getUsers(pageSize, skip, sort)
+> InlineResponse20040 getUsers(pageSize, skip, sort)
List users in account
Retrieve all users in your account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9117,51 +9356,52 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- try {
- InlineResponse20041 result = apiInstance.getUsers(pageSize, skip, sort);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getUsers");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ try {
+ InlineResponse20040 result = apiInstance.getUsers(pageSize, skip, sort);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getUsers");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**sort** | **String**| The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20041**](InlineResponse20041.md)
+[**InlineResponse20040**](InlineResponse20040.md)
### Authorization
@@ -9169,16 +9409,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getWebhook
-
-# **getWebhook**
> Webhook getWebhook(webhookId)
Get webhook
@@ -9186,6 +9427,7 @@ Get webhook
Returns a webhook by its id.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9196,45 +9438,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer webhookId = 56; // Integer | The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**.
- try {
- Webhook result = apiInstance.getWebhook(webhookId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getWebhook");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer webhookId = 56; // Integer | The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**.
+ try {
+ Webhook result = apiInstance.getWebhook(webhookId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getWebhook");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**webhookId** | **Integer**| The ID of the webhook. You can find the ID in the Campaign Manager's URL when you display the details of the webhook in **Account** > **Webhooks**. |
-### Return type
+### Return type cool
[**Webhook**](Webhook.md)
@@ -9244,23 +9487,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
-
-# **getWebhookActivationLogs**
-> InlineResponse20038 getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter)
+
+## getWebhookActivationLogs
+
+> InlineResponse20037 getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter)
List webhook activation log entries
Webhook activation log entries are created as soon as an integration request triggers a webhook effect. See the [docs](https://docs.talon.one/docs/dev/getting-started/webhooks).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9271,48 +9516,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String integrationRequestUuid = "integrationRequestUuid_example"; // String | Filter results by integration request UUID.
- BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id.
- BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
- BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally.
- try {
- InlineResponse20038 result = apiInstance.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getWebhookActivationLogs");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String integrationRequestUuid = "integrationRequestUuid_example"; // String | Filter results by integration request UUID.
+ BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id.
+ BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
+ BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally.
+ try {
+ InlineResponse20037 result = apiInstance.getWebhookActivationLogs(pageSize, skip, sort, integrationRequestUuid, webhookId, applicationId, campaignId, createdBefore, createdAfter);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getWebhookActivationLogs");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -9325,9 +9571,9 @@ Name | Type | Description | Notes
**createdBefore** | **OffsetDateTime**| Only return events created before this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional]
**createdAfter** | **OffsetDateTime**| Only return events created after this date. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20038**](InlineResponse20038.md)
+[**InlineResponse20037**](InlineResponse20037.md)
### Authorization
@@ -9335,23 +9581,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## getWebhookLogs
-
-# **getWebhookLogs**
-> InlineResponse20039 getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter)
+> InlineResponse20038 getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter)
List webhook log entries
Retrieve all webhook log entries.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9362,49 +9610,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String status = "status_example"; // String | Filter results by HTTP status codes.
- BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id.
- BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
- BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
- String requestUuid = "requestUuid_example"; // String | Filter results by request UUID.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
- try {
- InlineResponse20039 result = apiInstance.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getWebhookLogs");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String status = "status_example"; // String | Filter results by HTTP status codes.
+ BigDecimal webhookId = new BigDecimal(); // BigDecimal | Filter results by webhook id.
+ BigDecimal applicationId = new BigDecimal(); // BigDecimal | Filter results by Application ID.
+ BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
+ String requestUuid = "requestUuid_example"; // String | Filter results by request UUID.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally.
+ try {
+ InlineResponse20038 result = apiInstance.getWebhookLogs(pageSize, skip, sort, status, webhookId, applicationId, campaignId, requestUuid, createdBefore, createdAfter);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getWebhookLogs");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -9418,9 +9667,9 @@ Name | Type | Description | Notes
**createdBefore** | **OffsetDateTime**| Filter results where request and response times to return entries before parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional]
**createdAfter** | **OffsetDateTime**| Filter results where request and response times to return entries after parameter value, expected to be an RFC3339 timestamp string. You can use any time zone setting. Talon.One will convert to UTC internally. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20039**](InlineResponse20039.md)
+[**InlineResponse20038**](InlineResponse20038.md)
### Authorization
@@ -9428,23 +9677,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
-
-# **getWebhooks**
-> InlineResponse20037 getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title)
+
+## getWebhooks
+
+> InlineResponse20036 getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title)
List webhooks
List all webhooks.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9455,47 +9706,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String applicationIds = "applicationIds_example"; // String | Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String creationType = "creationType_example"; // String | Filter results by creation type.
- String visibility = "visibility_example"; // String | Filter results by visibility.
- Integer outgoingIntegrationsTypeId = 56; // Integer | Filter results by outgoing integration type ID.
- String title = "title_example"; // String | Filter results performing case-insensitive matching against the webhook title.
- try {
- InlineResponse20037 result = apiInstance.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#getWebhooks");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String applicationIds = "applicationIds_example"; // String | Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String creationType = "creationType_example"; // String | Filter results by creation type.
+ String visibility = "visibility_example"; // String | Filter results by visibility.
+ Integer outgoingIntegrationsTypeId = 56; // Integer | Filter results by outgoing integration type ID.
+ String title = "title_example"; // String | Filter results performing case-insensitive matching against the webhook title.
+ try {
+ InlineResponse20036 result = apiInstance.getWebhooks(applicationIds, sort, pageSize, skip, creationType, visibility, outgoingIntegrationsTypeId, title);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#getWebhooks");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationIds** | **String**| Checks if the given catalog or its attributes are referenced in the specified Application ID. **Note**: If no Application ID is provided, we check for all connected Applications. | [optional]
@@ -9507,9 +9759,9 @@ Name | Type | Description | Notes
**outgoingIntegrationsTypeId** | **Integer**| Filter results by outgoing integration type ID. | [optional]
**title** | **String**| Filter results performing case-insensitive matching against the webhook title. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20037**](InlineResponse20037.md)
+[**InlineResponse20036**](InlineResponse20036.md)
### Authorization
@@ -9517,16 +9769,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## importAccountCollection
-
-# **importAccountCollection**
> ModelImport importAccountCollection(collectionId, upFile)
Import data into existing account-level collection
@@ -9534,6 +9787,7 @@ Import data into existing account-level collection
Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9544,47 +9798,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importAccountCollection(collectionId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importAccountCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importAccountCollection(collectionId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importAccountCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -9594,18 +9849,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+
+
+## importAllowedList
-
-# **importAllowedList**
> ModelImport importAllowedList(attributeId, upFile)
Import allowed values for attribute
@@ -9613,6 +9869,7 @@ Import allowed values for attribute
Upload a CSV file containing a list of [picklist values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values) for the specified attribute. The file should be sent as multipart data. The import **replaces** the previous list of allowed values for this attribute, if any. The CSV file **must** only contain the following column: - `item` (required): the values in your allowed list, for example a list of SKU's. An allowed list is limited to 500,000 items. Example: ```text item CS-VG-04032021-UP-50D-10 CS-DV-04042021-UP-49D-12 CS-DG-02082021-UP-50G-07 ```
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9623,47 +9880,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importAllowedList(attributeId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importAllowedList");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importAllowedList(attributeId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importAllowedList");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -9673,19 +9931,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## importAudiencesMemberships
-
-# **importAudiencesMemberships**
> ModelImport importAudiencesMemberships(audienceId, upFile)
Import audience members
@@ -9693,6 +9952,7 @@ Import audience members
Upload a CSV file containing the integration IDs of the members you want to add to an audience. The file should be sent as multipart data and should contain only the following column (required): - `profileintegrationid`: The integration ID of the customer profile. The import **replaces** the previous list of audience members. **Note:** We recommend limiting your file size to 500MB. Example: ```text profileintegrationid charles alexa ```
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9703,47 +9963,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer audienceId = 56; // Integer | The ID of the audience.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importAudiencesMemberships(audienceId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importAudiencesMemberships");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer audienceId = 56; // Integer | The ID of the audience.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importAudiencesMemberships(audienceId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importAudiencesMemberships");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**audienceId** | **Integer**| The ID of the audience. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -9753,19 +10014,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## importCampaignStores
-
-# **importCampaignStores**
> ModelImport importCampaignStores(applicationId, campaignId, upFile)
Import stores
@@ -9773,6 +10035,7 @@ Import stores
Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9783,49 +10046,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importCampaignStores(applicationId, campaignId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importCampaignStores");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importCampaignStores(applicationId, campaignId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importCampaignStores");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -9835,19 +10099,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized - Invalid API key | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized - Invalid API key | - |
+| **404** | Not found | - |
+
+
+## importCollection
-
-# **importCollection**
> ModelImport importCollection(applicationId, campaignId, collectionId, upFile)
Import data into existing campaign-level collection
@@ -9855,6 +10120,7 @@ Import data into existing campaign-level collection
Upload a CSV file containing the collection of string values that should be attached as payload for collection. The file should be sent as multipart data. The import **replaces** the initial content of the collection. The CSV file **must** only contain the following column: - `item`: the values in your collection. A collection is limited to 500,000 items. Example: ``` item Addidas Nike Asics ``` **Note:** Before sending a request to this endpoint, ensure the data in the CSV to import is different from the data currently stored in the collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9865,43 +10131,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importCollection(applicationId, campaignId, collectionId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importCollection(applicationId, campaignId, collectionId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -9909,7 +10176,7 @@ Name | Type | Description | Notes
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -9919,17 +10186,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+
+
+## importCoupons
-
-# **importCoupons**
> ModelImport importCoupons(applicationId, campaignId, skipDuplicates, upFile)
Import coupons
@@ -9937,6 +10205,7 @@ Import coupons
Upload a CSV file containing the coupons that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `value` (required): The coupon code. - `expirydate`: The end date in RFC3339 of the code redemption period. - `startdate`: The start date in RFC3339 of the code redemption period. - `recipientintegrationid`: The integration ID of the recipient of the coupon. Only the customer with this integration ID can redeem this code. Available only for personal codes. - `limitval`: The maximum number of redemptions of this code. For unlimited redemptions, use `0`. Defaults to `1` when not provided. - `discountlimit`: The total discount value that the code can give. This is typically used to represent a gift card value. - `attributes`: A JSON object describing _custom_ coupon attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the coupon entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text \"value\",\"expirydate\",\"startdate\",\"recipientintegrationid\",\"limitval\",\"attributes\",\"discountlimit\" COUP1,2018-07-01T04:00:00Z,2018-05-01T04:00:00Z,cust123,1,\"{\"\"Category\"\": \"\"10_off\"\"}\",2.4 ``` Once imported, you can find the `batchId` in the Campaign Manager or by using [List coupons](#tag/Coupons/operation/getCouponsWithoutTotalCount).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -9947,43 +10216,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Boolean skipDuplicates = true; // Boolean | An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importCoupons(applicationId, campaignId, skipDuplicates, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importCoupons");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Boolean skipDuplicates = true; // Boolean | An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importCoupons(applicationId, campaignId, skipDuplicates, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importCoupons");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -9991,7 +10261,7 @@ Name | Type | Description | Notes
**skipDuplicates** | **Boolean**| An indicator of whether to skip duplicate coupon values instead of causing an error. Duplicate values are ignored when `skipDuplicates=true`. | [optional]
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -10001,23 +10271,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## importLoyaltyCards
-
-# **importLoyaltyCards**
> ModelImport importLoyaltyCards(loyaltyProgramId, upFile)
Import loyalty cards
-Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ```
+Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data. It contains the following columns for each card: - `identifier` (required): The alphanumeric identifier of the loyalty card. - `state` (required): The state of the loyalty card. It can be `active` or `inactive`. - `customerprofileids` (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card. The identifiers should be separated with a semicolon (;). **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv identifier,state,customerprofileids 123-456-789AT,active,Alexa001;UserA ```
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10028,47 +10300,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importLoyaltyCards(loyaltyProgramId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importLoyaltyCards");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importLoyaltyCards(loyaltyProgramId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importLoyaltyCards");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -10078,18 +10351,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## importLoyaltyCustomersTiers
-
-# **importLoyaltyCustomersTiers**
> ModelImport importLoyaltyCustomersTiers(loyaltyProgramId, upFile)
Import customers into loyalty tiers
@@ -10097,6 +10371,7 @@ Import customers into loyalty tiers
Upload a CSV file containing existing customers to be assigned to existing tiers. Send the file as multipart data. **Important:** This endpoint only works with loyalty programs with advanced tiers (with expiration and downgrade policy) feature enabled. The CSV file should contain the following columns: - `subledgerid` (optional): The ID of the subledger. If this field is empty, the main ledger will be used. - `customerprofileid`: The integration ID of the customer profile to whom the tier should be assigned. - `tiername`: The name of an existing tier to assign to the customer. - `expirydate`: The expiration date of the tier when the tier is reevaluated. It should be a future date. About customer assignment to a tier: - If the customer isn't already in a tier, the customer is assigned to the specified tier during the tier import. - If the customer is already in the tier that's specified in the CSV file, only the expiration date is updated. **Note:** We recommend not using this endpoint to update the tier of a customer. To update a customer's tier, you can [add](/management-api#tag/Loyalty/operation/addLoyaltyPoints) or [deduct](/management-api#tag/Loyalty/operation/removeLoyaltyPoints) their loyalty points. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** We recommend limiting your file size to 500MB. **Example:** ```csv subledgerid,customerprofileid,tiername,expirydate SUB1,alexa,Gold,2024-03-21T07:32:14Z ,george,Silver,2025-04-16T21:12:37Z SUB2,avocado,Bronze,2026-05-03T11:47:01Z ```
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10107,47 +10382,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importLoyaltyCustomersTiers(loyaltyProgramId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importLoyaltyCustomersTiers");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importLoyaltyCustomersTiers(loyaltyProgramId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importLoyaltyCustomersTiers");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -10157,26 +10433,28 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## importLoyaltyPoints
-
-# **importLoyaltyPoints**
> ModelImport importLoyaltyPoints(loyaltyProgramId, upFile)
Import loyalty points
-Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ```
+Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ```
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10187,47 +10465,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importLoyaltyPoints(loyaltyProgramId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importLoyaltyPoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importLoyaltyPoints(loyaltyProgramId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importLoyaltyPoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -10237,16 +10516,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## importPoolGiveaways
-
-# **importPoolGiveaways**
> ModelImport importPoolGiveaways(poolId, upFile)
Import giveaway codes into a giveaway pool
@@ -10254,6 +10534,7 @@ Import giveaway codes into a giveaway pool
Upload a CSV file containing the giveaway codes that should be created. Send the file as multipart data. The CSV file contains the following columns: - `code` (required): The code of your giveaway, for instance, a gift card redemption code. - `startdate`: The start date in RFC3339 of the code redemption period. - `enddate`: The last date in RFC3339 of the code redemption period. - `attributes`: A JSON object describing _custom_ giveaway attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `provider` associated with the giveaway entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"provider\": \"myPartnerCompany\"}\"`. The `startdate` and `enddate` have nothing to do with the _validity_ of the codes. They are only used by the Rule Engine to award the codes or not. You can use the time zone setting of your choice. The values are converted to UTC internally by Talon.One. **Note:** - We recommend limiting your file size to 500MB. - You can import the same code multiple times. Duplicate codes are treated and distributed to customers as unique codes. **Example:** ```text code,startdate,enddate,attributes GIVEAWAY1,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY2,2020-11-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Amazon\"\"}\" GIVEAWAY3,2021-01-10T23:00:00Z,2022-11-11T23:00:00Z,\"{\"\"provider\"\": \"\"Aliexpress\"\"}\" ```
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10264,47 +10545,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importPoolGiveaways(poolId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importPoolGiveaways");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer poolId = 56; // Integer | The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importPoolGiveaways(poolId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importPoolGiveaways");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**poolId** | **Integer**| The ID of the pool. You can find it in the Campaign Manager, in the **Giveaways** section. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -10314,16 +10596,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## importReferrals
-
-# **importReferrals**
> ModelImport importReferrals(applicationId, campaignId, upFile)
Import referrals
@@ -10331,6 +10614,7 @@ Import referrals
Upload a CSV file containing the referrals that should be created. The file should be sent as multipart data. The CSV file contains the following columns: - `code` (required): The referral code. - `advocateprofileintegrationid` (required): The profile ID of the advocate. - `startdate`: The start date in RFC3339 of the code redemption period. - `expirydate`: The end date in RFC3339 of the code redemption period. - `limitval`: The maximum number of redemptions of this code. Defaults to `1` when left blank. - `attributes`: A JSON object describing _custom_ referral attribute names and their values, enclosed with double quotation marks. For example, if you created a [custom attribute](https://docs.talon.one/docs/dev/concepts/attributes#custom-attributes) called `category` associated with the referral entity, the object in the CSV file, when opened in a text editor, must be: `\"{\"category\": \"10_off\"}\"`. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Important:** When you import a CSV file with referrals, a [customer profile](https://docs.talon.one/docs/dev/concepts/entities/customer-profiles) is **not** automatically created for each `advocateprofileintegrationid` column value. Use the [Update customer profile](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfileV2) endpoint or the [Update multiple customer profiles](https://docs.talon.one/integration-api#tag/Customer-profiles/operation/updateCustomerProfilesV2) endpoint to create the customer profiles. **Note:** We recommend limiting your file size to 500MB. **Example:** ```text code,startdate,expirydate,advocateprofileintegrationid,limitval,attributes REFERRAL_CODE1,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid_4,1,\"{\"\"my_attribute\"\": \"\"10_off\"\"}\" REFERRAL_CODE2,2020-11-10T23:00:00Z,2021-11-11T23:00:00Z,integid1,1,\"{\"\"my_attribute\"\": \"\"20_off\"\"}\" ```
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10341,49 +10625,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- String upFile = "upFile_example"; // String | The file containing the data that is being imported.
- try {
- ModelImport result = apiInstance.importReferrals(applicationId, campaignId, upFile);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#importReferrals");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ String upFile = "upFile_example"; // String | The file containing the data that is being imported.
+ try {
+ ModelImport result = apiInstance.importReferrals(applicationId, campaignId, upFile);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#importReferrals");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**upFile** | **String**| The file containing the data that is being imported. | [optional]
-### Return type
+### Return type cool
[**ModelImport**](ModelImport.md)
@@ -10393,16 +10678,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
+- **Content-Type**: multipart/form-data
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## inviteUserExternal
-
-# **inviteUserExternal**
> inviteUserExternal(body)
Invite user from identity provider
@@ -10410,6 +10696,7 @@ Invite user from identity provider
[Invite a user](https://docs.talon.one/docs/product/account/account-settings/managing-users#inviting-a-user) from an external identity provider to Talon.One by sending an invitation to their email address.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10420,44 +10707,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewExternalInvitation body = new NewExternalInvitation(); // NewExternalInvitation | body
- try {
- apiInstance.inviteUserExternal(body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#inviteUserExternal");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewExternalInvitation body = new NewExternalInvitation(); // NewExternalInvitation | body
+ try {
+ apiInstance.inviteUserExternal(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#inviteUserExternal");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewExternalInvitation**](NewExternalInvitation.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -10467,16 +10755,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: Not defined
+- **Content-Type**: application/json
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | Invitation email sent | - |
+| **204** | Invitation email sent | - |
+
+
+## listAccountCollections
-
-# **listAccountCollections**
> InlineResponse20017 listAccountCollections(pageSize, skip, sort, withTotalResultSize, name)
List collections in account
@@ -10484,6 +10773,7 @@ List collections in account
List account-level collections in the account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10494,44 +10784,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- String name = "name_example"; // String | Filter by collection name.
- try {
- InlineResponse20017 result = apiInstance.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#listAccountCollections");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ String name = "name_example"; // String | Filter by collection name.
+ try {
+ InlineResponse20017 result = apiInstance.listAccountCollections(pageSize, skip, sort, withTotalResultSize, name);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#listAccountCollections");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageSize** | **Integer**| The number of items in the response. | [optional] [default to 1000]
@@ -10540,7 +10831,7 @@ Name | Type | Description | Notes
**withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional]
**name** | **String**| Filter by collection name. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20017**](InlineResponse20017.md)
@@ -10550,26 +10841,28 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## listAchievements
-
-# **listAchievements**
-> InlineResponse20046 listAchievements(applicationId, campaignId, pageSize, skip, title)
+> InlineResponse20045 listAchievements(applicationId, campaignId, pageSize, skip, title)
List achievements
List all the achievements for a specific campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10580,44 +10873,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 50; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String title = "title_example"; // String | Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned.
- try {
- InlineResponse20046 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#listAchievements");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 50; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String title = "title_example"; // String | Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned.
+ try {
+ InlineResponse20045 result = apiInstance.listAchievements(applicationId, campaignId, pageSize, skip, title);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#listAchievements");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -10626,9 +10920,9 @@ Name | Type | Description | Notes
**skip** | **Integer**| The number of items to skip when paging through large result sets. | [optional]
**title** | **String**| Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20046**](InlineResponse20046.md)
+[**InlineResponse20045**](InlineResponse20045.md)
### Authorization
@@ -10636,23 +10930,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
-
-# **listAllRolesV2**
-> InlineResponse20044 listAllRolesV2()
+
+## listAllRolesV2
+
+> InlineResponse20043 listAllRolesV2()
List roles
List all roles.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10663,43 +10959,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- InlineResponse20044 result = apiInstance.listAllRolesV2();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#listAllRolesV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ InlineResponse20043 result = apiInstance.listAllRolesV2();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#listAllRolesV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
-[**InlineResponse20044**](InlineResponse20044.md)
+[**InlineResponse20043**](InlineResponse20043.md)
### Authorization
@@ -10707,23 +11004,25 @@ This endpoint does not need any parameter.
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## listCatalogItems
-
-# **listCatalogItems**
-> InlineResponse20035 listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames)
+> InlineResponse20034 listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames)
List items in a catalog
Return a paginated list of cart items in the given catalog.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10734,45 +11033,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- List sku = Arrays.asList(); // List | Filter results by one or more SKUs. Must be exact match.
- List productNames = Arrays.asList(); // List | Filter results by one or more product names. Must be exact match.
- try {
- InlineResponse20035 result = apiInstance.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#listCatalogItems");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer catalogId = 56; // Integer | The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ List sku = Arrays.asList(); // List | Filter results by one or more SKUs. Must be exact match.
+ List productNames = Arrays.asList(); // List | Filter results by one or more product names. Must be exact match.
+ try {
+ InlineResponse20034 result = apiInstance.listCatalogItems(catalogId, pageSize, skip, withTotalResultSize, sku, productNames);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#listCatalogItems");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**catalogId** | **Integer**| The ID of the catalog. You can find the ID in the Campaign Manager in **Account** > **Tools** > **Cart item catalogs**. |
@@ -10782,9 +11082,9 @@ Name | Type | Description | Notes
**sku** | [**List<String>**](String.md)| Filter results by one or more SKUs. Must be exact match. | [optional]
**productNames** | [**List<String>**](String.md)| Filter results by one or more product names. Must be exact match. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20035**](InlineResponse20035.md)
+[**InlineResponse20034**](InlineResponse20034.md)
### Authorization
@@ -10792,16 +11092,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## listCollections
-
-# **listCollections**
> InlineResponse20017 listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name)
List collections in campaign
@@ -10809,6 +11110,7 @@ List collections in campaign
List collections in a given campaign.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10819,46 +11121,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- String name = "name_example"; // String | Filter by collection name.
- try {
- InlineResponse20017 result = apiInstance.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#listCollections");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ String name = "name_example"; // String | Filter by collection name.
+ try {
+ InlineResponse20017 result = apiInstance.listCollections(applicationId, campaignId, pageSize, skip, sort, withTotalResultSize, name);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#listCollections");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -10869,7 +11172,7 @@ Name | Type | Description | Notes
**withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional]
**name** | **String**| Filter by collection name. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20017**](InlineResponse20017.md)
@@ -10879,17 +11182,18 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **404** | Not found | - |
+
+
+## listCollectionsInApplication
-
-# **listCollectionsInApplication**
> InlineResponse20017 listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name)
List collections in Application
@@ -10897,6 +11201,7 @@ List collections in Application
List campaign-level collections from all campaigns in a given Application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10907,45 +11212,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- String name = "name_example"; // String | Filter by collection name.
- try {
- InlineResponse20017 result = apiInstance.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#listCollectionsInApplication");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ String name = "name_example"; // String | Filter by collection name.
+ try {
+ InlineResponse20017 result = apiInstance.listCollectionsInApplication(applicationId, pageSize, skip, sort, withTotalResultSize, name);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#listCollectionsInApplication");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -10955,7 +11261,7 @@ Name | Type | Description | Notes
**withTotalResultSize** | **Boolean**| When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. | [optional]
**name** | **String**| Filter by collection name. | [optional]
-### Return type
+### Return type cool
[**InlineResponse20017**](InlineResponse20017.md)
@@ -10965,24 +11271,26 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **404** | Not found | - |
-
-# **listStores**
-> InlineResponse20045 listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query)
+
+## listStores
+
+> InlineResponse20044 listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query)
List stores
List all stores for a specific Application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -10993,48 +11301,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
- BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
- String name = "name_example"; // String | The name of the store.
- String integrationId = "integrationId_example"; // String | The integration ID of the store.
- String query = "query_example"; // String | Filter results by `name` or `integrationId`.
- try {
- InlineResponse20045 result = apiInstance.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#listStores");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ Boolean withTotalResultSize = true; // Boolean | When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query.
+ BigDecimal campaignId = new BigDecimal(); // BigDecimal | Filter results by campaign ID.
+ String name = "name_example"; // String | The name of the store.
+ String integrationId = "integrationId_example"; // String | The integration ID of the store.
+ String query = "query_example"; // String | Filter results by `name` or `integrationId`.
+ try {
+ InlineResponse20044 result = apiInstance.listStores(applicationId, pageSize, skip, sort, withTotalResultSize, campaignId, name, integrationId, query);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#listStores");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -11047,9 +11356,9 @@ Name | Type | Description | Notes
**integrationId** | **String**| The integration ID of the store. | [optional]
**query** | **String**| Filter results by `name` or `integrationId`. | [optional]
-### Return type
+### Return type cool
-[**InlineResponse20045**](InlineResponse20045.md)
+[**InlineResponse20044**](InlineResponse20044.md)
### Authorization
@@ -11057,16 +11366,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## notificationActivation
-
-# **notificationActivation**
> notificationActivation(notificationId, body)
Activate or deactivate notification
@@ -11074,6 +11384,7 @@ Activate or deactivate notification
Activate or deactivate the given notification. When `enabled` is false, updates will no longer be sent for the given notification.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11084,46 +11395,47 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer notificationId = 56; // Integer | The ID of the notification. Get it with the appropriate _List notifications_ endpoint.
- NotificationActivation body = new NotificationActivation(); // NotificationActivation | body
- try {
- apiInstance.notificationActivation(notificationId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#notificationActivation");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer notificationId = 56; // Integer | The ID of the notification. Get it with the appropriate _List notifications_ endpoint.
+ NotificationActivation body = new NotificationActivation(); // NotificationActivation | body
+ try {
+ apiInstance.notificationActivation(notificationId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#notificationActivation");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**notificationId** | **Integer**| The ID of the notification. Get it with the appropriate _List notifications_ endpoint. |
**body** | [**NotificationActivation**](NotificationActivation.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -11133,16 +11445,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: Not defined
+- **Content-Type**: application/json
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## oktaEventHandlerChallenge
-
-# **oktaEventHandlerChallenge**
> oktaEventHandlerChallenge()
Validate Okta API ownership
@@ -11150,6 +11463,7 @@ Validate Okta API ownership
Validate the ownership of the API through a challenge-response mechanism. This challenger endpoint is used by Okta to confirm that communication between Talon.One and Okta is correctly configured and accessible for provisioning and deprovisioning of Talon.One users, and that only Talon.One can receive and respond to events from Okta.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11160,40 +11474,41 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- apiInstance.oktaEventHandlerChallenge();
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#oktaEventHandlerChallenge");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ apiInstance.oktaEventHandlerChallenge();
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#oktaEventHandlerChallenge");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
null (empty response body)
@@ -11203,16 +11518,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## postAddedDeductedPointsNotification
-
-# **postAddedDeductedPointsNotification**
> BaseNotification postAddedDeductedPointsNotification(loyaltyProgramId, body)
Create notification about added or deducted loyalty points
@@ -11220,6 +11536,7 @@ Create notification about added or deducted loyalty points
Create a notification about added or deducted loyalty points in a given profile-based loyalty program. A notification for added or deducted loyalty points is different from regular webhooks in that it is loyalty program-scoped and has a predefined payload. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11230,47 +11547,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- NewBaseNotification body = new NewBaseNotification(); // NewBaseNotification | body
- try {
- BaseNotification result = apiInstance.postAddedDeductedPointsNotification(loyaltyProgramId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#postAddedDeductedPointsNotification");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ NewBaseNotification body = new NewBaseNotification(); // NewBaseNotification | body
+ try {
+ BaseNotification result = apiInstance.postAddedDeductedPointsNotification(loyaltyProgramId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#postAddedDeductedPointsNotification");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**body** | [**NewBaseNotification**](NewBaseNotification.md)| body |
-### Return type
+### Return type cool
[**BaseNotification**](BaseNotification.md)
@@ -11280,19 +11598,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## postCatalogsStrikethroughNotification
-
-# **postCatalogsStrikethroughNotification**
> BaseNotification postCatalogsStrikethroughNotification(applicationId, body)
Create strikethrough notification
@@ -11300,6 +11619,7 @@ Create strikethrough notification
Create a notification for the in the given Application. For more information, see [Managing notifications](https://docs.talon.one/docs/product/applications/outbound-notifications). See the [payload](https://docs.talon.one/outbound-notifications) you will receive.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11310,47 +11630,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- NewBaseNotification body = new NewBaseNotification(); // NewBaseNotification | body
- try {
- BaseNotification result = apiInstance.postCatalogsStrikethroughNotification(applicationId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#postCatalogsStrikethroughNotification");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ NewBaseNotification body = new NewBaseNotification(); // NewBaseNotification | body
+ try {
+ BaseNotification result = apiInstance.postCatalogsStrikethroughNotification(applicationId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#postCatalogsStrikethroughNotification");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**body** | [**NewBaseNotification**](NewBaseNotification.md)| body |
-### Return type
+### Return type cool
[**BaseNotification**](BaseNotification.md)
@@ -11360,19 +11681,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## postPendingPointsNotification
-
-# **postPendingPointsNotification**
> BaseNotification postPendingPointsNotification(loyaltyProgramId, body)
Create notification about pending loyalty points
@@ -11380,6 +11702,7 @@ Create notification about pending loyalty points
Create a notification about pending loyalty points for a given profile-based loyalty program. For more information, see [Managing loyalty notifications](https://docs.talon.one/docs/product/loyalty-programs/managing-loyalty-notifications).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11390,47 +11713,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- NewBaseNotification body = new NewBaseNotification(); // NewBaseNotification | body
- try {
- BaseNotification result = apiInstance.postPendingPointsNotification(loyaltyProgramId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#postPendingPointsNotification");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ NewBaseNotification body = new NewBaseNotification(); // NewBaseNotification | body
+ try {
+ BaseNotification result = apiInstance.postPendingPointsNotification(loyaltyProgramId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#postPendingPointsNotification");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the profile-based loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**body** | [**NewBaseNotification**](NewBaseNotification.md)| body |
-### Return type
+### Return type cool
[**BaseNotification**](BaseNotification.md)
@@ -11440,19 +11764,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## removeLoyaltyPoints
-
-# **removeLoyaltyPoints**
> removeLoyaltyPoints(loyaltyProgramId, integrationId, body)
Deduct points from customer profile
@@ -11460,6 +11785,7 @@ Deduct points from customer profile
Deduct points from the specified loyalty program and specified customer profile. **Important:** - Only active points can be deducted. - Only pending points are rolled back when a session is cancelled or reopened. To get the `integrationId` of the profile from a `sessionId`, use the [Update customer session](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11470,48 +11796,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
- String integrationId = "integrationId_example"; // String | The identifier of the profile.
- DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body
- try {
- apiInstance.removeLoyaltyPoints(loyaltyProgramId, integrationId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#removeLoyaltyPoints");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ String loyaltyProgramId = "loyaltyProgramId_example"; // String | The identifier for the loyalty program.
+ String integrationId = "integrationId_example"; // String | The identifier of the profile.
+ DeductLoyaltyPoints body = new DeductLoyaltyPoints(); // DeductLoyaltyPoints | body
+ try {
+ apiInstance.removeLoyaltyPoints(loyaltyProgramId, integrationId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#removeLoyaltyPoints");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **String**| The identifier for the loyalty program. |
**integrationId** | **String**| The identifier of the profile. |
**body** | [**DeductLoyaltyPoints**](DeductLoyaltyPoints.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -11521,19 +11848,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## resetPassword
-
-# **resetPassword**
> NewPassword resetPassword(body)
Reset password
@@ -11541,6 +11869,7 @@ Reset password
Consumes the supplied password reset token and updates the password for the associated account.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11551,45 +11880,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- NewPassword body = new NewPassword(); // NewPassword | body
- try {
- NewPassword result = apiInstance.resetPassword(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#resetPassword");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ NewPassword body = new NewPassword(); // NewPassword | body
+ try {
+ NewPassword result = apiInstance.resetPassword(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#resetPassword");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**NewPassword**](NewPassword.md)| body |
-### Return type
+### Return type cool
[**NewPassword**](NewPassword.md)
@@ -11599,16 +11929,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | Created | - |
+| **204** | Created | - |
+
+
+## scimCreateUser
-
-# **scimCreateUser**
> ScimUser scimCreateUser(body)
Create SCIM user
@@ -11616,6 +11947,7 @@ Create SCIM user
Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11626,45 +11958,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- ScimNewUser body = new ScimNewUser(); // ScimNewUser | body
- try {
- ScimUser result = apiInstance.scimCreateUser(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimCreateUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ ScimNewUser body = new ScimNewUser(); // ScimNewUser | body
+ try {
+ ScimUser result = apiInstance.scimCreateUser(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimCreateUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ScimNewUser**](ScimNewUser.md)| body |
-### Return type
+### Return type cool
[**ScimUser**](ScimUser.md)
@@ -11674,16 +12007,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Created | - |
+| **201** | Created | - |
+
+
+## scimDeleteUser
-
-# **scimDeleteUser**
> scimDeleteUser(userId)
Delete SCIM user
@@ -11691,6 +12025,7 @@ Delete SCIM user
Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11701,44 +12036,45 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer userId = 56; // Integer | The ID of the user.
- try {
- apiInstance.scimDeleteUser(userId);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimDeleteUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer userId = 56; // Integer | The ID of the user.
+ try {
+ apiInstance.scimDeleteUser(userId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimDeleteUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **Integer**| The ID of the user. |
-### Return type
+### Return type cool
null (empty response body)
@@ -11748,16 +12084,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: Not defined
+- **Content-Type**: Not defined
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## scimGetResourceTypes
-
-# **scimGetResourceTypes**
> ScimResourceTypesListResponse scimGetResourceTypes()
List supported SCIM resource types
@@ -11765,6 +12102,7 @@ List supported SCIM resource types
Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11775,41 +12113,42 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- ScimResourceTypesListResponse result = apiInstance.scimGetResourceTypes();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimGetResourceTypes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ ScimResourceTypesListResponse result = apiInstance.scimGetResourceTypes();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimGetResourceTypes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
[**ScimResourceTypesListResponse**](ScimResourceTypesListResponse.md)
@@ -11819,16 +12158,17 @@ This endpoint does not need any parameter.
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of resource types | - |
+| **200** | List of resource types | - |
+
+
+## scimGetSchemas
-
-# **scimGetSchemas**
> ScimSchemasListResponse scimGetSchemas()
List supported SCIM schemas
@@ -11836,6 +12176,7 @@ List supported SCIM schemas
Retrieve a list of schemas supported by the SCIM provisioning protocol. Schemas define the structure and attributes of the different resources that can be managed via the SCIM API, such as users, groups, and any custom-defined resources.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11846,41 +12187,42 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- ScimSchemasListResponse result = apiInstance.scimGetSchemas();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimGetSchemas");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ ScimSchemasListResponse result = apiInstance.scimGetSchemas();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimGetSchemas");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
[**ScimSchemasListResponse**](ScimSchemasListResponse.md)
@@ -11890,16 +12232,17 @@ This endpoint does not need any parameter.
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of schemas supported by the SCIM provisioning protocol | - |
+| **200** | List of schemas supported by the SCIM provisioning protocol | - |
+
+
+## scimGetServiceProviderConfig
-
-# **scimGetServiceProviderConfig**
> ScimServiceProviderConfigResponse scimGetServiceProviderConfig()
Get SCIM service provider configuration
@@ -11907,6 +12250,7 @@ Get SCIM service provider configuration
Retrieve the configuration settings of the SCIM service provider. It provides details about the features and capabilities supported by the SCIM API, such as the different operation settings.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11917,41 +12261,42 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- ScimServiceProviderConfigResponse result = apiInstance.scimGetServiceProviderConfig();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimGetServiceProviderConfig");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ ScimServiceProviderConfigResponse result = apiInstance.scimGetServiceProviderConfig();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimGetServiceProviderConfig");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
[**ScimServiceProviderConfigResponse**](ScimServiceProviderConfigResponse.md)
@@ -11961,16 +12306,17 @@ This endpoint does not need any parameter.
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Service configuration | - |
+| **200** | Service configuration | - |
+
+
+## scimGetUser
-
-# **scimGetUser**
> ScimUser scimGetUser(userId)
Get SCIM user
@@ -11978,6 +12324,7 @@ Get SCIM user
Retrieve data for a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -11988,45 +12335,46 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer userId = 56; // Integer | The ID of the user.
- try {
- ScimUser result = apiInstance.scimGetUser(userId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimGetUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer userId = 56; // Integer | The ID of the user.
+ try {
+ ScimUser result = apiInstance.scimGetUser(userId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimGetUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **Integer**| The ID of the user. |
-### Return type
+### Return type cool
[**ScimUser**](ScimUser.md)
@@ -12036,16 +12384,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | User details | - |
+| **200** | User details | - |
+
+
+## scimGetUsers
-
-# **scimGetUsers**
> ScimUsersListResponse scimGetUsers()
List SCIM users
@@ -12053,6 +12402,7 @@ List SCIM users
Retrieve a paginated list of users that have been provisioned using the SCIM protocol with an identity provider, for example, Microsoft Entra ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12063,41 +12413,42 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- try {
- ScimUsersListResponse result = apiInstance.scimGetUsers();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimGetUsers");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ try {
+ ScimUsersListResponse result = apiInstance.scimGetUsers();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimGetUsers");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
This endpoint does not need any parameter.
-### Return type
+### Return type cool
[**ScimUsersListResponse**](ScimUsersListResponse.md)
@@ -12107,16 +12458,17 @@ This endpoint does not need any parameter.
### HTTP request headers
- - **Content-Type**: Not defined
- - **Accept**: application/json
+- **Content-Type**: Not defined
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | List of SCIM users | - |
+| **200** | List of SCIM users | - |
+
+
+## scimPatchUser
-
-# **scimPatchUser**
> ScimUser scimPatchUser(userId, body)
Update SCIM user attributes
@@ -12124,6 +12476,7 @@ Update SCIM user attributes
Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12134,47 +12487,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer userId = 56; // Integer | The ID of the user.
- ScimPatchRequest body = new ScimPatchRequest(); // ScimPatchRequest | body
- try {
- ScimUser result = apiInstance.scimPatchUser(userId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimPatchUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer userId = 56; // Integer | The ID of the user.
+ ScimPatchRequest body = new ScimPatchRequest(); // ScimPatchRequest | body
+ try {
+ ScimUser result = apiInstance.scimPatchUser(userId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimPatchUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **Integer**| The ID of the user. |
**body** | [**ScimPatchRequest**](ScimPatchRequest.md)| body |
-### Return type
+### Return type cool
[**ScimUser**](ScimUser.md)
@@ -12184,16 +12538,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | User details | - |
+| **200** | User details | - |
+
+
+## scimReplaceUserAttributes
-
-# **scimReplaceUserAttributes**
> ScimUser scimReplaceUserAttributes(userId, body)
Update SCIM user
@@ -12201,6 +12556,7 @@ Update SCIM user
Update the details of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the specific user with the attributes provided in the request payload.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12211,47 +12567,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer userId = 56; // Integer | The ID of the user.
- ScimNewUser body = new ScimNewUser(); // ScimNewUser | body
- try {
- ScimUser result = apiInstance.scimReplaceUserAttributes(userId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#scimReplaceUserAttributes");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer userId = 56; // Integer | The ID of the user.
+ ScimNewUser body = new ScimNewUser(); // ScimNewUser | body
+ try {
+ ScimUser result = apiInstance.scimReplaceUserAttributes(userId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#scimReplaceUserAttributes");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **Integer**| The ID of the user. |
**body** | [**ScimNewUser**](ScimNewUser.md)| body |
-### Return type
+### Return type cool
[**ScimUser**](ScimUser.md)
@@ -12261,16 +12618,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | User details | - |
+| **200** | User details | - |
+
+
+## searchCouponsAdvancedApplicationWideWithoutTotalCount
-
-# **searchCouponsAdvancedApplicationWideWithoutTotalCount**
> InlineResponse2009 searchCouponsAdvancedApplicationWideWithoutTotalCount(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState)
List coupons that match the given attributes (without total count)
@@ -12278,6 +12636,7 @@ List coupons that match the given attributes (without total count)
List the coupons whose attributes match the query criteria in all the campaigns of the given Application. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12288,54 +12647,55 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Object body = null; // Object | body
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
- String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
- Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
- String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field.
- String batchId = "batchId_example"; // String | Filter results by batches of coupons
- Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
- String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
- try {
- InlineResponse2009 result = apiInstance.searchCouponsAdvancedApplicationWideWithoutTotalCount(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#searchCouponsAdvancedApplicationWideWithoutTotalCount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Object body = null; // Object | body
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
+ String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
+ Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
+ String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field.
+ String batchId = "batchId_example"; // String | Filter results by batches of coupons
+ Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
+ String campaignState = "campaignState_example"; // String | Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived.
+ try {
+ InlineResponse2009 result = apiInstance.searchCouponsAdvancedApplicationWideWithoutTotalCount(applicationId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, batchId, exactMatch, campaignState);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#searchCouponsAdvancedApplicationWideWithoutTotalCount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -12354,7 +12714,7 @@ Name | Type | Description | Notes
**exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false]
**campaignState** | **String**| Filter results by the state of the campaign. - `enabled`: Campaigns that are scheduled, running (activated), or expired. - `running`: Campaigns that are running (activated). - `disabled`: Campaigns that are disabled. - `expired`: Campaigns that are expired. - `archived`: Campaigns that are archived. | [optional] [enum: enabled, disabled, archived, scheduled, running, expired, staged]
-### Return type
+### Return type cool
[**InlineResponse2009**](InlineResponse2009.md)
@@ -12364,16 +12724,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## searchCouponsAdvancedWithoutTotalCount
-
-# **searchCouponsAdvancedWithoutTotalCount**
> InlineResponse2009 searchCouponsAdvancedWithoutTotalCount(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId)
List coupons that match the given attributes in campaign (without total count)
@@ -12381,6 +12742,7 @@ List coupons that match the given attributes in campaign (without total count)
List the coupons whose attributes match the query criteria in the given campaign. The match is successful if all the attributes of the request are found in a coupon, even if the coupon has more attributes that are not present on the request. **Note:** The total count is not included in the response.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12391,54 +12753,55 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Object body = null; // Object | body
- Integer pageSize = 1000; // Integer | The number of items in the response.
- Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
- String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
- String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
- OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
- String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
- String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
- Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
- String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field.
- Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
- String batchId = "batchId_example"; // String | Filter results by batches of coupons
- try {
- InlineResponse2009 result = apiInstance.searchCouponsAdvancedWithoutTotalCount(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#searchCouponsAdvancedWithoutTotalCount");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Object body = null; // Object | body
+ Integer pageSize = 1000; // Integer | The number of items in the response.
+ Integer skip = 56; // Integer | The number of items to skip when paging through large result sets.
+ String sort = "sort_example"; // String | The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields.
+ String value = "value_example"; // String | Filter results performing case-insensitive matching against the coupon code. Both the code and the query are folded to remove all non-alpha-numeric characters.
+ OffsetDateTime createdBefore = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ OffsetDateTime createdAfter = new OffsetDateTime(); // OffsetDateTime | Filter results comparing the parameter value, expected to be an RFC3339 timestamp string, to the coupon creation timestamp. You can use any time zone setting. Talon.One will convert to UTC internally.
+ String valid = "valid_example"; // String | Either \"expired\", \"validNow\", or \"validFuture\". The first option matches coupons in which the expiration date is set and in the past. The second matches coupons in which start date is null or in the past and expiration date is null or in the future, the third matches coupons in which start date is set and in the future.
+ String usable = "usable_example"; // String | Either \"true\" or \"false\". If \"true\", only coupons where `usageCounter < usageLimit` will be returned, \"false\" will return only coupons where `usageCounter >= usageLimit`.
+ Integer referralId = 56; // Integer | Filter the results by matching them with the ID of a referral. This filter shows the coupons created by redeeming a referral code.
+ String recipientIntegrationId = "recipientIntegrationId_example"; // String | Filter results by match with a profile ID specified in the coupon's RecipientIntegrationId field.
+ Boolean exactMatch = false; // Boolean | Filter results to an exact case-insensitive matching against the coupon code.
+ String batchId = "batchId_example"; // String | Filter results by batches of coupons
+ try {
+ InlineResponse2009 result = apiInstance.searchCouponsAdvancedWithoutTotalCount(applicationId, campaignId, body, pageSize, skip, sort, value, createdBefore, createdAfter, valid, usable, referralId, recipientIntegrationId, exactMatch, batchId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#searchCouponsAdvancedWithoutTotalCount");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -12457,7 +12820,7 @@ Name | Type | Description | Notes
**exactMatch** | **Boolean**| Filter results to an exact case-insensitive matching against the coupon code. | [optional] [default to false]
**batchId** | **String**| Filter results by batches of coupons | [optional]
-### Return type
+### Return type cool
[**InlineResponse2009**](InlineResponse2009.md)
@@ -12467,16 +12830,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## transferLoyaltyCard
-
-# **transferLoyaltyCard**
> transferLoyaltyCard(loyaltyProgramId, loyaltyCardId, body)
Transfer card data
@@ -12484,6 +12848,7 @@ Transfer card data
Transfer loyalty card data, such as linked customers, loyalty balances and transactions, from a given loyalty card to a new, automatically created loyalty card. **Important:** - The original card is automatically blocked once the new card is created, and it cannot be activated again. - The default status of the new card is _active_.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12494,48 +12859,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- TransferLoyaltyCard body = new TransferLoyaltyCard(); // TransferLoyaltyCard | body
- try {
- apiInstance.transferLoyaltyCard(loyaltyProgramId, loyaltyCardId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#transferLoyaltyCard");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ TransferLoyaltyCard body = new TransferLoyaltyCard(); // TransferLoyaltyCard | body
+ try {
+ apiInstance.transferLoyaltyCard(loyaltyProgramId, loyaltyCardId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#transferLoyaltyCard");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. |
**body** | [**TransferLoyaltyCard**](TransferLoyaltyCard.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -12545,19 +12911,20 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **204** | No Content | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## updateAccountCollection
-
-# **updateAccountCollection**
> Collection updateAccountCollection(collectionId, body)
Update account-level collection
@@ -12565,6 +12932,7 @@ Update account-level collection
Edit the description of a given account-level collection and enable or disable the collection in the specified Applications.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12575,47 +12943,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
- UpdateCollection body = new UpdateCollection(); // UpdateCollection | body
- try {
- Collection result = apiInstance.updateAccountCollection(collectionId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateAccountCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint.
+ UpdateCollection body = new UpdateCollection(); // UpdateCollection | body
+ try {
+ Collection result = apiInstance.updateAccountCollection(collectionId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateAccountCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in account](#operation/listAccountCollections) endpoint. |
**body** | [**UpdateCollection**](UpdateCollection.md)| body |
-### Return type
+### Return type cool
[**Collection**](Collection.md)
@@ -12625,19 +12994,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**409** | Conflict. A collection with this name already exists. | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **409** | Conflict. A collection with this name already exists. | - |
+
+
+## updateAchievement
-
-# **updateAchievement**
> Achievement updateAchievement(applicationId, campaignId, achievementId, body)
Update achievement
@@ -12645,6 +13015,7 @@ Update achievement
Update the details of a specific achievement.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12655,43 +13026,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
- UpdateAchievement body = new UpdateAchievement(); // UpdateAchievement | body
- try {
- Achievement result = apiInstance.updateAchievement(applicationId, campaignId, achievementId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateAchievement");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer achievementId = 56; // Integer | The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
+ UpdateAchievement body = new UpdateAchievement(); // UpdateAchievement | body
+ try {
+ Achievement result = apiInstance.updateAchievement(applicationId, campaignId, achievementId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateAchievement");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -12699,7 +13071,7 @@ Name | Type | Description | Notes
**achievementId** | **Integer**| The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. |
**body** | [**UpdateAchievement**](UpdateAchievement.md)| body |
-### Return type
+### Return type cool
[**Achievement**](Achievement.md)
@@ -12709,19 +13081,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## updateAdditionalCost
-
-# **updateAdditionalCost**
> AccountAdditionalCost updateAdditionalCost(additionalCostId, body)
Update additional cost
@@ -12729,6 +13102,7 @@ Update additional cost
Updates an existing additional cost. Once created, the only property of an additional cost that cannot be changed is the `name` property (or **API name** in the Campaign Manager). This restriction is in place to prevent accidentally breaking live integrations.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12739,47 +13113,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**.
- NewAdditionalCost body = new NewAdditionalCost(); // NewAdditionalCost | body
- try {
- AccountAdditionalCost result = apiInstance.updateAdditionalCost(additionalCostId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateAdditionalCost");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer additionalCostId = 56; // Integer | The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**.
+ NewAdditionalCost body = new NewAdditionalCost(); // NewAdditionalCost | body
+ try {
+ AccountAdditionalCost result = apiInstance.updateAdditionalCost(additionalCostId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateAdditionalCost");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**additionalCostId** | **Integer**| The ID of the additional cost. You can find the ID the the Campaign Manager's URL when you display the details of the cost in **Account** > **Tools** > **Additional costs**. |
**body** | [**NewAdditionalCost**](NewAdditionalCost.md)| body |
-### Return type
+### Return type cool
[**AccountAdditionalCost**](AccountAdditionalCost.md)
@@ -12789,16 +13164,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## updateAttribute
-
-# **updateAttribute**
> Attribute updateAttribute(attributeId, body)
Update custom attribute
@@ -12806,6 +13182,7 @@ Update custom attribute
Update an existing custom attribute. Once created, the only property of a custom attribute that can be changed is the description. To change the `type` or `name` property of a custom attribute, create a new attribute and update any relevant integrations and rules to use the new attribute.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12816,47 +13193,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**.
- NewAttribute body = new NewAttribute(); // NewAttribute | body
- try {
- Attribute result = apiInstance.updateAttribute(attributeId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateAttribute");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer attributeId = 56; // Integer | The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**.
+ NewAttribute body = new NewAttribute(); // NewAttribute | body
+ try {
+ Attribute result = apiInstance.updateAttribute(attributeId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateAttribute");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**attributeId** | **Integer**| The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in **Account** > **Tools** > **Attributes**. |
**body** | [**NewAttribute**](NewAttribute.md)| body |
-### Return type
+### Return type cool
[**Attribute**](Attribute.md)
@@ -12866,23 +13244,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## updateCampaign
-
-# **updateCampaign**
> Campaign updateCampaign(applicationId, campaignId, body)
Update campaign
-Update the given campaign.
+Update the given campaign. **Important:** You cannot use this endpoint to update campaigns if [campaign staging and revisions](https://docs.talon.one/docs/product/applications/managing-general-settings#campaign-staging-and-revisions) is enabled for your Application.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12893,49 +13273,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- UpdateCampaign body = new UpdateCampaign(); // UpdateCampaign | body
- try {
- Campaign result = apiInstance.updateCampaign(applicationId, campaignId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateCampaign");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ UpdateCampaign body = new UpdateCampaign(); // UpdateCampaign | body
+ try {
+ Campaign result = apiInstance.updateCampaign(applicationId, campaignId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateCampaign");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**body** | [**UpdateCampaign**](UpdateCampaign.md)| body |
-### Return type
+### Return type cool
[**Campaign**](Campaign.md)
@@ -12945,16 +13326,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## updateCollection
-
-# **updateCollection**
> Collection updateCollection(applicationId, campaignId, collectionId, body)
Update campaign-level collection's description
@@ -12962,6 +13344,7 @@ Update campaign-level collection's description
Edit the description of a given campaign-level collection.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -12972,43 +13355,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
- UpdateCampaignCollection body = new UpdateCampaignCollection(); // UpdateCampaignCollection | body
- try {
- Collection result = apiInstance.updateCollection(applicationId, campaignId, collectionId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateCollection");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ Integer collectionId = 56; // Integer | The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint.
+ UpdateCampaignCollection body = new UpdateCampaignCollection(); // UpdateCampaignCollection | body
+ try {
+ Collection result = apiInstance.updateCollection(applicationId, campaignId, collectionId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateCollection");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -13016,7 +13400,7 @@ Name | Type | Description | Notes
**collectionId** | **Integer**| The ID of the collection. You can get it with the [List collections in Application](#operation/listCollectionsInApplication) endpoint. |
**body** | [**UpdateCampaignCollection**](UpdateCampaignCollection.md)| body |
-### Return type
+### Return type cool
[**Collection**](Collection.md)
@@ -13026,24 +13410,26 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**401** | Unauthorized | - |
+| **200** | OK | - |
+| **401** | Unauthorized | - |
+
+
+## updateCoupon
-
-# **updateCoupon**
> Coupon updateCoupon(applicationId, campaignId, couponId, body)
Update coupon
-Update the specified coupon. <div class=\"redoc-section\"> <p class=\"title\">Important</p> <p>With this <code>PUT</code> endpoint alone, if you do not explicitly set a value for the <code>startDate</code>, <code>expiryDate</code>, and <code>recipientIntegrationId</code> properties in your request, it is automatically set to <code>null</code>.</p> </div>
+Update the specified coupon. <div class=\"redoc-section\"> <p class=\"title\">Important</p> <p>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code>, <code>expiryDate</code>, and <code>recipientIntegrationId</code> properties in your request, it is automatically set to <code>null</code>.</p> </div>
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -13054,43 +13440,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response.
- UpdateCoupon body = new UpdateCoupon(); // UpdateCoupon | body
- try {
- Coupon result = apiInstance.updateCoupon(applicationId, campaignId, couponId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateCoupon");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ String couponId = "couponId_example"; // String | The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response.
+ UpdateCoupon body = new UpdateCoupon(); // UpdateCoupon | body
+ try {
+ Coupon result = apiInstance.updateCoupon(applicationId, campaignId, couponId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateCoupon");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -13098,7 +13485,7 @@ Name | Type | Description | Notes
**couponId** | **String**| The internal ID of the coupon code. You can find this value in the `id` property from the [List coupons](https://docs.talon.one/management-api#tag/Coupons/operation/getCouponsWithoutTotalCount) endpoint response. |
**body** | [**UpdateCoupon**](UpdateCoupon.md)| body |
-### Return type
+### Return type cool
[**Coupon**](Coupon.md)
@@ -13108,23 +13495,25 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## updateCouponBatch
-
-# **updateCouponBatch**
> updateCouponBatch(applicationId, campaignId, body)
Update coupons
-Update all coupons, or a specific batch of coupons in the given campaign. You can find the `batchId` in the **Coupons** view of your Application in the Campaign Manager, or you can use [List coupons](#operation/getCouponsWithoutTotalCount). <div class=\"redoc-section\"> <p class=\"title\">Important</p> <ul> <li>Only send sequential requests to this endpoint.</li> <li>Requests to this endpoint timeout after 30 minutes. If you hit a timeout, reach out to our support team.</li> </ul> </div> To update a specific coupon, use [Update coupon](#operation/updateCoupon).
+Update all coupons or a specific batch of coupons in the given campaign. You can find the `batchId` on the **Coupons** page of your campaign in the Campaign Manager, or you can use [List coupons](#operation/getCouponsWithoutTotalCount). <div class=\"redoc-section\"> <p class=\"title\">Important</p> <ul> <li>Only send sequential requests to this endpoint.</li> <li>Requests to this endpoint time out after 30 minutes. If you hit a timeout, contact our support team.</li> <li>With this <code>PUT</code> endpoint, if you do not explicitly set a value for the <code>startDate</code> and <code>expiryDate</code> properties in your request, it is automatically set to <code>null</code>.</li> </ul> </div> To update a specific coupon, use [Update coupon](#operation/updateCoupon).
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -13135,48 +13524,49 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- UpdateCouponBatch body = new UpdateCouponBatch(); // UpdateCouponBatch | body
- try {
- apiInstance.updateCouponBatch(applicationId, campaignId, body);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateCouponBatch");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ UpdateCouponBatch body = new UpdateCouponBatch(); // UpdateCouponBatch | body
+ try {
+ apiInstance.updateCouponBatch(applicationId, campaignId, body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateCouponBatch");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**campaignId** | **Integer**| The ID of the campaign. It is displayed in your Talon.One deployment URL. |
**body** | [**UpdateCouponBatch**](UpdateCouponBatch.md)| body |
-### Return type
+### Return type cool
null (empty response body)
@@ -13186,16 +13576,17 @@ null (empty response body)
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: Not defined
+- **Content-Type**: application/json
+- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**204** | No Content | - |
+| **204** | No Content | - |
+
+
+## updateLoyaltyCard
-
-# **updateLoyaltyCard**
> LoyaltyCard updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body)
Update loyalty card status
@@ -13203,6 +13594,7 @@ Update loyalty card status
Update the status of the given loyalty card. A card can be _active_ or _inactive_.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -13213,49 +13605,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
- String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
- UpdateLoyaltyCard body = new UpdateLoyaltyCard(); // UpdateLoyaltyCard | body
- try {
- LoyaltyCard result = apiInstance.updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateLoyaltyCard");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer loyaltyProgramId = 56; // Integer | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
+ String loyaltyCardId = "loyaltyCardId_example"; // String | Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint.
+ UpdateLoyaltyCard body = new UpdateLoyaltyCard(); // UpdateLoyaltyCard | body
+ try {
+ LoyaltyCard result = apiInstance.updateLoyaltyCard(loyaltyProgramId, loyaltyCardId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateLoyaltyCard");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**loyaltyProgramId** | **Integer**| Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint. |
**loyaltyCardId** | **String**| Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. |
**body** | [**UpdateLoyaltyCard**](UpdateLoyaltyCard.md)| body |
-### Return type
+### Return type cool
[**LoyaltyCard**](LoyaltyCard.md)
@@ -13265,19 +13658,20 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**401** | Unauthorized | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **401** | Unauthorized | - |
+| **404** | Not found | - |
+
+
+## updateReferral
-
-# **updateReferral**
> Referral updateReferral(applicationId, campaignId, referralId, body)
Update referral
@@ -13285,6 +13679,7 @@ Update referral
Update the specified referral.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -13295,43 +13690,44 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
- String referralId = "referralId_example"; // String | The ID of the referral code.
- UpdateReferral body = new UpdateReferral(); // UpdateReferral | body
- try {
- Referral result = apiInstance.updateReferral(applicationId, campaignId, referralId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateReferral");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ Integer campaignId = 56; // Integer | The ID of the campaign. It is displayed in your Talon.One deployment URL.
+ String referralId = "referralId_example"; // String | The ID of the referral code.
+ UpdateReferral body = new UpdateReferral(); // UpdateReferral | body
+ try {
+ Referral result = apiInstance.updateReferral(applicationId, campaignId, referralId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateReferral");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
@@ -13339,7 +13735,7 @@ Name | Type | Description | Notes
**referralId** | **String**| The ID of the referral code. |
**body** | [**UpdateReferral**](UpdateReferral.md)| body |
-### Return type
+### Return type cool
[**Referral**](Referral.md)
@@ -13349,16 +13745,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## updateRoleV2
-
-# **updateRoleV2**
> RoleV2 updateRoleV2(roleId, body)
Update role
@@ -13366,6 +13763,7 @@ Update role
Update a specific role.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -13376,47 +13774,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint.
- RoleV2Base body = new RoleV2Base(); // RoleV2Base | body
- try {
- RoleV2 result = apiInstance.updateRoleV2(roleId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateRoleV2");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer roleId = 56; // Integer | The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint.
+ RoleV2Base body = new RoleV2Base(); // RoleV2Base | body
+ try {
+ RoleV2 result = apiInstance.updateRoleV2(roleId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateRoleV2");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**roleId** | **Integer**| The ID of role. **Note**: To find the ID of a role, use the [List roles](/management-api#tag/Roles/operation/listAllRolesV2) endpoint. |
**body** | **RoleV2Base**| body |
-### Return type
+### Return type cool
[**RoleV2**](RoleV2.md)
@@ -13426,16 +13825,17 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
+
+
+## updateStore
-
-# **updateStore**
> Store updateStore(applicationId, storeId, body)
Update store
@@ -13443,6 +13843,7 @@ Update store
Update store details for a specific store ID.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -13453,49 +13854,50 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
- String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
- NewStore body = new NewStore(); // NewStore | body
- try {
- Store result = apiInstance.updateStore(applicationId, storeId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateStore");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer applicationId = 56; // Integer | The ID of the Application. It is displayed in your Talon.One deployment URL.
+ String storeId = "storeId_example"; // String | The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint.
+ NewStore body = new NewStore(); // NewStore | body
+ try {
+ Store result = apiInstance.updateStore(applicationId, storeId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateStore");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**applicationId** | **Integer**| The ID of the Application. It is displayed in your Talon.One deployment URL. |
**storeId** | **String**| The ID of the store. You can get this ID with the [List stores](#tag/Stores/operation/listStores) endpoint. |
**body** | [**NewStore**](NewStore.md)| body |
-### Return type
+### Return type cool
[**Store**](Store.md)
@@ -13505,18 +13907,19 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
-**400** | Bad request | - |
-**404** | Not found | - |
+| **200** | OK | - |
+| **400** | Bad request | - |
+| **404** | Not found | - |
+
+
+## updateUser
-
-# **updateUser**
> User updateUser(userId, body)
Update user
@@ -13524,6 +13927,7 @@ Update user
Update the details of a specific user.
### Example
+
```java
// Import classes:
import one.talon.ApiClient;
@@ -13534,47 +13938,48 @@ import one.talon.models.*;
import one.talon.api.ManagementApi;
public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("https://yourbaseurl.talon.one");
-
- // Configure API key authorization: management_key
- ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
- management_key.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //management_key.setApiKeyPrefix("Token");
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("https://yourbaseurl.talon.one");
+
+ // Configure API key authorization: management_key
+ ApiKeyAuth management_key = (ApiKeyAuth) defaultClient.getAuthentication("management_key");
+ management_key.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //management_key.setApiKeyPrefix("Token");
- // Configure API key authorization: manager_auth
- ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
- manager_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //manager_auth.setApiKeyPrefix("Token");
+ // Configure API key authorization: manager_auth
+ ApiKeyAuth manager_auth = (ApiKeyAuth) defaultClient.getAuthentication("manager_auth");
+ manager_auth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //manager_auth.setApiKeyPrefix("Token");
- ManagementApi apiInstance = new ManagementApi(defaultClient);
- Integer userId = 56; // Integer | The ID of the user.
- UpdateUser body = new UpdateUser(); // UpdateUser | body
- try {
- User result = apiInstance.updateUser(userId, body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ManagementApi#updateUser");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
+ ManagementApi apiInstance = new ManagementApi(defaultClient);
+ Integer userId = 56; // Integer | The ID of the user.
+ UpdateUser body = new UpdateUser(); // UpdateUser | body
+ try {
+ User result = apiInstance.updateUser(userId, body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling ManagementApi#updateUser");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
}
- }
}
```
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**userId** | **Integer**| The ID of the user. |
**body** | [**UpdateUser**](UpdateUser.md)| body |
-### Return type
+### Return type cool
[**User**](User.md)
@@ -13584,11 +13989,11 @@ Name | Type | Description | Notes
### HTTP request headers
- - **Content-Type**: application/json
- - **Accept**: application/json
+- **Content-Type**: application/json
+- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | OK | - |
+| **200** | OK | - |
diff --git a/docs/NewCustomerSessionV2.md b/docs/NewCustomerSessionV2.md
index b162bb3..6650355 100644
--- a/docs/NewCustomerSessionV2.md
+++ b/docs/NewCustomerSessionV2.md
@@ -10,8 +10,8 @@ Name | Type | Description | Notes
**profileId** | **String** | ID of the customer profile set by your integration layer. **Note:** If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional]
**storeIntegrationId** | **String** | The integration ID of the store. You choose this ID when you create a store. | [optional]
**evaluableCampaignIds** | **List<Integer>** | When using the `dry` query parameter, use this property to list the campaign to be evaluated by the Rule Engine. These campaigns will be evaluated, even if they are disabled, allowing you to test specific campaigns before activating them. | [optional]
-**couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, provide `\"couponCodes\": null` or omit the parameter entirely. | [optional]
-**referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, provide `\"referralCode\": null` or omit the parameter entirely. | [optional]
+**couponCodes** | **List<String>** | Any coupon codes entered. **Important - for requests only**: - If you [create a coupon budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a coupon code by the time you close it. - In requests where `dry=false`, providing an empty array discards any previous coupons. To avoid this, omit the parameter entirely. | [optional]
+**referralCode** | **String** | Any referral code entered. **Important - for requests only**: - If you [create a referral budget](https://docs.talon.one/docs/product/campaigns/settings/managing-campaign-budgets/#budget-types) for your campaign, ensure the session contains a referral code by the time you close it. - In requests where `dry=false`, providing an empty value discards the previous referral code. To avoid this, omit the parameter entirely. | [optional]
**loyaltyCards** | **List<String>** | Identifier of a loyalty card. | [optional]
**state** | [**StateEnum**](#StateEnum) | Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. Either: - `closed` → `cancelled` (**only** via [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2)) or - `closed` → `partially_returned` (**only** via [Return cart items](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/returnCartItems)) - `closed` → `open` (**only** via [Reopen customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/reopenCustomerSession)) 4. `partially_returned` → `cancelled` For more information, see [Customer session states](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions). | [optional]
**cartItems** | [**List<CartItem>**](CartItem.md) | The items to add to this session. **Do not exceed 1000 items** and ensure the sum of all cart item's `quantity` **does not exceed 10.000** per request. | [optional]
diff --git a/docs/NewWebhook.md b/docs/NewWebhook.md
index 48ca5aa..8af6c67 100644
--- a/docs/NewWebhook.md
+++ b/docs/NewWebhook.md
@@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. |
+**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. |
**title** | **String** | Name or title for this webhook. |
**description** | **String** | A description of the webhook. | [optional]
**verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. |
diff --git a/docs/Product.md b/docs/Product.md
index dc0d148..936ba0d 100644
--- a/docs/Product.md
+++ b/docs/Product.md
@@ -7,7 +7,7 @@ The specific properties of the product this item belongs to, if available.
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**name** | **String** | The name of the product. |
+**name** | **String** | The product the item belongs to. |
diff --git a/docs/ProductSearchMatch.md b/docs/ProductSearchMatch.md
new file mode 100644
index 0000000..ff06134
--- /dev/null
+++ b/docs/ProductSearchMatch.md
@@ -0,0 +1,14 @@
+
+
+# ProductSearchMatch
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**productId** | **Integer** | The ID of the product. |
+**value** | **String** | The string matching the given value. Either a product name or SKU. |
+**productSkuId** | **Integer** | The ID of the SKU linked to a product. If empty, this is an analytics-level product. | [optional]
+
+
+
diff --git a/docs/ProductSkuUnitAnalytics.md b/docs/ProductSkuUnitAnalytics.md
new file mode 100644
index 0000000..39c36e1
--- /dev/null
+++ b/docs/ProductSkuUnitAnalytics.md
@@ -0,0 +1,15 @@
+
+
+# ProductSkuUnitAnalytics
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. |
+**endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. |
+**purchasedUnits** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | |
+**sku** | **String** | The SKU linked to the analytics-level product. |
+
+
+
diff --git a/docs/ProductUnitAnalytics.md b/docs/ProductUnitAnalytics.md
new file mode 100644
index 0000000..606dcbc
--- /dev/null
+++ b/docs/ProductUnitAnalytics.md
@@ -0,0 +1,16 @@
+
+
+# ProductUnitAnalytics
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**startTime** | [**OffsetDateTime**](OffsetDateTime.md) | The start of the aggregation time frame in UTC. |
+**endTime** | [**OffsetDateTime**](OffsetDateTime.md) | The end of the aggregation time frame in UTC. |
+**purchasedUnits** | [**AnalyticsDataPointWithTrend**](AnalyticsDataPointWithTrend.md) | |
+**productId** | **Integer** | The ID of the analytics-level product. |
+**productName** | **String** | The name of the analytics-level product. |
+
+
+
diff --git a/docs/StrikethroughDebugResponse.md b/docs/StrikethroughDebugResponse.md
new file mode 100644
index 0000000..c2a229b
--- /dev/null
+++ b/docs/StrikethroughDebugResponse.md
@@ -0,0 +1,13 @@
+
+
+# StrikethroughDebugResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**campaignsIDs** | **List<Integer>** | The campaign IDs that got fetched for the evaluation process. | [optional]
+**effects** | [**List<StrikethroughEffect>**](StrikethroughEffect.md) | The strikethrough effects that are returned from the evaluation process. | [optional]
+
+
+
diff --git a/docs/TemplateArgDef.md b/docs/TemplateArgDef.md
index 4dce5cb..523ffdb 100644
--- a/docs/TemplateArgDef.md
+++ b/docs/TemplateArgDef.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**description** | **String** | A campaigner-friendly description of the argument, this will also be shown in the rule editor. | [optional]
**title** | **String** | A campaigner friendly name for the argument, this will be shown in the rule editor. |
**ui** | [**Object**](.md) | Arbitrary metadata that may be used to render an input for this argument. |
+**key** | **String** | The identifier for the associated value within the JSON object. | [optional]
**picklistID** | **Integer** | ID of the picklist linked to a template. | [optional]
**restrictedByPicklist** | **Boolean** | Whether or not this attribute's value is restricted by picklist (`picklist` property) | [optional]
diff --git a/docs/TemplateLimitConfig.md b/docs/TemplateLimitConfig.md
index 7bcc321..c06180c 100644
--- a/docs/TemplateLimitConfig.md
+++ b/docs/TemplateLimitConfig.md
@@ -33,6 +33,7 @@ REFERRAL | "Referral"
PROFILE | "Profile"
IDENTIFIER | "Identifier"
STORE | "Store"
+SESSION | "Session"
diff --git a/docs/ValueMap.md b/docs/ValueMap.md
new file mode 100644
index 0000000..c0befac
--- /dev/null
+++ b/docs/ValueMap.md
@@ -0,0 +1,15 @@
+
+
+# ValueMap
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Integer** | Unique ID for this entity. Not to be confused with the Integration ID, which is set by your integration layer and used in most endpoints. |
+**created** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional]
+**createdBy** | **Integer** | The ID of the user who created the value map. | [optional]
+**campaignId** | **Integer** | |
+
+
+
diff --git a/docs/Webhook.md b/docs/Webhook.md
index 34392ee..175ba6f 100644
--- a/docs/Webhook.md
+++ b/docs/Webhook.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**id** | **Integer** | Internal ID of this entity. |
**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. |
**modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. |
-**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. |
+**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. |
**title** | **String** | Name or title for this webhook. |
**description** | **String** | A description of the webhook. | [optional]
**verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. |
diff --git a/docs/WebhookWithOutgoingIntegrationDetails.md b/docs/WebhookWithOutgoingIntegrationDetails.md
index f003d85..41e97e1 100644
--- a/docs/WebhookWithOutgoingIntegrationDetails.md
+++ b/docs/WebhookWithOutgoingIntegrationDetails.md
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
**id** | **Integer** | Internal ID of this entity. |
**created** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was created. |
**modified** | [**OffsetDateTime**](OffsetDateTime.md) | The time this entity was last modified. |
-**applicationIds** | **List<Integer>** | The IDs of the Applications that are related to this entity. |
+**applicationIds** | **List<Integer>** | The IDs of the Applications in which this webhook is available. An empty array means the webhook is available in `All Applications`. |
**title** | **String** | Name or title for this webhook. |
**description** | **String** | A description of the webhook. | [optional]
**verb** | [**VerbEnum**](#VerbEnum) | API method for this webhook. |
diff --git a/pom.xml b/pom.xml
index fcd570f..4dac6e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
talon-one-client
jar
talon-one-client
- 9.1.0
+ 10.0.0
https://github.com/talon-one/maven-artefacts
Talon.One unified JAVA SDK. It allows for programmatic access to the integration and management API with their respective authentication strategies
diff --git a/src/main/java/one/talon/ApiClient.java b/src/main/java/one/talon/ApiClient.java
index da99c53..b3d4a19 100644
--- a/src/main/java/one/talon/ApiClient.java
+++ b/src/main/java/one/talon/ApiClient.java
@@ -132,7 +132,7 @@ private void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("OpenAPI-Generator/9.1.0/java");
+ setUserAgent("OpenAPI-Generator/10.0.0/java");
authentications = new HashMap();
}
diff --git a/src/main/java/one/talon/api/IntegrationApi.java b/src/main/java/one/talon/api/IntegrationApi.java
index 69d0011..fe55ba1 100644
--- a/src/main/java/one/talon/api/IntegrationApi.java
+++ b/src/main/java/one/talon/api/IntegrationApi.java
@@ -279,7 +279,7 @@ private okhttp3.Call createCouponReservationValidateBeforeCall(String couponValu
/**
* Create coupon reservation
- * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon will be associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
+ * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
* @param couponValue The code of the coupon. (required)
* @param body body (required)
* @return Coupon
@@ -300,7 +300,7 @@ public Coupon createCouponReservation(String couponValue, CouponReservations bod
/**
* Create coupon reservation
- * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon will be associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
+ * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
* @param couponValue The code of the coupon. (required)
* @param body body (required)
* @return ApiResponse<Coupon>
@@ -322,7 +322,7 @@ public ApiResponse createCouponReservationWithHttpInfo(String couponValu
/**
* Create coupon reservation (asynchronously)
- * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation effect](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code). - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon will be associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
+ * Create a coupon reservation for the specified customer profiles on the specified coupon. You can also create a reservation via the Campaign Manager using the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect. **Note:** - If the **Reservation mandatory** option was selected when creating the specified coupon, the endpoint creates a **hard** reservation, meaning only users who have this coupon code reserved can redeem it. Otherwise, the endpoint creates a **soft** reservation, meaning the coupon is associated with the specified customer profiles (they show up when using the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint), but any user can redeem it. This can be useful, for example, to display a _coupon wallet_ for customers when they visit your store. - If the **Coupon visibility** option was selected when creating the specified coupon, the coupon code is implicitly soft-reserved for all customers, and the code will be returned for all customer profiles in the [List customer data](https://docs.talon.one/integration-api#operation/getCustomerInventory) endpoint. - This endpoint overrides the coupon reservation limit set when [the coupon is created](https://docs.talon.one/docs/product/campaigns/coupons/creating-coupons). To ensure that coupons cannot be reserved after the reservation limit is reached, use the [Create coupon code reservation](https://docs.talon.one/docs/product/rules/effects/using-effects#reserving-a-coupon-code) effect in the Rule Builder and the [Update customer session](https://docs.talon.one/integration-api#tag/Customer-sessions/operation/updateCustomerSessionV2) endpoint. To delete a reservation, use the [Delete reservation](https://docs.talon.one/integration-api#tag/Coupons/operation/deleteCouponReservation) endpoint.
* @param couponValue The code of the coupon. (required)
* @param body body (required)
* @param _callback The callback to be executed when the API call finishes
diff --git a/src/main/java/one/talon/api/ManagementApi.java b/src/main/java/one/talon/api/ManagementApi.java
index d922040..5efbab6 100644
--- a/src/main/java/one/talon/api/ManagementApi.java
+++ b/src/main/java/one/talon/api/ManagementApi.java
@@ -95,7 +95,6 @@
import one.talon.model.InlineResponse20044;
import one.talon.model.InlineResponse20045;
import one.talon.model.InlineResponse20046;
-import one.talon.model.InlineResponse20047;
import one.talon.model.InlineResponse2005;
import one.talon.model.InlineResponse2006;
import one.talon.model.InlineResponse2007;
@@ -7849,7 +7848,7 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Integer pageSize, Inte
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return InlineResponse20036
+ * @return InlineResponse20035
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -7857,8 +7856,8 @@ private okhttp3.Call getAdditionalCostsValidateBeforeCall(Integer pageSize, Inte
200 | OK | - |
*/
- public InlineResponse20036 getAdditionalCosts(Integer pageSize, Integer skip, String sort) throws ApiException {
- ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort);
+ public InlineResponse20035 getAdditionalCosts(Integer pageSize, Integer skip, String sort) throws ApiException {
+ ApiResponse localVarResp = getAdditionalCostsWithHttpInfo(pageSize, skip, sort);
return localVarResp.getData();
}
@@ -7868,7 +7867,7 @@ public InlineResponse20036 getAdditionalCosts(Integer pageSize, Integer skip, St
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return ApiResponse<InlineResponse20036>
+ * @return ApiResponse<InlineResponse20035>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -7876,9 +7875,9 @@ public InlineResponse20036 getAdditionalCosts(Integer pageSize, Integer skip, St
200 | OK | - |
*/
- public ApiResponse getAdditionalCostsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException {
+ public ApiResponse getAdditionalCostsWithHttpInfo(Integer pageSize, Integer skip, String sort) throws ApiException {
okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -7897,175 +7896,10 @@ public ApiResponse getAdditionalCostsWithHttpInfo(Integer p
200 | OK | - |
*/
- public okhttp3.Call getAdditionalCostsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getAdditionalCostsAsync(Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAdditionalCostsValidateBeforeCall(pageSize, skip, sort, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
- localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
- return localVarCall;
- }
- /**
- * Build call for getAllAccessLogs
- * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param path Only return results where the request path matches the given regular expression. (optional)
- * @param method Only return results where the request method matches the given regular expression. (optional)
- * @param status Filter results by HTTP status codes. (optional)
- * @param pageSize The number of items in the response. (optional, default to 1000)
- * @param skip The number of items to skip when paging through large result sets. (optional)
- * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @param _callback Callback for upload/download progress
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
-
- */
- public okhttp3.Call getAllAccessLogsCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
- Object localVarPostBody = null;
-
- // create path and map variables
- String localVarPath = "/v1/access_logs";
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- if (rangeStart != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("rangeStart", rangeStart));
- }
-
- if (rangeEnd != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("rangeEnd", rangeEnd));
- }
-
- if (path != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path));
- }
-
- if (method != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("method", method));
- }
-
- if (status != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status));
- }
-
- if (pageSize != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize));
- }
-
- if (skip != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("skip", skip));
- }
-
- if (sort != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort));
- }
-
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
- final String[] localVarAccepts = {
- "application/json"
- };
- final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
- localVarHeaderParams.put("Accept", localVarAccept);
- }
-
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- String[] localVarAuthNames = new String[] { "management_key", "manager_auth" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call getAllAccessLogsValidateBeforeCall(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
-
-
- okhttp3.Call localVarCall = getAllAccessLogsCall(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, _callback);
- return localVarCall;
-
- }
-
- /**
- * List access logs
- * Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs.
- * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param path Only return results where the request path matches the given regular expression. (optional)
- * @param method Only return results where the request method matches the given regular expression. (optional)
- * @param status Filter results by HTTP status codes. (optional)
- * @param pageSize The number of items in the response. (optional, default to 1000)
- * @param skip The number of items to skip when paging through large result sets. (optional)
- * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return InlineResponse20020
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
-
- */
- public InlineResponse20020 getAllAccessLogs(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort) throws ApiException {
- ApiResponse localVarResp = getAllAccessLogsWithHttpInfo(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort);
- return localVarResp.getData();
- }
-
- /**
- * List access logs
- * Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs.
- * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param path Only return results where the request path matches the given regular expression. (optional)
- * @param method Only return results where the request method matches the given regular expression. (optional)
- * @param status Filter results by HTTP status codes. (optional)
- * @param pageSize The number of items in the response. (optional, default to 1000)
- * @param skip The number of items to skip when paging through large result sets. (optional)
- * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return ApiResponse<InlineResponse20020>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
-
- */
- public ApiResponse getAllAccessLogsWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort) throws ApiException {
- okhttp3.Call localVarCall = getAllAccessLogsValidateBeforeCall(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, null);
- Type localVarReturnType = new TypeToken(){}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
- }
-
- /**
- * List access logs (asynchronously)
- * Fetches the access logs for the entire account. Sensitive requests (logins) are _always_ filtered from the logs.
- * @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (optional)
- * @param path Only return results where the request path matches the given regular expression. (optional)
- * @param method Only return results where the request method matches the given regular expression. (optional)
- * @param status Filter results by HTTP status codes. (optional)
- * @param pageSize The number of items in the response. (optional, default to 1000)
- * @param skip The number of items to skip when paging through large result sets. (optional)
- * @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @param _callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | OK | - |
-
- */
- public okhttp3.Call getAllAccessLogsAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String path, String method, String status, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
-
- okhttp3.Call localVarCall = getAllAccessLogsValidateBeforeCall(rangeStart, rangeEnd, path, method, status, pageSize, skip, sort, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -8238,7 +8072,7 @@ private okhttp3.Call getApplicationApiHealthValidateBeforeCall(Integer applicati
/**
* Get Application health
- * Display the health of the Application and show the last time the Application was used. You can also display this information from the **Settings** of an Application, in the **Developer Settings** menu. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
+ * Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
* @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required)
* @return ApplicationApiHealth
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -8255,7 +8089,7 @@ public ApplicationApiHealth getApplicationApiHealth(Integer applicationId) throw
/**
* Get Application health
- * Display the health of the Application and show the last time the Application was used. You can also display this information from the **Settings** of an Application, in the **Developer Settings** menu. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
+ * Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
* @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required)
* @return ApiResponse<ApplicationApiHealth>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -8273,7 +8107,7 @@ public ApiResponse getApplicationApiHealthWithHttpInfo(Int
/**
* Get Application health (asynchronously)
- * Display the health of the Application and show the last time the Application was used. You can also display this information from the **Settings** of an Application, in the **Developer Settings** menu. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
+ * Display the health of the Application and show the last time the Application was used. You can also find this information in the Campaign Manager. In your Application, click **Settings** > **Integration API Keys**. See the [docs](https://docs.talon.one/docs/dev/tutorials/monitoring-integration-status).
* @param applicationId The ID of the Application. It is displayed in your Talon.One deployment URL. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
@@ -8504,7 +8338,7 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Integer app
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return InlineResponse20033
+ * @return InlineResponse20032
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8512,8 +8346,8 @@ private okhttp3.Call getApplicationCustomerFriendsValidateBeforeCall(Integer app
200 | OK | - |
*/
- public InlineResponse20033 getApplicationCustomerFriends(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
- ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize);
+ public InlineResponse20032 getApplicationCustomerFriends(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
+ ApiResponse localVarResp = getApplicationCustomerFriendsWithHttpInfo(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize);
return localVarResp.getData();
}
@@ -8526,7 +8360,7 @@ public InlineResponse20033 getApplicationCustomerFriends(Integer applicationId,
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return ApiResponse<InlineResponse20033>
+ * @return ApiResponse<InlineResponse20032>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8534,9 +8368,9 @@ public InlineResponse20033 getApplicationCustomerFriends(Integer applicationId,
200 | OK | - |
*/
- public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
+ public ApiResponse getApplicationCustomerFriendsWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -8558,10 +8392,10 @@ public ApiResponse getApplicationCustomerFriendsWithHttpInf
200 | OK | - |
*/
- public okhttp3.Call getApplicationCustomerFriendsAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getApplicationCustomerFriendsAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getApplicationCustomerFriendsValidateBeforeCall(applicationId, integrationId, pageSize, skip, sort, withTotalResultSize, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -8649,7 +8483,7 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Integer applicati
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return InlineResponse20022
+ * @return InlineResponse20021
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8657,8 +8491,8 @@ private okhttp3.Call getApplicationCustomersValidateBeforeCall(Integer applicati
200 | OK | - |
*/
- public InlineResponse20022 getApplicationCustomers(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
- ApiResponse localVarResp = getApplicationCustomersWithHttpInfo(applicationId, integrationId, pageSize, skip, withTotalResultSize);
+ public InlineResponse20021 getApplicationCustomers(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
+ ApiResponse localVarResp = getApplicationCustomersWithHttpInfo(applicationId, integrationId, pageSize, skip, withTotalResultSize);
return localVarResp.getData();
}
@@ -8670,7 +8504,7 @@ public InlineResponse20022 getApplicationCustomers(Integer applicationId, String
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return ApiResponse<InlineResponse20022>
+ * @return ApiResponse<InlineResponse20021>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8678,9 +8512,9 @@ public InlineResponse20022 getApplicationCustomers(Integer applicationId, String
200 | OK | - |
*/
- public ApiResponse getApplicationCustomersWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
+ public ApiResponse getApplicationCustomersWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -8701,10 +8535,10 @@ public ApiResponse getApplicationCustomersWithHttpInfo(Inte
200 | OK | - |
*/
- public okhttp3.Call getApplicationCustomersAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getApplicationCustomersAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getApplicationCustomersValidateBeforeCall(applicationId, integrationId, pageSize, skip, withTotalResultSize, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -8793,7 +8627,7 @@ private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Integ
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return InlineResponse20023
+ * @return InlineResponse20022
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8801,8 +8635,8 @@ private okhttp3.Call getApplicationCustomersByAttributesValidateBeforeCall(Integ
200 | OK | - |
*/
- public InlineResponse20023 getApplicationCustomersByAttributes(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
- ApiResponse localVarResp = getApplicationCustomersByAttributesWithHttpInfo(applicationId, body, pageSize, skip, withTotalResultSize);
+ public InlineResponse20022 getApplicationCustomersByAttributes(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
+ ApiResponse localVarResp = getApplicationCustomersByAttributesWithHttpInfo(applicationId, body, pageSize, skip, withTotalResultSize);
return localVarResp.getData();
}
@@ -8814,7 +8648,7 @@ public InlineResponse20023 getApplicationCustomersByAttributes(Integer applicati
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return ApiResponse<InlineResponse20023>
+ * @return ApiResponse<InlineResponse20022>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8822,9 +8656,9 @@ public InlineResponse20023 getApplicationCustomersByAttributes(Integer applicati
200 | OK | - |
*/
- public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
+ public ApiResponse getApplicationCustomersByAttributesWithHttpInfo(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize) throws ApiException {
okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -8845,10 +8679,10 @@ public ApiResponse getApplicationCustomersByAttributesWithH
200 | OK | - |
*/
- public okhttp3.Call getApplicationCustomersByAttributesAsync(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getApplicationCustomersByAttributesAsync(Integer applicationId, CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getApplicationCustomersByAttributesValidateBeforeCall(applicationId, body, pageSize, skip, withTotalResultSize, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -8930,7 +8764,7 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Integer applicat
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return InlineResponse20029
+ * @return InlineResponse20028
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8938,8 +8772,8 @@ private okhttp3.Call getApplicationEventTypesValidateBeforeCall(Integer applicat
200 | OK | - |
*/
- public InlineResponse20029 getApplicationEventTypes(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException {
- ApiResponse localVarResp = getApplicationEventTypesWithHttpInfo(applicationId, pageSize, skip, sort);
+ public InlineResponse20028 getApplicationEventTypes(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException {
+ ApiResponse localVarResp = getApplicationEventTypesWithHttpInfo(applicationId, pageSize, skip, sort);
return localVarResp.getData();
}
@@ -8950,7 +8784,7 @@ public InlineResponse20029 getApplicationEventTypes(Integer applicationId, Integ
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return ApiResponse<InlineResponse20029>
+ * @return ApiResponse<InlineResponse20028>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -8958,9 +8792,9 @@ public InlineResponse20029 getApplicationEventTypes(Integer applicationId, Integ
200 | OK | - |
*/
- public ApiResponse getApplicationEventTypesWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException {
+ public ApiResponse getApplicationEventTypesWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort) throws ApiException {
okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -8980,10 +8814,10 @@ public ApiResponse getApplicationEventTypesWithHttpInfo(Int
200 | OK | - |
*/
- public okhttp3.Call getApplicationEventTypesAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getApplicationEventTypesAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getApplicationEventTypesValidateBeforeCall(applicationId, pageSize, skip, sort, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -9131,7 +8965,7 @@ private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Int
* @param referralCode Referral code (optional)
* @param ruleQuery Rule name filter for events (optional)
* @param campaignQuery Campaign name filter for events (optional)
- * @return InlineResponse20028
+ * @return InlineResponse20027
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -9139,8 +8973,8 @@ private okhttp3.Call getApplicationEventsWithoutTotalCountValidateBeforeCall(Int
200 | OK | - |
*/
- public InlineResponse20028 getApplicationEventsWithoutTotalCount(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException {
- ApiResponse localVarResp = getApplicationEventsWithoutTotalCountWithHttpInfo(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery);
+ public InlineResponse20027 getApplicationEventsWithoutTotalCount(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException {
+ ApiResponse localVarResp = getApplicationEventsWithoutTotalCountWithHttpInfo(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery);
return localVarResp.getData();
}
@@ -9162,7 +8996,7 @@ public InlineResponse20028 getApplicationEventsWithoutTotalCount(Integer applica
* @param referralCode Referral code (optional)
* @param ruleQuery Rule name filter for events (optional)
* @param campaignQuery Campaign name filter for events (optional)
- * @return ApiResponse<InlineResponse20028>
+ * @return ApiResponse<InlineResponse20027>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -9170,9 +9004,9 @@ public InlineResponse20028 getApplicationEventsWithoutTotalCount(Integer applica
200 | OK | - |
*/
- public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException {
+ public ApiResponse getApplicationEventsWithoutTotalCountWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery) throws ApiException {
okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -9203,10 +9037,10 @@ public ApiResponse getApplicationEventsWithoutTotalCountWit
200 | OK | - |
*/
- public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getApplicationEventsWithoutTotalCountAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String type, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String session, String profile, String customerName, String customerEmail, String couponCode, String referralCode, String ruleQuery, String campaignQuery, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getApplicationEventsWithoutTotalCountValidateBeforeCall(applicationId, pageSize, skip, sort, type, createdBefore, createdAfter, session, profile, customerName, customerEmail, couponCode, referralCode, ruleQuery, campaignQuery, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -9457,7 +9291,7 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicatio
* @param referral Filter by sessions with this referral. Must be exact match. (optional)
* @param integrationId Filter by sessions with this integration ID. Must be exact match. (optional)
* @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional)
- * @return InlineResponse20027
+ * @return InlineResponse20026
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -9465,8 +9299,8 @@ private okhttp3.Call getApplicationSessionsValidateBeforeCall(Integer applicatio
200 | OK | - |
*/
- public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException {
- ApiResponse localVarResp = getApplicationSessionsWithHttpInfo(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId);
+ public InlineResponse20026 getApplicationSessions(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException {
+ ApiResponse localVarResp = getApplicationSessionsWithHttpInfo(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId);
return localVarResp.getData();
}
@@ -9485,7 +9319,7 @@ public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer
* @param referral Filter by sessions with this referral. Must be exact match. (optional)
* @param integrationId Filter by sessions with this integration ID. Must be exact match. (optional)
* @param storeIntegrationId The integration ID of the store. You choose this ID when you create a store. (optional)
- * @return ApiResponse<InlineResponse20027>
+ * @return ApiResponse<InlineResponse20026>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -9493,9 +9327,9 @@ public InlineResponse20027 getApplicationSessions(Integer applicationId, Integer
200 | OK | - |
*/
- public ApiResponse getApplicationSessionsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException {
+ public ApiResponse getApplicationSessionsWithHttpInfo(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId) throws ApiException {
okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -9523,10 +9357,10 @@ public ApiResponse getApplicationSessionsWithHttpInfo(Integ
200 | OK | - |
*/
- public okhttp3.Call getApplicationSessionsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getApplicationSessionsAsync(Integer applicationId, Integer pageSize, Integer skip, String sort, String profile, String state, OffsetDateTime createdBefore, OffsetDateTime createdAfter, String coupon, String referral, String integrationId, String storeIntegrationId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getApplicationSessionsValidateBeforeCall(applicationId, pageSize, skip, sort, profile, state, createdBefore, createdAfter, coupon, referral, integrationId, storeIntegrationId, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -9842,7 +9676,7 @@ private okhttp3.Call getAttributesValidateBeforeCall(Integer pageSize, Integer s
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param entity Returned attributes will be filtered by supplied entity. (optional)
- * @return InlineResponse20034
+ * @return InlineResponse20033
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -9850,8 +9684,8 @@ private okhttp3.Call getAttributesValidateBeforeCall(Integer pageSize, Integer s
200 | OK | - |
*/
- public InlineResponse20034 getAttributes(Integer pageSize, Integer skip, String sort, String entity) throws ApiException {
- ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity);
+ public InlineResponse20033 getAttributes(Integer pageSize, Integer skip, String sort, String entity) throws ApiException {
+ ApiResponse localVarResp = getAttributesWithHttpInfo(pageSize, skip, sort, entity);
return localVarResp.getData();
}
@@ -9862,7 +9696,7 @@ public InlineResponse20034 getAttributes(Integer pageSize, Integer skip, String
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param entity Returned attributes will be filtered by supplied entity. (optional)
- * @return ApiResponse<InlineResponse20034>
+ * @return ApiResponse<InlineResponse20033>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -9870,9 +9704,9 @@ public InlineResponse20034 getAttributes(Integer pageSize, Integer skip, String
200 | OK | - |
*/
- public ApiResponse getAttributesWithHttpInfo(Integer pageSize, Integer skip, String sort, String entity) throws ApiException {
+ public ApiResponse getAttributesWithHttpInfo(Integer pageSize, Integer skip, String sort, String entity) throws ApiException {
okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -9892,10 +9726,10 @@ public ApiResponse getAttributesWithHttpInfo(Integer pageSi
200 | OK | - |
*/
- public okhttp3.Call getAttributesAsync(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getAttributesAsync(Integer pageSize, Integer skip, String sort, String entity, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAttributesValidateBeforeCall(pageSize, skip, sort, entity, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -9984,7 +9818,7 @@ private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Integer audienceId
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param profileQuery The filter to select a profile. (optional)
- * @return InlineResponse20032
+ * @return InlineResponse20031
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -9993,8 +9827,8 @@ private okhttp3.Call getAudienceMembershipsValidateBeforeCall(Integer audienceId
404 | Not found | - |
*/
- public InlineResponse20032 getAudienceMemberships(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException {
- ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, sort, profileQuery);
+ public InlineResponse20031 getAudienceMemberships(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException {
+ ApiResponse localVarResp = getAudienceMembershipsWithHttpInfo(audienceId, pageSize, skip, sort, profileQuery);
return localVarResp.getData();
}
@@ -10006,7 +9840,7 @@ public InlineResponse20032 getAudienceMemberships(Integer audienceId, Integer pa
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param profileQuery The filter to select a profile. (optional)
- * @return ApiResponse<InlineResponse20032>
+ * @return ApiResponse<InlineResponse20031>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -10015,9 +9849,9 @@ public InlineResponse20032 getAudienceMemberships(Integer audienceId, Integer pa
404 | Not found | - |
*/
- public ApiResponse getAudienceMembershipsWithHttpInfo(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException {
+ public ApiResponse getAudienceMembershipsWithHttpInfo(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery) throws ApiException {
okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -10039,10 +9873,10 @@ public ApiResponse getAudienceMembershipsWithHttpInfo(Integ
404 | Not found | - |
*/
- public okhttp3.Call getAudienceMembershipsAsync(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getAudienceMembershipsAsync(Integer audienceId, Integer pageSize, Integer skip, String sort, String profileQuery, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAudienceMembershipsValidateBeforeCall(audienceId, pageSize, skip, sort, profileQuery, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -10122,7 +9956,7 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer sk
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return InlineResponse20030
+ * @return InlineResponse20029
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -10130,8 +9964,8 @@ private okhttp3.Call getAudiencesValidateBeforeCall(Integer pageSize, Integer sk
200 | OK | - |
*/
- public InlineResponse20030 getAudiences(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
- ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize);
+ public InlineResponse20029 getAudiences(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
+ ApiResponse localVarResp = getAudiencesWithHttpInfo(pageSize, skip, sort, withTotalResultSize);
return localVarResp.getData();
}
@@ -10142,7 +9976,7 @@ public InlineResponse20030 getAudiences(Integer pageSize, Integer skip, String s
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
- * @return ApiResponse<InlineResponse20030>
+ * @return ApiResponse<InlineResponse20029>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -10150,9 +9984,9 @@ public InlineResponse20030 getAudiences(Integer pageSize, Integer skip, String s
200 | OK | - |
*/
- public ApiResponse getAudiencesWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
+ public ApiResponse getAudiencesWithHttpInfo(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize) throws ApiException {
okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -10172,10 +10006,10 @@ public ApiResponse getAudiencesWithHttpInfo(Integer pageSiz
200 | OK | - |
*/
- public okhttp3.Call getAudiencesAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getAudiencesAsync(Integer pageSize, Integer skip, String sort, Boolean withTotalResultSize, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAudiencesValidateBeforeCall(pageSize, skip, sort, withTotalResultSize, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -10248,7 +10082,7 @@ private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds,
* Get a list of audience IDs and their member count.
* @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return InlineResponse20031
+ * @return InlineResponse20030
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -10256,8 +10090,8 @@ private okhttp3.Call getAudiencesAnalyticsValidateBeforeCall(String audienceIds,
200 | OK | - |
*/
- public InlineResponse20031 getAudiencesAnalytics(String audienceIds, String sort) throws ApiException {
- ApiResponse localVarResp = getAudiencesAnalyticsWithHttpInfo(audienceIds, sort);
+ public InlineResponse20030 getAudiencesAnalytics(String audienceIds, String sort) throws ApiException {
+ ApiResponse localVarResp = getAudiencesAnalyticsWithHttpInfo(audienceIds, sort);
return localVarResp.getData();
}
@@ -10266,7 +10100,7 @@ public InlineResponse20031 getAudiencesAnalytics(String audienceIds, String sort
* Get a list of audience IDs and their member count.
* @param audienceIds The IDs of one or more audiences, separated by commas, by which to filter results. (required)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return ApiResponse<InlineResponse20031>
+ * @return ApiResponse<InlineResponse20030>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -10274,9 +10108,9 @@ public InlineResponse20031 getAudiencesAnalytics(String audienceIds, String sort
200 | OK | - |
*/
- public ApiResponse getAudiencesAnalyticsWithHttpInfo(String audienceIds, String sort) throws ApiException {
+ public ApiResponse getAudiencesAnalyticsWithHttpInfo(String audienceIds, String sort) throws ApiException {
okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -10294,10 +10128,10 @@ public ApiResponse getAudiencesAnalyticsWithHttpInfo(String
200 | OK | - |
*/
- public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getAudiencesAnalyticsAsync(String audienceIds, String sort, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAudiencesAnalyticsValidateBeforeCall(audienceIds, sort, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -10518,7 +10352,7 @@ private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Integer applicationI
* @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required)
* @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required)
* @param granularity The time interval between the results in the returned time-series. (optional)
- * @return InlineResponse20021
+ * @return InlineResponse20020
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -10526,8 +10360,8 @@ private okhttp3.Call getCampaignAnalyticsValidateBeforeCall(Integer applicationI
200 | OK | - |
*/
- public InlineResponse20021 getCampaignAnalytics(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException {
- ApiResponse localVarResp = getCampaignAnalyticsWithHttpInfo(applicationId, campaignId, rangeStart, rangeEnd, granularity);
+ public InlineResponse20020 getCampaignAnalytics(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException {
+ ApiResponse localVarResp = getCampaignAnalyticsWithHttpInfo(applicationId, campaignId, rangeStart, rangeEnd, granularity);
return localVarResp.getData();
}
@@ -10539,7 +10373,7 @@ public InlineResponse20021 getCampaignAnalytics(Integer applicationId, Integer c
* @param rangeStart Only return results from after this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required)
* @param rangeEnd Only return results from before this timestamp. **Note:** - This must be an RFC3339 timestamp string. - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered. (required)
* @param granularity The time interval between the results in the returned time-series. (optional)
- * @return ApiResponse<InlineResponse20021>
+ * @return ApiResponse<InlineResponse20020>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -10547,9 +10381,9 @@ public InlineResponse20021 getCampaignAnalytics(Integer applicationId, Integer c
200 | OK | - |
*/
- public ApiResponse getCampaignAnalyticsWithHttpInfo(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException {
+ public ApiResponse getCampaignAnalyticsWithHttpInfo(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity) throws ApiException {
okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -10570,10 +10404,10 @@ public ApiResponse getCampaignAnalyticsWithHttpInfo(Integer
200 | OK | - |
*/
- public okhttp3.Call getCampaignAnalyticsAsync(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getCampaignAnalyticsAsync(Integer applicationId, Integer campaignId, OffsetDateTime rangeStart, OffsetDateTime rangeEnd, String granularity, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCampaignAnalyticsValidateBeforeCall(applicationId, campaignId, rangeStart, rangeEnd, granularity, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -11443,7 +11277,7 @@ private okhttp3.Call getChangesValidateBeforeCall(Integer pageSize, Integer skip
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
* @param managementKeyId Filter results that match the given management key ID. (optional)
* @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional)
- * @return InlineResponse20042
+ * @return InlineResponse20041
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -11451,8 +11285,8 @@ private okhttp3.Call getChangesValidateBeforeCall(Integer pageSize, Integer skip
200 | OK | - |
*/
- public InlineResponse20042 getChanges(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException {
- ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld);
+ public InlineResponse20041 getChanges(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException {
+ ApiResponse localVarResp = getChangesWithHttpInfo(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld);
return localVarResp.getData();
}
@@ -11470,7 +11304,7 @@ public InlineResponse20042 getChanges(Integer pageSize, Integer skip, String sor
* @param withTotalResultSize When this flag is set, the result includes the total size of the result, across all pages. This might decrease performance on large data sets. - When `true`: `hasMore` is true when there is a next page. `totalResultSize` is always zero. - When `false`: `hasMore` is always false. `totalResultSize` contains the total number of results for this query. (optional)
* @param managementKeyId Filter results that match the given management key ID. (optional)
* @param includeOld When this flag is set to false, the state without the change will not be returned. The default value is true. (optional)
- * @return ApiResponse<InlineResponse20042>
+ * @return ApiResponse<InlineResponse20041>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -11478,9 +11312,9 @@ public InlineResponse20042 getChanges(Integer pageSize, Integer skip, String sor
200 | OK | - |
*/
- public ApiResponse getChangesWithHttpInfo(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException {
+ public ApiResponse getChangesWithHttpInfo(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld) throws ApiException {
okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -11507,10 +11341,10 @@ public ApiResponse getChangesWithHttpInfo(Integer pageSize,
200 | OK | - |
*/
- public okhttp3.Call getChangesAsync(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getChangesAsync(Integer pageSize, Integer skip, String sort, BigDecimal applicationId, String entityPath, Integer userId, OffsetDateTime createdBefore, OffsetDateTime createdAfter, Boolean withTotalResultSize, Integer managementKeyId, Boolean includeOld, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getChangesValidateBeforeCall(pageSize, skip, sort, applicationId, entityPath, userId, createdBefore, createdAfter, withTotalResultSize, managementKeyId, includeOld, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -12332,7 +12166,7 @@ private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCa
* @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional)
* @param campaignName Only return reports matching the campaign name. (optional)
* @param advocateName Only return reports matching the current customer referrer name. (optional)
- * @return InlineResponse20026
+ * @return InlineResponse20025
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -12340,8 +12174,8 @@ private okhttp3.Call getCustomerActivityReportsWithoutTotalCountValidateBeforeCa
200 | OK | - |
*/
- public InlineResponse20026 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException {
- ApiResponse localVarResp = getCustomerActivityReportsWithoutTotalCountWithHttpInfo(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName);
+ public InlineResponse20025 getCustomerActivityReportsWithoutTotalCount(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException {
+ ApiResponse localVarResp = getCustomerActivityReportsWithoutTotalCountWithHttpInfo(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName);
return localVarResp.getData();
}
@@ -12358,7 +12192,7 @@ public InlineResponse20026 getCustomerActivityReportsWithoutTotalCount(OffsetDat
* @param integrationId Filter results performing an exact matching against the profile integration identifier. (optional)
* @param campaignName Only return reports matching the campaign name. (optional)
* @param advocateName Only return reports matching the current customer referrer name. (optional)
- * @return ApiResponse<InlineResponse20026>
+ * @return ApiResponse<InlineResponse20025>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -12366,9 +12200,9 @@ public InlineResponse20026 getCustomerActivityReportsWithoutTotalCount(OffsetDat
200 | OK | - |
*/
- public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException {
+ public ApiResponse getCustomerActivityReportsWithoutTotalCountWithHttpInfo(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName) throws ApiException {
okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -12394,10 +12228,10 @@ public ApiResponse getCustomerActivityReportsWithoutTotalCo
200 | OK | - |
*/
- public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getCustomerActivityReportsWithoutTotalCountAsync(OffsetDateTime rangeStart, OffsetDateTime rangeEnd, Integer applicationId, Integer pageSize, Integer skip, String sort, String name, String integrationId, String campaignName, String advocateName, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCustomerActivityReportsWithoutTotalCountValidateBeforeCall(rangeStart, rangeEnd, applicationId, pageSize, skip, sort, name, integrationId, campaignName, advocateName, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -12751,7 +12585,7 @@ private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Int
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional)
* @param title Filter results by the `title` of an achievement. (optional)
- * @return InlineResponse20047
+ * @return InlineResponse20046
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -12761,8 +12595,8 @@ private okhttp3.Call getCustomerProfileAchievementProgressValidateBeforeCall(Int
401 | Unauthorized | - |
*/
- public InlineResponse20047 getCustomerProfileAchievementProgress(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException {
- ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title);
+ public InlineResponse20046 getCustomerProfileAchievementProgress(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException {
+ ApiResponse localVarResp = getCustomerProfileAchievementProgressWithHttpInfo(applicationId, integrationId, pageSize, skip, achievementId, title);
return localVarResp.getData();
}
@@ -12775,7 +12609,7 @@ public InlineResponse20047 getCustomerProfileAchievementProgress(Integer applica
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param achievementId The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint. (optional)
* @param title Filter results by the `title` of an achievement. (optional)
- * @return ApiResponse<InlineResponse20047>
+ * @return ApiResponse<InlineResponse20046>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -12785,9 +12619,9 @@ public InlineResponse20047 getCustomerProfileAchievementProgress(Integer applica
401 | Unauthorized | - |
*/
- public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException {
+ public ApiResponse getCustomerProfileAchievementProgressWithHttpInfo(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title) throws ApiException {
okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -12811,10 +12645,10 @@ public ApiResponse getCustomerProfileAchievementProgressWit
401 | Unauthorized | - |
*/
- public okhttp3.Call getCustomerProfileAchievementProgressAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getCustomerProfileAchievementProgressAsync(Integer applicationId, String integrationId, Integer pageSize, Integer skip, Integer achievementId, String title, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCustomerProfileAchievementProgressValidateBeforeCall(applicationId, integrationId, pageSize, skip, achievementId, title, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -12888,7 +12722,7 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Integer pageSize, Int
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false)
- * @return InlineResponse20025
+ * @return InlineResponse20024
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -12896,8 +12730,8 @@ private okhttp3.Call getCustomerProfilesValidateBeforeCall(Integer pageSize, Int
200 | OK | - |
*/
- public InlineResponse20025 getCustomerProfiles(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
- ApiResponse localVarResp = getCustomerProfilesWithHttpInfo(pageSize, skip, sandbox);
+ public InlineResponse20024 getCustomerProfiles(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
+ ApiResponse localVarResp = getCustomerProfilesWithHttpInfo(pageSize, skip, sandbox);
return localVarResp.getData();
}
@@ -12907,7 +12741,7 @@ public InlineResponse20025 getCustomerProfiles(Integer pageSize, Integer skip, B
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false)
- * @return ApiResponse<InlineResponse20025>
+ * @return ApiResponse<InlineResponse20024>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -12915,9 +12749,9 @@ public InlineResponse20025 getCustomerProfiles(Integer pageSize, Integer skip, B
200 | OK | - |
*/
- public ApiResponse getCustomerProfilesWithHttpInfo(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
+ public ApiResponse getCustomerProfilesWithHttpInfo(Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -12936,10 +12770,10 @@ public ApiResponse getCustomerProfilesWithHttpInfo(Integer
200 | OK | - |
*/
- public okhttp3.Call getCustomerProfilesAsync(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getCustomerProfilesAsync(Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCustomerProfilesValidateBeforeCall(pageSize, skip, sandbox, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -13020,7 +12854,7 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false)
- * @return InlineResponse20024
+ * @return InlineResponse20023
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -13028,8 +12862,8 @@ private okhttp3.Call getCustomersByAttributesValidateBeforeCall(CustomerProfileS
200 | OK | - |
*/
- public InlineResponse20024 getCustomersByAttributes(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
- ApiResponse localVarResp = getCustomersByAttributesWithHttpInfo(body, pageSize, skip, sandbox);
+ public InlineResponse20023 getCustomersByAttributes(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
+ ApiResponse localVarResp = getCustomersByAttributesWithHttpInfo(body, pageSize, skip, sandbox);
return localVarResp.getData();
}
@@ -13040,7 +12874,7 @@ public InlineResponse20024 getCustomersByAttributes(CustomerProfileSearchQuery b
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sandbox Indicates whether you are pointing to a sandbox or live customer. (optional, default to false)
- * @return ApiResponse<InlineResponse20024>
+ * @return ApiResponse<InlineResponse20023>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -13048,9 +12882,9 @@ public InlineResponse20024 getCustomersByAttributes(CustomerProfileSearchQuery b
200 | OK | - |
*/
- public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
+ public ApiResponse getCustomersByAttributesWithHttpInfo(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox) throws ApiException {
okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -13070,10 +12904,10 @@ public ApiResponse getCustomersByAttributesWithHttpInfo(Cus
200 | OK | - |
*/
- public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getCustomersByAttributesAsync(CustomerProfileSearchQuery body, Integer pageSize, Integer skip, Boolean sandbox, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCustomersByAttributesValidateBeforeCall(body, pageSize, skip, sandbox, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -13159,7 +12993,7 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return InlineResponse20040
+ * @return InlineResponse20039
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -13167,8 +13001,8 @@ private okhttp3.Call getEventTypesValidateBeforeCall(String name, Boolean includ
200 | OK | - |
*/
- public InlineResponse20040 getEventTypes(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException {
- ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort);
+ public InlineResponse20039 getEventTypes(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException {
+ ApiResponse localVarResp = getEventTypesWithHttpInfo(name, includeOldVersions, pageSize, skip, sort);
return localVarResp.getData();
}
@@ -13180,7 +13014,7 @@ public InlineResponse20040 getEventTypes(String name, Boolean includeOldVersions
* @param pageSize The number of items in the response. (optional, default to 1000)
* @param skip The number of items to skip when paging through large result sets. (optional)
* @param sort The field by which results should be sorted. By default, results are sorted in ascending order. To sort them in descending order, prefix the field name with `-`. **Note:** This parameter works only with numeric fields. (optional)
- * @return ApiResponse<InlineResponse20040>
+ * @return ApiResponse<InlineResponse20039>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -13188,9 +13022,9 @@ public InlineResponse20040 getEventTypes(String name, Boolean includeOldVersions
200 | OK | - |
*/
- public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException {
+ public ApiResponse getEventTypesWithHttpInfo(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort) throws ApiException {
okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -13211,10 +13045,10 @@ public ApiResponse getEventTypesWithHttpInfo(String name, B
200 | OK | - |
*/
- public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call getEventTypesAsync(String name, Boolean includeOldVersions, Integer pageSize, Integer skip, String sort, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getEventTypesValidateBeforeCall(name, includeOldVersions, pageSize, skip, sort, _callback);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
@@ -13300,7 +13134,7 @@ private okhttp3.Call getExportsValidateBeforeCall(Integer pageSize, Integer skip
* @param applicationId Filter results by Application ID. (optional)
* @param campaignId Filter by the campaign ID on which the limit counters are used. (optional)
* @param entity The name of the entity type that was exported. (optional)
- * @return InlineResponse20043
+ * @return InlineResponse20042
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -13308,8 +13142,8 @@ private okhttp3.Call getExportsValidateBeforeCall(Integer pageSize, Integer skip
200 | OK | - |
*/
- public InlineResponse20043 getExports(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException {
- ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity);
+ public InlineResponse20042 getExports(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException {
+ ApiResponse localVarResp = getExportsWithHttpInfo(pageSize, skip, applicationId, campaignId, entity);
return localVarResp.getData();
}
@@ -13321,7 +13155,7 @@ public InlineResponse20043 getExports(Integer pageSize, Integer skip, BigDecimal
* @param applicationId Filter results by Application ID. (optional)
* @param campaignId Filter by the campaign ID on which the limit counters are used. (optional)
* @param entity The name of the entity type that was exported. (optional)
- * @return ApiResponse<InlineResponse20043>
+ * @return ApiResponse<InlineResponse20042>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -13329,9 +13163,9 @@ public InlineResponse20043 getExports(Integer pageSize, Integer skip, BigDecimal
200 | OK | - |
*/
- public ApiResponse getExportsWithHttpInfo(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException {
+ public ApiResponse getExportsWithHttpInfo(Integer pageSize, Integer skip, BigDecimal applicationId, Integer campaignId, String entity) throws ApiException {
okhttp3.Call localVarCall = getExportsValidateBeforeCall(pageSize, skip, applicationId, campaignId, entity, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -13352,10 +13186,10 @@ public ApiResponse getExportsWithHttpInfo(Integer pageSize,
|