Use this method to update or associate an Additional Invoice Charge to a specific Customer.

Valid Tokens: Company.

note

This method is directly related to the Automatic Invoice Additional Charges feature.

This method is directly related to the Automatic Invoice Additional Charges feature.



Request


URL: https://api.kometsales.com/api/customer.additional.charge.update 

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


customerId (required) (integer:20)

The Komet Sales internal Customer ID.

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


additionalChargeCode (required)(string:20)

The Additional Charge code to associate with the Customer.

You can get this value from the additional.charge.list API method.


amountValue (optional)(decimal:10,2)

The amount you want to apply to the Customer for the specific Additional Charge.  


amountType (optional)(char:1)

The unit-type for the Additional Charge.

Valid values: % or $


{
  "authenticationToken": "token_info_goes_here",
  "customerId": 42423,
  "additionalChargeCode": "DEL",
  "amountValue": "10",
  "amountType": "$"
 }

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


 {
  "status": "1",
  "message": "The automatic additional charge was successfully saved."
 }
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockfa127b0f-aa61-4da5-a3a3-e1bf23d1169eari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock37e9caa2-3f46-436c-9478-07d88db3d12edefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockfa127b0f-aa61-4da5-a3a3-e1bf23d1169eari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock37e9caa2-3f46-436c-9478-07d88db3d12e