# Cancel an Uncaptured Charge

| Environment | Endpoint |
|  --- | --- |
| Production | `POST` `https://app.resolvepay.com/api/charges/<charge_id>/cancel` |
| Sandbox | `POST` `https://app-sandbox.resolvepay.com/api/charges/<charge_id>/cancel` |


When an order is cancelled in your eCommerce platform, you can cancel the associated charge using the `charge_id`. The charge must not have been previously captured to be eligible for cancellation. See the checkout SDK documentation for details on the checkout flow.

For legacy integrations, see the [v2 API documentation](https://app.resolvepay.com/docs/api/v2).

Cancelled charges remain visible in the Resolve merchant dashboard when filtering for "All" invoices. You can archive the invoice to hide cancelled charges from the dashboard. Refer to the archiving records help article for more information.

For additional details on Resolve's REST API, including rate limits, review the API documentation.

Use either HTTP Basic Auth (`merchant_id` + `secret_key`) or Bearer token auth.

For production credential setup and authentication configuration, see the [Direct API Access and Authentication](/guides/direct-api-access-and-authentication) guide.

For request/response schemas, auth details, and live examples, see the Merchant API reference:

- [Cancel a charge](/merchant-api/openapi/charges/cancelcharge)