Retrieve details of a specific payment, including its status, the rail used, and timestamps.
Your merchant identifier.
Path Parameters
The unique ID of the transaction to retrieve.
Response
The unique identifier for the transaction.
The status of the transaction (succeeded, failed, pending).
The transaction amount in cents (USD).
The currency code, e.g., "usd".
The rail used for settlement (stripe or base).
A hosted URL to view the transaction receipt, if applicable.
curl -X GET https://api.delegare.dev/v1/payments/txn_123456789/receipt \
-H "X-Delegare-Merchant-Id: your_merchant_id" \
-H "X-Delegare-Api-Key: your_api_key"
{
"id": "txn_123456789",
"status": "succeeded",
"amountCents": 500,
"currency": "usd",
"rail": "stripe",
"receiptUrl": "https://receipts.delegare.dev/txn_123456789"
}