Overview

This method allows you to create open credits balance for a specific customer. 

Request

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): array of open credits with its corresponding information. Max. 50 credits allowed.
    • date (date) (date format YYYY-MM-DD): the date of the credit.
    • balance: the total amount of the credit.

 

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

Response

Output:

  • message (string:500): description of the status of the transaction.
  • status (integer:1): transaction status. 1 for success or 0 for failure.

Sample 1
{
    "message": "Open Credits Balance Adjustment was successfully saved.",
    "status": 1
}