Menu
Promotions
Promotional codes.
| Operation | Method and path |
|---|---|
| The referral promotion's parameters | GET /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.
| Credential | an API key holding the permission below, or a session (x-weird-auth: key) |
| Permission | referrals:read |
| Charged | no |
Answer 200 (ReferralPromotion): the result
active, boolean, requiredstandard_amount, string — a decimal amount as textgift_min, string — a decimal amount as textgift_max, string — a decimal amount as textreward_tiers, array of objectsn_from, integer, requiredn_to, integer, requiredamount, string, required — a decimal amount as text
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 401 | unauthorized | unauthorized |
| 403 | insufficient-scope, terms-acceptance-required | insufficient-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) |
| 429 | rate-limited | rate-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 promotionMCP: weird_referrals.
This page is generated from the API's public document; it changes when the document does.