curl --request GET \
--url https://api.rootfi.dev/v4/ecommerce/transactions/{id} \
--header 'api_key: <api-key>'{
"rootfi_id": 8001,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "pay_shopify_001",
"type": "PAYMENT",
"order_id": "ord_shopify_001",
"contact_id": "cus_001",
"currency_id": "USD",
"amount": 97.19,
"status": "PAID",
"payment_method_type": "CARD",
"gateway": "shopify_payments",
"gateway_transaction_id": "gid://shopify/Transaction/12345",
"original_transaction_id": null,
"description": "Payment for order ORD-2024-001",
"reason": null,
"created_at": "2024-01-22T05:07:31.465Z",
"updated_at": "2024-01-22T05:07:31.000Z"
}Retrieve a specific transaction by its ID.
curl --request GET \
--url https://api.rootfi.dev/v4/ecommerce/transactions/{id} \
--header 'api_key: <api-key>'{
"rootfi_id": 8001,
"rootfi_deleted_at": null,
"rootfi_created_at": "2024-01-22T05:07:31.465Z",
"rootfi_updated_at": "2024-01-22T05:07:31.000Z",
"rootfi_company_id": 1089,
"platform_id": "pay_shopify_001",
"type": "PAYMENT",
"order_id": "ord_shopify_001",
"contact_id": "cus_001",
"currency_id": "USD",
"amount": 97.19,
"status": "PAID",
"payment_method_type": "CARD",
"gateway": "shopify_payments",
"gateway_transaction_id": "gid://shopify/Transaction/12345",
"original_transaction_id": null,
"description": "Payment for order ORD-2024-001",
"reason": null,
"created_at": "2024-01-22T05:07:31.465Z",
"updated_at": "2024-01-22T05:07:31.000Z"
}| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The rootfi_id or platform_id of the transaction to retrieve |
The rootfi_id or platform_id of the transaction
V4 Transaction object - unified model for payments, refunds, and chargebacks
The unique ID we assign for that data's information
157
The date at which RootFi first synced this data
"2024-01-22T05:07:31.465Z"
The latest date at which RootFi updated this data
"2024-01-22T05:07:31.000Z"
The ID of the company in the accounting platform
1089
An unique custom RootFi ID made from platform's unique_id.
"123456"
The date at which the data was deleted in the accounting platform
The ID of the data in the accounting platform.
A JSON containing fields that you can directly get from the accounting platform.
The hash of the data
Type of transaction (PAYMENT, REFUND, CREDIT_NOTE, etc.)
PAYMENT, REFUND, CREDIT_NOTE, FEE, CHARGEBACK, PAYOUT, ADJUSTMENT Reference to the associated Order
Reference to the Contact
ISO 4217 currency code (e.g., "USD", "EUR")
Transaction amount (always positive, use type to determine direction)
Current status of the transaction
DRAFT, REQUIRES_ACTION, PENDING, AUTHORIZED, PAID, FAILED, CANCELED, REFUNDED Payment method used for this transaction
CARD, BANK_TRANSFER, WIRE_TRANSFER, PAYPAL, APPLE_PAY, GOOGLE_PAY, CHECK, CASH, CRYPTO, OTHER, UNKNOWN Payment processor or gateway name (e.g., "shopify", "stripe")
Transaction ID from the payment gateway
For refunds, reference to the original payment transaction
Human-readable description of the transaction
Standardized reason code for the transaction (primarily used for refunds, credit notes, and disputes)
CUSTOMER_REQUEST, DUPLICATE, FRAUD, QUALITY_ISSUE, BILLING_ERROR, LOYALTY_DISCOUNT, PROMOTIONAL, ADJUSTMENT, OTHER Original transaction timestamp from platform (ISO 8601)
Last update timestamp from platform (ISO 8601)