Skip to main content

Retrieve Payment

Introduction

Retrieve Payment

Interface

GET /v1/payments/:payment_id

Request Params

N/A

Response Params

Response Example

200 success:

{
"id": "pm_CqH04O4iXDi1DKCqPKnD8qf1",
"object": "payment",
"payment_method": "alipay_cn",
"terminal_type": "web",
"time_created": "2022-10-11T14:12:02+08:00",
"time_paid": "2022-10-11T14:12:04+08:00",
"time_expired": null,
"livemode": true,
"reference": null,
"source": "subscription",
"source_id": "sub_K8yjTK1uL8aTS0K4",
"customer_id": "cst_mX9Cy5nnr1eTOarr",
"currency": "CNY",
"currency_local": "CNY",
"amount": "0.04",
"amount_paid": "0.04",
"amount_refunded": "0.00",
"amount_local_paid": "0.04",
"failure_message": null,
"failure_code": null,
"gateway_transaction_id": null,
"status": "paid",
"description": null,
"action": {},
"metadata": {},
"extra": {}
}