# Pembatalan CK-6

## Introduction

* Purpose: API ini digunakan untuk pembatalan data CK-6
* Overview: Proses pembatalan CK-6 mensyaratkan 1 object data dalam bentuk form&#x20;

## Path API

<mark style="color:green;">`POST`</mark> `{API_URL}/portal/ck6/pembatalan`

## Authorization

<table><thead><tr><th width="181">Name</th><th width="126">Type </th><th>Description</th></tr></thead><tbody><tr><td>Authorization</td><td>String</td><td>Bearer Token yang didapatkan dari hasil otorisasi</td></tr></tbody></table>

## Parameter

Endpoint ini menerima parameter berikut dalam form data:

<table><thead><tr><th width="205">Parameter Name</th><th width="113">Type</th><th>Description</th><th>Example Value</th></tr></thead><tbody><tr><td>idCk6Header</td><td>String</td><td>UUID unik untuk identifikasi header CK6</td><td>eeb568b2-24ec-40e8-8b25-848cd786378f</td></tr><tr><td>alasanPembatalan</td><td>String</td><td>Alasan mengapa pembatalan dilakukan</td><td>salah data</td></tr><tr><td>nomorPermohonanPembatalan</td><td>String</td><td>Nomor identifikasi permohonan pembatalan</td><td>rtka-2024</td></tr><tr><td>tanggalPermohonanPembatalan</td><td>Date</td><td>Tanggal saat permohonan pembatalan diajukan</td><td>2024-08-21</td></tr><tr><td>dokumenBuktiBelumPengangkutan</td><td>Binary</td><td>Dokumen bukti bahwa pengangkutan belum dilakukan</td><td>(binary)</td></tr></tbody></table>

## JSONSchema Pembatalan CK-6

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "Schema Pembatalan CK-6",
  "properties": {
    "idCk6Header": {
      "type": "string",
      "format": "uuid",
      "description": "ID CK6 Header."
    },
    "alasanPembatalan": {
      "type": "string",
      "description": "Alasan pembatalan."
    },
    "nomorPermohonanPembatalan": {
      "type": "string",
      "description": "Nomor permohonan pembatalan."
    },
    "tanggalPermohonanPembatalan": {
      "type": "string",
      "format": "date",
      "description": "Tanggal permohonan pembatalan dalam format YYYY-MM-DD."
    },
    "dokumenBuktiBelumPengangkutan": {
      "type": "string",
      "contentEncoding": "base64",
      "description": "Dokumen bukti belum pengangkutan."
    }
  },
  "required": [
    "idCk6Header",
    "alasanPembatalan",
    "nomorPermohonanPembatalan",
    "tanggalPermohonanPembatalan",
    "dokumenBuktiBelumPengangkutan"
  ]
}
```

## Example Request  : Pembatalan CK-6

```
--boundary
Content-Disposition: form-data; name="idCk6Header"

idCk6Header: eeb568b2-24ec-40e8-8b25-848cd786378f
--boundary
Content-Disposition: form-data; name="alasanPembatalan"

salah data
--boundary
Content-Disposition: form-data; name="nomorPermohonanPembatalan"

rtka-2024
--boundary
Content-Disposition: form-data; name="tanggalPermohonanPembatalan"

2024-08-21
--boundary
Content-Disposition: form-data; name="dokumenBuktiBelumPengangkutan"

(binary)
--boundary--

```

## Validation Rules

| Field       | Rules                            |
| ----------- | -------------------------------- |
| idCk6Header | Harus merupakan UUID yang valid. |

## Response

{% tabs %}
{% tab title="200" %}

```json
{
  "message": "Success",
  "status": true,
  "data": null
}
```

{% endtab %}
{% endtabs %}

## Potential Error

<table><thead><tr><th width="189">Status Code</th><th width="213">Description</th><th>Reason</th></tr></thead><tbody><tr><td>400 Bad Request</td><td>Permintaan tidak valid</td><td>Parameter tidak lengkap atau format tidak sesuai</td></tr><tr><td>401 Unauthorized</td><td>Otentikasi gagal</td><td>Bearer Token tidak valid atau tidak disertakan dalam header permintaan</td></tr><tr><td>404 Not Found</td><td>Dokumen tidak ditemukan</td><td>Data tidak ditemukan berdasarkan parameter yang diberikan</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ceisa40.gitbook.io/pia-ceisa40/api-service-cukai/perdagangan/pembatalan-ck-6.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
