The Shareholder object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: false
{
"id": "shareholder_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"title": "title_example",
"folio_no": "folio_no_example",
"company": "Example Corp",
"is_company": false,
"contact_list": "contact_list_example"
} /api/accounts/shareholder/{id} Retrieve a shareholder
Retrieves the details of an existing shareholder. Supply the unique shareholder ID that was returned from a previous request.
Path parameters
The identifier of the shareholder to retrieve.
Returns
Returns the shareholder object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/shareholder/shareholder_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "shareholder_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"title": "title_example",
"folio_no": "folio_no_example",
"company": "Example Corp",
"is_company": false,
"contact_list": "contact_list_example"
} /api/accounts/shareholder List all shareholders
Returns a list of shareholders. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of shareholder objects.
curl https://api.overplane.dev/api/accounts/shareholder \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "shareholder_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"title": "title_example",
"folio_no": "folio_no_example",
"company": "Example Corp",
"is_company": false,
"contact_list": "contact_list_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/shareholder Create a shareholder
Creates a new shareholder object.
Body parameters
Default: false
Returns
Returns the newly created shareholder object if the call succeeded.
curl https://api.overplane.dev/api/accounts/shareholder \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"title":"title_example","company":"Example Corp"}' {
"id": "shareholder_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"title": "title_example",
"folio_no": "folio_no_example",
"company": "Example Corp",
"is_company": false,
"contact_list": "contact_list_example"
} /api/accounts/shareholder/{id} Update a shareholder
Updates the specified shareholder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the shareholder to update.
Body parameters
Default: false
Returns
Returns the updated shareholder object.
curl https://api.overplane.dev/api/accounts/shareholder/shareholder_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"title":"title_example","folio_no":"folio_no_example"}' {
"id": "shareholder_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"title": "title_example",
"folio_no": "folio_no_example",
"company": "Example Corp",
"is_company": false,
"contact_list": "contact_list_example"
} /api/accounts/shareholder/{id} Delete a shareholder
Permanently deletes a shareholder. This cannot be undone.
Path parameters
The identifier of the shareholder to delete.
Returns
Returns a confirmation that the shareholder has been deleted.
curl https://api.overplane.dev/api/accounts/shareholder/shareholder_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "shareholder_abc123",
"deleted": true
} Line items
Child objects that belong to this shareholder. These are accessed via the parent's ID.