Application Fee Subscription

132 views
Skip to first unread message

Konner

unread,
Sep 9, 2019, 8:56:14 PM9/9/19
to api-d...@lists.stripe.com
Hey there, hope yall can help me with this

im making a subscription via API, and i want to set an application fee for that subscription

but i got this error message :
You can only apply an 'application_fee' when the request is made on behalf of another account (using an OAuth key or the Stripe-Account header).


CJ Avilla

unread,
Sep 9, 2019, 9:11:21 PM9/9/19
to api-d...@lists.stripe.com
Hey Konner,

The application_fee is only for Stripe Connect [1]. Can you confirm that you're attempting to create a Subscription for a connected account?

Creating a Subscription with this field requires that you specify which Connect account to create the subscription and subsequent invoices and charges on behalf of [2] or on directly [3].

Best,
CJ





--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.

Konner

unread,
Sep 10, 2019, 11:36:13 AM9/10/19
to api-d...@lists.stripe.com
Hi,

yeah, i have created an connected account, my problem is when the begining is tomorrow or another subsecuent day to charge payments.

but im really stuck on this step.

Remi J.

unread,
Sep 10, 2019, 11:37:36 AM9/10/19
to api-d...@lists.stripe.com
Hello Konner,

I'd recommend reaching out to our support team to discuss your integration issues. You can contact them here: https://support.stripe.com/contact

You can also refer to our docs for Billing and Trial periods for example: https://stripe.com/docs/billing/subscriptions/trials

Best,
Remi

Konner

unread,
Sep 10, 2019, 11:47:15 AM9/10/19
to api-d...@lists.stripe.com
Hi !!

i implemented all for subscriptions, i have no problem with that, my only problem is when i set the application fee % on an subscription got this error
You can only apply an 'application_fee' when the request is made on behalf of another account (using an OAuth key or the Stripe-Account header).

and i dont know what im missing on it.

thank you.

Remi J.

unread,
Sep 10, 2019, 11:49:43 AM9/10/19
to api-d...@lists.stripe.com
Hello,

The issue here is usually that you passed the wrong account id in the `Stripe-Account` header. Instead of passing the id of the a new connected account, you likely passed your own account id incorrectly, causing the request to fail. I would recommend that you triple check the id of the account you're passing and compare it to your own [1] to make sure they are different.

Otherwise, I would recommend following up with our support team instead.

All the best,
Remi


Reply all
Reply to author
Forward
0 new messages