NYYU Logo
APIPresale Payment

Get Stripe Transaction For Presale Orders

Retrieve Stripe payment transaction history

Stripe Transaction History

View all Stripe payment transactions for presale orders

Query

📊
getStripeTransactions
List all Stripe transactions

Schema

getStripeTransactions: [StripeTransaction]

Parameters

This query requires no parameters - returns all Stripe transactions

Return Value

📦
Returns Array of StripeTransaction Objects

List of all Stripe payment transactions with complete details

Example

💻
Usage Example
Get all Stripe transactions
query {
  getStripeTransactions {
    roundId
    userId
    paymentIntentId
    amount
    status
    createdAt
  }
}

Response Example

📤
Sample Response
List of transactions
{
  "data": {
    "getStripeTransactions": [
      {
        "roundId": "1",
        "userId": "user_abc123",
        "paymentIntentId": "pi_1Fxxxxx",
        "amount": 500.0,
        "status": 1,
        "createdAt": 1634567890
      }
    ]
  }
}

Transaction Fields

roundId
Presale round identifier
userId
User who made payment
paymentIntentId
Stripe payment intent ID
amount
Payment amount in USD
status
Transaction status code
createdAt
Unix timestamp of creation

Status Codes

Transaction Status Values
0Pending - Payment intent created, awaiting confirmation
1Completed - Payment successfully processed
-1Failed - Payment failed or declined
💡
Best Practice

Use paymentIntentId to reconcile with Stripe dashboard. Filter by roundId for presale-specific reporting. Monitor status field to identify failed payments requiring retry. Convert createdAt timestamp for user-friendly date displays.