---
title: "POST /carbonCredits/cancel/credits/user"
method: POST
path: "/carbonCredits/cancel/credits/user"
tags: ["CarbonCredits"]
---

# POST /carbonCredits/cancel/credits/user

`POST /carbonCredits/cancel/credits/user`

## Request body

- CancelCreditsRequestDto
  - `credit` TransferCredit, required
    - `tokenId` string, required
    - `amount` number, required — The amount of credits to transfer
  - `reason` string, required — The reason for cancellation
  - `fromPublicKey` string, required — The wallet where the credits will come from
  - `projectAddress` string, required — The project address
  - `comment` string — An optional transaction comment
  - `receiptEmails` EmailDto[] — An optional list of emails to send the transaction receipt to
    - `email` string, required

## Response `200`

- CancelCreditsResponseDto
  - `success` boolean, required — Whether the transaction was successful or not
  - `transactionId` string, required — The id of the possibly pending transaction

---

[API](https://skmtc.net/carbonregistry/apis/carbon-registry-rest-api.md) · [All operations](https://skmtc.net/carbonregistry/apis/carbon-registry-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/carbonregistry/carbon-registry-rest-api/revisions/a9f1b102faca/schema)
