#kroogs-paymentlink

1 messages · Page 1 of 1 (latest)

rustic anchor
#

hello, are you using the PaymentLink creation API?

swift pumice
#

I'm pretty new to using API's, but I believe I am using the PaymentLink creation API (v1/payment_links).
I am able to create payment links with a single line item without issue, just having trouble adding the second line item.

#

Do I need to add something query string to indicate there are two line items or separating the two items?

undone musk
#

Hello Kroogs

#

Taking over for hmunoz

#

The reason it's overriding the first line item is you're using the same index (0) for the second line item

#

You need to use index 1 for the second line item

swift pumice
#

ahhh that makes sense! I will try that now 😆 thank you!!

undone musk
#

No problem!

swift pumice
#

That worked, thank you so much!

undone musk
#

No problem. Glad you got it resolved

swift pumice
#

One follow up question, I can see payment links API supports automatic tax rates via "automatic_tax[enabled]"="true"

Is adding specific tax rates supported?

Getting [parameter_unknown] error when I try to plug in "line_items[2][tax_rates][]"="{{TAX_RATE_ID}}"

tulip rose
#

Good question. Looking in to it.

#

Unfortunately it looks like the Payment Links API does not currently support that. I can raise feedback requesting that feature though I cannot promise it will be added

swift pumice
#

got it, thank you so much for circling back on this! Fingers crossed for the future addition.

swift pumice
#

One more follow up here in case anyone else is struggling with this:
We were essentially trying to use the tax rate as a service fee generator... What I did instead was create a product called service fee and now I'm generating a new price for that product for every payment link and just plugging that in as a regular line item.