Pockets
In France, a company can deliver some of its own shares for free to its employees: it's the allocation of free shares, called pockets.
API endpoints
Authentication: endpoints listed in this page require header authentication with a user token.
List pockets
GET
https://{domain}.biapi.pro/2.0/users/{userId}/pockets
List pockets related to a user.
Path Parameters
Name | Type | Description |
---|---|---|
userId* | Integer or "me" | ID of the related user. |
Response body: PocketsList object
Get a pocket
GET
https://{domain}.biapi.pro/2.0/pockets/{pocketId}
Get a single pocket by ID.
Path Parameters
Name | Type | Description |
---|---|---|
pocketId* | Integer | ID of the pocket. |
Response body: Pocket object
Data model
PocketsList object
Property | Type | Description |
---|---|---|
| Array of Pocket objects | List of pockets. |
Pocket object
Property | Type | Description |
---|---|---|
| Integer | ID of the pocket. |
| Integer | ID of the related investment. |
| Integer | ID of the related account. |
| String | Display name of the pocket. |
| Decimal | Quantity of stocks in the pocket. |
| Decimal | Total current value of the pocket. |
| PocketCondition string | Condition for the availability of the pocket. |
| Date or null | Date of availability, if applicable. |
| Date or null | Deletion date for pockets that no longer exist ( |
| DateTime | Date of the last synchronization of the pocket. |
PocketCondition values
Value | Description |
---|---|
| There is no available information on the condition. |
| The pocket will become available at a specific date. |
| The pocket is acquired (the underlying shares are acquired but cannot be transferred). |
| The pocket is available and the underlying shares are transferable (the condition was fulfilled or the availability date is in the past). |
| The pocket will be available when the employee retires (precise date is not always indicated). |
Forward compatibility requirement: additional values may be added in the future. When implementing value matching, always fallback to a generic case for unknown values.
Last updated