GET
/
api
/
v0
/
test-payment
/
{id}
Get payment details by ID
curl --request GET \
  --url https://api.devdraft.ai/api/v0/test-payment/{id} \
  --header 'x-client-secret: <api-key>'
{
  "id": "pay_12345abcdef",
  "amount": 100.5,
  "currency": "USD",
  "status": "succeeded",
  "timestamp": "2023-07-01T12:00:00.000Z"
}

Authorizations

x-client-secret
string
header
required

Your secret API key. Keep this secure and never expose it in client-side code.

Path Parameters

id
string
required

Payment ID

Response

Payment details retrieved successfully

id
string
required

Payment ID

Example:

"pay_12345abcdef"

amount
number
required

The amount charged

Example:

100.5

currency
string
required

The currency code

Example:

"USD"

status
string
required

Payment status

Example:

"succeeded"

timestamp
string
required

Timestamp of the payment

Example:

"2023-07-01T12:00:00.000Z"