Api reference
Get transaction by ID
Retrieve a single transaction by its ID.
Related endpoints
GET /transactions— List transactions
Common errors
401 unauthenticated— missing, malformed, or revoked API key.404 resource_missing— the referenced resource does not exist or is not visible to your key.
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Path Parameters
id*string
Transaction UUID
Format
uuidResponse Body
application/json
application/json
application/json
curl "https://api.revkeen.com/v2/transactions/00000000-0000-0000-0000-000000000000" \ -H "x-api-key: $REVKEEN_API_KEY"{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"object": "transaction",
"type": "sale",
"status": "pending",
"invoice_id": "f4c4edb8-11e0-4b33-bcc1-482dc59ebb32",
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"parent_transaction_id": "2862f816-fb62-4845-833b-6951bbef56b3",
"currency": "string",
"amount": 0,
"amount_refunded": 0,
"gateway": "string",
"gateway_transaction_id": "string",
"gateway_response_code": "string",
"gateway_response_text": "string",
"payment_method_type": "string",
"card_brand": "string",
"card_last_four": "string",
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
}{
"error": "string"
}{
"error": "string"
}