# Tarik Respon E-Invoice

* **Development**

URL Dev: [https://apisdev-gw.beacukai.go.id/respon-einvoice-barkir-public/tarik-respon-einvoice-barkir](https://apisdev-gw.beacukai.go.id/respon-einvoice-barkir-public/tarik-respon-einvoice-barkir/e-invoice/getResponse)

* **Production**

URL Prod &#x20;

<https://apis-gw.beacukai.go.id/respon-einvoice-barkir-public/tarik-respon-einvoice-barkir>

## Tarik Respon E-Invoice

<mark style="color:blue;">`GET`</mark> `{API_URL}/e-invoice/get-response`

API *Endpoint* to get response for E-Invoice data. It shows response for all Invoices which is not already downloaded or taken before, if you want to get the same data again, you can use invoiceNumber as a parameter.

#### Path Parameters

| Name          | Type   | Description    |
| ------------- | ------ | -------------- |
| invoiceNumber | String | Invoice Number |

#### Headers

| Name                                            | Type   | Description                         |
| ----------------------------------------------- | ------ | ----------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer Token from Authorization API |

{% 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 %}

Sample using param:\
<https://apisdev-gw.beacukai.go.id/respon-einvoice-barkir-public/tarik-respon-einvoice-barkir/e-invoice/getResponse?invoiceNumber=INVCAN190503>

Sample Response :

```json
{
  "message": "Success",
  "status": true,
  "data": [
    {
      "invoiceNumber": "INVOICETEST-20",
      "statusDescription": "[\"Catalogue SKU Number SKU_ABC10 found in 2024-11-18 for invoice INVOICETEST-20\",\"Catalogue SKU Number SKU_ABC10 price valid for Invoice number INVOICETEST-20 invoice date 2024-11-18\"]",
      "statusCode": "100",
      "currencyTypeCode": "USD",
      "invoiceDate": "2024-11-18",
      "receivedTime": "2024-11-18 16:53:50.222",
      "buyerName": "PENERIMA-1",
      "buyerPhoneNumber": "081233334444",
      "exchangeRate": "15759",
      "invoiceUrl": "-",
      "commodityDetail": [
        {
          "countQuantity": "1",
          "measurementUnit": "PCE",
          "exitToEntryChargeAmount": "4.5",
          "identityQualifierCode": "SKU_ABC10"
        }
      ]
    }
  ]
}

{
  "message": "Success",
  "status": true,
  "data": [
    {
      "invoiceNumber": "INVOICETEST-21",
      "statusDescription": "[\"Catalogue SKU Number SKU_ABC14 not found in 2024-11-18 for invoice INVOICETEST-21\"]",
      "statusCode": "900",
      "receivedTime": "2024-11-18 16:54:37.611",
      "commodityDetail": []
    }
  ]
}
```


---

# 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-respon-e-invoice.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.
