# Status & Respon

## Mendapatkan Status dan Respon yang belum diambil

<mark style="color:blue;">`GET`</mark> `{API_URL}/openapi/status`

*Endpoint* digunakan untuk mendapatkan riwayat status dan respon dari dokumen berdasarkan NPWP yang mengakses.

#### Query Parameters

| Name                                           | Type   | Description                                      |
| ---------------------------------------------- | ------ | ------------------------------------------------ |
| idPerusahaan<mark style="color:red;">\*</mark> | String | ID Perusahaan (NPWP) pengguna sesuai autentikasi |

#### Headers

| Name                                            | Type   | Description                              |
| ----------------------------------------------- | ------ | ---------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Token yang didapatkan hasil autentikasi. |

{% tabs %}
{% tab title="200: OK Data Ditemukan" %}

```javascript
{
    "dataStatus":[{
        "nomorAju":"Nomor Aju",
        "kodeStatus":"Kode Status",
        "nomorDaftar":"Nomor Daftar",
        "tanggalDaftar":"Tanggal Daftar",
        "waktuStatus":"Waktu Status",
        "keterangan":"Keterangan"
    }],
    "dataRespon":[{
        "nomorAju":"Nomor Aju",
        "kodeRespon":"Kode Respon",
        "nomorDaftar":"Nomor Daftar",
        "tanggalDaftar":"Tanggal Daftar",
        "nomorRespon":"Nomor Respon",
        "tanggalRespon":"Tanggal Respon",
        "waktuRespon":"Waktu Respon",
        "waktuStatus":"Waktu Status",
        "keterangan":"Keterangan",
        "pesan":[
            { "uraian1", "uraian2" }
        ],
        "Pdf":"Base64encode PDF file"
    }]
}
```

{% endtab %}

{% tab title="200: OK Data Tidak Ditemukan" %}

```javascript
{
    "status": "Failed",
    "message": "Data Tidak Ditemukan",
    "dataStatus": [],
    "dataRespon": []
}
```

{% endtab %}

{% tab title="200: OK Data Perusahaan tidak sesuai dengan autentikasi" %}

```javascript
{
    "status": "Failed",
    "message": "Data Perusahaan Tidak Sesuai"
}
```

{% endtab %}

{% tab title="401: Unauthorized Token Invalid" %}

```javascript
{
    "Exception": " Unauthorized application request"
}
```

{% endtab %}
{% endtabs %}

## Status dan Respon Per Nomor Aju

<mark style="color:blue;">`GET`</mark> `{API_URL}/openapi/status/:nomorAju`

*Endpoint* digunakan untuk mendapatkan riwayat status dan respon dari dokumen per nomor aju.

#### Path Parameters

| Name                                       | Type   | Description                                          |
| ------------------------------------------ | ------ | ---------------------------------------------------- |
| nomorAju<mark style="color:red;">\*</mark> | string | Nomor Aju dokumen yang dicari. Maksimal 26 Nomor Aju |

#### Headers

| Name                                            | Type   | Description                              |
| ----------------------------------------------- | ------ | ---------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token yang didapatkan hasil autentikasi. |

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

```
{
    "dataStatus":[{
        "nomorAju":"Nomor Aju",
        "kodeStatus":"Kode Status",
        "nomorDaftar":"Nomor Daftar",
        "tanggalDaftar":"Tanggal Daftar",
        "waktuStatus":"Waktu Status",
        "keterangan":"Keterangan"
    }],
    "dataRespon":[{
        "nomorAju":"Nomor Aju",
        "kodeRespon":"Kode Respon",
        "nomorDaftar":"Nomor Daftar",
        "tanggalDaftar":"Tanggal Daftar",
        "nomorRespon":"Nomor Respon",
        "tanggalRespon":"Tanggal Respon",
        "waktuRespon":"Waktu Respon",
        "waktuStatus":"Waktu Status",
        "keterangan":"Keterangan",
        "pesan":[
            { "uraian1", "uraian2" }
        ],
        "Pdf":"Base64encode PDF file"
    }]
}
```

{% endtab %}

{% tab title="401: Unauthorized Token Invalid" %}

```javascript
{
    "Exception": " Unauthorized application request"
}
```

{% endtab %}
{% endtabs %}

## Download Respon PDF

<mark style="color:blue;">`GET`</mark> `{API_URL}/openapi/download-respon?path={path}`

*Endpoint* digunakan untuk mendapatkan Respon PDF

#### Path Parameters

| Name                                   | Type   | Description  |
| -------------------------------------- | ------ | ------------ |
| path<mark style="color:red;">\*</mark> | string | url path pdf |

#### Headers

| Name                                            | Type   | Description                              |
| ----------------------------------------------- | ------ | ---------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token yang didapatkan hasil autentikasi. |

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

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="401: Unauthorized Token invalid" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Download Respon Billing PDF

<mark style="color:blue;">`GET`</mark> `{API_URL}/openapi/respon/billing`

*Endpoint* digunakan untuk mendapatkan Respon PDF

#### Query String Parameters

| Name        | Type   | Description  |
| ----------- | ------ | ------------ |
| kodeBilling | string | kode billing |

#### Headers

| Name                                            | Type   | Description                              |
| ----------------------------------------------- | ------ | ---------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token yang didapatkan hasil autentikasi. |

## Respon Mencetak Formulir

<mark style="color:blue;">`GET`</mark> `{API_URL}/openapi/respon/cetak-formulir`

*Endpoint* digunakan untuk mendapatkan Respon Mencetak Formulir Dokumen Pabean

#### Query String Parameters

| Name                                       | Type   | Description                                     |
| ------------------------------------------ | ------ | ----------------------------------------------- |
| nomorAju<mark style="color:red;">\*</mark> | string | Nomor Aju dokumen pabean. Maksimal 26 Nomor Aju |

#### Headers

| Name                                            | Type   | Description                              |
| ----------------------------------------------- | ------ | ---------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token yang didapatkan hasil autentikasi. |


---

# Agent Instructions: 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-services-pabean/status.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.
