#nsad_api

1 messages ยท Page 1 of 1 (latest)

fleet horizonBOT
rapid marlinBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

fleet horizonBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1242105949834186796

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

jagged niche
#

Hi ๐Ÿ‘‹ can you elaborate on what you mean? I don't understand how a Coupon would be related to a Transfer.

gleaming hinge
#

Hello, so i am using coupon in my program to affiliate

#

What I was thinking about is creating a stripe_account_id field to store the affiliate's account ID within the coupon models, so putting the affiliate's percentage in the subscription_data, would that be the correct way to do it?

#

for example:

subscription_data['transfer_data'] = {
    'destination': coupon.stripe_account_id,
    'amount_percent': coupon.percentual
}
#

when a user use the coupon of affiliate, create a transfer to affiliate, right?

jagged niche
#

Coupons are not at all related to Transfers, if you want to use those two things together you'll likely need to build your own custom logic to accomplish that.

Yes, if you want to transfer a portion of the funds from Subscription payments, using a destination charge pattern, you populate transfer_data with the ID of the Connected Account you want to receive the funds and the amount that you want them to receive.

gleaming hinge
#

Uhum...

#

in case to coupon be apply once time i need define duration="once"

jagged niche
#

Yup

gleaming hinge
#

okay, thanks so much for your help

#

havee a nice day!