Transactions

Get a List of Transactions

GET
/v1/payments/transactions

This API will allow you to get list of the transactions created for a user with a userId or by a requestId or an extRequestId.

Authorization

bearerAuth
AuthorizationBearer <token>

Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.

In: header

Query Parameters

userId?string

User Id of the user towards whom payment was scheduled

requestId?string

Request Id received on creating the payment request

extRequestId?string

External Request Id sent on creating a payment request

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/payments/transactions?userId=75d84539-78e7-492d-9394-8aa63beb7146&requestId=d35b822d-8bde-4d21-bbbe-d8f9c4f5b656&extRequestId=800830ab-950a-4fbd-a8f1-2936680ed69b"

Get Transactions example

{  "status": {    "code": 200,    "desc": "success"  },  "data": [    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49d1",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on servicer side",      "paymentStatusCode": "200",      "settlementAccountId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",      "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b651",      "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed691",      "payerId": "33ab228a-5afc-4993-b976-de8f522062c0",      "userId": "75d84539-78e7-492d-9394-8aa63beb7146",      "useOfFunds": {        "liabilityType": "STUDENT_LOAN",        "loanServicerId": "2b21201a-9865-420a-99fc-9b4de8fefaa6",        "loanAccountId": "039145aa-a3da-4c20-b45c-4ad04e04dcc3",        "percentage": 50,        "loans": [          {            "loanId": "ac9a0e9d-089c-4c73-9843-c9b6a84ca046",            "percentage": 20          },          {            "loanId": "237bd86b-9864-4bb7-a1b9-2ef634299733",            "percentage": 30          },          {            "loanId": "11a5ef84-177f-44af-8161-68abcabbc17b",            "percentage": 50          }        ],        "applyTowardsStatement": false      },      "scheduleTs": 1788460240854,      "createdOn": 1788460240854,      "updatedOn": 1788545013332    },    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49e1",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on servicer side",      "paymentStatusCode": "200",      "paymentTraceNumber": "234567890",      "settlementAccountId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",      "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b662",      "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed682",      "payerId": "33ab228a-5afc-4993-b976-de8f522062c0",      "userId": "75d84539-78e7-492d-9394-8aa63beb7146",      "useOfFunds": {        "studentLoanId": "34a28279-b0df-4b6f-ad26-50cbef08f417",        "percentage": 100,        "liabilityType": "STUDENT_LOAN"      },      "scheduleTs": 1788460240854,      "createdOn": 1788460240854,      "updatedOn": 1788545013332    },    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49e7",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on servicer side",      "paymentStatusCode": "200",      "settlementAccountId": "c3d4e5f6-a7b8-9012-cdef-123456789012",      "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b667",      "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed687",      "payerId": "33ab228a-5afc-4993-b976-de8f522062c0",      "userId": "75d84539-78e7-492d-9394-8aa63beb7146",      "useOfFunds": {        "liabilityType": "STUDENT_LOAN",        "loanServicerId": "2b21201a-9865-420a-99fc-9b4de8fefaa6",        "loanAccountId": "039145aa-a3da-4c20-b45c-4ad04e04dcc3",        "percentage": 100      },      "scheduleTs": 1788460240854,      "createdOn": 1788460240854,      "updatedOn": 1788545013332    },    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49d2",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on servicer side",      "paymentStatusCode": "200",      "settlementAccountId": "d4e5f6a7-b8c9-0123-defa-234567890123",      "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b652",      "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed692",      "payerId": "33ab228a-5afc-4993-b976-de8f522062c0",      "userId": "75d84539-78e7-492d-9394-8aa63beb7146",      "useOfFunds": {        "homeLoanId": "34a28279-b0df-4b6f-ad26-50cbef08f417",        "percentage": 100,        "liabilityType": "HOME_LOAN"      },      "scheduleTs": 1788460240854,      "createdOn": 1788460240854,      "updatedOn": 1788545013332    },    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49d3",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on servicer side",      "paymentStatusCode": "200",      "settlementAccountId": "e5f6a7b8-c9d0-1234-efab-345678901234",      "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b653",      "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed693",      "payerId": "33ab228a-5afc-4993-b976-de8f522062c0",      "userId": "75d84539-78e7-492d-9394-8aa63beb7146",      "useOfFunds": {        "autoLoanId": "34a28279-b0df-4b6f-ad26-50cbef08f417",        "percentage": 100,        "liabilityType": "AUTO_LOAN"      },      "scheduleTs": 1788460240854,      "createdOn": 1788460240854,      "updatedOn": 1788545013332    },    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49d4",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on servicer side",      "paymentStatusCode": "200",      "settlementAccountId": "f6a7b8c9-d0e1-2345-fabc-456789012345",      "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b654",      "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed694",      "payerId": "33ab228a-5afc-4993-b976-de8f522062c0",      "userId": "75d84539-78e7-492d-9394-8aa63beb7146",      "useOfFunds": {        "personalLoanId": "34a28279-b0df-4b6f-ad26-50cbef08f417",        "percentage": 100,        "liabilityType": "PERSONAL_LOAN"      },      "scheduleTs": 1788460240854,      "createdOn": 1788460240854,      "updatedOn": 1788545013332    },    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49d5",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on 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    },    {      "transactionId": "5d5a1916-5d75-49ab-9176-a65c6a2d49d6",      "amount": 100,      "status": "APPLIED",      "statusComment": "Txn successfully applied on servicer side",      "paymentStatusCode": "200",      "requestId": "d35b822d-8bde-4d21-bbbe-d8f9c4f5b656",      "extRequestId": "800830ab-950a-4fbd-a8f1-2936680ed696",      "payerId": "33ab228a-5afc-4993-b976-de8f522062c0",      "userId": "75d84539-78e7-492d-9394-8aa63beb7146",      "useOfFunds": {},      "scheduleTs": 1788460240854,      "createdOn": 1788460240854,      "updatedOn": 1788545013332    }  ]}