---
title: "Create a reversal"
method: POST
path: "/payment-intents/{paymentIntentId}/reversal"
tags: ["Reversal"]
---

# Create a reversal

`POST /payment-intents/{paymentIntentId}/reversal`

## Request

- Base URL: `https://api.dojo.tech`
- URL: `https://api.dojo.tech/payment-intents/{paymentIntentId}/reversal`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/dojo/apis/dojo-api/docs/payment-intents/:paymentIntentId/reversal/post.ts> (a function with typed inputs; its response is checked against the schema)

Reverses a payment intent.

## Path parameters

- `paymentIntentId` string, nullable, required

## Headers

- `version` string, date, required

## Response `200`

OK

- Reversal: The create reversal response object.
  - `message` string, nullable: The description of the operation.
  - `reversalId` string, nullable: The unique identifier for the reversal.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `409`: Conflict

---

[API](https://skmtc.dev/dojo/apis/dojo-api.md) - [All operations](https://skmtc.dev/dojo/apis/dojo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dojo/apis/dojo-api/revisions/29fc8900ba37?raw)
