cURL
curl --request POST \ --url https://base_url/v1/service/recharge/dth/info \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "mobile": "1234567890", "operatorCode": "ATELDTH" } '
{ "code": "0x0200", "status": "SUCCESS", "message": "Operator Fetch Successfully", "data": { "number": "1234567890", "name": "Dummy name", "balance": "197.78", "currentPlan": "", "nextRechargeDate": "", "plan": null } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
OK
Show child attributes
Was this page helpful?