Transactions
Retrieve Transaction
tolt.js
Guides / How To
Customers
Clicks
Commissions
Transactions
Transactions
Retrieve Transaction
This endpoint retrieves a transaction.
GET
/
v1
/
transactions
/
:id
curl -X GET 'https://api.tolt.com/v1/transactions/txn_eK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>'
{
"success": true,
"data": {
"id": "txn_eK9bzRGn46BhVgNFHD6fDgXW",
"amount": 9999,
"customer_id": "cust_dK9bzRGn46BhVgNFHD6fDgXW",
"billing_type": "subscription",
"charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
"click_id": "clk_7mbzRGn46BhVgNFHD6fDgXW",
"source": "stripe",
"interval": "month",
"created_at": "2025-01-15T14:30:00.000Z",
"updated_at": "2025-01-15T14:30:00.000Z",
"program_id": "prg_YRsbPDAKhWfdqJbFACheh",
"partner_id": "part_ER3mfYNL9ci7sFaJazAv2"
}
}
Base URL https://api.tolt.com
Query Parameters
Specify which related objects to include in the response. Valid values are ‘customer’, ‘program’, and ‘partner’. Use expand[]=customer, expand[]=program, or expand[]=partner to include the related objects.
Response
Whether the request was successful
Unique identifier for the transaction
Transaction amount in cents
ID of the associated customer
The billing type
Associated charge identifier
Associated click identifier
ISO 8601 timestamp of creation
Source of the transaction
Subscription interval
Program ID the transaction belongs to
Unique identifier for the partner
curl -X GET 'https://api.tolt.com/v1/transactions/txn_eK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>'
{
"success": true,
"data": {
"id": "txn_eK9bzRGn46BhVgNFHD6fDgXW",
"amount": 9999,
"customer_id": "cust_dK9bzRGn46BhVgNFHD6fDgXW",
"billing_type": "subscription",
"charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
"click_id": "clk_7mbzRGn46BhVgNFHD6fDgXW",
"source": "stripe",
"interval": "month",
"created_at": "2025-01-15T14:30:00.000Z",
"updated_at": "2025-01-15T14:30:00.000Z",
"program_id": "prg_YRsbPDAKhWfdqJbFACheh",
"partner_id": "part_ER3mfYNL9ci7sFaJazAv2"
}
}
curl -X GET 'https://api.tolt.com/v1/transactions/txn_eK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>'
{
"success": true,
"data": {
"id": "txn_eK9bzRGn46BhVgNFHD6fDgXW",
"amount": 9999,
"customer_id": "cust_dK9bzRGn46BhVgNFHD6fDgXW",
"billing_type": "subscription",
"charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
"click_id": "clk_7mbzRGn46BhVgNFHD6fDgXW",
"source": "stripe",
"interval": "month",
"created_at": "2025-01-15T14:30:00.000Z",
"updated_at": "2025-01-15T14:30:00.000Z",
"program_id": "prg_YRsbPDAKhWfdqJbFACheh",
"partner_id": "part_ER3mfYNL9ci7sFaJazAv2"
}
}