Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

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

Valid Tokens: Company.

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."
 }
  • No labels