#Sanskar
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
here is the request id : req_Nw4mMpTxZsyieB
This request is succeeded, share with me ID of request that failed
No, that's not the ID.
so what id you are talking about
The ID of request that failed
This is what I am getting in last reposne if the id request req_cTBAOQNkfXXyoo
var customer = await stripe.customers.create();
console.log("request id ",customer.lastResponse.requestId);
https://dashboard.stripe.com/test/logs/req_cTBAOQNkfXXyoo you can view this log in your Dashboard as well, and you see that the response code is 200, which mean success.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_UbLCDHBjJZQY78
there is the request id what i found from a Dashboard that are failed giving me an error no such price {{price_id}}
OK, I can see the error code.
ok
It failed because the request was made in the connected account, but the price object was created in platform. Therefore it complains about resource_missing
You should create a price in the connected account, and use the newly created price to create a payment link
This is the way i am creating a price const price = await stripe.prices.create({
product: product.id,
unit_amount: product_price,
currency: currency,
// recurring: {interval: 'month'},
});
can you please look that its correct or more thing i need to mention for creating a price
without created a platform price
You should specify a stripe_account in the request.
By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)
const paymentLink = await stripe.paymentLinks.create({
line_items: [
{
price: price.id,
quantity: 1,
},
],
}, {
stripeAccount: account_number,
})
I did the same thing as u said i mentioned earlier in payment link stripped_account
You also need to set a stripe_account header when you create a price.
You means to say that I need to mention the account number while creating the price
Yes, you need to set a stripe_account header when create a price
But how? that gonna happen. In documentation there is no where that can we mention the stripped account while creating the price
You are creating a payment link on a connected account, am I right?