0% found this document useful (0 votes)
63 views1 page

Chatbot POC

The document outlines several endpoints for an API including sending OTPs, verifying OTPs, retrieving bills, checking termination eligibility, retrieving termination dates, submitting termination dates, and retrieving port in status.

Uploaded by

Nibhrit Vij
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views1 page

Chatbot POC

The document outlines several endpoints for an API including sending OTPs, verifying OTPs, retrieving bills, checking termination eligibility, retrieving termination dates, submitting termination dates, and retrieving port in status.

Uploaded by

Nibhrit Vij
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Server

https://chatbot-api-poc.onrender.com

Required Headers
x-token: “8448b8bf-ae0e-4d1d-9724-fe81b249077f”

Endpoints
Refer to postman collection json for request body params.

POST /otp/send
Sends a mock OTP to the user

POST /otp/verify
Submits an OTP from the user for verification
- Set OTP to ‘000000’ for successful verification
- Set OTP to any other value for failed verification

GET /bills
Returns raw html of a bill

GET /users/:number/subscription/termination/eligibility
Checks a user’s termination eligibility
- Set number to 88888888 for eligibleForTermination = true
- Set number to 99999999 for eligibleForTermination = false

GET /users/:number/termination/dates
Retrieves a list of the user’s possible termination dates

POST /users/:number/termination/dates
Submits the user’s chosen termination date
- Set a date from GET /users/:number/termination/dates for a successful response

GET /users/:number/portin/status
Retrieves the user’s port in status. Provides a port in time within the last 12 hours.

You might also like