Versions Compared

Key

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

Use this method to mark credits as synchronized with an external system.

Tip

Valid Tokens: Company.


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

Request


URL: 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. 

You can get these IDs using the credit.details.list method.


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

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


credits (array)

List of credits with their corresponding response. 


message (string:500)

Transaction status description.


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


creditId (integer: 20)

Credit ID.


Code Block
{
    "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
        }
    ]
}
We've encountered an issue exporting this macro. Please try exporting this page again later.