---
title: "Remove a payment from an order"
method: DELETE
path: "/shop/orders/{orderId}/payments/{paymentId}"
tags: ["Orders"]
---

# Remove a payment from an order

`DELETE /shop/orders/{orderId}/payments/{paymentId}`

Remove a payment that has not yet been completed. Only payments that
are still `pending` or that exist solely to store a payment method
(`payment_method_stored`) can be removed — completed, captured, or
refunded payments must be reversed via a refund instead.

Returns `400 Bad Request` if the payment is in a state that cannot be
removed. On success the updated `Order` is returned with the payment
no longer attached.

## Response `200`

The `Order` was successfully retrieved

- object
  - `data` Order, required — A customer order containing items and payments. This format replaces an older version of the order schema, and must be requested explicitly by passing `generic_items_array=true` as a query parameter.
    - `id` string, object-id — The ID of the order.

## Other responses

- `400` — The request failed.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
