Transactions

Get Single Transaction Details

GET
/v1/payments/transactions/{transactionId}

This API will allow you to get a single transactions with a transactionsId if it exists.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

transactionId*string

Transaction Id that you received on fetching transaction details using requestId or transactionRequestId.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/payments/transactions/392683d5-108d-4610-94cf-88bbb46990c9"

Student loans 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,    "statusHistory": [      {        "status": "SCHEDULING",        "updatedOn": 1788460240854      },      {        "status": "PROCESSING",        "updatedOn": 1788461132727      },      {        "status": "SCHEDULED",        "updatedOn": 1788461133153      },      {        "status": "APPLIED",        "updatedOn": 1788545013332      }    ]  }}