Retrieve a SetupIntent

GET {{baseUrl}}/v1/setup_intents/:intent

Retrieves the details of a SetupIntent that has previously been created.

Client-side retrieval using a publishable key is allowed when the client_secret is provided in the query string.

When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.

Request Params

KeyDatatypeRequiredDescription
client_secretstringThe client secret of the SetupIntent. Required if a publishable key is used to retrieve the SetupIntent.
expand[0]stringSpecifies which fields in the response should be expanded.
expand[1]stringSpecifies which fields in the response should be expanded.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring