Delete Promise To Pay
DELETE v2/finplus/debtmanagement/debtornotes/promisetopays/{id}
Use this endpoint to delete a promise-to-pay record for the specified school.
The promise-to-pay ID must be included in the URL and can be found using the Get Promise To Pay(s) or Get Note(s) call.
Only promises with no payment against them may be deleted. If the promise has been partially or fully paid (promise_completed is not "No", or amount_paid is greater than zero), the request will fail with a 403 Forbidden.
Path Parameters
{id}*
Integer
The promise-to-pay ID of the record to delete
Request Headers
HTTP-X-USERNAME*
String
As provided by d6
HTTP-X-PASSWORD*
String
As provided by d6
HTTP-X-SCHOOLID*
Integer
The unique identifier of the school for which the data is being queried.
Response Examples
Status: 200 OK
{
"success": true,
"message": "Promise To Pay deleted successfully"
}Description: When no promise-to-pay ID was provided
Status: 400 Bad Request
{
"success": false,
"message": "The Promise To Pay ID is required"
}Description: When the promise-to-pay ID does not exist
Status: 404 Not Found
{
"success": false,
"message": "The Promise To Pay record does not exist"
}Description: When the promise-to-pay has already been partially or fully paid. Only promises with no payment against them may be deleted.
Status: 403 Forbidden
{
"success": false,
"message": "Permission denied to delete Promise To Pay (ID: 12345). The promise has either been partially or fully adhered to."
}Code Samples
Last updated