#AQZ-issuing
1 messages ยท Page 1 of 1 (latest)
the approve request you're doing is on the platform account
you need to pass the stripeAccount header
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I used this documentation https://stripe.com/docs/api/issuing/authorizations/approve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Here we should not pass stripe_account header
import stripe
stripe.api_key = "sk_test_51KZa9XAyWO8paU6r3j9lOo1eH98JBQtUqXxlruF7QmsqkreKPqUHmFu73c16V2kPUQ8wx7RuRMVwtPpfd36KKGqs00q7GdLFUC"
stripe.issuing.Authorization.approve(
"iauth_1LQTI5AyWO8paU6ruDf2nXNc",
)
yes this is the case where the platform created the Issuing Card
in your case the issuing card is created with both the Platform secret key and the Stripe Account header of the Connected Account
when you need to access this resource either to retrieve, to decline, to approve, etc. you need to use both keys that were present upon the object creation
so your Secret key (from the stripe.api_key and the stripeAccount header for your connected account)
Ok thanks
let me know if you need any more help
okay