- 接入说明
- Introduction
- Webhook接入
- Webhook Introduction
- Test Card
- Embedded Checkout
- Checkout
- PaymentIntents
- Charges
- Customers
- Events
- Refunds
Retrieve PaymentIntent
GET
/v1/payment_intents/{id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/payment_intents/'
Responses
🟢200成功
application/json
Body
code
string
required
msg
string
required
data
object
required
paymentIntentId
string
required
clientReferenceId
string
自定义id
currency
string
币种
amount
number
金额
type
enum<string>
支付类型
Allowed values:
cardpaypalstripe
paymentMethodId
string
支付方式id
paymentMethodOptions
object
支付方式特殊配置
customerId
string
optional
created
integer
创建时间
confirmAt
integer
完成时间
canceledAt
integer
取消时间
status
enum<string>
状态
Allowed values:
requires_payment_methodrequires_actionsucceededcanceled
amountRefunded
number
已退款金额
latestCharge
object (Charge)
optional
Example
{
"code": "string",
"msg": "string",
"data": {
"paymentIntentId": "string",
"clientReferenceId": "string",
"currency": "string",
"amount": 0,
"type": "card",
"paymentMethodId": "string",
"paymentMethodOptions": {
"card": {
"setupFutureUsage": "on_session"
}
},
"customerId": "string",
"created": 0,
"confirmAt": 0,
"canceledAt": 0,
"status": "requires_payment_method",
"amountRefunded": 0,
"latestCharge": {
"chargeId": "string",
"paymentIntentId": "string",
"clientReferenceId": "string",
"amount": 0,
"currency": "string",
"paymentMethodId": "string",
"paymentMethodDetails": {
"type": "card",
"card": {
"email": "string",
"name": "string",
"country": "string",
"brand": "string",
"expYear": 0,
"expMonth": 0,
"front6": "string",
"last4": "string"
}
},
"failureCode": "string",
"failureMessage": "string",
"status": "succeeded",
"created": 0
}
}
}
Modified at 2025-06-25 11:12:56