Creating a customer is the crucial step in enabling global investment access via Pipevest’s API. This document will guide you on how to create, update and get customer details.Documentation Index
Fetch the complete documentation index at: https://docs.pipevest.com/llms.txt
Use this file to discover all available pages before exploring further.
Creating Customers
Reference Id
When creating a user, you can provide an optionalreferenceId. This unique identifier should be used to externally match the customer.
Updating Customers
If you need to change the customers details, you can simply update their details.Updating Status
A customer by default has anACTIVE status. If you decide to change the customer’s status, do keep in mind of the side
effects of this operation.
Retrieving Customers
When requesting customer details you can do so either by getting:- A list of customers
- A customer by a given Id
List of Customers
This endpoint can be paginated and sorted.
Customer by Id
Creation Side Effects
When a customer is created, the following resources are also created:
- Account(s) for the customer with the default organizations Investment Types.
- A Portfolio linked to each account.
Update Side Effects
When updating a customer’s status toSUSPENDED or CLOSED, the following actions will also take place:
- Account(s) status will be updated to match the customer status.
- Portfolio(s) status will be updated to match the customer status.
In the case of updating to
ACTIVE, you will have to explicitly update the
Accounts and PortfoliosEntity Reference
| Property | Definition |
|---|---|
customerId | Unique customer identifier |
firstName | The customers first name |
lastName | The customers last name |
status | The customers current status |
referenceId | Externally provided unique identifier |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Status
| Name | Definition |
|---|---|
ACTIVE | Customer is currently active and able to trade |
SUSPENDED | Customer has been temporarily suspended, and is unable to trade. |
CLOSED | Customer has been permanently blocked from trading |
Webhook Subscriptions
| Subscription | Definition | Domain |
|---|---|---|
CUSTOMER | Only events that deal with customers | Customers |
CUSTOMER.CREATED | Triggered when a customer is created | Customers |
CUSTOMER.UPDATED | Triggered when a customer is updated | Customers |
