Premium

Gets discount code details.

Changed on
get/api/discount/{code}

Request

  • Base URL
    https://sky.coflnet.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

code, string required

Query parameters

isSubscription, boolean
provider, string

Response

OK

ValidatedDiscount required
code, string nullable
id, string nullable
amount, number double required
periodAmounts, object nullable
amountType, string nullable
name, string nullable
isValid, boolean required
isLimitedToProducts, boolean required
isSubscriptionOnly, boolean required
duration, string nullable
durationInMonths, integer required

Changes

    • info

      added the new optional query request parameter isSubscription

    • info

      added the new optional query request parameter provider

    • info

      added the optional property periodAmounts to the response with the status (media type: text/plain)

    2 more changes in this revision