Use this method to create an Open Credit Balance for a specific Customer.

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/open.credit.balance.create

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


customerCode (required)(string:20)

Customer Code.


openCredits (required)

An array containing open credits with their corresponding information.

The maximum amount of credits is 50 per request.


date (date)

Credit date.

Date format: YYYY-MM-DD


balance (integer)

Total credit amount.


{
  "authenticationToken": "62ljmkn5f3adf978a7vidpob6l",
  "customerCode" : "FL219", 
  "openCredits" : [{
        "date": "2017-09-16",
        "balance": 450.999
    },
     {
        "date": "2017-09-10",
        "balance": 1800
    }]
}

Response


message (string:500)

Transaction status description.


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


{
    "message": "Open Credits Balance Adjustment was successfully saved.",
    "status": 1
}
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock799b953a-a31a-4948-84c8-046db50dad35ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock2a9a5cb6-5274-495b-b704-bbca9372dbbddefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock799b953a-a31a-4948-84c8-046db50dad35ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock2a9a5cb6-5274-495b-b704-bbca9372dbbd