Get Promise To Pay Record(s)
GET
/v2/finplus/debtmanagement/debtornotes/promisetopays
(/{id})
This call provides a convenient way to retrieve all promise-to-pay records, regardless of the debtor notes they are associated with.
To fetch a specific promise-to-pay record, include the ID of the promise-to-pay record in the URL.
To find records associated with a particular person, use the
debtor_code
oraccountable_person_id
query parameters.You can filter records based on their completion status using the
promise_completed
query parameter. Possible values are"Yes"
,"No"
, and"Partial"
.To retrieve records for a specific year, use the
year_promised
query parameter.To include details of the debtor note associated with the promise-to-pay record in the response, provide the
include_debtor_note
query parameter.
Pagination
The response data includes a meta
object that contains pagination-specific metadata. You can use the following query parameters to control pagination:
limit: This parameter allows you to override the default limit of records returned, up to the
max_allowed_limit
specified in the response'smeta
object.cursor: If the
meta
object contains anext_cursor
field, it indicates that more records are available. To fetch the next set of records, include thecursor
parameter in your request with the value ofnext_cursor
. If thenext_cursor
field is not present, it means there are no more records to retrieve.reverse_order: This parameter can be used to reverse the order in which the data is returned, useful for fetching the latest records first.
Path Parameters
{id}
Integer
Optional ID of the promise-to-pay item to retrieve a single record
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.
Query Parameters
accountable_person_id
Integer
To only return a specific accountable person's promise to pays
debtor_code
Integer
To only return a specific debtor code's promise to pays
promise_completed
String
To filter on the status of the promise to pay
year_promised
Integer
To filter on a specific year
include_debtor_note
Boolean
Whether to include debtor note data in the response
cursor
String
To retrieve the next group of items (if any)
limit
Integer
To override the default limit of records returned (up to the max_allowed_limit
provided in the response metadata).
reverse_order
Boolean
To reverse the order the data is returned in
Response Examples
Status: 200 OK