set_guide_price
Set the one-time price.
/v1/guides/{productId}/priceInteger minor units (2900 = 29.00) in usd, eur or chf; the floor is 900 in each. The price includes VAT unless the guide's VAT goes on top (pricing.vatIncluded, set with set_guide_vat): with the VAT included, where a new guide starts, every buyer pays the price, rounded up to a whole unit, and the VAT of their country comes out of it; with the VAT on top, the price is before VAT and buyers in countries that charge VAT pay it on top. Either way the creator's share is a share of the proceeds (what the buyer paid minus VAT and the payment costs), never of the VAT. The guide's price is the one in its currency (pricing.currency): the creator's currency, chosen when they applied (usd for a creator who has none yet). Set it first. The other two currencies follow it, converted at the European Central Bank's latest rate to the cent and rounded up, and are converted again when the price changes or the rate moves more than 3%. Setting another currency gives it its own number; sameAsUsd true makes it follow the guide's price again. Buyers in the euro countries pay eur, buyers in Switzerland and Liechtenstein chf and buyers in the US usd; everyone else, buyers in the EU countries without the euro included, pays the guide's own price in its currency, which Stripe converts into theirs at checkout unless they choose to pay in it. Every change inserts a new immutable price row. A free guide (pricing.free, set in the studio) keeps its price for when it is paid again: setting one changes that price and leaves the guide free. Requires the creator to have accepted the creator agreement. Ask the creator for the number, never invent a price.
curl -X PUT "https://sceniq.earth/api/v1/guides/j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2/price" \
-H "Authorization: Bearer $SCENIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountMinor": 2900,
"currency": "usd"
}'Path parameters
- productIdstring · guide idrequired
Id of the guide (a product of type map). From
list_guidesorcreate_guide.
Body parameters
- amountMinornumberrequired
Price in minor units, integer, at least 900. Ignored when
sameAsUsdis true. - currencystringrequired
usd, eur or chf. Another currency than the guide's (pricing.currency) needs the price in the guide's currency first.
- sameAsUsdbooleanoptional
Not for the guide's own currency: true makes this price follow the guide's price again, converted. The name dates from when every guide was priced in usd.
Returns
200 OK with this object.
- okbooleanrequired
Always true: the write went through.
Always
true - productIdstring · guide idrequired
The guide's id.
- productPriceIdstring · price idrequired
The price row now active in this currency (prices are immutable rows).
- amountMinornumberrequired
The price in minor units, in this currency.
- currencystringrequired
The currency set: usd, eur or chf.
- pricesarray of objectsrequired
Every active price after the change: setting the guide's currency also converts the prices that follow it.
Show 3 fieldsHide fields
- amountMinornumberrequired
The price in minor units (2900 is 29.00).
- currencystringrequired
usd, eur or chf.
- followsUsdbooleanrequired
True when this price follows the guide's price (the one in its currency, pricing.currency), converted at the European Central Bank's rate and converted again when the rate moves more than 3%; false for a number the creator set and for the guide's own currency. The name dates from when every guide was priced in usd.
{
"ok": true,
"productId": "j5738kd1q9x2m7v4c6b8n0p3r5t1w9y2",
"productPriceId": "kt7z9x7c5v3b1n9m7q5w3e1r9t7y5v3j",
"amountMinor": 2900,
"currency": "usd",
"prices": [
{
"amountMinor": 2900,
"currency": "usd",
"followsUsd": false
},
{
"amountMinor": 2683,
"currency": "eur",
"followsUsd": true
},
{
"amountMinor": 2520,
"currency": "chf",
"followsUsd": true
}
]
}Errors
Every error is { error: { code, message } }. Act on the code.
- 400invalid_argumentA required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).
- 400invalid_requestA writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.
- 401unauthenticatedThe request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).
- 401invalid_api_keyThe key is unknown, revoked or expired.
- 403api_scope_requiredA read-only key called a write operation, or a key without the publish option called publish_changes.
- 403forbiddenThe key belongs to a creator account that is no longer active.
- 404not_foundThe id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.
- 409agreement_outdatedA price change or a publish by a creator who never accepted the creator agreement. A newer agreement version never causes it.
- 413payload_too_largeA JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.
- 429rate_limitedOver a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.
- 500internal_errorAn unexpected failure. The message is hidden on purpose.