ZioMark's HUB | API Documentation
DiscordAbout Me
  • 🔳Introduction
    • 🔐Authentication
  • 🔲GET Endpoints
    • ▫️Dec to Hex
    • ▫️Hex to Dec
    • ▫️Timetamp to Date
    • ▫️CFX
    • ▫️Date
    • ▫️Date & Time Formatter
    • ▫️Text over Image
    • ▫️Image over Image
    • ▫️Weather
    • ▫️Translate
    • ▫️Convert Currency
    • ▫️Geolocation
    • ▫️QR Code Generator
    • ▫️Image Format Converter
    • ▫️Key Generator
    • 🌐Bored
    • ▫️BMI Calculator
    • ▫️VAT Calculator
    • ▫️SEO Analyzer
    • ▫️Local Time
    • ▫️Discount Calculator
    • ▫️Discount Discover
  • 🔲POST Endpoints
    • ▫️HTML to PDF
    • ▫️Loan Calculator
    • ▫️Excel to CSV
Powered by GitBook
On this page
  • /discount/calc-disc-price
  • Query Parameters
  • Response
  1. GET Endpoints

Discount Calculator

/discount/calc-disc-price

This endpoint calculates the discounted price based on the original price and the discount percentage provided in the query parameters. It returns the original price, discount percentage, and the discounted price. If any of the parameters are missing, not numbers, or the discount percentage is not within the valid range (0-100), it returns a 400 error with a corresponding message.

Query Parameters

Parameter
Type
Description

price

number

The original price of the product or service.

discountPercentage

number

The discount percentage to be applied.

Response

{
  "originalPrice": "number",
  "discountPercentage": "string",
  "discountedPrice": "number"
}
PreviousLocal TimeNextDiscount Discover

Last updated 1 year ago

🔲
▫️