---
title: "Attach to PaymentIntent"
method: POST
path: "/v1/payment_intents/{id}/attach"
---

# Attach to PaymentIntent

`POST /v1/payment_intents/{id}/attach`

## Path parameters

- `id` string, required

## Request body

- object
  - `data` object
    - `attributes` object
      - `payment_method` string, required — id of PaymentMethod to attach to the PaymentIntent
      - `client_key` string — Client key of the PaymentIntent if the key used is a public API key.
      - `return_url` string — An optional value for `card` payment method but required for `shopee_pay`, `brankas`, `gcash`, `maya`, `grab_pay`, `dob`, and `billease` payment methods. The URL to redirect your customer back to after they authenticate or cancel their payment. This parameter is only used for redirect-based payment methods.

## Response `200`

200

- object

## Other responses

- `400` — 400

---

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