---
title: "Capture payment"
method: POST
path: "/v1/payments/{paymentId}/capture"
tags: ["Card payments"]
---

# Capture payment

`POST /v1/payments/{paymentId}/capture`

Capture a payment based on the provided payment ID and the Authorisation token. The Authorisation token needs to be specified in the 'authorization' header as 'authorization: Bearer YOUR_API_KEY_HERE'. A payment can only be captured if it's in 'submitted' state

## Path parameters

- `paymentId` string, required

## Response `204`

No Content

## Other responses

- `400` — Capture of payment failed
- `401` — Credentials are required to access this resource
- `404` — Not found
- `409` — Conflict
- `429` — Too many requests
- `500` — Downstream system error

## Changes

- **2019-08-01** `6e01c8022b87` — 2 info
  - api tag `Card payments` added
  - api tag `Card Payments` removed
- **2019-07-31** `f8066d82895d` — 1 info
  - api operation id `capturePayment` removed and replaced with `Capture a payment`
- **2019-07-31** `ef50a2b1c4f1` — 1 info
  - api tag `Card Payments` added
- **2019-02-22** `89daf4ffa64f` — 2 info
  - api operation id `Capture a payment` removed and replaced with `capturePayment`
  - api tag `Card payments` removed

[Change history](https://skmtc.dev/alphagov/apis/gov-uk-pay-api/changes/v1/payments/:paymentId/capture/post.md)

---

[API](https://skmtc.dev/alphagov/apis/gov-uk-pay-api.md) · [All operations](https://skmtc.dev/alphagov/apis/gov-uk-pay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/alphagov/apis/gov-uk-pay-api/revisions/6e01c8022b87?raw)
