Payment Requests

Get Single Payment Details

GET
/v1/payments/requests/{requestId}

This API will allow you to get a single Payment request with a provided requestId 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

requestId*string

Spinwheel generated requestId of the payment request.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/payments/requests/12c9d6e8-c87b-415e-94e2-15367975218a"

One time Student Loan Allocation Payment Request

{  "status": {    "code": 200,    "desc": "success"  },  "data": {    "extRequestId": "12c9d6e8-c87b-415e-94e2-15367975218b",    "amount": 100,    "payerId": "12c9d6e8-c87b-415e-94e2-15367975218d",    "userId": "ac89d6e8-c87b-415e-94e2-15367975218d",    "tag": "Contribution",    "requestType": "ONE_TIME",    "useOfFunds": {      "allocation": [        {          "studentLoanId": "34a28279-b0df-4b6f-ad26-50cbef08f417",          "percentage": 100,          "liabilityType": "STUDENT_LOAN"        }      ]    },    "settlementSpeed": "SAME_DAY",    "scheduleTs": 1636250123000,    "requestId": "fd97c6e8-c87b-415e-94e2-15367975218d",    "settlementAccountId": "52c72bfb-fda2-44f1-8451-6a1d3a6a92d2",    "createdOn": 1636250123000,    "updatedOn": 1636250123000  }}