Skip to main content

Validate IUC

  • smartcardnumber: smartcardnumber number string
  • cablename: cablename string
import requests
import json
payload = {
"smartcardnumber": "755894244",
"cablename": "DSTV"
}
user_token = 'eacf1ab727d134b254361d834c28a2bf6ab0a111'
headers = {
"Content-Type": "application/json",
"Authorization": f'Token {user_token}'
}
# jsonify the payload
data = json.dumps(payload)

Send a post request with the payload

url = "https://subpadi.com/api/validateiuc/"
res = requests.post(url, data=data, headers=headers)

Response

{
"Customer_Name": "Testermetri",
"Status": "OPEN",
"Due_Date": "November 24th, 2021",
"Customer_Number": 26117953,
"Customer_Type": "DSTV",
"Current_Bouquet": "DStv Compact N7900 + ExtraView Access N2,500",
"Current_Bouquet_Code": "dstv79, extraview-access",
"Renewal_Amount": 63885
}

View code in other programming languages here