#quest_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1254742675077206078
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello. This is the picture
In the picture I am using the description as a quick way to see what record my look is currently on. The default get seems to fetch the most recent record so I am unsure why a record is skipped when there is no issues with it
Can you share the skipped Paymentintent Id please ?
Could you please share the request Id ?
You are probably making the call using a Connected Account's APi key and not the platform
but if I put in a different record it does work
Could you please share the requestId of this APi call ?
What Account Id are you using ?
do you mean the id of the record. its pi_3MtwBwLkdIwHu7ix28a3tqPa
no account. What you see is all the data i am putting in. That "Standalone" just formats the data into this
wait one second
Is this the Stripe Account Id you are using?
<acct_1M2JTkLkdIwHu7ix>
Sorry, but I need the requestId of this API call.
acct_1Atf0tKWqxTFrzeA
The PaymentIntent pi_3MtwBwLkdIwHu7ix28a3tqPa belongs to the account acct_1M2JTkLkdIwHu7ix and not acct_1Atf0tKWqxTFrzeA
This is test mode record and not live mode.
1 second
Is there a way to copy past all this json response please? the request id is there req_...
ok sorry I put in the wrong id. It does find the record
{"id":"pi_3PSbJiKWqxTFrzeA04denH4L","object":"payment_intent","amount":50000,"amount_capturable":0,"amount_details":{"tip":{}},"amount_received":50000,"application":null,"application_fee_amount":null,"automatic_payment_methods":null,"canceled_at":null,"cancellation_reason":null,"capture_method":"automatic","client_secret":"pi_3PSbJiKWqxTFrzeA04denH4L_secret_LHJo34tiSl1OpRiul0m9SQKpo","confirmation_method":"automatic","created":1718614414,"currency":"eur","customer":"cus_PkcXqnSCp0TVlE","description":"Invoice 3EB2CAF9-0004","invoice":"in_1PST8YKWqxTFrzeAGfiRQao6","last_payment_error":null,"latest_charge":"ch_3PSbJiKWqxTFrzeA0ahIvfj9","livemode":true,"metadata":{},"next_action":null,"on_behalf_of":null,"payment_method":"pm_1PV9TEKWqxTFrzeAAZGKZudR","payment_method_configuration_details":null,"payment_method_options":{"card":{"installments":null,"mandate_options":null,"network":null,"request_three_d_secure":"automatic","setup_future_usage":"off_session"},"sepa_debit":{}},"payment_method_types":["card","sepa_debit"],"processing":null,"receipt_email":"seaearth1@gmail.com","review":null,"setup_future_usage":null,"shipping":null,"source":null,"statement_descriptor":null,"statement_descriptor_suffix":null,"status":"succeeded","transfer_data":null,"transfer_group":null}
here is the json
Can you format that so it's correctly indented please?
Also, the req_xxx ID of the GET request
{
"id": "pi_3PSbJiKWqxTFrzeA04denH4L",
"object": "payment_intent",
"amount": 50000,
"amount_capturable": 0,
"amount_details": {
"tip": {}
},
"amount_received": 50000,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3PSbJiKWqxTFrzeA04denH4L_secret_LHJo34tiSl1OpRiul0m9SQKpo",
"confirmation_method": "automatic",
"created": 1718614414,
"currency": "eur",
"customer": "cus_PkcXqnSCp0TVlE",
"description": "Invoice 3EB2CAF9-0004",
"invoice": "in_1PST8YKWqxTFrzeAGfiRQao6",
"last_payment_error": null,
"latest_charge": "ch_3PSbJiKWqxTFrzeA0ahIvfj9",
"livemode": true,
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1PV9TEKWqxTFrzeAAZGKZudR",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic",
"setup_future_usage": "off_session"
},
"sepa_debit": {}
},
"payment_method_types": ["card", "sepa_debit"],
"processing": null,
"receipt_email": "seaearth1@gmail.com",
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
}
And the req_xxx?
Find help and support for Stripe. Our support site 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.
It's in the response headers, or the Dashboard
Checking
OK, I'm confused. That request is to retrieve a single payment not a list of multiple payments
GET payment_intents?limit=10" is skipping a record. You can see the email in the picture
Where's thisGET /v1/payment_intents?limit=10request and the associated JSON?
ahh ok you want that one 1 second
Yes, I need to see the request and JSON of the problematic request
req_Qb7kwvapSdfKtj
OK, and the JSON. Please format it correctly
OK, and which pi_xxx do you believe is missing from that response?
pi_3PSbJiKWqxTFrzeA04denH4L
IT should be between pi_3PV9XlKWqxTFrzeA0qN1AlRs and pi_3PV98BKWqxTFrzeA1WoOuvUT but is not if we go back what is seen in the payment intent section in Stripe
I suspect this is related to when the payment was created. The API returns objects sorted chronologically by the created timestamp โ the Dashboard is not necessarily a reflection of that (likely uses a different sorting method, when the payment was actually made/confirmed)
In this case, the last object (pi_3PV8hYKWqxTFrzeA1lSWvv8o) in your JSON was created on 1719219400 (Mon Jun 24 2024 08:56:40 GMT+0000)
pi_3PSbJiKWqxTFrzeA04denH4L was created on 1718614414 (Mon Jun 17 2024 08:53:34 GMT+0000)
ok. As long as the data will appear I think this should be fine
Will appear where?
as long as the payment intent record will appear when i fetch the records at some point
I am going to have a script fetch the records created every 3 hours
and store the data in another system so it can be used in reports
Well, it will if you adjust your pagination parameters or pass a specific created range
Otherwise simply listing the 10 most recent created payments it'll likely never appear no