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
orderIdPayPal order ID
userIdUser who made payment
amountPayment amount
currencyPayment currency code
statusTransaction status
createdAtOrder creation timestamp
updatedAtLast update timestamp
Status Codes
Transaction Status Values
0Pending - Order created, awaiting capture1Completed - Payment captured successfully-1Failed - 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.