Python

Here are some examples of code snippets in Python.


An example of fetching all payments:

import json

import requests
from requests.auth import HTTPBasicAuth

URL = "https://pos.snapscan.io/merchant/api/v1/payments"
API_KEY = "your-api-key"
response = requests.get(URL, auth = HTTPBasicAuth(API_KEY, ""))

print(response.status_code)
print(json.loads(response.content))