PHP
Here are some examples of code snippets in PHP.
An example of fetching all payments:
<?PHP
$url = "https://pos.snapscan.io/merchant/api/v1/payments";
$api_key = "your-api-key";
$opts = array(
"http" => array(
"method" => "GET",
"header" => "Authorization: Basic " . base64_encode("$api_key:")
)
);
$context = stream_context_create($opts);
$file = file_get_contents($url, false, $context);
print($file);
?>