OpenAPI 3.1.02026-08-143874115.7 MB
a84d4905fdbb
Setup Intents
Retrieve setup status
Retrieves 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
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 enrollment was declined by the payment provider."
},
"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"
}