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

Valid Tokens: Company.


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.


{
    "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.


{
    "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
        }
    ]
}
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocke7667ce7-5029-40a4-a62b-f9e8314c284bari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock3fcf508e-565f-473b-b585-30511c310f22defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacocke7667ce7-5029-40a4-a62b-f9e8314c284bari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock3fcf508e-565f-473b-b585-30511c310f22