Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Need some info on purchases API response

A topic by kirlosev created 43 days ago Views: 68
Viewing posts 1 to 1
(3 edits)

I’m using https://itch.io/docs/api/serverside#reference/gameviewpurchases-httpsitchioapi1keygamegame-idpurchases to get purchases info and wanted to ask a few questions about the response data.

(1) What determines the currency? Is it defined by me as a developer and thus I’d always receive payment in USD, or does it depend on the person making a purchase and it could be variety of currencies? The second option makes more sense but I wanted to be sure

(2) Does price represent the amount of money a someone has paid?

"price":"$1.00",

Follow up questions:

  • why is it a string?
  • what $ mean?
  • how does $ change depending on currency?
  • am i supposed to separate this amount from ‘$’ or something else depending on currency?

(3) The provided sample missing this, but real response right now also has quantity. What is that for?

"quantity": 1,

Thanks in advance!