Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
titleRelated Articles
cqllabel in ( "customer-credits" , "credits-sync" )

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.


Code Block
{
  "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


Code Block
{
    "message": "Open Credits Balance Adjustment was successfully saved.",
    "status": 1
}
We've encountered an issue exporting this macro. Please try exporting this page again later.