Synchronize credits with an external system
Use this method to mark credits as synchronized with an external system.
Valid Tokens: Company.
Related Articles
-
Delete a Prebook 1.0 (API)
-
-
Add Credit Reasons (Knowledge Base)
-
-
How to Issue a Customer Credit (Knowledge Base)
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
}
]
}