Use this method to update an existing Carrier in Komet Sales.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/carrier.update

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


carrierId (required)(integer:20)

The Komet Sales internal Carrier ID.

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


name (required)(string:200)

Carrier name.


code (required)(string:10)

Carrier code.


active (optional)(boolean:1)

If the Carrier is active.

Valid values: 1 = Active | 0 = Inactive


capacity (optional)(integer:10)

The Carrier capacity in cubes.


{
  "authenticationToken": "token_info_goes_here",
  "carrierId": 234234,       
  "name": "Armellini",
  "code": "AR",
  "capacity": "200"
 }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


carrierId (integer:20)

Komet Sales internal Carrier ID.


{
  "status": "1",
  "message": "The carrier was successfully saved.",
  "carrierId": 234234
 }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock0c602308-d537-4f44-92de-fde34f2fc9cbari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock3e60f1c0-0458-4854-91bb-3f8ed26cb686defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock0c602308-d537-4f44-92de-fde34f2fc9cbari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock3e60f1c0-0458-4854-91bb-3f8ed26cb686