All URIs are relative to https://yourbaseurl.talon.one
Method | HTTP request | Description |
---|---|---|
CreateAudienceV2 | Post /v2/audiences | Create audience |
CreateCouponReservation | Post /v1/coupon_reservations/{couponValue} | Create coupon reservation |
CreateReferral | Post /v1/referrals | Create referral code for an advocate |
CreateReferralsForMultipleAdvocates | Post /v1/referrals_for_multiple_advocates | Create referral codes for multiple advocates |
DeleteAudienceMembershipsV2 | Delete /v2/audiences/{audienceId}/memberships | Delete audience memberships |
DeleteAudienceV2 | Delete /v2/audiences/{audienceId} | Delete audience |
DeleteCouponReservation | Delete /v1/coupon_reservations/{couponValue} | Delete coupon reservations |
DeleteCustomerData | Delete /v1/customer_data/{integrationId} | Delete customer's personal data |
GetCustomerInventory | Get /v1/customer_profiles/{integrationId}/inventory | List customer data |
GetCustomerSession | Get /v2/customer_sessions/{customerSessionId} | Get customer session |
GetLoyaltyBalances | Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/balances | Get customer's loyalty points |
GetLoyaltyCardBalances | Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/balances | Get card's point balances |
GetLoyaltyCardPoints | Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/points | List card's unused loyalty points |
GetLoyaltyCardTransactions | Get /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/transactions | List card's transactions |
GetLoyaltyProgramProfilePoints | Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/points | List customer's unused loyalty points |
GetLoyaltyProgramProfileTransactions | Get /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/transactions | List customer's loyalty transactions |
GetReservedCustomers | Get /v1/coupon_reservations/customerprofiles/{couponValue} | List customers that have this coupon reserved |
LinkLoyaltyCardToProfile | Post /v2/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/link_profile | Link customer profile to card |
ReopenCustomerSession | Put /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session |
ReturnCartItems | Post /v2/customer_sessions/{customerSessionId}/returns | Return cart items |
SyncCatalog | Put /v1/catalogs/{catalogId}/sync | Sync cart item catalog |
TrackEventV2 | Post /v2/events | Track event |
UpdateAudienceCustomersAttributes | Put /v2/audience_customers/{audienceId}/attributes | Update profile attributes for all customers in audience |
UpdateAudienceV2 | Put /v2/audiences/{audienceId} | Update audience name |
UpdateCustomerProfileAudiences | Post /v2/customer_audiences | Update multiple customer profiles' audiences |
UpdateCustomerProfileV2 | Put /v2/customer_profiles/{integrationId} | Update customer profile |
UpdateCustomerProfilesV2 | Put /v2/customer_profiles | Update multiple customer profiles |
UpdateCustomerSessionV2 | Put /v2/customer_sessions/{customerSessionId} | Update customer session |
Audience CreateAudienceV2(ctx).Body(body).Execute()
Create audience
Other parameters are passed through a pointer to a apiCreateAudienceV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | NewAudience | body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Coupon CreateCouponReservation(ctx, couponValue).Body(body).Execute()
Create coupon reservation
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
couponValue | string | The code of the coupon. |
Other parameters are passed through a pointer to a apiCreateCouponReservationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | CouponReservations | body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Referral CreateReferral(ctx).Body(body).Execute()
Create referral code for an advocate
Other parameters are passed through a pointer to a apiCreateReferralRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | NewReferral | body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse201 CreateReferralsForMultipleAdvocates(ctx).Body(body).Silent(silent).Execute()
Create referral codes for multiple advocates
Other parameters are passed through a pointer to a apiCreateReferralsForMultipleAdvocatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | NewReferralsForMultipleAdvocates | 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. | [default to yes] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteAudienceMembershipsV2(ctx, audienceId).Execute()
Delete audience memberships
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
audienceId | int32 | The ID of the audience. |
Other parameters are passed through a pointer to a apiDeleteAudienceMembershipsV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteAudienceV2(ctx, audienceId).Execute()
Delete audience
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
audienceId | int32 | The ID of the audience. |
Other parameters are passed through a pointer to a apiDeleteAudienceV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteCouponReservation(ctx, couponValue).Body(body).Execute()
Delete coupon reservations
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
couponValue | string | The code of the coupon. |
Other parameters are passed through a pointer to a apiDeleteCouponReservationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | CouponReservations | body |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteCustomerData(ctx, integrationId).Execute()
Delete customer's personal data
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
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 endpoint. - The Management API with the List application's customers endpoint. |
Other parameters are passed through a pointer to a apiDeleteCustomerDataRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CustomerInventory GetCustomerInventory(ctx, integrationId).Profile(profile).Referrals(referrals).Coupons(coupons).Loyalty(loyalty).Giveaways(giveaways).Achievements(achievements).Execute()
List customer data
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
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 endpoint. - The Management API with the List application's customers endpoint. |
Other parameters are passed through a pointer to a apiGetCustomerInventoryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
profile | bool | Set to `true` to include customer profile information in the response. | referrals | bool | Set to `true` to include referral information in the response. | coupons | bool | Set to `true` to include coupon information in the response. | loyalty | bool | Set to `true` to include loyalty information in the response. | giveaways | bool | Set to `true` to include giveaways information in the response. | achievements | bool | Set to `true` to include achievement information in the response. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IntegrationCustomerSessionResponse GetCustomerSession(ctx, customerSessionId).Execute()
Get customer session
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
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 endpoint. |
Other parameters are passed through a pointer to a apiGetCustomerSessionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
IntegrationCustomerSessionResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoyaltyBalances GetLoyaltyBalances(ctx, loyaltyProgramId, integrationId).EndDate(endDate).SubledgerId(subledgerId).Execute()
Get customer's loyalty points
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
loyaltyProgramId | int32 | Identifier of the profile-based loyalty program. You can get the ID with the List loyalty programs endpoint. | |
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. |
Other parameters are passed through a pointer to a apiGetLoyaltyBalancesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
endDate | time.Time | 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. | subledgerId | string | The ID of the subledger by which we filter the data. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoyaltyCardBalances GetLoyaltyCardBalances(ctx, loyaltyProgramId, loyaltyCardId).EndDate(endDate).SubledgerId(subledgerId).Execute()
Get card's point balances
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
loyaltyProgramId | int32 | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the List loyalty programs endpoint. | |
loyaltyCardId | string | Identifier of the loyalty card. You can get the identifier with the List loyalty cards endpoint. |
Other parameters are passed through a pointer to a apiGetLoyaltyCardBalancesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
endDate | time.Time | 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. | subledgerId | []string | Filter results by one or more subledger IDs. Must be exact match. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2003 GetLoyaltyCardPoints(ctx, loyaltyProgramId, loyaltyCardId).Status(status).SubledgerId(subledgerId).PageSize(pageSize).Skip(skip).Execute()
List card's unused loyalty points
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
loyaltyProgramId | int32 | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the List loyalty programs endpoint. | |
loyaltyCardId | string | Identifier of the loyalty card. You can get the identifier with the List loyalty cards endpoint. |
Other parameters are passed through a pointer to a apiGetLoyaltyCardPointsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
status | string | Filter points based on their status. | [default to active] subledgerId | []string | Filter results by one or more subledger IDs. Must be exact match. | pageSize | int32 | The number of items in the response. | [default to 50] skip | int32 | The number of items to skip when paging through large result sets. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2001 GetLoyaltyCardTransactions(ctx, loyaltyProgramId, loyaltyCardId).SubledgerId(subledgerId).LoyaltyTransactionType(loyaltyTransactionType).StartDate(startDate).EndDate(endDate).PageSize(pageSize).Skip(skip).Execute()
List card's transactions
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
loyaltyProgramId | int32 | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the List loyalty programs endpoint. | |
loyaltyCardId | string | Identifier of the loyalty card. You can get the identifier with the List loyalty cards endpoint. |
Other parameters are passed through a pointer to a apiGetLoyaltyCardTransactionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
subledgerId | []string | Filter results by one or more subledger IDs. Must be exact match. | loyaltyTransactionType | 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. | startDate | time.Time | 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. | endDate | time.Time | 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. | pageSize | int32 | The number of items in the response. | [default to 1000] skip | int32 | The number of items to skip when paging through large result sets. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2004 GetLoyaltyProgramProfilePoints(ctx, loyaltyProgramId, integrationId).Status(status).SubledgerId(subledgerId).PageSize(pageSize).Skip(skip).Execute()
List customer's unused loyalty points
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
loyaltyProgramId | int32 | Identifier of the profile-based loyalty program. You can get the ID with the List loyalty programs endpoint. | |
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. |
Other parameters are passed through a pointer to a apiGetLoyaltyProgramProfilePointsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
status | string | Filter points based on their status. | [default to active] subledgerId | string | The ID of the subledger by which we filter the data. | pageSize | int32 | The number of items in the response. | [default to 50] skip | int32 | The number of items to skip when paging through large result sets. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2002 GetLoyaltyProgramProfileTransactions(ctx, loyaltyProgramId, integrationId).SubledgerId(subledgerId).LoyaltyTransactionType(loyaltyTransactionType).StartDate(startDate).EndDate(endDate).PageSize(pageSize).Skip(skip).Execute()
List customer's loyalty transactions
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
loyaltyProgramId | int32 | Identifier of the profile-based loyalty program. You can get the ID with the List loyalty programs endpoint. | |
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. |
Other parameters are passed through a pointer to a apiGetLoyaltyProgramProfileTransactionsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
subledgerId | string | The ID of the subledger by which we filter the data. | loyaltyTransactionType | 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. | startDate | time.Time | 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. | endDate | time.Time | 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. | pageSize | int32 | The number of items in the response. | [default to 50] skip | int32 | The number of items to skip when paging through large result sets. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 GetReservedCustomers(ctx, couponValue).Execute()
List customers that have this coupon reserved
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
couponValue | string | The code of the coupon. |
Other parameters are passed through a pointer to a apiGetReservedCustomersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoyaltyCard LinkLoyaltyCardToProfile(ctx, loyaltyProgramId, loyaltyCardId).Body(body).Execute()
Link customer profile to card
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
loyaltyProgramId | int32 | Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the List loyalty programs endpoint. | |
loyaltyCardId | string | Identifier of the loyalty card. You can get the identifier with the List loyalty cards endpoint. |
Other parameters are passed through a pointer to a apiLinkLoyaltyCardToProfileRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | LoyaltyCardRegistration | body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReopenSessionResponse ReopenCustomerSession(ctx, customerSessionId).Execute()
Reopen customer session
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
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 endpoint. |
Other parameters are passed through a pointer to a apiReopenCustomerSessionRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IntegrationStateV2 ReturnCartItems(ctx, customerSessionId).Body(body).Dry(dry).Execute()
Return cart items
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
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 endpoint. |
Other parameters are passed through a pointer to a apiReturnCartItemsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | ReturnIntegrationRequest | body | dry | bool | Indicates whether to persist the changes. Changes are ignored when `dry=true`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Catalog SyncCatalog(ctx, catalogId).Body(body).Execute()
Sync cart item catalog
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
catalogId | int32 | The ID of the catalog. You can find the ID in the Campaign Manager in Account > Tools > Cart item catalogs. |
Other parameters are passed through a pointer to a apiSyncCatalogRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | CatalogSyncRequest | body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TrackEventV2Response TrackEventV2(ctx).Body(body).Silent(silent).Dry(dry).Execute()
Track event
Other parameters are passed through a pointer to a apiTrackEventV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | IntegrationEventV2Request | 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. | [default to yes] |
dry | bool | Indicates whether to persist the changes. Changes are ignored when `dry=true`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateAudienceCustomersAttributes(ctx, audienceId).Body(body).Execute()
Update profile attributes for all customers in audience
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
audienceId | int32 | The ID of the audience. |
Other parameters are passed through a pointer to a apiUpdateAudienceCustomersAttributesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | map[string]interface{} | body |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Audience UpdateAudienceV2(ctx, audienceId).Body(body).Execute()
Update audience name
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
audienceId | int32 | The ID of the audience. |
Other parameters are passed through a pointer to a apiUpdateAudienceV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|
body | UpdateAudience | body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateCustomerProfileAudiences(ctx).Body(body).Execute()
Update multiple customer profiles' audiences
Other parameters are passed through a pointer to a apiUpdateCustomerProfileAudiencesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | CustomerProfileAudienceRequest | body |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CustomerProfileIntegrationResponseV2 UpdateCustomerProfileV2(ctx, integrationId).Body(body).RunRuleEngine(runRuleEngine).Dry(dry).Execute()
Update customer profile
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
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. |
Other parameters are passed through a pointer to a apiUpdateCustomerProfileV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|
body | CustomerProfileIntegrationRequestV2 | body | runRuleEngine | bool | 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. | [default to false] dry | bool | (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. |
CustomerProfileIntegrationResponseV2
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MultipleCustomerProfileIntegrationResponseV2 UpdateCustomerProfilesV2(ctx).Body(body).Silent(silent).Execute()
Update multiple customer profiles
Other parameters are passed through a pointer to a apiUpdateCustomerProfilesV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | MultipleCustomerProfileIntegrationRequest | 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. | [default to yes] |
MultipleCustomerProfileIntegrationResponseV2
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IntegrationStateV2 UpdateCustomerSessionV2(ctx, customerSessionId).Body(body).Dry(dry).Now(now).Execute()
Update customer session
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
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 endpoint. |
Other parameters are passed through a pointer to a apiUpdateCustomerSessionV2Request struct via the builder pattern
Name | Type | Description | Notes |
---|
body | IntegrationRequest | body | dry | bool | Indicates whether to persist the changes. Changes are ignored when `dry=true`. When set to `true`: - The endpoint will only consider 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. | now | time.Time | 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). 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`. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]