Skip to main content

Get Payment Intent

GET /v1/payment_intents/:id

Overview

Retrieves the details of a specific payment intent using its unique identifier. This endpoint returns the current state of the payment intent.

Authorization

  • Header: Authorization: Bearer sk_test_907...de66
Request Details

Request

curl https://api-prod.paybytoken.io/v1/payment_intents/pay_t24b28nbodnk4icGMyE7 \
-X GET \
-H "Authorization: Bearer sk_test_907...de66"

Request Parameters

ParameterTypeDescription
idstringUnique identifier of the payment intent (e.g., pay_t24b28nbodnk4icGMyE7).
Response Details

Response

The response returns a PaymentIntent object containing details about the payment intent. See Payment Intents Overview for the full object definition.

Example Response

{
"id": "pay_t24b28nbodnk4icGMyE7",
"account_id": "acct_1",
"payer_address": null,
"one_time_address": "0xa1A0340cF7b9326eA4210AB49c17e20e0c32a2FB",
"chain": "base",
"amount": "15.0",
"currency": "USDC",
"amount_received": "0.0",
"description": null,
"metadata": null,
"customer_id": null,
"customer_email": null,
"status": "canceled",
"tx_hash": null,
"created_at": "2025-09-05T13:34:56.000Z",
"updated_at": "2025-09-05T13:45:00.000Z",
"expired_at": "2025-09-05T13:44:56.000Z"
}