---
title: "Get a payment method"
method: GET
path: "/spaces/{space_id}/payment/{payment_id}"
---

# Get a payment method

`GET /spaces/{space_id}/payment/{payment_id}`

Returns a single payment method by ID.

## Path parameters

- `space_id` string, required
- `payment_id` string, required

## Response `200`

Payment method

- PaymentMethod — A payment method on file for a space.
  - `id` string, required — Payment method ID.
  - `primary` boolean, required — True if this is the primary payment method for the space.
  - `pending_deletion` boolean, required — True if deletion has been scheduled for this payment method. The deletion can be cancelled until processed.
  - `brand` string, required — Card brand (e.g. `visa`, `mastercard`).
  - `last4` string, required — Last four digits of the card number.
  - `exp_month` integer, required — Card expiration month (1-12).
  - `exp_year` integer, required — Card expiration year (four digits).

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/timescale/apis/ghost-api.md) · [All operations](https://skmtc.net/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timescale/ghost-api/versions/808022f897be/schema)
