# Tarik Billing Konsolidasi

**Development**

URL Dev: <https://apisdev-gw.beacukai.go.id/respon-billing-konsolidasi-barkir-public/tarik-billing-konsolidasi-barkir>

**Staging**

URL Staging : <https://sandbox-gw.beacukai.go.id/respon-billing-konsolidasi-barkir-public/tarik-billing-konsolidasi-barkir>

**Production**

URL Prod : <https://apis-gw.beacukai.go.id/openapi/cnpibk>

## Tarik Billing Konsolidasi

<mark style="color:blue;">`GET`</mark> `{API_URL}/billing-konsolidasi/tarik-billing`

*Endpoint* digunakan untuk mendapatkan respon Billing Konsolidasi. Respon dapat dilakukan untuk keseluruhan billing konsolidasi yang belum pernah dilakukan tarik respon atau respon berdasarkan Kode Billing (dapat dilakukan berkali-kali).

#### Path Parameters

| Name        | Type   | Description                    |
| ----------- | ------ | ------------------------------ |
| kodeBilling | String | Kode Billing yang ingin dicari |

#### Headers

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

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

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

{% endtab %}

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

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

{% endtab %}

{% tab title="403: Forbidden Forbidden" %}

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

{% endtab %}

{% tab title="404: Not Found Not Found" %}

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

{% endtab %}
{% endtabs %}

Berikut ini adalah contoh respon hasil tarikan billing konsol jika menggunakan parameter kodeBilling

```json
{
  "message": "Success",
  "status": true,
  "data": [
    {
      "nomorSppbmcpKonsol": "000003",
      "tanggalSppbmcpKonsol": "2023-07-12 00:00:00.0",
      "npwpPemberitahu": "123456789012345",
      "namaPemberitahu": "PT DEMOBEACUKAI",
      "kodeKantor": "009000",
      "kodeBilling": "640230750749647",
      "totalNilaiBm": "1000",
      "totalNilaiPph": "0",
      "totalNilaiPpn": "236000",
      "totalNilaiPpnbm": "0",
      "totalNilaiBmtp": "0",
      "totalNilaiBmad": "0",
      "totalNilaiTagihan": "237000",
      "tanggalBilling": "2023-07-12 00:00:00.0",
      "tanggalJatuhTempo": "2023-07-14 00:00:00.0",
      "urlReport": "https://apisdev-gw.beacukai.go.id/openapi/download-respon?path=report_barkir/billing/fd2a50c1-027c-4017-85bb-0ea3535f2b1b-640230750749647_303_billing.pdf",
      "detailSppbmcp": [
        {
          "nomorBarang": "HNRO830",
          "tanggalHouse": "2023-06-19 00:00:00.0",
          "nomorSppbmcp": "000008",
          "tanggalSppbmcp": "2023-06-26 00:00:00.0",
          "totalNilaiBm": "0",
          "totalNilaiPph": "0",
          "totalNilaiPpn": "235000",
          "totalNilaiPpnbm": "0",
          "totalNilaiBmtp": "0",
          "totalNilaiBmad": "0",
          "totalNilaiTagihan": "235000"
        },
        {
          "nomorBarang": "BK260623-4",
          "tanggalHouse": "2023-06-26 00:00:00.0",
          "nomorSppbmcp": "000009",
          "tanggalSppbmcp": "2023-06-26 00:00:00.0",
          "totalNilaiBm": "1000",
          "totalNilaiPph": "0",
          "totalNilaiPpn": "1000",
          "totalNilaiPpnbm": "0",
          "totalNilaiBmtp": "0",
          "totalNilaiBmad": "0",
          "totalNilaiTagihan": "2000"
        }
      ]
    }
  ]
}
```


---

# 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-barang-kiriman/daftar-service-impor-barang-kiriman/tarik-billing-konsolidasi.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.
