Users
The Users resource is used for getting and modifying customer-related information. For example, a list of plans for a given customer, a conversation thread between the customer and advisor, etc.
List of users
This endpoint lists all the users associated with the partner.
Request
curl https://beta-api.uprise.us/users -H "Authorization: Bearer{token}"
Response
[
{
"id": "b4a2954b-4a6e-47f8-8374-6e11bfa88ee8",
"firstName": "Nantha",
"lastName": "M",
"email": "nantha.m@uprise.us",
},
{
"id": "9c6df929-8f4f-460c-84dd-ec112798278a",
"firstName": "Lena",
"lastName": "M",
"email": "lena.m@uprise.us",
},
{
"id": "d64f42ac-cb9d-4c78-997c-362887752caa",
"firstName": "Caroline",
"lastName": "P",
"email": "caroline.p@uprise.us",
}
]
Create a user
This endpoint registers a new user.
Required attributes
- Name
firstName
- Type
- string
- Description
First name of the user.
- Name
lastName
- Type
- string
- Description
Last name of the user.
- Name
email
- Type
- string
- Description
Email address of the user.
Optional attributes
- Name
mobilePhoneNumber
- Type
- integer
- Description
Mobile number of the user.
- Name
isSearchMode
- Type
- boolean
- Description
This will enable searching for an account for the given email in the system.
- Name
subscriptionPlanCode
- Type
- string
- Description
Code of the subscription plan the user is subscribed to.
Request
curl https://beta-api.uprise.us/users \
-H "Authorization: Bearer{token}" \
-H "Content-Type: application/json" \
-d '{"firstName": "Nantha Kumar", "lastName" : "Muthusamy", "email" : "nantha@uprise.us"}'
Response
{
"id": "b4a2954b-4a6e-47f8-8374-6e11bfa88ee8",
}
List of plans
This endpoint lists plans for a given customer.
Required attributes
- Name
customerId
- Type
- string
- Description
Unique id of a customer.
Request
curl
https://beta-api.uprise.us/users/81aa278c-a0f7-4767-b9be-d63977ba2bca/plans \
-H "Authorization: Bearer {token}"
Response
[
{
"id": "f5e856b6-ecb5-42dd-89d2-a21422435b3d",
"planState": "completed",
"planSubStatus": null,
"planUrl": "https://joinuprise.docsend.com/view/fvd4evwwiyksdej?email={{nan@uprise.us}}",
"planDate": "2022-05-15T07:00:00.000Z",
"advisor": "Caroline"
}
]
List of optimizations
This endpoint lists optimization recommendations given to a customer by the advisor.
Required attributes
- Name
customerId
- Type
- string
- Description
Unique id of a customer.
Request
curl
https://beta-api.uprise.us/users/81aa278c-a0f7-4767-b9be-d63977ba2bca/optimizations \
-H "Authorization: Bearer {token}"
Response
[
{
"taskId": "cb6490c0-7bf2-4874-9205-9516860b5775",
"description": "Adjust your 401k holdings to the portfolio recommended
in this plan.",
"isCompleted": false,
"getStartedUrl": "https://app.ocho.com/login",
"category": "Investing",
"status": null,
"planId": "72f5abc7-d6fb-4d05-8f56-7de2cae537d8",
"recommendation": "This is recommendation text.",
"statusComment": "This is status comment.",
"upSellComment": "This is upSell comment.",
},
{
"taskId": "f25b4103-9f93-48ac-8f95-1ee44b7bc0ee",
"description": "Switch your Solo 401k to Traditional and contribute
$22,500/year ($1,875/month).",
"isCompleted": false,
"getStartedUrl": "https://app.ocho.com/login",
"category": "Retirement",
"status": null,
"planId": "72f5abc7-d6fb-4d05-8f56-7de2cae537d8",
"recommendation": "This is recommendation text.",
"statusComment": "This is status comment.",
"upSellComment": "This is upSell comment.",
},
{
"taskId": "932e62d6-4d95-45c7-bd76-18405a7eeb09",
"description": "Contribute $6,500/year to your IRA through a Roth IRA
conversion.",
"isCompleted": false,
"getStartedUrl": "",
"category": "Retirement",
"status": null,
"planId": "72f5abc7-d6fb-4d05-8f56-7de2cae537d8",
"recommendation": "This is recommendation text.",
"statusComment": "This is status comment.",
"upSellComment": "This is upSell comment.",
},
]
Save user message
This endpoint saves a user message
Required attributes
- Name
customerId
- Type
- string
- Description
Unique id of a customer.
- Name
subject
- Type
- string
- Description
Subject for the message thread.
- Name
content
- Type
- string
- Description
Message content in the thread.
Optional attributes
- Name
threadId
- Type
- string
- Description
Message thread id.
- Name
recipientId
- Type
- string
- Description
Id of message recipient id.
- Name
attachments
- Type
- array
- Description
Attachments uploaded by the sender.
Request
curl https://beta-api.uprise.us/users/81aa278c-a0f7-4767-b9be-d63977ba2bca/messages \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"content": "Stock options","subject":"How should I exercise my stock options?"}'
Response
{
"800195e5-5eed-43ed-8c93-b2996bd0e8e9": {
"message": {
"id": "800195e5-5eed-43ed-8c93-b2996bd0e8e9",
"subject": "Stock options",
"content": "How should I exercise my stock options?",
"isNotification": false,
"senderId": "84bcf7c9-3ed7-4a1f-a662-d4cfce382f66",
"senderFirstName": "Nantha Kumar",
"senderLastName": "Muthusamy",
"senderEmail": "nantha.m@gmail.com",
"senderRole": "user",
"recipientId": "f2a17b6d-0aaf-40d1-add5-84c854822801",
"recipientFirstName": "Caroline",
"recipientLastName": "Petty",
"recipientRole": "advisor",
"isRead": false,
"updatedAt": "Sat May 20 2023 06:27:20 GMT-0700 (Pacific Daylight Time)"
}
}
}
List of user messages
This endpoint lists all the message threads between the customer and the advisor.
Required attributes
- Name
customerId
- Type
- string
- Description
Unique id of a customer.
Request
curl
https://beta-api.uprise.us/users/81aa278c-a0f7-4767-b9be-d63977ba2bca/messages \
-H "Authorization: Bearer {token}"
Response
{
"usrMsgs":{
"45eef879-61d3-44aa-a5df-e04dc75e234c":{
"message":{
"subject":"Your Uprise plan is ready! :tada:",
"content":"Hi Nantha<br/><br/>\n Just
finished up your plan! You can always access the plan in your Uprise account -
on your dashboard homepage.\n <br/><br/>\n
My top priority is that the plan makes sense and is right for you! So please
let me know if you have any questions or want anything adjusted!\n
<br/><br/>\n <br/><br/>\n Thanks a lot!\n
<br/>\n Caroline\n ",
"refEntityName": null,
"refEntityId": null,
"updatedAt": "Sat May 20 2023 06:27:20 GMT-0700 (Pacific Daylight Time)",
"senderFirstName":"Nantha",
"senderLastName":"M",
"senderEmail": "nantha.m@gmail.com",
"senderRole": "user",
"recipientFirstName":"Nantha",
"recipientLastName":"M",
"recipientRole": "advisor",
}
},
"f48be6ae-6a15-48fa-a45c-c51c390526a4":{
"message":{
"subject":"Your Uprise plan is ready! :tada:",
"content":"Hi Nantha<br/><br/>\n Just
finished up your plan! You can always access the plan in your Uprise account -
on your dashboard homepage.\n <br/><br/>\n
My top priority is that the plan makes sense and is right for you! So please
let me know if you have any questions or want anything adjusted!\n
<br/><br/>\n <br/><br/>\n Thanks a lot!\n
<br/>\n Caroline\n ",
"refEntityName": null,
"refEntityId": null,
"updatedAt": "Sat May 20 2023 06:27:20 GMT-0700 (Pacific Daylight Time)",
"senderFirstName":"Nantha",
"senderLastName":"M",
"senderEmail": "nantha.m@gmail.com",
"senderRole": "user",
"recipientFirstName":"Nantha",
"recipientLastName":"M",
"recipientRole": "advisor",
},
"replies":{
"9fd06cd1-dd9e-4f30-b133-86405837978d":{
"message":{
"subject":"Your Uprise plan is ready! :tada:",
"content":"Hi Nantha<br/><br/>\n Just
finished up your plan! You can always access the plan in your Uprise account -
on your dashboard homepage.\n <br/><br/>\n
My top priority is that the plan makes sense and is right for you! So please
let me know if you have any questions or want anything adjusted!\n
<br/><br/>\n <br/><br/>\n Thanks a lot!\n
<br/>\n Caroline\n ",
"refEntityName": null,
"refEntityId": null,
"updatedAt": "Sat May 20 2023 06:27:20 GMT-0700 (Pacific Daylight Time)"
"senderFirstName":"Nantha",
"senderLastName":"M",
"senderEmail": "nantha.m@gmail.com",
"senderRole": "user",
"recipientFirstName":"Nantha",
"recipientLastName":"M",
"recipientRole": "advisor",
"parentMessageId": "800195e5-5eed-43ed-8c93-b2996bd0e8e9",
}
}
}
}
}
}
Add subscription
This endpoint lists all the message threads between the customer and the advisor.
Required attributes
- Name
subscriptionPlanCode
- Type
- string
- Description
Unique code referring to a subscription plan
- Name
subscriptionFee
- Type
- integer
- Description
Fee paid for the subscription plan if the payment flow resides on the partner end.
Optional attributes
- Name
comment
- Type
- string
- Description
Any comments related to subscription transactions.
- Name
context
- Type
- object
- Description
Additional details.
Request
curl https://beta-api.uprise.us/users/:customerId/subscription \
-H "Authorization: Bearer{token}" \
-H "Content-Type: application/json" \
-d '{"subscriptionPlanCode": "all_access", "subscriptionFee" : 289.00 }'
Response
{
"id": "53446b1e-50f6-43b6-aa74-94d905962b3c",
}
Delete subscription
This endpoint unsubscribes a user from their active subscription plan.
Required attributes
- Name
comment
- Type
- string
- Description
Any comments related to subscription transactions.
Request
curl https://beta-api.uprise.us/users/:customerId/subscription \
-H "Authorization: Bearer{token}" \
-H "Content-Type: application/json" \
-d '{"comment": "I want to upgrade to annual plan", }'
Response
{
"message": "success",
}
Check-in
This endpoint creates a check-in request.
Request
curl https://beta-api.uprise.us/users/:customerId/check-in \
-H "Authorization: Bearer{token}" \
-H "Content-Type: application/json" \
Response
{
"id": "53446b1e-50f6-43b6-aa74-94d905962b3c",
}