سرد جميع نوايا الدفع
تُرجع قائمة بنوايا الدفع.
GET https://api.stripe.com/v1/payment_intents
أمثلة
مثال على cURL:
cURL
curl -X GET https://api.stripe.com/v1/payment_intents \
-u <YOUR_SECRET_KEY>:
الردود
تُرجع الاستجابات رموزًا قياسية.
200: OK
Response
{
"object": "list",
"data": [
{
"id": "pi_1234567890",
"object": "payment_intent",
"amount": 1000,
"currency": "usd",
"status": "requires_confirmation"
}
],
"has_more": false,
"url": "/v1/payment_intents"
}
استجابات الأخطاء
400: Bad Request
Response
{
"error": {
"message": "If passing an array with explicit keys (e.g. foo[0]=a&foo[1]=b) instead of as an array (e.g. foo[]=a&foo[]=b), the keys must be numeric and sequential starting from 0. You passed the keys `1`, we expected to have a key with the value `0`.",
"param": "expand",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_kCeAL5FAly5bkh?t=1734734555",
"type": "invalid_request_error"
}
}
401: Unauthorized
Response
{
"error": {
"type": "invalid_request_error",
"message": "Invalid API Key provided: sk_test_********************1234"
}
}
المعلمات
معلمات الاستعلام
| المعلمة | النوع | الوصف |
|---|---|---|
limit | عدد صحيح | يحدد الحد الأقصى لعدد السجلات في الاستجابة. أدخل عددًا صحيحًا من 1 إلى 100 (القيمة الافتراضية: 10). |
starting_after | سلسلة نصية | مؤشر يُستخدم في ترقيم الصفحات. starting_after هو معرّف كائن يحدد مكانك في القائمة. |
ending_before | سلسلة نصية | مؤشر يُستخدم في ترقيم الصفحات. ending_before هو معرّف كائن يحدد مكانك في القائمة. |
expand[] | مصفوفة سلاسل نصية | يحدد كائنات الاستجابة المتداخلة لإثرائها وإرجاعها بشكل مضمن. |