---
title: "Cancel a operation of a specified order id."
method: POST
path: "/api/v1alpha1/rewards:cancel"
tags: ["RewardsService"]
---

# Cancel a operation of a specified order id.

`POST /api/v1alpha1/rewards:cancel`

This endpoint is designed to cancel a reward generated or refund a transaction.

The response includes pertinent information about the operation cancellation.

## Headers

- `Brand` string, required

## Request body

- V1alpha1CancelOperationRequest
  - `customerId` string, required — The customer identifier must be the same as that sent to Dito.
  - `orderId` string, required — The ID of customer order.

## Response `200`

A successful response.

- V1alpha1CancelOperationResponse
  - `message` string — The customer identifier must be the same as that sent to Dito.

## Other responses

- `400` — When an invalid request is sent.
- `401` — When the authentication is failed.
- `403` — when it was not authorized.
- `default` — An unexpected error response.

---

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