---
title: "Cancel pending payment"
method: POST
path: "/payments/{payment_id}/cancel"
---

# Cancel pending payment

`POST /payments/{payment_id}/cancel`

Cancel pending payments for alternative payment methods (APMs).

## Path parameters

- `payment_id` string, required

## Response `200`

200

- object
  - `id` string
  - `amount` integer
  - `currency` string
  - `payment_method_id` string
  - `payment_method_type` string
  - `payment_method_flow` string
  - `country` string
  - `created_date` string
  - `status` string
  - `status_detail` string
  - `status_code` string
  - `order_id` string
  - `description` string
  - `notification_url` string

---

[API](https://skmtc.net/dlocal/apis/payins.md) · [All operations](https://skmtc.net/dlocal/apis/payins/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dlocal/payins/revisions/d87e090020f9/schema)
