discounts
public

Create a discount.

Scopes: discounts:write

post/v1/discounts/

Request

  • Base URL
    https://api.polar.sh
  • URL
    https://api.polar.sh/v1/discounts/
  • Auth
    • OpenID Connect (/.well-known/openid-configuration, scopes: discounts:write)
    • or HTTP bearer
    • or HTTP bearer

Request body

OR

Example request

{
  "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"
}

Response

Discount created.

OR
OR
OR

Example response

{
  "amount": 1000,
  "currency": "usd",
  "amounts": {
    "eur": 900,
    "usd": 1000
  },
  "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"
}

Changes

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status