signup

POST /v1/signup_page/coupon/validate

Request

  • Base URL
    https://checkout-api.frisbii.com
  • URL
    https://checkout-api.frisbii.com/v1/signup_page/coupon/validate
  • Auth
    none declared

Request body

codestring required

The coupon code. Maximum 100 characters.

product_handlestring required

Product handle. Max length 255 with allowable characters [a-zA-Z0-9_.-@].

account_idstring required

Account ID. Max length 255 with allowable characters [a-zA-Z0-9_.-@].

Example request

{
  "code": "summer2023"
}

Response

Successful operation

activeboolean

Flag whether the coupon code is active or not.

Example response

{
  "discountDto": {
    "name": "Gold member discount",
    "description": "Discount for members part of the Gold programme",
    "amount": 10000,
    "currency": "DKK",
    "percentage": 25,
    "handle": "discount001",
    "metadata": {
      "key": "value"
    },
    "state": "active",
    "apply_to": [
      "all"
    ],
    "fixed_count": 12,
    "fixed_period_unit": "months",
    "fixed_period": 12
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.