API referencePayments
Retrieve a payment
GET
bearerAuthheader
AuthorizationBearer <token>A secret key, sk_test_… or sk_live_….
id*stringThe object id.
Success.
application/json- response
id*stringobject*stringlivemode*booleanstatus*stringValue in
"created""pending""succeeded""failed""canceled""partially_refunded""refunded""disputed""charged_back"amount*integerAmount in minor units (cents for USD).
amount_refunded*integeramount_tax*integercustomer*string|nullcurrency*stringThree-letter ISO 4217 code, uppercase.
fee*|RunePay's fee in minor units, once known.
description*string|nullcustomer_email*string|nullmetadata*Your own key-value strings, returned as sent.
checkout_session*|The checkout session that created the payment.
card*|nulldecline_code*string|nulldecline_message*string|nulloutcome*|nullavailable_on*|When the funds become available, once settled.
created*integerUnix timestamp in seconds.
curl -X GET 'https://runepay.co/api/v1/payments/string' \ -H 'Authorization: Bearer sk_test_...'Example Response
{ "id": "pay_01KA4Y0Z9V3T6N8Q2W5E7R1T3Y", "object": "payment", "livemode": false, "status": "succeeded", "amount": 1999, "amount_refunded": 0, "amount_tax": 0, "customer": null, "currency": "USD", "fee": 88, "description": "Pro plan, 1 month", "customer_email": "buyer@example.com", "metadata": { "order_id": "1042" }, "checkout_session": "cs_01KA4XZY8T2R5M7P1Q4W6E8R0T", "card": { "brand": "visa", "last4": "4242" }, "decline_code": null, "decline_message": null, "outcome": { "risk_level": "normal", "risk_score": 12 }, "available_on": 1767830400, "created": 1767225600}