_getChildrenDT
Gathers the details of a Parent Customer's "Child" Customers.
Parameters
start
The number of Child Customers which will be skipped before the data of any others are returned.
length
The number of Child Customers which this function will attempt to return.
customer_id
The ID of the Parent Customer being checked for Child Customer data
[order] [0] [dir]
Affects the order that Child Customers can be picked by this function, can be "asc" or "desc".
draw
An integer value, used to determine which function use is the most recent, based on which has the highest "draw" value.
Example
FM_api('Customer_getChildrenDT',[
'start' => '0',
'length' => '10',
'customer_id' => '862657',
'order' => [['dir'=>'asc']],
'draw' => '10'
]
);
Results
On Success
{"draw":1,"recordsTotal":"1","recordsFiltered":"1","data":[["862658","Test Child Customer",["test_address1","test_address2","test_county","A12 B345"],"1",""]]}
On Failure
If the "start" parameter is not set:
{"error":"missing or invalid parameter: start"}
If the "length" parameter is not set:
{"error":"missing or invalid parameter: length"}
If the "customer_id" parameter is not set:
{"error":"missing or invalid parameter: customer_id"}
If the "[order] [0] [dir]" parameter is not set:
{"error":"missing or invalid parameter: [order] [0] [dir]"}
If the "draw" parameter is not set:
{"error":"missing or invalid parameter: draw"}
Last updated