Skip to content

Instantly share code, notes, and snippets.

@Mozu-CS
Last active June 11, 2016 01:09
Show Gist options
  • Save Mozu-CS/f0d28b0b00c5bc7ea5abbffbb4942357 to your computer and use it in GitHub Desktop.
Save Mozu-CS/f0d28b0b00c5bc7ea5abbffbb4942357 to your computer and use it in GitHub Desktop.
public void Update_Customer_RecomputeLifeTimeBalance()
{
//create instance of customer account resource
var accountResource = new Mozu.Api.Resources.Commerce.Customer
.CustomerAccountResource(_apiContext);
var existingAcct = accountResource.GetAccountsAsync(filter: "EmailAddress eq 'jakelantern@mozu.com'")
.Result
.Items
.First();
accountResource.RecomputeCustomerLifetimeValue(existingAcct.Id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment