Request:
Response:
{"message":"500 Internal Server Error"}
My code is
$url="https://api.clover.com/v3/merchants/{mid}/payments?offset=0&limit=500&expand=tender&expand=refunds&expand=serviceCharge&expand=cardTransaction";
$ch = curl_init( $url );
# Setup request via GET.
$header = array(
'Accept: application/json',
'Authorization: Bearer '.$api_token.''
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_HEADER, 0);
# Return response instead of printing.
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
# Send request.
$itemResult = curl_exec($ch);
curl_close($ch);
# Print response.
print_r($itemResult);