Overview

This method allows you to mark credits as synchronized with an external system. 

Request

https://api.kometsales.com/api/credit.mark.sync

  • Method: POST
  • Content-Type: application/json


Input Parameters:

  • authenticationToken (required)(string:50): Komet Sales security token.
  • credits (required) (array): list of credit IDs from Komet Sales that you want to mark as synchronized. 
    • creditId (required)(integer: 20): Credit Id. In order to get these IDs, you can use the credit.list API method.

Sample
{
    "authenticationToken":"token_info_goes_here",
    "credits":[
		{"creditId": 450545},
		{"creditId": 451181},
		{"creditId": 47873233}
	]
}

Response

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure.
  • credits (array): list of credits with their corresponding response. 
    • message (string:500): description of the status of the transaction.
    • status (integer:1): transaction status. 1 for success or 0 for failure.
    • creditId (integer: 20): Credit Id.

Output example
{
    "status": "1",
    "credits": [
		{
            "message": "The credit was successfully synchronized",
            "status": "1",
            "creditId": 450545
        },
        {
            "message": "The credit was cancelled",
            "status": "0",
            "creditId": 451181
        },
        {
            "message": "The credit doesn't exist",
            "status": "0",
            "creditId": 47873233
        }
    ]
}