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

Valid Tokens: Company.


Request


URL: https://api.kometsales.com/api/payment.mark.sync

Method: POST

Content-Type: application/JSON


Input Parameters

authenticationToken (required)(string:50)

Komet Sales security token.


payments (required)(array)

An array containing Komet Sales internal Payment IDs to mark as synchronized.


paymentId (required)(integer: 20)

Komet Sales internal Payment ID. 

You can get this ID using the payment.list API method.


{
    "authenticationToken":"token_info_goes_here",
    "payments":[
		{"paymentId": 450545},
		{"paymentId": 451181},
		{"paymentId": 47873233}
	]
}

Response


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


payments (array)

An array containing payments with their status response. 


message (string:500)

Transaction status description.


status (integer:1)

Transaction status.

Valid values: 1 = Success | 0 = Failure


paymentId (integer: 20)

Payment ID.


{
    "status": "1",
    "payments": [
		{
            "message": "The payment was successfully synchronized",
            "status": "1",
            "paymentId": 450545
        },
        {
            "message": "The payment was cancelled",
            "status": "0",
            "paymentId": 451181
        },
        {
            "message": "The payment doesn't exist",
            "status": "0",
            "paymentId": 47873233
        }
    ]
}
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock2b302566-503d-4ff0-9fbb-52b77c95ecbaari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock1e578761-c8ae-40b7-b42d-83b8648e026adefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock2b302566-503d-4ff0-9fbb-52b77c95ecbaari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock1e578761-c8ae-40b7-b42d-83b8648e026a