Skip to main content

Fetch Order Details / History

Retrieve detailed information about orders and customer activities to display purchase history, transaction details, and loyalty activity.

Order Transactions

Get all transactions associated with a specific order:
curl -X GET 'https://api.gameball.co/api/v4.0/integrations/orders/{orderId}/transactions' \
  -H 'APIKey: YOUR_API_KEY' \
  -H 'SecretKey: YOUR_SECRET_KEY'
{
  "orderId": "ORD000123",
  "transactions": [
    {
      "transactionId": "TXN001",
      "type": "points_earned",
      "points": 9.5,
      "timestamp": "2025-10-19T12:10:00Z"
    },
    {
      "transactionId": "TXN002",
      "type": "points_redeemed",
      "points": 100,
      "timestamp": "2025-10-19T12:10:00Z"
    }
  ]
}

Customer Activities

Get the complete purchase history and activities for a customer:
curl -X GET 'https://api.gameball.co/api/v4.0/integrations/customers/{customerId}/activities' \
  -H 'APIKey: YOUR_API_KEY' \
  -H 'SecretKey: YOUR_SECRET_KEY'
{
  "customerId": "12345",
  "activities": [
    {
      "activityId": "ACT001",
      "type": "order",
      "orderId": "ORD000123",
      "pointsEarned": 9.5,
      "pointsRedeemed": 100,
      "date": "2025-10-19T12:10:00Z"
    },
    {
      "activityId": "ACT002",
      "type": "order",
      "orderId": "ORD000122",
      "pointsEarned": 15.0,
      "date": "2025-10-18T14:30:00Z"
    }
  ]
}

Use Cases

  • Display Purchase History: Show customers their recent orders and points earned
  • Transaction Verification: Verify order details and point transactions
  • Customer Support: Help resolve disputes or questions about transactions
  • Analytics: Track customer behavior and loyalty program engagement

Key Takeaways for Developers

  • Use order transactions endpoint to get detailed breakdown of a specific order
  • Use customer activities endpoint to show complete purchase history
  • Both endpoints support pagination for large result sets
  • Transaction details include timestamps, point amounts, and transaction types

Order Transactions API

Complete API reference for order transactions

Customer Activities API

Complete API reference for customer activities