post https://spark.test.woodcoreapp.com/api/v2/clients
Create an Individual or corporate customer profile on Woodcore.
Note
- This endpoint can be used to create both an individual and corporate type of customer, all that is needed to do is change the parameter
clientType
to eitherindividual
orcorporate
.- For an
individual
customer, the parametergender
must be passed in the body of the request specifying as either male or female.- You create an account without including the
productId
while thecreateDepositAccount
isfalse
. TheproductId
should only be included when you setcreateDepositAccount
totrue
.
Common Validations
- If
_isActive
parameter isfalse
, a deposit account will not be created for the customer. - The date format is specified as
**dd MMMM yyyy**
, e.g., "10 January 2023", for all parameters that require dates. - if
resourceId
is returned whensavingsId
is not returned, a deposit account was not created therefore, theresourceId
in that case will be the same asclientId