POST - ProcessLoyaltyPoints

Process loyalty points on a customer cards.

URL

Verb Url
POST - Basic authentication /api/apiCustomer/ProcessLoyaltyPoints?ShopCode=shop code&CustomerIdentifier=customer identifier&LoyaltyCardnumber=loyaltycard used&Points=points to process

Request Parameters

Parameter Description Format
ShopCode Shop identifier as provided with your account string
CustomerIdentifier Identifier of the Customer a known within RetailNxt string
LoyaltyCardNumber The cardnumber for which the points need to be processed string
Points The points that need to be processed for the LoyaltyCardNumber integer

Response Elements

Name Description Example
Status "Success" with Http status 200. Otherwise an error will be given as an internal server error {"Error":"Not Authorized"}

Code Samples

C#.net

            
        public async void Post(List<APIObject> APIObjects, string Url, string SourceUser, SourcePassword)
        {
            using (System.Net.Http.HttpClient client = new System.Net.Http.HttpClient())
            {

                System.Net.Http.HttpContent content = Newtonsoft.Json.JsonConvert.SerializeObject(APIObjects);

                string credentials = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(SourceUser + ":" + SourcePassword));
                content.Headers.Add("Authorization", "Basic " + credentials);

                var response = await client.PostAsync(Url, content);

                var responseString = await response.Content.ReadAsStringAsync();
            }
        }