Read or set the credit_management flag on a customer. When the flag is on, PracBill will not charge a late fee or attempt to charge the customer's card on the due date. For developers automating collections holds.
GET /:tokenid/customer/getManagementStatus/:cidReturns the current value of the flag.
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenid |
string | Yes | Your API access token. |
cid |
integer | Yes | Customer ID. |
Request
$.ajax({
url: '/api/892f86d5-da86-4e98-9343-1976a375/customer/getManagementStatus/6865578 ',
type: 'GET',
contentType: 'application/json',
success: function( response ) {
console.log(response);
}
});
Response (success)
{
"success":true,
"cid": 6865578,
"credit_management": 0
}
Response (error)
{"success":false,"description":"no customer found"}
GET /:tokenid/customer/setManagementStatus/:cid/:statusSets the flag to 1 (on) or 0 (off).
| Parameter | Type | Required | Description |
|---|---|---|---|
tokenid |
string | Yes | Your API access token. |
cid |
integer | Yes | Customer ID. |
status |
integer | Yes | 1 to enable credit management, 0 to disable. |
Request
$.ajax({
url: '/api/892f86d5-da86-4e98-9343-1976a375/customer/getManagementStatus/6865578/1',
type: 'GET',
contentType: 'application/json',
success: function( response ) {
console.log(response);
}
});
Response (success)
{
"success":true,
"description": "Customer 6865578 set credit_management 1"
}
Response (error)
{"success":false,"description":"no customer found"}
Related: Customers API, Getting started with the API.