Skip to main content
What players pay: base price, country prices and sales. 6 operations. How to call them, and what the answers mean: Operations reference.
Generated from the operation catalog: src/lib/ops/public-catalog.json in publicsummerengine at 0d85f61e2b and the summer-engine npm package 4.0.0 for engine and local operations. If something here is wrong, the operation’s definition is wrong.

clear_country

pricing.clear_country: Remove a country’s price Remove a game’s own price in one country, so players there pay the base price again. Runs when the person allows Prices and live changes; otherwise answers needs_approval with a link. Inputs:
Example: Brazil pays the base price again.

clear_discount

pricing.clear_discount: End a game’s sale End or cancel a game’s sale, running or scheduled, so players pay the base price. Runs when the person allows Prices and live changes; otherwise answers needs_approval with a link. Inputs:
Example: End the sale now.

get

pricing.get: Read a game’s prices A game’s price on Summer Games: the base price, any sale (now or scheduled), what players pay now and the prices set per country. Next: pricing.set_base or pricing.schedule_discount when the owner asks. Inputs:
Example: What does this game cost?

schedule_discount

pricing.schedule_discount: Put a game on sale Put a paid game on sale: a percent off from startsAt (default now) to endsAt, at most 90 days, replacing any other sale. Runs when the person allows Prices and live changes; otherwise answers needs_approval with a link. Inputs:
Example: A 25% sale over the holiday weekend.

set_base

pricing.set_base: Set the base price Change a paid game’s base price on Summer Games. Runs at once when the person allows Prices and live changes; otherwise answers needs_approval with a link and changes nothing until they approve. Next: pricing.get. Inputs:
Example: Lower the price to 7.99 dollars.

set_country

pricing.set_country: Set a country’s price Set a paid game’s price in one country, rounded to a whole dollar ending in .99 unless roundTo99 is false. Runs when the person allows Prices and live changes; otherwise answers needs_approval with a link. Inputs:
Example: A lower price in Brazil.