APIPresale Payment
Get PayPal Transactions For Presale Orders
Retrieve PayPal payment transaction history
PayPal Transaction History
View all PayPal payment transactions for presale orders
Query
Parameters
This query requires no parameters - returns all PayPal transactions
Return Value
📦
Returns Array of PayPalTransaction Objects
List of all PayPal payment transactions with complete details
Example
💻
Usage Example
Get all PayPal transactions
query {
getPayPalTransactions {
orderId
userId
amount
currency
status
createdAt
updatedAt
}
}
Response Example
📤
Sample Response
List of transactions
{
"data": {
"getPayPalTransactions": [
{
"orderId": "5O190127TN364715T",
"userId": "user_abc123",
"amount": 500.0,
"currency": "USD",
"status": 1,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:32:00Z"
}
]
}
}
Transaction Fields
orderId
PayPal order ID
userId
User who made payment
amount
Payment amount
currency
Payment currency code
status
Transaction status
createdAt
Order creation timestamp
updatedAt
Last update timestamp
Status Codes
Transaction Status Values
0
Pending - Order created, awaiting capture1
Completed - Payment captured successfully-1
Failed - Payment failed or cancelled💡
Best Practice
Use orderId to reconcile payments with PayPal records. Filter by status to identify incomplete transactions. Track updatedAt to monitor transaction lifecycle. Store currency information for multi-currency support and reporting.