Transactions
Look Up Transactions by Creation Window
This API will allow you to get the current status of all transactions created after a timestamp, optionally filtered by status. Results are returned in pages of 100. Pass the nextCursor from a response as cursor to get the next page.
Authorization
bearerAuth AuthorizationBearer <token>
Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.
In: header
Query Parameters
createdAfter?number
Lower bound on transaction creation time, epoch milliseconds, within the last 31 days. Required unless cursor is supplied.
statuses?array<>
Comma-separated statuses to include. Omit for all statuses.
cursor?string
nextCursor from a previous response. When present, the other parameters are ignored.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/payments/transactions/lookup?statuses=FAILED%2CCANCELLED%2CRETURNED"Transactions currently in status RETURNED
{ "status": { "code": 200, "desc": "success" }, "data": [ { "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49d5", "amount": 100, "status": "RETURNED", "statusComment": "Txn returned by servicer side", "paymentStatusCode": "200", "settlementAccountId": "a7b8c9d0-e1f2-3456-abcd-567890123456", "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b655", "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed695", "payerId": "33ab228a-5afc-4993-b976-de8f522062c0", "userId": "75d84539-78e7-492d-9394-8aa63beb7146", "useOfFunds": { "creditCardId": "34a28279-b0df-4b6f-ad26-50cbef08f417", "percentage": 100, "liabilityType": "CREDIT_CARD" }, "scheduleTs": 1788460240854, "createdOn": 1788460240854, "updatedOn": 1788545013332 } ], "nextCursor": null}
