List PaymentIntents
Returns the project's PaymentIntents, newest first. Page with `starting_after` = the last `id` of the previous page while `has_more` is `true`.
GET
/v1/payment_intentsAuthorization
bearerAuth AuthorizationBearer <token>
Secret API key as a bearer token: Authorization: Bearer sk_live_….
Test keys (sk_test_…) are refused with 401 test_mode_unavailable.
Keys are issued per project in the dashboard. Never expose a secret
key in browser or mobile code.
In: header
Query Parameters
limit?integer
Page size, 1–100. Default 10. Anything else returns 400 parameter_invalid.
starting_after?string
Cursor — the id of the last object on the previous page; returns the objects after it.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/payment_intents"{
"object": "list",
"url": "/v1/payment_intents",
"has_more": false,
"data": [
{
"id": "pi_k3vq7m2xw5nbt4rj6yhc2dpa7e",
"object": "payment_intent",
"amount": 15000,
"currency": "MNT",
"description": "Order #1001",
"status": "succeeded",
"client_secret": "cs_n2xk5q7mw3tz4vbr6jcy2gfa7m",
"automatic_operator": true,
"allowed_operators": [],
"selected_operator": "op_example",
"next_action": null,
"metadata": {
"order_id": "1001"
},
"livemode": true,
"created": 1791774000,
"expires_at": 1791774900
}
]
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_missing",
"message": "amount is required",
"param": "amount",
"request_id": "req_8f3a1c9e5b7d2f4a6c0e9b1d"
}
}{
"error": {
"type": "api_error",
"code": "test_mode_unavailable",
"message": "test keys are not accepted by this API; use a live secret key",
"request_id": "req_8f3a1c9e5b7d2f4a6c0e9b1d"
}
}