Create SetupIntent

This API used to create setupIntent associated with the specified event.
This API can be access by event admin and super admin. It will return data like paymentIntentClientSecret, requiresAction and paymentIntentId.
To call this API, user have to pass query param with API URL like eventurl, paymentIntentBase details and authentication key to authenticate user.

Here is the description of response attributes, which returns to the form of JSON.
It will return a success message if API execute successfully.

Attribute

Description

paymentIntentClientSecret

It's contains the client secret for generated payment intent.

paymentIntentId

Identifier for generated payment intent.

requiresAction

Does it require any action.

Here is the possible error messages, which return if any condition gets failed or required data is missing for processing.

Error Code

Error Description

200

Create SetupIntent successfully.

201

Created.

400

The request could not be understood by the server due to malformed syntax.

401

You are not authorized to view the resource.

403

Accessing the resource you were trying to reach is forbidden.

404

The resource you were trying to reach is not found.

4060709

Payment details are not valid.

Language
Authentication
Header
Click Try It! to start a request and see the response here!