User Management

Update a Miscellaneous Liability

PATCH
/v1/users/{userId}/miscellaneousLiabilities/{miscellaneousLiabilityId}

This API updates user records with accurate miscellaneous liability 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).

miscellaneousLiabilityId*string

Spinwheel miscellaneous liability 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/miscellaneousLiabilities/12b9d6e8-c87b-415e-94e2-15367975218d" \  -H "Content-Type: application/json" \  -d '{    "liabilityProfile": {      "accountNumber": "0045678901234"    }  }'

Response with a miscellaneous liability

{  "status": {    "code": 200,    "desc": "success"  },  "data": {    "miscellaneousLiabilityId": "02c3cec9-75f7-427d-a1d7-f9252f93cb40",    "userId": "3fef7131-71ae-4204-a8bd-3fc3ad6b4b82",    "displayName": "Home Furnishing Rentals",    "logoUrl": "https://spinwheel.io/logos/1226cd1b-51dd-4bd1-8dc8-098deb9e0c7b.png",    "liabilityProfile": {      "accountNumber": "0045678901234",      "ecoaCode": "I",      "accountOriginationDate": "1998-08-01",      "status": "OPEN",      "interestRateDerived": 0.1122,      "loanOriginationAmount": 0,      "highCreditAmount": 0,      "accountRating": "1",      "liabilitySubtype": "OtherDepartmentAndMailOrder",      "debtType": "UNKNOWN",      "pendingLoanTermInMonthsDerived": 0,      "loanTermInMonths": 0,      "accountOwnershipType": "INDIVIDUAL",      "termsFrequency": "MONTHLY",      "accountType": "REVOLVING",      "reportedDateWithFormat": {        "value": "2022-03-01",        "format": "YYYY-MM-DD"      },      "lastActivityDateWithFormat": {        "value": "2022-03",        "format": "YYYY-MM"      },      "consumerDisputeStatus": "NOT_DISPUTED",      "derogatoryDataStatus": "DEROGATORY",      "reviewedInMonths": 10,      "collectionStatus": "NOT_IN_COLLECTION",      "chargeOffStatus": "NOT_CHARGED_OFF",      "accountTypeCode": "R",      "paymentHistory": {        "lastAssessedStatementDate": "2022-02-01",        "details": [          {            "date": "2022-02-01",            "description": "No data available for this period",            "code": "D"          }        ]      },      "liabilityTransfers": {        "transferredFrom": {          "creditorName": "IKEA"        }      },      "narratives": [        {          "code": "EP",          "description": "Fixed rate"        }      ]    },    "balanceDetails": {      "outstandingBalance": 3347    },    "statementSummary": {      "statementBalance": 3347,      "principalBalance": 3347,      "minimumPaymentAmount": 80,      "lastPaymentDateWithFormat": {        "value": "2022-03",        "format": "YYYY-MM"      },      "statementDateWithFormat": {        "value": "2022-03",        "format": "YYYY-MM"      },      "overduePeriod": "NOT_OVERDUE"    },    "creditor": {      "industryType": "CompleteDept.Stores",      "industryCode": "DC",      "bureauSubscriberCode": "401BB00573",      "address": {        "addressLine1": "8725 W. SAHARA AVE.",        "city": "THE LAKES",        "state": "NV",        "zip": "89163"      }    },    "capabilities": {      "data": {        "realtimeBalance": {          "availability": "NOT_SUPPORTED"        },        "statementSummary": {          "availability": "SUPPORTED"        }      }    },    "createdOn": 1678724486907,    "updatedOn": 1678724486907  }}