# Update delivery info API

### Updates delivery info for an escrow transaction.

<details>

<summary><strong>Supported PGs</strong></summary>

* KG INICIS
* NHN KCP
* PAYJOA (Daou)

</details>

## Updates delivery info for an escrow transaction.

<mark style="color:orange;">`PUT`</mark> `https://api.iamport.kr/escrows/logis/{imp_uid}`

The request body must be **2-depth JSON**.

All parameters are required. Required properties for sender and receiver JSON objects vary by PG.

All values, to be updated and maintained, must be specified.

#### Path Parameters

| Name                                       | Type   | Description                                                |
| ------------------------------------------ | ------ | ---------------------------------------------------------- |
| imp\_uid<mark style="color:red;">\*</mark> | String | <mark style="color:red;">**i'mport transaction ID**</mark> |

#### Request Body

| Name                                       | Type | Description                                       |
| ------------------------------------------ | ---- | ------------------------------------------------- |
| sender<mark style="color:red;">\*</mark>   | json | <mark style="color:red;">**Sender info**</mark>   |
| receiver<mark style="color:red;">\*</mark> | json | <mark style="color:red;">**Receiver info**</mark> |
| logis<mark style="color:red;">\*</mark>    | json | <mark style="color:red;">**Delivery info**</mark> |

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

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

{% endtab %}

{% tab title="400: Bad Request Missing parameter (varies by PG) or request not supported by specified PG" %}

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

{% endtab %}

{% tab title="401: Unauthorized Missing or invalid access token" %}

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

{% endtab %}

{% tab title="404: Not Found No result found" %}

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

{% endtab %}

{% tab title="405: Method Not Allowed Not a POST request" %}

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

{% endtab %}

{% tab title="409: Conflict Request cannot be completed" %}

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

{% endtab %}

{% tab title="500: Internal Server Error Server error" %}

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

{% endtab %}
{% endtabs %}

### **Key request parameter description**

> **`sender`**<mark style="color:red;">**`*`**</mark><mark style="color:blue;">**`Json`**</mark>
>
> **`Sender info`**

<details>

<summary>EscrowLogisSenderAnnotation</summary>

**`name (string, optional)`**

**`Sender's name (Required for: KG INICIS)`**&#x20;

**`tel (string, optional)`**

**`Sender's phone (Required for: KG INICIS)`**

**`addr (string, optional)`**

**`Sender's address (Required for: KG INICIS)`**

**`postcode (string, optional)`**

**`Sender's zip code (Required for: KG INICIS)`**

**`relationship (string, optional)`**

**`Relationship with sender (Required for: PAYJOA, Example: Self)`**

</details>

> **`receiver`**<mark style="color:red;">**`*`**</mark><mark style="color:blue;">**`Json`**</mark>
>
> **`Receiver info`**

<details>

<summary>EscrowLogisReceiverAnnotation</summary>

**`name (string, optional)`**

**`Receiver's name (Required for: KG INICIS)`**&#x20;

**`tel (string, optional)`**

**`Receiver's phone (Required for: KG INICIS)`**

**`addr (string, optional)`**

**`Receiver's address (Required for: KG INICIS)`**

**`postcode (string, optional)`**

**`Receiver's zip code (Required for: KG INICIS)`**

</details>

> **`logis`**<mark style="color:red;">**`*`**</mark><mark style="color:blue;">**`Json`**</mark>
>
> **`Delivery info`**

<details>

<summary>EscrowLogisInfoAnnotation</summary>

**`company (string)`**

**`Courier code`**&#x20;

**`invoice (string)`**

**`Tracking number`**

**`sent_at (integer)`**

**`Sent at UNIX TIMESTAMP`**

**`receiving_at (string, optional)`**

**`Received at (Required for: PAYJOA / Example: YYYYMMDD)`**

**`address (string, optional)`**

**`Shipping address (Required for: PAYJOA)`**

</details>

{% code title="Request Body Sample" %}

```json
{
    "logis": {
        "invoice": "1728384716123",
        "company": "Post Office",
        "receiving_at": "20220215",
        "address": "Address"
    },
    "receiver": {
        "name": "Hong Gildong"
    },
    "sender": {
        "relationship": "Family"
    }
}
```

{% endcode %}

<details>

<summary>Response Model Schema</summary>

```json
{
  "code": 0,
  "message": "string",
  "response": {
    "company": "string",
    "invoice": "string",
    "sent_at": 0,
    "applied_at": 0
  }
}
```

</details>

{% hint style="success" %}
**Swagger Test Link**

[**https://api.iamport.kr/#!/escrow.logis/escrow\_logis\_edit**](https://api.iamport.kr/#!/escrow.logis/escrow_logis_edit)
{% endhint %}


---

# 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://portone.gitbook.io/docs-en/api/escrow-api/update-delivery-info-api.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.
