Menu

Promotions

Promotional codes.

OperationMethod and path
The referral promotion's parametersGET /promotions/referral

The referral promotion's parameters#

GET /promotions/referral · operation getReferralPromotion

active, and while the promotion runs: standard_amount, gift_min, gift_max and reward_tiers (each tier: the giver's rewarded referrals n_from..n_to and the reward each earns). No caller data. This call is not charged.

Credentialan API key holding the permission below, or a session (x-weird-auth: key)
Permissionreferrals:read
Chargedno

Answer 200 (ReferralPromotion): the result

  • active, boolean, required
  • standard_amount, string — a decimal amount as text
  • gift_min, string — a decimal amount as text
  • gift_max, string — a decimal amount as text
  • reward_tiers, array of objects
    • n_from, integer, required
    • n_to, integer, required
    • amount, string, required — a decimal amount as text

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
401unauthorizedunauthorized
403insufficient-scope, terms-acceptance-requiredinsufficient-scope (an API key without the route's scope: required, granted); terms-acceptance-required (the current terms of service or privacy notice are not accepted yet: required lists them; read them with GET /legal/documents and accept with POST /auth/legal/accept)
429rate-limitedrate-limited

Example

curl -X GET 'https://api.weird.ro/promotions/referral' \
  -H "Authorization: Bearer $WEIRD_API_KEY"

With the CLI (weird referrals promotion):

$ weird referrals promotion

MCP: weird_referrals.

This page is generated from the API's public document; it changes when the document does.