TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Get a payment by ID

GEThttps://api.testingapis.com/api/Payments/{id}Sign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)Payment ID (1-12 for the seed payments).

Responses

200
The payment.
404
No payment with that ID.

Example

Request
curl -X GET "https://api.testingapis.com/api/Payments/1" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "id": 1,
  "userId": 101,
  "orderId": 1,
  "amount": 249.99,
  "currency": "USD",
  "method": "card",
  "status": "succeeded",
  "description": "Order #1 — headphones",
  "cardLast4": "4242",
  "createdAt": "2025-07-01T10:15:00Z",
  "refundedAt": null
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.