Skip to main content

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

ParameterTypeDescription
paramobject
param.mutation?MutationOptions<ResponseStatus, Error, SubmitProfileDetailsPayload>See Tanstack Query - useMutation options.
param.profilestringThe 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();

See

API Documentation}

Defined in

sdk-react-provider/src/lib/hooks.tsx:655