-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
Complete reference for all PayUs-as-a-Service API endpoints.
📘 Quick Links: Getting Started | Examples | Troubleshooting
https://puaas.sticknologic.is-a.dev
No authentication required. All endpoints are publicly accessible.
- Limit: 60 requests per minute per IP
-
Response Header:
X-RateLimit-Limit,X-RateLimit-Remaining - Error Code: 429 Too Many Requests
Get a random payment reminder message with a random tone.
Endpoint:
GET /payus
Response:
{
"message": "Time to settle up! Your payment is overdue.",
"tone": "Frank"
}Status Codes:
-
200- Success -
404- No messages found -
429- Rate limit exceeded -
500- Server error
Get a random message with a professional tone.
Endpoint:
GET /payus/professional
Example Request:
curl https://puaas.sticknologic.is-a.dev/payus/professionalExample Response:
{
"message": "This is a formal reminder regarding your outstanding balance. Please arrange payment at your earliest convenience.",
"tone": "Professional"
}Get a random message with a friendly tone.
Endpoint:
GET /payus/friendly
Example Request:
curl https://puaas.sticknologic.is-a.dev/payus/friendlyExample Response:
{
"message": "Hey there! Just a gentle reminder about your payment. No rush, but would love to get this sorted soon!",
"tone": "Friendly"
}Get a random message with a frank (direct) tone.
Endpoint:
GET /payus/frank
Example Request:
curl https://puaas.sticknologic.is-a.dev/payus/frankExample Response:
{
"message": "Your invoice is past due. Please make payment immediately.",
"tone": "Frank"
}Get a random message with a humorous tone.
Endpoint:
GET /payus/funny
Example Request:
curl https://puaas.sticknologic.is-a.dev/payus/funnyExample Response:
{
"message": "My accountant is giving me the stink eye about your unpaid invoice. Help me avoid her wrath?",
"tone": "Funny"
}Get a random message with a playful tone.
Endpoint:
GET /payus/playful
Example Request:
curl https://puaas.sticknologic.is-a.dev/payus/playfulExample Response:
{
"message": "Knock knock! Who's there? Your payment reminder 😊",
"tone": "Playful"
}Get a list of all available tones.
Endpoint:
GET /payus/tones
Example Request:
curl https://puaas.sticknologic.is-a.dev/payus/tonesExample Response:
{
"success": true,
"message": "Success",
"data": {
"tones": {
"professional": "Professional",
"friendly": "Friendly",
"frank": "Frank",
"funny": "Funny",
"playful": "Playful"
}
}
}Returned when no messages are found for the criteria.
{
"success": false,
"message": "No messages found for the specified criteria.",
"errors": "Resource not found"
}Returned when rate limit is exceeded.
{
"message": "Too many requests"
}Returned when an internal server error occurs.
{
"success": false,
"message": "An error occurred processing your request",
"errors": "Internal server error"
}| Code | Description |
|---|---|
| 200 | Success |
| 404 | Not found |
| 422 | Validation error |
| 429 | Too many requests |
| 500 | Server error |
For a more interactive experience with the ability to test endpoints directly in your browser, visit:
https://puaas.sticknologic.is-a.dev/docs
Download the full OpenAPI (Swagger) specification:
https://puaas.sticknologic.is-a.dev/api.json
This can be imported into tools like:
- Postman
- Insomnia
- Swagger UI
- Redoc