Skip to content

Python SDK

Coming Soon

The official Python SDK is under development. Use the requests library for direct integration.

Direct integration with requests

python
import requests

# Step 1: Get access token
auth_response = requests.post(
  "https://api.api4business.com/oauth/v1/token",
  data={
    "grant_type": "client_credentials",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET"
  }
)
token = auth_response.json()["access_token"]

# Step 2: Call any endpoint
response = requests.post(
  "https://api.api4business.com/vas-api/pan-validation-v1",
  headers={
    "Authorization": f"Bearer {token}",
    "Content-Type": "application/json"
  },
  json={"pan": "ABCDE1234F"}
)
print(response.json())

Released under the API4Business Terms of Service