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.

GET/users

List of users

This endpoint lists all the users associated with the partner.

Request

GET
/users
  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",
  }
]


POST/users

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

POST
/users
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",
}


GET/users/:customerId/plans

List of plans

This endpoint lists plans for a given customer.

Required attributes

  • Name
    customerId
    Type
    string
    Description

    Unique id of a customer.

Request

GET
/users/:customerId/plans
  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"
  }
]


GET/users/:customerId/optimizations

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

GET
/users/:customerId/optimizations
  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.",
  },
]


POSTusers/:customerId/messages

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

POST
users/:customerId/messages
  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)"
    }
  }
}


GETusers/:customerId/messages

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

GET
users/:customerId/messages
  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",
              }
            }
        }
      }
  }
}


POSTusers/:customerId/check-in

Check-in

This endpoint creates a check-in request.

Request

POST
users/:customerId/check-in
  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",
}

GETsubscriptionPlan/

Get subscription plans

This endpoint lists all the subscription plans offered by partner

Request

GET
subscriptionPlan/
  curl https://beta-api.uprise.us/subscriptionPlans/ \
  -H "Authorization: Bearer{token}" \
  -H "Content-Type: application/json" \

Response

  {
    "planInfos":[
        {
          "name":"essential_quarterly",
          "displayName":"Essential",
          "productName":"essential",
          "description":"Essential",
          "price":"450.00",
          "isUpgradable":true,
          "paymentFrequency":"quarterly",
          "isShowPlanInfoInPayWall":true
        },
        {
          "name":"premium_quarterly",
          "displayName":"Premium",
          "productName":"premium_business_owner",
          "description":"Premium",
          "price":"800.00",
          "isUpgradable":true,
          "paymentFrequency":"quarterly",
          "isShowPlanInfoInPayWall":true
        },
        {
          "name":"complete_quarterly",
          "displayName":"Complete",
          "productName":"complete",
          "description":"Complete",
          "price":"1250.00",
          "isUpgradable":false,
          "paymentFrequency":"quarterly",
          "isShowPlanInfoInPayWall":true
        }
    ]
  }

POSTusers/:userId/subscription

Add subscription

This endpoint supports subscribe users to subscription plans offered on the Uprise/partner platform.

Required attributes

  • Name
    subscriptionPlanName
    Type
    string
    Description

    The Uprise subscription plan purchased by the end user on the Uprise/partner platform

  • Name
    subscriptionStartDate
    Type
    integer
    Description

    The date the end user successfully paid and activated an Uprise subscription, or a plan including the Uprise subscription, on the partner platform.

    • Validation - no more than 30 days in the past

Optional attributes

  • Name
    comment
    Type
    string
    Description

    Notes for the Billing team related to new subscription, if any

  • Name
    context
    Type
    object
    Description

    Additional payload if requested and agreed between partner and Uprise

Request

POST
users/:userId/subscription
  curl https://beta-api.uprise.us/users/:userId/subscription \
  -H "Authorization: Bearer{token}" \
  -H "Content-Type: application/json" \
  -d '{"subscriptionPlanName": "all_access", "subscriptionStartDate" : "2025-01-31" }'

Response

{
  "id": "53446b1e-50f6-43b6-aa74-94d905962b3c",
}

DELETEusers/:userId/subscription

Unsubscribe a user

This endpoint unsubscribes a user from their active subscription plan.

Required attributes

  • Name
    subscriptionEndDate
    Type
    integer
    Description

    The date the user’s Uprise subscription, or a plan including the Uprise subscription, ends on the partner platform

    • Note this date may occur in the past or future and may be different from the date the subscription deletion is requested.
    • Validation - no more than 30 days in the past
  • Name
    comment
    Type
    string
    Description

    Notes for the Billing team related to the subscription deletion, if any

Request

DELETE
users/:userId/subscription
  curl https://beta-api.uprise.us/users/:userId/subscription \
  -H "Authorization: Bearer{token}" \
  -H "Content-Type: application/json" \
  -d '{"subscriptionEndDate": "2025-01-31", "comment": "requested for canceling subscription" }'

Response

{
  "message": "success",
}

PATCH/user/{userId}/subscription

Upgrade/Change Plan

This endpoint allows a user to upgrade or change their subscription plan. It is useful when users want to change to a higher-tier plan or switch to a different offering.

Required Attributes

  • Name
    subscriptionPlanName
    Type
    string
    Description

    The new Uprise subscription plan purchased by the end user on the Uprise/Partner platform.

  • Name
    subscriptionStartDate
    Type
    string
    Description

    The date the user’s Uprise subscription changes on the partner’s platform.

    • Note this date may occur in the past or future and may be different from the date the update is requested.
  • Name
    comment
    Type
    string
    Description

    Notes for the Billing team related to the subscription update, if any

Optional attributes

  • Name
    context
    Type
    object
    Description

    Additional payload if requested and agreed between partner and Uprise

Request

PATCH
/user/{userId}/subscription
curl https://api.example.com/user/12345/subscription \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"subscriptionPlanName": "all_access", "subscriptionStartDate": "2025-01-31", "comment": "requested for upgrading subscription" }'

Response

{
  "status": "success",
  "message": "Subscription upgraded successfully",
  "newPlan": "premium"
}

GETsubscriptionPlan/

Get user subscription

This endpoint returns subscription details of a given user.

Request

GET
/user/{userId}/subscription
  curl https://beta-api.uprise.us/user/{userId}/subscription/ \
  -H "Authorization: Bearer{token}" \
  -H "Content-Type: application/json" \

Response

    [
        {
            "id": "7516e9983689",
            "subscriptionPlan": {
                "name": "core_monthly"
            },
            "startDate": "2025-01-28T00:00:00.000Z",
            "endDate": "2025-02-28T00:00:00.000Z",
            "status": "subscribed"
        }
    ]

Event Types

The following event types are supported by the Subscription API. These events correspond to specific actions that can occur within the subscription lifecycle.

  • Name
    plan.created
    Description

    A new subscription plan was created.

  • Name
    plan.updated
    Description

    A subscription plan was updated.

  • Name
    plan.completed
    Description

    A subscription plan has been completed or the user has finished their subscription period.

  • Name
    subscription.updated
    Description

    A subscription was updated or modified, including changes to the plan or user details.

Example payload

{
  "id": "a00a3573-edf1-b0e60bb2392c",
  "type": "subscription.updated",
  "payload": {
    "id": "a00a3573-edf1-b0e60bb2392c",
    "userId": "e4bb74a9-f871-9b28-bb6b44ee911e",
    "subscriptionPlan": "premium",
    "subscriptionStartDate": "2025-01-01"
  }
}