# Kirim Data E-Catalogue

* **Development**

URL Dev: [https://apisdev-gw.beacukai.go.id/kirim-ekatalog-barkir-public/kirim-data-ekatalog-barkir](https://apisdev-gw.beacukai.go.id/kirim-ekatalog-barkir-public/kirim-data-ekatalog-barkir/e-catalogue/sendData)

* **Production**

URL Prod : <https://apis-gw.beacukai.go.id/kirim-ekatalog-barkir-public/kirim-data-ekatalog-barkir>

## Kirim Data E-Catalogue

<mark style="color:green;">`POST`</mark> `{API_URL}/e-catalogue/send-data`

API *Endpoint* to send E-Catalogue data from Marketplace

#### Headers

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

#### Request Body

| Name                                               | Type   | Description            |
| -------------------------------------------------- | ------ | ---------------------- |
| Data E-Catalogue<mark style="color:red;">\*</mark> | String | JSONSchema E-Catalogue |

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

```javascript
{
  "body": {},
  "statusCode": "ACCEPTED",
  "statusCodeValue": 0
}
```

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

### JSONSchema Kirim Data E-Catalogue

```
{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "type": "array",
    "items": {
        "$ref": "#/definitions/Welcome4Element"
    },
    "definitions": {
        "Welcome4Element": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "categoryCode": {
                    "type": "string"
                },
                "countryCode": {
                    "type": "string"
                },
                "currencyTypeCode": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "elementDescription": {
                    "type": "string"
                },
                "identityQualifierCode": {
                    "type": "string"
                },
                "marketplaceName": {
                    "type": "string"
                },
                "measurementUnit": {
                    "type": "string",
                    "format": "integer"
                },
                "sellerId": {
                    "type": "string"
                },
                "startingDate": {
                    "type": "string",
                    "format": "date"
                },
                "valueAmount": {
                    "type": "string",
                    "format": "integer"
                }
            },
            "required": [
                "categoryCode",
                "countryCode",
                "currencyTypeCode",
                "description",
                "elementDescription",
                "identityQualifierCode",
                "marketplaceName",
                "measurementUnit",
                "sellerId",
                "startingDate",
                "valueAmount"
            ],
            "title": "Welcome4Element"
        }
    }
}

```

### Contoh Data Kirim E-Catalogue

```
[
  {
    "categoryCode": "ELECTRONIC",
    "countryCode": "CN",
    "currencyTypeCode": "USD",
    "description": "SETRIKA IRON 1",
    "elementDescription": "Setrika Miyako Iron",
    "identityQualifierCode": "SKU_BARANG_IKC_1",
    "marketplaceName": "PT DEMO BEACUKAI",
    "measurementUnit": "PCE",
    "sellerId": "ABCD123445",
    "startingDate": "2024-11-18",
    "valueAmount": "10"
  },
  {
    "categoryCode": "TOYS",
    "countryCode": "CN",
    "currencyTypeCode": "USD",
    "description": "CAR TOYS",
    "elementDescription": "Car toys toyota",
    "identityQualifierCode": "SKU_BARANG_IKC_2",
    "marketplaceName": "PT DEMO BEACUKAI",
    "measurementUnit": "PCE",
    "sellerId": "ABCD123445",
    "startingDate": "2024-11-18",
    "valueAmount": "20"
  }
]
```

Sample Response :

```json
[
  {
    "status": "100",
    "data": "Catalogue identityQualifierCode SKU_BARANG_IKC_1 starting date 2024-11-18",
    "catalogue": {
      "marketplaceName": "PT DEMO BEACUKAI",
      "identityQualifierCode": "SKU_BARANG_IKC_1",
      "categoryCode": "ELECTRONIC",
      "description": "SETRIKA IRON 1",
      "elementDescription": "Setrika Miyako Iron",
      "currencyTypeCode": "USD",
      "valueAmount": "10",
      "measurementUnit": "PCE",
      "sellerId": "ABCD123445",
      "countryCode": "CN",
      "startingDate": "2024-11-18"
    },
    "messages": [
      "Data Received, waiting for CEISA validation"
    ]
  },
  {
    "status": "100",
    "data": "Catalogue identityQualifierCode SKU_BARANG_IKC_2 starting date 2024-11-18",
    "catalogue": {
      "marketplaceName": "PT DEMO BEACUKAI",
      "identityQualifierCode": "SKU_BARANG_IKC_2",
      "categoryCode": "TOYS",
      "description": "CAR TOYS",
      "elementDescription": "Car toys toyota",
      "currencyTypeCode": "USD",
      "valueAmount": "20",
      "measurementUnit": "PCE",
      "sellerId": "ABCD123445",
      "countryCode": "CN",
      "startingDate": "2024-11-18"
    },
    "messages": [
      "Data Received, waiting for CEISA validation"
    ]
  }
]

```


---

# 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/kirim-data-e-catalogue.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.
