Setup Intents
Retrieve setup status
Changed onRetrieves how far a setup has got and what the buyer must do next, if anything. Collection runs in the background, so poll this rather than reading the create response. Accepts either a secret key or the setup's own client_secret, so the surface collecting the payment method can poll it directly.
get/setup_intents/{setup_intent_id}/status
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/setup_intents/{setup_intent_id}/status
- Auth: HTTP bearer
Path parameters
setup_intent_idstring required
The unique identifier of the setup intent.
Response
Setup status retrieved
Example response
{
"id": "sint_xxxxxxxxxxxxxx",
"last_setup_error": {
"code": "enrollment_declined",
"message": "The bank declined the enrollment."
},
"next_action": {
"data": {
"frame_max_width": 500,
"url": "https://psp.example/3ds/challenge"
},
"render": [
"inline"
],
"type": "redirect"
},
"object": "setup_status",
"return_url": "https://shinetime.example/billing/saved",
"status": "canceled"
}Changes
- breaking
added to the
////response propertyoneOflist for the response status - info
added
collect_card_presentdiscriminator mapping keys to the////response property for the response status
- breaking
- info
added the optional property
/////////to the response with the status
- info