---
title: "CancelSale"
method: POST
path: "/API/PaymentPageRequest.svc/CancelSale"
---

# CancelSale

`POST /API/PaymentPageRequest.svc/CancelSale`

## Request body

- object
  - `SaleId` string, uuid, nullable — Sale Identifier. **Default:** No
  - `SalePrivateToken` string, uuid, nullable — The Sale Private Identifier. **Default:** No
  - `AuthNum` string, nullable — Transaction Approval Number. **Length:** 1 to 9 **Default:** No

## Response `200`

Success - Sale Canceled.

- object
  - `ClientMessage` string — The Response Client Message (From SHVA).
  - `DebugMessage` string — The Response Error (Same as ChargeStatus).
  - `Status` integer — The Response Status Number (0 = Success).
  - `data` object
    - `DocumentIdentity` string — The Canceled Sale Document Identifier.
    - `DocumentLink` string — The Canceled Sale Document Link.
    - `DocumentNumber` integer — The Canceled Sale Document Number.
    - `DocumentType` integer — The Canceled Sale Document Type.
    - `PrivateSaleToken` string — Private Sale Token.
    - `ReceiptIdentity` string — The Canceled Sale Receipt Identifier.
    - `ReceiptLink` string — The Canceled Sale Receipt Link.
    - `ReceiptNumber` integer — The Canceled Sale Receipt Number.
    - `ReceiptType` integer — The Canceled Sale Receipt Type.
    - `SaleToken` string — The Sale Token Identifier.

## Other responses

- `400` — Request Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/rivhit/apis/get-payment-url-22-12.md) · [All operations](https://skmtc.net/rivhit/apis/get-payment-url-22-12/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rivhit/get-payment-url-22-12/versions/ed5261a52458/schema)
