User Management
Update a Personal Loan
This API updates user records with accurate personal loan account numbers.
Authorization
bearerAuth AuthorizationBearer <token>
Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.
In: header
Path Parameters
userId*string
Spinwheel userId to identify a user (one of userId or extUserId is required).
personalLoanId*string
Spinwheel personal loan ID associated with the user.
Request Body
application/json
liabilityProfile*
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/users/3fef7131-71ae-4204-a8bd-3fc3ad6b4b82/personalLoans/12b9d6e8-c87b-415e-94e2-15367975218d" \ -H "Content-Type: application/json" \ -d '{ "liabilityProfile": { "accountNumber": "0045678901234" } }'Response with a personal loan
{ "status": { "code": 200, "desc": "success" }, "data": { "personalLoanId": "7025c075-e92d-46fa-85e5-ac31ca667079", "userId": "3fef7131-71ae-4204-a8bd-3fc3ad6b4b82", "displayName": "TD Bank", "logoUrl": "https://cdn.spinwheel.io/images/logo/ebd6dab9-4558-40c4-8c21-65070a07df5a.png", "liabilityProfile": { "accountNumber": "0045678901234", "accountOriginationDate": "2019-08-20", "status": "OPEN", "interestRateDerived": 8.5, "loanOriginationAmount": 15000, "accountRating": "1", "liabilitySubtype": "PersonalLoan", "debtType": "UNSECURED", "loanTermInMonths": 60, "accountOwnershipType": "INDIVIDUAL", "termsFrequency": "MONTHLY", "ecoaCode": "I", "accountType": "INSTALLMENT", "consumerDisputeStatus": "NOT_DISPUTED", "derogatoryDataStatus": "NOT_DEROGATORY", "collectionStatus": "NOT_IN_COLLECTION", "chargeOffStatus": "NOT_CHARGED_OFF" }, "balanceDetails": { "outstandingBalance": 9500, "updatedOn": 1597753517524 }, "statementSummary": { "statementBalance": 9500, "minimumPaymentAmount": 285, "overduePeriod": "NOT_OVERDUE" }, "creditor": { "originalName": "TD BANK", "industryType": "Finance", "industryCode": "FF", "phoneNumber": "8663968254", "bureauSubscriberCode": "401BB00573", "address": { "addressLine1": "C/O P.O. BOX 965036", "city": "ORLANDO", "state": "FL", "zip": "32896", "zipExtension": "5036" } }, "capabilities": { "payments": { "billPayment": { "availability": "SUPPORTED" } }, "data": { "realtimeBalance": { "availability": "NOT_SUPPORTED" }, "statementSummary": { "availability": "SUPPORTED" } } }, "createdOn": 1597317116353, "updatedOn": 1597753517524 }}
