Skip to content

Get a transaction

Authorization: Bearer <API token>, required.

Name Type Description
id integer Internal transaction ID (transaction_id in webhooks).
Terminal window
curl "https://api.creditcore.io/api/transaction/99101" \
-H "Authorization: Bearer $CREDITCORE_API_TOKEN"
Field Type Description
id integer Internal transaction ID.
accountId integer Your account ID.
timestamp datetime When the transaction was processed.
success boolean Whether the gateway approved it.
type string Transaction type.
amount number Amount. Negative for refunds.
productId integer Product.
transactionId integer Gateway transaction ID.
midId integer Merchant account that processed it.
midName string Merchant account name.
currencyId integer Currency identifier.
refundStatus string Refund status.
status string Transaction status, e.g. APPROVED, DECLINED.
paymentMethod string Card brand, e.g. visa.
200 OK
{
"id": 99101,
"accountId": 40,
"timestamp": "2026-09-29T14:03:12.456",
"success": true,
"type": "SUBSCRIPTION_START",
"amount": 9.99,
"productId": 12,
"transactionId": 10987654321,
"midId": 7,
"midName": "MID-EU-01",
"currencyId": 2,
"refundStatus": "REFUNDABLE",
"status": "APPROVED",
"paymentMethod": "visa"
}

If the transaction doesn’t exist, the response is 200 with an empty body.