---
title: "Void"
method: POST
path: "/charges/{chargeId}/cancel"
---

# Void

`POST /charges/{chargeId}/cancel`

Sandbox (Testing): https://global-api.sand.au.edge.zip.co/merchant/charges/{chargeId}/cancel

Once the Charge has been Authorized, if for some reason the goods cannot be provided to the customer, the charge will need to be voided.

## Headers

- `Authorization` string, required
- `Idempotency-Key` string, required
- `Zip-Version` string, required

## Request body

- object
  - `charge_id` string, required — Zip transaction charge ID to apply the refund.
  - `reference` string — Unique transaction reference.
  - `reason` string, required — Reason of the refund.
  - `amount` integer, required — Refund amount.

## Response `200`

200

- object
  - `amount` integer
  - `captured_amount` integer
  - `created_date` string
  - `currency` string
  - `id` string
  - `product` string
  - `receipt_number` integer
  - `refunded_amount` integer
  - `state` string

---

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