#quest_api

1 messages ยท Page 1 of 1 (latest)

weak bearBOT
#

๐Ÿ‘‹ 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.

noble silo
#

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

twin jasper
#

Can you share the skipped Paymentintent Id please ?

twin jasper
#

And you can retrieve it via API ?

noble silo
#

Cant fetch it

#

but

twin jasper
#

Could you please share the request Id ?

#

You are probably making the call using a Connected Account's APi key and not the platform

noble silo
#

but if I put in a different record it does work

twin jasper
# noble silo

Could you please share the requestId of this APi call ?

#

What Account Id are you using ?

noble silo
noble silo
#

wait one second

twin jasper
#

Is this the Stripe Account Id you are using?
<acct_1M2JTkLkdIwHu7ix>

noble silo
#

This is all in live mode not test

#

ok found the account id

twin jasper
noble silo
#

acct_1Atf0tKWqxTFrzeA

twin jasper
#

The PaymentIntent pi_3MtwBwLkdIwHu7ix28a3tqPa belongs to the account acct_1M2JTkLkdIwHu7ix and not acct_1Atf0tKWqxTFrzeA

twin jasper
noble silo
#

1 second

twin jasper
# noble silo

Is there a way to copy past all this json response please? the request id is there req_...

noble silo
#

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

weak bearBOT
verbal adder
#

Can you format that so it's correctly indented please?

#

Also, the req_xxx ID of the GET request

noble silo
#

{
"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
}

verbal adder
#

And the req_xxx?

noble silo
#

how do I find this?

#

we use a stripe api key to make these requests

verbal adder
verbal adder
noble silo
#

ahh ok 1 second

#

sorry for the delay

#

req_zpNBl5djlAWJKI

verbal adder
#

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 this GET /v1/payment_intents?limit=10 request and the associated JSON?

noble silo
#

ahh ok you want that one 1 second

verbal adder
#

Yes, I need to see the request and JSON of the problematic request

noble silo
#

req_Qb7kwvapSdfKtj

verbal adder
#

OK, and the JSON. Please format it correctly

noble silo
verbal adder
#

OK, and which pi_xxx do you believe is missing from that response?

noble silo
#

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

verbal adder
#

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)

noble silo
#

ok. As long as the data will appear I think this should be fine

verbal adder
#

Will appear where?

noble silo
#

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

verbal adder
#

Otherwise simply listing the 10 most recent created payments it'll likely never appear no

noble silo
#

I need need to have a static varaibles for this url so I am thinking to fetch the last 100 records

#

ok I think I have everything I need. Thanks for the help