Function: useSubmitProfileDetails()
useSubmitProfileDetails(
param
: {mutation
:{}
;profile
:string
; }):MutationResult
<"submitProfileDetails"
,ResponseStatus
,Error
,SubmitProfileDetailsPayload
>
Submit the required compliance information to onboard the customer.
Note that you won't be able to change the profile "kind" from personal to corporate or vice versa once the profile has been approved.
Parameters
Parameter | Type | Description |
---|---|---|
param | object | |
param.mutation ? | MutationOptions <ResponseStatus , Error , SubmitProfileDetailsPayload > | See Tanstack Query - useMutation options. |
param.profile | string | The id of the profile to submit to. |
Returns
MutationResult
<"submitProfileDetails"
, ResponseStatus
, Error
, SubmitProfileDetailsPayload
>
Example
const {
submitProfileDetails, // useMutation's `mutateAsync` property
isPending,
isError,
error,
status,
...moreUseMutationResults
} = useSubmitProfileDetails();