Skip to main content
GET
/
payment_intents
/
{id}
Retrieve a PaymentIntent
curl --request GET \
  --url https://sandbox.api.hixbe.com/payment/payment_intents/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Hixbe-Version: <hixbe-version>'
{
  "id": "pi_1Hh1X2AbCdEf",
  "amount": 1500,
  "currency": "BDT",
  "status": "requires_payment_method",
  "client_secret": "cs_test_abc",
  "object": "payment_intent",
  "capture_method": "automatic",
  "customer": "cus_123",
  "payment_method": "pm_card_abc",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "charges": [
    {
      "id": "ch_1Hh2Z3AbCdEf",
      "amount": 1500,
      "currency": "BDT",
      "status": "succeeded",
      "payment_method": "<string>",
      "receipt_url": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use your secret API key. Example: Authorization: Bearer sk_test_xxx

Headers

Hixbe-Version
string
default:2026-01-01
required

API version header. Use '2026-01-01' for the latest version.

X-Request-Id
string

Optional client-provided request id for tracing.

Path Parameters

id
string
required

PaymentIntent id (pi_...)

Response

PaymentIntent

Represents an intent to collect payment from a customer. Use confirm to finalize.

id
string
required
Example:

"pi_1Hh1X2AbCdEf"

amount
integer
required

Amount in smallest currency unit

Example:

1500

currency
string
required
Example:

"BDT"

status
enum<string>
required
Available options:
requires_payment_method,
requires_confirmation,
processing,
succeeded,
requires_action,
canceled
Example:

"requires_payment_method"

client_secret
string
required

Client-side secret used by frontends

Example:

"cs_test_abc"

object
string
Example:

"payment_intent"

capture_method
enum<string>
Available options:
automatic,
manual
Example:

"automatic"

customer
string | null
Example:

"cus_123"

payment_method
string | null
Example:

"pm_card_abc"

metadata
object
created_at
string<date-time>
updated_at
string<date-time>
charges
object[]