Overview

This method allows you to update the days of service and carriers for a group of customers in Komet Sales. 

Request

https://api.kometsales.com/api/customer.day.service.update

  • Method: POST
  • Content-Type: application/json

Input Parameters:

  • authenticationToken (required)(string:50): Komet Sales security token.
  • CustomerIds (optional)(string:20): List of Customer IDs.
  • daysOfServiceList (required) (array): array of days of service that will be updated
    • carrierId (required) (integer:20): Komet Sales internal carrier Id.
    • dayOfService (required)(string:10) code of weekday when the carrier has service available (Sunday:0, Monday: 1, Tuesday: 2,Wednesday:3, Thursday: 4, Friday: 5, Saturday: 6)

    • carrierCode (required) (string:10): code of the carrier.

      Sample
      {
      	
          "customerIds":[29749, 29750, 29751, 29752, 29753, 29754, 29755, 29756, 29757, 29758, 29759, 29760, 29761, 29762, 29763, 29764, 29767, 29773, 29774, 29775, 29776, 29778, 29779, 29783, 29784, 29785, 29786], 
          "daysOfServiceList":[ 
                  {
              		"carrierId":"3664", 
              		"dayOfService":"1", 
              		"carrierCode":"452"
              		
              	},
              	{
              		"carrierId":"3665", 
              		"dayOfService":"3", 
              		"carrierCode":"null"
              		
              	}
          	], 
          	"authenticationToken":"eu6gqaeulji4n69702h6adfe5n", 
          	"companyLocationId":"null"
      		
      	
      }
      	

Response

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure.
  • message (string:500): description of the status of the transaction.


Sample
 {
  "status": "1",
  "message": "The days of service were successfully updated."
 }