A place to discuss charging merchants for your apps and services using the billing API.
The usage charge portion of the Billing API seems to indicate the price field is an integer, though Shopify has told me that it is possible to directly charge a % of sales via their API.
Does anyone have experience using the API in this way?
Solved! Go to the solution
This is an accepted solution.
Hello,
After creating a recurring application charge that's required for usage charge recurring_application_charge_id (and/or capped charge amounts) you can create usage charges as a percentage of sales. The price field on UsageCharge is not an integer as suggested in the property doc of the API i.e. you can use fractional amounts as with any other price / money fields.
Hope this helps!
This is an accepted solution.
Hello,
After creating a recurring application charge that's required for usage charge recurring_application_charge_id (and/or capped charge amounts) you can create usage charges as a percentage of sales. The price field on UsageCharge is not an integer as suggested in the property doc of the API i.e. you can use fractional amounts as with any other price / money fields.
Hope this helps!
Boy, two words about this in the documentation sure would have saved me a lot of trouble and delay. Thanks so much Karl!