In order to help creators grow their memberships globally, we’ll soon be giving patrons the ability to pay in any of our supported currencies regardless of the creator’s chosen currency. Please find below for documentation updates for both APIv1 and APIv2. For more information on Patreon's support currencies, please visit this help centre article: Patreon's supported currencies
currencyattribute in APIv1 which returns the patron’s pledge currency. Note that the
currencyattribute in APIv1 is returned on the pledge resource by default. For example, developers using APIv1 will find
currency: GBPon a pledge resource for a patron pledging £5 (where GBP is the ISO currency code for the Pound sterling), along with existing pledge attributes like
amount_cents: 500and more.
Note that the pledge event resource in APIv2 already exposes
currency_codewhich is the same as
In addition to API documentation updates, we’re exposing a
statusattribute to the APIv1 pledge resource. Developers using APIv1 to restrict and/or grant access to benefits can now check if the
status: valid) and reference the
reward(tier) relationship to know if a patron’s successfully pledged to a tier, independent of patron and creator currency. This approach avoids the need to compare patron pledge amounts to the amount owed on a tier – and thus avoids the overhead of managing currency exchange rates. In practice, your APIv1 requests will be similar to the example below:
The response includes the
reward(creator tier) relationship. Note that
statusis an optional field that needs to be requested explicitly. Also note that default attributes aren’t returned if you request fields explicitly.
currently_entitled_tiersto restrict or grant access to benefits by tier, in a currency agnostic way. To access these attributes, your APIv2 request will populate as follows:
currently_entitled_tiersrelationship. Developers on APIv2 that need access to patrons supporting deleted tiers can reference
PledgeEventto gate access to benefits. There is no APIv1 equivalent so developers should upgrade if access to deleted tier information is an important use case.
Pledgeresources, the value returned is always in the patron’s currency, not the reward tier or campaign currency. The above updates give developers on both APIv1 and APIv2 the ability to grant access to creator benefits without worrying about currency differences between patron and creator. If you need help making the most of these recent updates, head to docs.patreon.com.