A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I've been working with the appUsageRecordCreate mutation. I was using USD until we realised we could use the store's local billing currency as described in change log.
I can successfully get the store's local billing currency. In my particular case I'm using "AUD" which is supported to created app usage records in this local currency.
When I create the request it accepts the amount and currency code.
{
amount: 12
currency: "AUD"
}
but in the result from the mutation I get back this
{
amount: 7.63
currency: "USD"
}
This seems very strange to me, especially cause I've also been working with the appCreditCreate mutation. Which, yes was moved from the Admin API to the partners API but this allows me to create the credit in AUD and the result back from the mutation is in AUD too. I would expect the appUsageRecordCreate to also do this, not return the USD amount
Tried with both 2023-04 & 2023-07
Solved! Go to the solution
This is an accepted solution.
Hi there 👋
I tried to reproduce this and when I created my usage subscription in merchant currency, and created my usage charge in merchant currency, the merchant currency was returned to me in the result.
When I created the plan in USD and created the usage charge in merchant currency, the usage charge returned was in USD.
So if you want to charge in merchant currency you will need to create the plan in the merchant currency.
To learn more visit the Shopify Help Center or the Community Blog.
Hi there 👋
Can you confirm the API version you are using?
To learn more visit the Shopify Help Center or the Community Blog.
Hi, I'm using 2023-04 as per the change log, also tried 2023-07
🙂
This is an accepted solution.
Hi there 👋
I tried to reproduce this and when I created my usage subscription in merchant currency, and created my usage charge in merchant currency, the merchant currency was returned to me in the result.
When I created the plan in USD and created the usage charge in merchant currency, the usage charge returned was in USD.
So if you want to charge in merchant currency you will need to create the plan in the merchant currency.
To learn more visit the Shopify Help Center or the Community Blog.
That makes total sense 😄 my mistake.