# Get Tariff

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%; height: 59.5938px;"><colgroup><col style="width: 50.0618%;"></col><col style="width: 50.0618%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td class="align-center" style="height: 29.7969px;">**Endpoint**</td><td class="align-center" style="height: 29.7969px;">**Authentication**</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">http://apiv2.jne.co.id:10102/tracing/api/pricedev</td><td style="height: 29.7969px;">no</td></tr></tbody></table>

##### Header

<table border="1" id="bkmrk-parameter-value-cont" style="border-collapse: collapse; width: 100%; height: 119.188px;"><colgroup><col style="width: 50.0618%;"></col><col style="width: 50.0618%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><th style="height: 29.7969px;">**Parameter**</th><th style="height: 29.7969px;">**Value**</th></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Content-Type</td><td style="height: 29.7969px;">application/x-www-form-urlencoded</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Accept</td><td style="height: 29.7969px;">application/json</td></tr></tbody></table>

##### Body request

<p class="callout info">payload type: x-www-form-urlencoded</p>

```json
{
  "username": "TESTAPI",
  "api_key": "25c898a9faea1a100859ecd9ef674548",
  "from": "CGK10000",
  "thru": "BDO10000",
  "weight": "1"
}
```

<table border="1" id="bkmrk-properties-propertie" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 17.7998%;"></col><col style="width: 29.6493%;"></col><col style="width: 52.5509%;"></col></colgroup><tbody><tr><th>**Parameter**</th><th>**Value**</th><th>**Desc**</th></tr><tr><td>username</td><td>CUST\_USERNAME</td><td>PROVIDED BY EMAIL</td></tr><tr><td>api\_key</td><td>CUST\_APIKEY</td><td>PROVIDED BY EMAIL</td></tr><tr><td>from</td><td>VARCHAR (10 Byte)</td><td>Origin Code</td></tr><tr><td>thru</td><td>VARCHAR (10 Byte)</td><td>Destination Code</td></tr><tr><td>weight</td><td>Number</td><td>Weight in kg</td></tr></tbody></table>

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">200 OK</p>

```json
{
    "price": [
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "REG",
            "service_code": "REG19",
            "goods_type": "Document/Paket",
            "currency": "IDR",
            "price": "12000",
            "etd_from": "1",
            "etd_thru": "2",
            "times": "D"
        },
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "JTR",
            "service_code": "JTR5",
            "goods_type": "Paket",
            "currency": "IDR",
            "price": "18000",
            "etd_from": "3",
            "etd_thru": "4",
            "times": "D"
        },
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "YES",
            "service_code": "YES19",
            "goods_type": "Document/Paket",
            "currency": "IDR",
            "price": "24000",
            "etd_from": "1",
            "etd_thru": "1",
            "times": "D"
        },
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "JTR",
            "service_code": "JTR18",
            "goods_type": "Paket",
            "currency": "IDR",
            "price": "45000",
            "etd_from": "3",
            "etd_thru": "4",
            "times": "D"
        },
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "JTR<130",
            "service_code": "JTR<130",
            "goods_type": "Paket",
            "currency": "IDR",
            "price": "500000",
            "etd_from": null,
            "etd_thru": null,
            "times": null
        },
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "JTR<150",
            "service_code": "JTR<150",
            "goods_type": "Paket",
            "currency": "IDR",
            "price": "500000",
            "etd_from": null,
            "etd_thru": null,
            "times": null
        },
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "JTR250",
            "service_code": "JTR250",
            "goods_type": "Paket",
            "currency": "IDR",
            "price": "850000",
            "etd_from": null,
            "etd_thru": null,
            "times": null
        },
        {
            "origin_name": "JAKARTA",
            "destination_name": "BANDUNG",
            "service_display": "SPS",
            "service_code": "SPS15",
            "goods_type": "Document/Paket",
            "currency": "IDR",
            "price": "403000",
            "etd_from": null,
            "etd_thru": null,
            "times": null
        }
    ]
}
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">200 OK</p>

```json
{
    "error": "Price Not Found.",
    "status": false
}
```

</details>