Update a Customer’s Days of Service

Use this method to update a Customer’s Days of Service and Carriers. You can update up to 50 Customers per request.

Valid Tokens: Company.


Related Articles

Request


URL: 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.


idCustomerList (optional)(integer:20)

Customer ID.

You can enter up to 50 Customer IDs separated by a comma.

You can get the Customer ID from the customer.list method.


companyLocationId (optional)(integer:20)

Komet Sales internal Location ID.
If you do not send this value, the system will update the customer's days of service in every location associated with that customer.

Only applies to Multi-Location Companies.

You can get this value from the location.list API method.


dayOfServiceMassUpdateList (required) (array)

An array containing the Days of Service to update.


carrierId (required) (integer:20)

Komet Sales internal Carrier ID.


dayOfService (required)(string:10)

Weekday code when the Carrier has service available.

Valid values: 0 = Sunday | 1 = Monday | 2= Tuesday | 3 = Wednesday | 4 = Thursday | 5 = Friday | 6 = Saturday


transitDays (integer:3)

The number of transit days for the specified Customer and Carrier.


carrierCode (required) (string:10)

Carrier code.


{ "idCustomerList":[29331, 13227, 29226], "companyLocationId": 50, "dayOfServiceMassUpdateList":[ { "carrierId":"1322", "dayOfService":"1", "transitDays": 2, "carrierCode":"922" }, { "carrierId":"3413", "dayOfService":"3", "carrierCode":"null" } ], "authenticationToken":"hrn6ihhii5nkoo43hc83sdoei32pynl4m" }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


{ "message": "Not found Customer -> ", "status": 1 }
Peacock