postCaptableSharesWithHttpInfo method

Future<Response> postCaptableSharesWithHttpInfo(
  1. CaptableShareIn captableShareIn
)

Issues a share certificate to a stakeholder.

Issues a share certificate to a stakeholder. The certificate id must be UNIQUE within the company — a duplicate is refused 409, not silently merged — and both the stakeholder and the share class must belong to this company, so an id from another tenant is a 400 rather than a cross-company issuance.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postCaptableSharesWithHttpInfo(CaptableShareIn captableShareIn,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/captable/shares';

  // ignore: prefer_final_locals
  Object? postBody = captableShareIn;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}