Sweeppea API v3

Fetch Wallet Transactions

Retrieve all wallet transactions for the authenticated user. Returns transaction history including credits, debits, and transaction details.

POST https://api-v3.sweeppea.com/wallet/fetchtransactions

Description

This endpoint retrieves all wallet transactions associated with the authenticated user. Transactions are returned in descending order by creation date, including both credit and debit transactions with full details.

Authentication

This endpoint requires Bearer token authentication via the Authorization header.

Code Examples

curl -X POST "https://api-v3.sweeppea.com/wallet/fetchtransactions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

{
  "Response": true,
  "Data": {
    "TotalTransactions": 15,
    "Transactions": [
      {
        "TransactionID": "987654321012",
        "Description": "Payment from Entry Page",
        "CCType": "Visa",
        "CCLastFourDigits": "4532",
        "TransactionType": "credit",
        "Amount": "5.00",
        "ErrorCode": null,
        "Views": 0,
        "IsSandboxTransaction": false,
        "VoidedByAdmin": false,
        "Status": true,
        "CreationDate": "2025-01-15T14:30:00.000Z",
        "Notes": [],
        "Files": []
      }
    ]
  }
}

Error Responses

{
  "Response": false,
  "Message": "Missing or invalid Bearer token. Send your API token in the Authorization header as: Authorization: Bearer YOUR_API_TOKEN",
  "Code": 401
}
{
  "Response": false,
  "Message": "Invalid API token. It does not match any account.",
  "Code": 403
}
{
  "Response": false,
  "Message": "Internal server error. Please try again; if it persists, contact support with the time of this request.",
  "Code": 500
}
© Sweeppea. All rights reserved.