---
title: "Retrieve a setup intent"
method: GET
path: "/v1/setup_intents/{id}"
tags: ["Setup Intents"]
---

# Retrieve a setup intent

`GET /v1/setup_intents/{id}`

## Request

- Base URL: `https://orders-api.paymongo.com`
- URL: `https://orders-api.paymongo.com/v1/setup_intents/{id}`
- Auth: HTTP basic

Returns one setup intent from payments-api, or from core-api when payments-api does not hold it, in core-api's response shape either way.

## Path parameters

- `id` string, required

## Response `200`

OK

- SetupIntentResponse
  - `data` object
    - `attributes` SetupIntentAttributes
      - `created_at` integer
      - `last_setup_error` string: The card table's text for the setup's failed_code, null when it has none.
      - `livemode` boolean
      - `payment_intent_id` string
      - `status` string
      - `updated_at` integer
    - `id` string
    - `type` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `default`

---

[API](https://skmtc.dev/paymongo/apis/orders.md) - [All operations](https://skmtc.dev/paymongo/apis/orders/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/orders/revisions/7962c4ea82b5?raw)
