> ## Documentation Index
> Fetch the complete documentation index at: https://docs.itshandled.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Return Package

> Update an existing return package

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://y5owe.hatchboxapp.com/v1/accounts/123/return_packages/789 \
    -H "Authorization: Bearer YOUR_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "status": "received",
      "actual_arrival": "2024-01-19T14:30:00Z",
      "notes": "Package received at warehouse"
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://y5owe.hatchboxapp.com/v1/accounts/123/return_packages/789', {
    method: 'PATCH',
    headers: {
      'Authorization': 'Bearer YOUR_API_TOKEN',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      status: "received",
      actual_arrival: "2024-01-19T14:30:00Z",
      notes: "Package received at warehouse"
    })
  });
  ```

  ```python Python theme={null}
  import requests

  response = requests.patch(
      'https://y5owe.hatchboxapp.com/v1/accounts/123/return_packages/789',
      headers={
          'Authorization': 'Bearer YOUR_API_TOKEN',
          'Content-Type': 'application/json'
      },
      json={
          "status": "received",
          "actual_arrival": "2024-01-19T14:30:00Z",
          "notes": "Package received at warehouse"
      }
  )
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "id": 789,
    "return_id": 456,
    "tracking_number": "1Z999AA10123456784",
    "status": "received",
    "carrier_id": 1,
    "location_id": 1,
    "estimated_arrival": "2024-01-20T00:00:00Z",
    "actual_arrival": "2024-01-19T14:30:00Z",
    "shipping_method": "ground",
    "weight": 2.5,
    "weight_unit": "lb",
    "dimensions": {
      "length": 12,
      "width": 10,
      "height": 8,
      "dimension_unit": "in"
    },
    "shipping_label_cost": 15.99,
    "shipping_label_cost_currency": "USD",
    "notes": "Package received at warehouse",
    "created_at": "2024-01-15T10:00:00Z",
    "updated_at": "2024-01-19T14:30:00Z"
  }
  ```
</ResponseExample>
