It allows you:
to view your payments pending approval - ordered descending by created date and payment date;
to update one
Columns that can be used as filters:
Organization
Email - mandatory
PaymentDate - Range
ID
Processed
Actions can be done:
list
update
Payments fields:
URL: https://api.socratecloud.com/webapi/rest/payment/selection/line/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Email={email}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"Created": "2015-07-17 11:14:23+0300",
"CreatedBy": "Demo",
"Updated": "2015-07-17 11:14:23+0300",
"UpdatedBy": "Demo",
"Description": null,
"DocType": "Invoice",
"DocumentNo": "12345",
"DocumentDate": "2015-06-25 00:00:00+0300",
"PaymentAmt": 21.37,
"BPartner": "TOTAL",
"BPartnerName": "TOTAL SRL",
"Processed": false,
"Approved": false,
"ID": 1000000
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/payment/selection/line/update/{version}?accessToken={access_token}&Email={email}&ID={id}
Method: POST
Return: ok for success or error message (start with "ERROR: ")
{
"Approved":true
}
To prepare the payments for all approved you must use the following process:
URL: https://api.socratecloud.com/webapi/rest/process/run/{version}?accessToken={access_token}&ProcessCode=C_PaySelection_CreatePayment
Method: POST
Return: for success:
{
"Summary": "Number of Prepared Payments: 3",
"LogInfo": null,
"IsError": false,
"DisplayFileName": null,
"FileSize": null,
"FileURL": null,
"AuxiliaryDisplayFileName": null,
"AuxiliaryFileSize": null,
"AuxiliaryFileURL": null,
"PrintFormat": null
}
or error message (start with "ERROR: ")