Get user info and purchase status
Changed onReturns customer profile, active purchase details including usage and plan info, and a customer portal URL.
Request
- Base URLhttps://api.solvapay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
User info with purchase status
Example response
{
"purchase": {
"endDate": "2025-11-27T10:00:00Z",
"plan": {
"billingCycle": "monthly",
"currency": "USD",
"price": 2999,
"reference": "pln_2B3C4D5E",
"type": "recurring"
},
"planType": "recurring",
"productName": "My API Product",
"reference": "pur_1A2B3C4D",
"startDate": "2025-10-27T10:00:00Z",
"status": "active",
"usage": {
"meterRef": "requests",
"percentUsed": 25,
"remaining": 750,
"total": 1000,
"used": 250
}
},
"status": "Active subscription: My API Product (25% usage consumed)",
"user": {
"email": "john@example.com",
"externalRef": "auth_user_12345",
"name": "John Doe",
"reference": "cus_3C4D5E6F"
},
"verifyUrl": "https://solvapay.com/customer/manage?id=abc123"
}Changes
- info
response property
purchase/allOf[UserInfoPurchaseDto]/plan/allOf[UserInfoPlanDto]/limitsdeprecated
- info
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromobjectto no type for status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status
- breaking