Agency App Reselling Config API in Sparkforge

By Sparkforge Support Team ·Last reviewed May 3, 2026

The Agency App Reselling Config API returns the final, client-facing prices an agency has set for an app. Call it with a sub-account OAuth token to render prices that match the Marketplace.

The Agency App Reselling Config API surfaces marked-up app prices inside custom plan cards, paywalls, and checkout flows. It returns the exact rebilling configuration Sparkforge stores for each sub-account so client-facing prices stay consistent across surfaces.

What the API Returns

Technically the Get Rebilling Config for App endpoint, this Marketplace developer REST endpoint returns the final client-facing prices an agency has set for a specific app. When called with a sub-account OAuth token, the response includes every active subscription, one-time, and usage-based rate.

Why Use It

  • Prevents price mismatches between custom UI and the native Marketplace.
  • Protects internal cost prices — only the agency upsell price is returned.
  • Covers subscription, one-time, and usage-based billing in one call.
  • Keeps checkout flows white-labeled.
  • No more hard-coded plan IDs or markups.

Authentication

A valid sub-account (location) access token is required. Calling with an agency or developer token returns 403 Forbidden.

  • OAuth 2.0 Authorization Code or Refresh Token flow.
  • Token scope must include marketplace.app.read.
  • Rate limit: 60 requests/min per app (subject to change).

Response Objects

The JSON response is namespaced under subscriptionPlans, oneTimePlans, and usageMeters. Each array entry includes planId, planName, currency, price, and billingInterval.

Use these fields to build:

  • Monthly/annual toggle buttons (from billingInterval).
  • Usage tier charts (from included units and overage rate).
  • Limited-time offers (from planName or metadata tags).

Display Best Practices

  • Refresh prices when a user changes plan quantity or billing cycle.
  • Cache the response for 5–10 minutes to respect rate limits.
  • Label currency and billing interval explicitly.
  • Match agency colors and typography for a fully white-labeled experience.
  • Test edge cases where the agency removes a plan or sets price to 0.

Frequently Asked Questions

Does the API return prices in the agency's default currency?
Yes. Each object includes a currency field so you can display the correct symbol.
What if the agency has not enabled rebilling for a sub-account?
The endpoint still responds, but price values equal the base Marketplace cost with no markup.
How often should I refresh prices?
Refresh on page load and when the client changes plan options. Cache 5-10 minutes server-side to respect rate limits.
Can I call this API with an agency-level token?
No. You must use a sub-account token. Agency tokens receive 403 Forbidden.
Does the response include coupon or promotional discounts?
Not at this time. Compute and display discounts in your own logic.
Is the endpoint rate-limited?
Yes. Currently 60 requests per minute per app. A 429 response means you exceeded the limit.

Was this article helpful?